diff --git a/404.html b/404.html index 25129121..6292fc7d 100644 --- a/404.html +++ b/404.html @@ -1,4 +1,4 @@ -
\ No newline at end of file + ){outline:none;box-shadow:none;}select::-ms-expand{display:none;}:root,:host{--chakra-vh:100vh;}@supports (height: -webkit-fill-available){:root,:host{--chakra-vh:-webkit-fill-available;}}@supports (height: -moz-fill-available){:root,:host{--chakra-vh:-moz-fill-available;}}@supports (height: 100dvh){:root,:host{--chakra-vh:100dvh;}}
\ No newline at end of file diff --git a/About.html b/About.html index 7b6b9897..be833765 100644 --- a/About.html +++ b/About.html @@ -1,4 +1,4 @@ -
@my-react/react
@my-react/react-dom
\ No newline at end of file + ){outline:none;box-shadow:none;}select::-ms-expand{display:none;}:root,:host{--chakra-vh:100vh;}@supports (height: -webkit-fill-available){:root,:host{--chakra-vh:-webkit-fill-available;}}@supports (height: -moz-fill-available){:root,:host{--chakra-vh:-moz-fill-available;}}@supports (height: 100dvh){:root,:host{--chakra-vh:100dvh;}}
@my-react/react
@my-react/react-dom
\ No newline at end of file diff --git a/Blog.html b/Blog.html index 3a5e595e..6339994f 100644 --- a/Blog.html +++ b/Blog.html @@ -1,4 +1,4 @@ -


\ No newline at end of file + ){outline:none;box-shadow:none;}select::-ms-expand{display:none;}:root,:host{--chakra-vh:100vh;}@supports (height: -webkit-fill-available){:root,:host{--chakra-vh:-webkit-fill-available;}}@supports (height: -moz-fill-available){:root,:host{--chakra-vh:-moz-fill-available;}}@supports (height: 100dvh){:root,:host{--chakra-vh:100dvh;}}


\ No newline at end of file diff --git a/Excalidraw.html b/Excalidraw.html index babd6a5d..9b44cf5c 100644 --- a/Excalidraw.html +++ b/Excalidraw.html @@ -1,4 +1,4 @@ -
Loading ...
\ No newline at end of file + ){outline:none;box-shadow:none;}select::-ms-expand{display:none;}:root,:host{--chakra-vh:100vh;}@supports (height: -webkit-fill-available){:root,:host{--chakra-vh:-webkit-fill-available;}}@supports (height: -moz-fill-available){:root,:host{--chakra-vh:-moz-fill-available;}}@supports (height: 100dvh){:root,:host{--chakra-vh:100dvh;}}
Loading ...
\ No newline at end of file diff --git a/Tldraw.html b/Tldraw.html index b4a24314..f31f5d60 100644 --- a/Tldraw.html +++ b/Tldraw.html @@ -1,4 +1,4 @@ -
Loading ...
\ No newline at end of file + ){outline:none;box-shadow:none;}select::-ms-expand{display:none;}:root,:host{--chakra-vh:100vh;}@supports (height: -webkit-fill-available){:root,:host{--chakra-vh:-webkit-fill-available;}}@supports (height: -moz-fill-available){:root,:host{--chakra-vh:-moz-fill-available;}}@supports (height: 100dvh){:root,:host{--chakra-vh:100dvh;}}
Loading ...
\ No newline at end of file diff --git a/client/main-18383a180c04e1146c75.js b/client/main-18383a180c04e1146c75.js new file mode 100644 index 00000000..2d4866e2 --- /dev/null +++ b/client/main-18383a180c04e1146c75.js @@ -0,0 +1 @@ +(self.webpackChunk_my_react_ssr_example=self.webpackChunk_my_react_ssr_example||[]).push([[792],{69737:(e,t,n)=>{"use strict";e.exports=n(23)},23:(e,t,n)=>{"use strict";var r,i,o=n(6696),a=n(19953),c={exports:{}},u={};var l=(i||(i=1,c.exports=(r||(r=1,function(e){var t,n,r=a,i={exports:{}},c={},u=(n||(n=1,i.exports=(t||(t=1,function(e){"function"==typeof SuppressedError&&SuppressedError;var t=Symbol.for("react.element"),n=Symbol.for("react.memo"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.context"),u=Symbol.for("react.provider"),l=Symbol.for("react.consumer"),s=Symbol.for("react.lazy"),d=Symbol.for("react.suspense"),f=Symbol.for("react.strict_mode"),_=Symbol.for("react.keep_live"),p=Symbol.for("react.scope"),m=Symbol.for("react.comment"),h=Symbol.for("react.offscreen"),v=Symbol.for("react.profiler");function y(e){return"object"===o(e)&&null!==e}function E(e){return"function"==typeof e}var g,T,b,S,k,A=function(){function e(){this.set=new Set,this.arr=new Array,this.length=0}return e.prototype.uniPop=function(){var e=this.arr.pop();return this.set.delete(e),this.length--,e},e.prototype.uniPush=function(e){if(this.set.has(e))return 0;this.set.add(e),this.arr.push(e),this.length++},e.prototype.uniShift=function(){var e=this.arr.shift();return this.set.delete(e),this.length--,e},e.prototype.uniUnshift=function(e){if(this.set.has(e))return 0;this.set.add(e),this.arr.unshift(e),this.length++},e.prototype.uniDelete=function(e){this.set.has(e)&&(this.set.delete(e),this.arr=this.arr.filter((function(t){return t!==e})),this.length--)},e.prototype.clear=function(){this.length=0,this.set.clear(),this.arr.length=0},e.prototype.getAll=function(){return this.arr},e}();e.HOOK_TYPE=void 0,(g=e.HOOK_TYPE||(e.HOOK_TYPE={}))[g.useId=0]="useId",g[g.useRef=1]="useRef",g[g.useMemo=2]="useMemo",g[g.useState=3]="useState",g[g.useSignal=4]="useSignal",g[g.useEffect=5]="useEffect",g[g.useContext=6]="useContext",g[g.useReducer=7]="useReducer",g[g.useCallback=8]="useCallback",g[g.useTransition=9]="useTransition",g[g.useDebugValue=10]="useDebugValue",g[g.useLayoutEffect=11]="useLayoutEffect",g[g.useDeferredValue=12]="useDeferredValue",g[g.useInsertionEffect=13]="useInsertionEffect",g[g.useImperativeHandle=14]="useImperativeHandle",g[g.useSyncExternalStore=15]="useSyncExternalStore",e.UpdateQueueType=void 0,(T=e.UpdateQueueType||(e.UpdateQueueType={}))[T.hook=2]="hook",T[T.component=1]="component",T[T.lazy=3]="lazy",T[T.context=4]="context",e.STATE_TYPE=void 0,(b=e.STATE_TYPE||(e.STATE_TYPE={}))[b.__initial__=0]="__initial__",b[b.__create__=1]="__create__",b[b.__stable__=2]="__stable__",b[b.__skippedConcurrent__=4]="__skippedConcurrent__",b[b.__skippedSync__=8]="__skippedSync__",b[b.__inherit__=16]="__inherit__",b[b.__triggerConcurrent__=32]="__triggerConcurrent__",b[b.__triggerConcurrentForce__=64]="__triggerConcurrentForce__",b[b.__triggerSync__=128]="__triggerSync__",b[b.__triggerSyncForce__=256]="__triggerSyncForce__",b[b.__unmount__=512]="__unmount__",b[b.__hmr__=1024]="__hmr__",b[b.__retrigger__=2048]="__retrigger__",b[b.__rerun__=4096]="__rerun__",e.PATCH_TYPE=void 0,(S=e.PATCH_TYPE||(e.PATCH_TYPE={}))[S.__initial__=0]="__initial__",S[S.__create__=1]="__create__",S[S.__update__=2]="__update__",S[S.__append__=4]="__append__",S[S.__position__=8]="__position__",S[S.__effect__=16]="__effect__",S[S.__layoutEffect__=32]="__layoutEffect__",S[S.__insertionEffect__=64]="__insertionEffect__",S[S.__unmount__=128]="__unmount__",S[S.__ref__=256]="__ref__",e.Effect_TYPE=void 0,(k=e.Effect_TYPE||(e.Effect_TYPE={}))[k.__initial__=0]="__initial__",k[k.__effect__=1]="__effect__",k[k.__unmount__=2]="__unmount__";var P=function(e){this.prev=null,this.next=null,this.value=e},N=function(){function e(){this.length=0;var e=null;Object.defineProperty(this,"stickyHead",{get:function(){return e},set:function(t){e=t}});var t=null;Object.defineProperty(this,"stickyFoot",{get:function(){return t},set:function(e){t=e}});var n=null;Object.defineProperty(this,"head",{get:function(){return n},set:function(e){n=e}});var r=null;Object.defineProperty(this,"foot",{get:function(){return r},set:function(e){r=e}})}return e.prototype.push=function(e){var t=new P(e);this.length++,this.foot?(this.foot.next=t,t.prev=this.foot,this.foot=t):(this.head=t,this.foot=t)},e.prototype.pushToLast=function(e){if(this.stickyFoot){var t=this.stickyFoot;this.push(t.value),this.stickyFoot=null}var n=new P(e);this.stickyFoot=n,this.length++},e.prototype.pushToHead=function(e){if(this.stickyHead){var t=this.stickyHead;this.unshift(t.value),this.stickyHead=null}var n=new P(e);this.stickyHead=n,this.length++},e.prototype.pop=function(){var e=this.stickyFoot||this.foot;return e?(this.delete(e),e.value):null},e.prototype.unshift=function(e){var t=new P(e);this.length++,this.head?(this.head.prev=t,t.next=this.head,this.head=t):(this.head=t,this.foot=t)},e.prototype.unshiftToHead=function(e){if(this.stickyHead){var t=this.stickyHead;this.unshift(t.value),this.stickyHead=null}var n=new P(e);this.stickyHead=n},e.prototype.unshiftToFoot=function(e){if(this.stickyFoot){var t=this.stickyFoot;this.push(t.value),this.stickyFoot=null}var n=new P(e);this.stickyFoot=n},e.prototype.shift=function(){var e=this.stickyHead||this.head;return e?(this.delete(e),e.value):null},e.prototype.pickHead=function(){var e,t;return(null===(e=this.stickyHead)||void 0===e?void 0:e.value)||(null===(t=this.head)||void 0===t?void 0:t.value)},e.prototype.pickFoot=function(){var e,t;return(null===(e=this.stickyFoot)||void 0===e?void 0:e.value)||(null===(t=this.foot)||void 0===t?void 0:t.value)},e.prototype.listToFoot=function(e){this.stickyHead&&e(this.stickyHead.value);for(var t=this.head;t;)e(t.value),t=t.next;this.stickyFoot&&e(this.stickyFoot.value)},e.prototype.listToHead=function(e){this.stickyFoot&&e(this.stickyFoot.value);for(var t=this.foot;t;)e(t.value),t=t.prev;this.stickyHead&&e(this.stickyHead.value)},e.prototype.toArray=function(){var e=[];return this.listToFoot((function(t){return e.push(t)})),e},e.prototype.delete=function(e){if(this.stickyHead===e)this.stickyHead=null,this.length--;else if(this.stickyFoot===e)this.stickyFoot=null,this.length--;else if(this.head===e){var t=e.next;e.next=null,t?(this.head=t,t.prev=null):(this.head=null,this.foot=null),this.length--}else if(this.foot===e){var n=e.prev;e.prev=null,n?(this.foot=n,n.next=null):(this.head=null,this.foot=null),this.length--}else this.hasNode(e)&&(n=e.prev,t=e.next,e.prev=null,e.next=null,n.next=t,t.prev=n,this.length--)},e.prototype.size=function(){return this.length},e.prototype.hasNode=function(e){if(this.stickyHead&&Object.is(this.stickyHead,e))return!0;if(this.stickyFoot&&Object.is(this.stickyFoot,e))return!0;for(var t=this.head;t;){if(Object.is(t,e))return!0;t=t.next}return!1},e.prototype.hasValue=function(e){if(this.stickyHead&&Object.is(this.stickyHead.value,e))return!0;if(this.stickyFoot&&Object.is(this.stickyFoot.value,e))return!0;for(var t=this.head;t;){if(Object.is(t.value,e))return!0;t=t.next}return!1},e.prototype.some=function(e){var t=!1;return this.listToFoot((function(n){t=t||e(n)})),t},e.prototype.every=function(e){var t=!0;return this.listToFoot((function(n){t=t&&e(n)})),t},e.prototype.concat=function(t){var n=new e;return this.listToFoot((function(e){return n.push(e)})),t.listToFoot((function(e){return n.push(e)})),n},e.prototype.clone=function(){var t=new e;return this.listToFoot((function(e){return t.push(e)})),t},e.prototype.clear=function(){this.length=0,this.head=null,this.foot=null,this.stickyHead=null,this.stickyFoot=null},e}();e.Comment=m,e.Consumer=l,e.Context=c,e.Element=t,e.ForwardRef=r,e.Fragment=a,e.KeepLive=_,e.Lazy=s,e.ListTree=N,e.ListTreeNode=P,e.Memo=n,e.Offscreen=h,e.Portal=i,e.Profiler=v,e.Provider=u,e.Scope=p,e.Strict=f,e.Suspense=d,e.TYPEKEY="$$typeof",e.UniqueArray=A,e.compareVersion=function(e,t){return function e(t,n){if(t.length&&n.length){var r=t[0],i=n[0];return r>i||!(i>r)&&e(t.slice(1),n.slice(1))}return!!t.length||!n.length}(e.split(".").map(Number),t.split(".").map(Number))},e.exclude=function(e,t){return!(e&t)},e.include=function(e,t){return e&t},e.isArray=function(e){return Array.isArray(e)},e.isArrayEquals=function(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)&&e.length===t.length){var n=!0;for(var r in e)if(!(n=n&&Object.is(e[r],t[r])))return n;return n}return!1},e.isCollection=function(e){return e instanceof Map||e instanceof Set||e instanceof WeakMap||e instanceof WeakSet},e.isFunction=E,e.isInteger=function(e){return Number.isInteger(Number(e))},e.isNormalEquals=function(e,t,n){if(Object.is(e,t))return!0;var r="function"==typeof n;if("object"===o(e)&&"object"===o(t)&&null!==e&&null!==t){var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;var c=!0;if(r){for(var u=0,l=i;u0&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]")},Ee=function(e){return"".concat(ye(e)," ").concat("")},ge=function(e){return"%c".concat(ye(e),"%c (%o)")},Te=function(e){if(e){var t="".padEnd(4)+"at".padEnd(3),n="",r=e;if(oe.current)for(;r;)he(r)&&(n?n+="\n".concat(t).concat(Ee(r)):n="".concat(t).concat(Ee(r))),r=r.parent;else for(;r;)n?n+="\n".concat(t).concat(Ee(r)):n="".concat(t).concat(Ee(r)),r=r.parent;return"\n".concat(n)}return""},be=function(e,t){for(var n="".toString().padEnd(3),r="\n"+n+"Last render:".padEnd(28)+"Next render:".padEnd(10)+"\n"+n+"-".repeat(44)+"\n",i=n+u.HOOK_TYPE[t.lastRender].padEnd(28)+u.HOOK_TYPE[t.nextRender].padEnd(10)+"\n";e&&e.value;){var o=e.value.type;i=n+u.HOOK_TYPE[o].padEnd(28)+u.HOOK_TYPE[o].padEnd(10)+"\n"+i,e=e.prev}return"[@my-react/react] hook for current component has a different state on current render and previous render, this is not a valid usage."+r+(i+(n+"^".repeat(44)))},Se=function(e,t){for(var n,r,i=[],o=2;o5)throw new Error("lazy() load loop count is too much");return[3,1];case 3:return function(){t.reconcileCommit(e);var n=t.pendingCommitFiberList,r=t.pendingChangedFiberList;t.resetUpdateFlowRuntimeFiber(),t.pendingCommitFiberList=null,t.pendingChangedFiberList=null,(null==n?void 0:n.length)&&t.reconcileUpdate(n),(null==r?void 0:r.length)&&te({fiber:e,action:function(){var e,n;null===(n=null===(e=V.get(t))||void 0===e?void 0:e.fiberHasChange)||void 0===n||n.forEach((function(e){return e(r)}))}})}(),$n.current=!1,[2]}}))}))},e.mountLoop=Qn,e.nextWorkClassComponent=ft,e.nextWorkCommon=st,e.nextWorkComponent=pt,e.nextWorkConsumer=ht,e.nextWorkFunctionComponent=_t,e.nextWorkLazy=mt,e.nextWorkNormal=dt,e.onceErrorWithKeyAndFiber=function(e,t){for(var n,r,i=[],o=2;ot.performanceLogTimeLimit;ut.current&&a&&Se(e,"performance","[@my-react/react] render current component take a lot of time, there have a performance warning"),a&&te({fiber:e,action:function(){var n,r;null===(r=null===(n=V.get(t))||void 0===n?void 0:n.performanceWarn)||void 0===r||r.forEach((function(t){return t(e)}))}});var c=e,l=i;if(lt.current)if(c.state===u.STATE_TYPE.__create__)c._debugRenderState={mountTimeStep:l,timeForRender:o,maxTimeForRender:o},c._debugIsMount=!0;else{var s=Object.assign({},c._debugRenderState),d=s.updateTimeStep||s.mountTimeStep;c._debugRenderState={renderCount:(s.renderCount||0)+1,mountTimeStep:s.mountTimeStep,updateTimeStep:l,trigger:v.current,timeForRender:o,timeForUpdate:l-d,maxTimeForRender:Math.max(s.maxTimeForRender,o)}}return te({fiber:e,action:function(){var n,r;null===(r=null===(n=V.get(t))||void 0===n?void 0:n.fiberRun)||void 0===r||r.forEach((function(t){return t(e)}))}}),r},e.safeCall=Z,e.safeCallWithCurrentFiber=te,e.safeCallWithSync=function(e){for(var t=[],n=1;n0&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]i||!(i>r)&&e(t.slice(1),n.slice(1))}return!!t.length||!n.length}(e.split(".").map(Number),t.split(".").map(Number))},e.exclude=function(e,t){return!(e&t)},e.include=function(e,t){return e&t},e.isArray=function(e){return Array.isArray(e)},e.isArrayEquals=function(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)&&e.length===t.length){var n=!0;for(var r in e)if(!(n=n&&Object.is(e[r],t[r])))return n;return n}return!1},e.isCollection=function(e){return e instanceof Map||e instanceof Set||e instanceof WeakMap||e instanceof WeakSet},e.isFunction=E,e.isInteger=function(e){return Number.isInteger(Number(e))},e.isNormalEquals=function(e,t,n){if(Object.is(e,t))return!0;var r="function"==typeof n;if("object"===o(e)&&"object"===o(t)&&null!==e&&null!==t){var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;var c=!0;if(r){for(var u=0,l=i;u", client: "').concat(l.getElementName(e),'"')),!1}return t}return g.include(e.type,l.NODE_TYPE.__plain__)?t.nodeType!==Node.ELEMENT_NODE||e.elementType.toString().toLowerCase()!==t.nodeName.toLowerCase()?(w.current&&Ue(e,"error",'hydrate error, dom not match from server. server: "<'.concat(t.nodeName.toLowerCase(),' />", client: "').concat(l.getElementName(e),'"')),!1):t:g.include(e.type,l.NODE_TYPE.__comment__)?t.nodeType!==Node.COMMENT_NODE?(w.current&&Ue(e,"error",'hydrate error, dom not match from server. server: "<'.concat(t.nodeName.toLowerCase(),' />", client: "').concat(l.getElementName(e),'"')),!1):t:void Ue(e,"error","hydrate error, unknown node type: ".concat(e.type))}(e,r);if(!i)throw Q(r),new Error("[@my-react/react-dom] Hydration failed because the initial UI does not match what was rendered on the server.");return e.nativeNode=i,i}(e,o,n);return Boolean(a)}return!1}(e,r||t,K);o=a}else J(e,i,r||t)}catch(n){J(e,i,r||t)}return t.isHydrateRender&&e.nativeNode,e.patch=g.remove(e.patch,g.PATCH_TYPE.__create__),o}return n},Z=function(e,t){I(e)&&M(e,t.runtimeMap.eventMap,e.nativeNode,"onChange")},ee=function(e,t){if(e.nativeNode){var n=!!ft(e,t);if(g.include(e.type,l.NODE_TYPE.__plain__)){var r=e.pendingProps;Object.keys(r).forEach((function(i){if(xe(i))!function(e,t,n){var r=e.nativeNode;M(e,t.runtimeMap.eventMap,r,n)}(e,t,i);else if(Fe(i))!function(e,t,n){var r=e.nativeNode;Object.keys(n).forEach((function(e){return U(0,r,e,n[e])}))}(e,0,r[i]||{});else if(Ie(i))try{!function(e,t,n,r){var i,o=e.nativeNode;if(null!=r)if("className"===n)if(t){if(!(u=o.hasAttribute("class")))return w.current&&Ue(e,"warn","hydrate warning, dom '".concat(n,"' not match from server. no have this attr from server, client: ").concat(r)),void o.setAttribute("class",r);(l=null===(i=o.getAttribute("class"))||void 0===i?void 0:i.toString())!==String(r)&&(w.current&&Ue(e,"warn","hydrate warning, dom '".concat(n,"' not match from server. server: ").concat(l,", client: ").concat(r)),o.setAttribute("class",r))}else o[n].toString()!==String(r)&&(w.current&&Ue(e,"warn","hydrate warning, dom '".concat(n,"' not match from server. server: ").concat(o[n],", client: ").concat(r)),o[n]=r);else if(t&&120===n.charCodeAt(0))if(n.startsWith("xmlns")){var a=o.getAttributeNS(G,n);String(a)!==String(r)&&(w.current&&Ue(e,"warn","hydrate warning, dom '".concat(n,"' props not match from server. server: ").concat(a,", client: ").concat(r)),o.setAttributeNS(G,n,String(r)))}else n.startsWith("xlink")?(a=o.getAttributeNS(W,"href"),String(a)!==String(r)&&(w.current&&Ue(e,"warn","hydrate warning, dom 'href' props not match from server. server: ".concat(a,", client: ").concat(r)),o.setAttributeNS(W,"href",String(r)))):(a=o.getAttribute(n),String(a)!==String(r)&&w.current&&Ue(e,"warn","hydrate warning, dom '".concat(n,"' attr not match from server. server: ").concat(a,", client: ").concat(r)),o.setAttribute(n,String(r)));else if(!(n in o)||t||B(0,n)){var c=(t?Et(n):yt(n))||n,u=o.hasAttribute(c),l=o.getAttribute(c);if(!1===r){if(c.includes("-"))"false"!==l&&(w.current&&Ue(e,"warn","hydrate warning, dom '".concat(c,"' attr not match from server. server: ").concat(l,", client: ").concat(r)),o.setAttribute(c,r));else if(null!=l){if("false"===l)return;w.current&&Ue(e,"warn","hydrate warning, dom '".concat(c,"' attr not match from server. server: ").concat(l,", client: ").concat(r)),o.removeAttribute(c)}}else(null==l?void 0:l.toString())!==String(r)&&(w.current&&Ue(e,"warn",u?"hydrate warning, dom '".concat(c,"' attr not match from server. server: ").concat(l,", client: ").concat(r):"hydrate warning, dom '".concat(c,"' attr not match from server. no have this attr from server, client: ").concat(r)),o.setAttribute(c,String(r)))}else if(o[n].toString()!==String(r)){w.current&&Ue(e,"warn","hydrate warning, dom '".concat(n,"' props not match from server. server: ").concat(o[n],", client: ").concat(r));try{o[n]=!1===r?"":r}catch(e){}}}(e,n,i,r[i])}catch(e){}})),P.current&&A.current&&F[e.elementType]&&(Z(e,t),"select"===e.elementType&&requestAnimationFrame((function(){return x(e)}))),function(e){var t,n,r,i=e.pendingProps;if(i.dangerouslySetInnerHTML){var o=e.nativeNode,a=i.dangerouslySetInnerHTML;t=o,n=a.__html,(r=document.createElement("i")).innerHTML=n,r.innerHTML!==t.innerHTML&&(Ue(e,"warn","hydrate error, 'innerHTML' not match from server."),o.innerHTML=a.__html)}}(e)}g.include(e.type,l.NODE_TYPE.__text__)&&function(e){var t,n=e.nativeNode;n.textContent!==String(e.elementType)&&(" "===n.textContent&&""===e.elementType?n.textContent="":(w.current&&Ue(e,"warn","hydrate warning, dom 'text' not match from server. server: ".concat(n.textContent,", client: ").concat(null===(t=e.elementType)||void 0===t?void 0:t.toString())),n.textContent=e.elementType))}(e)}e.patch=g.remove(e.patch,g.PATCH_TYPE.__update__),e.patch=g.remove(e.patch,g.PATCH_TYPE.__append__),e.patch=g.remove(e.patch,g.PATCH_TYPE.__position__)},te=function(e){return null==e},ne=function e(t,n){if(!t)throw new Error("[@my-react/react-dom] position error, look like a bug for @my-react");if(t.patch=g.remove(t.patch,g.PATCH_TYPE.__append__),t.patch=g.remove(t.patch,g.PATCH_TYPE.__position__),!g.include(t.type,l.NODE_TYPE.__portal__))if(g.include(t.type,l.NODE_TYPE.__plain__|l.NODE_TYPE.__text__|l.NODE_TYPE.__comment__)){var r=n,i=n,o=(null==n?void 0:n.nativeNode)||(null==r?void 0:r.containerNode)||i.rootNode,a=t.nativeNode;o.appendChild(a)}else for(var c=t.child;c;)e(c,n),c=c.sibling},re=function e(t){if(!t||g.include(t.state,g.STATE_TYPE.__unmount__))return null;if(g.include(t.type,l.NODE_TYPE.__portal__))return null;if(t.nativeNode)return t;for(var n=t.child;n;){var r=e(n);if(r)return r;n=n.sibling}return null},ie=function e(t){return t?re(t)||e(null==t?void 0:t.sibling):null},oe=function e(t,n){return t?t===n?null:ie(t.sibling)||e(t.parent,n):null},ae=function e(t,n,r){if(!t)throw new Error("[@my-react/react-dom] position error, look like a bug for @my-react");if(t.patch=g.remove(t.patch,g.PATCH_TYPE.__append__),t.patch=g.remove(t.patch,g.PATCH_TYPE.__position__),!g.include(t.type,l.NODE_TYPE.__portal__))if(g.include(t.type,l.NODE_TYPE.__plain__|l.NODE_TYPE.__text__|l.NODE_TYPE.__comment__)){var i=r,o=r,a=(null==r?void 0:r.nativeNode)||(null==i?void 0:i.containerNode)||o.rootNode,c=n.nativeNode,u=t.nativeNode;try{a.insertBefore(u,c)}catch(e){a.append(u)}}else for(var s=t.child;s;)e(s,n,r),s=s.sibling},ce=function(e,t){if(g.include(e.patch,g.PATCH_TYPE.__position__)){var n=t.rootFiber,r=dt(e,t),i=oe(e,r||n);i?ae(e,i,r||t):ne(e,r||t)}},ue=a.__my_react_internal__.initRenderPlatform,le=a.__my_react_internal__.currentRenderPlatform,se=a.__my_react_shared__.enableDebugFiled,de=a.__my_react_shared__.enableScopeTreeLog;function fe(e){this.isServer||l.processState(e)}function _e(e){if(!this.isServer)if(e.fiber){var t=this;l.triggerError(e.fiber,e.error,(function(){t.yieldTask((function(){var t;window.dispatchEvent(new ErrorEvent("error",{error:e.error,message:null===(t=e.error)||void 0===t?void 0:t.message}))}))}))}else this.yieldTask((function(){var t;window.dispatchEvent(new ErrorEvent("error",{error:e.error,message:null===(t=e.error)||void 0===t?void 0:t.message}))}))}var pe=function(){l.enableFiberForLog.current=!0;var e=new ct(!1);ue(e)},me=function(){var e=le.current;e||pe(),se.current=!0,de.current=!0,(e=le.current).isServer=!1,e.dispatchState=fe,e.dispatchHook=l.processHookNode,e.dispatchError=_e},he=function e(t){if(t&&!g.include(t.state,g.STATE_TYPE.__unmount__)){var n=t;if(t.nativeNode)return t.nativeNode;if(n.containerNode)return n.containerNode;for(var r=t.child;r;){var i=e(r);if(i)return i;r=r.sibling}}};a.__my_react_shared__.enableHMRForDev;var ve=a.__my_react_internal__.currentRenderPlatform,ye=function(e){var t=e.__container__,n=null==t?void 0:t.rootFiber,r=ve.current;n&&t&&n instanceof l.MyReactFiberNode&&t instanceof Re?(Je(t),l.unmountContainer(t,(function(){var n,i;null===(i=null===(n=r.dispatchSet)||void 0===n?void 0:n.uniDelete)||void 0===i||i.call(n,t),delete e.__container__}))):n?Ue(n,"error","can not unmount app for current container"):console.error("can not unmount app for current container")},Ee=a.__my_react_internal__.currentRenderPlatform;a.__my_react_shared__.enableLegacyLifeCycle,a.__my_react_shared__.enableConcurrentMode,a.__my_react_shared__.enablePerformanceLog;var ge=g.once((function(){console.log("current site using %c@my-react%c to render, version: '".concat("0.3.4","'. see https://github.com/MrWangJustToDo/MyReact"),"color: white;background-color: rgba(10, 190, 235, 0.8); border-radius: 2px; padding: 2px 5px","")}));g.once((function(){console.log("[@my-react/react] performance warning log have been enabled!")})),g.once((function(){console.log("[@my-react/react] concurrent mode have been enabled!")})),g.once((function(){console.log("[@my-react/react] legacy 'UNSAFE' lifeCycle have been enabled!")}));var Te=function e(t,n,r){if(!a.isValidElement(t))throw new Error("[@my-react/react-dom] 'render' can only render a '@my-react' element");me();var i=n,o=i.__container__;if(o instanceof l.CustomRenderDispatch){var c=o.rootFiber;if(o.isAppCrashed||g.include(c.state,g.STATE_TYPE.__unmount__))return i.__fiber__=null,i.__container__=null,Je(o),void e(t,i,r);if(l.checkIsSameType(c,t))return c._installElement(t),l.safeCallWithCurrentFiber({fiber:c,action:function(){var e,t;null===(t=null===(e=l.listenerMap.get(o))||void 0===e?void 0:e.fiberTrigger)||void 0===t||t.forEach((function(e){return e(c,{needUpdate:!0,isSync:!0,isForce:!1,callback:r})}))}}),void l.triggerUpdate(c,g.STATE_TYPE.__triggerSync__,r);ye(i)}!function(e,t,n){var r,i;me(),ge();var o=new l.MyReactFiberNode(e),a=new Re(t,o),c=Ee.current;c.dispatchSet.uniPush(a),Array.from(t.children).forEach((function(e){var t;return null===(t=e.remove)||void 0===t?void 0:t.call(e)})),n&&a.pendingEffect(o,n),null===(r=t.removeAttribute)||void 0===r||r.call(t,"hydrate"),null===(i=t.setAttribute)||void 0===i||i.call(t,"render","@my-react"),t.__fiber__=o,t.__container__=a,a.enableASyncHydrate=!1,a.isClientRender=!0,Xe(a,c),l.initialFiberNode(o,a),Ze(o,a),delete a.isClientRender}(t,i,r)},be=a.__my_react_internal__.currentRenderPlatform;a.__my_react_shared__.enableLegacyLifeCycle,a.__my_react_shared__.enableConcurrentMode,a.__my_react_shared__.enablePerformanceLog;var Se=function(e){var t;if(null==e?void 0:e._runtimeError){for(;e._runtimeError.length>0;){var n=e._runtimeError.shift();window.dispatchEvent(new ErrorEvent("error",{error:n.value,message:null===(t=null==n?void 0:n.value)||void 0===t?void 0:t.message}))}delete e._runtimeError}},ke=function(e,t,n){if(!a.isValidElement(e))throw new Error("[@my-react/react-dom] 'hydrate' can only render a '@my-react' element");me(),ge(),N.current?function(e,t,n){_(void 0,void 0,void 0,(function(){var r,i,o,a;return p(this,(function(c){switch(c.label){case 0:return r=new l.MyReactFiberNode(e),i=new Re(t,r),(o=be.current).dispatchSet.uniPush(i),n&&i.pendingEffect(r,n),null===(a=t.setAttribute)||void 0===a||a.call(t,"hydrate","@my-react"),t.__fiber__=r,t.__container__=i,i.enableASyncHydrate=!0,i.isHydrateRender=!0,Xe(i,o),l.initialFiberNode(r,i),[4,et(r,i)];case 1:return c.sent(),Se(i),delete i.isHydrateRender,[2]}}))}))}(e,t,n):function(e,t,n){var r,i=new l.MyReactFiberNode(e),o=new Re(t,i),a=be.current;a.dispatchSet.uniPush(o),n&&o.pendingEffect(i,n),null===(r=t.setAttribute)||void 0===r||r.call(t,"hydrate","@my-react"),t.__fiber__=i,t.__container__=o,o.enableASyncHydrate=!1,o.isHydrateRender=!0,Xe(o,a),l.initialFiberNode(i,o),Ze(i,o,!0),Se(o),delete o.isHydrateRender}(e,t,n)};g.once((function(e){console.log("[@my-react/react-dom] you are using new entry function '".concat(e,"'"))}));var Ae=a.__my_react_internal__.currentRenderPlatform,Pe=function(e,t){return _(void 0,void 0,void 0,(function(){var n,r,i;return p(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),t._loading=!0,[4,t.loader()];case 1:return n=a.sent(),r="object"!==o(n)||"function"!=typeof(null==n?void 0:n.default)&&"object"!==o(null==n?void 0:n.default)?n:n.default,t._loaded=!0,t.render=r,t._update(e,t.render),[3,4];case 2:return i=a.sent(),Ae.current.dispatchError({fiber:e,error:i}),[3,4];case 3:return t._loading=!1,[7];case 4:return[2]}}))}))};a.__my_react_shared__.enableScopeTreeLog;var Ne,Oe,Ce={typeForRef:l.NODE_TYPE.__plain__|l.NODE_TYPE.__class__,typeForCreate:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__portal__|l.NODE_TYPE.__comment__,typeForUpdate:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__comment__,typeForAppend:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__comment__,typeForNativeNode:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__portal__|l.NODE_TYPE.__comment__},we=new Map,Re=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.rootNode=t,r.rootFiber=n,r.runtimeDom={svgMap:new WeakMap,elementMap:new WeakMap},r.version="0.3.4",r.enableUpdate=!0,r.runtimeRef=Ce,r.enableASyncHydrate=N.current,we.set(r,{domAppend:new Set,domUpdate:new Set,domSetRef:new Set}),r}return d(t,e),t.prototype.onDOMAppend=function(e){var t=we.get(this).domAppend;return t.add(e),function(){return t.delete(e)}},t.prototype.onceDOMAppend=function(e){var t=we.get(this).domAppend;t.add((function n(r){e(r),t.delete(n)}))},t.prototype.onDOMUpdate=function(e){var t=we.get(this).domUpdate;return t.add(e),function(){return t.delete(e)}},t.prototype.onceDOMUpdate=function(e){var t=we.get(this).domUpdate;t.add((function n(r){e(r),t.delete(n)}))},t.prototype.onDOMSetRef=function(e){var t=we.get(this).domSetRef;return t.add(e),function(){return t.delete(e)}},t.prototype.onceDOMSetRef=function(e){var t=we.get(this).domSetRef;t.add((function n(r){e(r),t.delete(n)}))},t.prototype.clientCommitCreate=function(e,t){return X(e,this,!!t)},t.prototype.commitCreate=function(e){this.clientCommitCreate(e)},t.prototype.clientCommitUpdate=function(e,t){var n,r,i;n=e,r=this,i=!!t,g.include(n.patch,g.PATCH_TYPE.__update__)&&(i?ee(n,r):function(e,t,n){var r;if(!e.nativeNode)throw new Error("[@my-react/react-dom] update error, dom not exist");var i=e.nativeNode,o=!!t.runtimeDom.svgMap.get(e);if(g.include(e.type,l.NODE_TYPE.__text__))i.textContent=e.elementType;else if(g.include(e.type,l.NODE_TYPE.__plain__)){var a=i,c=e.memoizedProps||{},u=e.pendingProps||{};if(V(c,u).forEach((function(n){var r=c[n],l=u[n];if(!(Object.is(r,l)||te(l)&&te(r)))if(xe(n))Y(e,t.runtimeMap.eventMap,i,n),M(e,t.runtimeMap.eventMap,i,n);else if(Fe(n)){var s=l||{},d=r||{},f=V(d,s);Array.from(f).filter((function(e){return!Object.is(d[e],s[e])})).forEach((function(e){return U(0,a,e,s[e])}))}else if(Ie(n))try{!function(e,t,n,r,i){if(r&&120===n.charCodeAt(0))n.startsWith("xmlns")?null==i?t.removeAttributeNS(G,n):t.setAttributeNS(G,n,String(i)):n.startsWith("xlink")?null==i?t.removeAttributeNS(W,"href"):t.setAttributeNS(W,"href",String(i)):null==i?t.removeAttribute(n):t.setAttribute(n,String(i));else if("className"!==n)if(!(n in t)||r||B(0,n))try{var o=(r?Et(n):yt(n))||n;null==i?t.removeAttribute(o):!1===i?o.includes("-")?t.setAttribute(o,String(i)):t.removeAttribute(o):(t.setAttribute(o,String(i)),"INPUT"===t.nodeName&&"autofocus"===o&&requestAnimationFrame((function(){return t.focus()})),"TEXTAREA"===t.nodeName&&"autofocus"===o&&requestAnimationFrame((function(){return t.focus()})))}catch(e){}else try{t[n]=null==i||!1===i?"":String(i)}catch(e){}else r?null==i?t.removeAttribute("class"):t.setAttribute("class",String(i)):t[n]=null==i?"":String(i)}(0,a,n,o,l)}catch(e){}})),P.current&&A.current&&F[e.elementType]&&(n?(Z(e,t),"select"===e.elementType&&requestAnimationFrame((function(){return x(e)}))):(function(e,t){e.pendingProps.onChange||e.memoizedProps.onChange||(I(e)?M(e,t.runtimeMap.eventMap,e.nativeNode,"onChange"):Y(e,t.runtimeMap.eventMap,e.nativeNode,"onChange"))}(e,t),"select"===e.elementType&&requestAnimationFrame((function(){return function(e){var t=e.nativeNode,n=e.pendingProps.multiple,r=e.pendingProps.value,i=e.pendingProps.defaultValue,o=e.memoizedProps.multiple,a=t;null!=r?D(a,!!n,r,!1):!!o!=!!n&&(null!=i?D(a,!!n,i,!0):D(a,!!n,n?[]:"",!1))}(e)})))),c.dangerouslySetInnerHTML&&!u.dangerouslySetInnerHTML)a.innerHTML="";else if(u.dangerouslySetInnerHTML&&u.dangerouslySetInnerHTML!==c.dangerouslySetInnerHTML&&u.dangerouslySetInnerHTML.__html!==(null===(r=c.dangerouslySetInnerHTML)||void 0===r?void 0:r.__html)){var s=u.dangerouslySetInnerHTML;a.innerHTML=s.__html}}}(n,r,n.memoizedProps===l.emptyProps),l.safeCallWithCurrentFiber({fiber:n,action:function(){var e;null===(e=r.patchToCommitUpdate)||void 0===e||e.call(r,n)}}),l.safeCallWithCurrentFiber({fiber:n,action:function(){var e,t;null===(t=null===(e=we.get(r))||void 0===e?void 0:e.domUpdate)||void 0===t||t.forEach((function(e){return e(n)}))}}),n.memoizedProps=n.pendingProps,n.patch=g.remove(n.patch,g.PATCH_TYPE.__update__))},t.prototype.commitUpdate=function(e){this.clientCommitUpdate(e)},t.prototype.commitAppend=function(e){!function(e,t){if(g.include(e.patch,g.PATCH_TYPE.__append__)){var n=dt(e,t),r=n;if(!(null==e?void 0:e.nativeNode))throw new Error("[@my-react/react-dom] append error, current render node not have a native node");var i=(null==n?void 0:n.nativeNode)||(null==r?void 0:r.containerNode)||t.rootNode,o=e.nativeNode;n&&_t[n.elementType]||i.appendChild(o),l.safeCallWithCurrentFiber({fiber:e,action:function(){var n;null===(n=t.patchToCommitAppend)||void 0===n||n.call(t,e)}}),l.safeCallWithCurrentFiber({fiber:e,action:function(){var n,r;null===(r=null===(n=we.get(t))||void 0===n?void 0:n.domAppend)||void 0===r||r.forEach((function(t){return t(e)}))}}),e.patch=g.remove(e.patch,g.PATCH_TYPE.__append__)}}(e,this)},t.prototype.commitPosition=function(e){ce(e,this)},t.prototype.commitSetRef=function(e){Ke(e,this)},t.prototype.commitUnsetRef=function(e){qe(e)},t.prototype.commitClear=function(e){var t;t=e,g.include(t.state,g.STATE_TYPE.__unmount__)||function(e){var t;if(e.nativeNode){var n=e.nativeNode;try{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}catch(t){Ue(e,"error","error for remove dom",t)}}}(t)},t.prototype.resolveLazyElement=function(e){return this.enableASyncHydrate?function(e,t){var n=e.elementType;return!0===n._loaded?l.WrapperByScope(a.createElement(n.render,e.pendingProps)):t.isHydrateRender?(t.pendingAsyncLoadFiberList=t.pendingAsyncLoadFiberList||new g.ListTree,t.pendingAsyncLoadFiberList.push(e),null):(!1===n._loading&&Pe(e,n),l.WrapperByScope(t.resolveSuspense(e)))}(e,this):function(e,t){var n=e.elementType;if(!0===n._loaded){if(t.isHydrateRender)return Ae.current.microTask((function(){n._update(e,n.render)})),l.WrapperByScope(t.resolveSuspense(e));var r=n.render;return l.WrapperByScope(a.createElement(r,e.pendingProps))}return!1===n._loading&&Pe(e,n),l.WrapperByScope(t.resolveSuspense(e))}(e,this)},t.prototype.reconcileCommit=function(e){var t=this;l.safeCallWithCurrentFiber({fiber:e,action:function(){var e;null===(e=t.beforeCommit)||void 0===e||e.call(t)}}),l.safeCallWithCurrentFiber({fiber:e,action:function(){var e,n;null===(n=null===(e=l.listenerMap.get(t))||void 0===e?void 0:e.beforeCommit)||void 0===n||n.forEach((function(e){return e()}))}}),q(e,this,this.isHydrateRender),l.safeCallWithCurrentFiber({fiber:e,action:function(){var e,n;null===(n=null===(e=l.listenerMap.get(t))||void 0===e?void 0:e.afterCommit)||void 0===n||n.forEach((function(e){return e()}))}}),l.safeCallWithCurrentFiber({fiber:e,action:function(){var e;null===(e=t.afterCommit)||void 0===e||e.call(t)}})},t.prototype.shouldYield=function(){return ht()},t.prototype.patchToFiberInitial=function(e){lt(e,this),Ve(e,this)},t.prototype.patchToFiberUpdate=function(e){Ve(e,this)},t.prototype.patchToFiberUnmount=function(e){st(e,this)},t}(l.CustomRenderDispatch),De=(Ne=function(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()},Oe={},function(){for(var e=[],t=0;t ")," (%o)"),t)},16,Ye=null,function(){for(var e=[],t=0;t]/;function mt(e){var t=""+e,n=pt.exec(t);if(!n)return t;var r,i,o="",a=0;for(i=n.index;iS.current;return e&&(k.current=null),e}return k.current=Date.now(),!1},vt=Le("animationIterationCount,borderImageOutset,borderImageSlice,borderImageWidth,boxFlex,boxFlexGroup,boxOrdinalGroup,columnCount,columns,flex,flexGrow,flexPositive,flexShrink,flexNegative,flexOrder,gridArea,gridRow,gridRowEnd,gridRowSpan,gridRowStart,gridColumn,gridColumnEnd,gridColumnSpan,gridColumnStart,fontWeight,lineClamp,lineHeight,opacity,order,orphans,tabSize,widows,zIndex,zoom,fillOpacity,floodOpacity,stopOpacity,strokeDasharray,strokeDashoffset,strokeMiterlimit,strokeOpacity,strokeWidth"),yt=je("as,accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Et=je("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),gt={className:"class",htmlFor:"for"},Tt=je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");a.__my_react_shared__.enableOptimizeTreeLog,Le(["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"].join(",")),Le(["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"].join(",")),Le(["dd","dt","li","option","optgroup","p","rp","rt"].join(","));var bt,St=function(){function e(e){this.content="",this.parentElement=null,this.content=""===e?" ":e}return e.prototype.toString=function(){return this.content.toString()},e}();d((function(){return null!==bt&&bt.apply(this,arguments)||this}),bt=St);var kt=function(){function e(){this.parentElement=null}return e.prototype.toString=function(){return"\x3c!-- [ --\x3e"},e}(),At=function(){function e(){this.parentElement=null}return e.prototype.toString=function(){return"\x3c!-- ] --\x3e"},e}(),Pt=function(){function e(e){this.style={},this.attrs={},this.children=[],this.parentElement=null,this.type=e,"html"===e&&(this.attrs=f(f({},this.attrs),{"data-server":"@my-react"}))}return e.prototype.addEventListener=function(){},e.prototype.removeEventListener=function(){},e.prototype.removeAttribute=function(e){delete this.attrs[e]},e.prototype.setAttribute=function(e,t){this.attrs[e]=t.toString()},e.prototype.append=function(){for(var e=this,t=[],n=0;n"):this.type?"<".concat(this.type).concat(this.serialize(),">").concat(this.renderChildren(),""):this.renderChildren()},e}(),Nt=function(e,t){var n;if(g.include(e.patch,g.PATCH_TYPE.__update__)){if(g.include(e.type,l.NODE_TYPE.__plain__)){var r=e.nativeNode,i=e.pendingProps||{};if(Object.keys(i).forEach((function(e){if(Ie(e)&&null!==i[e]&&void 0!==i[e]){var n=(t?Et(e):yt(e))||gt[e]||e;!1===i[e]?n.includes("-")?r.setAttribute(n,i[e]):r.removeAttribute(n):r.setAttribute(n,i[e])}if(Fe(e)){var o=i[e]||{};Object.keys(o).forEach((function(t){if(null!==o[t]&&void 0!==o[t]){if(!vt[t]&&"number"==typeof o[t])return void(r[e][t]="".concat(o[t],"px"));r[e][t]=o[t]}}))}})),i.dangerouslySetInnerHTML){var o=i.dangerouslySetInnerHTML;o.__html&&r.append(new St(null===(n=o.__html)||void 0===n?void 0:n.toString()))}}e.patch=g.remove(e.patch,g.PATCH_TYPE.__update__)}},Ot=function(e,t){if(g.include(e.patch,g.PATCH_TYPE.__create__)){if(g.include(e.type,l.NODE_TYPE.__text__))e.nativeNode=new St(mt(e.elementType.toString()));else if(g.include(e.type,l.NODE_TYPE.__plain__)){var n=e.elementType;e.nativeNode=new Pt(n)}else if(g.include(e.type,l.NODE_TYPE.__comment__))l.isCommentStartElement(e)?e.nativeNode=new kt:e.nativeNode=new At;else if(R)throw new Error("[@my-react/react-dom] createPortal() can not call on the server");e.patch=g.remove(e.patch,g.PATCH_TYPE.__create__)}},Ct={typeForRef:l.NODE_TYPE.__plain__|l.NODE_TYPE.__class__,typeForCreate:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__portal__|l.NODE_TYPE.__comment__,typeForUpdate:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__comment__,typeForAppend:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__comment__,typeForNativeNode:l.NODE_TYPE.__text__|l.NODE_TYPE.__plain__|l.NODE_TYPE.__portal__|l.NODE_TYPE.__comment__};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.runtimeDom={svgMap:new WeakMap,elementMap:new WeakMap},t.enableUpdate=!1,t.runtimeRef=Ct,t.enableASyncHydrate=!1,t}d(t,e),t.prototype.findFiberByName=function(e){var t=[];return function n(r){l.getElementName(r).includes(e)&&t.push(r),r.child&&n(r.child),r.sibling&&n(r.sibling)}(this.rootFiber),t},t.prototype.pendingRef=function(e){},t.prototype.pendingPosition=function(e){},t.prototype.pendingContext=function(e){},t.prototype.pendingUnmount=function(e,t){},t.prototype.pendingEffect=function(e,t){},t.prototype.pendingLayoutEffect=function(e,t){},t.prototype.commitCreate=function(e,t){return Ot(e),!0},t.prototype.commitUpdate=function(e,t){var n=this.runtimeDom.svgMap.get(e);Nt(e,!!n)},t.prototype.commitAppend=function(e){var t=this.runtimeDom.elementMap.get(e);T(e,t,this)},t.prototype.resolveLazyElement=function(e){return function(e,t){return l.WrapperByScope(t.resolveSuspense(e))}(e,this)},t.prototype.patchToFiberInitial=function(e){lt(e,this)}}(l.CustomRenderDispatch),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.runtimeDom={svgMap:new WeakMap,elementMap:new WeakMap},t.enableUpdate=!1,t.runtimeRef=Ct,t.enableASyncHydrate=!0,t}d(t,e),t.prototype.findFiberByName=function(e){var t=[];return function n(r){l.getElementName(r).includes(e)&&t.push(r),r.child&&n(r.child),r.sibling&&n(r.sibling)}(this.rootFiber),t},t.prototype.pendingRef=function(e){},t.prototype.pendingPosition=function(e){},t.prototype.pendingContext=function(e){},t.prototype.pendingUnmount=function(e,t){},t.prototype.pendingEffect=function(e,t){},t.prototype.pendingLayoutEffect=function(e,t){},t.prototype.commitCreate=function(e,t){return Ot(e),!0},t.prototype.commitUpdate=function(e,t){var n=this.runtimeDom.svgMap.get(e);Nt(e,!!n)},t.prototype.commitAppend=function(e){var t=this.runtimeDom.elementMap.get(e);T(e,t,this)},t.prototype.resolveLazyElement=function(e){return function(e,t){var n=e.elementType;return n._loaded?l.WrapperByScope(a.createElement(n.render,e.pendingProps)):(t.pendingAsyncLoadFiberList=t.pendingAsyncLoadFiberList||new g.ListTree,t.pendingAsyncLoadFiberList.push(e),null)}(e,this)},t.prototype.patchToFiberInitial=function(e){lt(e,this)}}(l.CustomRenderDispatch);var wt=a.__my_react_shared__.enableMockReact.current?"18.2.0":"0.3.4",Rt=l.safeCallWithSync,Dt=l.safeCall,xt=function(){};pe(),a.version&&a.version===(tt.current?"18.2.0":"0.3.4")||console.error("[@my-react/react-dom] the version of '@my-react/react' not match for '@my-react/react-dom', this may cause some bug, try to reinstall the 'node_modules' to fix this error");var Ft={enableControlComponent:A,enableDOMField:O,enableEventSystem:P,enableEventTrack:C},It={legacyNoopRender:xt,latestNoopRender:xt};t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={},t.__my_react_dom_internal__=It,t.__my_react_dom_shared__=Ft,t.createPortal=function(e,t){return a.createElement(g.Portal,{container:t},e)},t.createRoot=function(e,t){return{render:function(t){Te(t,e)},unmount:function(){ye(e)}}},t.findDOMNode=function(e){if(e instanceof a.Component){var t=l.getInstanceOwnerFiber(e);return he(t)||null}return e.nodeType===Node.ELEMENT_NODE?e:null},t.flushSync=Rt,t.hydrate=function(e,t,n){N.current=!1,ke(e,t,n)},t.hydrateRoot=function(e,t,n){return N.current=!0,ke(t,e),{render:function(t){Te(t,e)},unmount:function(){ye(e)}}},t.render=Te,t.unmountComponentAtNode=ye,t.unstable_batchedUpdates=Dt,t.version=wt},60496:(e,t,n)=>{"use strict";e.exports=n(23)},79598:(e,t,n)=>{"use strict";var r,i,o=n(6696),a=n(19953),c={exports:{}},u={};var l=(i||(i=1,c.exports=(r||(r=1,function(e){"function"==typeof SuppressedError&&SuppressedError;var t=Symbol.for("react.element"),n=Symbol.for("react.memo"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.context"),u=Symbol.for("react.provider"),l=Symbol.for("react.consumer"),s=Symbol.for("react.lazy"),d=Symbol.for("react.suspense"),f=Symbol.for("react.strict_mode"),_=Symbol.for("react.keep_live"),p=Symbol.for("react.scope"),m=Symbol.for("react.comment"),h=Symbol.for("react.offscreen"),v=Symbol.for("react.profiler");function y(e){return"object"===o(e)&&null!==e}function E(e){return"function"==typeof e}var g,T,b,S,k,A=function(){function e(){this.set=new Set,this.arr=new Array,this.length=0}return e.prototype.uniPop=function(){var e=this.arr.pop();return this.set.delete(e),this.length--,e},e.prototype.uniPush=function(e){if(this.set.has(e))return 0;this.set.add(e),this.arr.push(e),this.length++},e.prototype.uniShift=function(){var e=this.arr.shift();return this.set.delete(e),this.length--,e},e.prototype.uniUnshift=function(e){if(this.set.has(e))return 0;this.set.add(e),this.arr.unshift(e),this.length++},e.prototype.uniDelete=function(e){this.set.has(e)&&(this.set.delete(e),this.arr=this.arr.filter((function(t){return t!==e})),this.length--)},e.prototype.clear=function(){this.length=0,this.set.clear(),this.arr.length=0},e.prototype.getAll=function(){return this.arr},e}();e.HOOK_TYPE=void 0,(g=e.HOOK_TYPE||(e.HOOK_TYPE={}))[g.useId=0]="useId",g[g.useRef=1]="useRef",g[g.useMemo=2]="useMemo",g[g.useState=3]="useState",g[g.useSignal=4]="useSignal",g[g.useEffect=5]="useEffect",g[g.useContext=6]="useContext",g[g.useReducer=7]="useReducer",g[g.useCallback=8]="useCallback",g[g.useTransition=9]="useTransition",g[g.useDebugValue=10]="useDebugValue",g[g.useLayoutEffect=11]="useLayoutEffect",g[g.useDeferredValue=12]="useDeferredValue",g[g.useInsertionEffect=13]="useInsertionEffect",g[g.useImperativeHandle=14]="useImperativeHandle",g[g.useSyncExternalStore=15]="useSyncExternalStore",e.UpdateQueueType=void 0,(T=e.UpdateQueueType||(e.UpdateQueueType={}))[T.hook=2]="hook",T[T.component=1]="component",T[T.lazy=3]="lazy",T[T.context=4]="context",e.STATE_TYPE=void 0,(b=e.STATE_TYPE||(e.STATE_TYPE={}))[b.__initial__=0]="__initial__",b[b.__create__=1]="__create__",b[b.__stable__=2]="__stable__",b[b.__skippedConcurrent__=4]="__skippedConcurrent__",b[b.__skippedSync__=8]="__skippedSync__",b[b.__inherit__=16]="__inherit__",b[b.__triggerConcurrent__=32]="__triggerConcurrent__",b[b.__triggerConcurrentForce__=64]="__triggerConcurrentForce__",b[b.__triggerSync__=128]="__triggerSync__",b[b.__triggerSyncForce__=256]="__triggerSyncForce__",b[b.__unmount__=512]="__unmount__",b[b.__hmr__=1024]="__hmr__",b[b.__retrigger__=2048]="__retrigger__",b[b.__rerun__=4096]="__rerun__",e.PATCH_TYPE=void 0,(S=e.PATCH_TYPE||(e.PATCH_TYPE={}))[S.__initial__=0]="__initial__",S[S.__create__=1]="__create__",S[S.__update__=2]="__update__",S[S.__append__=4]="__append__",S[S.__position__=8]="__position__",S[S.__effect__=16]="__effect__",S[S.__layoutEffect__=32]="__layoutEffect__",S[S.__insertionEffect__=64]="__insertionEffect__",S[S.__unmount__=128]="__unmount__",S[S.__ref__=256]="__ref__",e.Effect_TYPE=void 0,(k=e.Effect_TYPE||(e.Effect_TYPE={}))[k.__initial__=0]="__initial__",k[k.__effect__=1]="__effect__",k[k.__unmount__=2]="__unmount__";var P=function(e){this.prev=null,this.next=null,this.value=e},N=function(){function e(){this.length=0;var e=null;Object.defineProperty(this,"stickyHead",{get:function(){return e},set:function(t){e=t}});var t=null;Object.defineProperty(this,"stickyFoot",{get:function(){return t},set:function(e){t=e}});var n=null;Object.defineProperty(this,"head",{get:function(){return n},set:function(e){n=e}});var r=null;Object.defineProperty(this,"foot",{get:function(){return r},set:function(e){r=e}})}return e.prototype.push=function(e){var t=new P(e);this.length++,this.foot?(this.foot.next=t,t.prev=this.foot,this.foot=t):(this.head=t,this.foot=t)},e.prototype.pushToLast=function(e){if(this.stickyFoot){var t=this.stickyFoot;this.push(t.value),this.stickyFoot=null}var n=new P(e);this.stickyFoot=n,this.length++},e.prototype.pushToHead=function(e){if(this.stickyHead){var t=this.stickyHead;this.unshift(t.value),this.stickyHead=null}var n=new P(e);this.stickyHead=n,this.length++},e.prototype.pop=function(){var e=this.stickyFoot||this.foot;return e?(this.delete(e),e.value):null},e.prototype.unshift=function(e){var t=new P(e);this.length++,this.head?(this.head.prev=t,t.next=this.head,this.head=t):(this.head=t,this.foot=t)},e.prototype.unshiftToHead=function(e){if(this.stickyHead){var t=this.stickyHead;this.unshift(t.value),this.stickyHead=null}var n=new P(e);this.stickyHead=n},e.prototype.unshiftToFoot=function(e){if(this.stickyFoot){var t=this.stickyFoot;this.push(t.value),this.stickyFoot=null}var n=new P(e);this.stickyFoot=n},e.prototype.shift=function(){var e=this.stickyHead||this.head;return e?(this.delete(e),e.value):null},e.prototype.pickHead=function(){var e,t;return(null===(e=this.stickyHead)||void 0===e?void 0:e.value)||(null===(t=this.head)||void 0===t?void 0:t.value)},e.prototype.pickFoot=function(){var e,t;return(null===(e=this.stickyFoot)||void 0===e?void 0:e.value)||(null===(t=this.foot)||void 0===t?void 0:t.value)},e.prototype.listToFoot=function(e){this.stickyHead&&e(this.stickyHead.value);for(var t=this.head;t;)e(t.value),t=t.next;this.stickyFoot&&e(this.stickyFoot.value)},e.prototype.listToHead=function(e){this.stickyFoot&&e(this.stickyFoot.value);for(var t=this.foot;t;)e(t.value),t=t.prev;this.stickyHead&&e(this.stickyHead.value)},e.prototype.toArray=function(){var e=[];return this.listToFoot((function(t){return e.push(t)})),e},e.prototype.delete=function(e){if(this.stickyHead===e)this.stickyHead=null,this.length--;else if(this.stickyFoot===e)this.stickyFoot=null,this.length--;else if(this.head===e){var t=e.next;e.next=null,t?(this.head=t,t.prev=null):(this.head=null,this.foot=null),this.length--}else if(this.foot===e){var n=e.prev;e.prev=null,n?(this.foot=n,n.next=null):(this.head=null,this.foot=null),this.length--}else this.hasNode(e)&&(n=e.prev,t=e.next,e.prev=null,e.next=null,n.next=t,t.prev=n,this.length--)},e.prototype.size=function(){return this.length},e.prototype.hasNode=function(e){if(this.stickyHead&&Object.is(this.stickyHead,e))return!0;if(this.stickyFoot&&Object.is(this.stickyFoot,e))return!0;for(var t=this.head;t;){if(Object.is(t,e))return!0;t=t.next}return!1},e.prototype.hasValue=function(e){if(this.stickyHead&&Object.is(this.stickyHead.value,e))return!0;if(this.stickyFoot&&Object.is(this.stickyFoot.value,e))return!0;for(var t=this.head;t;){if(Object.is(t.value,e))return!0;t=t.next}return!1},e.prototype.some=function(e){var t=!1;return this.listToFoot((function(n){t=t||e(n)})),t},e.prototype.every=function(e){var t=!0;return this.listToFoot((function(n){t=t&&e(n)})),t},e.prototype.concat=function(t){var n=new e;return this.listToFoot((function(e){return n.push(e)})),t.listToFoot((function(e){return n.push(e)})),n},e.prototype.clone=function(){var t=new e;return this.listToFoot((function(e){return t.push(e)})),t},e.prototype.clear=function(){this.length=0,this.head=null,this.foot=null,this.stickyHead=null,this.stickyFoot=null},e}();e.Comment=m,e.Consumer=l,e.Context=c,e.Element=t,e.ForwardRef=r,e.Fragment=a,e.KeepLive=_,e.Lazy=s,e.ListTree=N,e.ListTreeNode=P,e.Memo=n,e.Offscreen=h,e.Portal=i,e.Profiler=v,e.Provider=u,e.Scope=p,e.Strict=f,e.Suspense=d,e.TYPEKEY="$$typeof",e.UniqueArray=A,e.compareVersion=function(e,t){return function e(t,n){if(t.length&&n.length){var r=t[0],i=n[0];return r>i||!(i>r)&&e(t.slice(1),n.slice(1))}return!!t.length||!n.length}(e.split(".").map(Number),t.split(".").map(Number))},e.exclude=function(e,t){return!(e&t)},e.include=function(e,t){return e&t},e.isArray=function(e){return Array.isArray(e)},e.isArrayEquals=function(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)&&e.length===t.length){var n=!0;for(var r in e)if(!(n=n&&Object.is(e[r],t[r])))return n;return n}return!1},e.isCollection=function(e){return e instanceof Map||e instanceof Set||e instanceof WeakMap||e instanceof WeakSet},e.isFunction=E,e.isInteger=function(e){return Number.isInteger(Number(e))},e.isNormalEquals=function(e,t,n){if(Object.is(e,t))return!0;var r="function"==typeof n;if("object"===o(e)&&"object"===o(t)&&null!==e&&null!==t){var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;var c=!0;if(r){for(var u=0,l=i;u element only support 'key' / 'children' props, but got ".concat(d));if(!(null==s?void 0:s.children))throw new Error("[@my-react/react] need a render function as children, this is unsupported usage");if("function"!=typeof s.children)throw new Error("[@my-react/react] expect a render function as children but got ".concat(s.children,", this is unsupported usage"));if(null===(n=null===(t=s.children)||void 0===t?void 0:t.prototype)||void 0===n?void 0:n.isMyReactComponent)throw new Error("[@my-react/react] invalid render type for , expect a render function but got a class element ".concat(s.children))}else{if(u[l.TYPEKEY]===l.Context)throw new Error("[@my-react/react] look like you are using Context like , this is unsupported usage, please use or ");if(u[l.TYPEKEY]===l.Provider)for(var d in s=e.props)"key"===d||"children"===d||"value"===d||d.startsWith("_")||console.warn("[@my-react/react] element only support 'key' / 'value' / 'children' props, but got ".concat(d));else if(u[l.TYPEKEY]===l.ForwardRef){if("function"!=typeof(m=(p=c).render))throw new Error("[@my-react/react] 'forwardRef()' expect a render function but got ".concat(m,", this is unsupported usage"));if(null===(r=m.prototype)||void 0===r?void 0:r.isMyReactComponent)throw new Error("[@my-react/react] invalid render type for 'forwardRef()', expect a render function, but got a element class ".concat(m))}else if(u[l.TYPEKEY]===l.Memo){if("object"===o((p=c).render)){if(_(p.render))throw new Error("[@my-react/react] look like you are using memo like memo(), this is unsupported usage, please change to memo(Foo)");if(p.render[l.TYPEKEY]===l.Memo)throw new Error("[@my-react/react] look like you are using memo like memo(memo(Foo)), this is unsupported usage, please do not wrapper memo more than once");if(p.render[l.TYPEKEY]===l.Lazy)throw new Error("[@my-react/react] look like you are using memo like memo(lazy(loader fun)), this is unsupported usage");if(p.render[l.TYPEKEY]===l.Context)throw new Error("[@my-react/react] look like you are using memo like memo(Context), this is unsupported usage")}else if("function"!=typeof p.render)throw new Error("[@my-react/react] invalid render type for 'memo()', expect a render function or a render object, but got a ".concat(p.render))}else{if(u[l.TYPEKEY]!==l.Lazy)throw new Error("[@my-react/react] invalid object element type, current type is: ".concat(u));var p,m;if("function"!=typeof(m=(p=c).loader))throw new Error("[@my-react/react] invalid argument for lazy(loader), the loader expect a function, but got a ".concat(p.loader));if(null===(i=m.prototype)||void 0===i?void 0:i.isMyReactComponent)throw new Error("[@my-react/react] invalid argument for lazy(loader), the loader expect a function, but got a element class ".concat(p.loader))}}}else{if(c===l.Fragment)for(var d in e.props)"key"===d||"children"===d||"wrap"===d||d.startsWith("_")||console.warn("[@my-react/react] element only support 'key' / 'children' props, but got ".concat(d));if(c===l.Suspense)for(var d in e.props)"key"===d||"children"===d||"fallback"===d||d.startsWith("_")||console.warn("[@my-react/react] element only support 'key' / 'children' / 'fallback' props, but got ".concat(d))}}e._store.validType=!0}f.current=a}(c),c},t.jsxs=function(e,t,n,r,i){return v(e,t,n)}},3153:(e,t,n)=>{"use strict";e.exports=n(79598)},67989:(e,t,n)=>{"use strict";e.exports=n(79598)},40398:(e,t,n)=>{"use strict";var r,i,o=n(6696),a={exports:{}},c={};var u,l=(i||(i=1,a.exports=(r||(r=1,function(e){"function"==typeof SuppressedError&&SuppressedError;var t=Symbol.for("react.element"),n=Symbol.for("react.memo"),r=Symbol.for("react.forward_ref"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.context"),u=Symbol.for("react.provider"),l=Symbol.for("react.consumer"),s=Symbol.for("react.lazy"),d=Symbol.for("react.suspense"),f=Symbol.for("react.strict_mode"),_=Symbol.for("react.keep_live"),p=Symbol.for("react.scope"),m=Symbol.for("react.comment"),h=Symbol.for("react.offscreen"),v=Symbol.for("react.profiler");function y(e){return"object"===o(e)&&null!==e}function E(e){return"function"==typeof e}var g,T,b,S,k,A=function(){function e(){this.set=new Set,this.arr=new Array,this.length=0}return e.prototype.uniPop=function(){var e=this.arr.pop();return this.set.delete(e),this.length--,e},e.prototype.uniPush=function(e){if(this.set.has(e))return 0;this.set.add(e),this.arr.push(e),this.length++},e.prototype.uniShift=function(){var e=this.arr.shift();return this.set.delete(e),this.length--,e},e.prototype.uniUnshift=function(e){if(this.set.has(e))return 0;this.set.add(e),this.arr.unshift(e),this.length++},e.prototype.uniDelete=function(e){this.set.has(e)&&(this.set.delete(e),this.arr=this.arr.filter((function(t){return t!==e})),this.length--)},e.prototype.clear=function(){this.length=0,this.set.clear(),this.arr.length=0},e.prototype.getAll=function(){return this.arr},e}();e.HOOK_TYPE=void 0,(g=e.HOOK_TYPE||(e.HOOK_TYPE={}))[g.useId=0]="useId",g[g.useRef=1]="useRef",g[g.useMemo=2]="useMemo",g[g.useState=3]="useState",g[g.useSignal=4]="useSignal",g[g.useEffect=5]="useEffect",g[g.useContext=6]="useContext",g[g.useReducer=7]="useReducer",g[g.useCallback=8]="useCallback",g[g.useTransition=9]="useTransition",g[g.useDebugValue=10]="useDebugValue",g[g.useLayoutEffect=11]="useLayoutEffect",g[g.useDeferredValue=12]="useDeferredValue",g[g.useInsertionEffect=13]="useInsertionEffect",g[g.useImperativeHandle=14]="useImperativeHandle",g[g.useSyncExternalStore=15]="useSyncExternalStore",e.UpdateQueueType=void 0,(T=e.UpdateQueueType||(e.UpdateQueueType={}))[T.hook=2]="hook",T[T.component=1]="component",T[T.lazy=3]="lazy",T[T.context=4]="context",e.STATE_TYPE=void 0,(b=e.STATE_TYPE||(e.STATE_TYPE={}))[b.__initial__=0]="__initial__",b[b.__create__=1]="__create__",b[b.__stable__=2]="__stable__",b[b.__skippedConcurrent__=4]="__skippedConcurrent__",b[b.__skippedSync__=8]="__skippedSync__",b[b.__inherit__=16]="__inherit__",b[b.__triggerConcurrent__=32]="__triggerConcurrent__",b[b.__triggerConcurrentForce__=64]="__triggerConcurrentForce__",b[b.__triggerSync__=128]="__triggerSync__",b[b.__triggerSyncForce__=256]="__triggerSyncForce__",b[b.__unmount__=512]="__unmount__",b[b.__hmr__=1024]="__hmr__",b[b.__retrigger__=2048]="__retrigger__",b[b.__rerun__=4096]="__rerun__",e.PATCH_TYPE=void 0,(S=e.PATCH_TYPE||(e.PATCH_TYPE={}))[S.__initial__=0]="__initial__",S[S.__create__=1]="__create__",S[S.__update__=2]="__update__",S[S.__append__=4]="__append__",S[S.__position__=8]="__position__",S[S.__effect__=16]="__effect__",S[S.__layoutEffect__=32]="__layoutEffect__",S[S.__insertionEffect__=64]="__insertionEffect__",S[S.__unmount__=128]="__unmount__",S[S.__ref__=256]="__ref__",e.Effect_TYPE=void 0,(k=e.Effect_TYPE||(e.Effect_TYPE={}))[k.__initial__=0]="__initial__",k[k.__effect__=1]="__effect__",k[k.__unmount__=2]="__unmount__";var P=function(e){this.prev=null,this.next=null,this.value=e},N=function(){function e(){this.length=0;var e=null;Object.defineProperty(this,"stickyHead",{get:function(){return e},set:function(t){e=t}});var t=null;Object.defineProperty(this,"stickyFoot",{get:function(){return t},set:function(e){t=e}});var n=null;Object.defineProperty(this,"head",{get:function(){return n},set:function(e){n=e}});var r=null;Object.defineProperty(this,"foot",{get:function(){return r},set:function(e){r=e}})}return e.prototype.push=function(e){var t=new P(e);this.length++,this.foot?(this.foot.next=t,t.prev=this.foot,this.foot=t):(this.head=t,this.foot=t)},e.prototype.pushToLast=function(e){if(this.stickyFoot){var t=this.stickyFoot;this.push(t.value),this.stickyFoot=null}var n=new P(e);this.stickyFoot=n,this.length++},e.prototype.pushToHead=function(e){if(this.stickyHead){var t=this.stickyHead;this.unshift(t.value),this.stickyHead=null}var n=new P(e);this.stickyHead=n,this.length++},e.prototype.pop=function(){var e=this.stickyFoot||this.foot;return e?(this.delete(e),e.value):null},e.prototype.unshift=function(e){var t=new P(e);this.length++,this.head?(this.head.prev=t,t.next=this.head,this.head=t):(this.head=t,this.foot=t)},e.prototype.unshiftToHead=function(e){if(this.stickyHead){var t=this.stickyHead;this.unshift(t.value),this.stickyHead=null}var n=new P(e);this.stickyHead=n},e.prototype.unshiftToFoot=function(e){if(this.stickyFoot){var t=this.stickyFoot;this.push(t.value),this.stickyFoot=null}var n=new P(e);this.stickyFoot=n},e.prototype.shift=function(){var e=this.stickyHead||this.head;return e?(this.delete(e),e.value):null},e.prototype.pickHead=function(){var e,t;return(null===(e=this.stickyHead)||void 0===e?void 0:e.value)||(null===(t=this.head)||void 0===t?void 0:t.value)},e.prototype.pickFoot=function(){var e,t;return(null===(e=this.stickyFoot)||void 0===e?void 0:e.value)||(null===(t=this.foot)||void 0===t?void 0:t.value)},e.prototype.listToFoot=function(e){this.stickyHead&&e(this.stickyHead.value);for(var t=this.head;t;)e(t.value),t=t.next;this.stickyFoot&&e(this.stickyFoot.value)},e.prototype.listToHead=function(e){this.stickyFoot&&e(this.stickyFoot.value);for(var t=this.foot;t;)e(t.value),t=t.prev;this.stickyHead&&e(this.stickyHead.value)},e.prototype.toArray=function(){var e=[];return this.listToFoot((function(t){return e.push(t)})),e},e.prototype.delete=function(e){if(this.stickyHead===e)this.stickyHead=null,this.length--;else if(this.stickyFoot===e)this.stickyFoot=null,this.length--;else if(this.head===e){var t=e.next;e.next=null,t?(this.head=t,t.prev=null):(this.head=null,this.foot=null),this.length--}else if(this.foot===e){var n=e.prev;e.prev=null,n?(this.foot=n,n.next=null):(this.head=null,this.foot=null),this.length--}else this.hasNode(e)&&(n=e.prev,t=e.next,e.prev=null,e.next=null,n.next=t,t.prev=n,this.length--)},e.prototype.size=function(){return this.length},e.prototype.hasNode=function(e){if(this.stickyHead&&Object.is(this.stickyHead,e))return!0;if(this.stickyFoot&&Object.is(this.stickyFoot,e))return!0;for(var t=this.head;t;){if(Object.is(t,e))return!0;t=t.next}return!1},e.prototype.hasValue=function(e){if(this.stickyHead&&Object.is(this.stickyHead.value,e))return!0;if(this.stickyFoot&&Object.is(this.stickyFoot.value,e))return!0;for(var t=this.head;t;){if(Object.is(t.value,e))return!0;t=t.next}return!1},e.prototype.some=function(e){var t=!1;return this.listToFoot((function(n){t=t||e(n)})),t},e.prototype.every=function(e){var t=!0;return this.listToFoot((function(n){t=t&&e(n)})),t},e.prototype.concat=function(t){var n=new e;return this.listToFoot((function(e){return n.push(e)})),t.listToFoot((function(e){return n.push(e)})),n},e.prototype.clone=function(){var t=new e;return this.listToFoot((function(e){return t.push(e)})),t},e.prototype.clear=function(){this.length=0,this.head=null,this.foot=null,this.stickyHead=null,this.stickyFoot=null},e}();e.Comment=m,e.Consumer=l,e.Context=c,e.Element=t,e.ForwardRef=r,e.Fragment=a,e.KeepLive=_,e.Lazy=s,e.ListTree=N,e.ListTreeNode=P,e.Memo=n,e.Offscreen=h,e.Portal=i,e.Profiler=v,e.Provider=u,e.Scope=p,e.Strict=f,e.Suspense=d,e.TYPEKEY="$$typeof",e.UniqueArray=A,e.compareVersion=function(e,t){return function e(t,n){if(t.length&&n.length){var r=t[0],i=n[0];return r>i||!(i>r)&&e(t.slice(1),n.slice(1))}return!!t.length||!n.length}(e.split(".").map(Number),t.split(".").map(Number))},e.exclude=function(e,t){return!(e&t)},e.include=function(e,t){return e&t},e.isArray=function(e){return Array.isArray(e)},e.isArrayEquals=function(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)&&e.length===t.length){var n=!0;for(var r in e)if(!(n=n&&Object.is(e[r],t[r])))return n;return n}return!1},e.isCollection=function(e){return e instanceof Map||e instanceof Set||e instanceof WeakMap||e instanceof WeakSet},e.isFunction=E,e.isInteger=function(e){return Number.isInteger(Number(e))},e.isNormalEquals=function(e,t,n){if(Object.is(e,t))return!0;var r="function"==typeof n;if("object"===o(e)&&"object"===o(t)&&null!==e&&null!==t){var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;var c=!0;if(r){for(var u=0,l=i;u1?l.children=n:1===v&&(l.children=n[0]),G({type:e,key:i,ref:a,props:l,_self:c,_source:u,_owner:p.current})}function K(e,t,n){if(null==e)throw new Error("[@my-react/react] cloneElement(...) need a valid element as params");if("object"!==o(e))return e;var r=Object.assign({},e.props),i=e.key,a=e.ref,c=e.type,u=e._self,l=e._source,s=e._owner;if(null!=t){var d=t.ref,f=t.key;t.__self,t.__source;var _=W(t,["ref","key","__self","__source"]);void 0!==d&&(a=d,s=p.current),void 0!==f&&(i=f+"");var m={};if("function"==typeof e.type||"object"===o(e.type)){var h=e.type;m=(null==h?void 0:h.defaultProps)||{}}Object.keys(_).forEach((function(e){return r[e]=void 0===_[e]?m[e]:_[e]}))}var v=arguments.length-2;return v>1?(n=Array.from(arguments).slice(2),r.children=n):1===v&&(r.children=n),G({type:c,key:i,ref:a,props:r,_self:u,_source:l,_owner:s})}var q=function e(t){return Array.isArray(t)?t.reduce((function(t,n){return t.concat(e(n))}),[]):[t]},Q=function(e,t,n){var r=q(e);return r.map((function(e,i){return t(e)?n.call(null,e,i,r):e}))},$=function(e){function t(t,n){var r=e.call(this)||this;return r.state=null,r.props=null,r.context=null,r.setState=function(e,t){var n={type:l.UpdateQueueType.component,payLoad:e,callback:t,trigger:r,isForce:!1,isSync:T.current},i=h.current;null==i||i.dispatchState(n)},r.forceUpdate=function(){var e={type:l.UpdateQueueType.component,trigger:r,isForce:!0,isSync:T.current},t=h.current;null==t||t.dispatchState(e)},r.props=t||null,r.context=n||null,r}return B(t,e),Object.defineProperty(t.prototype,"isReactComponent",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMyReactComponent",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.render=function(){return null},t}(Y),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return B(t,e),t.prototype.shouldComponentUpdate=function(e,t,n){return!l.isNormalEquals(e,this.props)||!l.isNormalEquals(t,this.state)||!l.isNormalEquals(n,this.context)},t}($),X=[],Z=function(e,t){return"function"==typeof t?t(e):t},ee=function(e){var t=h.current;if(!t)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return t.dispatchHook({type:l.HOOK_TYPE.useState,value:"function"==typeof e?e:function(){return e},reducer:Z,deps:X})},te=function(e,t){var n=h.current;if(!n)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return n.dispatchHook({type:l.HOOK_TYPE.useEffect,value:e,reducer:Z,deps:t})},ne=function(e,t){var n=h.current;if(!n)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return n.dispatchHook({type:l.HOOK_TYPE.useLayoutEffect,value:e,reducer:Z,deps:t})},re=function(e,t){var n=h.current;if(!n)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return n.dispatchHook({type:l.HOOK_TYPE.useCallback,value:e,reducer:Z,deps:t})},ie=function(e,t){var n=h.current;if(!n)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return n.dispatchHook({type:l.HOOK_TYPE.useMemo,value:e,reducer:Z,deps:t})},oe=function(e){var t=h.current;if(!t)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return t.dispatchHook({type:l.HOOK_TYPE.useRef,value:s(e),reducer:Z,deps:X})},ae=function(e){var t=h.current;if(!t)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return t.dispatchHook({type:l.HOOK_TYPE.useContext,value:e,reducer:Z,deps:X})},ce=function(e,t,n){var r=h.current;if(!r)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return r.dispatchHook({type:l.HOOK_TYPE.useReducer,value:"function"==typeof n?function(){return n(t)}:function(){return t},reducer:e,deps:X})},ue=function(e,t,n){var r=h.current;if(!r)throw new Error('[@my-react/react] current hook statement have been invoke in a invalid environment, you may: \n 1. using hook in a wrong way \n 2. current environment have multiple "@my-react/react" package \n 3. current environment not have a valid "Platform" package');return r.dispatchHook({type:l.HOOK_TYPE.useImperativeHandle,value:e,reducer:t,deps:n})},le=function(){for(var e=[],t=0;t{"use strict";e.exports=n(40398)},12277:(e,t,n)=>{"use strict";e.exports=n(3153)},21756:(e,t,n)=>{"use strict";n.d(t,{A7W:()=>ce,BVy:()=>Un,DJi:()=>ue,GYB:()=>Ln,H4n:()=>Fn,Hjw:()=>Yn,LYV:()=>In,YgP:()=>Mn,cUd:()=>jn,qqm:()=>Se});var r=n(56212),i=n(52016),o=n(28967),a=n(18206),c=n(51051),u=n(19953),l=n(96054),s=n(51935),d=n(2984),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>1})).map((function(e){return String.fromCharCode(e)})).join(""),Cn=new i.P({uri:"https://api.github.com/graphql",fetch:"function"==typeof d.fetch?(5e3,function(e,t){return new Promise((function(n,r){var i=new AbortController,o=i.signal,a=setTimeout((function(){i.abort(),r(new Error("Request timed out"))}),5e3);(0,d.fetch)(e,f(f({},t),{signal:o})).then((function(e){clearTimeout(a),n(e)})).catch((function(e){clearTimeout(a),r(e)}))}))}):d.fetch}),wn=(0,s.S)((function(e){var t=e.networkError,n=e.graphQLErrors;t&&console.error("network error \n[message]: ".concat(t.message," \n[stack]: ").concat(t.stack)),(null==n?void 0:n.length)&&n.forEach((function(e){console.error("graphql error \n[message]: ".concat(e.message," \n[stack]: ").concat(e.path))}))})),Rn=(0,l.o)((function(e,t){var n=t.headers;return{headers:f(f({},n),{Authorization:"token ".concat(Nn?atob(On):Buffer.from(On,"base64").toString())})}})),Dn="undefined"==typeof window,xn=function(e,t){void 0===e&&(e={});var n=null!=p?p:function(e,t){void 0===e&&(e={});var n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"use strict";n.d(t,{Z:()=>f});var r=n(77343),i=n(16801),o=n(88736),a=n(13334),c=n(66054),u=n(67989),l=["children"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{R:()=>P,T:()=>N});var r=n(77343),i=n(16801),o=n(88736),a=n(13334),c=n(48834),u=n(66054),l=n(74445),s=n(94064),d=n(19953),f=n(42959),_=n.n(f),p=n(69971),m=n(15372),h=n(1014),v=n(84071),y=n(2694),E=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{d:()=>r});var r=1580},15372:(e,t,n)=>{"use strict";n.d(t,{of:()=>r,rm:()=>o,ys:()=>i});var r=10,i="drag-able-item",o="ignore-drag-able-item"},32523:(e,t,n)=>{"use strict";var r=n(16167),i=n(28092),o=n.n(i),a=n(19953),c=n(60496),u=n(69737),l=n(53963),s=n(88736),d=n(25508),f=n(42405),_=n(5857),p=n(81867),m=n(40803),h=n(49305),v=n(8394).m,y=n(1014),E=n(61500);var g=n(67989),T=(0,a.forwardRef)((function(e,t){var n,r,i,o=(0,s.c)(5),u=(0,a.useState)(),l=(0,E.A)(u,2),d=l[0],f=l[1];return o[0]===Symbol.for("react.memo_cache_sentinel")?(n=function(){var e=document.createElement("div");e.id="__loading_bar__";var t=document.body.querySelector("#__content__");return document.body.insertBefore(e,t),f(e),function(){document.body.removeChild(e)}},r=[],o[0]=n,o[1]=r):(n=o[0],r=o[1]),(0,a.useEffect)(n,r),o[2]!==d||o[3]!==t?(i=d?(0,c.createPortal)((0,g.jsx)("div",{ref:t,className:"ITbAOd",style:{height:"0px",transform:"scale(0, 1)"}}),d):null,o[2]=d,o[3]=t,o[4]=i):i=o[4],i}));T.displayName="_Bar";var b=(0,a.memo)(T),S=function(){var e,t=(0,s.c)(4),n=(0,y.M3)(k);t[0]!==n?(e={loading:n},t[0]=n,t[1]=e):e=t[1];var r,i=(0,y.zX)(e).ref;return t[2]!==i?(r=(0,g.jsx)(b,{ref:i}),t[2]=i,t[3]=r):r=t[3],r};function k(e){return e.loading}var A=n(50651),P=n(23623),N=n(10379),O=n(60042),C=(0,a.createContext)(null),w=function(e){var t,n=(0,s.c)(8),r=e.children,i=e.routes,o=e.LoadingBar;n[0]!==i?(t={routes:i,preLoad:O.ws},n[0]=i,n[1]=t):t=n[1];var a,c,u=(0,y.JO)(t).loaded;return u?(n[2]!==o?(a=(0,g.jsx)(o,{}),n[2]=o,n[3]=a):a=n[3],n[4]!==r||n[5]!==u||n[6]!==a?(c=(0,g.jsxs)(C.Provider,{value:u,children:[a,r]}),n[4]=r,n[5]=u,n[6]=a,n[7]=c):c=n[7],c):null},R=function(){var e,t=(0,s.c)(4),n=(0,a.useContext)(C),r=(0,N.Ye)(v,null==n?void 0:n.location),i=(0,y.aq)();return t[0]!==r||t[1]!==i||t[2]!==(null==n?void 0:n.location)?(e=(0,g.jsx)(g.Fragment,{children:(0,l.getIsAnimateRouter)()?(0,g.jsx)(A.N,{mode:"wait",children:(0,g.jsx)(a.Fragment,{children:(0,g.jsx)(P.P.div,{initial:i?"initial":"in",animate:"in",exit:"out",style:{height:"fit-content"},variants:{initial:{opacity:.2,translateY:-100,transformOrigin:"center top",scale:.8,borderRadius:6,boxShadow:"1px 1px 2px 3px rgba(0, 0, 0, 0.2), 1px -1px 2px 4px rgba(0, 0, 0, 0.2)"},in:{opacity:1,translateY:0,scale:1,transformOrigin:"center top",borderRadius:0,boxShadow:"0px 0px 0px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px 0px rgba(0, 0, 0, 0.1)"},out:{opacity:0,translateY:200,scale:.8,transformOrigin:"center top",borderRadius:10,boxShadow:"1px 1px 2px 3px rgba(0, 0, 0, 0.1), 1px -1px 2px 4px rgba(0, 0, 0, 0.1)"}},transition:{type:"spring",damping:10,stiffness:50},"data-animate-route":!0,children:(0,g.jsx)(a.Suspense,{children:r})})},null==n?void 0:n.location.pathname)}):(0,g.jsx)(a.Suspense,{children:r})}),t[0]=r,t[1]=i,t[2]=null==n?void 0:n.location,t[3]=e):e=t[3],e},D=n(45399),x=n(21756),F=function(e){var t,n=(0,s.c)(3),r=e.children,i=(0,l.useAppSelector)(I),o=(0,N.zy)().pathname,a=i[(0,O.HG)(o)],c=null==a?void 0:a.$$__apollo__$$,u=(0,x.LYV)(c,!0);return n[0]!==u||n[1]!==r?(t=(0,g.jsx)(D.X,{client:u,children:r}),n[0]=u,n[1]=r,n[2]=t):t=n[2],t};function I(e){return e.client.clientProps.data}var L=n(48945),j=n(33465),M=n(73137),Y=n(41410),U=n(6910);var H=function(e){(0,M.A)(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,U.A)(t);if(n){var i=(0,U.A)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,Y.A)(this,e)});function i(){var e;(0,L.A)(this,i);for(var t=arguments.length,n=new Array(t),o=0;o{"use strict";n.d(t,{RX:()=>R,Gi:()=>w,yx:()=>C,M0:()=>p,B0:()=>h,Su:()=>U,wt:()=>l,mZ:()=>K,al:()=>j,aq:()=>M,M3:()=>u,zX:()=>Y,Qc:()=>G,TP:()=>I,dn:()=>F,j3:()=>x,pI:()=>D,JO:()=>b,LG:()=>v,lW:()=>V});var r=n(88736),i=n(53963),o=n(36211),a=n(91004),c=n(86175),u=(0,c.ur)((0,c.wR)((function(){return{loading:!1}}),{generateActions:function(e){return{setLoading:function(t){e.loading=t}}}}),{withNamespace:"useLoading",withDeepSelector:!1}),l=(0,c.ur)((function(){return{state:!0}}),{withActions:function(e){return{enable:function(){return e.state=!0},disable:function(){return e.state=!1}}},withNamespace:"useFoot"}),s=n(2694),d=n(61500),f=n(19953),_=n(9245),p=function(e,t){var n,i=(0,r.c)(5),o=void 0===t?200:t,a=(0,f.useState)(e),c=(0,d.A)(a,2),u=c[0],l=c[1];i[0]!==o?(n=(0,_.A)(l,o),i[0]=o,i[1]=n):n=i[1];var s,p=n;return i[2]!==p||i[3]!==u?(s=[u,p],i[2]=p,i[3]=u,i[4]=s):s=i[4],s},m={width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0};function h(e){var t,n,i,o=(0,r.c)(11),a=e.ref,c=e.cssSelector,u=e.deps,l=p(m,100),_=(0,d.A)(l,2),h=_[0],v=_[1];return o[0]!==c||o[1]!==a||o[2]!==v?(t=function(){var e=a?a.current:c?document.querySelector(c):null;if(e){if(window.ResizeObserver){var t=new ResizeObserver((function(){v(e.getBoundingClientRect())}));return t.observe(e),function(){return t.disconnect()}}var n=function(){return v(e.getBoundingClientRect())};return n(),window.addEventListener("resize",n,{passive:!0}),function(){return window.removeEventListener("resize",n)}}},o[0]=c,o[1]=a,o[2]=v,o[3]=t):t=o[3],o[4]!==u?(n=u||[],o[4]=u,o[5]=n):n=o[5],o[6]!==c||o[7]!==a||o[8]!==v||o[9]!==n?(i=[a,c,v].concat((0,s.A)(n)),o[6]=c,o[7]=a,o[8]=v,o[9]=n,o[10]=i):i=o[10],(0,f.useEffect)(t,i),h}var v=function(e){var t,n,i,o=(0,r.c)(6),a=e.ref,c=(0,f.useState)(y),u=(0,d.A)(c,2),l=u[0],s=u[1];return o[0]!==a.current?(t=function(){var e=a.current;e&&s(e.getBoundingClientRect())},o[0]=a.current,o[1]=t):t=o[1],o[2]!==a?(n=[a],o[2]=a,o[3]=n):n=o[3],(0,f.useEffect)(t,n),o[4]!==l?(i={size:l,setSize:s},o[4]=l,o[5]=i):i=o[5],i};function y(){return m}var E=n(40803),g=n(10379),T=n(49305),b=function(e){var t=e.routes,n=e.preLoad,r=(0,f.useRef)(),c=(0,E.Pj)(),l=(0,g.zy)(),s=(0,g.Zp)(),_=(0,T.ok)(),p=(0,d.A)(_,1)[0],m=u((function(e){return e.setLoading})),h=(0,f.useRef)(!!(0,i.getIsP_CSR)()),v=(0,f.useRef)(""),y=(0,f.useRef)(""),b=(0,f.useRef)(null),S=(0,f.useRef)(null),k=(0,f.useRef)(c),A=(0,f.useState)((0,i.getIsP_CSR)()?void 0:{location:l,query:p}),P=(0,d.A)(A,2),N=P[0],O=P[1];return y.current="".concat(l.pathname,"?").concat(p.toString()),v.current=N?"".concat(N.location.pathname,"?").concat(N.query.toString()):"",k.current=c,(0,f.useEffect)((function(){if(h.current)h.current=!1;else{var e=r.current&&r.current==="".concat(l.pathname,"?").concat(p.toString());e||m(!1),v.current!=="".concat(l.pathname,"?").concat(p.toString())&&(e||(b.current&&clearTimeout(b.current),b.current=null,S.current&&clearTimeout(S.current),S.current=null,b.current=setTimeout((function(){m(!0)}),200)),c=p,n(t,(i=l).pathname,c,k.current).then((function(e){var t="".concat(i.pathname,"?").concat(c.toString());if(t===y.current){var n,u=e||{},l=u.redirect,d=u.error,f=u.props;r.current=l?"".concat(l.location.pathName,"?").concat(null===(n=l.location.query)||void 0===n?void 0:n.toString()):"",d?(console.error(d),m(!1)):l?s(r.current):S.current=setTimeout((function(){b.current&&clearTimeout(b.current),b.current=null,y.current===t&&(f&&k.current.dispatch((0,a.Go)({name:o.V.clientProps,data:f})),m(!1),O({location:i,query:c}))}),50)}})))}var i,c}),[l,n,t,s,p,m]),{loaded:N}},S=n(89206),k=n(60042),A=function(e){var t=document.getElementById(e);t&&(t.style.removeProperty("transform"),t.style.removeProperty("filter"),t.addEventListener("transitionend",(function(){t.style.removeProperty("overflow"),t.style.removeProperty("will-change"),t.style.removeProperty("transition")}),{once:!0}))},P=function(e){e.forEach(A)},N="__content__",O=0,C=(0,f.createContext)((function(){})),w=(0,f.createContext)((function(){})),R=(0,f.createContext)({desktop:[],mobile:[]}),D=function(){var e=(0,f.useState)([]),t=(0,d.A)(e,2),n=t[0],r=t[1],i=(0,f.useRef)(n);i.current=n;var o=(0,f.useCallback)((function(e,t){(0,k.cb)(0,(function(){var n=i.current.filter((function(n){return t?n.showState||n.id===e:n.showState&&n.id!==e}));if(n.length){var r=n.map((function(e){return e.id})),o=r.slice(0,-1),a=r[r.length-1];[N].concat((0,s.A)(o)).reverse().forEach((function(e,t){return function(e,t){var n=document.querySelector("#".concat(e));if(n){var r=window.innerHeight,i=(r-t)/r;n.style.overflow="hidden",n.style.willChange="transform",n.style.transition="transform 200ms linear",n.style.transform="translateY(calc(env(safe-area-inset-top) + ".concat(t/2,"px)) scale(").concat(i,")"),n.style.filter="blur(0.8px)"}}(e,18+2*t)})),P([a])}else P([N])}),"__overlay_back")}),[]);return{overlays:n,open:(0,f.useCallback)((function(e){var t=e,n=i.current,a=(0,S.A)(n,(function(e){return e.showState}));t.key="__overlay_".concat(O++),t.id="__overlay_".concat(O++),t.height=a?a.height-6:92,t.isFirst=!a,t.showState=!0;var c=t.closeHandler,u=t.closeComplete;t.closeHandler=function(){t.showState=!1,c&&c(),r((function(e){return Array.from(e)}))},t.closeComplete=function(){u&&u(),r((function(e){var n=e.filter((function(e){return e!==t}));return n.length&&n.reduce((function(e,t){return e.showState?(t.isFirst=!1,t):t.showState?(t.isFirst=!0,t):void 0})),n}))},t.applyOverlay=o,r((function(e){var n=e.filter((function(e){return e.showState}));return[].concat((0,s.A)(n),[t])}))}),[o]),close:(0,f.useCallback)((function(e){var t=i.current,n=e||{},r=n.modalId,o=n.closeAll;if(void 0!==r){var a=t.find((function(e){return e.id===r}));null==a||a.closeHandler()}else if(o)t.filter((function(e){return e.showState})).forEach((function(e){return null==e?void 0:e.closeHandler()}));else{var c=(0,S.A)(t,(function(e){return e.showState}));null==c||c.closeHandler()}}),[])}},x=function(){return(0,f.useContext)(C)},F=function(){return(0,f.useContext)(w)},I=function(){return(0,f.useContext)(R)},L=n(16204),j=function(){var e,t,n=(0,r.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={base:!0,lg:!1},t={ssr:!0},n[0]=e,n[1]=t):(e=n[0],t=n[1]),(0,L.A)(e,t)},M=function(){var e,t,n=(0,r.c)(2),i=(0,f.useState)(!1),o=(0,d.A)(i,2),a=o[0],c=o[1];return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=function(){(0,f.startTransition)((function(){c(!0)}))},t=[],n[0]=e,n[1]=t):(e=n[0],t=n[1]),(0,f.useEffect)(e,t),a},Y=function(e){var t,n=(0,r.c)(14);n[0]!==e?(t=void 0===e?{}:e,n[0]=e,n[1]=t):t=n[1];var i,o=t,a=o.height,c=o.present,u=o.loading,l=void 0===a?2.5:a,s=void 0===c?0:c,d=(0,f.useRef)(null);n[2]!==l||n[3]!==s?(i={present:s,height:l},n[2]=l,n[3]=s,n[4]=i):i=n[4];var _,p,m,h,v,y=(0,f.useRef)(i);return n[5]!==l||n[6]!==u||n[7]!==s?(_=function(){u||(y.current.height=l,y.current.present=s)},p=[u,l,s],n[5]=l,n[6]=u,n[7]=s,n[8]=_,n[9]=p):(_=n[8],p=n[9]),(0,f.useEffect)(_,p),n[10]!==u?(m=function(){if(d.current){var e,t,n=d.current;return u?(e=2,t=requestAnimationFrame((function r(){e>.33&&(e-=.04);var i=(y.current.present||0)+e;i=i<99.5?i:99.5,n.style.cssText="height: ".concat(y.current.height,"px;")+"transform: scale(".concat(i/100,", 1);")+"filter: drop-shadow(2px 2px 2px rgba(200, 200, 200, .4))",y.current.present=i,t=requestAnimationFrame(r)})),function(){return cancelAnimationFrame(t)}):((0,k.cb)(40,(function(){return n.style.transform="scale(1)"}),"loadingBar").then((function(){return(0,k.cb)(80,(function(){return n.style.height="0px"}),"loadingBar")})),function(){return(0,k.ZT)("loadingBar")})}},h=[u],n[10]=u,n[11]=m,n[12]=h):(m=n[11],h=n[12]),(0,f.useEffect)(m,h),n[13]===Symbol.for("react.memo_cache_sentinel")?(v={ref:d},n[13]=v):v=n[13],v},U=function(e){(0,f.useEffect)((function(){e()}),[])},H=n(37550),V=function(){var e,t=(0,r.c)(4);t[0]===Symbol.for("react.memo_cache_sentinel")?(e={height:H.B?window.innerHeight:0,width:H.B?window.innerHeight:0},t[0]=e):e=t[0];var n,i,o=p(e),a=(0,d.A)(o,2),c=a[0],u=a[1];return t[1]!==u?(n=function(){var e=function(){return u({height:window.innerHeight,width:window.innerWidth})};return e(),window.addEventListener("resize",e,{passive:!0}),window.removeEventListener("reset",e)},i=[u],t[1]=u,t[2]=n,t[3]=i):(n=t[2],i=t[3]),(0,f.useEffect)(n,i),c},B=n(31945),W=(0,c.y$)((function(){var e=(0,B.KR)(0);return{count:e,lock:function(){return e.value++},unlock:function(){e.value--}}})),G=function(){return W(z)};function z(e){return e.count}var K=function(e){return(0,i.useAppSelector)(q)[(0,k.HG)(e)]};function q(e){return e.client.clientProps.data}},31096:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r=(0,n(86175).ur)((function(){return{open:!1}}),{withActions:function(e){return{toggle:function(){return e.open=!e.open}}}})},52171:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var r=(0,n(86175).ur)((function(){return{state:!0}}),{withActions:function(e){return{enable:function(){return e.state=!0},disable:function(){return e.state=!1}}},withNamespace:"useHead"})},8394:(e,t,n)=>{"use strict";n.d(t,{m:()=>Ye});var r=n(19953),i=n(53963),o=n(77343),a=n(88736),c=n(1014),u=n(67989);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s,d,f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=(0,r.memo)(e);return function(){var e,r=(0,a.c)(2),i=(0,c.mZ)(t);return r[0]!==i?(e=(0,u.jsx)(n,function(e){for(var t=1;t div",{minWidth:"1.2em"}),children:[(0,u.jsx)(x.N,{mode:"wait",children:(0,u.jsx)(F.P.div,{initial:"initial",animate:"in",exit:"out",variants:Y,transition:{type:"tween",duration:.12},children:r},r)}),"-",(0,u.jsx)(x.N,{mode:"wait",children:(0,u.jsx)(F.P.div,{initial:"initial",animate:"in",exit:"out",variants:Y,transition:{type:"tween",duration:.12},children:i.length>1?i:"0".concat(i)},i)}),"-",(0,u.jsx)(x.N,{mode:"wait",children:(0,u.jsx)(F.P.div,{initial:"initial",animate:"in",exit:"out",variants:Y,transition:{type:"tween",duration:.12},children:a.length>1?a:"0".concat(a)},a)}),(0,u.jsx)("div",{children:" "}),(0,u.jsx)(x.N,{mode:"wait",children:(0,u.jsx)(F.P.div,{initial:"initial",animate:"in",exit:"out",variants:Y,transition:{type:"tween",duration:.12},children:c.length>1?c:"0".concat(c)},c)}),":",(0,u.jsx)(x.N,{mode:"wait",children:(0,u.jsx)(F.P.div,{initial:"initial",animate:"in",exit:"out",variants:Y,transition:{type:"tween",duration:.12},children:l.length>1?l:"0".concat(l)},l)}),":",(0,u.jsx)(x.N,{mode:"wait",children:(0,u.jsx)(F.P.div,{initial:"initial",animate:"in",exit:"out",variants:Y,transition:{type:"tween",duration:.12},children:s.length>1?s:"0".concat(s)},s)})]})}})})]}):null},H=(0,r.memo)(U),V=n(61500),B=n(98313),W=n(62481),G=n(8019),z=n(42900),K=n(21756),q=n(78199),Q=n(4809),$=n(9245),J=n(45077),X=n(61010),Z=n(71270),ee=n(69887),te=n(52171),ne=n(23032),re=n(12301),ie=function(){var e,t,n=(0,a.c)(5),r=(0,ne.G6)(),i=r.colorMode,o=r.toggleColorMode,c="dark"===i?re.NmZ:re.hGG;return n[0]!==c?(e=(0,u.jsx)(w.I,{as:c}),n[0]=c,n[1]=e):e=n[1],n[2]!==e||n[3]!==o?(t=(0,u.jsx)(S.$,{onClick:o,variant:"ghost",size:"sm",children:e}),n[2]=e,n[3]=o,n[4]=t):t=n[4],t},oe=n(30116),ae=n(91898),ce=function(){var e,t,n=(0,a.c)(4);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ae.AH)(s||(s=(0,oe.A)(["\n pre code.hljs {\n display: block;\n overflow-x: auto;\n padding: 1em;\n }\n code.hljs {\n padding: 3px 5px;\n }\n /*!\n Theme: GitHub\n Description: Light theme as seen on github.com\n Author: github.com\n Maintainer: @Hirse\n Updated: 2021-05-15\n \n Outdated base version: https://github.com/primer/github-syntax-light\n Current colors taken from GitHub's CSS\n */\n .hljs {\n --hljs-color: #84898e;\n color: #24292e;\n background: #ffffff;\n }\n .hljs-doctag,\n .hljs-keyword,\n .hljs-meta .hljs-keyword,\n .hljs-template-tag,\n .hljs-template-variable,\n .hljs-type,\n .hljs-variable.language_ {\n /* prettylights-syntax-keyword */\n color: #d73a49;\n }\n .hljs-title,\n .hljs-title.class_,\n .hljs-title.class_.inherited__,\n .hljs-title.function_ {\n /* prettylights-syntax-entity */\n color: #6f42c1;\n }\n .hljs-attr,\n .hljs-attribute,\n .hljs-literal,\n .hljs-meta,\n .hljs-number,\n .hljs-operator,\n .hljs-variable,\n .hljs-selector-attr,\n .hljs-selector-class,\n .hljs-selector-id {\n /* prettylights-syntax-constant */\n color: #005cc5;\n }\n .hljs-regexp,\n .hljs-string,\n .hljs-meta .hljs-string {\n /* prettylights-syntax-string */\n color: #032f62;\n }\n .hljs-built_in,\n .hljs-symbol {\n /* prettylights-syntax-variable */\n color: #e36209;\n }\n .hljs-comment,\n .hljs-code,\n .hljs-formula {\n /* prettylights-syntax-comment */\n color: #6a737d;\n }\n .hljs-name,\n .hljs-quote,\n .hljs-selector-tag,\n .hljs-selector-pseudo {\n /* prettylights-syntax-entity-tag */\n color: #22863a;\n }\n .hljs-subst {\n /* prettylights-syntax-storage-modifier-import */\n color: #24292e;\n }\n .hljs-section {\n /* prettylights-syntax-markup-heading */\n color: #005cc5;\n font-weight: bold;\n }\n .hljs-bullet {\n /* prettylights-syntax-markup-list */\n color: #735c0f;\n }\n .hljs-emphasis {\n /* prettylights-syntax-markup-italic */\n color: #24292e;\n font-style: italic;\n }\n .hljs-strong {\n /* prettylights-syntax-markup-bold */\n color: #24292e;\n font-weight: bold;\n }\n .hljs-addition {\n /* prettylights-syntax-markup-inserted */\n color: #22863a;\n background-color: #f0fff4;\n }\n .hljs-deletion {\n /* prettylights-syntax-markup-deleted */\n color: #b31d28;\n background-color: #ffeef0;\n }\n .hljs-char.escape_,\n .hljs-link,\n .hljs-params,\n .hljs-property,\n .hljs-punctuation,\n .hljs-tag {\n /* purposely ignored */\n }\n "]))),t=(0,ae.AH)(d||(d=(0,oe.A)(["\n pre code.hljs {\n display: block;\n overflow-x: auto;\n padding: 1em;\n }\n code.hljs {\n padding: 3px 5px;\n }\n /*!\n Theme: GitHub Dark\n Description: Dark theme as seen on github.com\n Author: github.com\n Maintainer: @Hirse\n Updated: 2021-05-15\n \n Outdated base version: https://github.com/primer/github-syntax-dark\n Current colors taken from GitHub's CSS\n */\n .hljs {\n --hljs-color: #c9d1d9;\n color: #c9d1d9;\n background: #282936;\n }\n .hljs-doctag,\n .hljs-keyword,\n .hljs-meta .hljs-keyword,\n .hljs-template-tag,\n .hljs-template-variable,\n .hljs-type,\n .hljs-variable.language_ {\n /* prettylights-syntax-keyword */\n color: #ff7b72;\n }\n .hljs-title,\n .hljs-title.class_,\n .hljs-title.class_.inherited__,\n .hljs-title.function_ {\n /* prettylights-syntax-entity */\n color: #d2a8ff;\n }\n .hljs-attr,\n .hljs-attribute,\n .hljs-literal,\n .hljs-meta,\n .hljs-number,\n .hljs-operator,\n .hljs-variable,\n .hljs-selector-attr,\n .hljs-selector-class,\n .hljs-selector-id {\n /* prettylights-syntax-constant */\n color: #79c0ff;\n }\n .hljs-regexp,\n .hljs-string,\n .hljs-meta .hljs-string {\n /* prettylights-syntax-string */\n color: #a5d6ff;\n }\n .hljs-built_in,\n .hljs-symbol {\n /* prettylights-syntax-variable */\n color: #ffa657;\n }\n .hljs-comment,\n .hljs-code,\n .hljs-formula {\n /* prettylights-syntax-comment */\n color: #8b949e;\n }\n .hljs-name,\n .hljs-quote,\n .hljs-selector-tag,\n .hljs-selector-pseudo {\n /* prettylights-syntax-entity-tag */\n color: #7ee787;\n }\n .hljs-subst {\n /* prettylights-syntax-storage-modifier-import */\n color: #c9d1d9;\n }\n .hljs-section {\n /* prettylights-syntax-markup-heading */\n color: #1f6feb;\n font-weight: bold;\n }\n .hljs-bullet {\n /* prettylights-syntax-markup-list */\n color: #f2cc60;\n }\n .hljs-emphasis {\n /* prettylights-syntax-markup-italic */\n color: #c9d1d9;\n font-style: italic;\n }\n .hljs-strong {\n /* prettylights-syntax-markup-bold */\n color: #c9d1d9;\n font-weight: bold;\n }\n .hljs-addition {\n /* prettylights-syntax-markup-inserted */\n color: #aff5b4;\n background-color: #033a16;\n }\n .hljs-deletion {\n /* prettylights-syntax-markup-deleted */\n color: #ffdcd7;\n background-color: #67060c;\n }\n .hljs-char.escape_,\n .hljs-link,\n .hljs-params,\n .hljs-property,\n .hljs-punctuation,\n .hljs-tag {\n /* purposely ignored */\n }\n "]))),n[0]=e,n[1]=t):(e=n[0],t=n[1]);var r,i=(0,ne.dU)(e,t);return n[2]!==i?(r=(0,u.jsx)(ae.mL,{styles:i}),n[2]=i,n[3]=r):r=n[3],r};ce.displayName="GlobalStyle";var ue={"/":"@my-react","/blog":"blog","/about":"config","/tldraw":"tldraw","/excalidraw":"excalidraw"},le=function(){var e,t,n=(0,g.zy)(),o=(0,g.Zp)(),a=(0,r.useRef)(null),c=(0,r.useState)("up"),l=(0,V.A)(c,2),s=l[0],d=l[1],f=(0,Z.A)().formatMessage,_=(0,q.L)().scrollY,p=(0,te.o)((function(e){return e.state}));(0,r.useEffect)((function(){var e=(0,$.A)((function(){var e=_.get();null!==a.current&&(e>a.current?d("down"):d("up")),a.current=e}),16);return _.onChange(e),function(){return _.clearListeners()}}),[_]);var m=(0,Q.G)(_,[0,.2,.4],[0,.4,1]),h=ue[n.pathname.toLowerCase()]||"@my-react",v=(0,B.IT)(K.BVy,{variables:{name:"MyReact",owner:"MrWangJustToDo"}}),y=v.data,E=v.loading;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ce,{}),p?(0,u.jsxs)(P.az,{id:"page-header",position:"sticky",top:"0",backgroundColor:"bannerBackgroundColor",zIndex:"banner",children:[(0,u.jsxs)(W.m,{maxWidth:ee.d,paddingX:{base:"3",lg:"6"},className:"site-header",children:[(0,u.jsxs)(N.s,{id:"desktop-header",paddingY:"2",justifyContent:"space-between",alignItems:"center",display:{base:"none",md:"flex"},children:[(0,u.jsx)(O.E,{as:"h1",fontSize:{base:"xl",md:"2xl"},fontWeight:{base:"semibold",md:"bold"},noOfLines:1,children:f({id:h})}),(0,u.jsxs)(G.z,{gap:{base:"4px",lg:"8px"},children:[(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/":"/".concat("MyReact","/"))},children:"Home"}),(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/Blog":"/".concat("MyReact","/Blog"))},children:"Example"}),(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/Excalidraw":"/".concat("MyReact","/Excalidraw"))},children:"Excalidraw"}),(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/Tldraw":"/".concat("MyReact","/Tldraw"))},children:"Tldraw"}),!1,(0,u.jsx)(ie,{}),(0,u.jsxs)(S.$,{variant:"outline",size:"sm",as:"a",href:"https://github.com/MrWangJustToDo/MyReact",target:"_blank",children:[(0,u.jsx)(w.I,{as:X.SrF}),E?null:(0,u.jsxs)(z.vw,{variant:"subtle",colorScheme:"orange",marginLeft:"3",children:[(0,u.jsx)(z.Vz,{as:J.gt3,color:"orange.300"}),(0,u.jsx)(z.d1,{children:null==y||null===(e=y.repository)||void 0===e?void 0:e.stargazerCount})]})]})]})]}),(0,u.jsxs)(P.az,{id:"mobile-header",display:{base:"block",md:"none"},height:12,overflow:"hidden",children:[(0,u.jsxs)(N.s,{justifyContent:"space-between",alignItems:"center",height:"up"===s?"full":"0%",width:"full",transition:"height 0.3s",overflow:"hidden",children:[(0,u.jsx)(O.E,{as:"h1",fontSize:{base:"xl",md:"2xl"},fontWeight:{base:"semibold",md:"bold"},noOfLines:1,children:f({id:h})}),(0,u.jsxs)(G.z,{gap:{base:"4px",lg:"8px"},children:[(0,u.jsx)(ie,{}),(0,u.jsxs)(S.$,{variant:"outline",size:"sm",as:"a",href:"https://github.com/MrWangJustToDo/MyReact",target:"_blank",children:[(0,u.jsx)(w.I,{as:X.SrF}),E?null:(0,u.jsxs)(z.vw,{variant:"subtle",colorScheme:"orange",marginLeft:"3",children:[(0,u.jsx)(z.Vz,{as:J.gt3,color:"orange.300"}),(0,u.jsx)(z.d1,{children:null==y||null===(t=y.repository)||void 0===t?void 0:t.stargazerCount})]})]})]})]}),(0,u.jsxs)(N.s,{justifyContent:"space-between",alignItems:"center",height:"full",width:"full",children:[(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/":"/".concat("MyReact","/"))},children:"Home"}),(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/Blog":"/".concat("MyReact","/Blog"))},children:"Example"}),(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/Excalidraw":"/".concat("MyReact","/Excalidraw"))},children:"Excalidraw"}),(0,u.jsx)(S.$,{variant:"ghost",size:"sm",onClick:function(){return o(i.noBase?"/Tldraw":"/".concat("MyReact","/Tldraw"))},children:"Tldraw"}),!1]})]})]}),(0,u.jsx)(F.P.div,{className:"mx-[-2em]",style:{opacity:m,borderBottom:"1px solid rgba(100, 100, 100, .2)"}})]}):(0,u.jsx)(S.$,{position:"fixed",zIndex:"banner",top:"50%",translateY:"-50%",right:"2",variant:"outline",size:"sm",onClick:function(){return o(i.noBase?"/":"/".concat("MyReact","/"))},children:"Home"})]})},se=(0,r.memo)(le),de=n(89777),fe=function(){var e,t,n=(0,a.c)(3),r=(0,c.Qc)()>0;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,u.jsx)(u.Fragment,{}),n[0]=e):e=n[0],n[1]!==r?(t=(0,u.jsx)(de.A,{enabled:r,className:"placeholder",as:"span",children:e}),n[1]=r,n[2]=t):t=n[2],t},_e=n(16204),pe=n(89470),me=n(74445),he=n(52733),ve=n(2476);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ee=function(e){var t=e.id,n=e.head,i=e.body,a=e.foot,l=e.height,s=e.className,d=e.closeComplete,f=e.closeHandler,_=e.applyOverlay,p=e.isFirst,m=(0,r.useRef)(!1),h=(0,r.useRef)(null),v=(0,r.useRef)(null),y=(0,r.useRef)(!1),E=(0,c.lW)().height,g=(0,he.d)(0),b=(0,Q.G)(g,(function(e){return"translateX(2px) rotate(".concat(e,"deg)")})),S=(0,Q.G)(g,(function(e){return"translateX(-2px) rotate(".concat(-1*e,"deg)")})),k=(0,he.d)(0),A=(0,r.useCallback)((function(e){e.target&&e.target.contains(v.current)?y.current=!0:y.current=!1}),[]),N=(0,r.useCallback)((function(e,t){var n=t.delta;if(y.current){var r=k.getVelocity();r>0&&g.set(10),r<0&&g.set(-10),k.set(Math.max(k.get()+n.y,0))}}),[]),O=(0,r.useCallback)((function(e,t){if(t.velocity.y>500)f&&f();else{var n,r=h.current,i=null==r||null===(n=r.getBoundingClientRect())||void 0===n?void 0:n.height;k.get()/i>.6?f&&f():(0,ve.i)(k,0,function(e){for(var t=1;t{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nu,cb:()=>l,xT:()=>b,ws:()=>y,HG:()=>E});var i={},o={},a={},c=0,u=function(e){if(i[e]){var t=i[e].length;i[e]=i[e].map((function(e){return e&&clearTimeout(e)})).slice(t),o[e]=o[e].map((function(e){return e&&e()})).slice(t)}if(c>200){var n,u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}(Object.keys(a).sort((function(e,t){return a[e]>a[t]?1:-1})));try{for(u.s();!(n=u.n()).done;){var l=n.value;l===e||o[l].length||(delete a[l],delete i[l],delete o[l],c--)}}catch(e){u.e(e)}finally{u.f()}}},l=function(e,t,n){return void 0===n?new Promise((function(t){setTimeout((function(){t()}),e)})).then((function(){if(t)return t()})):(n in a?a[n]++:(a[n]=1,i[n]=[],o[n]=[],c++),u(n),new Promise((function(t,r){o[n].push(r),i[n].push(setTimeout((function(){t()}),e))})).then((function(){if(t)return t()})).catch((function(){})))},s=n(77343),d=n(16167),f=n(28092),_=n.n(f),p=n(51051),m=n(5207);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{HTML:()=>G,createEmotionCache:()=>q,createUniversalStore:()=>D,defaultLang:()=>E,getIsAnimateRouter:()=>c,getIsMiddleware:()=>i,getIsP_CSR:()=>u,getIsSSR:()=>o,getIsStaticGenerate:()=>l,getIsStream:()=>a,getPublicApi:()=>s,loadCurrentLang:()=>y,noBase:()=>d,safeData:()=>z,supportedLang:()=>v,theme:()=>I,useAppDispatch:()=>x,useAppSelector:()=>F});var r=n(95056),i=(0,r.A)((function(){return window.__ENV__.isMIDDLEWARE})),o=(0,r.A)((function(){return window.__ENV__.isSSR})),a=(0,r.A)((function(){return window.__ENV__.isSTREAM})),c=(0,r.A)((function(){return window.__ENV__.isANIMATE_ROUTER})),u=(0,r.A)((function(){return window.__ENV__.isPURE_CSR})),l=(0,r.A)((function(){return window.__ENV__.isSTATIC})),s=(0,r.A)((function(){return window.__ENV__.PUBLIC_API_HOST})),d=!1,f=n(16167),_=n(28092),p=n.n(_),m=n(36211),h=n(91004),v={en:"English",zh:"中文"},y=function(){var e=(0,f.A)(p().mark((function e(t,n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t((0,h.bN)({name:m.d.serverLang,lang:n}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E="en",g=n(2694),T=n(40803),b=n(90805),S=n(2066),k=n(46837),A=n(18351),P=n(77343),N=n(63573);function O(e){var t=e.done,n=e.lang;return p().mark((function e(){var r,i,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,A.Lt)((function(e){return e.server.serverLang.data}));case 3:if(e.sent[n]){e.next=14;break}return e.next=7,(0,A.yJ)((0,h.$l)({name:m.d.serverLang}));case 7:return r=(0,N.createRequest)({baseURL:s()}),e.next=10,(0,A.T1)((function(e){return r.get(e,{params:{lang:n}})}),"/api/lang");case 10:return i=e.sent,o=i.data.data,e.next=14,(0,A.yJ)((0,h.E5)({name:m.d.serverLang,data:(0,P.A)({},n,o)}));case 14:return e.next=16,(0,A.yJ)((0,h.Go)({name:m.V.clientLang,data:n}));case 16:e.next=23;break;case 18:return e.prev=18,e.t0=e.catch(0),e.next=23,(0,A.yJ)((0,h.J3)({name:m.d.serverLang,error:e.t0.toString()}));case 23:return e.prev=23,t(),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,18,23,26]])}))()}var C=p().mark(w);function w(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.Q7)([(0,A.p8)(h.qG.GET_DATA_ACTION(m.d.serverLang),(function(e){return O({done:e.done,lang:e.lang})}))]);case 2:case"end":return e.stop()}}),C)}var R="function"==typeof window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({actionsDenylist:[]})||b.Zz,D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.preloadedState,n=e.middleware,r=void 0===n?[]:n,i=(0,S.Ay)(),o=[k.P,i].concat((0,g.A)(r)),a=(0,b.Yl)(h.d$,t,R(b.Tw.apply(void 0,(0,g.A)(o))));return a.sagaTask=function(e,t){return t.run(e)}(w,i),a},x=T.wA,F=T.d4,I=(0,n(88768).oY)({styles:{global:{}},semanticTokens:{colors:{mobileCardBackgroundColor:{default:"white",_dark:"gray.700"},cardBackgroundColor:{default:"rgba(245, 245, 245, 0.7)",_dark:"rgba(45, 60, 80, 0.7)"},mobileModalColor:{default:"rgb(220, 220, 220)",_dark:"gray.700"},cardBorderColor:{default:"gray.300",_dark:"gray.600"},lightTextColor:{default:"gray.600",_dark:"gray.400"},siteBackgroundColor:{default:"rgba(250, 250, 250, 0.8)",_dark:"rgba(24, 24, 24, 0.2)"},bannerBackgroundColor:{default:"rgb(255, 255, 255)",_dark:"#1A202C"}}},fonts:{heading:"Josefin Sans",body:"Josefin Sans",mono:"Josefin Sans"}}),L=n(88736),j=n(14346),M=n(67989),Y=function(e){var t=e.children,n=e.script,r=void 0===n?[]:n,i=e.refresh,o=void 0===i?[]:i;return(0,M.jsxs)("body",{children:[(0,M.jsx)(j.m,{type:"localStorage",initialColorMode:"dark"}),"string"==typeof t?(0,M.jsx)("div",{id:"__content__",dangerouslySetInnerHTML:{__html:t||""}}):(0,M.jsx)("div",{id:"__content__",children:t}),r.filter(Boolean).map((function(e){return e})),o.filter(Boolean).map((function(e){return e}))]})},U=n(50474),H=n(19953),V=function(e){var t=e.env,n=void 0===t?"{}":t,r=e.link,i=void 0===r?[]:r,o=e.preLoad,a=void 0===o?[]:o,c=e.preloadedState,u=void 0===c?"{}":c,l=e.helmetContext,s=(void 0===l?{}:l).helmet,f=e.emotionChunks;return(0,M.jsxs)("head",{children:[(0,M.jsx)("meta",{charSet:"utf-8"}),(0,M.jsx)("meta",{name:"build-time",content:"Wed, 27 Nov 2024 11:42:44 GMT"}),(0,M.jsx)("meta",{name:"power-by",content:"@my-react ꒰ঌ( ⌯' '⌯)໒꒱"}),(0,M.jsx)("meta",{name:"version",content:H.version}),(0,M.jsx)("meta",{name:"author",content:"MrWangJustToDo"}),(0,M.jsx)("meta",{name:"description",content:"@my-react is a React like framework, it can be used to build a modern website just like this, feel free to use and fire a issue if you have! link: https://github.com/MrWangJustToDo/MyReact"}),(0,M.jsx)("meta",{name:"keywords",content:"react, react-dom, ssr, csr, ssg, @my-react, react like, react framework"}),(0,M.jsx)("base",{href:d?"/":"/".concat("MyReact","/")}),(0,M.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"}),(0,M.jsx)("link",{rel:"shortcut icon",href:"./favicon.ico",type:"image/x-icon"}),(0,M.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:!0}),(0,M.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap",rel:"stylesheet"}),(0,M.jsxs)(M.Fragment,{children:[null==s?void 0:s.base.toComponent(),null==s?void 0:s.title.toComponent(),null==s?void 0:s.meta.toComponent(),null==s?void 0:s.link.toComponent(),null==s?void 0:s.noscript.toComponent(),null==s?void 0:s.style.toComponent(),null==s?void 0:s.script.toComponent()]}),a.filter(Boolean).map((function(e){return e})),i.filter(Boolean).map((function(e){return e})),(0,M.jsx)("style",{dangerouslySetInnerHTML:{__html:(0,U.SA)()},id:"sandpack"},"sandpack-css"),null==f?void 0:f.styles.map((function(e,t){return(0,M.jsx)("style",{"data-server":!0,"data-emotion":"".concat(e.key," ").concat(e.ids.join(" ")),dangerouslySetInnerHTML:{__html:e.css}},e.key+"_"+t)})),(0,M.jsx)("script",{id:"__preload_env__",type:"application/json",dangerouslySetInnerHTML:{__html:"".concat(n)}}),(0,M.jsx)("script",{id:"__preload_state__",type:"application/json",dangerouslySetInnerHTML:{__html:"".concat(u)}})]})};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t{"use strict";n.d(t,{V:()=>r,d:()=>i});var r=function(e){return e.clientLang="clientLang",e.clientProps="clientProps",e}({}),i=function(e){return e.serverLang="serverLang",e}({})},91004:(e,t,n)=>{"use strict";n.d(t,{bN:()=>k,J3:()=>N,$l:()=>A,E5:()=>P,d$:()=>x,qG:()=>S,Go:()=>_});var r,i,o,a=n(90805),c=n(77343),u=n(36211),l=n(57028),s=function(e){return"@client_action_".concat(e,"_loading")},d=function(e){return"@client_action_".concat(e,"_success")},f=function(e){return"@client_action_".concat(e,"_fail")},_=function(e){var t=e.name,n=e.data;return{type:d(t),data:n,loadingState:!1}},p={data:"",error:null,loaded:!1,loading:!1},m=(r={},(0,c.A)(r,s(u.V.clientLang),(function(e,t){return(0,l.jM)(e,(function(e){e.data="",e.error=null,e.loading=t.loadingState||!0,e.loaded=!1}))})),(0,c.A)(r,d(u.V.clientLang),(function(e,t){return(0,l.jM)(e,(function(e){e.data=t.data||"",e.error=null,e.loading=!1,e.loaded=!0}))})),(0,c.A)(r,f(u.V.clientLang),(function(e,t){return(0,l.jM)(e,(function(e){e.data="",e.error=t.error,e.loading=!1,e.loaded=!0}))})),r),h={data:{},error:null,loaded:!1,loading:!1},v=(i={},(0,c.A)(i,s(u.V.clientProps),(function(e,t){return(0,l.jM)(e,(function(e){e.error=null,e.loading=t.loadingState||!0,e.loaded=!1}))})),(0,c.A)(i,d(u.V.clientProps),(function(e,t){return(0,l.jM)(e,(function(e){e.data=t.data,e.error=null,e.loading=!1,e.loaded=!0}))})),(0,c.A)(i,f(u.V.clientProps),(function(e,t){return(0,l.jM)(e,(function(e){e.data={},e.error=t.error,e.loading=!1,e.loaded=!0}))})),i),y=(0,a.HY)((o={},(0,c.A)(o,u.V.clientLang,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0,n=m[t.type];return n?n(e,t):e})),(0,c.A)(o,u.V.clientProps,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0,n=v[t.type];return n?n(e,t):e})),o)),E=n(16801),g=["name"];function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b,S={GET_DATA_ACTION:function(e){return"@server_action_".concat(e,"_startWithSaga")},GET_DATA_LOADING:function(e){return"@server_action_".concat(e,"_loading")},GET_DATA_SUCCESS:function(e){return"@server_action_".concat(e,"_success")},GET_DATA_FAIL:function(e){return"@server_action_".concat(e,"_fail")}},k=function(e){var t=e.name,n=(0,E.A)(e,g);return function(e){var r=null,i=new Promise((function(e){r=e}));return e(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0,n=R[t.type];return n?n(e,t):e}))),x=(0,a.HY)({client:y,server:D})},40698:(e,t,n)=>{var r={"./":[49623,502,980,305,916,798,61,674,907],"./404":[2650,980,505],"./404.tsx":[2650,980,505],"./About":[13186,502,980,305,798,61,674,54],"./About.tsx":[13186,502,980,305,798,61,674,54],"./Blog":[62799,502,980,305,916,967,719],"./Blog.tsx":[62799,502,980,305,916,967,719],"./Excalidraw":[91076,11],"./Excalidraw.tsx":[91076,11],"./Tldraw":[65782,101],"./Tldraw.tsx":[65782,101],"./index":[49623,502,980,305,916,798,61,674,907],"./index.tsx":[49623,502,980,305,916,798,61,674,907]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=40698,e.exports=i}},e=>{e.O(0,[792],(()=>{[502,980,305,916,798,61,674,907,505,54,967,719,11,101].map(e.E)}),5),e.O(0,[502,980,305,916,798,61,967],(()=>(32523,e(e.s=32523)))),e.O()}]); \ No newline at end of file diff --git a/client/main-18383a180c04e1146c75.js.map b/client/main-18383a180c04e1146c75.js.map new file mode 100644 index 00000000..091dc883 --- /dev/null +++ b/client/main-18383a180c04e1146c75.js.map @@ -0,0 +1 @@ +{"version":3,"file":"main-18383a180c04e1146c75.js","mappings":"8HAGEA,EAAOC,QAAU,EAAjBD,G,4FCAAE,EAAAD,S,oBCDF,IAMIE,EAsnBAC,EA5nBAC,EAAQC,EAER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,QACE,SAGAE,IAAc/tB,IAChB8tB,GAAQ9X,EAAIlzB,MAAMirC,EAAW/tB,IAG/B+tB,EAAY/tB,EAAQ,EACpB8tB,GAAQD,C,CAGV,OAAOE,IAAc/tB,EAAQ8tB,EAAO9X,EAAIlzB,MAAMirC,EAAW/tB,GAAS8tB,CACpE,CC1CO,IAAMrD,GAAyB,WACpC,GAAKrQ,EAAoB9uB,QAGlB,CACL,IACMjE,EADM6rB,KAAKC,MACIiH,EAAoB9uB,QAAU6uB,EAAqB7uB,QAExE,OADIjE,IAAQ+yB,EAAoB9uB,QAAU,MACnCjE,C,CALP,OADA+yB,EAAoB9uB,QAAU4nB,KAAKC,OAC5B,CAOX,ECVauM,GAAmBuL,GAC9B,ofCCWrG,GAAiBwG,GAC5B,u+BAoBWzG,GAAgByG,GAC3B,wnFA4CW4C,GAAqD,CAChEC,UAAW,QACXC,QAAS,OAMEC,GAAgB/C,GAC3B,iOCzEgCtvC,EAAAiN,oBAAmBmQ,sBAGjC+xB,GAClB,CACE,UACA,SACA,OACA,UACA,QACA,OACA,WACA,UACA,aACA,OACA,KACA,SACA,UACA,SACA,MACA,WACA,KACA,UACA,MACA,MACA,KACA,KACA,QACA,WACA,aACA,SACA,SACA,OACA,QACA,WACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,SACA,SACA,KACA,OACA,SACA,MACA,QACA,UACA,KACA,OACA,UACA,OACA,UACA,OACA,WACA,OACA,MACA,UACA,WACA,WACA,SACA,KACA,IACA,QACA,YACA,MACA,SACA,UACA,SACA,SACA,QACA,UACA,QACA,QACA,KACA,WACA,WACA,QACA,KACA,QACA,QACA,KACA,QACA,KACA,MACA,OACA7wB,KAAK,MAIW6wB,GAClB,CACE,SACA,UACA,OACA,QACA,KACA,KACA,UACA,SACA,WAKA,gBACA,OACA,SACA7wB,KAAK,MA6Bc6wB,GAAQ,CAAC,KAAM,KAAM,KAAM,SAAU,WAAY,IAAK,KAAM,MAAM7wB,KAAK,MC7I9F,IAgBAi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IT,IAAIuuD,EAAM1yD,EAAI+pE,GAAMrhC,EAAKgqB,EAAI,GAC7B,OAAO5uD,QAAQojD,IAAIwL,EAAI5yD,MAAM,GAAGE,IAAIgqE,EAAoB7lE,IAAIxC,MAAK,IACzDqoE,EAAoBthC,IAE7B,CACAohC,EAAoB5oE,KAAO,IAAOrE,OAAOqE,KAAKlB,GAC9C8pE,EAAoBphC,GAAK,MACzBlwC,EAAOC,QAAUqxE,C,OCnHjBE,EAAoBE,EAAE,EAAG,CAAC,MAAM,KAC/B,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,IAAI,GAAG,KAAKlqE,IAAIgqE,EAAoBG,EAAE,GAC/E,G","sources":["webpack://@my-react/ssr-example/../../packages/myreact-dom/client.js","webpack://@my-react/ssr-example/../../../myreact-reconciler/index.js","webpack://@my-react/ssr-example/../../../myreact-reconciler/dist/cjs/index.production.js","webpack://@my-react/ssr-example/../../../../node_modules/.pnpm/project-tool@https+++codeload.github.com+MrWangJustToDo+project-tool+tar.gz+59dab0c1d02a9e83a_rany3i2wjvlp3tkgwuk4oeaz5e/node_modules/tslib/tslib.es6.js","webpack://@my-react/ssr-example/../../../myreact-shared/index.js","webpack://@my-react/ssr-example/../../../myreact-shared/dist/cjs/index.production.js","webpack://@my-react/ssr-example/../../src/server/api/append.ts","webpack://@my-react/ssr-example/../../src/shared/env.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/control/select.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/control/index.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/control/input.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/control/textarea.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/event/getEventName.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/event/addEvent.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/event/wrapper.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/event/removeEvent.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/style/setStyle.ts","webpack://@my-react/ssr-example/../../src/client/api/update/tool.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/attr/namespace.ts","webpack://@my-react/ssr-example/../../src/client/dispatchMount/feature.ts","webpack://@my-react/ssr-example/../../src/client/api/fallback/feature.ts","webpack://@my-react/ssr-example/../../src/client/api/create/getHydrateDom.ts","webpack://@my-react/ssr-example/../../src/client/api/create/nativeCreate.ts","webpack://@my-react/ssr-example/../../src/client/api/create/feature.ts","webpack://@my-react/ssr-example/../../src/client/api/create/hydrateCreate.ts","webpack://@my-react/ssr-example/../../src/client/api/update/control.ts","webpack://@my-react/ssr-example/../../src/client/api/update/hydrateUpdate.ts","webpack://@my-react/ssr-example/../../src/client/api/update/nativeUpdate.ts","webpack://@my-react/ssr-example/../../src/client/api/position/append.ts","webpack://@my-react/ssr-example/../../src/client/api/position/getInsertBeforeDom.ts","webpack://@my-react/ssr-example/../../src/client/api/position/insertBefore.ts","webpack://@my-react/ssr-example/../../src/client/api/position/feature.ts","webpack://@my-react/ssr-example/../../src/client/renderPlatform/feature.ts","webpack://@my-react/ssr-example/../../src/client/tools/findDOMNode.ts","webpack://@my-react/ssr-example/../../src/client/tools/hmr.ts","webpack://@my-react/ssr-example/../../src/client/tools/unmountComponentAtNode.ts","webpack://@my-react/ssr-example/../../src/client/mount/render.ts","webpack://@my-react/ssr-example/../../src/client/mount/hydrate.ts","webpack://@my-react/ssr-example/../../src/client/mount/createRoot.ts","webpack://@my-react/ssr-example/../../src/client/renderDispatch/lazy.ts","webpack://@my-react/ssr-example/../../src/client/renderDispatch/instance.ts","webpack://@my-react/ssr-example/../../src/shared/kebabCase.ts","webpack://@my-react/ssr-example/../../src/client/api/update/feature.ts","webpack://@my-react/ssr-example/../../src/client/api/helper/attr/setAttr.ts","webpack://@my-react/ssr-example/../../src/client/api/append/index.ts","webpack://@my-react/ssr-example/../../src/client/api/clear/feature.ts","webpack://@my-react/ssr-example/../../src/shared/tools.ts","webpack://@my-react/ssr-example/../../src/shared/debug.ts","webpack://@my-react/ssr-example/../../src/shared/ref.ts","webpack://@my-react/ssr-example/../../src/shared/dev.ts","webpack://@my-react/ssr-example/../../src/shared/render.ts","webpack://@my-react/ssr-example/../../src/shared/version.ts","webpack://@my-react/ssr-example/../../src/shared/comment.ts","webpack://@my-react/ssr-example/../../src/shared/platform.ts","webpack://@my-react/ssr-example/../../src/shared/getFiberWithDom.ts","webpack://@my-react/ssr-example/../../src/shared/elementMap.ts","webpack://@my-react/ssr-example/../../src/shared/elementTag.ts","webpack://@my-react/ssr-example/../../src/shared/escapeHtml.ts","webpack://@my-react/ssr-example/../../src/shared/shouldPause.ts","webpack://@my-react/ssr-example/../../src/shared/elementStyle.ts","webpack://@my-react/ssr-example/../../src/shared/elementAttrs.ts","webpack://@my-react/ssr-example/../../src/shared/validateDomNesting.ts","webpack://@my-react/ssr-example/../../src/server/api/native/text.ts","webpack://@my-react/ssr-example/../../src/server/api/native/comment.ts","webpack://@my-react/ssr-example/../../src/server/api/native/plain.ts","webpack://@my-react/ssr-example/../../src/server/api/update.ts","webpack://@my-react/ssr-example/../../src/server/api/create.ts","webpack://@my-react/ssr-example/../../src/noop/renderDispatch/noopDispatch.ts","webpack://@my-react/ssr-example/../../src/server/renderDispatch/lazy.ts","webpack://@my-react/ssr-example/../../src/client/index.ts","webpack://@my-react/ssr-example/../../src/client/tools/createPortal.ts","webpack://@my-react/ssr-example/../../src/client/mount/hydrateRoot.ts","webpack://@my-react/ssr-example/../../packages/myreact-dom/index.js","webpack://@my-react/ssr-example/../../src/check.ts","webpack://@my-react/ssr-example/../../src/instance.ts","webpack://@my-react/ssr-example/../../packages/myreact-jsx/index.js","webpack://@my-react/ssr-example/../../packages/myreact-jsx/jsx-runtime.js","webpack://@my-react/ssr-example/../../src/share/createRef.ts","webpack://@my-react/ssr-example/../../src/share/env.ts","webpack://@my-react/ssr-example/../../src/share/task.ts","webpack://@my-react/ssr-example/../../src/share/lazy.ts","webpack://@my-react/ssr-example/../../src/share/platform.ts","webpack://@my-react/ssr-example/../../src/element/tool.ts","webpack://@my-react/ssr-example/../../src/internal/instance.ts","webpack://@my-react/ssr-example/../../src/element/feature.ts","webpack://@my-react/ssr-example/../../src/element/instance.ts","webpack://@my-react/ssr-example/../../src/children/tool.ts","webpack://@my-react/ssr-example/../../src/component/instance.ts","webpack://@my-react/ssr-example/../../src/hook/feature.ts","webpack://@my-react/ssr-example/../../src/index.ts","webpack://@my-react/ssr-example/../../src/children/feature.ts","webpack://@my-react/ssr-example/../../src/share/transition.ts","webpack://@my-react/ssr-example/../../packages/myreact/index.js","webpack://@my-react/ssr-example/../../packages/myreact/jsx-runtime.js","webpack://@my-react/ssr-example/../../src/apollo/cache.ts","webpack://@my-react/ssr-example/../../src/apollo/client.ts","webpack://@my-react/ssr-example/../../src/schema.ts","webpack://@my-react/ssr-example/../../src/apollo/links.ts","webpack://@my-react/ssr-example/../../src/generated.ts","webpack://@my-react/ssr-example/./src/client/component/Card/index.tsx","webpack://@my-react/ssr-example/./src/client/utils/cx.ts","webpack://@my-react/ssr-example/./src/client/component/GridCard/index.tsx","webpack://@my-react/ssr-example/./src/client/config/container.ts","webpack://@my-react/ssr-example/./src/client/config/gridLayout.ts","webpack://@my-react/ssr-example/./src/client/router/routes.ts","webpack://@my-react/ssr-example/./src/client/common/LoadingBar/LoadingBar.tsx","webpack://@my-react/ssr-example/./src/client/common/LoadingBar/index.module.scss?3a7f","webpack://@my-react/ssr-example/./src/client/common/LoadingBar/index.tsx","webpack://@my-react/ssr-example/./src/client/common/WrapperRoute/index.tsx","webpack://@my-react/ssr-example/./src/client/common/RenderMatch.tsx","webpack://@my-react/ssr-example/./src/client/common/WrapperApollo/index.tsx","webpack://@my-react/ssr-example/./src/client/common/WrapperCatch/index.tsx","webpack://@my-react/ssr-example/./src/client/component/DevTool/Item.tsx","webpack://@my-react/ssr-example/./src/client/common/WrapperDevTool/index.tsx","webpack://@my-react/ssr-example/./src/client/common/WrapperLang/index.tsx","webpack://@my-react/ssr-example/./src/client/common/App.tsx","webpack://@my-react/ssr-example/./src/client/app.tsx","webpack://@my-react/ssr-example/./src/client/entry.tsx","webpack://@my-react/ssr-example/./src/client/hooks/useLoadingStore.ts","webpack://@my-react/ssr-example/./src/client/hooks/useFoot.ts","webpack://@my-react/ssr-example/./src/client/hooks/useDebouncedState.ts","webpack://@my-react/ssr-example/./src/client/hooks/useSize.ts","webpack://@my-react/ssr-example/./src/client/hooks/usePreLoad.ts","webpack://@my-react/ssr-example/./src/client/utils/dom.ts","webpack://@my-react/ssr-example/./src/client/hooks/useOverlay.ts","webpack://@my-react/ssr-example/./src/client/hooks/useIsMobile.ts","webpack://@my-react/ssr-example/./src/client/hooks/useIsMounted.ts","webpack://@my-react/ssr-example/./src/client/hooks/useLoadingBar.ts","webpack://@my-react/ssr-example/./src/client/hooks/useEffectOnce.ts","webpack://@my-react/ssr-example/./src/client/hooks/useWindowSize.ts","webpack://@my-react/ssr-example/./src/client/hooks/useLockBodyScroll.ts","webpack://@my-react/ssr-example/./src/client/hooks/useGetInitialProps.ts","webpack://@my-react/ssr-example/./src/client/hooks/useDevTool.ts","webpack://@my-react/ssr-example/./src/client/hooks/useHead.ts","webpack://@my-react/ssr-example/./src/client/common/AutoInjectProps.tsx","webpack://@my-react/ssr-example/./src/client/component/DevTool/index.tsx","webpack://@my-react/ssr-example/./src/client/store/Time.ts","webpack://@my-react/ssr-example/./src/client/component/Footer/index.tsx","webpack://@my-react/ssr-example/./src/client/component/ColorMode/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Header/GlobalStyle.tsx","webpack://@my-react/ssr-example/./src/client/component/Header/index.tsx","webpack://@my-react/ssr-example/./src/client/component/LockBody/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Overlay/Mobile.tsx","webpack://@my-react/ssr-example/./src/client/component/Overlay/Desktop.tsx","webpack://@my-react/ssr-example/./src/client/component/ModuleManager/DesktopOverlay.tsx","webpack://@my-react/ssr-example/./src/client/component/ModuleManager/MobileOverlay.tsx","webpack://@my-react/ssr-example/./src/client/component/ModuleManager/index.tsx","webpack://@my-react/ssr-example/./src/client/common/Layout/index.tsx","webpack://@my-react/ssr-example/./src/client/router/routers.stream.ts","webpack://@my-react/ssr-example/./src/client/router/dynamicRoutes.ts","webpack://@my-react/ssr-example/./src/client/utils/delay.ts","webpack://@my-react/ssr-example/./src/client/utils/preLoad.ts","webpack://@my-react/ssr-example/./src/shared/env.ts","webpack://@my-react/ssr-example/./src/shared/i18n.ts","webpack://@my-react/ssr-example/./src/shared/store/saga/action/langSaga.ts","webpack://@my-react/ssr-example/./src/shared/store/saga/index.ts","webpack://@my-react/ssr-example/./src/shared/store/saga/utils.ts","webpack://@my-react/ssr-example/./src/shared/store/index.ts","webpack://@my-react/ssr-example/./src/shared/theme/index.ts","webpack://@my-react/ssr-example/./src/shared/theme/styles.ts","webpack://@my-react/ssr-example/./src/shared/theme/semanticTokens.ts","webpack://@my-react/ssr-example/./src/shared/template/Body.tsx","webpack://@my-react/ssr-example/./src/shared/template/Head.tsx","webpack://@my-react/ssr-example/./src/shared/template/index.tsx","webpack://@my-react/ssr-example/./src/shared/safeData.ts","webpack://@my-react/ssr-example/./src/shared/emotionCache.ts","webpack://@my-react/ssr-example/./src/shared/store/action.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/client/share/action.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/client/action/clientLang.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/client/action/clientProps.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/client/index.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/server/share/action.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/server/action/serverLang.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/server/index.ts","webpack://@my-react/ssr-example/./src/shared/store/reducer/index.ts","webpack://@my-react/ssr-example/./src/client/pages/ lazy ^\\.\\/.*$ chunkName: page-[request] prefetchOrder: 0 preloadOrder: 0 namespace object","webpack://@my-react/ssr-example/webpack/runtime/startup prefetch"],"sourcesContent":["\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","'use strict';\n\nvar react = require('@my-react/react');\n\nvar myreactShared = {exports: {}};\n\nvar index_production = {};\n\nvar hasRequiredIndex_production;\n\nfunction requireIndex_production () {\n\tif (hasRequiredIndex_production) return index_production;\n\thasRequiredIndex_production = 1;\n\t(function (exports) {\n\n\t\tvar merge = function (src, rest) {\n\t\t return src | rest;\n\t\t};\n\t\tvar remove = function (src, rest) {\n\t\t if (src & rest) {\n\t\t return src ^ rest;\n\t\t }\n\t\t else {\n\t\t return src;\n\t\t }\n\t\t};\n\t\tvar include = function (src, rest) {\n\t\t return src & rest;\n\t\t};\n\t\tvar exclude = function (src, rest) {\n\t\t return !(src & rest);\n\t\t};\n\n\t\t/******************************************************************************\r\n\t\tCopyright (c) Microsoft Corporation.\r\n\r\n\t\tPermission to use, copy, modify, and/or distribute this software for any\r\n\t\tpurpose with or without fee is hereby granted.\r\n\r\n\t\tTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n\t\tREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\n\t\tAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n\t\tINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\n\t\tLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\n\t\tOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\n\t\tPERFORMANCE OF THIS SOFTWARE.\r\n\t\t***************************************************************************** */\r\n\t\t/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\n\r\n\t\tfunction __spreadArray(to, from, pack) {\r\n\t\t if (arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n\t\t if (ar || !(i in from)) {\r\n\t\t if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n\t\t ar[i] = from[i];\r\n\t\t }\r\n\t\t }\r\n\t\t return to.concat(ar || Array.prototype.slice.call(from));\r\n\t\t}\r\n\r\n\t\ttypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n\t\t var e = new Error(message);\r\n\t\t return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n\t\t};\n\n\t\tvar once = function (action) {\n\t\t var called = false;\n\t\t return function () {\n\t\t var args = [];\n\t\t for (var _i = 0; _i < arguments.length; _i++) {\n\t\t args[_i] = arguments[_i];\n\t\t }\n\t\t if (called)\n\t\t return;\n\t\t called = true;\n\t\t if (typeof action === \"function\")\n\t\t action.call.apply(action, __spreadArray([null], args, false));\n\t\t };\n\t\t};\n\n\t\tvar TYPEKEY = \"$$typeof\";\n\t\tvar Element = Symbol.for(\"react.element\");\n\t\tvar Memo = Symbol.for(\"react.memo\");\n\t\tvar ForwardRef = Symbol.for(\"react.forward_ref\");\n\t\tvar Portal = Symbol.for(\"react.portal\");\n\t\tvar Fragment = Symbol.for(\"react.fragment\");\n\t\tvar Context = Symbol.for(\"react.context\");\n\t\tvar Provider = Symbol.for(\"react.provider\");\n\t\tvar Consumer = Symbol.for(\"react.consumer\");\n\t\tvar Lazy = Symbol.for(\"react.lazy\");\n\t\tvar Suspense = Symbol.for(\"react.suspense\");\n\t\tvar Strict = Symbol.for(\"react.strict_mode\");\n\t\t// TODO\n\t\tvar KeepLive = Symbol.for(\"react.keep_live\");\n\t\tvar Scope = Symbol.for(\"react.scope\");\n\t\tvar Comment = Symbol.for(\"react.comment\");\n\t\tvar Offscreen = Symbol.for(\"react.offscreen\");\n\t\tvar Profiler = Symbol.for(\"react.profiler\");\n\n\t\tfunction isObject(target) {\n\t\t return typeof target === \"object\" && target !== null;\n\t\t}\n\t\tfunction isFunction(target) {\n\t\t return typeof target === \"function\";\n\t\t}\n\t\tfunction isArray(target) {\n\t\t return Array.isArray(target);\n\t\t}\n\t\tfunction isSymbol(target) {\n\t\t return typeof target === \"symbol\";\n\t\t}\n\t\tfunction isString(target) {\n\t\t return typeof target === \"string\";\n\t\t}\n\t\tfunction isInteger(target) {\n\t\t return Number.isInteger(Number(target));\n\t\t}\n\t\tfunction isNumber(target) {\n\t\t return typeof target === \"number\";\n\t\t}\n\t\tfunction isCollection(target) {\n\t\t return target instanceof Map || target instanceof Set || target instanceof WeakMap || target instanceof WeakSet;\n\t\t}\n\t\tvar isPromise = function (val) {\n\t\t return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n\t\t};\n\n\t\tvar UniqueArray = /** @class */ (function () {\n\t\t function UniqueArray() {\n\t\t this.set = new Set();\n\t\t this.arr = new Array();\n\t\t this.length = 0;\n\t\t }\n\t\t UniqueArray.prototype.uniPop = function () {\n\t\t var v = this.arr.pop();\n\t\t this.set.delete(v);\n\t\t this.length--;\n\t\t return v;\n\t\t };\n\t\t UniqueArray.prototype.uniPush = function (v) {\n\t\t if (this.set.has(v))\n\t\t return 0;\n\t\t this.set.add(v);\n\t\t this.arr.push(v);\n\t\t this.length++;\n\t\t };\n\t\t UniqueArray.prototype.uniShift = function () {\n\t\t var v = this.arr.shift();\n\t\t this.set.delete(v);\n\t\t this.length--;\n\t\t return v;\n\t\t };\n\t\t UniqueArray.prototype.uniUnshift = function (v) {\n\t\t if (this.set.has(v))\n\t\t return 0;\n\t\t this.set.add(v);\n\t\t this.arr.unshift(v);\n\t\t this.length++;\n\t\t };\n\t\t UniqueArray.prototype.uniDelete = function (v) {\n\t\t if (this.set.has(v)) {\n\t\t this.set.delete(v);\n\t\t this.arr = this.arr.filter(function (i) { return i !== v; });\n\t\t this.length--;\n\t\t }\n\t\t };\n\t\t UniqueArray.prototype.clear = function () {\n\t\t this.length = 0;\n\t\t this.set.clear();\n\t\t this.arr.length = 0;\n\t\t };\n\t\t UniqueArray.prototype.getAll = function () {\n\t\t return this.arr;\n\t\t };\n\t\t return UniqueArray;\n\t\t}());\n\n\t\texports.HOOK_TYPE = void 0;\n\t\t(function (HOOK_TYPE) {\n\t\t HOOK_TYPE[HOOK_TYPE[\"useId\"] = 0] = \"useId\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useRef\"] = 1] = \"useRef\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useMemo\"] = 2] = \"useMemo\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useState\"] = 3] = \"useState\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useSignal\"] = 4] = \"useSignal\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useEffect\"] = 5] = \"useEffect\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useContext\"] = 6] = \"useContext\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useReducer\"] = 7] = \"useReducer\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useCallback\"] = 8] = \"useCallback\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useTransition\"] = 9] = \"useTransition\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useDebugValue\"] = 10] = \"useDebugValue\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useLayoutEffect\"] = 11] = \"useLayoutEffect\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useDeferredValue\"] = 12] = \"useDeferredValue\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useInsertionEffect\"] = 13] = \"useInsertionEffect\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useImperativeHandle\"] = 14] = \"useImperativeHandle\";\n\t\t HOOK_TYPE[HOOK_TYPE[\"useSyncExternalStore\"] = 15] = \"useSyncExternalStore\";\n\t\t})(exports.HOOK_TYPE || (exports.HOOK_TYPE = {}));\n\n\t\texports.UpdateQueueType = void 0;\n\t\t(function (UpdateQueueType) {\n\t\t UpdateQueueType[UpdateQueueType[\"hook\"] = 2] = \"hook\";\n\t\t UpdateQueueType[UpdateQueueType[\"component\"] = 1] = \"component\";\n\t\t UpdateQueueType[UpdateQueueType[\"lazy\"] = 3] = \"lazy\";\n\t\t UpdateQueueType[UpdateQueueType[\"context\"] = 4] = \"context\";\n\t\t})(exports.UpdateQueueType || (exports.UpdateQueueType = {}));\n\n\t\texports.STATE_TYPE = void 0;\n\t\t(function (STATE_TYPE) {\n\t\t STATE_TYPE[STATE_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__create__\"] = 1] = \"__create__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__stable__\"] = 2] = \"__stable__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__skippedConcurrent__\"] = 4] = \"__skippedConcurrent__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__skippedSync__\"] = 8] = \"__skippedSync__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__inherit__\"] = 16] = \"__inherit__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__triggerConcurrent__\"] = 32] = \"__triggerConcurrent__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__triggerConcurrentForce__\"] = 64] = \"__triggerConcurrentForce__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__triggerSync__\"] = 128] = \"__triggerSync__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__triggerSyncForce__\"] = 256] = \"__triggerSyncForce__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__unmount__\"] = 512] = \"__unmount__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__hmr__\"] = 1024] = \"__hmr__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__retrigger__\"] = 2048] = \"__retrigger__\";\n\t\t STATE_TYPE[STATE_TYPE[\"__rerun__\"] = 4096] = \"__rerun__\";\n\t\t})(exports.STATE_TYPE || (exports.STATE_TYPE = {}));\n\n\t\texports.PATCH_TYPE = void 0;\n\t\t(function (PATCH_TYPE) {\n\t\t PATCH_TYPE[PATCH_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__create__\"] = 1] = \"__create__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__update__\"] = 2] = \"__update__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__append__\"] = 4] = \"__append__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__position__\"] = 8] = \"__position__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__effect__\"] = 16] = \"__effect__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__layoutEffect__\"] = 32] = \"__layoutEffect__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__insertionEffect__\"] = 64] = \"__insertionEffect__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__unmount__\"] = 128] = \"__unmount__\";\n\t\t PATCH_TYPE[PATCH_TYPE[\"__ref__\"] = 256] = \"__ref__\";\n\t\t})(exports.PATCH_TYPE || (exports.PATCH_TYPE = {}));\n\n\t\texports.Effect_TYPE = void 0;\n\t\t(function (Effect_TYPE) {\n\t\t Effect_TYPE[Effect_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n\t\t Effect_TYPE[Effect_TYPE[\"__effect__\"] = 1] = \"__effect__\";\n\t\t Effect_TYPE[Effect_TYPE[\"__unmount__\"] = 2] = \"__unmount__\";\n\t\t})(exports.Effect_TYPE || (exports.Effect_TYPE = {}));\n\n\t\tvar compareVersion = function (version1, version2) {\n\t\t var compare = function (arr1, arr2) {\n\t\t if (arr1.length && arr2.length) {\n\t\t var v1 = arr1[0];\n\t\t var v2 = arr2[0];\n\t\t if (v1 > v2)\n\t\t return true;\n\t\t if (v2 > v1)\n\t\t return false;\n\t\t return compare(arr1.slice(1), arr2.slice(1));\n\t\t }\n\t\t if (arr1.length)\n\t\t return true;\n\t\t if (arr2.length)\n\t\t return false;\n\t\t return true;\n\t\t };\n\t\t return compare(version1.split(\".\").map(Number), version2.split(\".\").map(Number));\n\t\t};\n\n\t\tvar isNormalEquals = function (src, target, isSkipKey) {\n\t\t var isEquals = Object.is(src, target);\n\t\t if (isEquals)\n\t\t return true;\n\t\t var hasSkipKeyFunction = typeof isSkipKey === \"function\";\n\t\t if (typeof src === \"object\" && typeof target === \"object\" && src !== null && target !== null) {\n\t\t var srcKeys = Object.keys(src);\n\t\t var targetKeys = Object.keys(target);\n\t\t if (srcKeys.length !== targetKeys.length)\n\t\t return false;\n\t\t var res = true;\n\t\t if (hasSkipKeyFunction) {\n\t\t for (var _i = 0, srcKeys_1 = srcKeys; _i < srcKeys_1.length; _i++) {\n\t\t var key = srcKeys_1[_i];\n\t\t if (isSkipKey(key) && key in target) {\n\t\t continue;\n\t\t }\n\t\t else {\n\t\t res = res && Object.is(src[key], target[key]);\n\t\t }\n\t\t if (!res)\n\t\t return res;\n\t\t }\n\t\t }\n\t\t else {\n\t\t for (var _a = 0, srcKeys_2 = srcKeys; _a < srcKeys_2.length; _a++) {\n\t\t var key = srcKeys_2[_a];\n\t\t res = res && Object.is(src[key], target[key]);\n\t\t if (!res)\n\t\t return res;\n\t\t }\n\t\t }\n\t\t return res;\n\t\t }\n\t\t return false;\n\t\t};\n\t\tvar isArrayEquals = function (src, target) {\n\t\t var isEquals = Object.is(src, target);\n\t\t if (isEquals)\n\t\t return true;\n\t\t if (Array.isArray(src) && Array.isArray(target) && src.length === target.length) {\n\t\t var re = true;\n\t\t for (var key in src) {\n\t\t re = re && Object.is(src[key], target[key]);\n\t\t if (!re)\n\t\t return re;\n\t\t }\n\t\t return re;\n\t\t }\n\t\t return false;\n\t\t};\n\n\t\tvar ListTreeNode = /** @class */ (function () {\n\t\t function ListTreeNode(value) {\n\t\t this.prev = null;\n\t\t this.next = null;\n\t\t this.value = value;\n\t\t }\n\t\t return ListTreeNode;\n\t\t}());\n\t\tvar ListTree = /** @class */ (function () {\n\t\t function ListTree() {\n\t\t this.length = 0;\n\t\t var _stickyHead = null;\n\t\t Object.defineProperty(this, \"stickyHead\", {\n\t\t get: function () {\n\t\t return _stickyHead;\n\t\t },\n\t\t set: function (v) {\n\t\t _stickyHead = v;\n\t\t },\n\t\t });\n\t\t var _stickyFoot = null;\n\t\t Object.defineProperty(this, \"stickyFoot\", {\n\t\t get: function () {\n\t\t return _stickyFoot;\n\t\t },\n\t\t set: function (v) {\n\t\t _stickyFoot = v;\n\t\t },\n\t\t });\n\t\t var _head = null;\n\t\t Object.defineProperty(this, \"head\", {\n\t\t get: function () {\n\t\t return _head;\n\t\t },\n\t\t set: function (v) {\n\t\t _head = v;\n\t\t },\n\t\t });\n\t\t var _foot = null;\n\t\t Object.defineProperty(this, \"foot\", {\n\t\t get: function () {\n\t\t return _foot;\n\t\t },\n\t\t set: function (v) {\n\t\t _foot = v;\n\t\t },\n\t\t });\n\t\t }\n\t\t ListTree.prototype.push = function (node) {\n\t\t var listNode = new ListTreeNode(node);\n\t\t this.length++;\n\t\t if (!this.foot) {\n\t\t this.head = listNode;\n\t\t this.foot = listNode;\n\t\t }\n\t\t else {\n\t\t this.foot.next = listNode;\n\t\t listNode.prev = this.foot;\n\t\t this.foot = listNode;\n\t\t }\n\t\t };\n\t\t ListTree.prototype.pushToLast = function (node) {\n\t\t if (this.stickyFoot) {\n\t\t var node_1 = this.stickyFoot;\n\t\t this.push(node_1.value);\n\t\t this.stickyFoot = null;\n\t\t }\n\t\t var listNode = new ListTreeNode(node);\n\t\t this.stickyFoot = listNode;\n\t\t this.length++;\n\t\t };\n\t\t ListTree.prototype.pushToHead = function (node) {\n\t\t if (this.stickyHead) {\n\t\t var node_2 = this.stickyHead;\n\t\t this.unshift(node_2.value);\n\t\t this.stickyHead = null;\n\t\t }\n\t\t var listNode = new ListTreeNode(node);\n\t\t this.stickyHead = listNode;\n\t\t this.length++;\n\t\t };\n\t\t ListTree.prototype.pop = function () {\n\t\t var foot = this.stickyFoot || this.foot;\n\t\t if (foot) {\n\t\t this.delete(foot);\n\t\t return foot.value;\n\t\t }\n\t\t else {\n\t\t return null;\n\t\t }\n\t\t };\n\t\t ListTree.prototype.unshift = function (node) {\n\t\t var listNode = new ListTreeNode(node);\n\t\t this.length++;\n\t\t if (!this.head) {\n\t\t this.head = listNode;\n\t\t this.foot = listNode;\n\t\t }\n\t\t else {\n\t\t this.head.prev = listNode;\n\t\t listNode.next = this.head;\n\t\t this.head = listNode;\n\t\t }\n\t\t };\n\t\t ListTree.prototype.unshiftToHead = function (node) {\n\t\t if (this.stickyHead) {\n\t\t var node_3 = this.stickyHead;\n\t\t this.unshift(node_3.value);\n\t\t this.stickyHead = null;\n\t\t }\n\t\t var listNode = new ListTreeNode(node);\n\t\t this.stickyHead = listNode;\n\t\t };\n\t\t ListTree.prototype.unshiftToFoot = function (node) {\n\t\t if (this.stickyFoot) {\n\t\t var node_4 = this.stickyFoot;\n\t\t this.push(node_4.value);\n\t\t this.stickyFoot = null;\n\t\t }\n\t\t var listNode = new ListTreeNode(node);\n\t\t this.stickyFoot = listNode;\n\t\t };\n\t\t ListTree.prototype.shift = function () {\n\t\t var head = this.stickyHead || this.head;\n\t\t if (head) {\n\t\t this.delete(head);\n\t\t return head.value;\n\t\t }\n\t\t else {\n\t\t return null;\n\t\t }\n\t\t };\n\t\t ListTree.prototype.pickHead = function () {\n\t\t var _a, _b;\n\t\t return ((_a = this.stickyHead) === null || _a === void 0 ? void 0 : _a.value) || ((_b = this.head) === null || _b === void 0 ? void 0 : _b.value);\n\t\t };\n\t\t ListTree.prototype.pickFoot = function () {\n\t\t var _a, _b;\n\t\t return ((_a = this.stickyFoot) === null || _a === void 0 ? void 0 : _a.value) || ((_b = this.foot) === null || _b === void 0 ? void 0 : _b.value);\n\t\t };\n\t\t ListTree.prototype.listToFoot = function (action) {\n\t\t if (this.stickyHead) {\n\t\t action(this.stickyHead.value);\n\t\t }\n\t\t var node = this.head;\n\t\t while (node) {\n\t\t action(node.value);\n\t\t node = node.next;\n\t\t }\n\t\t if (this.stickyFoot) {\n\t\t action(this.stickyFoot.value);\n\t\t }\n\t\t };\n\t\t ListTree.prototype.listToHead = function (action) {\n\t\t if (this.stickyFoot) {\n\t\t action(this.stickyFoot.value);\n\t\t }\n\t\t var node = this.foot;\n\t\t while (node) {\n\t\t action(node.value);\n\t\t node = node.prev;\n\t\t }\n\t\t if (this.stickyHead) {\n\t\t action(this.stickyHead.value);\n\t\t }\n\t\t };\n\t\t ListTree.prototype.toArray = function () {\n\t\t var re = [];\n\t\t this.listToFoot(function (v) { return re.push(v); });\n\t\t return re;\n\t\t };\n\t\t ListTree.prototype.delete = function (node) {\n\t\t if (this.stickyHead === node) {\n\t\t this.stickyHead = null;\n\t\t this.length--;\n\t\t }\n\t\t else if (this.stickyFoot === node) {\n\t\t this.stickyFoot = null;\n\t\t this.length--;\n\t\t }\n\t\t else if (this.head === node) {\n\t\t var next = node.next;\n\t\t node.next = null;\n\t\t if (next) {\n\t\t this.head = next;\n\t\t next.prev = null;\n\t\t }\n\t\t else {\n\t\t this.head = null;\n\t\t this.foot = null;\n\t\t }\n\t\t this.length--;\n\t\t }\n\t\t else if (this.foot === node) {\n\t\t var prev = node.prev;\n\t\t node.prev = null;\n\t\t if (prev) {\n\t\t this.foot = prev;\n\t\t prev.next = null;\n\t\t }\n\t\t else {\n\t\t this.head = null;\n\t\t this.foot = null;\n\t\t }\n\t\t this.length--;\n\t\t }\n\t\t else if (this.hasNode(node)) {\n\t\t var prev = node.prev;\n\t\t var next = node.next;\n\t\t node.prev = null;\n\t\t node.next = null;\n\t\t prev.next = next;\n\t\t next.prev = prev;\n\t\t this.length--;\n\t\t }\n\t\t };\n\t\t ListTree.prototype.size = function () {\n\t\t return this.length;\n\t\t };\n\t\t ListTree.prototype.hasNode = function (node) {\n\t\t if (this.stickyHead && Object.is(this.stickyHead, node))\n\t\t return true;\n\t\t if (this.stickyFoot && Object.is(this.stickyFoot, node))\n\t\t return true;\n\t\t var listNode = this.head;\n\t\t while (listNode) {\n\t\t if (Object.is(listNode, node))\n\t\t return true;\n\t\t listNode = listNode.next;\n\t\t }\n\t\t return false;\n\t\t };\n\t\t ListTree.prototype.hasValue = function (node) {\n\t\t if (this.stickyHead && Object.is(this.stickyHead.value, node))\n\t\t return true;\n\t\t if (this.stickyFoot && Object.is(this.stickyFoot.value, node))\n\t\t return true;\n\t\t var listNode = this.head;\n\t\t while (listNode) {\n\t\t if (Object.is(listNode.value, node))\n\t\t return true;\n\t\t listNode = listNode.next;\n\t\t }\n\t\t return false;\n\t\t };\n\t\t ListTree.prototype.some = function (iterator) {\n\t\t var re = false;\n\t\t this.listToFoot(function (node) {\n\t\t re = re || iterator(node);\n\t\t });\n\t\t return re;\n\t\t };\n\t\t ListTree.prototype.every = function (iterator) {\n\t\t var re = true;\n\t\t this.listToFoot(function (node) {\n\t\t re = re && iterator(node);\n\t\t });\n\t\t return re;\n\t\t };\n\t\t ListTree.prototype.concat = function (list) {\n\t\t var newList = new ListTree();\n\t\t this.listToFoot(function (node) { return newList.push(node); });\n\t\t list.listToFoot(function (node) { return newList.push(node); });\n\t\t return newList;\n\t\t };\n\t\t ListTree.prototype.clone = function () {\n\t\t var newList = new ListTree();\n\t\t this.listToFoot(function (v) { return newList.push(v); });\n\t\t return newList;\n\t\t };\n\t\t ListTree.prototype.clear = function () {\n\t\t this.length = 0;\n\t\t this.head = null;\n\t\t this.foot = null;\n\t\t this.stickyHead = null;\n\t\t this.stickyFoot = null;\n\t\t };\n\t\t return ListTree;\n\t\t}());\n\n\t\texports.Comment = Comment;\n\t\texports.Consumer = Consumer;\n\t\texports.Context = Context;\n\t\texports.Element = Element;\n\t\texports.ForwardRef = ForwardRef;\n\t\texports.Fragment = Fragment;\n\t\texports.KeepLive = KeepLive;\n\t\texports.Lazy = Lazy;\n\t\texports.ListTree = ListTree;\n\t\texports.ListTreeNode = ListTreeNode;\n\t\texports.Memo = Memo;\n\t\texports.Offscreen = Offscreen;\n\t\texports.Portal = Portal;\n\t\texports.Profiler = Profiler;\n\t\texports.Provider = Provider;\n\t\texports.Scope = Scope;\n\t\texports.Strict = Strict;\n\t\texports.Suspense = Suspense;\n\t\texports.TYPEKEY = TYPEKEY;\n\t\texports.UniqueArray = UniqueArray;\n\t\texports.compareVersion = compareVersion;\n\t\texports.exclude = exclude;\n\t\texports.include = include;\n\t\texports.isArray = isArray;\n\t\texports.isArrayEquals = isArrayEquals;\n\t\texports.isCollection = isCollection;\n\t\texports.isFunction = isFunction;\n\t\texports.isInteger = isInteger;\n\t\texports.isNormalEquals = isNormalEquals;\n\t\texports.isNumber = isNumber;\n\t\texports.isObject = isObject;\n\t\texports.isPromise = isPromise;\n\t\texports.isString = isString;\n\t\texports.isSymbol = isSymbol;\n\t\texports.merge = merge;\n\t\texports.once = once;\n\t\texports.remove = remove;\n\t\t\n\t} (index_production));\n\treturn index_production;\n}\n\nvar hasRequiredMyreactShared;\n\nfunction requireMyreactShared () {\n\tif (hasRequiredMyreactShared) return myreactShared.exports;\n\thasRequiredMyreactShared = 1;\n\n\t{\n\t myreactShared.exports = requireIndex_production();\n\t}\n\treturn myreactShared.exports;\n}\n\nvar myreactSharedExports = requireMyreactShared();\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar MyWeakMap = typeof WeakMap !== \"undefined\" ? WeakMap : Map;\n\nvar currentRenderDispatch = react.createRef(null);\nvar currentRefreshHandler = react.createRef(null);\n// TODO\n// need improve\nvar currentTriggerFiber = react.createRef(null);\nvar currentCallingFiber = react.createRef(null);\nvar fiberToDispatchMap = new MyWeakMap();\nvar enableFiberForLog = react.createRef(false);\nvar enableLogForCurrentFlowIsRunning = react.createRef(false);\n\nreact.__my_react_shared__.enableDebugFiled;\nvar isErrorBoundariesInstance = function (instance, Component) {\n return typeof instance.componentDidCatch === \"function\" || typeof Component.getDerivedStateFromError === \"function\";\n};\nvar isErrorBoundariesComponent = function (fiber) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__class__)) {\n var Component = fiber.elementType;\n var typedComponent = Component;\n var typedInstance = fiber.instance;\n return isErrorBoundariesInstance(typedInstance, typedComponent);\n }\n return false;\n};\nvar defaultGenerateErrorBoundariesMap = function (fiber, map) {\n var parent = fiber.parent;\n if (parent) {\n if (isErrorBoundariesComponent(parent)) {\n map.set(fiber, parent);\n }\n else {\n var parentErrorBoundaries = map.get(parent);\n if (parentErrorBoundaries) {\n if (parentErrorBoundaries.state & myreactSharedExports.STATE_TYPE.__unmount__) {\n map.delete(parent);\n map.delete(fiber);\n }\n else {\n map.set(fiber, parentErrorBoundaries);\n }\n }\n }\n }\n};\nvar defaultResolveErrorBoundaries = function (fiber) {\n var parent = fiber.parent;\n while (parent) {\n if (isErrorBoundariesComponent(parent)) {\n return parent;\n }\n parent = parent.parent;\n }\n return null;\n};\n\nvar currentRenderPlatform$a = react.__my_react_internal__.currentRenderPlatform;\nreact.__my_react_shared__.enableScopeTreeLog;\nvar defaultDispatchMountLegacy = function (_fiber, _dispatch) {\n var mountInsertionEffectList = function (_fiber) {\n if (_fiber.child)\n mountInsertionEffectList(_fiber.child);\n insertionEffect(_fiber, _dispatch);\n if (_fiber.sibling)\n mountInsertionEffectList(_fiber.sibling);\n };\n var mountCommit = function (_fiber) {\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallCreateAndUpdate() {\n _dispatch.commitCreate(_fiber);\n _dispatch.commitUpdate(_fiber);\n },\n });\n if (_fiber.child)\n mountCommit(_fiber.child);\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallAppendAndSetRef() {\n _dispatch.commitAppend(_fiber);\n _dispatch.commitSetRef(_fiber);\n },\n });\n if (_fiber.sibling) {\n mountCommit(_fiber.sibling);\n }\n };\n var mountLayoutEffectList = function (_fiber) {\n if (_fiber.child)\n mountLayoutEffectList(_fiber.child);\n layoutEffect(_fiber, _dispatch);\n if (_fiber.sibling)\n mountLayoutEffectList(_fiber.sibling);\n };\n var mountEffectList = function (_fiber) {\n if (_fiber.child)\n mountEffectList(_fiber.child);\n effect(_fiber, _dispatch);\n if (_fiber.sibling)\n mountEffectList(_fiber.sibling);\n };\n var mountLoop = function (_fiber) {\n beforeSyncUpdate();\n mountInsertionEffectList(_fiber);\n afterSyncUpdate();\n mountCommit(_fiber);\n beforeSyncUpdate();\n mountLayoutEffectList(_fiber);\n afterSyncUpdate();\n var renderPlatform = currentRenderPlatform$a.current;\n renderPlatform.microTask(function invokeEffectList() {\n mountEffectList(_fiber);\n });\n };\n mountLoop(_fiber);\n};\nvar defaultDispatchMountLatest = function (_fiber, _dispatch) {\n var _list = generateFiberToMountList(_fiber);\n beforeSyncUpdate();\n _list.listToFoot(function invokeInsertionEffectList(_fiber) {\n insertionEffect(_fiber, _dispatch);\n });\n afterSyncUpdate();\n _list.listToFoot(function invokeCreateAndUpdateList(_fiber) {\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallCreateAndUpdate() {\n _dispatch.commitCreate(_fiber);\n _dispatch.commitUpdate(_fiber);\n },\n });\n });\n _list.listToFoot(function invokeAppendAndSetRefList(_fiber) {\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallAppendAndSetRef() {\n _dispatch.commitAppend(_fiber);\n _dispatch.commitSetRef(_fiber);\n },\n });\n });\n beforeSyncUpdate();\n _list.listToFoot(function invokeLayoutEffectList(_fiber) {\n layoutEffect(_fiber, _dispatch);\n });\n afterSyncUpdate();\n var renderPlatform = currentRenderPlatform$a.current;\n renderPlatform.microTask(function invokeEffectListTask() {\n _list.listToFoot(function invokeEffectList(_fiber) {\n effect(_fiber, _dispatch);\n });\n });\n};\nvar defaultDispatchMount = defaultDispatchMountLatest;\n\nreact.__my_react_shared__.enableDebugFiled;\n// TODO used for hydrate fallback\nvar defaultGenerateScopeMap = function (fiber, map) {\n var parent = fiber.parent;\n if (parent) {\n if (myreactSharedExports.include(parent.type, exports.NODE_TYPE.__scope__)) {\n map.set(fiber, parent);\n }\n else {\n var parentScopeFiber = map.get(parent);\n if (parentScopeFiber) {\n if (parentScopeFiber.state * myreactSharedExports.STATE_TYPE.__unmount__) {\n map.delete(parent);\n map.delete(fiber);\n }\n else {\n map.set(fiber, parentScopeFiber);\n }\n }\n }\n }\n};\nvar defaultResolveScope = function (fiber) {\n var parent = fiber.parent;\n while (parent) {\n if (myreactSharedExports.include(parent.type, exports.NODE_TYPE.__scope__)) {\n return parent;\n }\n parent = parent.parent;\n }\n return null;\n};\n\nreact.__my_react_shared__.enableDebugFiled;\nvar defaultGenerateStrictMap = function (fiber, map) {\n var parent = fiber.parent;\n if (parent) {\n if (myreactSharedExports.include(parent.type, exports.NODE_TYPE.__strict__)) {\n map.set(fiber, true);\n }\n else {\n var parentIsStrict = map.get(parent) || false;\n map.set(fiber, parentIsStrict);\n }\n }\n};\nvar defaultGenerateStrict = function (fiber) {\n return false;\n};\n\nreact.__my_react_shared__.enableDebugFiled;\nvar defaultGenerateSuspenseMap = function (fiber, map) {\n var parent = fiber.parent;\n if (parent) {\n if (myreactSharedExports.include(parent.type, exports.NODE_TYPE.__suspense__)) {\n map.set(fiber, parent);\n }\n else {\n var parentFiber = map.get(parent);\n if (parentFiber) {\n if (parentFiber.state & myreactSharedExports.STATE_TYPE.__unmount__) {\n map.delete(parent);\n map.delete(fiber);\n }\n else {\n map.set(fiber, parentFiber);\n }\n }\n }\n }\n var parentFiber; \n};\nvar defaultResolveSuspense = function (fiber) {\n var _a;\n var parent = fiber.parent;\n while (parent) {\n if (myreactSharedExports.include(parent.type, exports.NODE_TYPE.__suspense__)) {\n return (_a = parent.pendingProps) === null || _a === void 0 ? void 0 : _a[\"fallback\"];\n }\n parent = parent.parent;\n }\n return null;\n};\n\nvar unmountList = function (list, renderDispatch) {\n // will happen when app crash\n list.listToFoot(function invokeUnmountPendingList(f) {\n unmountPending(f, renderDispatch);\n });\n list.listToFoot(function invokeFiberUnmountList(f) {\n safeCallWithCurrentFiber({\n fiber: f,\n action: function safeCallFiberUnmount() {\n unmountFiberNode(f, renderDispatch);\n },\n });\n });\n};\n// unmount current fiber\nvar unmountFiber = function (fiber) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n var renderDispatch = fiberToDispatchMap.get(fiber);\n var list = generateFiberToUnmountList(fiber);\n unmountList(list, renderDispatch);\n};\n// unmount current container with safe\nvar unmountContainer = function (renderDispatch, cb) {\n renderDispatch.reconcileUnmount();\n cb === null || cb === void 0 ? void 0 : cb();\n};\nvar clearContainer = function (renderDispatch) {\n var _a, _b, _c, _d;\n (_a = renderDispatch.pendingCommitFiberList) === null || _a === void 0 ? void 0 : _a.clear();\n (_b = renderDispatch.pendingChangedFiberList) === null || _b === void 0 ? void 0 : _b.clear();\n renderDispatch.pendingCommitFiberPatch = myreactSharedExports.PATCH_TYPE.__initial__;\n (_c = renderDispatch.pendingUpdateFiberArray) === null || _c === void 0 ? void 0 : _c.clear();\n (_d = renderDispatch.pendingAsyncLoadFiberList) === null || _d === void 0 ? void 0 : _d.clear();\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.isAppMounted = false;\n renderDispatch.isAppUnmounted = true;\n};\n\nvar defaultGenerateUnmountMap = function (fiber, unmount, map) {\n var list = map.get(fiber) || new myreactSharedExports.ListTree();\n var newList = generateFiberToUnmountList(unmount);\n map.set(fiber, list.concat(newList));\n};\nvar defaultDispatchUnmount = function (renderDispatch) {\n if (renderDispatch.isAppUnmounted)\n return;\n var rootFiber = renderDispatch.rootFiber;\n unmountFiber(rootFiber);\n clearContainer(renderDispatch);\n};\nvar unmountPending = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__unmount__)) {\n var unmountMap = renderDispatch.runtimeMap.unmountMap;\n var allUnmount_1 = unmountMap.get(fiber);\n unmountMap.delete(fiber);\n if (allUnmount_1 && allUnmount_1.length)\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallUnmountList() {\n unmountList(allUnmount_1, renderDispatch);\n },\n });\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__unmount__);\n }\n};\n\nvar currentRenderPlatform$9 = react.__my_react_internal__.currentRenderPlatform;\nreact.__my_react_shared__.enableScopeTreeLog;\nvar defaultDispatchUpdate = function (_list, _dispatch) {\n // TODO maybe need call `insertionEffect` in another function\n beforeSyncUpdate();\n _list.listToFoot(function invokeUnmountPendingAndInsertionEffectList(_fiber) {\n if (myreactSharedExports.exclude(_fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {\n unmountPending(_fiber, _dispatch);\n insertionEffect(_fiber, _dispatch);\n }\n });\n afterSyncUpdate();\n _list.listToFoot(function invokeCreateAdnUpdateList(_fiber) {\n if (myreactSharedExports.exclude(_fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallCreateAndUpdate() {\n _dispatch.commitCreate(_fiber);\n _dispatch.commitUpdate(_fiber);\n },\n });\n }\n });\n _list.listToHead(function invokePositionList(_fiber) {\n if (myreactSharedExports.exclude(_fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallPosition() {\n _dispatch.commitPosition(_fiber);\n },\n });\n }\n });\n _list.listToFoot(function invokeAppendAndSetRefList(_fiber) {\n if (myreactSharedExports.exclude(_fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {\n safeCallWithCurrentFiber({\n fiber: _fiber,\n action: function safeCallAppendAdnSetRef() {\n _dispatch.commitAppend(_fiber);\n _dispatch.commitSetRef(_fiber);\n },\n });\n }\n });\n beforeSyncUpdate();\n _list.listToFoot(function invokeLayoutEffectList(_fiber) {\n if (myreactSharedExports.exclude(_fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {\n layoutEffect(_fiber, _dispatch);\n }\n });\n afterSyncUpdate();\n var renderPlatform = currentRenderPlatform$9.current;\n // TODO before next update flow, make sure all the effect has done\n renderPlatform.microTask(function invokeEffectListTask() {\n _list.listToFoot(function invokeEffectList(_fiber) {\n if (myreactSharedExports.exclude(_fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) && !_dispatch.isAppUnmounted) {\n effect(_fiber, _dispatch);\n }\n });\n });\n};\n\n/* eslint-disable @typescript-eslint/no-this-alias */\n/* eslint-disable max-lines */\nvar getInitialValue = function () {\n return {\n fiberInitial: new Set(),\n fiberUpdate: new Set(),\n fiberHasChange: new Set(),\n fiberUnmount: new Set(),\n fiberState: new Set(),\n fiberTrigger: new Set(),\n instanceInitial: new Set(),\n instanceUpdate: new Set(),\n instanceState: new Set(),\n instanceUnmount: new Set(),\n hookInitial: new Set(),\n hookUpdate: new Set(),\n hookState: new Set(),\n hookUnmount: new Set(),\n beforeCommit: new Set(),\n afterCommit: new Set(),\n beforeUpdate: new Set(),\n afterUpdate: new Set(),\n beforeUnmount: new Set(),\n afterUnmount: new Set(),\n };\n};\nvar listenerMap = new Map();\nvar CustomRenderDispatch = /** @class */ (function () {\n function CustomRenderDispatch(rootNode, rootFiber) {\n this.rootNode = rootNode;\n this.rootFiber = rootFiber;\n this.runtimeMap = {\n suspenseMap: new MyWeakMap(),\n strictMap: new MyWeakMap(),\n scopeMap: new MyWeakMap(),\n errorBoundariesMap: new MyWeakMap(),\n effectMap: new MyWeakMap(),\n layoutEffectMap: new MyWeakMap(),\n insertionEffectMap: new MyWeakMap(),\n contextMap: new MyWeakMap(),\n unmountMap: new MyWeakMap(),\n eventMap: new MyWeakMap(),\n };\n this.runtimeFiber = {\n scheduledFiber: null,\n errorCatchFiber: null,\n nextWorkingFiber: null,\n };\n this.isAppMounted = false;\n this.isAppCrashed = false;\n this.isAppUnmounted = false;\n this.pendingCommitFiberList = null;\n this.pendingCommitFiberPatch = myreactSharedExports.PATCH_TYPE.__initial__;\n this.pendingChangedFiberList = null;\n this.pendingAsyncLoadFiberList = null;\n this.pendingUpdateFiberArray = new myreactSharedExports.UniqueArray();\n this.uniqueIdCount = 0;\n var typedFiber = rootFiber;\n typedFiber.renderDispatch = this;\n listenerMap.set(this, getInitialValue());\n }\n CustomRenderDispatch.prototype.onFiberInitial = function (cb) {\n var set = listenerMap.get(this).fiberInitial;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceFiberInitial = function (cb) {\n var set = listenerMap.get(this).fiberInitial;\n var onceCb = function (_fiber) {\n cb(_fiber);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onFiberUpdate = function (cb) {\n var set = listenerMap.get(this).fiberUpdate;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onFiberChange = function (cb) {\n var set = listenerMap.get(this).fiberHasChange;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceFiberChange = function (cb) {\n var set = listenerMap.get(this).fiberHasChange;\n var onceCb = function (_list) {\n cb(_list);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onceFiberUpdate = function (cb) {\n var set = listenerMap.get(this).fiberUpdate;\n var onceCb = function (_fiber) {\n cb(_fiber);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onFiberUnmount = function (cb) {\n var set = listenerMap.get(this).fiberUnmount;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceFiberUnmount = function (cb) {\n var set = listenerMap.get(this).fiberUnmount;\n var onceCb = function (_fiber) {\n cb(_fiber);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onFiberState = function (cb) {\n var set = listenerMap.get(this).fiberState;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceFiberState = function (cb) {\n var set = listenerMap.get(this).fiberState;\n var onceCb = function (_fiber, _updater) {\n cb(_fiber, _updater);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onFiberTrigger = function (cb) {\n var set = listenerMap.get(this).fiberTrigger;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceFiberTrigger = function (cb) {\n var set = listenerMap.get(this).fiberTrigger;\n var onceCb = function (_fiber, _state) {\n cb(_fiber, _state);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onFiberHMR = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberHMR;\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);\n return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };\n };\n CustomRenderDispatch.prototype.onceFiberHMR = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberHMR;\n var onceCb = function (_fiber) {\n var _a;\n cb(_fiber);\n (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n CustomRenderDispatch.prototype.onFiberRun = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberRun;\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);\n return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };\n };\n CustomRenderDispatch.prototype.onceFiberRun = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberRun;\n var onceCb = function (_fiber) {\n var _a;\n cb(_fiber);\n (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n CustomRenderDispatch.prototype.onFiberWarn = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberWarn;\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);\n return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };\n };\n CustomRenderDispatch.prototype.onceFiberWarn = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberWarn;\n var onceCb = function (_fiber) {\n var _a;\n cb(_fiber);\n (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n CustomRenderDispatch.prototype.onFiberError = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberError;\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);\n return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };\n };\n CustomRenderDispatch.prototype.onceFiberError = function (cb) {\n var _a;\n var set = listenerMap.get(this).fiberError;\n var onceCb = function (_fiber) {\n var _a;\n cb(_fiber);\n (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n CustomRenderDispatch.prototype.onPerformanceWarn = function (cb) {\n var _a;\n var set = listenerMap.get(this).performanceWarn;\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, cb);\n return function () { var _a; return (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, cb); };\n };\n CustomRenderDispatch.prototype.oncePerformanceWarn = function (cb) {\n var _a;\n var set = listenerMap.get(this).performanceWarn;\n var onceCb = function (_fiber) {\n var _a;\n cb(_fiber);\n (_a = set === null || set === void 0 ? void 0 : set.delete) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n (_a = set === null || set === void 0 ? void 0 : set.add) === null || _a === void 0 ? void 0 : _a.call(set, onceCb);\n };\n CustomRenderDispatch.prototype.onInstanceInitial = function (cb) {\n var set = listenerMap.get(this).instanceInitial;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceInstanceInitial = function (cb) {\n var set = listenerMap.get(this).instanceInitial;\n var onceCb = function (_instance, _fiber) {\n cb(_instance, _fiber);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onInstanceUpdate = function (cb) {\n var set = listenerMap.get(this).instanceUpdate;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceInstanceUpdate = function (cb) {\n var set = listenerMap.get(this).instanceUpdate;\n var onceCb = function (_instance, _fiber) {\n cb(_instance, _fiber);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onInstanceState = function (cb) {\n var set = listenerMap.get(this).instanceState;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceInstanceState = function (cb) {\n var set = listenerMap.get(this).instanceState;\n var onceCb = function (_instance, _fiber, _updater) {\n cb(_instance, _fiber, _updater);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onInstanceUnmount = function (cb) {\n var set = listenerMap.get(this).instanceUnmount;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceInstanceUnmount = function (cb) {\n var set = listenerMap.get(this).instanceUnmount;\n var onceCb = function (_instance, _fiber) {\n cb(_instance, _fiber);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onHookInitial = function (cb) {\n var set = listenerMap.get(this).hookInitial;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceHookInitial = function (cb) {\n var set = listenerMap.get(this).hookInitial;\n var onceCb = function (_hook) {\n cb(_hook);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onHookUpdate = function (cb) {\n var set = listenerMap.get(this).hookUpdate;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceHookUpdate = function (cb) {\n var set = listenerMap.get(this).hookUpdate;\n var onceCb = function (_hook) {\n cb(_hook);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onHookUnmount = function (cb) {\n var set = listenerMap.get(this).hookUnmount;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceHookUnmount = function (cb) {\n var set = listenerMap.get(this).hookUnmount;\n var onceCb = function (_hook) {\n cb(_hook);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onHookState = function (cb) {\n var set = listenerMap.get(this).hookState;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceHookTrigger = function (cb) {\n var set = listenerMap.get(this).hookState;\n var onceCb = function (_hook, _fiber, _updater) {\n cb(_hook, _fiber, _updater);\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onBeforeCommit = function (cb) {\n var set = listenerMap.get(this).beforeCommit;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceBeforeCommit = function (cb) {\n var set = listenerMap.get(this).beforeCommit;\n var onceCb = function () {\n cb();\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onAfterCommit = function (cb) {\n var set = listenerMap.get(this).afterCommit;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceAfterCommit = function (cb) {\n var set = listenerMap.get(this).afterCommit;\n var onceCb = function () {\n cb();\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onBeforeUpdate = function (cb) {\n var set = listenerMap.get(this).beforeUpdate;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceBeforeUpdate = function (cb) {\n var set = listenerMap.get(this).beforeUpdate;\n var onceCb = function () {\n cb();\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onAfterUpdate = function (cb) {\n var set = listenerMap.get(this).afterUpdate;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceAfterUpdate = function (cb) {\n var set = listenerMap.get(this).afterUpdate;\n var onceCb = function () {\n cb();\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onBeforeUnmount = function (cb) {\n var set = listenerMap.get(this).beforeUnmount;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceBeforeUnmount = function (cb) {\n var set = listenerMap.get(this).beforeUnmount;\n var onceCb = function () {\n cb();\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.onAfterUnmount = function (cb) {\n var set = listenerMap.get(this).afterUnmount;\n set.add(cb);\n return function () { return set.delete(cb); };\n };\n CustomRenderDispatch.prototype.onceAfterUnmount = function (cb) {\n var set = listenerMap.get(this).afterUnmount;\n var onceCb = function () {\n cb();\n set.delete(onceCb);\n };\n set.add(onceCb);\n };\n CustomRenderDispatch.prototype.generateCommitList = function (_fiber) {\n if (!_fiber)\n return;\n this.pendingCommitFiberPatch = myreactSharedExports.merge(this.pendingCommitFiberPatch, _fiber.patch);\n if (_fiber.patch !== myreactSharedExports.PATCH_TYPE.__initial__) {\n this.pendingCommitFiberList = this.pendingCommitFiberList || new myreactSharedExports.ListTree();\n this.pendingCommitFiberList.push(_fiber);\n }\n };\n CustomRenderDispatch.prototype.generateChangedList = function (_fiber, withCheck) {\n if (!_fiber)\n return;\n if (!this.isAppMounted)\n return;\n this.pendingChangedFiberList = this.pendingChangedFiberList || new myreactSharedExports.ListTree();\n if (withCheck && this.pendingChangedFiberList.hasValue(_fiber)) {\n return;\n }\n this.pendingChangedFiberList.push(_fiber);\n };\n CustomRenderDispatch.prototype.pendingCreate = function (_fiber) {\n if (myreactSharedExports.include(_fiber.type, this.runtimeRef.typeForCreate)) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__create__);\n }\n };\n CustomRenderDispatch.prototype.pendingUpdate = function (_fiber) {\n if (myreactSharedExports.include(_fiber.type, this.runtimeRef.typeForUpdate)) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__update__);\n }\n };\n CustomRenderDispatch.prototype.pendingAppend = function (_fiber) {\n if (myreactSharedExports.include(_fiber.type, this.runtimeRef.typeForAppend)) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__append__);\n }\n };\n CustomRenderDispatch.prototype.pendingPosition = function (_fiber) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__position__);\n };\n CustomRenderDispatch.prototype.pendingRef = function (_fiber) {\n if (_fiber.ref) {\n if (myreactSharedExports.include(_fiber.type, this.runtimeRef.typeForRef)) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__ref__);\n }\n else if (myreactSharedExports.exclude(_fiber.type, exports.NODE_TYPE.__forwardRef__)) {\n onceWarnWithKeyAndFiber(_fiber, \"ref\", \"[@my-react/react] set ref for current element will be ignored\");\n }\n }\n };\n CustomRenderDispatch.prototype.pendingUnmount = function (_fiber, _pendingUnmount) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__unmount__);\n defaultGenerateUnmountMap(_fiber, _pendingUnmount, this.runtimeMap.unmountMap);\n };\n CustomRenderDispatch.prototype.pendingEffect = function (_fiber, _effect, option) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__effect__);\n defaultGenerateEffectMap(_fiber, _effect, this.runtimeMap.effectMap, option);\n };\n CustomRenderDispatch.prototype.pendingLayoutEffect = function (_fiber, _layoutEffect, option) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__layoutEffect__);\n defaultGenerateEffectMap(_fiber, _layoutEffect, this.runtimeMap.layoutEffectMap, option);\n };\n CustomRenderDispatch.prototype.pendingInsertionEffect = function (_fiber, _insertionEffect, option) {\n _fiber.patch = myreactSharedExports.merge(_fiber.patch, myreactSharedExports.PATCH_TYPE.__insertionEffect__);\n defaultGenerateEffectMap(_fiber, _insertionEffect, this.runtimeMap.insertionEffectMap, option);\n };\n /**\n * @deprecated\n */\n CustomRenderDispatch.prototype.patchToFiberInitial = function (_fiber) {\n };\n /**\n * @deprecated\n */\n CustomRenderDispatch.prototype.patchToFiberUpdate = function (_fiber) {\n };\n /**\n * @deprecated\n */\n CustomRenderDispatch.prototype.patchToFiberUnmount = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitCreate = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitUpdate = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitAppend = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitPosition = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitSetRef = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitUnsetRef = function (_fiber) {\n };\n CustomRenderDispatch.prototype.commitClear = function (_fiber) {\n };\n CustomRenderDispatch.prototype.resolveLazyElement = function (_fiber) {\n return null;\n };\n CustomRenderDispatch.prototype.resolveStrictMap = function (_fiber) {\n };\n CustomRenderDispatch.prototype.resolveStrict = function (_fiber) {\n return defaultGenerateStrict();\n };\n CustomRenderDispatch.prototype.resolveScopeMap = function (_fiber) {\n defaultGenerateScopeMap(_fiber, this.runtimeMap.scopeMap);\n };\n CustomRenderDispatch.prototype.resolveScope = function (_fiber) {\n return defaultResolveScope(_fiber);\n };\n CustomRenderDispatch.prototype.resolveSuspenseMap = function (_fiber) {\n defaultGenerateSuspenseMap(_fiber, this.runtimeMap.suspenseMap);\n };\n CustomRenderDispatch.prototype.resolveSuspense = function (_fiber) {\n return defaultResolveSuspense(_fiber);\n };\n CustomRenderDispatch.prototype.resolveErrorBoundariesMap = function (_fiber) {\n defaultGenerateErrorBoundariesMap(_fiber, this.runtimeMap.errorBoundariesMap);\n };\n CustomRenderDispatch.prototype.resolveErrorBoundaries = function (_fiber) {\n return defaultResolveErrorBoundaries(_fiber);\n };\n CustomRenderDispatch.prototype.resolveContextMap = function (_fiber) {\n defaultGenerateContextMap(_fiber, this.runtimeMap.contextMap);\n };\n CustomRenderDispatch.prototype.resolveContextFiber = function (_fiber, _contextObject) {\n return defaultGetContextFiber(_fiber, this, _contextObject);\n };\n CustomRenderDispatch.prototype.resolveContextValue = function (_fiber, _contextObject) {\n return defaultGetContextValue(_fiber, _contextObject);\n };\n CustomRenderDispatch.prototype.reconcileCommit = function (_fiber) {\n var instance = this;\n safeCall(function safeCallBeforeCommit() {\n var _a;\n (_a = instance.beforeCommit) === null || _a === void 0 ? void 0 : _a.call(instance);\n });\n safeCall(function safeCallBeforeCommitListener() {\n listenerMap.get(instance).beforeCommit.forEach(function (cb) { return cb(); });\n });\n defaultDispatchMount(_fiber, this);\n safeCall(function safeCallAfterCommitListener() {\n listenerMap.get(instance).afterCommit.forEach(function (cb) { return cb(); });\n });\n safeCall(function safeCallAfterCommit() {\n var _a;\n (_a = instance.afterCommit) === null || _a === void 0 ? void 0 : _a.call(instance);\n });\n };\n CustomRenderDispatch.prototype.reconcileUpdate = function (_list) {\n var instance = this;\n safeCall(function safeCallBeforeUpdate() {\n var _a;\n (_a = instance.beforeUpdate) === null || _a === void 0 ? void 0 : _a.call(instance);\n });\n safeCall(function safeCallBeforeUpdateListener() {\n listenerMap.get(instance).beforeUpdate.forEach(function (cb) { return cb(); });\n });\n defaultDispatchUpdate(_list, this);\n safeCall(function safeCallAfterUpdateListener() {\n listenerMap.get(instance).afterUpdate.forEach(function (cb) { return cb(); });\n });\n safeCall(function safeCallAfterUpdate() {\n var _a;\n (_a = instance.afterUpdate) === null || _a === void 0 ? void 0 : _a.call(instance);\n });\n };\n CustomRenderDispatch.prototype.reconcileUnmount = function () {\n var instance = this;\n safeCall(function safeCallBeforeUnmount() {\n var _a;\n (_a = instance.beforeUnmount) === null || _a === void 0 ? void 0 : _a.call(instance);\n });\n safeCall(function safeCallBeforeUnmountListener() {\n listenerMap.get(instance).beforeUnmount.forEach(function (cb) { return cb(); });\n });\n defaultDispatchUnmount(this);\n safeCall(function safeCallAfterUnmountListener() {\n listenerMap.get(instance).afterUnmount.forEach(function (cb) { return cb(); });\n });\n safeCall(function safeCallAfterUnmount() {\n var _a;\n (_a = instance.afterUnmount) === null || _a === void 0 ? void 0 : _a.call(instance);\n });\n };\n CustomRenderDispatch.prototype.shouldYield = function () {\n return false;\n };\n CustomRenderDispatch.prototype.resetUpdateFlowRuntimeFiber = function () {\n this.runtimeFiber.scheduledFiber = null;\n this.runtimeFiber.nextWorkingFiber = null;\n this.pendingCommitFiberPatch = myreactSharedExports.PATCH_TYPE.__initial__;\n };\n return CustomRenderDispatch;\n}());\n\nexports.NODE_TYPE = void 0;\n(function (NODE_TYPE) {\n NODE_TYPE[NODE_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n NODE_TYPE[NODE_TYPE[\"__class__\"] = 1] = \"__class__\";\n NODE_TYPE[NODE_TYPE[\"__function__\"] = 2] = \"__function__\";\n NODE_TYPE[NODE_TYPE[\"__lazy__\"] = 4] = \"__lazy__\";\n NODE_TYPE[NODE_TYPE[\"__memo__\"] = 8] = \"__memo__\";\n NODE_TYPE[NODE_TYPE[\"__forwardRef__\"] = 16] = \"__forwardRef__\";\n NODE_TYPE[NODE_TYPE[\"__provider__\"] = 32] = \"__provider__\";\n NODE_TYPE[NODE_TYPE[\"__consumer__\"] = 64] = \"__consumer__\";\n NODE_TYPE[NODE_TYPE[\"__portal__\"] = 128] = \"__portal__\";\n NODE_TYPE[NODE_TYPE[\"__null__\"] = 256] = \"__null__\";\n NODE_TYPE[NODE_TYPE[\"__text__\"] = 512] = \"__text__\";\n NODE_TYPE[NODE_TYPE[\"__empty__\"] = 1024] = \"__empty__\";\n NODE_TYPE[NODE_TYPE[\"__plain__\"] = 2048] = \"__plain__\";\n NODE_TYPE[NODE_TYPE[\"__strict__\"] = 4096] = \"__strict__\";\n NODE_TYPE[NODE_TYPE[\"__suspense__\"] = 8192] = \"__suspense__\";\n NODE_TYPE[NODE_TYPE[\"__fragment__\"] = 16384] = \"__fragment__\";\n NODE_TYPE[NODE_TYPE[\"__keepLive__\"] = 32768] = \"__keepLive__\";\n NODE_TYPE[NODE_TYPE[\"__scope__\"] = 65536] = \"__scope__\";\n NODE_TYPE[NODE_TYPE[\"__comment__\"] = 131072] = \"__comment__\";\n NODE_TYPE[NODE_TYPE[\"__profiler__\"] = 262144] = \"__profiler__\";\n})(exports.NODE_TYPE || (exports.NODE_TYPE = {}));\n\nvar enableSyncFlush$1 = react.__my_react_shared__.enableSyncFlush;\n/**\n * @deprecated\n */\nexports.syncFlush = false;\n/**\n * @deprecated\n */\nvar beforeSyncFlush = function () {\n exports.syncFlush = true;\n};\n/**\n * @deprecated\n */\nvar afterSyncFlush = function () {\n exports.syncFlush = false;\n};\nvar stack$1 = [enableSyncFlush$1.current];\nvar beforeSyncUpdate = function () {\n stack$1.push(enableSyncFlush$1.current);\n enableSyncFlush$1.current = true;\n};\nvar afterSyncUpdate = function () {\n enableSyncFlush$1.current = stack$1.pop();\n};\n\nvar currentRunningFiber$4 = react.__my_react_internal__.currentRunningFiber, currentRenderPlatform$8 = react.__my_react_internal__.currentRenderPlatform, currentScopeFiber$2 = react.__my_react_internal__.currentScopeFiber;\nvar safeCall = function (action) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n try {\n return action.call.apply(action, __spreadArray([null], args, false));\n }\n catch (e) {\n var fiber = currentCallingFiber.current || currentScopeFiber$2.current || currentRunningFiber$4.current;\n var renderPlatform = currentRenderPlatform$8.current;\n renderPlatform.dispatchError({ fiber: fiber, error: e });\n }\n};\nvar stack = [];\nvar safeCallWithCurrentFiber = function (_a) {\n var action = _a.action, fiber = _a.fiber, fallback = _a.fallback;\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n stack.push(fiber);\n currentCallingFiber.current = fiber;\n try {\n return action.call.apply(action, __spreadArray([null], args, false));\n }\n catch (e) {\n var renderPlatform = currentRenderPlatform$8.current;\n renderPlatform.dispatchError({ fiber: fiber, error: e });\n return fallback === null || fallback === void 0 ? void 0 : fallback();\n }\n finally {\n var l = stack.pop();\n currentCallingFiber.current = l;\n }\n};\nvar callWithFiber = function (_a) {\n var action = _a.action, fiber = _a.fiber;\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n currentScopeFiber$2.current = fiber;\n try {\n return action.call.apply(action, __spreadArray([null], args, false));\n }\n finally {\n currentScopeFiber$2.current = null;\n }\n};\nvar safeCallWithSync = function (action) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n try {\n beforeSyncUpdate();\n return action.call.apply(action, __spreadArray([null], args, false));\n }\n catch (e) {\n var fiber = currentCallingFiber.current || currentScopeFiber$2.current || currentRunningFiber$4.current;\n var renderPlatform = currentRenderPlatform$8.current;\n renderPlatform.dispatchError({ fiber: fiber, error: e });\n }\n finally {\n afterSyncUpdate();\n }\n};\n\nvar currentRenderPlatform$7 = react.__my_react_internal__.currentRenderPlatform, currentRunningFiber$3 = react.__my_react_internal__.currentRunningFiber, currentScopeFiber$1 = react.__my_react_internal__.currentScopeFiber;\nvar enableOptimizeTreeLog = react.__my_react_shared__.enableOptimizeTreeLog;\nvar typeColor = {\n normal: \"rgba(10, 190, 235, 0.8)\",\n plain: \"rgba(100, 230, 40, 0.8)\",\n unmount: \"rgba(230, 40, 40, 0.8)\",\n};\nvar warnMap = {};\nvar errorMap = {};\nvar fiberWarn = function (fiber) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var renderDispatch = getCurrentDispatchFromFiber(fiber);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberWarnListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberWarn) === null || _b === void 0 ? void 0 : _b.forEach(function (listener) { return listener.apply(void 0, __spreadArray([fiber], args, false)); });\n },\n });\n};\nvar fiberError = function (fiber) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n var renderDispatch = getCurrentDispatchFromFiber(fiber);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberErrorListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberError) === null || _b === void 0 ? void 0 : _b.forEach(function (listener) { return listener.apply(void 0, __spreadArray([fiber], args, false)); });\n },\n });\n};\n// TODO! improve log\nvar originalWarn = console.warn;\nvar originalError = console.error;\nvar warnFiber = null;\nvar errorFiber = null;\nvar devWarn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var renderPlatform = currentRenderPlatform$7.current;\n var renderFiber = warnFiber || currentCallingFiber.current || currentScopeFiber$1.current || currentRunningFiber$3.current;\n renderFiber && fiberWarn.apply(void 0, __spreadArray([renderFiber], args, false));\n var treeLog = renderFiber ? renderPlatform.getFiberTree(renderFiber) : \"\";\n var obj = [];\n var log = args.map(function (i) { return (typeof i === \"object\" ? (obj.push(i), \"%o\") : i); }).join(\" \") + treeLog;\n if (enableFiberForLog.current && renderFiber) {\n originalWarn.call.apply(originalWarn, __spreadArray(__spreadArray([console, log + \"\\n%o\"], obj, false), [renderFiber], false));\n }\n else {\n originalWarn.call(console, log);\n }\n};\nvar devWarnWithFiber = function (fiber) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n warnFiber = fiber;\n devWarn.apply(void 0, args);\n // TODO\n warnFiber = null;\n};\nvar devError = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var renderPlatform = currentRenderPlatform$7.current;\n var renderFiber = errorFiber || currentCallingFiber.current || currentScopeFiber$1.current || currentRunningFiber$3.current;\n renderFiber && fiberError.apply(void 0, __spreadArray([renderFiber], args, false));\n var treeLog = renderFiber ? renderPlatform.getFiberTree(renderFiber) : \"\";\n var obj = [];\n var log = args.map(function (i) { return (typeof i === \"object\" ? (obj.push(i), \"%o\") : i); }).join(\" \") + treeLog;\n if (enableFiberForLog.current && renderFiber) {\n originalError.call.apply(originalError, __spreadArray(__spreadArray([console, log + \"\\n%o\"], obj, false), [renderFiber], false));\n }\n else {\n originalError.call(console, log);\n }\n};\nvar devErrorWithFiber = function (fiber) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n errorFiber = fiber;\n devError.apply(void 0, args);\n errorFiber = null;\n};\nvar setLogScope = function () {\n};\nvar resetLogScope = function () {\n};\nvar debugWithNode = function (fiber) {\n var mayFiberContainer = fiber;\n if (fiber.nativeNode || mayFiberContainer.containerNode) {\n var node = (fiber.nativeNode || mayFiberContainer.containerNode);\n node.__fiber__ = fiber;\n node.__props__ = fiber.pendingProps;\n }\n};\nvar getTrackDevLog = function (fiber) {\n {\n return \"\";\n }\n};\nvar shouldIncludeLog = function (fiber) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {\n return true;\n }\n return false;\n};\nvar getFiberTagName = function (fiber) {\n var tag = [];\n if (fiber.type & exports.NODE_TYPE.__memo__) {\n tag.push(\"memo\");\n }\n if (fiber.type & exports.NODE_TYPE.__forwardRef__) {\n tag.push(\"forwardRef\");\n }\n if (fiber.type & exports.NODE_TYPE.__lazy__) {\n tag.push(\"lazy\");\n }\n if (fiber.type & exports.NODE_TYPE.__fragment__ && fiber.pendingProps[\"wrap\"]) {\n tag.push(\"auto-wrap\");\n }\n return tag.join(\"-\");\n};\nvar getPlainFiberName = function (fiber) {\n if (fiber.type & exports.NODE_TYPE.__provider__) {\n var typedElementType = fiber.elementType;\n var name_2 = typedElementType.Context.displayName;\n return \"\".concat(name_2 || \"Context\", \".Provider\");\n }\n if (fiber.type & exports.NODE_TYPE.__consumer__) {\n var typedElementType = fiber.elementType;\n var name_3 = typedElementType.Context.displayName;\n return \"\".concat(name_3 || \"Context\", \".Consumer\");\n }\n if (fiber.type & exports.NODE_TYPE.__lazy__) {\n var typedElementType = fiber.elementType;\n var typedRender = typedElementType === null || typedElementType === void 0 ? void 0 : typedElementType.render;\n var name_4 = (typedRender === null || typedRender === void 0 ? void 0 : typedRender.displayName) || (typedRender === null || typedRender === void 0 ? void 0 : typedRender.name) || \"\";\n return \"\".concat(name_4 || \"anonymous\");\n }\n if (fiber.type & exports.NODE_TYPE.__portal__)\n return \"Portal\";\n if (fiber.type & exports.NODE_TYPE.__null__)\n return \"Null\";\n if (fiber.type & exports.NODE_TYPE.__empty__)\n return \"Empty\";\n if (fiber.type & exports.NODE_TYPE.__scope__)\n return \"Scope\";\n if (fiber.type & exports.NODE_TYPE.__strict__)\n return \"Strict\";\n if (fiber.type & exports.NODE_TYPE.__profiler__)\n return \"Profiler\";\n if (fiber.type & exports.NODE_TYPE.__suspense__)\n return \"Suspense\";\n if (fiber.type & exports.NODE_TYPE.__comment__)\n return \"Comment\";\n if (fiber.type & exports.NODE_TYPE.__keepLive__)\n return \"KeepAlive\";\n if (fiber.type & exports.NODE_TYPE.__fragment__)\n return \"Fragment\";\n if (fiber.type & exports.NODE_TYPE.__text__)\n return \"text\";\n if (typeof fiber.elementType === \"string\")\n return \"\".concat(fiber.elementType);\n if (typeof fiber.elementType === \"function\") {\n var typedElementType = fiber.elementType;\n var name_5 = typedElementType.displayName || typedElementType.name || \"anonymous\";\n return \"\".concat(name_5);\n }\n return \"unknown\";\n};\n// TODO\nvar getElementName = function (fiber) {\n var name = getPlainFiberName(fiber);\n var tag = getFiberTagName(fiber);\n return \"<\".concat(name).concat(tag ? \" - (\".concat(tag, \")\") : \"\", \" />\");\n};\nvar getFiberNodeName = function (fiber) { return \"\".concat(getElementName(fiber), \" \").concat(getTrackDevLog()); };\nvar getFiberNodeNameWithFiber = function (fiber) { return \"%c\".concat(getElementName(fiber), \"%c (%o)\"); };\nvar getFiberTree = function (fiber) {\n if (fiber) {\n var preString = \"\".padEnd(4) + \"at\".padEnd(3);\n var res = \"\";\n var temp = fiber;\n if (enableOptimizeTreeLog.current) {\n while (temp) {\n if (shouldIncludeLog(temp)) {\n res ? (res += \"\\n\".concat(preString).concat(getFiberNodeName(temp))) : (res = \"\".concat(preString).concat(getFiberNodeName(temp)));\n }\n temp = temp.parent;\n }\n }\n else {\n while (temp) {\n res ? (res += \"\\n\".concat(preString).concat(getFiberNodeName(temp))) : (res = \"\".concat(preString).concat(getFiberNodeName(temp)));\n temp = temp.parent;\n }\n }\n return \"\\n\".concat(res);\n }\n return \"\";\n};\nvar getStackTree = function (fiber) {\n var preString = \"\".padEnd(4) + \"at\".padEnd(3);\n var res = \"\";\n var temp = fiber;\n while (temp) {\n res ? (res += \"\\n\".concat(preString).concat(getElementName(temp))) : (res = \"\".concat(preString).concat(getElementName(temp)));\n temp = temp.parent;\n }\n return \"\\n\".concat(res);\n};\nvar getFiberTreeWithFiber = function (fiber) {\n var preString = \"at\".padEnd(3);\n var res = \"\";\n var arr = [];\n var temp = fiber;\n while (temp) {\n res ? (res += \"\\n\".concat(preString).concat(getFiberNodeNameWithFiber(temp))) : (res = \"\".concat(preString).concat(getFiberNodeNameWithFiber(temp)));\n var isMount = temp._debugIsMount;\n var isPlain = temp.type & exports.NODE_TYPE.__plain__;\n arr.push(\"color: white;background-color: \".concat(isMount ? (isPlain ? typeColor.plain : typeColor.normal) : typeColor.unmount, \"; border-radius: 2px; padding: 1px 5px; margin: 1px 0px\"));\n arr.push(\"\");\n arr.push(temp);\n temp = temp.parent;\n }\n return { str: \"\".concat(res), arr: arr };\n};\nvar getHookTree = function (treeHookNode, errorType) {\n var pre = \"\".toString().padEnd(3);\n var message = \"[@my-react/react] hook for current component has a different state on current render and previous render, this is not a valid usage.\";\n var re = \"\\n\" + pre + \"Last render:\".padEnd(28) + \"Next render:\".padEnd(10) + \"\\n\" + pre + \"-\".repeat(44) + \"\\n\";\n var stack = pre + myreactSharedExports.HOOK_TYPE[errorType.lastRender].padEnd(28) + myreactSharedExports.HOOK_TYPE[errorType.nextRender].padEnd(10) + \"\\n\";\n while (treeHookNode && treeHookNode.value) {\n var t = treeHookNode.value.type;\n stack = pre + myreactSharedExports.HOOK_TYPE[t].padEnd(28) + myreactSharedExports.HOOK_TYPE[t].padEnd(10) + \"\\n\" + stack;\n treeHookNode = treeHookNode.prev;\n }\n stack += pre + \"^\".repeat(44);\n return message + re + stack;\n};\nvar onceWarnWithKeyAndFiber = function (fiber, key) {\n var _a;\n var _b;\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var renderPlatform = currentRenderPlatform$7.current;\n var tree = renderPlatform.getFiberTree(fiber);\n if ((_b = warnMap === null || warnMap === void 0 ? void 0 : warnMap[tree]) === null || _b === void 0 ? void 0 : _b[key])\n return;\n warnMap[tree] = __assign(__assign({}, warnMap === null || warnMap === void 0 ? void 0 : warnMap[tree]), (_a = {}, _a[key] = true, _a));\n warnFiber = fiber;\n devWarn.apply(void 0, args);\n warnFiber = null;\n};\nvar onceErrorWithKeyAndFiber = function (fiber, key) {\n var _a;\n var _b;\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var renderPlatform = currentRenderPlatform$7.current;\n var tree = renderPlatform.getFiberTree(fiber);\n if ((_b = errorMap === null || errorMap === void 0 ? void 0 : errorMap[tree]) === null || _b === void 0 ? void 0 : _b[key])\n return;\n errorMap[tree] = __assign(__assign({}, errorMap === null || errorMap === void 0 ? void 0 : errorMap[tree]), (_a = {}, _a[key] = true, _a));\n errorFiber = fiber;\n devError.apply(void 0, args);\n errorFiber = null;\n};\n\nreact.__my_react_shared__.enableHMRForDev;\nvar emptyProps$1 = {};\nvar getElementTypeFromType = function (type) {\n if (typeof type === \"object\") {\n switch (type[myreactSharedExports.TYPEKEY]) {\n case myreactSharedExports.ForwardRef:\n case myreactSharedExports.Memo:\n return getElementTypeFromType(type.render);\n }\n }\n return type;\n};\nvar getTypeFromElementNode = function (element) {\n var nodeType = exports.NODE_TYPE.__initial__;\n if (react.isValidElement(element)) {\n return getTypeFromElement(element);\n }\n else {\n if (typeof element === \"object\" && element !== null) {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__empty__);\n }\n else if (element === null || element === undefined || typeof element === \"boolean\" || typeof element === \"function\") {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__null__);\n }\n else {\n // text element\n return { key: null, ref: null, nodeType: exports.NODE_TYPE.__text__, elementType: String(element), pendingProps: emptyProps$1, finalElement: element };\n }\n }\n return { key: null, ref: null, nodeType: nodeType, elementType: null, pendingProps: emptyProps$1, finalElement: element };\n};\nvar getTypeFromElement = function (element) {\n var _a, _b, _e, _f, _g;\n var nodeType = exports.NODE_TYPE.__initial__;\n var elementType = element.type;\n var finalElement = element;\n var pendingProps = element.props;\n var ref = (_a = element.ref) !== null && _a !== void 0 ? _a : undefined;\n var key = (_b = element.key) !== null && _b !== void 0 ? _b : undefined;\n if (typeof elementType === \"object\" && elementType !== null) {\n var typedElementType = elementType;\n switch (typedElementType[myreactSharedExports.TYPEKEY]) {\n case myreactSharedExports.Provider:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__provider__);\n break;\n case myreactSharedExports.Consumer:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__consumer__);\n break;\n case myreactSharedExports.Memo:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__memo__);\n elementType = typedElementType.render;\n break;\n case myreactSharedExports.ForwardRef:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__forwardRef__);\n elementType = typedElementType.render;\n break;\n case myreactSharedExports.Lazy:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__lazy__);\n break;\n default:\n throw new Error(\"[@my-react/react] invalid object element type \\\"\".concat((_e = typedElementType[myreactSharedExports.TYPEKEY]) === null || _e === void 0 ? void 0 : _e.toString(), \"\\\"\"));\n }\n if (typeof elementType === \"object\") {\n if (elementType[myreactSharedExports.TYPEKEY] === myreactSharedExports.ForwardRef) {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__forwardRef__);\n elementType = elementType.render;\n }\n if (elementType[myreactSharedExports.TYPEKEY] === myreactSharedExports.Provider) {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__provider__);\n }\n if (elementType[myreactSharedExports.TYPEKEY] === myreactSharedExports.Consumer) {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__consumer__);\n }\n }\n if (typeof elementType === \"function\") {\n if ((_f = elementType.prototype) === null || _f === void 0 ? void 0 : _f.isMyReactComponent) {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__class__);\n }\n else {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__function__);\n }\n }\n }\n else if (typeof elementType === \"function\") {\n if ((_g = elementType.prototype) === null || _g === void 0 ? void 0 : _g.isMyReactComponent) {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__class__);\n }\n else {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__function__);\n }\n }\n else if (typeof elementType === \"symbol\") {\n switch (elementType) {\n case myreactSharedExports.KeepLive:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__keepLive__);\n break;\n case myreactSharedExports.Fragment:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__fragment__);\n break;\n case myreactSharedExports.Strict:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__strict__);\n break;\n case myreactSharedExports.Suspense:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__suspense__);\n break;\n case myreactSharedExports.Scope:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__scope__);\n break;\n case myreactSharedExports.Comment:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__comment__);\n break;\n case myreactSharedExports.Portal:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__portal__);\n break;\n case myreactSharedExports.Profiler:\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__profiler__);\n break;\n default:\n throw new Error(\"[@my-react/react] invalid symbol element type \\\"\".concat(elementType === null || elementType === void 0 ? void 0 : elementType.toString(), \"\\\"\"));\n }\n }\n else if (typeof elementType === \"string\") {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__plain__);\n }\n else {\n nodeType = myreactSharedExports.merge(nodeType, exports.NODE_TYPE.__empty__);\n }\n return { key: key, ref: ref, nodeType: nodeType, elementType: elementType, pendingProps: pendingProps, finalElement: finalElement };\n};\n\n// used for hmr\nvar typeToFibersMap = new MyWeakMap();\nvar setRefreshHandler = function (handler) {\n};\nvar setRefreshTypeMap = function (fiber) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__)) {\n var elementType = fiber.elementType;\n var exist = typeToFibersMap.get(elementType) || new Set();\n exist.add(fiber);\n typeToFibersMap.set(elementType, exist);\n }\n};\nvar getCurrentTypeFromRefresh = function (type) {\n var _a;\n return ((_a = void 0 ) === null || _a === void 0 ? void 0 : _a.current) || type;\n};\nvar getCurrentTypeFromRefreshOnly = function (type) {\n var _a;\n return (_a = void 0 ) === null || _a === void 0 ? void 0 : _a.current;\n};\nvar getCurrentFibersFromType = function (type) {\n return typeToFibersMap.get(type);\n};\nvar getCurrentDispatchFromType = function (type) {\n var fibers = getCurrentFibersFromType(type);\n return new Set(Array.from(fibers || []).map(function (fiber) { return fiberToDispatchMap.get(fiber); }));\n};\nvar getCurrentDispatchFromFiber = function (fiber) {\n return fiberToDispatchMap.get(fiber);\n};\nvar getElementFromRefreshIfExist = function (element) {\n var _a, _b;\n var elementType = getElementTypeFromType(element.type);\n // current element is React component\n if (typeof elementType === \"function\") {\n var typeFromRefresh = getCurrentTypeFromRefreshOnly();\n // have a new version elementType from hmr runtime\n if (typeFromRefresh) {\n return react.createElement(typeFromRefresh, __assign(__assign({}, element.props), { key: (_a = element.key) !== null && _a !== void 0 ? _a : undefined, ref: (_b = element.ref) !== null && _b !== void 0 ? _b : undefined }));\n }\n }\n return element;\n};\n\nreact.__my_react_internal__.currentComponentFiber;\nvar initHMR = function (env) {\n};\n\nfunction getStack() {\n var orig = Error.prepareStackTrace;\n Error.prepareStackTrace = function (_, stack) { return stack; };\n var error = new Error();\n var stack = error.stack;\n Error.prepareStackTrace = orig;\n return stack;\n}\n\nreact.__my_react_shared__.enableHMRForDev;\nfunction checkIsSameType(p, element) {\n if (p instanceof MyReactFiberNode) {\n var _a = getTypeFromElementNode(element), nodeType = _a.nodeType, elementType = _a.elementType;\n if (p.type === nodeType) {\n if (react.isValidElement(element)) {\n {\n return Object.is(p.elementType, elementType);\n }\n }\n else {\n return true;\n }\n }\n else {\n return false;\n }\n }\n else {\n var existElementType = getTypeFromElementNode(p);\n var incomingElementType = getTypeFromElementNode(element);\n if (existElementType.nodeType === incomingElementType.nodeType) {\n if (react.isValidElement(element)) {\n var typedExistElement = p;\n var typedIncomingElement = element;\n {\n return Object.is(typedIncomingElement.type, typedExistElement.type);\n }\n }\n else {\n return true;\n }\n }\n else {\n return false;\n }\n }\n}\n\nvar getNextForUnmountList = function (fiber, root) {\n if (fiber.child)\n return fiber.child;\n var nextFiber = fiber;\n while (nextFiber && nextFiber !== root) {\n if (nextFiber.sibling)\n return nextFiber.sibling;\n nextFiber = nextFiber.parent;\n }\n return null;\n};\nvar getChild = function (fiber) {\n if (!fiber)\n return null;\n while (fiber.child) {\n fiber = fiber.child;\n }\n return fiber;\n};\nvar getSibling = function (fiber) {\n return fiber === null || fiber === void 0 ? void 0 : fiber.sibling;\n};\nvar getParent = function (fiber) {\n return fiber === null || fiber === void 0 ? void 0 : fiber.parent;\n};\nvar generateFiberToUnmountList = function (fiber) {\n var listTree = new myreactSharedExports.ListTree();\n var temp = fiber;\n if (temp) {\n listTree.push(temp);\n }\n while (temp) {\n temp = getNextForUnmountList(temp, fiber);\n if (temp)\n listTree.push(temp);\n }\n return listTree;\n};\nvar generateFiberToMountList = function (fiber) {\n var listTree = new myreactSharedExports.ListTree();\n var mode = \"child\";\n var current = fiber;\n while (current) {\n if (mode === \"child\") {\n var temp = getChild(current);\n if (temp) {\n // have a child\n if (temp !== current) {\n listTree.push(temp);\n }\n else {\n // try to get the sibling\n temp = getSibling(current);\n if (temp) {\n listTree.push(temp);\n }\n else {\n // no sibling, go back to parent\n temp = getParent(current);\n if (temp) {\n listTree.push(temp);\n mode = \"sibling\";\n }\n }\n }\n }\n current = temp;\n }\n else {\n var temp = getSibling(current);\n if (temp) {\n listTree.push(temp);\n mode = 'child';\n }\n else {\n temp = getParent(current);\n if (temp) {\n listTree.push(temp);\n }\n }\n current = temp;\n }\n }\n return listTree;\n};\n\nvar defaultGenerateEffectMap = function (fiber, effect, map, option) {\n var list = map.get(fiber) || new myreactSharedExports.ListTree();\n if (option) {\n if (option.stickyToHead) {\n list.pushToHead(effect);\n }\n else if (option.stickyToFoot) {\n list.pushToLast(effect);\n }\n else {\n list.push(effect);\n }\n }\n else {\n list.push(effect);\n }\n map.set(fiber, list);\n};\nvar effect = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__effect__)) {\n var effectMap = renderDispatch.runtimeMap.effectMap;\n var allEffect = effectMap.get(fiber);\n effectMap.delete(fiber);\n if (allEffect && allEffect.length) {\n allEffect.listToFoot(function invokeEffect(effect) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallEffect() {\n effect.call(null);\n },\n });\n });\n }\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__effect__);\n }\n};\nvar layoutEffect = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__layoutEffect__)) {\n var layoutEffectMap = renderDispatch.runtimeMap.layoutEffectMap;\n var allLayoutEffect = layoutEffectMap.get(fiber);\n layoutEffectMap.delete(fiber);\n if (allLayoutEffect && allLayoutEffect.length) {\n allLayoutEffect.listToFoot(function invokeLayoutEffect(effect) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallLayoutEffect() {\n effect.call(null);\n },\n });\n });\n }\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__layoutEffect__);\n }\n};\nvar insertionEffect = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__insertionEffect__)) {\n var insertionEffectMap = renderDispatch.runtimeMap.insertionEffectMap;\n var allInsertionEffect = insertionEffectMap.get(fiber);\n insertionEffectMap.delete(fiber);\n if (allInsertionEffect && allInsertionEffect.length) {\n allInsertionEffect.listToFoot(function invokeInsertionEffect(effect) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallInsertionEffect() {\n effect.call(null);\n },\n });\n });\n }\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__insertionEffect__);\n }\n};\nvar deleteEffect = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__insertionEffect__)) {\n var insertionEffectMap = renderDispatch.runtimeMap.insertionEffectMap;\n insertionEffectMap.delete(fiber);\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__insertionEffect__);\n }\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__layoutEffect__)) {\n var layoutEffectMap = renderDispatch.runtimeMap.layoutEffectMap;\n layoutEffectMap.delete(fiber);\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__layoutEffect__);\n }\n if (myreactSharedExports.include(fiber.patch, myreactSharedExports.PATCH_TYPE.__effect__)) {\n var effectMap = renderDispatch.runtimeMap.effectMap;\n effectMap.delete(fiber);\n fiber.patch = myreactSharedExports.remove(fiber.patch, myreactSharedExports.PATCH_TYPE.__effect__);\n }\n};\n\nreact.__my_react_shared__.enableDebugFiled;\nvar getIsSameTypeNode = function (newChild, draftFiber) {\n if (!draftFiber)\n return false;\n var result = checkIsSameType(draftFiber, newChild);\n return result;\n};\nvar getExistingChildren = function (parentFiber) {\n var existingChildrenMap = new Map();\n var existingChildrenArray = [];\n var child = parentFiber.child;\n var index = 0;\n while (child) {\n var key = typeof child.key === \"string\" ? child.key : index;\n var existingChild = existingChildrenMap.get(key) || new myreactSharedExports.ListTree();\n existingChild.push(child);\n existingChildrenMap.set(key, existingChild);\n existingChildrenArray.push(child);\n child = child.sibling;\n index++;\n }\n return { existingChildrenMap: existingChildrenMap, existingChildrenArray: existingChildrenArray };\n};\nvar dynamicFragmentProps = { wrap: true };\nvar createFragmentWithInitial = function (newChild, parentFiber) {\n // TODO make there are not a element\n var newElement = react.createElement(myreactSharedExports.Fragment, dynamicFragmentProps, newChild);\n var newFiber = createFiberNode({ parent: parentFiber }, newElement);\n return newFiber;\n};\nvar createFragmentWithUpdate = function (newChild, parentFiber) {\n var newElement = react.createElement(myreactSharedExports.Fragment, dynamicFragmentProps, newChild);\n var newFiber = createFiberNode({ parent: parentFiber, type: \"position\" }, newElement);\n return newFiber;\n};\nvar deleteIfNeed = function (parentFiber, existingChildren) {\n var renderDispatch = currentRenderDispatch.current;\n if (existingChildren.size) {\n existingChildren.forEach(function forEachInvokePendingUnmountList(list) {\n list.listToFoot(function invokePendingUnmountList(f) {\n renderDispatch.pendingUnmount(parentFiber, f);\n });\n });\n renderDispatch.generateChangedList(parentFiber, true);\n }\n};\nvar getNewFiberWithUpdate = function (newChild, parentFiber, existingChildren, prevFiberChild, index) {\n var renderDispatch = currentRenderDispatch.current;\n if (Array.isArray(newChild)) {\n var draftList_1 = existingChildren.get(index);\n // TODO try to get the same type node?\n var draftFiber_1 = draftList_1 === null || draftList_1 === void 0 ? void 0 : draftList_1.shift();\n if (draftList_1 && !draftList_1.length) {\n existingChildren.delete(index);\n }\n // same type\n if (myreactSharedExports.include(draftFiber_1 === null || draftFiber_1 === void 0 ? void 0 : draftFiber_1.type, exports.NODE_TYPE.__fragment__)) {\n var newElement = react.createElement(myreactSharedExports.Fragment, dynamicFragmentProps, newChild);\n draftFiber_1 !== prevFiberChild && renderDispatch.generateChangedList(parentFiber);\n return updateFiberNode({ fiber: draftFiber_1, parent: parentFiber, prevFiber: prevFiberChild }, newElement);\n }\n else {\n renderDispatch.generateChangedList(parentFiber);\n renderDispatch.pendingUnmount(parentFiber, draftFiber_1);\n return createFragmentWithUpdate(newChild, parentFiber);\n }\n }\n var keyToGet = react.isValidElement(newChild) && typeof newChild.key === \"string\" ? newChild.key : index;\n var draftList = existingChildren.get(keyToGet);\n var draftFiber = draftList === null || draftList === void 0 ? void 0 : draftList.shift();\n if (draftList && !draftList.length) {\n existingChildren.delete(keyToGet);\n }\n var isSameType = getIsSameTypeNode(newChild, draftFiber);\n if (isSameType) {\n draftFiber !== prevFiberChild && renderDispatch.generateChangedList(parentFiber);\n return updateFiberNode({ fiber: draftFiber, parent: parentFiber, prevFiber: prevFiberChild }, newChild);\n }\n else {\n draftFiber && renderDispatch.pendingUnmount(parentFiber, draftFiber);\n renderDispatch.generateChangedList(parentFiber);\n return createFiberNode({ parent: parentFiber, type: \"position\" }, newChild);\n }\n};\nvar getNewFiberWithInitial = function (newChild, parentFiber) {\n // wrapper array child item as a Fragment fiber node, so all of the children will be a fiber node\n // and could be add to the child list\n if (Array.isArray(newChild))\n return createFragmentWithInitial(newChild, parentFiber);\n return createFiberNode({ parent: parentFiber }, newChild);\n};\nvar transformChildrenFiber = function (parentFiber, children) {\n var isUpdate = myreactSharedExports.exclude(parentFiber.state, myreactSharedExports.STATE_TYPE.__create__);\n var isHMR = myreactSharedExports.include(parentFiber.state, myreactSharedExports.STATE_TYPE.__hmr__);\n var isRetrigger = myreactSharedExports.include(parentFiber.state, myreactSharedExports.STATE_TYPE.__retrigger__);\n var renderDispatch = currentRenderDispatch.current;\n // is current is retrigger update, skip update children\n if (isRetrigger)\n return;\n if (isUpdate || isHMR) {\n var _a = getExistingChildren(parentFiber), existingChildrenMap = _a.existingChildrenMap, existingChildrenArray = _a.existingChildrenArray;\n parentFiber.child = null;\n if (Array.isArray(children)) {\n var newChildren = children;\n var index = 0;\n var lastFiber = null;\n while (index < newChildren.length) {\n var newChild = newChildren[index];\n var newFiber = getNewFiberWithUpdate(newChild, parentFiber, existingChildrenMap, existingChildrenArray[index] || null, index);\n lastFiber && (lastFiber.sibling = newFiber);\n lastFiber = newFiber;\n index++;\n }\n }\n else {\n getNewFiberWithUpdate(children, parentFiber, existingChildrenMap, existingChildrenArray[0], 0);\n }\n deleteIfNeed(parentFiber, existingChildrenMap);\n }\n else {\n renderDispatch.generateChangedList(parentFiber);\n var existingChildrenMap = getExistingChildren(parentFiber).existingChildrenMap;\n deleteIfNeed(parentFiber, existingChildrenMap);\n parentFiber.child = null;\n if (Array.isArray(children)) {\n var newChildren = children;\n var lastFiber = null;\n var index = 0;\n while (index < newChildren.length) {\n var newChild = newChildren[index];\n var newFiber = getNewFiberWithInitial(newChild, parentFiber);\n lastFiber && (lastFiber.sibling = newFiber);\n lastFiber = newFiber;\n index++;\n }\n }\n else {\n getNewFiberWithInitial(children, parentFiber);\n }\n }\n};\n\nreact.__my_react_internal__.MyReactInternalInstance;\n// support private instance field\nvar instanceMap = new Map();\nvar initInstance = function (instance) {\n if (instanceMap.has(instance))\n return;\n var field = {\n _context: null,\n _owner: null,\n effect: myreactSharedExports.Effect_TYPE.__initial__,\n };\n instanceMap.set(instance, field);\n};\nvar setContextForInstance = function (instance, fiber) {\n var _a, _b;\n var field = instanceMap.get(instance);\n // unmount instance\n if (!field)\n return;\n (_a = field._context) === null || _a === void 0 ? void 0 : _a._delDependence(instance);\n field._context = fiber;\n (_b = field._context) === null || _b === void 0 ? void 0 : _b._addDependence(instance);\n};\nvar setOwnerForInstance = function (instance, fiber) {\n var field = instanceMap.get(instance);\n // unmount instance\n if (!field)\n return;\n field._owner = fiber;\n};\nvar setEffectForInstance = function (instance, effect) {\n var field = instanceMap.get(instance);\n // unmount instance\n if (!field)\n return;\n field.effect = effect;\n};\nvar unmountInstance = function (instance) {\n var _a;\n var field = instanceMap.get(instance);\n if (!field)\n return;\n (_a = field._context) === null || _a === void 0 ? void 0 : _a._delDependence(instance);\n field.effect = myreactSharedExports.Effect_TYPE.__unmount__;\n field._owner = null;\n field._context = null;\n instanceMap.delete(instance);\n};\nvar getInstanceOwnerFiber = function (instance) {\n var typedInstance = instance;\n if (typedInstance.isMyReactInstance) {\n var field = instanceMap.get(typedInstance);\n return field === null || field === void 0 ? void 0 : field._owner;\n }\n else {\n var typedFiber = instance;\n if (typedFiber.isMyReactFiberNode) {\n return typedFiber;\n }\n else {\n throw new Error(\"instance is not a MyReactInternalInstance or MyReactFiberNode\");\n }\n }\n};\nvar getInstanceContextFiber = function (instance) {\n var field = instanceMap.get(instance);\n return field === null || field === void 0 ? void 0 : field._context;\n};\nvar getInstanceEffectState = function (instance) {\n var field = instanceMap.get(instance);\n return field === null || field === void 0 ? void 0 : field.effect;\n};\n\nvar currentHookTreeNode$2 = react.__my_react_internal__.currentHookTreeNode, currentHookNodeIndex$2 = react.__my_react_internal__.currentHookNodeIndex, currentComponentFiber$3 = react.__my_react_internal__.currentComponentFiber;\nvar enablePerformanceLog = react.__my_react_shared__.enablePerformanceLog, enableDebugFiled = react.__my_react_shared__.enableDebugFiled;\nvar nextWorkCommon = function (fiber, children) {\n transformChildrenFiber(fiber, children);\n};\nvar nextWorkNormal = function (fiber) {\n if (\"children\" in fiber.pendingProps ||\n \"children\" in fiber.memoizedProps ||\n \"dangerouslySetInnerHTML\" in fiber.pendingProps ||\n \"dangerouslySetInnerHTML\" in fiber.memoizedProps) {\n var children = fiber.pendingProps.children;\n transformChildrenFiber(fiber, children);\n }\n};\nvar nextWorkClassComponent = function (fiber) {\n if (!fiber.instance) {\n var children = classComponentMount(fiber);\n nextWorkCommon(fiber, children);\n }\n else {\n var _a = classComponentUpdate(fiber), updated = _a.updated, children = _a.children;\n if (updated)\n nextWorkCommon(fiber, children);\n }\n};\nvar nextWorkFunctionComponent = function (fiber) {\n var _a;\n currentHookTreeNode$2.current = (_a = fiber.hookList) === null || _a === void 0 ? void 0 : _a.head;\n currentHookNodeIndex$2.current = 0;\n currentComponentFiber$3.current = fiber;\n var typedElementType = fiber.elementType;\n var children = null;\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__forwardRef__)) {\n var typedElementTypeWithRef_1 = typedElementType;\n children = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallForwardRefFunctionalComponent() {\n return typedElementTypeWithRef_1(fiber.pendingProps, fiber.ref);\n },\n });\n }\n else {\n children = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFunctionalComponent() {\n return typedElementType(fiber.pendingProps);\n },\n });\n }\n currentComponentFiber$3.current = null;\n currentHookNodeIndex$2.current = 0;\n currentHookTreeNode$2.current = null;\n nextWorkCommon(fiber, children);\n};\nvar nextWorkComponent = function (fiber) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__function__)) {\n currentComponentFiber$3.current = fiber;\n nextWorkFunctionComponent(fiber);\n currentComponentFiber$3.current = null;\n }\n else {\n currentComponentFiber$3.current = fiber;\n nextWorkClassComponent(fiber);\n currentComponentFiber$3.current = null;\n }\n};\nvar nextWorkLazy = function (fiber) {\n var renderDispatch = currentRenderDispatch.current;\n var children = renderDispatch.resolveLazyElement(fiber);\n nextWorkCommon(fiber, children);\n};\nvar nextWorkConsumer = function (fiber) {\n var renderDispatch = currentRenderDispatch.current;\n var typedElementType = fiber.elementType;\n var isUpdate = !!fiber.instance;\n fiber.instance = fiber.instance || new typedElementType.Internal();\n !isUpdate && initInstance(fiber.instance);\n setOwnerForInstance(fiber.instance, fiber);\n var Context = typedElementType.Context;\n currentComponentFiber$3.current = fiber;\n var contextFiber = getInstanceContextFiber(fiber.instance);\n var finalContext = null;\n if (!contextFiber || myreactSharedExports.include(contextFiber.state, myreactSharedExports.STATE_TYPE.__unmount__)) {\n var providerFiber = renderDispatch.resolveContextFiber(fiber, Context);\n var context = renderDispatch.resolveContextValue(providerFiber, Context);\n finalContext = context;\n setContextForInstance(fiber.instance, providerFiber);\n }\n else {\n var context = renderDispatch.resolveContextValue(contextFiber, Context);\n setContextForInstance(fiber.instance, contextFiber);\n finalContext = context;\n }\n var typedChildren = fiber.pendingProps.children;\n var children = typedChildren(finalContext);\n currentComponentFiber$3.current = null;\n nextWorkCommon(fiber, children);\n};\nvar runtimeNextWork = function (fiber) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__class__ | exports.NODE_TYPE.__function__))\n return nextWorkComponent(fiber);\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__lazy__))\n return nextWorkLazy(fiber);\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__consumer__))\n return nextWorkConsumer(fiber);\n nextWorkNormal(fiber);\n};\nvar runtimeNextWorkDev = function (fiber) {\n var renderDispatch = currentRenderDispatch.current;\n setRefreshTypeMap(fiber);\n var start = Date.now();\n var res = runtimeNextWork(fiber);\n var end = Date.now();\n var renderTime = end - start;\n var hasPerformanceWarn = renderTime > renderDispatch.performanceLogTimeLimit;\n if (enablePerformanceLog.current && hasPerformanceWarn) {\n onceWarnWithKeyAndFiber(fiber, \"performance\", \"[@my-react/react] render current component take a lot of time, there have a performance warning\");\n }\n if (hasPerformanceWarn) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallPerformanceWarnListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.performanceWarn) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(fiber); });\n },\n });\n }\n var typedFiber = fiber;\n var timeNow = end;\n if (enableDebugFiled.current) {\n if (typedFiber.state === myreactSharedExports.STATE_TYPE.__create__) {\n typedFiber._debugRenderState = {\n mountTimeStep: timeNow,\n timeForRender: renderTime,\n maxTimeForRender: renderTime,\n };\n typedFiber._debugIsMount = true;\n }\n else {\n var prevRenderState = Object.assign({}, typedFiber._debugRenderState);\n var prevRenderTime = prevRenderState.updateTimeStep || prevRenderState.mountTimeStep;\n typedFiber._debugRenderState = {\n renderCount: (prevRenderState.renderCount || 0) + 1,\n mountTimeStep: prevRenderState.mountTimeStep,\n updateTimeStep: timeNow,\n trigger: currentTriggerFiber.current,\n timeForRender: renderTime,\n timeForUpdate: timeNow - prevRenderTime,\n maxTimeForRender: Math.max(prevRenderState.maxTimeForRender, renderTime),\n };\n }\n }\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberRunListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberRun) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(fiber); });\n },\n });\n return res;\n};\n\nreact.__my_react_shared__.enableDebugFiled;\nvar currentRenderPlatform$6 = react.__my_react_internal__.currentRenderPlatform;\nvar processClassComponentUpdateQueue = function (fiber, renderDispatch, enableTaskPriority) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n if (myreactSharedExports.exclude(fiber.type, exports.NODE_TYPE.__class__))\n throw new Error(\"[@my-react/react] current fiber is not a class component, look like a bug for @my-react\");\n var renderPlatform = currentRenderPlatform$6.current;\n var allQueue = fiber.updateQueue;\n var node = allQueue === null || allQueue === void 0 ? void 0 : allQueue.head;\n var isSync = false;\n var isForce = false;\n var callbacks = [];\n var typedInstance = fiber.instance;\n var baseState = Object.assign({}, typedInstance.state);\n var baseProps = Object.assign({}, typedInstance.props);\n var pendingState = Object.assign({}, fiber.pendingState);\n if (enableTaskPriority && allQueue.some(function (l) { return l.isSync; })) {\n var _loop_1 = function () {\n var updater = node.value;\n var nextNode = node.next;\n if (updater.type === myreactSharedExports.UpdateQueueType.component && updater.isSync) {\n allQueue.delete(node);\n var payLoad_1 = updater.payLoad;\n fiber.pendingState = safeCallWithCurrentFiber({\n fiber: fiber,\n fallback: function safeFallbackForState() {\n return pendingState;\n },\n action: function safeGetNextState() {\n return Object.assign({}, fiber.pendingState, typeof payLoad_1 === \"function\" ? payLoad_1(baseState, baseProps) : payLoad_1);\n },\n });\n isSync = isSync || updater.isSync;\n isForce = isForce || updater.isForce;\n updater.callback && callbacks.push(updater.callback);\n }\n node = nextNode;\n };\n while (node) {\n _loop_1();\n }\n if (allQueue.length) {\n renderPlatform.microTask(function prepareUpdateOnFiberTask() {\n prepareUpdateOnFiber(fiber, renderDispatch);\n });\n }\n return {\n needUpdate: true,\n isSync: isSync,\n isForce: isForce,\n callback: callbacks.length\n ? function invokeCallbackArray() {\n return callbacks.forEach(function (cb) { return cb === null || cb === void 0 ? void 0 : cb(); });\n }\n : void 0,\n };\n }\n else {\n var _loop_2 = function () {\n var updater = node.value;\n var nextNode = node.next;\n if (updater.type === myreactSharedExports.UpdateQueueType.component) {\n allQueue.delete(node);\n var payLoad_2 = updater.payLoad;\n fiber.pendingState = safeCallWithCurrentFiber({\n fiber: fiber,\n fallback: function safeFallbackForState() {\n return pendingState;\n },\n action: function safeGetNextState() {\n return Object.assign({}, fiber.pendingState, typeof payLoad_2 === \"function\" ? payLoad_2(baseState, baseProps) : payLoad_2);\n },\n });\n isSync = isSync || updater.isSync;\n isForce = isForce || updater.isForce;\n updater.callback && callbacks.push(updater.callback);\n }\n node = nextNode;\n };\n while (node) {\n _loop_2();\n }\n return {\n needUpdate: true,\n isSync: isSync,\n isForce: isForce,\n callback: callbacks.length\n ? function invokeCallbackArray() {\n return callbacks.forEach(function (cb) { return cb === null || cb === void 0 ? void 0 : cb(); });\n }\n : void 0,\n };\n }\n};\nvar processFunctionComponentUpdateQueue = function (fiber, renderDispatch, enableTaskPriority) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n if (myreactSharedExports.exclude(fiber.type, exports.NODE_TYPE.__function__))\n throw new Error(\"[@my-react/react] current fiber is not a function component, look like a bug for @my-react\");\n var renderPlatform = currentRenderPlatform$6.current;\n var allQueue = fiber.updateQueue;\n var node = allQueue === null || allQueue === void 0 ? void 0 : allQueue.head;\n var needUpdate = false;\n var isSync = false;\n var isForce = false;\n var callbacks = [];\n if (enableTaskPriority && allQueue.some(function (l) { return l.isSync; })) {\n var _loop_3 = function () {\n var updater = node.value;\n var nextNode = node.next;\n if (updater.type === myreactSharedExports.UpdateQueueType.hook && updater.isSync) {\n allQueue.delete(node);\n var trigger = updater.trigger, payLoad_3 = updater.payLoad;\n var typedTrigger_1 = trigger;\n var lastResult_1 = typedTrigger_1.result;\n typedTrigger_1.result = safeCallWithCurrentFiber({\n fiber: fiber,\n fallback: function safeFallbackForState() {\n return lastResult_1;\n },\n action: function safeGetNextState() {\n return typedTrigger_1.reducer(lastResult_1, payLoad_3);\n },\n });\n isSync = isSync || updater.isSync;\n isForce = isForce || updater.isForce;\n updater.callback && callbacks.push(updater.callback);\n if (!needUpdate && (isForce || callbacks.length || !Object.is(lastResult_1, typedTrigger_1.result)))\n needUpdate = true;\n }\n node = nextNode;\n };\n while (node) {\n _loop_3();\n }\n if (allQueue.length) {\n renderPlatform.microTask(function prepareUpdateOnFiberTask() {\n prepareUpdateOnFiber(fiber, renderDispatch);\n });\n }\n return {\n needUpdate: needUpdate,\n isSync: isSync,\n isForce: isForce,\n callback: callbacks.length\n ? function invokeCallbackArray() {\n return callbacks.forEach(function (cb) { return cb === null || cb === void 0 ? void 0 : cb(); });\n }\n : void 0,\n };\n }\n else {\n var _loop_4 = function () {\n var updater = node.value;\n var nextNode = node.next;\n if (updater.type === myreactSharedExports.UpdateQueueType.hook) {\n allQueue.delete(node);\n var trigger = updater.trigger, payLoad_4 = updater.payLoad;\n var typedTrigger_2 = trigger;\n var lastResult_2 = typedTrigger_2.result;\n typedTrigger_2.result = safeCallWithCurrentFiber({\n fiber: fiber,\n fallback: function safeFallbackForState() {\n return lastResult_2;\n },\n action: function safeGetNextState() {\n return typedTrigger_2.reducer(lastResult_2, payLoad_4);\n },\n });\n isSync = isSync || updater.isSync;\n isForce = isForce || updater.isForce;\n updater.callback && callbacks.push(updater.callback);\n if (!needUpdate && (isForce || callbacks.length || !Object.is(lastResult_2, typedTrigger_2.result)))\n needUpdate = true;\n }\n node = nextNode;\n };\n while (node) {\n _loop_4();\n }\n return {\n needUpdate: needUpdate,\n isSync: isSync,\n isForce: isForce,\n callback: callbacks.length\n ? function invokeCallbackArray() {\n return callbacks.forEach(function (cb) { return cb === null || cb === void 0 ? void 0 : cb(); });\n }\n : void 0,\n };\n }\n};\nvar processLazyComponentUpdate = function (fiber) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n if (myreactSharedExports.exclude(fiber.type, exports.NODE_TYPE.__lazy__))\n throw new Error(\"[@my-react/react] current fiber is not a lazy component, look like a bug for @my-react\");\n var allQueue = fiber.updateQueue;\n var node = allQueue === null || allQueue === void 0 ? void 0 : allQueue.head;\n var needUpdate = false;\n var isSync = false;\n var isForce = false;\n var callbacks = [];\n while (node) {\n var updater = node.value;\n var nextNode = node.next;\n if (updater.type === myreactSharedExports.UpdateQueueType.lazy) {\n allQueue.delete(node);\n updater.payLoad;\n isSync = isSync || updater.isSync;\n isForce = isForce || updater.isForce;\n needUpdate = true;\n updater.callback && callbacks.push(updater.callback);\n }\n node = nextNode;\n }\n return {\n needUpdate: needUpdate,\n isSync: isSync,\n isForce: isForce,\n callback: callbacks.length\n ? function invokeCallbackArray() {\n return callbacks.forEach(function (cb) { return cb === null || cb === void 0 ? void 0 : cb(); });\n }\n : void 0,\n };\n};\n/**\n * @deprecated\n */\nvar syncFiberStateToComponent = function (fiber, callback) {\n var typedInstance = fiber.instance;\n var typedPendingState = fiber.pendingState;\n typedInstance.state = Object.assign({}, typedInstance.state, typedPendingState);\n var renderDispatch = currentRenderDispatch.current;\n callback && renderDispatch.pendingLayoutEffect(fiber, callback, { stickyToFoot: true });\n};\n/**\n * @deprecated\n */\nvar syncFlushComponentQueue = function (fiber) {\n var renderDispatch = getCurrentDispatchFromFiber(fiber);\n var _a = processClassComponentUpdateQueue(fiber, renderDispatch), needUpdate = _a.needUpdate, callback = _a.callback;\n needUpdate && syncFiberStateToComponent(fiber, callback);\n syncComponentStateToFiber(fiber);\n};\n\n/* eslint-disable max-lines */\nvar enableLegacyLifeCycle = react.__my_react_shared__.enableLegacyLifeCycle;\nvar processComponentStateFromProps = function (fiber) {\n var Component = fiber.elementType;\n var typedComponent = Component;\n var typedInstance = fiber.instance;\n var pendingProps = fiber.pendingProps;\n var pendingState = fiber.pendingState;\n if (typedComponent.getDerivedStateFromProps) {\n var payloadState = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallGetDerivedStateFromProps() {\n var _a;\n return (_a = typedComponent.getDerivedStateFromProps) === null || _a === void 0 ? void 0 : _a.call(typedComponent, pendingProps, pendingState);\n },\n });\n if (payloadState) {\n var newState = Object.assign({}, pendingState, payloadState);\n typedInstance.state = newState;\n fiber.pendingState = newState;\n }\n }\n};\nvar processComponentInstanceOnMount = function (fiber) {\n var renderDispatch = currentRenderDispatch.current;\n var Component = fiber.elementType;\n var typedComponent = Component;\n var providerFiber = renderDispatch.resolveContextFiber(fiber, typedComponent.contextType);\n var context = renderDispatch.resolveContextValue(providerFiber, typedComponent.contextType);\n var props = Object.assign({}, fiber.pendingProps);\n var instance = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallCreateComponentInstance() {\n return new typedComponent(props, context);\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallInstanceInitialListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.instanceInitial) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(instance, fiber); });\n },\n });\n instance.props = props;\n instance.context = context;\n fiber.instance = instance;\n initInstance(instance);\n setOwnerForInstance(instance, fiber);\n setContextForInstance(instance, providerFiber);\n fiber.pendingState = instance.state;\n};\nvar processComponentFiberOnUpdate = function (fiber) {\n var typedInstance = fiber.instance;\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallInstanceUpdateListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(currentRenderDispatch.current)) === null || _a === void 0 ? void 0 : _a.instanceUpdate) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(typedInstance, fiber); });\n },\n });\n setOwnerForInstance(typedInstance, fiber);\n};\nvar processComponentRenderOnMountAndUpdate = function (fiber) {\n var typedInstance = fiber.instance;\n var children = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallRender() {\n return typedInstance.render();\n },\n });\n return children;\n};\nvar processComponentDidMountOnMount = function (fiber) {\n var typedInstance = fiber.instance;\n var renderDispatch = currentRenderDispatch.current;\n var effect = getInstanceEffectState(typedInstance);\n if (typedInstance.componentDidMount && myreactSharedExports.exclude(effect, myreactSharedExports.Effect_TYPE.__effect__)) {\n setEffectForInstance(typedInstance, myreactSharedExports.Effect_TYPE.__effect__);\n renderDispatch.pendingLayoutEffect(fiber, function invokeComponentDidMountOnInstance() {\n var _a;\n setEffectForInstance(typedInstance, myreactSharedExports.Effect_TYPE.__initial__);\n (_a = typedInstance.componentDidMount) === null || _a === void 0 ? void 0 : _a.call(typedInstance);\n });\n }\n};\nvar processComponentContextOnUpdate = function (fiber) {\n var Component = fiber.elementType;\n var renderDispatch = currentRenderDispatch.current;\n var typedComponent = Component;\n var typedInstance = fiber.instance;\n if (typedComponent.contextType) {\n var contextFiber = getInstanceContextFiber(typedInstance);\n if (!contextFiber || myreactSharedExports.include(contextFiber.state, myreactSharedExports.STATE_TYPE.__unmount__)) {\n var providerFiber = renderDispatch.resolveContextFiber(fiber, typedComponent.contextType);\n var context = renderDispatch.resolveContextValue(providerFiber, typedComponent.contextType);\n setContextForInstance(typedInstance, providerFiber);\n return context;\n }\n else {\n var context = renderDispatch.resolveContextValue(contextFiber, typedComponent.contextType);\n setContextForInstance(typedInstance, contextFiber);\n return context;\n }\n }\n};\nvar processComponentPropsAndContextOnActive = function (fiber) {\n var props = Object.assign({}, fiber.pendingProps);\n var context = processComponentContextOnUpdate(fiber);\n var typedInstance = fiber.instance;\n typedInstance.props = props;\n typedInstance.context = context;\n};\nvar processComponentShouldUpdateOnUpdate = function (fiber, _a) {\n var nextState = _a.nextState, nextProps = _a.nextProps, nextContext = _a.nextContext;\n var typedInstance = fiber.instance;\n // if (include(fiber.state, STATE_TYPE.__triggerSync__ | STATE_TYPE.__triggerConcurrent__)) return true;\n if (typedInstance.shouldComponentUpdate) {\n return safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallShouldComponentUpdateOnInstance() {\n var _a;\n return (_a = typedInstance.shouldComponentUpdate) === null || _a === void 0 ? void 0 : _a.call(typedInstance, nextProps, nextState, nextContext);\n },\n });\n }\n return true;\n};\nvar processComponentGetSnapshotOnUpdate = function (fiber, _a) {\n var baseState = _a.baseState, baseProps = _a.baseProps;\n var typedInstance = fiber.instance;\n if (typedInstance.getSnapshotBeforeUpdate) {\n return safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallGetSnapshotBeforeUpdateOnInstance() {\n var _a;\n return (_a = typedInstance.getSnapshotBeforeUpdate) === null || _a === void 0 ? void 0 : _a.call(typedInstance, baseProps, baseState);\n },\n });\n }\n return null;\n};\nvar processComponentDidUpdateOnUpdate = function (fiber, _a) {\n var baseState = _a.baseState, baseProps = _a.baseProps, snapshot = _a.snapshot;\n var typedInstance = fiber.instance;\n var renderDispatch = currentRenderDispatch.current;\n var effect = getInstanceEffectState(typedInstance);\n if (typedInstance.componentDidUpdate && myreactSharedExports.exclude(effect, myreactSharedExports.Effect_TYPE.__effect__)) {\n setEffectForInstance(typedInstance, myreactSharedExports.Effect_TYPE.__effect__);\n renderDispatch.pendingLayoutEffect(fiber, function invokeComponentDidUpdateOnInstance() {\n var _a;\n setEffectForInstance(typedInstance, myreactSharedExports.Effect_TYPE.__initial__);\n (_a = typedInstance.componentDidUpdate) === null || _a === void 0 ? void 0 : _a.call(typedInstance, baseProps, baseState, snapshot);\n });\n }\n};\n/**\n * @deprecated\n */\nvar processComponentWillMountOnMount = function (fiber) {\n var typedInstance = fiber.instance;\n var hasLegacyLifeFunction = false;\n if (typedInstance.UNSAFE_componentWillMount) {\n hasLegacyLifeFunction = true;\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallUNSAFE_componentWillMountOnInstance() {\n var _a;\n (_a = typedInstance.UNSAFE_componentWillMount) === null || _a === void 0 ? void 0 : _a.call(typedInstance);\n },\n });\n }\n if (typedInstance.componentWillMount) {\n hasLegacyLifeFunction = true;\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallComponentWillMountOnInstance() {\n var _a;\n (_a = typedInstance.componentWillMount) === null || _a === void 0 ? void 0 : _a.call(typedInstance);\n },\n });\n }\n return hasLegacyLifeFunction;\n};\n/**\n * @deprecated\n */\nvar processComponentWillReceiveProps = function (fiber) {\n var typedInstance = fiber.instance;\n var hasLegacyLifeFunction = false;\n // only trigger on parent component update\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__inherit__)) {\n if (typedInstance.UNSAFE_componentWillReceiveProps) {\n hasLegacyLifeFunction = true;\n var nextProps_1 = Object.assign({}, fiber.pendingProps);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallUNSAFE_componentWillReceivePropsOnInstance() {\n var _a;\n (_a = typedInstance.UNSAFE_componentWillReceiveProps) === null || _a === void 0 ? void 0 : _a.call(typedInstance, nextProps_1);\n },\n });\n }\n if (typedInstance.componentWillReceiveProps) {\n hasLegacyLifeFunction = true;\n var nextProps_2 = Object.assign({}, fiber.pendingProps);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallComponentWillReceivePropsOnInstance() {\n var _a;\n (_a = typedInstance.componentWillReceiveProps) === null || _a === void 0 ? void 0 : _a.call(typedInstance, nextProps_2);\n },\n });\n }\n }\n return hasLegacyLifeFunction;\n};\n/**\n * @deprecated\n */\nvar processComponentWillUpdate = function (fiber, _a) {\n var nextProps = _a.nextProps, nextState = _a.nextState;\n var typedInstance = fiber.instance;\n if (typedInstance.UNSAFE_componentWillUpdate) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallUNSAFE_componentWillUpdateOnInstance() {\n var _a;\n (_a = typedInstance.UNSAFE_componentWillUpdate) === null || _a === void 0 ? void 0 : _a.call(typedInstance, nextProps, nextState);\n },\n });\n }\n if (typedInstance.componentWillUpdate) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallComponentWillUpdateOnInstance() {\n var _a;\n (_a = typedInstance.componentWillUpdate) === null || _a === void 0 ? void 0 : _a.call(typedInstance, nextProps, nextState);\n },\n });\n }\n};\nvar classComponentMount = function (fiber) {\n processComponentInstanceOnMount(fiber);\n processComponentStateFromProps(fiber);\n // legacy lifeCycle\n if (enableLegacyLifeCycle.current) {\n beforeSyncFlush();\n processComponentWillMountOnMount(fiber) && syncFlushComponentQueue(fiber);\n afterSyncFlush();\n }\n var children = processComponentRenderOnMountAndUpdate(fiber);\n processComponentDidMountOnMount(fiber);\n return children;\n};\n// TODO\nvar classComponentActive = function (fiber) {\n processComponentFiberOnUpdate(fiber);\n processComponentPropsAndContextOnActive(fiber);\n var children = processComponentRenderOnMountAndUpdate(fiber);\n processComponentDidMountOnMount(fiber);\n return children;\n};\n// TODO\nvar classComponentUpdateImpl = function (fiber) {\n processComponentFiberOnUpdate(fiber);\n processComponentStateFromProps(fiber);\n if (enableLegacyLifeCycle.current) {\n beforeSyncFlush();\n processComponentWillReceiveProps(fiber) && syncFlushComponentQueue(fiber);\n afterSyncFlush();\n }\n var typedInstance = fiber.instance;\n var baseState = typedInstance.state;\n var baseProps = typedInstance.props;\n // const baseContext = typedInstance.context;\n var nextState = Object.assign({}, fiber.pendingState);\n var nextProps = Object.assign({}, fiber.pendingProps);\n var nextContext = processComponentContextOnUpdate(fiber);\n var shouldUpdate = Boolean(myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__triggerSyncForce__ | myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__));\n if (!shouldUpdate) {\n shouldUpdate = processComponentShouldUpdateOnUpdate(fiber, {\n nextState: nextState,\n nextProps: nextProps,\n nextContext: nextContext,\n });\n }\n if (shouldUpdate && enableLegacyLifeCycle.current) {\n processComponentWillUpdate(fiber, { nextProps: nextProps, nextState: nextState });\n }\n typedInstance.state = nextState;\n typedInstance.props = nextProps;\n typedInstance.context = nextContext;\n if (shouldUpdate) {\n var children = processComponentRenderOnMountAndUpdate(fiber);\n var snapshot = processComponentGetSnapshotOnUpdate(fiber, { baseState: baseState, baseProps: baseProps });\n processComponentDidUpdateOnUpdate(fiber, {\n snapshot: snapshot,\n baseProps: baseProps,\n baseState: baseState,\n });\n return { updated: true, children: children };\n }\n else {\n return { updated: false };\n }\n};\nvar syncComponentStateToFiber = function (fiber) {\n var typedInstance = fiber.instance;\n // sync pendingState\n fiber.pendingState = Object.assign({}, typedInstance.state);\n};\nvar classComponentUpdate = function (fiber) {\n var res = classComponentUpdateImpl(fiber);\n syncComponentStateToFiber(fiber);\n return res;\n};\nvar classComponentUnmount = function (fiber, _renderDispatch) {\n var typedInstance = fiber.instance;\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallInstanceUnmountListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(_renderDispatch)) === null || _a === void 0 ? void 0 : _a.instanceUnmount) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(typedInstance, fiber); });\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallComponentWillUnmountOnInstance() {\n var _a;\n (_a = typedInstance === null || typedInstance === void 0 ? void 0 : typedInstance.componentWillUnmount) === null || _a === void 0 ? void 0 : _a.call(typedInstance);\n },\n });\n unmountInstance(typedInstance);\n};\n\nvar MyReactInternalInstance = react.__my_react_internal__.MyReactInternalInstance, currentRenderPlatform$5 = react.__my_react_internal__.currentRenderPlatform;\nvar enableSyncFlush = react.__my_react_shared__.enableSyncFlush;\nvar defaultPayLoad = function (a) { return a; };\nvar MyReactHookNode = /** @class */ (function (_super) {\n __extends(MyReactHookNode, _super);\n function MyReactHookNode(type, value, reducer, deps) {\n var _this = _super.call(this) || this;\n _this.hasEffect = false;\n _this.type = type;\n _this.deps = deps;\n _this.value = value;\n _this.reducer = reducer;\n _this._dispatch = _this._dispatch.bind(_this);\n return _this;\n }\n Object.defineProperty(MyReactHookNode.prototype, \"isMyReactHook\", {\n get: function () {\n return true;\n },\n enumerable: false,\n configurable: true\n });\n MyReactHookNode.prototype._update = function (params) {\n if (params === void 0) { params = {}; }\n var updater = __assign({ type: myreactSharedExports.UpdateQueueType.hook, trigger: this, payLoad: defaultPayLoad, isSync: false, isForce: false }, params);\n var renderPlatform = currentRenderPlatform$5.current;\n renderPlatform === null || renderPlatform === void 0 ? void 0 : renderPlatform.dispatchState(updater);\n };\n MyReactHookNode.prototype._dispatch = function (action) {\n this._update({ payLoad: action, isForce: false, isSync: enableSyncFlush.current });\n };\n return MyReactHookNode;\n}(MyReactInternalInstance));\n\nvar currentComponentFiber$2 = react.__my_react_internal__.currentComponentFiber;\nvar MyReactSignal = /** @class */ (function () {\n function MyReactSignal(_rawValue, _renderDispatch) {\n var _this = this;\n this._renderDispatch = _renderDispatch;\n this._depsSet = new Set();\n this.getValue = function () {\n if (currentComponentFiber$2.current) {\n _this._depsSet.add(currentComponentFiber$2.current);\n }\n return _this._value;\n };\n this.setValue = function (newValue) {\n if (!Object.is(_this._value, newValue)) {\n var allDeps = new Set(_this._depsSet);\n _this._depsSet.clear();\n _this._value = newValue;\n allDeps.forEach(function (f) { return myreactSharedExports.exclude(f.state, myreactSharedExports.STATE_TYPE.__unmount__) && (f.state = myreactSharedExports.STATE_TYPE.__triggerConcurrent__); });\n triggerUpdateOnFiber(_this._renderDispatch.rootFiber, myreactSharedExports.STATE_TYPE.__skippedSync__);\n }\n };\n this._value = _rawValue;\n }\n return MyReactSignal;\n}());\n\nvar enableDebugLog$1 = react.__my_react_shared__.enableDebugLog; react.__my_react_shared__.enableDebugFiled; react.__my_react_shared__.enableHookStack;\nvar currentHookTreeNode$1 = react.__my_react_internal__.currentHookTreeNode, currentHookNodeIndex$1 = react.__my_react_internal__.currentHookNodeIndex;\nvar defaultReducer = function (state, action) {\n return typeof action === \"function\" ? action(state) : action;\n};\nvar createHookNode = function (_a, fiber) {\n var _b;\n var type = _a.type, value = _a.value, reducer = _a.reducer, deps = _a.deps;\n var renderDispatch = currentRenderDispatch.current;\n var currentHook = (_b = currentHookTreeNode$1.current) === null || _b === void 0 ? void 0 : _b.value;\n var currentHookIndex = currentHookNodeIndex$1.current;\n if (currentHook) {\n throw new Error(\"[@my-react/react] should not have a hookList for current node, this is a bug for @my-react\");\n }\n var hookNode = new MyReactHookNode(type, value, reducer || defaultReducer, deps);\n initInstance(hookNode);\n setOwnerForInstance(hookNode, fiber);\n fiber.hookList.push(hookNode);\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useMemo || hookNode.type === myreactSharedExports.HOOK_TYPE.useState || hookNode.type === myreactSharedExports.HOOK_TYPE.useReducer) {\n hookNode.result = hookNode.value.call(null);\n // 兼容极端情况的hack code\n var a = function () {\n };\n a.bind(null, fiber);\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useEffect ||\n hookNode.type === myreactSharedExports.HOOK_TYPE.useLayoutEffect ||\n hookNode.type === myreactSharedExports.HOOK_TYPE.useInsertionEffect ||\n hookNode.type === myreactSharedExports.HOOK_TYPE.useImperativeHandle) {\n hookNode.result = hookNode.value;\n hookNode.hasEffect = true;\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useRef || hookNode.type === myreactSharedExports.HOOK_TYPE.useCallback || hookNode.type === myreactSharedExports.HOOK_TYPE.useDeferredValue) {\n hookNode.result = hookNode.value;\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useId) {\n hookNode.result = \":-\".concat(currentHookIndex, \"-\").concat(renderDispatch.uniqueIdCount++, \"-:\");\n hookNode.cancel = function () { return renderDispatch.uniqueIdCount--; };\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useDebugValue) {\n hookNode.result = hookNode.value;\n if (enableDebugLog$1.current) {\n console.warn.apply(console, __spreadArray([\"[debug]\"], hookNode.value, false));\n }\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useContext) {\n var providerFiber = renderDispatch.resolveContextFiber(fiber, hookNode.value);\n var context = renderDispatch.resolveContextValue(providerFiber, hookNode.value);\n setContextForInstance(hookNode, providerFiber);\n hookNode.result = context;\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useSyncExternalStore) {\n var storeApi_1 = hookNode.value;\n hookNode.result = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallGetSnapshot() {\n var _a;\n return renderDispatch.isAppMounted\n ? storeApi_1.getSnapshot.call(null)\n : storeApi_1.getServerSnapshot\n ? (_a = storeApi_1.getServerSnapshot) === null || _a === void 0 ? void 0 : _a.call(null)\n : storeApi_1.getSnapshot.call(null);\n },\n });\n hookNode.hasEffect = true;\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useSignal) {\n hookNode.result = new MyReactSignal(hookNode.value.call(null), renderDispatch);\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useTransition) {\n hookNode.result = [\n false,\n // TODO\n function startTransitionByHook(cb) {\n var loadingCallback = function (cb) {\n react.startTransition(function () {\n hookNode.result[0] = true;\n hookNode._update({ isForce: true, callback: cb });\n });\n };\n var loadedCallback = function () {\n react.startTransition(function () {\n hookNode.result[0] = false;\n hookNode._update({ isForce: true });\n });\n };\n var taskCallback = function () {\n react.startTransition(function () {\n safeCallWithCurrentFiber({ fiber: fiber, action: cb });\n loadedCallback();\n });\n };\n loadingCallback(taskCallback);\n },\n ];\n }\n return hookNode;\n};\n\nvar effectHookNode = function (fiber, hookNode) {\n var renderDispatch = currentRenderDispatch.current;\n var effect = getInstanceEffectState(hookNode);\n if (hookNode.hasEffect && effect === myreactSharedExports.Effect_TYPE.__initial__) {\n setEffectForInstance(hookNode, myreactSharedExports.Effect_TYPE.__effect__);\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useEffect) {\n renderDispatch.pendingEffect(fiber, function invokeEffectOnHook() {\n hookNode.cancel && hookNode.cancel();\n var ownerFiber = getInstanceOwnerFiber(hookNode);\n if (ownerFiber && myreactSharedExports.exclude(ownerFiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n hookNode.cancel = hookNode.value();\n hookNode.hasEffect = false;\n setEffectForInstance(hookNode, myreactSharedExports.Effect_TYPE.__initial__);\n });\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useLayoutEffect) {\n renderDispatch.pendingLayoutEffect(fiber, function invokeLayoutEffectOnHook() {\n hookNode.cancel && hookNode.cancel();\n hookNode.cancel = hookNode.value();\n hookNode.hasEffect = false;\n setEffectForInstance(hookNode, myreactSharedExports.Effect_TYPE.__initial__);\n });\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useInsertionEffect) {\n renderDispatch.pendingInsertionEffect(fiber, function invokeInsertionEffectOnHook() {\n hookNode.cancel && hookNode.cancel();\n hookNode.cancel = hookNode.value();\n hookNode.hasEffect = false;\n setEffectForInstance(hookNode, myreactSharedExports.Effect_TYPE.__initial__);\n });\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useImperativeHandle) {\n renderDispatch.pendingLayoutEffect(fiber, function invokeLayoutEffectOnHook() {\n // ref obj\n if (hookNode.value && typeof hookNode.value === \"object\")\n hookNode.value.current = hookNode.reducer.call(null);\n // ref function\n if (hookNode.value && typeof hookNode.value === \"function\")\n hookNode.value(hookNode.reducer.call(null));\n hookNode.hasEffect = false;\n setEffectForInstance(hookNode, myreactSharedExports.Effect_TYPE.__initial__);\n });\n }\n if (hookNode.type === myreactSharedExports.HOOK_TYPE.useSyncExternalStore) {\n renderDispatch.pendingLayoutEffect(fiber, function invokeLayoutEffectOnHook() {\n hookNode.cancel && hookNode.cancel();\n var storeApi = hookNode.value;\n hookNode.cancel = storeApi.subscribe(function triggerHookUpdate() {\n hookNode._update({ isForce: true });\n });\n hookNode.hasEffect = false;\n setEffectForInstance(hookNode, myreactSharedExports.Effect_TYPE.__initial__);\n });\n }\n }\n};\n\nvar enableDebugLog = react.__my_react_shared__.enableDebugLog;\nvar currentHookTreeNode = react.__my_react_internal__.currentHookTreeNode, currentRenderPlatform$4 = react.__my_react_internal__.currentRenderPlatform;\nvar updateHookNode = function (_a, fiber, isHMR) {\n var _b, _c;\n var type = _a.type, value = _a.value, reducer = _a.reducer, deps = _a.deps;\n var renderDispatch = currentRenderDispatch.current;\n var renderPlatform = currentRenderPlatform$4.current;\n var currentHook = (_b = currentHookTreeNode.current) === null || _b === void 0 ? void 0 : _b.value;\n if (!currentHook) {\n throw new Error(\"[@my-react/react] should have a hookList for current node, this is a bug for @my-react\");\n }\n if (type !== (currentHook === null || currentHook === void 0 ? void 0 : currentHook.type)) {\n throw new Error(renderPlatform.getHookTree(currentHookTreeNode.current.prev, {\n lastRender: currentHook === null || currentHook === void 0 ? void 0 : currentHook.type,\n nextRender: type,\n }));\n }\n setOwnerForInstance(currentHook, fiber);\n currentHookTreeNode.current = currentHookTreeNode.current.next;\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useMemo ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useEffect ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useCallback ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useLayoutEffect ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useInsertionEffect ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useImperativeHandle) {\n if (deps && !currentHook.deps) {\n throw new Error(\"[@my-react/react] deps state change\");\n }\n if (!deps && currentHook.deps) {\n throw new Error(\"[@my-react/react] deps state change\");\n }\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useEffect ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useLayoutEffect ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useInsertionEffect ||\n currentHook.type === myreactSharedExports.HOOK_TYPE.useImperativeHandle) {\n if (isHMR || !deps || !myreactSharedExports.isArrayEquals(currentHook.deps, deps)) {\n currentHook.value = value;\n currentHook.result = value;\n currentHook.reducer = reducer || currentHook.reducer;\n currentHook.deps = deps;\n currentHook.hasEffect = true;\n }\n return currentHook;\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useSyncExternalStore) {\n var storeApi_1 = currentHook.value;\n var newStoreApi = value;\n if (isHMR || !Object.is(storeApi_1.subscribe, newStoreApi.subscribe)) {\n storeApi_1.subscribe = newStoreApi.subscribe;\n currentHook.hasEffect = true;\n }\n storeApi_1.getSnapshot = newStoreApi.getSnapshot;\n currentHook.result = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallGetSnapshot() {\n return storeApi_1.getSnapshot.call(null);\n },\n });\n return currentHook;\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useCallback) {\n if (isHMR || !deps || !myreactSharedExports.isArrayEquals(currentHook.deps, deps)) {\n currentHook.value = value;\n currentHook.result = value;\n currentHook.deps = deps;\n }\n return currentHook;\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useMemo) {\n if (isHMR || !deps || !myreactSharedExports.isArrayEquals(currentHook.deps, deps)) {\n currentHook.value = value;\n currentHook.result = safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallMemoOnHook() {\n return value.call(null);\n },\n });\n currentHook.deps = deps;\n }\n return currentHook;\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useContext) {\n var contextFiber = getInstanceContextFiber(currentHook);\n if (!contextFiber || myreactSharedExports.include(contextFiber.state, myreactSharedExports.STATE_TYPE.__unmount__) || !Object.is(currentHook.value, value)) {\n currentHook.value = value;\n var providerFiber = renderDispatch.resolveContextFiber(fiber, currentHook.value);\n var context = renderDispatch.resolveContextValue(providerFiber, currentHook.value);\n setContextForInstance(currentHook, providerFiber);\n currentHook.result = context;\n }\n else {\n var context = renderDispatch.resolveContextValue(contextFiber, currentHook.value);\n currentHook.result = context;\n }\n return currentHook;\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useReducer) {\n currentHook.value = value;\n currentHook.reducer = reducer;\n return currentHook;\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useDeferredValue) {\n (_c = currentHook.cancel) === null || _c === void 0 ? void 0 : _c.call(currentHook);\n currentHook.value = value;\n if (!Object.is(currentHook.value, currentHook.result)) {\n currentHook.cancel = renderPlatform.yieldTask(function triggerHookUpdate() {\n currentHook.result = currentHook.value;\n currentHook._update({ isForce: true });\n currentHook.cancel = null;\n });\n }\n }\n if (currentHook.type === myreactSharedExports.HOOK_TYPE.useDebugValue) {\n if (!myreactSharedExports.isArrayEquals(currentHook.value, value)) {\n currentHook.value = value;\n currentHook.result = value;\n if (enableDebugLog.current) {\n console.warn.apply(console, __spreadArray([\"[debug]\"], currentHook.value, false));\n }\n }\n }\n return currentHook;\n};\n\nvar hookListUnmount = function (fiber, renderDispatch) {\n var _a, _b;\n (_b = (_a = fiber.hookList) === null || _a === void 0 ? void 0 : _a.listToFoot) === null || _b === void 0 ? void 0 : _b.call(_a, function invokeHookUnmount(hookNode) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallHookUnmountListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.hookUnmount) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(hookNode, fiber); });\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallHookNodeUnmount() {\n hookNode.hasEffect = false;\n hookNode.cancel && hookNode.cancel();\n unmountInstance(hookNode);\n },\n });\n });\n};\n\nvar hmr = function (fiber, nextType, forceRefresh) {\n {\n throw new Error(\"[@my-react/react] can not try to dev refresh this app in prod env!\");\n }\n};\n\nvar currentRunningFiber$2 = react.__my_react_internal__.currentRunningFiber;\nvar performToNextFiberFromRoot = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) || renderDispatch.isAppCrashed)\n return null;\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__create__ |\n myreactSharedExports.STATE_TYPE.__inherit__ |\n myreactSharedExports.STATE_TYPE.__triggerSync__ |\n myreactSharedExports.STATE_TYPE.__triggerSyncForce__ |\n myreactSharedExports.STATE_TYPE.__triggerConcurrent__ |\n myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__ |\n myreactSharedExports.STATE_TYPE.__retrigger__)) {\n fiber.state = myreactSharedExports.remove(fiber.state, myreactSharedExports.STATE_TYPE.__retrigger__);\n currentRenderDispatch.current = renderDispatch;\n currentRunningFiber$2.current = fiber;\n {\n runtimeNextWork(fiber);\n }\n currentRunningFiber$2.current = null;\n currentRenderDispatch.current = null;\n }\n if (!myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__retrigger__)) {\n fiber.state = myreactSharedExports.STATE_TYPE.__stable__;\n }\n else {\n fiber.state = myreactSharedExports.merge(fiber.state, myreactSharedExports.STATE_TYPE.__rerun__);\n }\n if (fiber.child)\n return fiber.child;\n var nextFiber = fiber;\n while (nextFiber && nextFiber !== renderDispatch.runtimeFiber.scheduledFiber) {\n renderDispatch.generateCommitList(nextFiber);\n if (nextFiber.sibling)\n return nextFiber.sibling;\n nextFiber = nextFiber.parent;\n }\n if (nextFiber === renderDispatch.runtimeFiber.scheduledFiber)\n renderDispatch.generateCommitList(nextFiber);\n return null;\n};\nvar performToNextFiberFromTrigger = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__) || renderDispatch.isAppCrashed)\n return null;\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__create__ |\n myreactSharedExports.STATE_TYPE.__inherit__ |\n myreactSharedExports.STATE_TYPE.__triggerSync__ |\n myreactSharedExports.STATE_TYPE.__triggerSyncForce__ |\n myreactSharedExports.STATE_TYPE.__triggerConcurrent__ |\n myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__ |\n myreactSharedExports.STATE_TYPE.__retrigger__)) {\n fiber.state = myreactSharedExports.remove(fiber.state, myreactSharedExports.STATE_TYPE.__retrigger__);\n currentRenderDispatch.current = renderDispatch;\n currentRunningFiber$2.current = fiber;\n {\n runtimeNextWork(fiber);\n }\n currentRunningFiber$2.current = null;\n currentRenderDispatch.current = null;\n if (!myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__retrigger__)) {\n fiber.state = myreactSharedExports.STATE_TYPE.__stable__;\n }\n else {\n fiber.state = myreactSharedExports.merge(fiber.state, myreactSharedExports.STATE_TYPE.__rerun__);\n }\n if (fiber.child)\n return fiber.child;\n }\n var nextFiber = fiber;\n while (nextFiber && nextFiber !== renderDispatch.runtimeFiber.scheduledFiber) {\n renderDispatch.generateCommitList(nextFiber);\n if (nextFiber.sibling)\n return nextFiber.sibling;\n nextFiber = nextFiber.parent;\n }\n if (nextFiber === renderDispatch.runtimeFiber.scheduledFiber)\n renderDispatch.generateCommitList(nextFiber);\n return null;\n};\n\nvar nextWorkFiber = null;\nvar updateLoopSyncFromRoot = function (renderDispatch) {\n while (renderDispatch.runtimeFiber.nextWorkingFiber) {\n nextWorkFiber = null;\n var currentFiber = renderDispatch.runtimeFiber.nextWorkingFiber;\n var nextFiber = performToNextFiberFromRoot(currentFiber, renderDispatch);\n triggerFiberUpdateListener(renderDispatch, currentFiber);\n renderDispatch.runtimeFiber.nextWorkingFiber = nextWorkFiber || nextFiber;\n nextWorkFiber = null;\n }\n};\nvar updateLoopSyncFromTrigger = function (renderDispatch) {\n while (renderDispatch.runtimeFiber.nextWorkingFiber) {\n nextWorkFiber = null;\n var currentFiber = renderDispatch.runtimeFiber.nextWorkingFiber;\n var nextFiber = performToNextFiberFromTrigger(currentFiber, renderDispatch);\n triggerFiberUpdateListener(renderDispatch, currentFiber);\n renderDispatch.runtimeFiber.nextWorkingFiber = nextWorkFiber || nextFiber;\n nextWorkFiber = null;\n }\n};\nvar updateLoopConcurrentFromRoot = function (renderDispatch) {\n while (renderDispatch.runtimeFiber.nextWorkingFiber && !renderDispatch.shouldYield()) {\n nextWorkFiber = null;\n var currentFiber = renderDispatch.runtimeFiber.nextWorkingFiber;\n var nextFiber = performToNextFiberFromRoot(currentFiber, renderDispatch);\n triggerFiberUpdateListener(renderDispatch, currentFiber);\n renderDispatch.runtimeFiber.nextWorkingFiber = nextWorkFiber || nextFiber;\n nextWorkFiber = null;\n }\n};\nvar updateLoopConcurrentFromTrigger = function (renderDispatch) {\n while (renderDispatch.runtimeFiber.nextWorkingFiber && !renderDispatch.shouldYield()) {\n nextWorkFiber = null;\n var currentFiber = renderDispatch.runtimeFiber.nextWorkingFiber;\n var nextFiber = performToNextFiberFromTrigger(currentFiber, renderDispatch);\n triggerFiberUpdateListener(renderDispatch, currentFiber);\n renderDispatch.runtimeFiber.nextWorkingFiber = nextWorkFiber || nextFiber;\n nextWorkFiber = null;\n }\n};\nvar setImmediateNextFiber = function (fiber) {\n if (!nextWorkFiber) {\n nextWorkFiber = fiber;\n }\n};\n\nvar globalLoop$2 = react.__my_react_internal__.globalLoop, currentRenderPlatform$3 = react.__my_react_internal__.currentRenderPlatform;\nvar enableConcurrentMode$1 = react.__my_react_shared__.enableConcurrentMode, enableLoopFromRoot$1 = react.__my_react_shared__.enableLoopFromRoot;\nvar scheduleNext = function (renderDispatch) {\n var _a;\n if (!renderDispatch.isAppUnmounted && !renderDispatch.isAppCrashed && renderDispatch.enableUpdate && renderDispatch.pendingUpdateFiberArray.length) {\n scheduleUpdate(renderDispatch);\n return;\n }\n var renderPlatform = currentRenderPlatform$3.current;\n if (!renderPlatform.dispatchSet || ((_a = renderPlatform.dispatchSet) === null || _a === void 0 ? void 0 : _a.length) === 1)\n return;\n var allDispatch = renderPlatform.dispatchSet;\n var hasPending = allDispatch\n .getAll()\n .find(function (d) { return d !== renderDispatch && d.isAppMounted && d.enableUpdate && !d.isAppCrashed && !d.isAppUnmounted && d.pendingUpdateFiberArray.length; });\n if (hasPending) {\n scheduleUpdate(hasPending);\n }\n else {\n globalLoop$2.current = false;\n }\n};\nvar scheduleUpdateFromRoot = function (renderDispatch) {\n var allLive = renderDispatch.pendingUpdateFiberArray.getAll().filter(function (f) { return myreactSharedExports.exclude(f.state, myreactSharedExports.STATE_TYPE.__unmount__); });\n renderDispatch.pendingUpdateFiberArray.clear();\n if (allLive.length) {\n renderDispatch.runtimeFiber.scheduledFiber = renderDispatch.rootFiber;\n renderDispatch.runtimeFiber.nextWorkingFiber = renderDispatch.rootFiber;\n if (!enableConcurrentMode$1.current ||\n allLive.some(function (f) { return myreactSharedExports.include(f.state, myreactSharedExports.STATE_TYPE.__skippedSync__ | myreactSharedExports.STATE_TYPE.__triggerSync__ | myreactSharedExports.STATE_TYPE.__triggerSyncForce__); })) {\n updateSyncFromRoot(renderDispatch);\n }\n else {\n updateConcurrentFromRoot(renderDispatch);\n }\n }\n else {\n scheduleNext(renderDispatch);\n }\n};\nvar scheduleUpdateFromTrigger = function (renderDispatch) {\n var allPending = renderDispatch.pendingUpdateFiberArray.getAll();\n var nextWorkFiber = null;\n for (var i = 0; i < allPending.length; i++) {\n var item = allPending[i];\n if (myreactSharedExports.include(item.state, myreactSharedExports.STATE_TYPE.__stable__ | myreactSharedExports.STATE_TYPE.__unmount__)) {\n renderDispatch.pendingUpdateFiberArray.uniDelete(item);\n continue;\n }\n else {\n nextWorkFiber = item;\n break;\n }\n }\n if (nextWorkFiber) {\n if (myreactSharedExports.include(nextWorkFiber.state, myreactSharedExports.STATE_TYPE.__skippedSync__ | myreactSharedExports.STATE_TYPE.__triggerSync__ | myreactSharedExports.STATE_TYPE.__triggerSyncForce__)) {\n renderDispatch.runtimeFiber.scheduledFiber = nextWorkFiber;\n renderDispatch.runtimeFiber.nextWorkingFiber = nextWorkFiber;\n // normally a context update\n if (myreactSharedExports.include(nextWorkFiber.state, myreactSharedExports.STATE_TYPE.__skippedSync__)) {\n updateSyncFromRoot(renderDispatch);\n }\n else {\n // TODO maybe could use `updateSyncFromRoot`?\n updateSyncFromTrigger(renderDispatch);\n }\n }\n else if (myreactSharedExports.include(nextWorkFiber.state, myreactSharedExports.STATE_TYPE.__skippedConcurrent__ | myreactSharedExports.STATE_TYPE.__triggerConcurrent__ | myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__)) {\n renderDispatch.runtimeFiber.scheduledFiber = nextWorkFiber;\n renderDispatch.runtimeFiber.nextWorkingFiber = nextWorkFiber;\n if (myreactSharedExports.include(nextWorkFiber.state, myreactSharedExports.STATE_TYPE.__skippedConcurrent__)) {\n if (enableConcurrentMode$1.current) {\n updateConcurrentFromRoot(renderDispatch);\n }\n else {\n updateSyncFromRoot(renderDispatch);\n }\n }\n else {\n if (enableConcurrentMode$1.current) {\n updateConcurrentFromTrigger(renderDispatch);\n }\n else {\n updateSyncFromTrigger(renderDispatch);\n }\n }\n }\n else {\n // TODO\n throw new Error(\"[@my-react/react] unknown state, \".concat(nextWorkFiber.state, \", this like a bug for @my-react\"));\n }\n }\n else {\n scheduleNext(renderDispatch);\n }\n};\nvar scheduleUpdate = function (renderDispatch) {\n if (renderDispatch.isAppUnmounted) {\n scheduleNext(renderDispatch);\n return;\n }\n if (enableLoopFromRoot$1.current) {\n scheduleUpdateFromRoot(renderDispatch);\n }\n else {\n scheduleUpdateFromTrigger(renderDispatch);\n }\n};\n/**\n * only used for dev HMR\n * only invoke on the errorCatchFiber\n */\nvar triggerRevert = function (fiber, cb) {\n {\n console.error(\"[@my-react/react] can not call revert on prod mode\");\n }\n};\nvar triggerUpdate = function (fiber, state, cb) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n var renderPlatform = currentRenderPlatform$3.current;\n var renderDispatch = fiberToDispatchMap.get(fiber);\n if (renderDispatch.isAppCrashed)\n return;\n if (renderDispatch.isAppUnmounted)\n return;\n // TODO\n if (!renderDispatch.isAppMounted) {\n renderPlatform.macroTask(function scheduleUpdateBeforeMount() {\n triggerUpdate(fiber, state, cb);\n });\n return;\n }\n if (typeof state === \"function\") {\n cb = state;\n state = myreactSharedExports.STATE_TYPE.__triggerConcurrent__;\n }\n state = state || myreactSharedExports.STATE_TYPE.__triggerSync__;\n if (fiber.state === myreactSharedExports.STATE_TYPE.__stable__) {\n fiber.state = state;\n }\n else {\n fiber.state = myreactSharedExports.merge(fiber.state, state);\n }\n renderDispatch.pendingUpdateFiberArray.uniPush(fiber);\n if (cb) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__class__)) {\n renderDispatch.pendingLayoutEffect(fiber, cb, { stickyToFoot: true });\n }\n else {\n renderDispatch.pendingEffect(fiber, cb, { stickyToFoot: true });\n }\n }\n if (globalLoop$2.current)\n return;\n globalLoop$2.current = true;\n scheduleUpdate(renderDispatch);\n};\nvar triggerError = function (fiber, error, cb) {\n var _a;\n var renderDispatch = fiberToDispatchMap.get(fiber);\n var renderPlatform = currentRenderPlatform$3.current;\n var errorBoundariesFiber = renderDispatch.resolveErrorBoundaries(fiber);\n if (errorBoundariesFiber) {\n var typedComponent = errorBoundariesFiber.elementType;\n var typedInstance_1 = errorBoundariesFiber.instance;\n var payloadState = (_a = typedComponent.getDerivedStateFromError) === null || _a === void 0 ? void 0 : _a.call(typedComponent, error);\n errorBoundariesFiber.memoizedState = Object.assign({}, errorBoundariesFiber.pendingState);\n typedInstance_1.setState(payloadState, function finishTriggerErrorOnFiber() {\n var _a;\n (_a = typedInstance_1.componentDidCatch) === null || _a === void 0 ? void 0 : _a.call(typedInstance_1, error, { componentStack: renderPlatform.getFiberTree(fiber) });\n renderDispatch.runtimeFiber.errorCatchFiber = errorBoundariesFiber;\n cb === null || cb === void 0 ? void 0 : cb();\n });\n }\n else {\n if (renderDispatch.isAppCrashed)\n return;\n renderDispatch.pendingUpdateFiberArray.clear();\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.isAppCrashed = true;\n globalLoop$2.current = false;\n {\n console.error(\"[@my-react/react] a uncaught exception have been throw\", error);\n throw error;\n }\n }\n};\nvar triggerUnmount = function (fiber, cb) {\n var renderDispatch = fiberToDispatchMap.get(fiber);\n if (renderDispatch.isAppUnmounted) {\n throw new Error(\"[@my-react/react] can not unmount a node when current app has been unmounted\");\n }\n triggerUpdate(fiber, myreactSharedExports.STATE_TYPE.__skippedSync__, function finishTriggerUnmountOnFiber() {\n renderDispatch.reconcileUnmount();\n cb === null || cb === void 0 ? void 0 : cb();\n });\n};\n\nvar globalLoop$1 = react.__my_react_internal__.globalLoop, currentRenderPlatform$2 = react.__my_react_internal__.currentRenderPlatform;\nreact.__my_react_shared__.enableScopeTreeLog;\nvar updateSyncFromRoot = function (renderDispatch) {\n globalLoop$1.current = true;\n var renderPlatform = currentRenderPlatform$2.current;\n updateLoopSyncFromRoot(renderDispatch);\n (function finishUpdateSyncFromRoot() {\n var commitList = renderDispatch.pendingCommitFiberList;\n var changedList = renderDispatch.pendingChangedFiberList;\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.pendingCommitFiberList = null;\n renderDispatch.pendingChangedFiberList = null;\n (commitList === null || commitList === void 0 ? void 0 : commitList.length) && renderDispatch.reconcileUpdate(commitList);\n (changedList === null || changedList === void 0 ? void 0 : changedList.length) &&\n safeCall(function safeCallFiberHasChangeListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberHasChange) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(changedList); });\n });\n })();\n renderPlatform.microTask(function callScheduleNext() {\n globalLoop$1.current = false;\n scheduleNext(renderDispatch);\n });\n};\nvar updateSyncFromTrigger = function (renderDispatch) {\n globalLoop$1.current = true;\n var renderPlatform = currentRenderPlatform$2.current;\n updateLoopSyncFromTrigger(renderDispatch);\n (function finishUpdateSyncFromTrigger() {\n var commitList = renderDispatch.pendingCommitFiberList;\n var changedList = renderDispatch.pendingChangedFiberList;\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.pendingCommitFiberList = null;\n renderDispatch.pendingChangedFiberList = null;\n (commitList === null || commitList === void 0 ? void 0 : commitList.length) && renderDispatch.reconcileUpdate(commitList);\n (changedList === null || changedList === void 0 ? void 0 : changedList.length) &&\n safeCall(function safeCallFiberHasChangeListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberHasChange) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(changedList); });\n });\n })();\n renderPlatform.microTask(function callScheduleNext() {\n globalLoop$1.current = false;\n scheduleNext(renderDispatch);\n });\n};\nvar updateConcurrentFromRoot = function (renderDispatch) {\n globalLoop$1.current = true;\n var renderPlatform = currentRenderPlatform$2.current;\n updateLoopConcurrentFromRoot(renderDispatch);\n if (renderDispatch.runtimeFiber.nextWorkingFiber) {\n renderPlatform.yieldTask(function resumeUpdateConcurrentFromRoot() {\n updateConcurrentFromRoot(renderDispatch);\n });\n }\n else {\n (function finishUpdateConcurrentFromRoot() {\n var commitList = renderDispatch.pendingCommitFiberList;\n var changedList = renderDispatch.pendingChangedFiberList;\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.pendingCommitFiberList = null;\n renderDispatch.pendingChangedFiberList = null;\n (commitList === null || commitList === void 0 ? void 0 : commitList.length) && renderDispatch.reconcileUpdate(commitList);\n (changedList === null || changedList === void 0 ? void 0 : changedList.length) &&\n safeCall(function safeCallFiberHasChangeListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberHasChange) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(changedList); });\n });\n })();\n renderPlatform.microTask(function callScheduleNext() {\n // TODO! flash all effect\n globalLoop$1.current = false;\n scheduleNext(renderDispatch);\n });\n }\n};\nvar updateConcurrentFromTrigger = function (renderDispatch) {\n globalLoop$1.current = true;\n var renderPlatform = currentRenderPlatform$2.current;\n updateLoopConcurrentFromTrigger(renderDispatch);\n if (renderDispatch.runtimeFiber.nextWorkingFiber) {\n renderPlatform.yieldTask(function resumeUpdateConcurrentFromTrigger() {\n updateConcurrentFromTrigger(renderDispatch);\n });\n }\n else {\n (function finishUpdateConcurrentFromTrigger() {\n var commitList = renderDispatch.pendingCommitFiberList;\n var changedList = renderDispatch.pendingChangedFiberList;\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.pendingCommitFiberList = null;\n renderDispatch.pendingChangedFiberList = null;\n (commitList === null || commitList === void 0 ? void 0 : commitList.length) && renderDispatch.reconcileUpdate(commitList);\n (changedList === null || changedList === void 0 ? void 0 : changedList.length) &&\n safeCall(function safeCallFiberHasChangeListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberHasChange) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(changedList); });\n });\n })();\n renderPlatform.microTask(function callScheduleNext() {\n // TODO! flash all effect\n globalLoop$1.current = false;\n scheduleNext(renderDispatch);\n });\n }\n};\n\nvar currentRenderPlatform$1 = react.__my_react_internal__.currentRenderPlatform, currentRunningFiber$1 = react.__my_react_internal__.currentRunningFiber;\nvar enableConcurrentMode = react.__my_react_shared__.enableConcurrentMode;\nvar emptyProps = {};\nvar MyReactFiberNode = /** @class */ (function () {\n function MyReactFiberNode(element) {\n this.state = myreactSharedExports.STATE_TYPE.__initial__;\n this.patch = myreactSharedExports.PATCH_TYPE.__initial__;\n this.type = exports.NODE_TYPE.__initial__;\n this.child = null;\n this.parent = null;\n this.sibling = null;\n this.pendingProps = emptyProps;\n this.memoizedProps = emptyProps;\n this.state = myreactSharedExports.STATE_TYPE.__create__;\n this._installElement(element);\n }\n MyReactFiberNode.prototype._installElement = function (element) {\n var _a = getTypeFromElementNode(element), key = _a.key, ref = _a.ref, nodeType = _a.nodeType, elementType = _a.elementType, pendingProps = _a.pendingProps;\n this.ref = ref;\n this.key = key;\n this.type = nodeType;\n this.elementType = elementType;\n this.pendingProps = pendingProps;\n return element;\n };\n MyReactFiberNode.prototype._addDependence = function (instance) {\n this.dependence = this.dependence || new Set();\n this.dependence.add(instance);\n };\n MyReactFiberNode.prototype._delDependence = function (instance) {\n var _a;\n (_a = this.dependence) === null || _a === void 0 ? void 0 : _a.delete(instance);\n };\n MyReactFiberNode.prototype._update = function (state) {\n triggerUpdateOnFiber(this, state);\n };\n return MyReactFiberNode;\n}());\nvar processUpdateOnFiber = function (fiber, renderDispatch) {\n var renderPlatform = currentRenderPlatform$1.current;\n var flag = enableConcurrentMode.current;\n var currentRunning = currentRunningFiber$1.current;\n var updateState = null;\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__class__)) {\n updateState = processClassComponentUpdateQueue(fiber, renderDispatch, flag);\n }\n else if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__function__)) {\n updateState = processFunctionComponentUpdateQueue(fiber, renderDispatch, flag);\n }\n else if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__lazy__)) {\n updateState = processLazyComponentUpdate(fiber);\n }\n else {\n throw new Error(\"unknown runtime error, this is a bug for @my-react\");\n }\n if (updateState === null || updateState === void 0 ? void 0 : updateState.needUpdate) {\n // TODO get from updateState ?\n if (currentRunning && currentRunning === fiber) {\n fiber.state = myreactSharedExports.remove(fiber.state, myreactSharedExports.STATE_TYPE.__stable__);\n fiber.state = myreactSharedExports.merge(fiber.state, myreactSharedExports.STATE_TYPE.__retrigger__);\n setImmediateNextFiber(fiber);\n return;\n }\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberTriggerListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberTrigger) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(fiber, updateState); });\n },\n });\n if (updateState.isSync) {\n renderPlatform.microTask(function triggerSyncUpdateOnFiber() {\n triggerUpdate(fiber, updateState.isForce ? myreactSharedExports.STATE_TYPE.__triggerSyncForce__ : myreactSharedExports.STATE_TYPE.__triggerSync__, updateState.callback);\n });\n }\n else {\n renderPlatform.microTask(function triggerConcurrentUpdateOnFiber() {\n triggerUpdate(fiber, updateState.isForce ? myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__ : myreactSharedExports.STATE_TYPE.__triggerConcurrent__, updateState.callback);\n });\n }\n }\n};\nvar prepareUpdateOnFiber = function (fiber, renderDispatch, isImmediate) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n var renderPlatform = currentRenderPlatform$1.current;\n if (isImmediate) {\n processUpdateOnFiber(fiber, renderDispatch);\n }\n else {\n renderPlatform.microTask(function asyncProcessUpdateOnFiber() {\n processUpdateOnFiber(fiber, renderDispatch);\n });\n }\n};\nvar SyncState = myreactSharedExports.merge(myreactSharedExports.STATE_TYPE.__triggerSyncForce__, myreactSharedExports.merge(myreactSharedExports.STATE_TYPE.__skippedSync__, myreactSharedExports.STATE_TYPE.__triggerSync__));\nvar ForceState = myreactSharedExports.merge(myreactSharedExports.STATE_TYPE.__triggerSyncForce__, myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__);\nvar triggerUpdateOnFiber = function (fiber, state) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n var renderPlatform = currentRenderPlatform$1.current;\n var renderDispatch = getCurrentDispatchFromFiber(fiber);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberTriggerListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberTrigger) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) {\n return cb(fiber, {\n needUpdate: true,\n isSync: !!myreactSharedExports.include(state, SyncState),\n isForce: !!myreactSharedExports.include(state, ForceState),\n });\n });\n },\n });\n renderPlatform.microTask(function triggerUpdateOnFiber() {\n triggerUpdate(fiber, state);\n });\n};\nObject.defineProperty(MyReactFiberNode.prototype, \"isMyReactFiberNode\", {\n value: true,\n configurable: true,\n});\nObject.defineProperty(MyReactFiberNode.prototype, \"return\", {\n get: function () {\n return this.parent;\n },\n configurable: true,\n});\nObject.defineProperty(MyReactFiberNode.prototype, \"stateNode\", {\n get: function () {\n return this.nativeNode || this.containerNode;\n },\n configurable: true,\n});\n\nvar createFiberNode = function (_a, element) {\n var parent = _a.parent, _b = _a.type, type = _b === void 0 ? \"append\" : _b;\n var renderDispatch = currentRenderDispatch.current;\n var newFiberNode = new MyReactFiberNode(element);\n fiberToDispatchMap.set(newFiberNode, renderDispatch);\n newFiberNode.parent = parent;\n parent.child = parent.child || newFiberNode;\n renderDispatch.pendingCreate(newFiberNode);\n renderDispatch.pendingUpdate(newFiberNode);\n if (type === \"position\") {\n renderDispatch.pendingPosition(newFiberNode);\n }\n else {\n renderDispatch.pendingAppend(newFiberNode);\n }\n renderDispatch.pendingRef(newFiberNode);\n safeCallWithCurrentFiber({\n fiber: newFiberNode,\n action: function safeCallPatchToFiberInitial() {\n var _a;\n (_a = renderDispatch.patchToFiberInitial) === null || _a === void 0 ? void 0 : _a.call(renderDispatch, newFiberNode);\n },\n });\n safeCallWithCurrentFiber({\n fiber: newFiberNode,\n action: function safeCallFiberInitialListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberInitial) === null || _b === void 0 ? void 0 : _b.forEach(function (listener) { return listener(newFiberNode); });\n },\n });\n if (myreactSharedExports.exclude(newFiberNode.patch, myreactSharedExports.PATCH_TYPE.__update__)) {\n newFiberNode.memoizedProps = newFiberNode.pendingProps;\n }\n return newFiberNode;\n};\n\nvar enableLoopFromRoot = react.__my_react_shared__.enableLoopFromRoot;\nvar updateFiberNode = function (_a, nextElement) {\n var fiber = _a.fiber, parent = _a.parent, prevFiber = _a.prevFiber;\n var prevElementType = fiber.elementType;\n var prevProps = fiber.memoizedProps;\n var prevRef = fiber.ref;\n var renderDispatch = currentRenderDispatch.current;\n fiber.parent = parent;\n fiber.sibling = null;\n parent.child = parent.child || fiber;\n nextElement = fiber._installElement(nextElement);\n var nextElementType = fiber.elementType;\n var nextProps = fiber.pendingProps;\n var nextRef = fiber.ref;\n if (prevElementType !== nextElementType || prevProps !== nextProps) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__memo__)) {\n var typedElement = nextElement;\n var typedElementType = typedElement.type;\n var compare = typedElementType.compare || myreactSharedExports.isNormalEquals;\n if (myreactSharedExports.exclude(fiber.state, myreactSharedExports.STATE_TYPE.__triggerSync__ | myreactSharedExports.STATE_TYPE.__triggerConcurrent__ | myreactSharedExports.STATE_TYPE.__triggerSyncForce__ | myreactSharedExports.STATE_TYPE.__triggerConcurrentForce__) &&\n compare(fiber.pendingProps, fiber.memoizedProps)) {\n fiber.state = myreactSharedExports.STATE_TYPE.__stable__;\n }\n else {\n fiber.state = myreactSharedExports.remove(fiber.state, myreactSharedExports.STATE_TYPE.__stable__);\n fiber.state = myreactSharedExports.merge(fiber.state, myreactSharedExports.STATE_TYPE.__inherit__);\n }\n }\n else {\n fiber.state = myreactSharedExports.remove(fiber.state, myreactSharedExports.STATE_TYPE.__stable__);\n fiber.state = myreactSharedExports.merge(fiber.state, myreactSharedExports.STATE_TYPE.__inherit__);\n }\n }\n if (fiber.state !== myreactSharedExports.STATE_TYPE.__stable__) {\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__provider__)) {\n if (!myreactSharedExports.isNormalEquals(fiber.pendingProps.value, fiber.memoizedProps.value)) {\n if (enableLoopFromRoot.current) {\n prepareUpdateAllDependence(fiber, fiber.memoizedProps.value, fiber.pendingProps.value);\n }\n else {\n // renderDispatch.pendingLayoutEffect(fiber, () => prepareUpdateAllDependenceFromProvider(fiber, fiber.memoizedProps.value, fiber.pendingProps.value));\n renderDispatch.pendingLayoutEffect(fiber, function invokePrepareUpdateAllDependenceFromRoot() {\n prepareUpdateAllDependenceFromRoot(renderDispatch, fiber, fiber.memoizedProps.value, fiber.pendingProps.value);\n });\n }\n }\n }\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__plain__)) {\n if (!myreactSharedExports.isNormalEquals(fiber.pendingProps, fiber.memoizedProps, function (key) { return key === \"children\"; })) {\n renderDispatch.pendingUpdate(fiber);\n }\n }\n if (myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__text__)) {\n renderDispatch.pendingUpdate(fiber);\n }\n }\n if (nextRef && prevRef !== nextRef) {\n renderDispatch.pendingRef(fiber);\n }\n if (fiber !== prevFiber) {\n renderDispatch.pendingPosition(fiber);\n }\n if (myreactSharedExports.exclude(fiber.patch, myreactSharedExports.PATCH_TYPE.__update__)) {\n fiber.memoizedProps = fiber.pendingProps;\n }\n return fiber;\n};\nvar triggerFiberUpdateListener = function (renderDispatch, fiber) {\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallPatchToFiberUpdate() {\n var _a;\n (_a = renderDispatch.patchToFiberUpdate) === null || _a === void 0 ? void 0 : _a.call(renderDispatch, fiber);\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberUpdateListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberUpdate) === null || _b === void 0 ? void 0 : _b.forEach(function (listener) { return listener(fiber); });\n },\n });\n};\n\n// no need to resolve map for this fiber, this code only used for fiberRoot init\nvar initialFiberNode = function (fiber, renderDispatch) {\n fiberToDispatchMap.set(fiber, renderDispatch);\n renderDispatch.pendingCreate(fiber);\n renderDispatch.pendingUpdate(fiber);\n renderDispatch.pendingAppend(fiber);\n renderDispatch.pendingRef(fiber);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallPatchToFiberInitial() {\n var _a;\n (_a = renderDispatch.patchToFiberInitial) === null || _a === void 0 ? void 0 : _a.call(renderDispatch, fiber);\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberInitialListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberInitial) === null || _b === void 0 ? void 0 : _b.forEach(function (listener) { return listener(fiber); });\n },\n });\n if (myreactSharedExports.exclude(fiber.patch, myreactSharedExports.PATCH_TYPE.__update__)) {\n fiber.memoizedProps = fiber.pendingProps;\n }\n return fiber;\n};\n\nreact.__my_react_shared__.enableDebugFiled;\nvar unmountFiberNode = function (fiber, renderDispatch) {\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n hookListUnmount(fiber, renderDispatch);\n classComponentUnmount(fiber, renderDispatch);\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallCommitUnsetRef() {\n renderDispatch.commitUnsetRef(fiber);\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallCommitClear() {\n renderDispatch.commitClear(fiber);\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallPatchToFiberUnmount() {\n var _a;\n (_a = renderDispatch.patchToFiberUnmount) === null || _a === void 0 ? void 0 : _a.call(renderDispatch, fiber);\n },\n });\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberUnmountListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberUnmount) === null || _b === void 0 ? void 0 : _b.forEach(function (listener) { return listener(fiber); });\n },\n });\n fiberToDispatchMap.delete(fiber);\n renderDispatch.runtimeMap.suspenseMap.delete(fiber);\n renderDispatch.runtimeMap.strictMap.delete(fiber);\n renderDispatch.runtimeMap.insertionEffectMap.delete(fiber);\n renderDispatch.runtimeMap.scopeMap.delete(fiber);\n renderDispatch.runtimeMap.errorBoundariesMap.delete(fiber);\n renderDispatch.runtimeMap.effectMap.delete(fiber);\n renderDispatch.runtimeMap.layoutEffectMap.delete(fiber);\n renderDispatch.runtimeMap.contextMap.delete(fiber);\n renderDispatch.runtimeMap.unmountMap.delete(fiber);\n renderDispatch.runtimeMap.eventMap.delete(fiber);\n if (Boolean(false) === false) {\n fiber.child = null;\n fiber.parent = null;\n fiber.sibling = null;\n fiber.instance = null;\n fiber.hookList = null;\n fiber.dependence = null;\n fiber.nativeNode = null;\n fiber.updateQueue = null;\n }\n fiber.patch = myreactSharedExports.PATCH_TYPE.__initial__;\n fiber.state = myreactSharedExports.STATE_TYPE.__unmount__;\n};\n\nreact.__my_react_shared__.enableDebugFiled;\nvar emptyObj = {};\nvar defaultGenerateContextMap = function (fiber, map) {\n var _a;\n var parent = fiber.parent;\n if (parent) {\n var parentMap = map.get(parent) || emptyObj;\n if (myreactSharedExports.include(parent.type, exports.NODE_TYPE.__provider__)) {\n var typedElementType = parent.elementType;\n var contextObj = typedElementType[\"Context\"];\n var contextId = contextObj[\"contextId\"];\n parentMap = Object.assign({}, parentMap, (_a = {}, _a[contextId] = parent, _a));\n }\n map.set(fiber, parentMap);\n }\n};\nvar defaultGetContextValue = function (fiber, ContextObject) {\n if (fiber) {\n return fiber.pendingProps[\"value\"];\n }\n else {\n return ContextObject === null || ContextObject === void 0 ? void 0 : ContextObject.Provider[\"value\"];\n }\n};\nvar defaultGetContextFiber = function (fiber, renderDispatch, ContextObject) {\n if ((fiber === null || fiber === void 0 ? void 0 : fiber.parent) && ContextObject) {\n var parent_1 = fiber.parent;\n while (parent_1) {\n if (myreactSharedExports.include(parent_1.type, exports.NODE_TYPE.__provider__)) {\n var typedElementType = parent_1.elementType;\n var contextObj = typedElementType[\"Context\"];\n if (contextObj === ContextObject) {\n return parent_1;\n }\n }\n parent_1 = parent_1.parent;\n }\n }\n else {\n return null;\n }\n};\nvar prepareUpdateAllDependence = function (fiber, beforeValue, afterValue) {\n var consumerList = new Set((fiber === null || fiber === void 0 ? void 0 : fiber.dependence) || []);\n consumerList.forEach(function prepareUpdateSingleConsumer(i) {\n var owner = getInstanceOwnerFiber(i);\n if (owner && myreactSharedExports.exclude(owner.state, myreactSharedExports.STATE_TYPE.__unmount__)) {\n var typedFiber = owner;\n typedFiber.state = myreactSharedExports.STATE_TYPE.__triggerSyncForce__;\n }\n });\n};\nvar prepareUpdateAllDependenceFromRoot = function (renderDispatch, fiber, beforeValue, afterValue) {\n var consumerList = new Set((fiber === null || fiber === void 0 ? void 0 : fiber.dependence) || []);\n var now = Date.now();\n ({\n type: myreactSharedExports.UpdateQueueType.context,\n trigger: fiber,\n payLoad: afterValue,\n isSync: true,\n isForce: true,\n _debugBaseValue: beforeValue,\n _debugBeforeValue: beforeValue,\n _debugAfterValue: afterValue,\n _debugCreateTime: now,\n _debugRunTime: now,\n _debugType: myreactSharedExports.UpdateQueueType[myreactSharedExports.UpdateQueueType.context],\n _debugUpdateState: {\n needUpdate: true,\n isSync: true,\n isForce: true,\n callbacks: [],\n },\n });\n consumerList.forEach(function prepareUpdateSingleConsumer(i) {\n var owner = getInstanceOwnerFiber(i);\n if (owner && myreactSharedExports.exclude(owner.state, myreactSharedExports.STATE_TYPE.__unmount__)) {\n var typedFiber = owner;\n typedFiber.state = myreactSharedExports.STATE_TYPE.__triggerSyncForce__;\n }\n });\n var root = renderDispatch.rootFiber;\n renderDispatch.pendingUpdateFiberArray.clear();\n triggerUpdateOnFiber(root, myreactSharedExports.STATE_TYPE.__skippedSync__);\n};\nvar prepareUpdateAllDependenceFromProvider = function (fiber, beforeValue, afterValue) {\n var consumerList = new Set((fiber === null || fiber === void 0 ? void 0 : fiber.dependence) || []);\n var now = Date.now();\n ({\n type: myreactSharedExports.UpdateQueueType.context,\n trigger: fiber,\n payLoad: afterValue,\n isSync: true,\n isForce: true,\n _debugBaseValue: beforeValue,\n _debugBeforeValue: beforeValue,\n _debugAfterValue: afterValue,\n _debugCreateTime: now,\n _debugRunTime: now,\n _debugType: myreactSharedExports.UpdateQueueType[myreactSharedExports.UpdateQueueType.context],\n _debugUpdateState: {\n needUpdate: true,\n isSync: true,\n isForce: true,\n callbacks: [],\n },\n });\n consumerList.forEach(function prepareUpdateSingleConsumer(i) {\n var owner = getInstanceOwnerFiber(i);\n if (owner && myreactSharedExports.exclude(owner.state, myreactSharedExports.STATE_TYPE.__unmount__)) {\n var typedFiber_1 = owner;\n typedFiber_1.state = myreactSharedExports.STATE_TYPE.__triggerSyncForce__;\n }\n });\n var typedFiber = fiber;\n triggerUpdateOnFiber(typedFiber, myreactSharedExports.STATE_TYPE.__skippedSync__);\n};\n\nvar currentComponentFiber$1 = react.__my_react_internal__.currentComponentFiber, currentHookNodeIndex = react.__my_react_internal__.currentHookNodeIndex;\nvar resolveHookValue = function (hookNode) {\n if (hookNode) {\n switch (hookNode.type) {\n case myreactSharedExports.HOOK_TYPE.useState:\n case myreactSharedExports.HOOK_TYPE.useReducer:\n return [hookNode.result, hookNode._dispatch];\n case myreactSharedExports.HOOK_TYPE.useId:\n case myreactSharedExports.HOOK_TYPE.useRef:\n case myreactSharedExports.HOOK_TYPE.useMemo:\n case myreactSharedExports.HOOK_TYPE.useContext:\n case myreactSharedExports.HOOK_TYPE.useCallback:\n case myreactSharedExports.HOOK_TYPE.useTransition:\n case myreactSharedExports.HOOK_TYPE.useDeferredValue:\n case myreactSharedExports.HOOK_TYPE.useSyncExternalStore:\n return hookNode.result;\n case myreactSharedExports.HOOK_TYPE.useSignal:\n return [hookNode.result.getValue, hookNode.result.setValue];\n }\n }\n};\nvar processHookNode = function (_a) {\n var type = _a.type, reducer = _a.reducer, value = _a.value, deps = _a.deps;\n var fiber = currentComponentFiber$1.current;\n var renderDispatch = currentRenderDispatch.current;\n if (!fiber)\n throw new Error(\"[@my-react/react] can not use hook outside of component\");\n if (!renderDispatch)\n throw new Error(\"[@my-react/react] internal error, can not get 'renderDispatch' for current render\");\n fiber.hookList = fiber.hookList || new myreactSharedExports.ListTree();\n var currentHook = null;\n // initial\n if (myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__create__) && !myreactSharedExports.include(fiber.state, myreactSharedExports.STATE_TYPE.__rerun__)) {\n currentHook = createHookNode({ type: type, reducer: reducer, value: value, deps: deps }, fiber);\n safeCall(function safeCallHookInitialListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.hookInitial) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(currentHook, fiber); });\n });\n }\n else {\n // update\n currentHook = updateHookNode({ type: type, reducer: reducer, value: value, deps: deps }, fiber, false);\n safeCall(function safeCallHookUpdateListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.hookUpdate) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(currentHook, fiber); });\n });\n }\n currentHookNodeIndex.current++;\n effectHookNode(fiber, currentHook);\n return resolveHookValue(currentHook);\n};\n\nvar currentRenderPlatform = react.__my_react_internal__.currentRenderPlatform;\nvar processLazy = function (_fiber) { return __awaiter(void 0, void 0, void 0, function () {\n var typedElementType, loadedPromise, loaded, render, e_1, renderPlatform;\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!myreactSharedExports.include(_fiber.type, exports.NODE_TYPE.__lazy__)) return [3 /*break*/, 5];\n typedElementType = _fiber.elementType;\n if (typedElementType._loaded)\n return [2 /*return*/];\n _b.label = 1;\n case 1:\n _b.trys.push([1, 3, 4, 5]);\n loadedPromise = typedElementType.loader();\n return [4 /*yield*/, loadedPromise];\n case 2:\n loaded = _b.sent();\n render = typeof loaded === \"object\" && (typeof (loaded === null || loaded === void 0 ? void 0 : loaded.default) === \"function\" || typeof (loaded === null || loaded === void 0 ? void 0 : loaded.default) === \"object\") ? loaded.default : loaded;\n typedElementType.render = render;\n _fiber.state = myreactSharedExports.STATE_TYPE.__create__;\n typedElementType._loaded = true;\n return [3 /*break*/, 5];\n case 3:\n e_1 = _b.sent();\n renderPlatform = currentRenderPlatform.current;\n (_a = renderPlatform.dispatchError) === null || _a === void 0 ? void 0 : _a.call(renderPlatform, { fiber: _fiber, error: e_1 });\n return [3 /*break*/, 5];\n case 4:\n typedElementType._loading = false;\n return [7 /*endfinally*/];\n case 5: return [2 /*return*/];\n }\n });\n}); };\n\nvar currentComponentFiber = react.__my_react_internal__.currentComponentFiber, currentRunningFiber = react.__my_react_internal__.currentRunningFiber, currentScopeFiber = react.__my_react_internal__.currentScopeFiber;\nreact.__my_react_shared__.enableDebugFiled;\nvar processState = function (_params) {\n var ownerFiber = getInstanceOwnerFiber(_params.trigger);\n var renderDispatch = getCurrentDispatchFromFiber(ownerFiber);\n if (renderDispatch === null || renderDispatch === void 0 ? void 0 : renderDispatch.enableUpdate) {\n safeCallWithCurrentFiber({\n fiber: ownerFiber,\n action: function safeCallFiberStateListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberState) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(ownerFiber, _params); });\n },\n });\n }\n _params.isImmediate = !currentScopeFiber.current || !!currentRunningFiber.current;\n _params.isRetrigger = !!currentComponentFiber.current;\n var isImmediate = _params.isImmediate;\n if (_params.type === myreactSharedExports.UpdateQueueType.component) {\n var ownerFiber_1 = getInstanceOwnerFiber(_params.trigger);\n if (!ownerFiber_1 || myreactSharedExports.include(ownerFiber_1.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n // if current dispatch is a server || noop\n if (!renderDispatch.enableUpdate)\n return;\n var trigger_1 = _params.trigger;\n safeCallWithCurrentFiber({\n fiber: ownerFiber_1,\n action: function safeCallInstanceStateListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.instanceState) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(trigger_1, ownerFiber_1, _params); });\n },\n });\n ownerFiber_1.updateQueue = ownerFiber_1.updateQueue || new myreactSharedExports.ListTree();\n ownerFiber_1.updateQueue.push(_params);\n prepareUpdateOnFiber(ownerFiber_1, renderDispatch, isImmediate);\n }\n else if (_params.type === myreactSharedExports.UpdateQueueType.hook) {\n var ownerFiber_2 = getInstanceOwnerFiber(_params.trigger);\n if (!ownerFiber_2 || myreactSharedExports.include(ownerFiber_2 === null || ownerFiber_2 === void 0 ? void 0 : ownerFiber_2.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n if (!renderDispatch.enableUpdate)\n return;\n var trigger_2 = _params.trigger;\n safeCallWithCurrentFiber({\n fiber: ownerFiber_2,\n action: function safeCallHookStateListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.hookState) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(trigger_2, ownerFiber_2, _params); });\n },\n });\n ownerFiber_2.updateQueue = ownerFiber_2.updateQueue || new myreactSharedExports.ListTree();\n ownerFiber_2.updateQueue.push(_params);\n prepareUpdateOnFiber(ownerFiber_2, renderDispatch, isImmediate);\n }\n else {\n var ownerFiber_3 = _params.trigger;\n if (!ownerFiber_3 || myreactSharedExports.include(ownerFiber_3.state, myreactSharedExports.STATE_TYPE.__unmount__))\n return;\n if (!renderDispatch.enableUpdate)\n return;\n ownerFiber_3.updateQueue = ownerFiber_3.updateQueue || new myreactSharedExports.ListTree();\n ownerFiber_3.updateQueue.push(_params);\n prepareUpdateOnFiber(ownerFiber_3, renderDispatch, isImmediate);\n }\n};\n\nvar mountLoop = function (fiber, renderDispatch) {\n renderDispatch.runtimeFiber.nextWorkingFiber = fiber;\n updateLoopSyncFromRoot(renderDispatch);\n};\n\nvar globalLoop = react.__my_react_internal__.globalLoop;\nreact.__my_react_shared__.enableScopeTreeLog;\nvar mount = function (fiber, renderDispatch) {\n globalLoop.current = true;\n mountLoop(fiber, renderDispatch);\n (function finishMount() {\n renderDispatch.reconcileCommit(fiber);\n var commitList = renderDispatch.pendingCommitFiberList;\n var changedList = renderDispatch.pendingChangedFiberList;\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.pendingCommitFiberList = null;\n renderDispatch.pendingChangedFiberList = null;\n (commitList === null || commitList === void 0 ? void 0 : commitList.length) && renderDispatch.reconcileUpdate(commitList);\n (changedList === null || changedList === void 0 ? void 0 : changedList.length) &&\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberHasChangeListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberHasChange) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(changedList); });\n },\n });\n })();\n globalLoop.current = false;\n};\nvar mountAsync = function (fiber, renderDispatch) { return __awaiter(void 0, void 0, void 0, function () {\n var loopCount, beforeLength, node, afterLength;\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n globalLoop.current = true;\n mountLoop(fiber, renderDispatch);\n loopCount = 0;\n _b.label = 1;\n case 1:\n if (!((_a = renderDispatch.pendingAsyncLoadFiberList) === null || _a === void 0 ? void 0 : _a.length)) return [3 /*break*/, 3];\n beforeLength = renderDispatch.pendingAsyncLoadFiberList.length;\n node = renderDispatch.pendingAsyncLoadFiberList.shift();\n return [4 /*yield*/, processLazy(node)];\n case 2:\n _b.sent();\n mountLoop(node, renderDispatch);\n afterLength = renderDispatch.pendingAsyncLoadFiberList.length;\n if (beforeLength === afterLength) {\n loopCount++;\n if (loopCount > 5) {\n throw new Error(\"lazy() load loop count is too much\");\n }\n }\n return [3 /*break*/, 1];\n case 3:\n (function finishMount() {\n renderDispatch.reconcileCommit(fiber);\n var commitList = renderDispatch.pendingCommitFiberList;\n var changedList = renderDispatch.pendingChangedFiberList;\n renderDispatch.resetUpdateFlowRuntimeFiber();\n renderDispatch.pendingCommitFiberList = null;\n renderDispatch.pendingChangedFiberList = null;\n (commitList === null || commitList === void 0 ? void 0 : commitList.length) && renderDispatch.reconcileUpdate(commitList);\n (changedList === null || changedList === void 0 ? void 0 : changedList.length) &&\n safeCallWithCurrentFiber({\n fiber: fiber,\n action: function safeCallFiberHasChangeListener() {\n var _a, _b;\n (_b = (_a = listenerMap.get(renderDispatch)) === null || _a === void 0 ? void 0 : _a.fiberHasChange) === null || _b === void 0 ? void 0 : _b.forEach(function (cb) { return cb(changedList); });\n },\n });\n })();\n globalLoop.current = false;\n return [2 /*return*/];\n }\n });\n}); };\n\nvar CustomRenderPlatform = /** @class */ (function () {\n function CustomRenderPlatform() {\n this.dispatchSet = new myreactSharedExports.UniqueArray();\n }\n CustomRenderPlatform.prototype.microTask = function (_task) {\n };\n CustomRenderPlatform.prototype.macroTask = function (_task) {\n };\n CustomRenderPlatform.prototype.yieldTask = function (_task) {\n return void 0;\n };\n CustomRenderPlatform.prototype.getFiberTree = function (_fiber) {\n return getFiberTree(_fiber);\n };\n CustomRenderPlatform.prototype.getHookTree = function (_treeHookNode, _errorType) {\n return getHookTree(_treeHookNode, _errorType);\n };\n CustomRenderPlatform.prototype.dispatchHook = function (_params) {\n return void 0;\n };\n CustomRenderPlatform.prototype.dispatchState = function (_params) {\n };\n CustomRenderPlatform.prototype.dispatchError = function (_params) {\n return void 0;\n };\n CustomRenderPlatform.prototype.dispatchPromise = function (_params) {\n return void 0;\n };\n return CustomRenderPlatform;\n}());\n\nvar WrapperByScope = function (children) {\n return react.createElement(myreactSharedExports.Scope, null, react.createElement(myreactSharedExports.Comment, { mode: \"s\" }), children, react.createElement(myreactSharedExports.Comment, { mode: \"e\" }));\n};\nvar isCommentElement = function (fiber) { return myreactSharedExports.include(fiber.type, exports.NODE_TYPE.__comment__); };\nvar isCommentStartElement = function (fiber) {\n if (isCommentElement(fiber)) {\n return fiber.pendingProps[\"mode\"] === \"s\";\n }\n return false;\n};\nvar isCommentEndElement = function (fiber) {\n if (isCommentElement(fiber)) {\n return fiber.pendingProps[\"mode\"] === \"e\";\n }\n return false;\n};\n\nvar version = \"0.3.4\";\n\nexports.CustomRenderDispatch = CustomRenderDispatch;\nexports.CustomRenderPlatform = CustomRenderPlatform;\nexports.MyReactFiberNode = MyReactFiberNode;\nexports.MyReactHookNode = MyReactHookNode;\nexports.MyWeakMap = MyWeakMap;\nexports.WrapperByScope = WrapperByScope;\nexports.afterSyncFlush = afterSyncFlush;\nexports.afterSyncUpdate = afterSyncUpdate;\nexports.beforeSyncFlush = beforeSyncFlush;\nexports.beforeSyncUpdate = beforeSyncUpdate;\nexports.callWithFiber = callWithFiber;\nexports.checkIsSameType = checkIsSameType;\nexports.classComponentActive = classComponentActive;\nexports.classComponentMount = classComponentMount;\nexports.classComponentUnmount = classComponentUnmount;\nexports.classComponentUpdate = classComponentUpdate;\nexports.clearContainer = clearContainer;\nexports.createFiberNode = createFiberNode;\nexports.createHookNode = createHookNode;\nexports.currentCallingFiber = currentCallingFiber;\nexports.currentRefreshHandler = currentRefreshHandler;\nexports.currentRenderDispatch = currentRenderDispatch;\nexports.currentTriggerFiber = currentTriggerFiber;\nexports.debugWithNode = debugWithNode;\nexports.defaultDispatchMount = defaultDispatchMount;\nexports.defaultDispatchMountLatest = defaultDispatchMountLatest;\nexports.defaultDispatchMountLegacy = defaultDispatchMountLegacy;\nexports.defaultDispatchUnmount = defaultDispatchUnmount;\nexports.defaultDispatchUpdate = defaultDispatchUpdate;\nexports.defaultGenerateContextMap = defaultGenerateContextMap;\nexports.defaultGenerateEffectMap = defaultGenerateEffectMap;\nexports.defaultGenerateErrorBoundariesMap = defaultGenerateErrorBoundariesMap;\nexports.defaultGenerateScopeMap = defaultGenerateScopeMap;\nexports.defaultGenerateStrict = defaultGenerateStrict;\nexports.defaultGenerateStrictMap = defaultGenerateStrictMap;\nexports.defaultGenerateSuspenseMap = defaultGenerateSuspenseMap;\nexports.defaultGenerateUnmountMap = defaultGenerateUnmountMap;\nexports.defaultGetContextFiber = defaultGetContextFiber;\nexports.defaultGetContextValue = defaultGetContextValue;\nexports.defaultResolveErrorBoundaries = defaultResolveErrorBoundaries;\nexports.defaultResolveScope = defaultResolveScope;\nexports.defaultResolveSuspense = defaultResolveSuspense;\nexports.deleteEffect = deleteEffect;\nexports.devError = devError;\nexports.devErrorWithFiber = devErrorWithFiber;\nexports.devWarn = devWarn;\nexports.devWarnWithFiber = devWarnWithFiber;\nexports.effect = effect;\nexports.effectHookNode = effectHookNode;\nexports.emptyProps = emptyProps;\nexports.enableFiberForLog = enableFiberForLog;\nexports.enableLogForCurrentFlowIsRunning = enableLogForCurrentFlowIsRunning;\nexports.fiberToDispatchMap = fiberToDispatchMap;\nexports.generateFiberToMountList = generateFiberToMountList;\nexports.generateFiberToUnmountList = generateFiberToUnmountList;\nexports.getCurrentDispatchFromFiber = getCurrentDispatchFromFiber;\nexports.getCurrentDispatchFromType = getCurrentDispatchFromType;\nexports.getCurrentFibersFromType = getCurrentFibersFromType;\nexports.getCurrentTypeFromRefresh = getCurrentTypeFromRefresh;\nexports.getCurrentTypeFromRefreshOnly = getCurrentTypeFromRefreshOnly;\nexports.getElementFromRefreshIfExist = getElementFromRefreshIfExist;\nexports.getElementName = getElementName;\nexports.getElementTypeFromType = getElementTypeFromType;\nexports.getFiberTree = getFiberTree;\nexports.getFiberTreeWithFiber = getFiberTreeWithFiber;\nexports.getHookTree = getHookTree;\nexports.getInstanceContextFiber = getInstanceContextFiber;\nexports.getInstanceEffectState = getInstanceEffectState;\nexports.getInstanceOwnerFiber = getInstanceOwnerFiber;\nexports.getPlainFiberName = getPlainFiberName;\nexports.getStack = getStack;\nexports.getStackTree = getStackTree;\nexports.getTypeFromElement = getTypeFromElement;\nexports.getTypeFromElementNode = getTypeFromElementNode;\nexports.hmr = hmr;\nexports.hookListUnmount = hookListUnmount;\nexports.initHMR = initHMR;\nexports.initInstance = initInstance;\nexports.initialFiberNode = initialFiberNode;\nexports.insertionEffect = insertionEffect;\nexports.instanceMap = instanceMap;\nexports.isCommentElement = isCommentElement;\nexports.isCommentEndElement = isCommentEndElement;\nexports.isCommentStartElement = isCommentStartElement;\nexports.isErrorBoundariesComponent = isErrorBoundariesComponent;\nexports.isErrorBoundariesInstance = isErrorBoundariesInstance;\nexports.layoutEffect = layoutEffect;\nexports.listenerMap = listenerMap;\nexports.mount = mount;\nexports.mountAsync = mountAsync;\nexports.mountLoop = mountLoop;\nexports.nextWorkClassComponent = nextWorkClassComponent;\nexports.nextWorkCommon = nextWorkCommon;\nexports.nextWorkComponent = nextWorkComponent;\nexports.nextWorkConsumer = nextWorkConsumer;\nexports.nextWorkFunctionComponent = nextWorkFunctionComponent;\nexports.nextWorkLazy = nextWorkLazy;\nexports.nextWorkNormal = nextWorkNormal;\nexports.onceErrorWithKeyAndFiber = onceErrorWithKeyAndFiber;\nexports.onceWarnWithKeyAndFiber = onceWarnWithKeyAndFiber;\nexports.originalError = originalError;\nexports.originalWarn = originalWarn;\nexports.performToNextFiberFromRoot = performToNextFiberFromRoot;\nexports.performToNextFiberFromTrigger = performToNextFiberFromTrigger;\nexports.prepareUpdateAllDependence = prepareUpdateAllDependence;\nexports.prepareUpdateAllDependenceFromProvider = prepareUpdateAllDependenceFromProvider;\nexports.prepareUpdateAllDependenceFromRoot = prepareUpdateAllDependenceFromRoot;\nexports.prepareUpdateOnFiber = prepareUpdateOnFiber;\nexports.processClassComponentUpdateQueue = processClassComponentUpdateQueue;\nexports.processFunctionComponentUpdateQueue = processFunctionComponentUpdateQueue;\nexports.processHookNode = processHookNode;\nexports.processLazy = processLazy;\nexports.processLazyComponentUpdate = processLazyComponentUpdate;\nexports.processState = processState;\nexports.resetLogScope = resetLogScope;\nexports.runtimeNextWork = runtimeNextWork;\nexports.runtimeNextWorkDev = runtimeNextWorkDev;\nexports.safeCall = safeCall;\nexports.safeCallWithCurrentFiber = safeCallWithCurrentFiber;\nexports.safeCallWithSync = safeCallWithSync;\nexports.scheduleNext = scheduleNext;\nexports.setContextForInstance = setContextForInstance;\nexports.setEffectForInstance = setEffectForInstance;\nexports.setImmediateNextFiber = setImmediateNextFiber;\nexports.setLogScope = setLogScope;\nexports.setOwnerForInstance = setOwnerForInstance;\nexports.setRefreshHandler = setRefreshHandler;\nexports.setRefreshTypeMap = setRefreshTypeMap;\nexports.syncComponentStateToFiber = syncComponentStateToFiber;\nexports.syncFiberStateToComponent = syncFiberStateToComponent;\nexports.syncFlushComponentQueue = syncFlushComponentQueue;\nexports.transformChildrenFiber = transformChildrenFiber;\nexports.triggerError = triggerError;\nexports.triggerFiberUpdateListener = triggerFiberUpdateListener;\nexports.triggerRevert = triggerRevert;\nexports.triggerUnmount = triggerUnmount;\nexports.triggerUpdate = triggerUpdate;\nexports.triggerUpdateOnFiber = triggerUpdateOnFiber;\nexports.typeToFibersMap = typeToFibersMap;\nexports.unmountContainer = unmountContainer;\nexports.unmountFiber = unmountFiber;\nexports.unmountFiberNode = unmountFiberNode;\nexports.unmountInstance = unmountInstance;\nexports.unmountList = unmountList;\nexports.unmountPending = unmountPending;\nexports.updateConcurrentFromRoot = updateConcurrentFromRoot;\nexports.updateConcurrentFromTrigger = updateConcurrentFromTrigger;\nexports.updateFiberNode = updateFiberNode;\nexports.updateHookNode = updateHookNode;\nexports.updateLoopConcurrentFromRoot = updateLoopConcurrentFromRoot;\nexports.updateLoopConcurrentFromTrigger = updateLoopConcurrentFromTrigger;\nexports.updateLoopSyncFromRoot = updateLoopSyncFromRoot;\nexports.updateLoopSyncFromTrigger = updateLoopSyncFromTrigger;\nexports.updateSyncFromRoot = updateSyncFromRoot;\nexports.updateSyncFromTrigger = updateSyncFromTrigger;\nexports.version = version;\n//# sourceMappingURL=index.production.js.map\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","'use strict';\n\nvar merge = function (src, rest) {\n return src | rest;\n};\nvar remove = function (src, rest) {\n if (src & rest) {\n return src ^ rest;\n }\n else {\n return src;\n }\n};\nvar include = function (src, rest) {\n return src & rest;\n};\nvar exclude = function (src, rest) {\n return !(src & rest);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\n\r\nfunction __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar once = function (action) {\n var called = false;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (called)\n return;\n called = true;\n if (typeof action === \"function\")\n action.call.apply(action, __spreadArray([null], args, false));\n };\n};\n\nvar TYPEKEY = \"$$typeof\";\nvar Element = Symbol.for(\"react.element\");\nvar Memo = Symbol.for(\"react.memo\");\nvar ForwardRef = Symbol.for(\"react.forward_ref\");\nvar Portal = Symbol.for(\"react.portal\");\nvar Fragment = Symbol.for(\"react.fragment\");\nvar Context = Symbol.for(\"react.context\");\nvar Provider = Symbol.for(\"react.provider\");\nvar Consumer = Symbol.for(\"react.consumer\");\nvar Lazy = Symbol.for(\"react.lazy\");\nvar Suspense = Symbol.for(\"react.suspense\");\nvar Strict = Symbol.for(\"react.strict_mode\");\n// TODO\nvar KeepLive = Symbol.for(\"react.keep_live\");\nvar Scope = Symbol.for(\"react.scope\");\nvar Comment = Symbol.for(\"react.comment\");\nvar Offscreen = Symbol.for(\"react.offscreen\");\nvar Profiler = Symbol.for(\"react.profiler\");\n\nfunction isObject(target) {\n return typeof target === \"object\" && target !== null;\n}\nfunction isFunction(target) {\n return typeof target === \"function\";\n}\nfunction isArray(target) {\n return Array.isArray(target);\n}\nfunction isSymbol(target) {\n return typeof target === \"symbol\";\n}\nfunction isString(target) {\n return typeof target === \"string\";\n}\nfunction isInteger(target) {\n return Number.isInteger(Number(target));\n}\nfunction isNumber(target) {\n return typeof target === \"number\";\n}\nfunction isCollection(target) {\n return target instanceof Map || target instanceof Set || target instanceof WeakMap || target instanceof WeakSet;\n}\nvar isPromise = function (val) {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\n\nvar UniqueArray = /** @class */ (function () {\n function UniqueArray() {\n this.set = new Set();\n this.arr = new Array();\n this.length = 0;\n }\n UniqueArray.prototype.uniPop = function () {\n var v = this.arr.pop();\n this.set.delete(v);\n this.length--;\n return v;\n };\n UniqueArray.prototype.uniPush = function (v) {\n if (this.set.has(v))\n return 0;\n this.set.add(v);\n this.arr.push(v);\n this.length++;\n };\n UniqueArray.prototype.uniShift = function () {\n var v = this.arr.shift();\n this.set.delete(v);\n this.length--;\n return v;\n };\n UniqueArray.prototype.uniUnshift = function (v) {\n if (this.set.has(v))\n return 0;\n this.set.add(v);\n this.arr.unshift(v);\n this.length++;\n };\n UniqueArray.prototype.uniDelete = function (v) {\n if (this.set.has(v)) {\n this.set.delete(v);\n this.arr = this.arr.filter(function (i) { return i !== v; });\n this.length--;\n }\n };\n UniqueArray.prototype.clear = function () {\n this.length = 0;\n this.set.clear();\n this.arr.length = 0;\n };\n UniqueArray.prototype.getAll = function () {\n return this.arr;\n };\n return UniqueArray;\n}());\n\nexports.HOOK_TYPE = void 0;\n(function (HOOK_TYPE) {\n HOOK_TYPE[HOOK_TYPE[\"useId\"] = 0] = \"useId\";\n HOOK_TYPE[HOOK_TYPE[\"useRef\"] = 1] = \"useRef\";\n HOOK_TYPE[HOOK_TYPE[\"useMemo\"] = 2] = \"useMemo\";\n HOOK_TYPE[HOOK_TYPE[\"useState\"] = 3] = \"useState\";\n HOOK_TYPE[HOOK_TYPE[\"useSignal\"] = 4] = \"useSignal\";\n HOOK_TYPE[HOOK_TYPE[\"useEffect\"] = 5] = \"useEffect\";\n HOOK_TYPE[HOOK_TYPE[\"useContext\"] = 6] = \"useContext\";\n HOOK_TYPE[HOOK_TYPE[\"useReducer\"] = 7] = \"useReducer\";\n HOOK_TYPE[HOOK_TYPE[\"useCallback\"] = 8] = \"useCallback\";\n HOOK_TYPE[HOOK_TYPE[\"useTransition\"] = 9] = \"useTransition\";\n HOOK_TYPE[HOOK_TYPE[\"useDebugValue\"] = 10] = \"useDebugValue\";\n HOOK_TYPE[HOOK_TYPE[\"useLayoutEffect\"] = 11] = \"useLayoutEffect\";\n HOOK_TYPE[HOOK_TYPE[\"useDeferredValue\"] = 12] = \"useDeferredValue\";\n HOOK_TYPE[HOOK_TYPE[\"useInsertionEffect\"] = 13] = \"useInsertionEffect\";\n HOOK_TYPE[HOOK_TYPE[\"useImperativeHandle\"] = 14] = \"useImperativeHandle\";\n HOOK_TYPE[HOOK_TYPE[\"useSyncExternalStore\"] = 15] = \"useSyncExternalStore\";\n})(exports.HOOK_TYPE || (exports.HOOK_TYPE = {}));\n\nexports.UpdateQueueType = void 0;\n(function (UpdateQueueType) {\n UpdateQueueType[UpdateQueueType[\"hook\"] = 2] = \"hook\";\n UpdateQueueType[UpdateQueueType[\"component\"] = 1] = \"component\";\n UpdateQueueType[UpdateQueueType[\"lazy\"] = 3] = \"lazy\";\n UpdateQueueType[UpdateQueueType[\"context\"] = 4] = \"context\";\n})(exports.UpdateQueueType || (exports.UpdateQueueType = {}));\n\nexports.STATE_TYPE = void 0;\n(function (STATE_TYPE) {\n STATE_TYPE[STATE_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n STATE_TYPE[STATE_TYPE[\"__create__\"] = 1] = \"__create__\";\n STATE_TYPE[STATE_TYPE[\"__stable__\"] = 2] = \"__stable__\";\n STATE_TYPE[STATE_TYPE[\"__skippedConcurrent__\"] = 4] = \"__skippedConcurrent__\";\n STATE_TYPE[STATE_TYPE[\"__skippedSync__\"] = 8] = \"__skippedSync__\";\n STATE_TYPE[STATE_TYPE[\"__inherit__\"] = 16] = \"__inherit__\";\n STATE_TYPE[STATE_TYPE[\"__triggerConcurrent__\"] = 32] = \"__triggerConcurrent__\";\n STATE_TYPE[STATE_TYPE[\"__triggerConcurrentForce__\"] = 64] = \"__triggerConcurrentForce__\";\n STATE_TYPE[STATE_TYPE[\"__triggerSync__\"] = 128] = \"__triggerSync__\";\n STATE_TYPE[STATE_TYPE[\"__triggerSyncForce__\"] = 256] = \"__triggerSyncForce__\";\n STATE_TYPE[STATE_TYPE[\"__unmount__\"] = 512] = \"__unmount__\";\n STATE_TYPE[STATE_TYPE[\"__hmr__\"] = 1024] = \"__hmr__\";\n STATE_TYPE[STATE_TYPE[\"__retrigger__\"] = 2048] = \"__retrigger__\";\n STATE_TYPE[STATE_TYPE[\"__rerun__\"] = 4096] = \"__rerun__\";\n})(exports.STATE_TYPE || (exports.STATE_TYPE = {}));\n\nexports.PATCH_TYPE = void 0;\n(function (PATCH_TYPE) {\n PATCH_TYPE[PATCH_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n PATCH_TYPE[PATCH_TYPE[\"__create__\"] = 1] = \"__create__\";\n PATCH_TYPE[PATCH_TYPE[\"__update__\"] = 2] = \"__update__\";\n PATCH_TYPE[PATCH_TYPE[\"__append__\"] = 4] = \"__append__\";\n PATCH_TYPE[PATCH_TYPE[\"__position__\"] = 8] = \"__position__\";\n PATCH_TYPE[PATCH_TYPE[\"__effect__\"] = 16] = \"__effect__\";\n PATCH_TYPE[PATCH_TYPE[\"__layoutEffect__\"] = 32] = \"__layoutEffect__\";\n PATCH_TYPE[PATCH_TYPE[\"__insertionEffect__\"] = 64] = \"__insertionEffect__\";\n PATCH_TYPE[PATCH_TYPE[\"__unmount__\"] = 128] = \"__unmount__\";\n PATCH_TYPE[PATCH_TYPE[\"__ref__\"] = 256] = \"__ref__\";\n})(exports.PATCH_TYPE || (exports.PATCH_TYPE = {}));\n\nexports.Effect_TYPE = void 0;\n(function (Effect_TYPE) {\n Effect_TYPE[Effect_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n Effect_TYPE[Effect_TYPE[\"__effect__\"] = 1] = \"__effect__\";\n Effect_TYPE[Effect_TYPE[\"__unmount__\"] = 2] = \"__unmount__\";\n})(exports.Effect_TYPE || (exports.Effect_TYPE = {}));\n\nvar compareVersion = function (version1, version2) {\n var compare = function (arr1, arr2) {\n if (arr1.length && arr2.length) {\n var v1 = arr1[0];\n var v2 = arr2[0];\n if (v1 > v2)\n return true;\n if (v2 > v1)\n return false;\n return compare(arr1.slice(1), arr2.slice(1));\n }\n if (arr1.length)\n return true;\n if (arr2.length)\n return false;\n return true;\n };\n return compare(version1.split(\".\").map(Number), version2.split(\".\").map(Number));\n};\n\nvar isNormalEquals = function (src, target, isSkipKey) {\n var isEquals = Object.is(src, target);\n if (isEquals)\n return true;\n var hasSkipKeyFunction = typeof isSkipKey === \"function\";\n if (typeof src === \"object\" && typeof target === \"object\" && src !== null && target !== null) {\n var srcKeys = Object.keys(src);\n var targetKeys = Object.keys(target);\n if (srcKeys.length !== targetKeys.length)\n return false;\n var res = true;\n if (hasSkipKeyFunction) {\n for (var _i = 0, srcKeys_1 = srcKeys; _i < srcKeys_1.length; _i++) {\n var key = srcKeys_1[_i];\n if (isSkipKey(key) && key in target) {\n continue;\n }\n else {\n res = res && Object.is(src[key], target[key]);\n }\n if (!res)\n return res;\n }\n }\n else {\n for (var _a = 0, srcKeys_2 = srcKeys; _a < srcKeys_2.length; _a++) {\n var key = srcKeys_2[_a];\n res = res && Object.is(src[key], target[key]);\n if (!res)\n return res;\n }\n }\n return res;\n }\n return false;\n};\nvar isArrayEquals = function (src, target) {\n var isEquals = Object.is(src, target);\n if (isEquals)\n return true;\n if (Array.isArray(src) && Array.isArray(target) && src.length === target.length) {\n var re = true;\n for (var key in src) {\n re = re && Object.is(src[key], target[key]);\n if (!re)\n return re;\n }\n return re;\n }\n return false;\n};\n\nvar ListTreeNode = /** @class */ (function () {\n function ListTreeNode(value) {\n this.prev = null;\n this.next = null;\n this.value = value;\n }\n return ListTreeNode;\n}());\nvar ListTree = /** @class */ (function () {\n function ListTree() {\n this.length = 0;\n var _stickyHead = null;\n Object.defineProperty(this, \"stickyHead\", {\n get: function () {\n return _stickyHead;\n },\n set: function (v) {\n _stickyHead = v;\n },\n });\n var _stickyFoot = null;\n Object.defineProperty(this, \"stickyFoot\", {\n get: function () {\n return _stickyFoot;\n },\n set: function (v) {\n _stickyFoot = v;\n },\n });\n var _head = null;\n Object.defineProperty(this, \"head\", {\n get: function () {\n return _head;\n },\n set: function (v) {\n _head = v;\n },\n });\n var _foot = null;\n Object.defineProperty(this, \"foot\", {\n get: function () {\n return _foot;\n },\n set: function (v) {\n _foot = v;\n },\n });\n }\n ListTree.prototype.push = function (node) {\n var listNode = new ListTreeNode(node);\n this.length++;\n if (!this.foot) {\n this.head = listNode;\n this.foot = listNode;\n }\n else {\n this.foot.next = listNode;\n listNode.prev = this.foot;\n this.foot = listNode;\n }\n };\n ListTree.prototype.pushToLast = function (node) {\n if (this.stickyFoot) {\n var node_1 = this.stickyFoot;\n this.push(node_1.value);\n this.stickyFoot = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyFoot = listNode;\n this.length++;\n };\n ListTree.prototype.pushToHead = function (node) {\n if (this.stickyHead) {\n var node_2 = this.stickyHead;\n this.unshift(node_2.value);\n this.stickyHead = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyHead = listNode;\n this.length++;\n };\n ListTree.prototype.pop = function () {\n var foot = this.stickyFoot || this.foot;\n if (foot) {\n this.delete(foot);\n return foot.value;\n }\n else {\n return null;\n }\n };\n ListTree.prototype.unshift = function (node) {\n var listNode = new ListTreeNode(node);\n this.length++;\n if (!this.head) {\n this.head = listNode;\n this.foot = listNode;\n }\n else {\n this.head.prev = listNode;\n listNode.next = this.head;\n this.head = listNode;\n }\n };\n ListTree.prototype.unshiftToHead = function (node) {\n if (this.stickyHead) {\n var node_3 = this.stickyHead;\n this.unshift(node_3.value);\n this.stickyHead = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyHead = listNode;\n };\n ListTree.prototype.unshiftToFoot = function (node) {\n if (this.stickyFoot) {\n var node_4 = this.stickyFoot;\n this.push(node_4.value);\n this.stickyFoot = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyFoot = listNode;\n };\n ListTree.prototype.shift = function () {\n var head = this.stickyHead || this.head;\n if (head) {\n this.delete(head);\n return head.value;\n }\n else {\n return null;\n }\n };\n ListTree.prototype.pickHead = function () {\n var _a, _b;\n return ((_a = this.stickyHead) === null || _a === void 0 ? void 0 : _a.value) || ((_b = this.head) === null || _b === void 0 ? void 0 : _b.value);\n };\n ListTree.prototype.pickFoot = function () {\n var _a, _b;\n return ((_a = this.stickyFoot) === null || _a === void 0 ? void 0 : _a.value) || ((_b = this.foot) === null || _b === void 0 ? void 0 : _b.value);\n };\n ListTree.prototype.listToFoot = function (action) {\n if (this.stickyHead) {\n action(this.stickyHead.value);\n }\n var node = this.head;\n while (node) {\n action(node.value);\n node = node.next;\n }\n if (this.stickyFoot) {\n action(this.stickyFoot.value);\n }\n };\n ListTree.prototype.listToHead = function (action) {\n if (this.stickyFoot) {\n action(this.stickyFoot.value);\n }\n var node = this.foot;\n while (node) {\n action(node.value);\n node = node.prev;\n }\n if (this.stickyHead) {\n action(this.stickyHead.value);\n }\n };\n ListTree.prototype.toArray = function () {\n var re = [];\n this.listToFoot(function (v) { return re.push(v); });\n return re;\n };\n ListTree.prototype.delete = function (node) {\n if (this.stickyHead === node) {\n this.stickyHead = null;\n this.length--;\n }\n else if (this.stickyFoot === node) {\n this.stickyFoot = null;\n this.length--;\n }\n else if (this.head === node) {\n var next = node.next;\n node.next = null;\n if (next) {\n this.head = next;\n next.prev = null;\n }\n else {\n this.head = null;\n this.foot = null;\n }\n this.length--;\n }\n else if (this.foot === node) {\n var prev = node.prev;\n node.prev = null;\n if (prev) {\n this.foot = prev;\n prev.next = null;\n }\n else {\n this.head = null;\n this.foot = null;\n }\n this.length--;\n }\n else if (this.hasNode(node)) {\n var prev = node.prev;\n var next = node.next;\n node.prev = null;\n node.next = null;\n prev.next = next;\n next.prev = prev;\n this.length--;\n }\n };\n ListTree.prototype.size = function () {\n return this.length;\n };\n ListTree.prototype.hasNode = function (node) {\n if (this.stickyHead && Object.is(this.stickyHead, node))\n return true;\n if (this.stickyFoot && Object.is(this.stickyFoot, node))\n return true;\n var listNode = this.head;\n while (listNode) {\n if (Object.is(listNode, node))\n return true;\n listNode = listNode.next;\n }\n return false;\n };\n ListTree.prototype.hasValue = function (node) {\n if (this.stickyHead && Object.is(this.stickyHead.value, node))\n return true;\n if (this.stickyFoot && Object.is(this.stickyFoot.value, node))\n return true;\n var listNode = this.head;\n while (listNode) {\n if (Object.is(listNode.value, node))\n return true;\n listNode = listNode.next;\n }\n return false;\n };\n ListTree.prototype.some = function (iterator) {\n var re = false;\n this.listToFoot(function (node) {\n re = re || iterator(node);\n });\n return re;\n };\n ListTree.prototype.every = function (iterator) {\n var re = true;\n this.listToFoot(function (node) {\n re = re && iterator(node);\n });\n return re;\n };\n ListTree.prototype.concat = function (list) {\n var newList = new ListTree();\n this.listToFoot(function (node) { return newList.push(node); });\n list.listToFoot(function (node) { return newList.push(node); });\n return newList;\n };\n ListTree.prototype.clone = function () {\n var newList = new ListTree();\n this.listToFoot(function (v) { return newList.push(v); });\n return newList;\n };\n ListTree.prototype.clear = function () {\n this.length = 0;\n this.head = null;\n this.foot = null;\n this.stickyHead = null;\n this.stickyFoot = null;\n };\n return ListTree;\n}());\n\nexports.Comment = Comment;\nexports.Consumer = Consumer;\nexports.Context = Context;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.KeepLive = KeepLive;\nexports.Lazy = Lazy;\nexports.ListTree = ListTree;\nexports.ListTreeNode = ListTreeNode;\nexports.Memo = Memo;\nexports.Offscreen = Offscreen;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.Provider = Provider;\nexports.Scope = Scope;\nexports.Strict = Strict;\nexports.Suspense = Suspense;\nexports.TYPEKEY = TYPEKEY;\nexports.UniqueArray = UniqueArray;\nexports.compareVersion = compareVersion;\nexports.exclude = exclude;\nexports.include = include;\nexports.isArray = isArray;\nexports.isArrayEquals = isArrayEquals;\nexports.isCollection = isCollection;\nexports.isFunction = isFunction;\nexports.isInteger = isInteger;\nexports.isNormalEquals = isNormalEquals;\nexports.isNumber = isNumber;\nexports.isObject = isObject;\nexports.isPromise = isPromise;\nexports.isString = isString;\nexports.isSymbol = isSymbol;\nexports.merge = merge;\nexports.once = once;\nexports.remove = remove;\n//# sourceMappingURL=index.production.js.map\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n",null,null,"\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","\"use strict\";\n\nmodule.exports = require(\"./dist/cjs/index.production\");\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","\"use strict\";\n\nmodule.exports = require(\"@my-react/react-jsx\");",null,null,null,null,null,"import { forwardRef, Box } from \"@chakra-ui/react\";\n\nimport type { BoxProps } from \"@chakra-ui/react\";\n\nexport const Card = forwardRef(({ children, ...boxProps }, ref) => {\n return (\n \n {children}\n \n );\n});\n\nCard.displayName = \"Card\";\n","export const cx = (...classNames: any[]) => {\n const allClassNames = classNames.filter(Boolean).filter((c) => typeof c === \"string\") as string[];\n const classNamesSet = allClassNames\n .map((c) => c.split(\" \"))\n .reduce>((p, c) => {\n c.forEach((_c) => p.add(_c));\n return p;\n }, new Set());\n return new Array(...classNamesSet).join(\" \");\n};\n","import { forwardRef, Flex, Divider, Box, useMergeRefs } from \"@chakra-ui/react\";\nimport { useRef, type RefObject } from \"react\";\nimport Draggable from \"react-draggable\";\nimport { Resizable } from \"react-resizable\";\n\nimport { DISABLE_DRAG_HANDLER_SELECTOR, DRAG_HANDLER_SELECTOR } from \"@client/config/gridLayout\";\nimport { useStaticDomSize } from \"@client/hooks\";\nimport { cx } from \"@client/utils/cx\";\n\nimport { Card } from \"../Card\";\n\nimport type { BoxProps } from \"@chakra-ui/react\";\n\nexport const GridCard = forwardRef; enableBlur?: boolean }, \"div\">(\n ({ children, className, enableBlur = true, contentProps, ...boxProps }, ref) => {\n return (\n \n \n \n \n \n \n {children}\n \n \n );\n }\n);\n\nGridCard.displayName = \"GridCard\";\n\nexport const ResizeAbleGridCard = forwardRef; enableBlur?: boolean }, \"div\">(\n ({ children, className, enableBlur = true, contentProps, ...boxProps }, ref: RefObject) => {\n const cardRef = useRef();\n\n const { size, setSize } = useStaticDomSize({ ref: cardRef });\n\n const fRef = useMergeRefs(ref, cardRef);\n\n const Ele = (\n \n \n \n \n \n \n {children}\n \n \n );\n\n if (size.width && size.height) {\n return (\n \n setSize((l) => ({ ...l, ...size }))}>\n {Ele}\n \n \n );\n } else {\n return Ele;\n }\n }\n);\n\nResizeAbleGridCard.displayName = \"ResizeAbleGridCard\";\n","export const CONTAINER_WIDTH = 1580;\n","export const GRID_ROW_HEIGHT = 10;\nexport const DRAG_HANDLER_SELECTOR = \"drag-able-item\";\nexport const DISABLE_DRAG_HANDLER_SELECTOR = \"ignore-drag-able-item\";\n","// eslint-disable-next-line @typescript-eslint/no-var-requires\nexport const allRoutes = __STREAM__ ? require(\"./routers.stream\").allRoutes : require(\"./routers.loadable\").allRoutes;\n","import { memo, forwardRef, useEffect, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\n\nimport style from \"./index.module.scss\";\n\nconst _Bar = forwardRef(function Bar(_, ref) {\n const [ele, setEle] = useState();\n\n useEffect(() => {\n const e = document.createElement(\"div\");\n\n e.id = \"__loading_bar__\";\n\n const content = document.body.querySelector(\"#__content__\") as HTMLDivElement;\n\n document.body.insertBefore(e, content);\n\n setEle(e);\n\n return () => {\n document.body.removeChild(e);\n };\n }, []);\n\n return ele ? createPortal(
, ele as Element) : null;\n});\n\n_Bar.displayName = \"_Bar\";\n\nexport const Bar = memo(_Bar);\n","// extracted by mini-css-extract-plugin\nexport default {\"loadingBar\":\"ITbAOd\"};","import { useLoading, useLoadingBar } from \"@client/hooks\";\n\nimport { Bar } from \"./LoadingBar\";\n\nimport type { LoadingBarWrapperType } from \"@client/types/common\";\n\nexport const LoadingBar: LoadingBarWrapperType = () => {\n const loading = useLoading((state) => state.loading);\n const { ref } = useLoadingBar({ loading });\n \n return ;\n};\n","import { createContext, useContext } from \"react\";\n\nimport { usePreLoad } from \"@client/hooks\";\nimport { preLoad } from \"@client/utils\";\n\nimport type { WrapperRouteType } from \"@client/types/common\";\n\nexport const LoadedLocationContext = createContext[\"loaded\"] | null>(null);\n\nexport const WrapperRoute: WrapperRouteType = ({ children, routes, LoadingBar }) => {\n const { loaded } = usePreLoad({ routes, preLoad });\n\n // for pure client render\n if (!loaded) return null;\n\n return (\n \n \n {children}\n \n );\n};\n\nexport const useLoadedLocation = () => useContext(LoadedLocationContext);\n","import { AnimatePresence, motion } from \"framer-motion\";\nimport { Fragment, Suspense } from \"react\";\nimport { useRoutes } from \"react-router\";\n\nimport { useIsMounted } from \"@client/hooks\";\nimport { getIsAnimateRouter } from \"@shared\";\n\nimport { allRoutes } from \"../router\";\n\nimport { useLoadedLocation } from \"./WrapperRoute\";\n\nexport const RenderMatch = () => {\n const loaded = useLoadedLocation();\n const all = useRoutes(allRoutes, loaded?.location);\n\n const isMounted = useIsMounted();\n\n return (\n <>\n {getIsAnimateRouter() ? (\n \n \n \n {all}\n \n \n \n ) : (\n {all}\n )}\n \n );\n};\n","import { ApolloProvider } from \"@apollo/client\";\nimport { useApollo } from \"@site/graphql\";\nimport { useLocation } from \"react-router\";\n\nimport { preLoadPropsKey } from \"@client/utils\";\nimport { useAppSelector } from \"@shared\";\n\nimport type { NormalizedCacheObject } from \"@apollo/client\";\nimport type { ReactNode } from \"react\";\n\nexport const WrapperApollo = ({ children }: { children: ReactNode }) => {\n const props = useAppSelector((state) => state.client.clientProps.data);\n\n const { pathname } = useLocation();\n\n const preLoadKey = preLoadPropsKey(pathname);\n\n const preLoadState = props[preLoadKey];\n\n const apolloState = preLoadState?.[\"$$__apollo__$$\"];\n\n const apolloClient = useApollo(apolloState as NormalizedCacheObject, true);\n\n return {children};\n};\n","import { Component } from \"react\";\n\nimport type { ErrorInfo, ReactNode, ReactElement } from \"react\";\n\nexport class WrapperErrorCatch extends Component & { children: ReactElement }, { error: string; stack: string; hasError: boolean }> {\n state = {\n stack: \"\",\n error: \"\",\n hasError: false,\n };\n\n static getDerivedStateFromError() {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error, info: ErrorInfo) {\n this.setState({\n error: error.message,\n stack: info.componentStack,\n });\n }\n\n render(): ReactNode {\n if (this.state.hasError)\n return (\n
\n          

{this.state.error}

\n {this.state.stack}\n
\n );\n return this.props.children;\n }\n}\n","import { chakra } from \"@chakra-ui/react\";\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { useIsMounted } from \"@client/hooks\";\n\nconst Iframe = chakra(\"iframe\");\n\nconst from = \"hook\";\n\nconst source = \"@my-react/devtool\";\n\n// const iframeSrc = \"http://localhost:3000\";\nconst iframeSrc = 'https://mrwangjusttodo.github.io/myreact-devtools/devTool';\n\nconst loadScript = (url: string) => {\n const script = document.createElement(\"script\");\n return new Promise((resolve, reject) => {\n script.src = url;\n script.onload = resolve;\n script.onerror = reject;\n document.body.appendChild(script);\n }).finally(() => script.remove());\n};\n\nexport const IframeDevTool = () => {\n const [loaded, setLoaded] = useState(false);\n\n const isMounted = useIsMounted();\n\n const ref = useRef();\n\n useEffect(() => {\n const initIframeDevTool = async (c: AbortController) => {\n const iframeContent = ref.current?.contentWindow;\n if (loaded && iframeContent) {\n if (!window[\"__MY_REACT_DEVTOOL_RUNTIME__\"] || typeof window[\"__MY_REACT_DEVTOOL_RUNTIME__\"] !== \"function\") {\n await loadScript(\"https://mrwangjusttodo.github.io/myreact-devtools/bundle/hook.js\");\n\n const allDispatch = window[\"__@my-react/dispatch__\"];\n\n allDispatch.forEach((d) => window.__MY_REACT_DEVTOOL_RUNTIME__?.(d));\n }\n window.addEventListener(\n \"message\",\n (e) => {\n if (e.source === window && e.data && e.data.source === source && e.data.from === from) {\n iframeContent?.postMessage?.(e.data, \"*\");\n }\n },\n { signal: c.signal }\n );\n }\n };\n if (loaded) {\n const control = new AbortController();\n\n initIframeDevTool(control);\n\n return () => {\n control.abort();\n\n window.postMessage({ source, from: \"iframe\", type: \"worker-close\" }, \"*\");\n };\n }\n }, [loaded]);\n\n if (!isMounted) return null;\n\n return \n \n \n \n \n );\n};\n","import { Code, Heading, Button, HStack, VStack } from \"@chakra-ui/react\";\nimport { createReactive, ref, onMounted, reactive, onUnmounted, watch, computed } from \"@my-react/react-reactive\";\nimport throttle from \"lodash/throttle\";\n\nexport const Reactive = __REACT__\n ? () =>
123
\n : createReactive({\n setup: () => {\n const countRef = ref(0);\n const changeRef = ref(0);\n const reactiveObj = reactive({ x: 0, y: 0 });\n const positionChange = throttle((e: MouseEvent) => ((reactiveObj.x = e.clientX), (reactiveObj.y = e.clientY)), 20);\n\n watch(\n () => reactiveObj.x,\n () => changeRef.value++\n );\n\n const reactiveObjXChangeCount = computed(() => \"position.x has changed:\" + changeRef.value + \" counts\");\n\n onMounted(() => {\n console.log(\"reactive mounted\");\n window.addEventListener(\"mousemove\", positionChange);\n });\n\n onUnmounted(() => {\n console.log(\"reactive unmount\");\n window.removeEventListener(\"mousemove\", positionChange);\n });\n\n const changeCount = (c: number) => (countRef.value = c);\n\n return { reactiveObj, countRef, changeCount, reactiveObjXChangeCount };\n },\n\n render: ({ reactiveObj, countRef, changeCount, reactiveObjXChangeCount }) => {\n const Element = (\n \n @my-react Reactive\n count\n \n {countRef}\n \n \n \n position\n \n position x: {reactiveObj.x}\n position y: {reactiveObj.y}\n \n {reactiveObjXChangeCount}\n \n );\n\n return Element;\n },\n }) as () => JSX.Element;\n","const isBrowser = typeof window !== \"undefined\";\n\nconst side = isBrowser ? \"client\" : \"server\";\n\nexport const log = (message: string | Error, lev: \"normal\" | \"warn\" | \"error\") => {\n if (lev === \"error\") {\n if (message instanceof Error) {\n console.log(`[${side}]`, `[error]`, message.stack);\n } else {\n console.log(`[${side}]`, `[error]`, message.toString());\n }\n } else if (lev === \"warn\") {\n console.log(`[${side}]`, `[warn]`, message.toString());\n } else {\n if (process.env.NODE_ENV === \"development\") {\n console.log(`[${side}]`, `[normal]`, message.toString());\n }\n }\n};\n","import dayjs from \"dayjs\";\nimport \"dayjs/locale/zh-cn\";\nimport calendarPlugin from \"dayjs/plugin/calendar\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\n\nimport { log } from \"./log\";\n\ndayjs.locale(\"zh-cn\");\ndayjs.extend(relativeTime);\ndayjs.extend(calendarPlugin);\n\nconst momentTo = (time: string | Date) => {\n if (typeof time === \"string\") {\n time = new Date(time);\n }\n if (time instanceof Date) {\n return dayjs(new Date()).to(dayjs(time));\n } else {\n log(`time parameter error : ${time}`, \"error\");\n return dayjs().toNow();\n }\n};\n\nexport { momentTo, dayjs };\n","import { Avatar, Box, Flex, forwardRef, Text } from \"@chakra-ui/react\";\n\nimport { momentTo } from \"@client/utils/time\";\n\nimport type { AvatarProps, FlexProps } from \"@chakra-ui/react\";\n\ninterface ActorProps extends FlexProps {\n avatarUrl: string;\n login?: string;\n time: string;\n avatarProps?: Omit;\n}\n\nexport const Actor = forwardRef(({ avatarUrl, login, time, avatarProps, children, ...resProps }, ref) => {\n return (\n \n \n \n \n \n {login}\n \n \n {momentTo(time)}\n \n \n \n {children}\n \n );\n});\n\nActor.displayName = \"Actor\";\n","import { Box, forwardRef } from \"@chakra-ui/react\";\n\nimport type { BoxProps } from \"@chakra-ui/react\";\n\nexport const Hover = forwardRef(({ children, transform, ...props }, ref) => {\n return (\n \n {children}\n \n );\n});\n\nHover.displayName = \"Hover\";\n","import { Text, Flex, Box, Icon, IconButton, Divider, Tooltip } from \"@chakra-ui/react\";\nimport { useMemo } from \"react\";\nimport { AiOutlineRight } from \"react-icons/ai\";\nimport { VscLinkExternal } from \"react-icons/vsc\";\nimport { useLocation, useNavigate } from \"react-router\";\n\nimport { markNOLineNumber } from \"@client/utils/markdown\";\nimport { noBase } from \"@shared\";\n\nimport { Actor } from \"../Actor\";\nimport { Hover } from \"../Hover\";\n\nimport type { GetBlogListQuery } from \"@site/graphql\";\n\nconst ItemHeader = ({ title, externalUrl, detailNumber }: { title: string; externalUrl: string; detailNumber: number }) => {\n const location = useLocation();\n const navigate = useNavigate();\n\n const openModal = () => {\n const search = new URLSearchParams(location.search);\n search.append(\"overlay\", \"open\");\n search.append(\"detailId\", detailNumber + \"\");\n navigate(`${noBase ? \"/Blog\" : `/${__BASENAME__}/Blog`}?${search.toString()}`);\n };\n\n const openExternal = () => window.open(externalUrl, \"_blank\");\n\n return (\n \n \n \n {title}\n \n \n \n } />\n \n \n } onClick={openExternal} />\n \n \n );\n};\n\nexport const Item = (props: GetBlogListQuery[\"repository\"][\"issues\"][\"nodes\"][0]) => {\n const { title, number, body, publishedAt, author, url } = props;\n const renderedBody = useMemo(() => markNOLineNumber.render(body), [body]);\n return (\n \n \n \n \n \n \n \n \n );\n};\n","import { SimpleGrid } from \"@chakra-ui/react\";\nimport { memo } from \"react\";\n\nimport { Card } from \"../Card\";\nimport { Game } from \"../Game\";\nimport { Reactive } from \"../Reactive\";\n\nimport { Item } from \"./Item\";\n\nimport type { GetBlogListQuery } from \"@site/graphql\";\n\nconst _BlogGrid = ({ data }: { data: GetBlogListQuery[\"repository\"][\"issues\"][\"nodes\"] }) => {\n return (\n \n \n \n \n \n \n \n {data.map((p, index) => (\n \n \n \n ))}\n \n );\n};\n\nexport const BlogGrid = memo(_BlogGrid);\n","import { useToast } from \"@chakra-ui/react\";\nimport React, { useEffect } from \"react\";\n\nimport type { ApolloError } from \"@apollo/client\";\n\nexport const ErrorCom = ({ error }: { error: ApolloError }) => {\n const open = useToast();\n\n useEffect(() => {\n open({\n title: \"Get Blog Error\",\n description: error.message,\n status: \"error\",\n });\n }, [error, open]);\n\n return ;\n};\n","export const BLOG_SOURCE = \"https://github.com/facebook/react/issues\";\nexport const BLOG_REPOSITORY = \"react\";\nexport const BLOG_REPOSITORY_OWNER = \"facebook\";\n","import { Box } from \"@chakra-ui/react\";\nimport { useMemo } from \"react\";\n\nimport { mark } from \"@client/utils/markdown\";\n\nimport { Actor } from \"../Actor\";\nimport { Card } from \"../Card\";\n\nimport type { GetSingleBlogQuery } from \"@site/graphql\";\n\nexport const Item = (props: GetSingleBlogQuery[\"repository\"][\"issue\"][\"comments\"][\"nodes\"][0]) => {\n const {\n body,\n author: { login, avatarUrl },\n updatedAt,\n } = props;\n const rendered = useMemo(() => mark.render(body), [body]);\n return (\n \n \n \n \n );\n};\n","import { Divider } from \"@chakra-ui/react\";\n\nimport { Item } from \"./Item\";\n\nimport type { GetSingleBlogQuery } from \"@site/graphql\";\n\nexport const Comment = ({ data }: { data: GetSingleBlogQuery[\"repository\"][\"issue\"][\"comments\"][\"nodes\"] }) => {\n return (\n <>\n {data.length > 0 && }\n {data.map((p) => (\n \n ))}\n \n );\n};\n","import { NetworkStatus, useApolloClient, useQuery } from \"@apollo/client\";\nimport { Box, Text, SkeletonText, SkeletonCircle, useCallbackRef, Icon, IconButton } from \"@chakra-ui/react\";\nimport { GetSingleBlogDocument } from \"@site/graphql\";\nimport { throttle } from \"lodash-es\";\nimport { useEffect, useMemo } from \"react\";\nimport { AiOutlineReload } from \"react-icons/ai\";\n\nimport { Actor } from \"@client/component/Actor\";\nimport { Card } from \"@client/component/Card\";\nimport { Comment } from \"@client/component/Comment\";\nimport { ErrorCom } from \"@client/component/Error\";\nimport { Hover } from \"@client/component/Hover\";\nimport { BLOG_REPOSITORY, BLOG_REPOSITORY_OWNER } from \"@client/config/source\";\nimport { mark } from \"@client/utils/markdown\";\n\nimport type { GetSingleBlogQuery } from \"@site/graphql\";\n\nconst COMMENT_LENGTH = 15;\n\nconst RenderWrapper = ({ data, Render }: { data: GetSingleBlogQuery; Render: ({ data }: { data: GetSingleBlogQuery }) => JSX.Element }) => {\n return Render({ data });\n};\n\nexport const DetailModal = ({\n id,\n Render,\n RenderLoading,\n}: {\n id: string;\n RenderLoading: JSX.Element;\n Render: ({ data }: { data: GetSingleBlogQuery }) => JSX.Element;\n}) => {\n const { data, loading, error, fetchMore, networkStatus } = useQuery(GetSingleBlogDocument, {\n variables: {\n name: BLOG_REPOSITORY,\n owner: BLOG_REPOSITORY_OWNER,\n number: Number(id),\n first: COMMENT_LENGTH,\n },\n skip: id === undefined,\n notifyOnNetworkStatusChange: true,\n });\n\n const fetchMoreCallback = useCallbackRef(() => {\n if (data?.repository?.issue?.comments?.pageInfo?.hasNextPage) {\n fetchMore({\n variables: { after: data.repository.issue.comments.pageInfo.endCursor },\n });\n }\n }, []);\n\n const onThrottleScroll = useMemo(\n () =>\n throttle((e: Event) => {\n const node = e.target as HTMLDivElement;\n if (node) {\n if (node.scrollTop + node.clientHeight >= node.scrollHeight * 0.85) {\n fetchMoreCallback();\n }\n }\n }, 500),\n [fetchMoreCallback]\n );\n\n useEffect(() => {\n const scrollElement = document.querySelector(\"#modal-scroll-box\") as HTMLDivElement;\n if (scrollElement) {\n scrollElement.addEventListener(\"scroll\", onThrottleScroll);\n return () => scrollElement.removeEventListener(\"scroll\", onThrottleScroll);\n }\n }, [onThrottleScroll]);\n\n if (loading && networkStatus !== NetworkStatus.fetchMore) return RenderLoading;\n\n if (error) return ;\n\n return ;\n};\n\nexport const DetailModalBody = ({ id }: { id: string }) => (\n \n \n \n }\n Render={({ data }) => {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const rendered = useMemo(() => mark.render(data?.repository?.issue?.body || \"\"), [data]);\n\n return (\n <>\n \n \n \n \n \n \n );\n }}\n />\n);\n\nexport const DetailModalHeader = ({ id }: { id: string }) => (\n \n \n \n \n \n }\n Render={({ data }) => {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const client = useApolloClient();\n\n const refetch = () =>\n client.refetchQueries({\n include: [GetSingleBlogDocument],\n });\n\n return (\n \n \n {data?.repository?.issue?.title}\n \n refetch()} icon={} />\n \n \n \n );\n }}\n />\n);\n","import React, { memo, useEffect, useMemo } from \"react\";\nimport { useLocation, useNavigate } from \"react-router\";\n\nimport { useOverlaysClose, useOverlaysOpen } from \"@client/hooks\";\nimport { noBase } from \"@shared\";\n\nimport { DetailModalBody, DetailModalHeader } from \"./DetailModal\";\n\nconst _BlogModal = () => {\n const navigate = useNavigate();\n const { search } = useLocation();\n const query = useMemo(() => new URLSearchParams(search || \"\"), [search]);\n const open = useOverlaysOpen();\n const close = useOverlaysClose();\n const blogId = query.get(\"detailId\");\n const isModalOpen = query.get(\"overlay\") === \"open\";\n\n useEffect(() => {\n if (isModalOpen && blogId !== undefined) {\n open({\n head: ,\n body: ,\n closeComplete: () =>\n setTimeout(() => {\n query.delete(\"detailId\");\n query.delete(\"overlay\");\n const string = query.toString();\n navigate(`${noBase ? \"/Blog\" : `/${__BASENAME__}/Blog`}${string ? \"?\" + string : \"\"}`);\n }),\n });\n } else {\n close();\n }\n }, [blogId, close, isModalOpen, navigate, open, query]);\n\n return ;\n};\n\nexport const BlogModal = memo(_BlogModal);\n","import { NetworkStatus, useQuery } from \"@apollo/client\";\nimport { Flex, Box, SimpleGrid, SkeletonCircle, SkeletonText, Portal, useCallbackRef, Center, Spinner, Button, ButtonGroup } from \"@chakra-ui/react\";\nimport { GetBlogListDocument, IssueOrderField, IssueState, OrderDirection } from \"@site/graphql\";\nimport { throttle } from \"lodash-es\";\nimport { memo, useMemo, useRef } from \"react\";\n\nimport { BlogGrid } from \"@client/component/BlogGrid\";\nimport { ErrorCom } from \"@client/component/Error\";\nimport { BLOG_REPOSITORY, BLOG_REPOSITORY_OWNER } from \"@client/config/source\";\nimport { useEffectOnce } from \"@client/hooks\";\n\nimport { BlogModal } from \"../BlogModal\";\n\nconst ITEM_PER_PAGE = 15;\n\nconst BlogListLoading = () => (\n \n {[1, 2, 3, 4, 5].map((i) => (\n \n \n \n \n ))}\n \n);\n\nexport const BASIC_VARIABLE = {\n name: __CLIENT__ ? localStorage.getItem(\"blog_name\") || BLOG_REPOSITORY : BLOG_REPOSITORY,\n owner: __CLIENT__ ? localStorage.getItem(\"blog_owner\") || BLOG_REPOSITORY_OWNER : BLOG_REPOSITORY_OWNER,\n orderBy: {\n field: IssueOrderField.CreatedAt,\n direction: OrderDirection.Desc,\n },\n};\n\nconst _BlogListWithInfinityScroll = () => {\n const ref = useRef();\n\n const { data, loading, error, fetchMore, refetch, networkStatus } = useQuery(GetBlogListDocument, {\n variables: {\n ...BASIC_VARIABLE,\n first: ITEM_PER_PAGE,\n states: IssueState.Open,\n },\n notifyOnNetworkStatusChange: true,\n });\n\n useEffectOnce(refetch);\n\n const fetchMoreCallback = useCallbackRef(() => {\n if (data?.repository?.issues?.pageInfo?.hasNextPage) {\n fetchMore({\n variables: { after: data.repository.issues.pageInfo.endCursor },\n });\n }\n }, []);\n\n const onThrottleScroll = useMemo(\n () =>\n throttle(() => {\n const node = ref.current;\n if (node) {\n if (node.scrollTop + node.clientHeight >= node.scrollHeight * 0.85) {\n fetchMoreCallback();\n }\n }\n }, 200),\n [fetchMoreCallback]\n );\n\n if (loading && networkStatus !== NetworkStatus.fetchMore) return ;\n\n if (error)\n return (\n <>\n \n \n \n \n \n \n \n );\n\n return (\n \n \n \n {loading && data.repository.issues.nodes.length && (\n
\n \n
\n )}\n
\n \n \n \n \n \n \n
\n );\n};\n\nexport const BlogGridWithInfinityScroll = memo(_BlogListWithInfinityScroll);\n","import { AspectRatio, Box, Image, Modal, ModalBody, ModalCloseButton, ModalContent, ModalOverlay, useDisclosure } from \"@chakra-ui/react\";\nimport GitHubCalendar from \"react-github-calendar\";\nimport usePinch from \"use-pinch-ref\";\n\nimport type { BoxProps } from \"@chakra-ui/react\";\n\nexport const Chart = (props: Omit) => {\n const { pinchRef, coverRef } = usePinch();\n\n const { isOpen, onOpen, onClose } = useDisclosure();\n\n return (\n \n \n \"chart\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { Tooltip, Box, Text, Flex, Avatar, Icon, VStack, StackDivider, useDisclosure } from \"@chakra-ui/react\";\nimport { AiOutlineMail, AiOutlineUser } from \"react-icons/ai\";\n\nimport { Hover } from \"../Hover\";\n\ntype FollowerProps = {\n id: string;\n name: string;\n email?: string;\n isFirst: boolean;\n bioHTML?: string;\n avatarUrl: string;\n};\n\nexport const Follower = ({ isFirst, name, email, avatarUrl, bioHTML }: FollowerProps) => {\n const { isOpen, onOpen, onClose } = useDisclosure();\n return (\n \n } alignItems=\"flex-start\" spacing=\"1\">\n \n \n \n {name}\n \n \n {email && (\n \n \n \n {email}\n \n \n )}\n {bioHTML && }\n \n }\n maxWidth={{ base: \"200px\", md: \"240px\" }}\n isOpen={isOpen}\n borderRadius=\"4\"\n placement=\"right\"\n boxShadow=\"md\"\n offset={[0, 8]}\n hasArrow\n >\n \n \n \n );\n};\n","import { memo } from \"react\";\n\nimport { Follower } from \"./Item\";\n\nimport type { GetViewerQuery } from \"@site/graphql\";\n\nconst _Followers = ({ data }: { data: GetViewerQuery[\"viewer\"][\"followers\"][\"nodes\"] }) => (\n <>\n {data.map(({ login, name, avatarUrl, id, email, bioHTML }, index) => {\n return ;\n })}\n \n);\n\nexport const Followers = memo(_Followers);\n","import { useQuery } from \"@apollo/client\";\nimport { Badge, Icon, Link, SkeletonText, Text } from \"@chakra-ui/react\";\nimport { GetRepoAboutDocument } from \"@site/graphql\";\nimport { VscStarFull } from \"react-icons/vsc\";\n\nimport { Card } from \"../Card\";\n\nexport const Blog = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"MrWangJustToDo.io\" } });\n\n return (\n \n \n Blog:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n\nexport const RStore = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"reactivity-store\" } });\n\n return (\n \n \n RStore:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n\nexport const SSR = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"react-ssr-setup\" } });\n\n return (\n \n \n SSR template:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n\nexport const GitDiffView = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"git-diff-view\" } });\n\n return (\n \n \n Git-diff-view:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n","import { useQuery } from \"@apollo/client\";\nimport {\n Avatar,\n AvatarBadge,\n Box,\n Divider,\n Flex,\n HStack,\n Icon,\n IconButton,\n Skeleton,\n SkeletonCircle,\n SkeletonText,\n StackDivider,\n Text,\n VStack,\n} from \"@chakra-ui/react\";\nimport { GetViewerDocument } from \"@site/graphql\";\nimport { memo } from \"react\";\nimport { AiOutlineGithub, AiOutlineMail, AiOutlineUser } from \"react-icons/ai\";\nimport { SiLeetcode } from \"react-icons/si\";\n\nimport { Chart } from \"@client/component/Chart\";\nimport { ErrorCom } from \"@client/component/Error\";\nimport { Followers } from \"@client/component/Follower\";\nimport { Blog, GitDiffView, RStore, SSR } from \"@client/component/Recommend\";\nimport { useEffectOnce } from \"@client/hooks\";\nimport { momentTo } from \"@client/utils/time\";\n\nconst ITEM_FOLLOWER = 10;\n\nconst UserLoading = () => (\n \n \n \n \n \n);\n\nconst _User = () => {\n const { data, loading, error, refetch } = useQuery(GetViewerDocument, {\n variables: {\n first: ITEM_FOLLOWER,\n },\n });\n\n useEffectOnce(refetch);\n\n if (loading) return ;\n\n if (error) return ;\n\n return (\n \n \n \n \n \n \n \n \n } spacing=\"2\">\n }\n />\n }\n />\n \n {/* {data.viewer.login} */}\n \n Recommend:\n } spacing=\"2\" marginTop=\"1\">\n \n \n \n \n \n \n \n \n \n {data.viewer.login}\n \n \n \n \n \n {data.viewer.email}\n \n \n \n {momentTo(data.viewer.createdAt)}\n \n \n \n \n \n \n \n followers :\n \n \n \n \n \n \n \n following :\n \n \n \n \n \n \n \n );\n};\n\nexport const User = memo(_User);\n","import { createState } from \"reactivity-store\";\n\nexport const useMainCard = createState(() => ({ drag: false }), {\n withActions: (s: { drag: boolean; }) => ({ onDragStart: () => (s.drag = true), onDragEnd: () => (s.drag = false) }),\n withNamespace: \"useMainCard\",\n});\n","import { Container } from \"@chakra-ui/react\";\nimport { GetBlogListDocument, GetViewerDocument, IssueState, getApolloClient } from \"@site/graphql\";\n\nimport { GridCard } from \"@client/component/GridCard\";\nimport { StyledResponsiveReactGridLayout } from \"@client/component/GridLayout\";\nimport { CONTAINER_WIDTH } from \"@client/config/container\";\nimport { DISABLE_DRAG_HANDLER_SELECTOR, DRAG_HANDLER_SELECTOR, GRID_ROW_HEIGHT } from \"@client/config/gridLayout\";\nimport { BASIC_VARIABLE, BlogGridWithInfinityScroll } from \"@client/container/BlogList\";\nimport { User } from \"@client/container/User\";\nimport { useMainCard } from \"@client/hooks/useMainCard\";\n\nimport type { GetInitialStateType } from \"@client/types/common\";\n\nconst GRID_COLS = { lg: 12, md: 12, sm: 12, xs: 2, xxs: 2 };\nconst GRID_LAYOUTS = {\n lg: [\n { i: \"a\", x: 0, y: 0, w: 3, h: 50, minW: 2, maxW: 5, minH: 25 },\n {\n i: \"b\",\n x: 3,\n y: 0,\n w: 9,\n h: 50,\n minW: 6,\n minH: 50,\n },\n ],\n md: [\n { i: \"a\", x: 0, y: 0, w: 4, h: 40, minW: 2, maxW: 6, minH: 20 },\n {\n i: \"b\",\n x: 4,\n y: 0,\n w: 8,\n h: 40,\n minW: 6,\n minH: 40,\n },\n ],\n sm: [\n { i: \"a\", x: 0, y: 0, w: 5, h: 40, minW: 2, maxW: 8, minH: 15 },\n {\n i: \"b\",\n x: 5,\n y: 0,\n w: 7,\n h: 40,\n minW: 6,\n minH: 40,\n },\n ],\n xs: [\n { i: \"a\", x: 0, y: 0, w: 2, h: 30, minW: 1, minH: 10, static: true },\n { i: \"b\", x: 2, y: 0, w: 2, h: 30, minW: 2, minH: 30, static: true },\n ],\n xxs: [\n { i: \"a\", x: 0, y: 0, w: 2, h: 30, minW: 2, minH: 10, static: true },\n { i: \"b\", x: 2, y: 0, w: 2, h: 30, minW: 2, minH: 30, static: true },\n ],\n};\n\nconst Page = () => {\n const { drag, onDragEnd, onDragStart } = useMainCard();\n\n return (\n \n \n \n \n \n \n \n {/* */}\n \n \n \n );\n};\n\nexport default Page;\n\nexport const getInitialState: GetInitialStateType = async () => {\n if (__CLIENT__) {\n const client = getApolloClient(null, false);\n\n await Promise.all([\n client.query({\n query: GetViewerDocument,\n variables: {\n first: 10,\n },\n }),\n client.query({\n query: GetBlogListDocument,\n variables: {\n ...BASIC_VARIABLE,\n states: IssueState.Open,\n first: 15,\n },\n }),\n ]);\n\n return { props: { [\"$$__apollo__$$\"]: client.cache.extract() } };\n }\n};\n\nexport const isStatic = true;\n","// 语法高亮\nimport Hljs from \"highlight.js/lib/core\";\nimport bash from \"highlight.js/lib/languages/bash\";\nimport css from \"highlight.js/lib/languages/css\";\nimport java from \"highlight.js/lib/languages/java\";\nimport javascript from \"highlight.js/lib/languages/javascript\";\nimport json from \"highlight.js/lib/languages/json\";\nimport less from \"highlight.js/lib/languages/less\";\nimport markdown from \"highlight.js/lib/languages/markdown\";\nimport scss from \"highlight.js/lib/languages/scss\";\nimport shell from \"highlight.js/lib/languages/shell\";\nimport sql from \"highlight.js/lib/languages/sql\";\nimport typescript from \"highlight.js/lib/languages/typescript\";\nimport xml from \"highlight.js/lib/languages/xml\";\n\nHljs.registerLanguage(\"css\", css);\nHljs.registerLanguage(\"json\", json);\nHljs.registerLanguage(\"java\", java);\nHljs.registerLanguage(\"bash\", bash);\nHljs.registerLanguage(\"markdown\", markdown);\nHljs.registerLanguage(\"javascript\", javascript);\nHljs.registerLanguage(\"typescript\", typescript);\nHljs.registerLanguage(\"less\", less);\nHljs.registerLanguage(\"scss\", scss);\nHljs.registerLanguage(\"shell\", shell);\nHljs.registerLanguage(\"xml\", xml);\nHljs.registerLanguage(\"sql\", sql);\n\nexport const hljs = Hljs;\n\nexport const getHighlightHtml = (str: string, lang: string) => {\n let code = \"\";\n let language = lang;\n try {\n if (lang && hljs.getLanguage(lang)) {\n const re = hljs.highlight(str, {\n language: lang,\n ignoreIllegals: true,\n });\n code = re.value;\n language = re.language;\n } else {\n const re = hljs.highlightAuto(str);\n code = re.value;\n language = re.language;\n }\n const transformArr = code.split(/\\n/).slice(0, -1);\n const _minWidth = String(transformArr.length).length - 0.2;\n const minWidth = Math.max(1, _minWidth);\n const html = transformArr.reduce(\n (p: string, c: string, idx: number) =>\n `${p}${\n idx + 1\n }${c}\\n`,\n `
\n ${language}\n
\n
`\n );\n return `
${html}
`;\n } catch (__) {\n void 0;\n }\n};\n","import Mark from \"markdown-it\";\n\nimport { getHighlightHtml, hljs } from \"./highlight\";\n\nconst temp = new Mark();\n\nconst mark = new Mark({\n html: true,\n xhtmlOut: true,\n breaks: true,\n highlight: function (str, lang) {\n return getHighlightHtml(str, lang);\n },\n});\n\nconst addIdForHeads = (className?: string) => {\n if (className) {\n const headings = document.querySelector(className)?.querySelectorAll(\"h1, h2, h3, h4, h5, h6, h7\") || [];\n const headingMap: { [props: string]: number } = {};\n Array.prototype.forEach.call(headings, function (heading) {\n const id = heading.id\n ? heading.id\n : heading.textContent\n .trim()\n .toLowerCase()\n .split(\" \")\n .join(\"-\")\n .replace(/[!@#$%^&*():]/gi, \"\")\n .replace(/\\//gi, \"-\");\n headingMap[id] = !isNaN(headingMap[id]) ? ++headingMap[id] : 0;\n if (headingMap[id]) {\n heading.id = id + \"-\" + headingMap[id];\n } else {\n heading.id = id;\n }\n });\n return !!headings.length;\n }\n};\n\nconst markNOLineNumber = new Mark({\n html: true,\n xhtmlOut: true,\n breaks: true,\n highlight: function (str, lang) {\n if (lang && hljs.getLanguage(lang)) {\n try {\n const transformValue = hljs.highlight(str, {\n language: lang,\n ignoreIllegals: true,\n }).value;\n return `
${transformValue}
`;\n } catch (__) {\n void 0;\n }\n }\n return `
${temp.utils.escapeHtml(str)}
`;\n },\n});\n\nexport { mark, markNOLineNumber, addIdForHeads };\n"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__assign","assign","t","s","i","n","arguments","length","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","SuppressedError","myreactShared","exports","Element","Symbol","for","Memo","ForwardRef","Portal","Fragment","Context","Provider","Consumer","Lazy","Suspense","Strict","KeepLive","Scope","Comment","Offscreen","Profiler","isObject","target","_typeof","isFunction","HOOK_TYPE","UpdateQueueType","STATE_TYPE","PATCH_TYPE","Effect_TYPE","UniqueArray","set","Set","arr","uniPop","v","pop","delete","uniPush","has","add","push","uniShift","shift","uniUnshift","unshift","uniDelete","filter","clear","getAll","ListTreeNode","value","prev","next","ListTree","_stickyHead","defineProperty","get","_stickyFoot","_head","_foot","node","listNode","foot","head","pushToLast","stickyFoot","node_1","pushToHead","stickyHead","node_2","unshiftToHead","node_3","unshiftToFoot","node_4","pickHead","_a","_b","pickFoot","listToFoot","action","listToHead","toArray","re","hasNode","size","is","hasValue","some","iterator","every","concat","list","newList","clone","TYPEKEY","compareVersion","version1","version2","compare","arr1","arr2","v1","v2","slice","split","map","Number","exclude","src","rest","include","isArray","isArrayEquals","key","isCollection","Map","WeakMap","WeakSet","isInteger","isNormalEquals","isSkipKey","hasSkipKeyFunction","srcKeys","keys","targetKeys","res","_i","srcKeys_1","srcKeys_2","isNumber","isPromise","val","then","catch","isString","isSymbol","merge","once","called","args","to","from","pack","ar","l","__spreadArray","remove","globalDepsMap","globalReactiveMap","globalReadOnlyMap","globalShallowReactiveMap","globalShallowReadOnlyMap","createRef","current","globalEffectRef","ReactiveEffect","_action","_scheduler","_active","_parent","_a$2","_depsSetArray","cleanDeps","_this","forEach","addDeps","entryScope","exitScope","run","update","newValue","oldValue","console","error","stop","active","shouldTrackRef","trackStack","shouldTriggerRef","track","type","depsMap","depsSet","trackEffects","trigger","myreactSharedExports","_key","triggerEffects","depsSet_1","reactiveEffect","handlerObject","arrayProxyHandler","reduce","c","toRaw","toString","last","undefined","generateProxyHandler","isShallow","isReadOnly","deletePropertyHandler","createDeletePropertyHandler","getHandler","createGetHandler","setHandler","createSetHandler","deleteProperty","ownKeys","createOwnKeysHandler","createHasHandler","objectGetHandler","receiver","Reflect","isRef","readonly","reactive","createObjectGetHandler","arrayGetHandler","createArrayGetHandler","getProxyCacheMap","Error","isReadonly","warn","hasKey","result","isShallow$1","targetIsArray","hadKey","createReactive$1","cacheMap","proxyHandler","isExtensible","proxy","Proxy","createReactiveWithCache","isReactive","observed","raw","unwrapRefGerHandler","refObject","unwrapRefSetHandler","RefImpl","_rawValue","_a$1","_depsSet","_value","ObjectRefImpl","_object","_b$1","traversal","ComputedRefImpl","_getter","_setter","_dirty","_effect","globalInstance","getterOrOption","getter","setter","props","setup","render","ForBeforeUnmount","_super","componentWillUnmount","$$__instance__$$","onBeforeUnmount","f","children","react","Component","ForBeforeMount","componentDidMount","onBeforeMount","RenderWithLifeCycle","$$__trigger__$$","$$__reactiveState__$$","targetRender","onMounted","componentDidUpdate","onUpdated","onUnmounted","shouldComponentUpdate","canUpdateComponent","onBeforeUpdate","createElement","Render","instance","useState","hasHookInstalled","state","useMemo","objectWithRefs","proxyRefs","setState","updateCallback","useCallback","_c","cb","source","effectAction","cleanUp","onCleanUp","fn","effect","module","ResponsiveReactGridLayout","WidthProvider","Responsive","StyledResponsiveReactGridLayout","styled","Game","t0","t1","t2","t3","t4","t5","t6","t7","$","isMobile","useIsMobile","isMounted","useIsMounted","_useDisclosure","useDisclosure","isOpen","onToggle","onClose","useEffect","_jsx","Button","margin","ModalOverlay","ModalCloseButton","_jsxs","ModalContent","ModalBody","title","srcDoc","height","width","Modal","scrollBehavior","Flex","alignItems","justifyContent","Reactive","createReactive","countRef","ref","changeRef","reactiveObj","x","y","positionChange","throttle","clientX","clientY","watch","reactiveObjXChangeCount","computed","log","window","addEventListener","removeEventListener","changeCount","_ref","VStack","spacing","Heading","as","HStack","Code","onClick","side","dayjs","relativeTime","calendarPlugin","momentTo","time","Date","message","stack","toNow","Actor","forwardRef","avatarProps","avatarUrl","login","resProps","_t","_objectWithoutProperties","_excluded","Avatar","_objectSpread","Text","fontWeight","fontSize","noOfLines","color","Box","marginLeft","maxWidth","displayName","Hover","transform","zIndex","position","transformOrigin","transition","_hover","ItemHeader","externalUrl","detailNumber","location","useLocation","navigate","useNavigate","search","URLSearchParams","append","noBase","__BASENAME__","openModal","open","t8","t9","t10","openExternal","base","md","lg","Tooltip","placement","hasArrow","Icon","AiOutlineRight","userSelect","display","IconButton","variant","icon","VscLinkExternal","Item","number","body","publishedAt","author","url","markNOLineNumber","renderedBody","t11","marginTop","padding","borderTopRadius","Divider","className","overflow","borderBottomRadius","dangerouslySetInnerHTML","__html","flexDirection","_BlogGrid","data","SimpleGrid","columns","xl","Card","index","maxHeight","id","BlogGrid","memo","ErrorCom","useToast","description","status","React","BLOG_REPOSITORY","BLOG_REPOSITORY_OWNER","updatedAt","mark","rendered","marginY","backgroundColor","_temp","_Fragment","RenderWrapper","DetailModal","RenderLoading","name","owner","first","variables","skip","notifyOnNetworkStatusChange","_useQuery","useQuery","GetSingleBlogDocument","loading","fetchMore","networkStatus","_data$repository","_data$repository$issu","_data$repository$issu2","_data$repository$issu3","repository","issue","comments","pageInfo","hasNextPage","after","endCursor","fetchMoreCallback","useCallbackRef","scrollTop","clientHeight","scrollHeight","onThrottleScroll","scrollElement","document","querySelector","NetworkStatus","DetailModalBody","_ref2","SkeletonText","_ref3","_data$repository3","_data$repository3$iss","_data$repository4","_data$repository4$iss","_data$repository4$iss2","_data$repository5","_data$repository5$iss","_data$repository5$iss2","_data$repository2","_data$repository2$iss","borderColor","nodes","DetailModalHeader","_ref4","paddingRight","SkeletonCircle","_ref5","_data$repository6","_data$repository6$iss","client","useApolloClient","refetchQueries","AiOutlineReload","_BlogModal","query","useOverlaysOpen","close","useOverlaysClose","blogId","isModalOpen","closeComplete","setTimeout","string","BlogModal","BlogListLoading","BASIC_VARIABLE","localStorage","getItem","orderBy","field","IssueOrderField","CreatedAt","direction","OrderDirection","Desc","_BlogListWithInfinityScroll","useRef","GetBlogListDocument","states","IssueState","Open","refetch","useEffectOnce","issues","ButtonGroup","bottom","right","colorScheme","textTransform","onScroll","Center","Spinner","BlogGridWithInfinityScroll","Chart","_usePinch","usePinch","pinchRef","coverRef","onOpen","Image","alt","cursor","objectFit","AspectRatio","ratio","GitHubCalendar","username","year","marginBottom","Follower","isFirst","email","bioHTML","StackDivider","AiOutlineUser","AiOutlineMail","divider","border","boxShadow","label","borderRadius","offset","_Followers","Followers","Blog","GetRepoAboutDocument","sm","VscStarFull","marginRight","stargazerCount","Badge","float","t12","isLoaded","paddingX","paddingBottom","_firstLetter","Link","href","textDecoration","RStore","_useQuery2","SSR","_data$repository7","_data$repository8","_data$repository9","_useQuery3","GitDiffView","_data$repository10","_data$repository11","_data$repository12","_useQuery4","UserLoading","Skeleton","_User","GetViewerDocument","viewer","AvatarBadge","bg","boxSize","AiOutlineGithub","SiLeetcode","createdAt","followers","following","User","useMainCard","createState","drag","withActions","onDragStart","onDragEnd","withNamespace","GRID_COLS","xs","xxs","GRID_LAYOUTS","w","h","minW","maxW","minH","static","_useMainCard","GridCard","contentProps","Container","CONTAINER_WIDTH","GRID_ROW_HEIGHT","draggableHandle","DRAG_HANDLER_SELECTOR","draggableCancel","DISABLE_DRAG_HANDLER_SELECTOR","getInitialState","_asyncToGenerator","_regeneratorRuntime","_callee","_context","getApolloClient","Promise","all","abrupt","_defineProperty","cache","extract","isStatic","Hljs","registerLanguage","css","json","java","bash","markdown","javascript","typescript","less","scss","shell","xml","sql","hljs","temp","Mark","html","xhtmlOut","breaks","highlight","str","lang","code","language","getLanguage","ignoreIllegals","highlightAuto","transformArr","_minWidth","minWidth","Math","max","idx","getHighlightHtml","transformValue","utils","escapeHtml"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"page-Blog-65f19307ddb7bb842bdf.js","mappings":"uJAgBIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,CAAE,GACzE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,GAAG,EAC5FP,EAAcC,EAAGC,EAC5B,EAEO,SAASS,EAAUV,EAAGC,GACzB,GAAiB,mBAANA,GAA0B,OAANA,EAC3B,MAAM,IAAIU,UAAU,uBAAyBC,OAAOX,GAAK,iCAE7D,SAASY,IAAOC,KAAKC,YAAcf,CAAE,CADrCD,EAAcC,EAAGC,GAEjBD,EAAEO,UAAkB,OAANN,EAAaC,OAAOc,OAAOf,IAAMY,EAAGN,UAAYN,EAAEM,UAAW,IAAIM,EACnF,CAEO,IAAII,EAAW,WAQlB,OAPAA,EAAWf,OAAOgB,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAIf,KADTc,EAAIG,UAAUF,GACOnB,OAAOK,UAAUC,eAAeC,KAAKW,EAAGd,KAAIa,EAAEb,GAAKc,EAAEd,IAE9E,O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AAYH,GAAO,CAClC,IAAMtoB,EAAK8nB,EAAKM,UAAUC,EAAK,CAC7BG,SAAUF,EACVI,gBAAgB,IAElBH,EAAOvoB,EAAGhC,MACVwqB,EAAWxoB,EAAGwoB,QAChB,KAAO,CACL,IAAMxoB,EAAK8nB,EAAKa,cAAcN,GAC9BE,EAAOvoB,EAAGhC,MACVwqB,EAAWxoB,EAAGwoB,QAChB,CACA,IAAMI,EAAeL,EAAKjnB,MAAM,MAAMD,MAAM,GAAI,GAC1CwnB,EAAYnvB,OAAOkvB,EAAatuB,QAAQA,OAAS,GACjDwuB,EAAWC,KAAKC,IAAI,EAAGH,GACvBZ,EAAOW,EAAa9hB,QACxB,SAAC1N,EAAW2N,EAAWkiB,GAAW,SAAAzoB,OAC7BpH,EAAC,iHAAAoH,OAAgHsoB,EAAQ,0BAAAtoB,OAC1HyoB,EAAM,EAAC,WAAAzoB,OACCuG,EAAC,QAAI,0LAAAvG,OAEmFgoB,EAAQ,kIAI9G,MAAO,4DAAPhoB,OAAmEgoB,EAAQ,kCAAAhoB,OAAgCynB,EAAI,gBACjH,CAAE,MAAOtuB,GAET,CACF,CCpDWuvB,CAAiBb,EAAKC,EAC/B,IA4BIpR,EAAmB,IAAI8Q,EAAAA,EAAK,CAChCC,MAAM,EACNC,UAAU,EACVC,QAAQ,EACRC,UAAW,SAAUC,EAAKC,GACxB,GAAIA,GAAQR,EAAKW,YAAYH,GAC3B,IACE,IAAMa,EAAiBrB,EAAKM,UAAUC,EAAK,CACzCG,SAAUF,EACVI,gBAAgB,IACf1qB,MACH,MAAO,0DAAPwC,OAAiE8nB,EAAI,MAAA9nB,OAAK2oB,EAAc,gBAC1F,CAAE,MAAOxvB,GAET,CAEF,MAAO,2DAAP6G,OAAkEunB,EAAKqB,MAAMC,WAAWhB,GAAI,gBAC9F,G","sources":["webpack://@my-react/ssr-example/../../../../node_modules/.pnpm/project-tool@https+++codeload.github.com+MrWangJustToDo+project-tool+tar.gz+59dab0c1d02a9e83a_rany3i2wjvlp3tkgwuk4oeaz5e/node_modules/tslib/tslib.es6.js","webpack://@my-react/ssr-example/../../../myreact-shared/index.js","webpack://@my-react/ssr-example/../../../myreact-shared/dist/cjs/index.production.js","webpack://@my-react/ssr-example/../../src/share/globalMap.ts","webpack://@my-react/ssr-example/../../src/api/createRef.ts","webpack://@my-react/ssr-example/../../src/api/effect.ts","webpack://@my-react/ssr-example/../../src/api/handler.ts","webpack://@my-react/ssr-example/../../src/api/reactive.ts","webpack://@my-react/ssr-example/../../src/api/create.ts","webpack://@my-react/ssr-example/../../src/api/ref.ts","webpack://@my-react/ssr-example/../../src/api/watch.ts","webpack://@my-react/ssr-example/../../src/api/computed.ts","webpack://@my-react/ssr-example/../../src/reactive/feature.ts","webpack://@my-react/ssr-example/../../src/reactive/hook.ts","webpack://@my-react/ssr-example/../../packages/myreact-reactivity/index.js","webpack://@my-react/ssr-example/./src/client/component/GridLayout/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Game.tsx","webpack://@my-react/ssr-example/./src/client/component/Reactive.tsx","webpack://@my-react/ssr-example/./src/client/utils/log.ts","webpack://@my-react/ssr-example/./src/client/utils/time.ts","webpack://@my-react/ssr-example/./src/client/component/Actor/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Hover/index.tsx","webpack://@my-react/ssr-example/./src/client/component/BlogGrid/Item.tsx","webpack://@my-react/ssr-example/./src/client/component/BlogGrid/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Error/index.tsx","webpack://@my-react/ssr-example/./src/client/config/source.ts","webpack://@my-react/ssr-example/./src/client/component/Comment/Item.tsx","webpack://@my-react/ssr-example/./src/client/component/Comment/index.tsx","webpack://@my-react/ssr-example/./src/client/container/BlogModal/DetailModal.tsx","webpack://@my-react/ssr-example/./src/client/container/BlogModal/index.tsx","webpack://@my-react/ssr-example/./src/client/container/BlogList/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Chart/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Follower/Item.tsx","webpack://@my-react/ssr-example/./src/client/component/Follower/index.tsx","webpack://@my-react/ssr-example/./src/client/component/Recommend/index.tsx","webpack://@my-react/ssr-example/./src/client/container/User/index.tsx","webpack://@my-react/ssr-example/./src/client/hooks/useMainCard.ts","webpack://@my-react/ssr-example/./src/client/pages/Blog.tsx","webpack://@my-react/ssr-example/./src/client/utils/highlight.ts","webpack://@my-react/ssr-example/./src/client/utils/markdown.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","'use strict';\n\nvar merge = function (src, rest) {\n return src | rest;\n};\nvar remove = function (src, rest) {\n if (src & rest) {\n return src ^ rest;\n }\n else {\n return src;\n }\n};\nvar include = function (src, rest) {\n return src & rest;\n};\nvar exclude = function (src, rest) {\n return !(src & rest);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\n\r\nfunction __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar once = function (action) {\n var called = false;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (called)\n return;\n called = true;\n if (typeof action === \"function\")\n action.call.apply(action, __spreadArray([null], args, false));\n };\n};\n\nvar TYPEKEY = \"$$typeof\";\nvar Element = Symbol.for(\"react.element\");\nvar Memo = Symbol.for(\"react.memo\");\nvar ForwardRef = Symbol.for(\"react.forward_ref\");\nvar Portal = Symbol.for(\"react.portal\");\nvar Fragment = Symbol.for(\"react.fragment\");\nvar Context = Symbol.for(\"react.context\");\nvar Provider = Symbol.for(\"react.provider\");\nvar Consumer = Symbol.for(\"react.consumer\");\nvar Lazy = Symbol.for(\"react.lazy\");\nvar Suspense = Symbol.for(\"react.suspense\");\nvar Strict = Symbol.for(\"react.strict_mode\");\n// TODO\nvar KeepLive = Symbol.for(\"react.keep_live\");\nvar Scope = Symbol.for(\"react.scope\");\nvar Comment = Symbol.for(\"react.comment\");\nvar Offscreen = Symbol.for(\"react.offscreen\");\nvar Profiler = Symbol.for(\"react.profiler\");\n\nfunction isObject(target) {\n return typeof target === \"object\" && target !== null;\n}\nfunction isFunction(target) {\n return typeof target === \"function\";\n}\nfunction isArray(target) {\n return Array.isArray(target);\n}\nfunction isSymbol(target) {\n return typeof target === \"symbol\";\n}\nfunction isString(target) {\n return typeof target === \"string\";\n}\nfunction isInteger(target) {\n return Number.isInteger(Number(target));\n}\nfunction isNumber(target) {\n return typeof target === \"number\";\n}\nfunction isCollection(target) {\n return target instanceof Map || target instanceof Set || target instanceof WeakMap || target instanceof WeakSet;\n}\nvar isPromise = function (val) {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\n\nvar UniqueArray = /** @class */ (function () {\n function UniqueArray() {\n this.set = new Set();\n this.arr = new Array();\n this.length = 0;\n }\n UniqueArray.prototype.uniPop = function () {\n var v = this.arr.pop();\n this.set.delete(v);\n this.length--;\n return v;\n };\n UniqueArray.prototype.uniPush = function (v) {\n if (this.set.has(v))\n return 0;\n this.set.add(v);\n this.arr.push(v);\n this.length++;\n };\n UniqueArray.prototype.uniShift = function () {\n var v = this.arr.shift();\n this.set.delete(v);\n this.length--;\n return v;\n };\n UniqueArray.prototype.uniUnshift = function (v) {\n if (this.set.has(v))\n return 0;\n this.set.add(v);\n this.arr.unshift(v);\n this.length++;\n };\n UniqueArray.prototype.uniDelete = function (v) {\n if (this.set.has(v)) {\n this.set.delete(v);\n this.arr = this.arr.filter(function (i) { return i !== v; });\n this.length--;\n }\n };\n UniqueArray.prototype.clear = function () {\n this.length = 0;\n this.set.clear();\n this.arr.length = 0;\n };\n UniqueArray.prototype.getAll = function () {\n return this.arr;\n };\n return UniqueArray;\n}());\n\nexports.HOOK_TYPE = void 0;\n(function (HOOK_TYPE) {\n HOOK_TYPE[HOOK_TYPE[\"useId\"] = 0] = \"useId\";\n HOOK_TYPE[HOOK_TYPE[\"useRef\"] = 1] = \"useRef\";\n HOOK_TYPE[HOOK_TYPE[\"useMemo\"] = 2] = \"useMemo\";\n HOOK_TYPE[HOOK_TYPE[\"useState\"] = 3] = \"useState\";\n HOOK_TYPE[HOOK_TYPE[\"useSignal\"] = 4] = \"useSignal\";\n HOOK_TYPE[HOOK_TYPE[\"useEffect\"] = 5] = \"useEffect\";\n HOOK_TYPE[HOOK_TYPE[\"useContext\"] = 6] = \"useContext\";\n HOOK_TYPE[HOOK_TYPE[\"useReducer\"] = 7] = \"useReducer\";\n HOOK_TYPE[HOOK_TYPE[\"useCallback\"] = 8] = \"useCallback\";\n HOOK_TYPE[HOOK_TYPE[\"useTransition\"] = 9] = \"useTransition\";\n HOOK_TYPE[HOOK_TYPE[\"useDebugValue\"] = 10] = \"useDebugValue\";\n HOOK_TYPE[HOOK_TYPE[\"useLayoutEffect\"] = 11] = \"useLayoutEffect\";\n HOOK_TYPE[HOOK_TYPE[\"useDeferredValue\"] = 12] = \"useDeferredValue\";\n HOOK_TYPE[HOOK_TYPE[\"useInsertionEffect\"] = 13] = \"useInsertionEffect\";\n HOOK_TYPE[HOOK_TYPE[\"useImperativeHandle\"] = 14] = \"useImperativeHandle\";\n HOOK_TYPE[HOOK_TYPE[\"useSyncExternalStore\"] = 15] = \"useSyncExternalStore\";\n})(exports.HOOK_TYPE || (exports.HOOK_TYPE = {}));\n\nexports.UpdateQueueType = void 0;\n(function (UpdateQueueType) {\n UpdateQueueType[UpdateQueueType[\"hook\"] = 2] = \"hook\";\n UpdateQueueType[UpdateQueueType[\"component\"] = 1] = \"component\";\n UpdateQueueType[UpdateQueueType[\"lazy\"] = 3] = \"lazy\";\n UpdateQueueType[UpdateQueueType[\"context\"] = 4] = \"context\";\n})(exports.UpdateQueueType || (exports.UpdateQueueType = {}));\n\nexports.STATE_TYPE = void 0;\n(function (STATE_TYPE) {\n STATE_TYPE[STATE_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n STATE_TYPE[STATE_TYPE[\"__create__\"] = 1] = \"__create__\";\n STATE_TYPE[STATE_TYPE[\"__stable__\"] = 2] = \"__stable__\";\n STATE_TYPE[STATE_TYPE[\"__skippedConcurrent__\"] = 4] = \"__skippedConcurrent__\";\n STATE_TYPE[STATE_TYPE[\"__skippedSync__\"] = 8] = \"__skippedSync__\";\n STATE_TYPE[STATE_TYPE[\"__inherit__\"] = 16] = \"__inherit__\";\n STATE_TYPE[STATE_TYPE[\"__triggerConcurrent__\"] = 32] = \"__triggerConcurrent__\";\n STATE_TYPE[STATE_TYPE[\"__triggerConcurrentForce__\"] = 64] = \"__triggerConcurrentForce__\";\n STATE_TYPE[STATE_TYPE[\"__triggerSync__\"] = 128] = \"__triggerSync__\";\n STATE_TYPE[STATE_TYPE[\"__triggerSyncForce__\"] = 256] = \"__triggerSyncForce__\";\n STATE_TYPE[STATE_TYPE[\"__unmount__\"] = 512] = \"__unmount__\";\n STATE_TYPE[STATE_TYPE[\"__hmr__\"] = 1024] = \"__hmr__\";\n STATE_TYPE[STATE_TYPE[\"__retrigger__\"] = 2048] = \"__retrigger__\";\n STATE_TYPE[STATE_TYPE[\"__rerun__\"] = 4096] = \"__rerun__\";\n})(exports.STATE_TYPE || (exports.STATE_TYPE = {}));\n\nexports.PATCH_TYPE = void 0;\n(function (PATCH_TYPE) {\n PATCH_TYPE[PATCH_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n PATCH_TYPE[PATCH_TYPE[\"__create__\"] = 1] = \"__create__\";\n PATCH_TYPE[PATCH_TYPE[\"__update__\"] = 2] = \"__update__\";\n PATCH_TYPE[PATCH_TYPE[\"__append__\"] = 4] = \"__append__\";\n PATCH_TYPE[PATCH_TYPE[\"__position__\"] = 8] = \"__position__\";\n PATCH_TYPE[PATCH_TYPE[\"__effect__\"] = 16] = \"__effect__\";\n PATCH_TYPE[PATCH_TYPE[\"__layoutEffect__\"] = 32] = \"__layoutEffect__\";\n PATCH_TYPE[PATCH_TYPE[\"__insertionEffect__\"] = 64] = \"__insertionEffect__\";\n PATCH_TYPE[PATCH_TYPE[\"__unmount__\"] = 128] = \"__unmount__\";\n PATCH_TYPE[PATCH_TYPE[\"__ref__\"] = 256] = \"__ref__\";\n})(exports.PATCH_TYPE || (exports.PATCH_TYPE = {}));\n\nexports.Effect_TYPE = void 0;\n(function (Effect_TYPE) {\n Effect_TYPE[Effect_TYPE[\"__initial__\"] = 0] = \"__initial__\";\n Effect_TYPE[Effect_TYPE[\"__effect__\"] = 1] = \"__effect__\";\n Effect_TYPE[Effect_TYPE[\"__unmount__\"] = 2] = \"__unmount__\";\n})(exports.Effect_TYPE || (exports.Effect_TYPE = {}));\n\nvar compareVersion = function (version1, version2) {\n var compare = function (arr1, arr2) {\n if (arr1.length && arr2.length) {\n var v1 = arr1[0];\n var v2 = arr2[0];\n if (v1 > v2)\n return true;\n if (v2 > v1)\n return false;\n return compare(arr1.slice(1), arr2.slice(1));\n }\n if (arr1.length)\n return true;\n if (arr2.length)\n return false;\n return true;\n };\n return compare(version1.split(\".\").map(Number), version2.split(\".\").map(Number));\n};\n\nvar isNormalEquals = function (src, target, isSkipKey) {\n var isEquals = Object.is(src, target);\n if (isEquals)\n return true;\n var hasSkipKeyFunction = typeof isSkipKey === \"function\";\n if (typeof src === \"object\" && typeof target === \"object\" && src !== null && target !== null) {\n var srcKeys = Object.keys(src);\n var targetKeys = Object.keys(target);\n if (srcKeys.length !== targetKeys.length)\n return false;\n var res = true;\n if (hasSkipKeyFunction) {\n for (var _i = 0, srcKeys_1 = srcKeys; _i < srcKeys_1.length; _i++) {\n var key = srcKeys_1[_i];\n if (isSkipKey(key) && key in target) {\n continue;\n }\n else {\n res = res && Object.is(src[key], target[key]);\n }\n if (!res)\n return res;\n }\n }\n else {\n for (var _a = 0, srcKeys_2 = srcKeys; _a < srcKeys_2.length; _a++) {\n var key = srcKeys_2[_a];\n res = res && Object.is(src[key], target[key]);\n if (!res)\n return res;\n }\n }\n return res;\n }\n return false;\n};\nvar isArrayEquals = function (src, target) {\n var isEquals = Object.is(src, target);\n if (isEquals)\n return true;\n if (Array.isArray(src) && Array.isArray(target) && src.length === target.length) {\n var re = true;\n for (var key in src) {\n re = re && Object.is(src[key], target[key]);\n if (!re)\n return re;\n }\n return re;\n }\n return false;\n};\n\nvar ListTreeNode = /** @class */ (function () {\n function ListTreeNode(value) {\n this.prev = null;\n this.next = null;\n this.value = value;\n }\n return ListTreeNode;\n}());\nvar ListTree = /** @class */ (function () {\n function ListTree() {\n this.length = 0;\n var _stickyHead = null;\n Object.defineProperty(this, \"stickyHead\", {\n get: function () {\n return _stickyHead;\n },\n set: function (v) {\n _stickyHead = v;\n },\n });\n var _stickyFoot = null;\n Object.defineProperty(this, \"stickyFoot\", {\n get: function () {\n return _stickyFoot;\n },\n set: function (v) {\n _stickyFoot = v;\n },\n });\n var _head = null;\n Object.defineProperty(this, \"head\", {\n get: function () {\n return _head;\n },\n set: function (v) {\n _head = v;\n },\n });\n var _foot = null;\n Object.defineProperty(this, \"foot\", {\n get: function () {\n return _foot;\n },\n set: function (v) {\n _foot = v;\n },\n });\n }\n ListTree.prototype.push = function (node) {\n var listNode = new ListTreeNode(node);\n this.length++;\n if (!this.foot) {\n this.head = listNode;\n this.foot = listNode;\n }\n else {\n this.foot.next = listNode;\n listNode.prev = this.foot;\n this.foot = listNode;\n }\n };\n ListTree.prototype.pushToLast = function (node) {\n if (this.stickyFoot) {\n var node_1 = this.stickyFoot;\n this.push(node_1.value);\n this.stickyFoot = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyFoot = listNode;\n this.length++;\n };\n ListTree.prototype.pushToHead = function (node) {\n if (this.stickyHead) {\n var node_2 = this.stickyHead;\n this.unshift(node_2.value);\n this.stickyHead = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyHead = listNode;\n this.length++;\n };\n ListTree.prototype.pop = function () {\n var foot = this.stickyFoot || this.foot;\n if (foot) {\n this.delete(foot);\n return foot.value;\n }\n else {\n return null;\n }\n };\n ListTree.prototype.unshift = function (node) {\n var listNode = new ListTreeNode(node);\n this.length++;\n if (!this.head) {\n this.head = listNode;\n this.foot = listNode;\n }\n else {\n this.head.prev = listNode;\n listNode.next = this.head;\n this.head = listNode;\n }\n };\n ListTree.prototype.unshiftToHead = function (node) {\n if (this.stickyHead) {\n var node_3 = this.stickyHead;\n this.unshift(node_3.value);\n this.stickyHead = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyHead = listNode;\n };\n ListTree.prototype.unshiftToFoot = function (node) {\n if (this.stickyFoot) {\n var node_4 = this.stickyFoot;\n this.push(node_4.value);\n this.stickyFoot = null;\n }\n var listNode = new ListTreeNode(node);\n this.stickyFoot = listNode;\n };\n ListTree.prototype.shift = function () {\n var head = this.stickyHead || this.head;\n if (head) {\n this.delete(head);\n return head.value;\n }\n else {\n return null;\n }\n };\n ListTree.prototype.pickHead = function () {\n var _a, _b;\n return ((_a = this.stickyHead) === null || _a === void 0 ? void 0 : _a.value) || ((_b = this.head) === null || _b === void 0 ? void 0 : _b.value);\n };\n ListTree.prototype.pickFoot = function () {\n var _a, _b;\n return ((_a = this.stickyFoot) === null || _a === void 0 ? void 0 : _a.value) || ((_b = this.foot) === null || _b === void 0 ? void 0 : _b.value);\n };\n ListTree.prototype.listToFoot = function (action) {\n if (this.stickyHead) {\n action(this.stickyHead.value);\n }\n var node = this.head;\n while (node) {\n action(node.value);\n node = node.next;\n }\n if (this.stickyFoot) {\n action(this.stickyFoot.value);\n }\n };\n ListTree.prototype.listToHead = function (action) {\n if (this.stickyFoot) {\n action(this.stickyFoot.value);\n }\n var node = this.foot;\n while (node) {\n action(node.value);\n node = node.prev;\n }\n if (this.stickyHead) {\n action(this.stickyHead.value);\n }\n };\n ListTree.prototype.toArray = function () {\n var re = [];\n this.listToFoot(function (v) { return re.push(v); });\n return re;\n };\n ListTree.prototype.delete = function (node) {\n if (this.stickyHead === node) {\n this.stickyHead = null;\n this.length--;\n }\n else if (this.stickyFoot === node) {\n this.stickyFoot = null;\n this.length--;\n }\n else if (this.head === node) {\n var next = node.next;\n node.next = null;\n if (next) {\n this.head = next;\n next.prev = null;\n }\n else {\n this.head = null;\n this.foot = null;\n }\n this.length--;\n }\n else if (this.foot === node) {\n var prev = node.prev;\n node.prev = null;\n if (prev) {\n this.foot = prev;\n prev.next = null;\n }\n else {\n this.head = null;\n this.foot = null;\n }\n this.length--;\n }\n else if (this.hasNode(node)) {\n var prev = node.prev;\n var next = node.next;\n node.prev = null;\n node.next = null;\n prev.next = next;\n next.prev = prev;\n this.length--;\n }\n };\n ListTree.prototype.size = function () {\n return this.length;\n };\n ListTree.prototype.hasNode = function (node) {\n if (this.stickyHead && Object.is(this.stickyHead, node))\n return true;\n if (this.stickyFoot && Object.is(this.stickyFoot, node))\n return true;\n var listNode = this.head;\n while (listNode) {\n if (Object.is(listNode, node))\n return true;\n listNode = listNode.next;\n }\n return false;\n };\n ListTree.prototype.hasValue = function (node) {\n if (this.stickyHead && Object.is(this.stickyHead.value, node))\n return true;\n if (this.stickyFoot && Object.is(this.stickyFoot.value, node))\n return true;\n var listNode = this.head;\n while (listNode) {\n if (Object.is(listNode.value, node))\n return true;\n listNode = listNode.next;\n }\n return false;\n };\n ListTree.prototype.some = function (iterator) {\n var re = false;\n this.listToFoot(function (node) {\n re = re || iterator(node);\n });\n return re;\n };\n ListTree.prototype.every = function (iterator) {\n var re = true;\n this.listToFoot(function (node) {\n re = re && iterator(node);\n });\n return re;\n };\n ListTree.prototype.concat = function (list) {\n var newList = new ListTree();\n this.listToFoot(function (node) { return newList.push(node); });\n list.listToFoot(function (node) { return newList.push(node); });\n return newList;\n };\n ListTree.prototype.clone = function () {\n var newList = new ListTree();\n this.listToFoot(function (v) { return newList.push(v); });\n return newList;\n };\n ListTree.prototype.clear = function () {\n this.length = 0;\n this.head = null;\n this.foot = null;\n this.stickyHead = null;\n this.stickyFoot = null;\n };\n return ListTree;\n}());\n\nexports.Comment = Comment;\nexports.Consumer = Consumer;\nexports.Context = Context;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.KeepLive = KeepLive;\nexports.Lazy = Lazy;\nexports.ListTree = ListTree;\nexports.ListTreeNode = ListTreeNode;\nexports.Memo = Memo;\nexports.Offscreen = Offscreen;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.Provider = Provider;\nexports.Scope = Scope;\nexports.Strict = Strict;\nexports.Suspense = Suspense;\nexports.TYPEKEY = TYPEKEY;\nexports.UniqueArray = UniqueArray;\nexports.compareVersion = compareVersion;\nexports.exclude = exclude;\nexports.include = include;\nexports.isArray = isArray;\nexports.isArrayEquals = isArrayEquals;\nexports.isCollection = isCollection;\nexports.isFunction = isFunction;\nexports.isInteger = isInteger;\nexports.isNormalEquals = isNormalEquals;\nexports.isNumber = isNumber;\nexports.isObject = isObject;\nexports.isPromise = isPromise;\nexports.isString = isString;\nexports.isSymbol = isSymbol;\nexports.merge = merge;\nexports.once = once;\nexports.remove = remove;\n//# sourceMappingURL=index.production.js.map\n",null,null,null,null,null,null,null,null,null,null,null,"\"use strict\";\n\nif (process.env.NODE_ENV === \"production\") {\n module.exports = require(\"./dist/cjs/index.production\");\n} else {\n module.exports = require(\"./dist/cjs/index.development\");\n}\n","import { styled } from \"@chakra-ui/react\";\nimport { WidthProvider, Responsive } from \"react-grid-layout\";\n\nconst ResponsiveReactGridLayout = WidthProvider(Responsive);\n\nexport const StyledResponsiveReactGridLayout = styled(ResponsiveReactGridLayout);\n\nexport const ReactGridLayout = Responsive;","import { Button, Flex, Modal, ModalBody, ModalCloseButton, ModalContent, ModalOverlay, useDisclosure } from \"@chakra-ui/react\";\nimport { useEffect } from \"react\";\n\nimport { useIsMobile, useIsMounted } from \"@client/hooks\";\n\nexport const Game = () => {\n const isMobile = useIsMobile();\n\n const isMounted = useIsMounted();\n\n const { isOpen, onToggle, onClose } = useDisclosure();\n\n useEffect(() => {\n if (isMobile) {\n onClose();\n }\n }, [isMobile, onClose]);\n\n if (!isMounted || isMobile) return null;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n `}\n height=\"800px\"\n width=\"800px\"\n >\n
\n
\n
\n
\n );\n};\n","import { Code, Heading, Button, HStack, VStack } from \"@chakra-ui/react\";\nimport { createReactive, ref, onMounted, reactive, onUnmounted, watch, computed } from \"@my-react/react-reactive\";\nimport throttle from \"lodash/throttle\";\n\nexport const Reactive = __REACT__\n ? () =>
123
\n : createReactive({\n setup: () => {\n const countRef = ref(0);\n const changeRef = ref(0);\n const reactiveObj = reactive({ x: 0, y: 0 });\n const positionChange = throttle((e: MouseEvent) => ((reactiveObj.x = e.clientX), (reactiveObj.y = e.clientY)), 20);\n\n watch(\n () => reactiveObj.x,\n () => changeRef.value++\n );\n\n const reactiveObjXChangeCount = computed(() => \"position.x has changed:\" + changeRef.value + \" counts\");\n\n onMounted(() => {\n console.log(\"reactive mounted\");\n window.addEventListener(\"mousemove\", positionChange);\n });\n\n onUnmounted(() => {\n console.log(\"reactive unmount\");\n window.removeEventListener(\"mousemove\", positionChange);\n });\n\n const changeCount = (c: number) => (countRef.value = c);\n\n return { reactiveObj, countRef, changeCount, reactiveObjXChangeCount };\n },\n\n render: ({ reactiveObj, countRef, changeCount, reactiveObjXChangeCount }) => {\n const Element = (\n \n @my-react Reactive\n count\n \n {countRef}\n \n \n \n position\n \n position x: {reactiveObj.x}\n position y: {reactiveObj.y}\n \n {reactiveObjXChangeCount}\n \n );\n\n return Element;\n },\n }) as () => JSX.Element;\n","const isBrowser = typeof window !== \"undefined\";\n\nconst side = isBrowser ? \"client\" : \"server\";\n\nexport const log = (message: string | Error, lev: \"normal\" | \"warn\" | \"error\") => {\n if (lev === \"error\") {\n if (message instanceof Error) {\n console.log(`[${side}]`, `[error]`, message.stack);\n } else {\n console.log(`[${side}]`, `[error]`, message.toString());\n }\n } else if (lev === \"warn\") {\n console.log(`[${side}]`, `[warn]`, message.toString());\n } else {\n if (process.env.NODE_ENV === \"development\") {\n console.log(`[${side}]`, `[normal]`, message.toString());\n }\n }\n};\n","import dayjs from \"dayjs\";\nimport \"dayjs/locale/zh-cn\";\nimport calendarPlugin from \"dayjs/plugin/calendar\";\nimport relativeTime from \"dayjs/plugin/relativeTime\";\n\nimport { log } from \"./log\";\n\ndayjs.locale(\"zh-cn\");\ndayjs.extend(relativeTime);\ndayjs.extend(calendarPlugin);\n\nconst momentTo = (time: string | Date) => {\n if (typeof time === \"string\") {\n time = new Date(time);\n }\n if (time instanceof Date) {\n return dayjs(new Date()).to(dayjs(time));\n } else {\n log(`time parameter error : ${time}`, \"error\");\n return dayjs().toNow();\n }\n};\n\nexport { momentTo, dayjs };\n","import { Avatar, Box, Flex, forwardRef, Text } from \"@chakra-ui/react\";\n\nimport { momentTo } from \"@client/utils/time\";\n\nimport type { AvatarProps, FlexProps } from \"@chakra-ui/react\";\n\ninterface ActorProps extends FlexProps {\n avatarUrl: string;\n login?: string;\n time: string;\n avatarProps?: Omit;\n}\n\nexport const Actor = forwardRef(({ avatarUrl, login, time, avatarProps, children, ...resProps }, ref) => {\n return (\n \n \n \n \n \n {login}\n \n \n {momentTo(time)}\n \n \n \n {children}\n \n );\n});\n\nActor.displayName = \"Actor\";\n","import { Box, forwardRef } from \"@chakra-ui/react\";\n\nimport type { BoxProps } from \"@chakra-ui/react\";\n\nexport const Hover = forwardRef(({ children, transform, ...props }, ref) => {\n return (\n \n {children}\n \n );\n});\n\nHover.displayName = \"Hover\";\n","import { Text, Flex, Box, Icon, IconButton, Divider, Tooltip } from \"@chakra-ui/react\";\nimport { useMemo } from \"react\";\nimport { AiOutlineRight } from \"react-icons/ai\";\nimport { VscLinkExternal } from \"react-icons/vsc\";\nimport { useLocation, useNavigate } from \"react-router\";\n\nimport { markNOLineNumber } from \"@client/utils/markdown\";\nimport { noBase } from \"@shared\";\n\nimport { Actor } from \"../Actor\";\nimport { Hover } from \"../Hover\";\n\nimport type { GetBlogListQuery } from \"@site/graphql\";\n\nconst ItemHeader = ({ title, externalUrl, detailNumber }: { title: string; externalUrl: string; detailNumber: number }) => {\n const location = useLocation();\n const navigate = useNavigate();\n\n const openModal = () => {\n const search = new URLSearchParams(location.search);\n search.append(\"overlay\", \"open\");\n search.append(\"detailId\", detailNumber + \"\");\n navigate(`${noBase ? \"/Blog\" : `/${__BASENAME__}/Blog`}?${search.toString()}`);\n };\n\n const openExternal = () => window.open(externalUrl, \"_blank\");\n\n return (\n \n \n \n {title}\n \n \n \n } />\n \n \n } onClick={openExternal} />\n \n \n );\n};\n\nexport const Item = (props: GetBlogListQuery[\"repository\"][\"issues\"][\"nodes\"][0]) => {\n const { title, number, body, publishedAt, author, url } = props;\n const renderedBody = useMemo(() => markNOLineNumber.render(body), [body]);\n return (\n \n \n \n \n \n \n \n \n );\n};\n","import { SimpleGrid } from \"@chakra-ui/react\";\nimport { memo } from \"react\";\n\nimport { Card } from \"../Card\";\nimport { Game } from \"../Game\";\nimport { Reactive } from \"../Reactive\";\n\nimport { Item } from \"./Item\";\n\nimport type { GetBlogListQuery } from \"@site/graphql\";\n\nconst _BlogGrid = ({ data }: { data: GetBlogListQuery[\"repository\"][\"issues\"][\"nodes\"] }) => {\n return (\n \n \n \n \n \n \n \n {data.map((p, index) => (\n \n \n \n ))}\n \n );\n};\n\nexport const BlogGrid = memo(_BlogGrid);\n","import { useToast } from \"@chakra-ui/react\";\nimport React, { useEffect } from \"react\";\n\nimport type { ApolloError } from \"@apollo/client\";\n\nexport const ErrorCom = ({ error }: { error: ApolloError }) => {\n const open = useToast();\n\n useEffect(() => {\n open({\n title: \"Get Blog Error\",\n description: error.message,\n status: \"error\",\n });\n }, [error, open]);\n\n return ;\n};\n","export const BLOG_SOURCE = \"https://github.com/facebook/react/issues\";\nexport const BLOG_REPOSITORY = \"react\";\nexport const BLOG_REPOSITORY_OWNER = \"facebook\";\n","import { Box } from \"@chakra-ui/react\";\nimport { useMemo } from \"react\";\n\nimport { mark } from \"@client/utils/markdown\";\n\nimport { Actor } from \"../Actor\";\nimport { Card } from \"../Card\";\n\nimport type { GetSingleBlogQuery } from \"@site/graphql\";\n\nexport const Item = (props: GetSingleBlogQuery[\"repository\"][\"issue\"][\"comments\"][\"nodes\"][0]) => {\n const {\n body,\n author: { login, avatarUrl },\n updatedAt,\n } = props;\n const rendered = useMemo(() => mark.render(body), [body]);\n return (\n \n \n \n \n );\n};\n","import { Divider } from \"@chakra-ui/react\";\n\nimport { Item } from \"./Item\";\n\nimport type { GetSingleBlogQuery } from \"@site/graphql\";\n\nexport const Comment = ({ data }: { data: GetSingleBlogQuery[\"repository\"][\"issue\"][\"comments\"][\"nodes\"] }) => {\n return (\n <>\n {data.length > 0 && }\n {data.map((p) => (\n \n ))}\n \n );\n};\n","import { NetworkStatus, useApolloClient, useQuery } from \"@apollo/client\";\nimport { Box, Text, SkeletonText, SkeletonCircle, useCallbackRef, Icon, IconButton } from \"@chakra-ui/react\";\nimport { GetSingleBlogDocument } from \"@site/graphql\";\nimport { throttle } from \"lodash-es\";\nimport { useEffect, useMemo } from \"react\";\nimport { AiOutlineReload } from \"react-icons/ai\";\n\nimport { Actor } from \"@client/component/Actor\";\nimport { Card } from \"@client/component/Card\";\nimport { Comment } from \"@client/component/Comment\";\nimport { ErrorCom } from \"@client/component/Error\";\nimport { Hover } from \"@client/component/Hover\";\nimport { BLOG_REPOSITORY, BLOG_REPOSITORY_OWNER } from \"@client/config/source\";\nimport { mark } from \"@client/utils/markdown\";\n\nimport type { GetSingleBlogQuery } from \"@site/graphql\";\n\nconst COMMENT_LENGTH = 15;\n\nconst RenderWrapper = ({ data, Render }: { data: GetSingleBlogQuery; Render: ({ data }: { data: GetSingleBlogQuery }) => JSX.Element }) => {\n return Render({ data });\n};\n\nexport const DetailModal = ({\n id,\n Render,\n RenderLoading,\n}: {\n id: string;\n RenderLoading: JSX.Element;\n Render: ({ data }: { data: GetSingleBlogQuery }) => JSX.Element;\n}) => {\n const { data, loading, error, fetchMore, networkStatus } = useQuery(GetSingleBlogDocument, {\n variables: {\n name: BLOG_REPOSITORY,\n owner: BLOG_REPOSITORY_OWNER,\n number: Number(id),\n first: COMMENT_LENGTH,\n },\n skip: id === undefined,\n notifyOnNetworkStatusChange: true,\n });\n\n const fetchMoreCallback = useCallbackRef(() => {\n if (data?.repository?.issue?.comments?.pageInfo?.hasNextPage) {\n fetchMore({\n variables: { after: data.repository.issue.comments.pageInfo.endCursor },\n });\n }\n }, []);\n\n const onThrottleScroll = useMemo(\n () =>\n throttle((e: Event) => {\n const node = e.target as HTMLDivElement;\n if (node) {\n if (node.scrollTop + node.clientHeight >= node.scrollHeight * 0.85) {\n fetchMoreCallback();\n }\n }\n }, 500),\n [fetchMoreCallback]\n );\n\n useEffect(() => {\n const scrollElement = document.querySelector(\"#modal-scroll-box\") as HTMLDivElement;\n if (scrollElement) {\n scrollElement.addEventListener(\"scroll\", onThrottleScroll);\n return () => scrollElement.removeEventListener(\"scroll\", onThrottleScroll);\n }\n }, [onThrottleScroll]);\n\n if (loading && networkStatus !== NetworkStatus.fetchMore) return RenderLoading;\n\n if (error) return ;\n\n return ;\n};\n\nexport const DetailModalBody = ({ id }: { id: string }) => (\n \n \n \n }\n Render={({ data }) => {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const rendered = useMemo(() => mark.render(data?.repository?.issue?.body || \"\"), [data]);\n\n return (\n <>\n \n \n \n \n \n \n );\n }}\n />\n);\n\nexport const DetailModalHeader = ({ id }: { id: string }) => (\n \n \n \n \n \n }\n Render={({ data }) => {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const client = useApolloClient();\n\n const refetch = () =>\n client.refetchQueries({\n include: [GetSingleBlogDocument],\n });\n\n return (\n \n \n {data?.repository?.issue?.title}\n \n refetch()} icon={} />\n \n \n \n );\n }}\n />\n);\n","import React, { memo, useEffect, useMemo } from \"react\";\nimport { useLocation, useNavigate } from \"react-router\";\n\nimport { useOverlaysClose, useOverlaysOpen } from \"@client/hooks\";\nimport { noBase } from \"@shared\";\n\nimport { DetailModalBody, DetailModalHeader } from \"./DetailModal\";\n\nconst _BlogModal = () => {\n const navigate = useNavigate();\n const { search } = useLocation();\n const query = useMemo(() => new URLSearchParams(search || \"\"), [search]);\n const open = useOverlaysOpen();\n const close = useOverlaysClose();\n const blogId = query.get(\"detailId\");\n const isModalOpen = query.get(\"overlay\") === \"open\";\n\n useEffect(() => {\n if (isModalOpen && blogId !== undefined) {\n open({\n head: ,\n body: ,\n closeComplete: () =>\n setTimeout(() => {\n query.delete(\"detailId\");\n query.delete(\"overlay\");\n const string = query.toString();\n navigate(`${noBase ? \"/Blog\" : `/${__BASENAME__}/Blog`}${string ? \"?\" + string : \"\"}`);\n }),\n });\n } else {\n close();\n }\n }, [blogId, close, isModalOpen, navigate, open, query]);\n\n return ;\n};\n\nexport const BlogModal = memo(_BlogModal);\n","import { NetworkStatus, useQuery } from \"@apollo/client\";\nimport { Flex, Box, SimpleGrid, SkeletonCircle, SkeletonText, Portal, useCallbackRef, Center, Spinner, Button, ButtonGroup } from \"@chakra-ui/react\";\nimport { GetBlogListDocument, IssueOrderField, IssueState, OrderDirection } from \"@site/graphql\";\nimport { throttle } from \"lodash-es\";\nimport { memo, useMemo, useRef } from \"react\";\n\nimport { BlogGrid } from \"@client/component/BlogGrid\";\nimport { ErrorCom } from \"@client/component/Error\";\nimport { BLOG_REPOSITORY, BLOG_REPOSITORY_OWNER } from \"@client/config/source\";\nimport { useEffectOnce } from \"@client/hooks\";\n\nimport { BlogModal } from \"../BlogModal\";\n\nconst ITEM_PER_PAGE = 15;\n\nconst BlogListLoading = () => (\n \n {[1, 2, 3, 4, 5].map((i) => (\n \n \n \n \n ))}\n \n);\n\nexport const BASIC_VARIABLE = {\n name: __CLIENT__ ? localStorage.getItem(\"blog_name\") || BLOG_REPOSITORY : BLOG_REPOSITORY,\n owner: __CLIENT__ ? localStorage.getItem(\"blog_owner\") || BLOG_REPOSITORY_OWNER : BLOG_REPOSITORY_OWNER,\n orderBy: {\n field: IssueOrderField.CreatedAt,\n direction: OrderDirection.Desc,\n },\n};\n\nconst _BlogListWithInfinityScroll = () => {\n const ref = useRef();\n\n const { data, loading, error, fetchMore, refetch, networkStatus } = useQuery(GetBlogListDocument, {\n variables: {\n ...BASIC_VARIABLE,\n first: ITEM_PER_PAGE,\n states: IssueState.Open,\n },\n notifyOnNetworkStatusChange: true,\n });\n\n useEffectOnce(refetch);\n\n const fetchMoreCallback = useCallbackRef(() => {\n if (data?.repository?.issues?.pageInfo?.hasNextPage) {\n fetchMore({\n variables: { after: data.repository.issues.pageInfo.endCursor },\n });\n }\n }, []);\n\n const onThrottleScroll = useMemo(\n () =>\n throttle(() => {\n const node = ref.current;\n if (node) {\n if (node.scrollTop + node.clientHeight >= node.scrollHeight * 0.85) {\n fetchMoreCallback();\n }\n }\n }, 200),\n [fetchMoreCallback]\n );\n\n if (loading && networkStatus !== NetworkStatus.fetchMore) return ;\n\n if (error)\n return (\n <>\n \n \n \n \n \n \n \n );\n\n return (\n \n \n \n {loading && data.repository.issues.nodes.length && (\n
\n \n
\n )}\n
\n \n \n \n \n \n \n
\n );\n};\n\nexport const BlogGridWithInfinityScroll = memo(_BlogListWithInfinityScroll);\n","import { AspectRatio, Box, Image, Modal, ModalBody, ModalCloseButton, ModalContent, ModalOverlay, useDisclosure } from \"@chakra-ui/react\";\nimport GitHubCalendar from \"react-github-calendar\";\nimport usePinch from \"use-pinch-ref\";\n\nimport type { BoxProps } from \"@chakra-ui/react\";\n\nexport const Chart = (props: Omit) => {\n const { pinchRef, coverRef } = usePinch();\n\n const { isOpen, onOpen, onClose } = useDisclosure();\n\n return (\n \n \n \"chart\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { Tooltip, Box, Text, Flex, Avatar, Icon, VStack, StackDivider, useDisclosure } from \"@chakra-ui/react\";\nimport { AiOutlineMail, AiOutlineUser } from \"react-icons/ai\";\n\nimport { Hover } from \"../Hover\";\n\ntype FollowerProps = {\n id: string;\n name: string;\n email?: string;\n isFirst: boolean;\n bioHTML?: string;\n avatarUrl: string;\n};\n\nexport const Follower = ({ isFirst, name, email, avatarUrl, bioHTML }: FollowerProps) => {\n const { isOpen, onOpen, onClose } = useDisclosure();\n return (\n \n } alignItems=\"flex-start\" spacing=\"1\">\n \n \n \n {name}\n \n \n {email && (\n \n \n \n {email}\n \n \n )}\n {bioHTML && }\n \n }\n maxWidth={{ base: \"200px\", md: \"240px\" }}\n isOpen={isOpen}\n borderRadius=\"4\"\n placement=\"right\"\n boxShadow=\"md\"\n offset={[0, 8]}\n hasArrow\n >\n \n \n \n );\n};\n","import { memo } from \"react\";\n\nimport { Follower } from \"./Item\";\n\nimport type { GetViewerQuery } from \"@site/graphql\";\n\nconst _Followers = ({ data }: { data: GetViewerQuery[\"viewer\"][\"followers\"][\"nodes\"] }) => (\n <>\n {data.map(({ login, name, avatarUrl, id, email, bioHTML }, index) => {\n return ;\n })}\n \n);\n\nexport const Followers = memo(_Followers);\n","import { useQuery } from \"@apollo/client\";\nimport { Badge, Icon, Link, SkeletonText, Text } from \"@chakra-ui/react\";\nimport { GetRepoAboutDocument } from \"@site/graphql\";\nimport { VscStarFull } from \"react-icons/vsc\";\n\nimport { Card } from \"../Card\";\n\nexport const Blog = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"MrWangJustToDo.io\" } });\n\n return (\n \n \n Blog:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n\nexport const RStore = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"reactivity-store\" } });\n\n return (\n \n \n RStore:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n\nexport const SSR = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"react-ssr-setup\" } });\n\n return (\n \n \n SSR template:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n\nexport const GitDiffView = () => {\n const { data, loading } = useQuery(GetRepoAboutDocument, { variables: { owner: \"mrwangjusttodo\", name: \"git-diff-view\" } });\n\n return (\n \n \n Git-diff-view:\n \n \n {data?.repository?.stargazerCount}\n \n \n \n {data?.repository?.description}\n \n \n \n \n );\n};\n","import { useQuery } from \"@apollo/client\";\nimport {\n Avatar,\n AvatarBadge,\n Box,\n Divider,\n Flex,\n HStack,\n Icon,\n IconButton,\n Skeleton,\n SkeletonCircle,\n SkeletonText,\n StackDivider,\n Text,\n VStack,\n} from \"@chakra-ui/react\";\nimport { GetViewerDocument } from \"@site/graphql\";\nimport { memo } from \"react\";\nimport { AiOutlineGithub, AiOutlineMail, AiOutlineUser } from \"react-icons/ai\";\nimport { SiLeetcode } from \"react-icons/si\";\n\nimport { Chart } from \"@client/component/Chart\";\nimport { ErrorCom } from \"@client/component/Error\";\nimport { Followers } from \"@client/component/Follower\";\nimport { Blog, GitDiffView, RStore, SSR } from \"@client/component/Recommend\";\nimport { useEffectOnce } from \"@client/hooks\";\nimport { momentTo } from \"@client/utils/time\";\n\nconst ITEM_FOLLOWER = 10;\n\nconst UserLoading = () => (\n \n \n \n \n \n);\n\nconst _User = () => {\n const { data, loading, error, refetch } = useQuery(GetViewerDocument, {\n variables: {\n first: ITEM_FOLLOWER,\n },\n });\n\n useEffectOnce(refetch);\n\n if (loading) return ;\n\n if (error) return ;\n\n return (\n \n \n \n \n \n \n \n \n } spacing=\"2\">\n }\n />\n }\n />\n \n {/* {data.viewer.login} */}\n \n Recommend:\n } spacing=\"2\" marginTop=\"1\">\n \n \n \n \n \n \n \n \n \n {data.viewer.login}\n \n \n \n \n \n {data.viewer.email}\n \n \n \n {momentTo(data.viewer.createdAt)}\n \n \n \n \n \n \n \n followers :\n \n \n \n \n \n \n \n following :\n \n \n \n \n \n \n \n );\n};\n\nexport const User = memo(_User);\n","import { createState } from \"reactivity-store\";\n\nexport const useMainCard = createState(() => ({ drag: false }), {\n withActions: (s: { drag: boolean; }) => ({ onDragStart: () => (s.drag = true), onDragEnd: () => (s.drag = false) }),\n withNamespace: \"useMainCard\",\n});\n","import { Container } from \"@chakra-ui/react\";\nimport { GetBlogListDocument, GetViewerDocument, IssueState, getApolloClient } from \"@site/graphql\";\n\nimport { GridCard } from \"@client/component/GridCard\";\nimport { StyledResponsiveReactGridLayout } from \"@client/component/GridLayout\";\nimport { CONTAINER_WIDTH } from \"@client/config/container\";\nimport { DISABLE_DRAG_HANDLER_SELECTOR, DRAG_HANDLER_SELECTOR, GRID_ROW_HEIGHT } from \"@client/config/gridLayout\";\nimport { BASIC_VARIABLE, BlogGridWithInfinityScroll } from \"@client/container/BlogList\";\nimport { User } from \"@client/container/User\";\nimport { useMainCard } from \"@client/hooks/useMainCard\";\n\nimport type { GetInitialStateType } from \"@client/types/common\";\n\nconst GRID_COLS = { lg: 12, md: 12, sm: 12, xs: 2, xxs: 2 };\nconst GRID_LAYOUTS = {\n lg: [\n { i: \"a\", x: 0, y: 0, w: 3, h: 50, minW: 2, maxW: 5, minH: 25 },\n {\n i: \"b\",\n x: 3,\n y: 0,\n w: 9,\n h: 50,\n minW: 6,\n minH: 50,\n },\n ],\n md: [\n { i: \"a\", x: 0, y: 0, w: 4, h: 40, minW: 2, maxW: 6, minH: 20 },\n {\n i: \"b\",\n x: 4,\n y: 0,\n w: 8,\n h: 40,\n minW: 6,\n minH: 40,\n },\n ],\n sm: [\n { i: \"a\", x: 0, y: 0, w: 5, h: 40, minW: 2, maxW: 8, minH: 15 },\n {\n i: \"b\",\n x: 5,\n y: 0,\n w: 7,\n h: 40,\n minW: 6,\n minH: 40,\n },\n ],\n xs: [\n { i: \"a\", x: 0, y: 0, w: 2, h: 30, minW: 1, minH: 10, static: true },\n { i: \"b\", x: 2, y: 0, w: 2, h: 30, minW: 2, minH: 30, static: true },\n ],\n xxs: [\n { i: \"a\", x: 0, y: 0, w: 2, h: 30, minW: 2, minH: 10, static: true },\n { i: \"b\", x: 2, y: 0, w: 2, h: 30, minW: 2, minH: 30, static: true },\n ],\n};\n\nconst Page = () => {\n const { drag, onDragEnd, onDragStart } = useMainCard();\n\n return (\n \n \n \n \n \n \n \n {/* */}\n \n \n \n );\n};\n\nexport default Page;\n\nexport const getInitialState: GetInitialStateType = async () => {\n if (__CLIENT__) {\n const client = getApolloClient(null, false);\n\n await Promise.all([\n client.query({\n query: GetViewerDocument,\n variables: {\n first: 10,\n },\n }),\n client.query({\n query: GetBlogListDocument,\n variables: {\n ...BASIC_VARIABLE,\n states: IssueState.Open,\n first: 15,\n },\n }),\n ]);\n\n return { props: { [\"$$__apollo__$$\"]: client.cache.extract() } };\n }\n};\n\nexport const isStatic = true;\n","// 语法高亮\nimport Hljs from \"highlight.js/lib/core\";\nimport bash from \"highlight.js/lib/languages/bash\";\nimport css from \"highlight.js/lib/languages/css\";\nimport java from \"highlight.js/lib/languages/java\";\nimport javascript from \"highlight.js/lib/languages/javascript\";\nimport json from \"highlight.js/lib/languages/json\";\nimport less from \"highlight.js/lib/languages/less\";\nimport markdown from \"highlight.js/lib/languages/markdown\";\nimport scss from \"highlight.js/lib/languages/scss\";\nimport shell from \"highlight.js/lib/languages/shell\";\nimport sql from \"highlight.js/lib/languages/sql\";\nimport typescript from \"highlight.js/lib/languages/typescript\";\nimport xml from \"highlight.js/lib/languages/xml\";\n\nHljs.registerLanguage(\"css\", css);\nHljs.registerLanguage(\"json\", json);\nHljs.registerLanguage(\"java\", java);\nHljs.registerLanguage(\"bash\", bash);\nHljs.registerLanguage(\"markdown\", markdown);\nHljs.registerLanguage(\"javascript\", javascript);\nHljs.registerLanguage(\"typescript\", typescript);\nHljs.registerLanguage(\"less\", less);\nHljs.registerLanguage(\"scss\", scss);\nHljs.registerLanguage(\"shell\", shell);\nHljs.registerLanguage(\"xml\", xml);\nHljs.registerLanguage(\"sql\", sql);\n\nexport const hljs = Hljs;\n\nexport const getHighlightHtml = (str: string, lang: string) => {\n let code = \"\";\n let language = lang;\n try {\n if (lang && hljs.getLanguage(lang)) {\n const re = hljs.highlight(str, {\n language: lang,\n ignoreIllegals: true,\n });\n code = re.value;\n language = re.language;\n } else {\n const re = hljs.highlightAuto(str);\n code = re.value;\n language = re.language;\n }\n const transformArr = code.split(/\\n/).slice(0, -1);\n const _minWidth = String(transformArr.length).length - 0.2;\n const minWidth = Math.max(1, _minWidth);\n const html = transformArr.reduce(\n (p: string, c: string, idx: number) =>\n `${p}${\n idx + 1\n }${c}\\n`,\n `
\n ${language}\n
\n
`\n );\n return `
${html}
`;\n } catch (__) {\n void 0;\n }\n};\n","import Mark from \"markdown-it\";\n\nimport { getHighlightHtml, hljs } from \"./highlight\";\n\nconst temp = new Mark();\n\nconst mark = new Mark({\n html: true,\n xhtmlOut: true,\n breaks: true,\n highlight: function (str, lang) {\n return getHighlightHtml(str, lang);\n },\n});\n\nconst addIdForHeads = (className?: string) => {\n if (className) {\n const headings = document.querySelector(className)?.querySelectorAll(\"h1, h2, h3, h4, h5, h6, h7\") || [];\n const headingMap: { [props: string]: number } = {};\n Array.prototype.forEach.call(headings, function (heading) {\n const id = heading.id\n ? heading.id\n : heading.textContent\n .trim()\n .toLowerCase()\n .split(\" \")\n .join(\"-\")\n .replace(/[!@#$%^&*():]/gi, \"\")\n .replace(/\\//gi, \"-\");\n headingMap[id] = !isNaN(headingMap[id]) ? ++headingMap[id] : 0;\n if (headingMap[id]) {\n heading.id = id + \"-\" + headingMap[id];\n } else {\n heading.id = id;\n }\n });\n return !!headings.length;\n }\n};\n\nconst markNOLineNumber = new Mark({\n html: true,\n xhtmlOut: true,\n breaks: true,\n highlight: function (str, lang) {\n if (lang && hljs.getLanguage(lang)) {\n try {\n const transformValue = hljs.highlight(str, {\n language: lang,\n ignoreIllegals: true,\n }).value;\n return `
${transformValue}
`;\n } catch (__) {\n void 0;\n }\n }\n return `
${temp.utils.escapeHtml(str)}
`;\n },\n});\n\nexport { mark, markNOLineNumber, addIdForHeads };\n"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__extends","TypeError","String","__","this","constructor","create","__assign","assign","t","s","i","n","arguments","length","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","SuppressedError","myreactShared","exports","Element","Symbol","for","Memo","ForwardRef","Portal","Fragment","Context","Provider","Consumer","Lazy","Suspense","Strict","KeepLive","Scope","Comment","Offscreen","Profiler","isObject","target","_typeof","isFunction","HOOK_TYPE","UpdateQueueType","STATE_TYPE","PATCH_TYPE","Effect_TYPE","UniqueArray","set","Set","arr","uniPop","v","pop","delete","uniPush","has","add","push","uniShift","shift","uniUnshift","unshift","uniDelete","filter","clear","getAll","ListTreeNode","value","prev","next","ListTree","_stickyHead","defineProperty","get","_stickyFoot","_head","_foot","node","listNode","foot","head","pushToLast","stickyFoot","node_1","pushToHead","stickyHead","node_2","unshiftToHead","node_3","unshiftToFoot","node_4","pickHead","_a","_b","pickFoot","listToFoot","action","listToHead","toArray","re","hasNode","size","is","hasValue","some","iterator","every","concat","list","newList","clone","TYPEKEY","compareVersion","version1","version2","compare","arr1","arr2","v1","v2","slice","split","map","Number","exclude","src","rest","include","isArray","isArrayEquals","key","isCollection","Map","WeakMap","WeakSet","isInteger","isNormalEquals","isSkipKey","hasSkipKeyFunction","srcKeys","keys","targetKeys","res","_i","srcKeys_1","srcKeys_2","isNumber","isPromise","val","then","catch","isString","isSymbol","merge","once","called","args","to","from","pack","ar","l","__spreadArray","remove","globalDepsMap","globalReactiveMap","globalReadOnlyMap","globalShallowReactiveMap","globalShallowReadOnlyMap","createRef","current","globalEffectRef","ReactiveEffect","_action","_scheduler","_active","_parent","_a$2","_depsSetArray","cleanDeps","_this","forEach","addDeps","entryScope","exitScope","run","update","newValue","oldValue","console","error","stop","active","shouldTrackRef","trackStack","shouldTriggerRef","track","type","depsMap","depsSet","trackEffects","trigger","myreactSharedExports","_key","triggerEffects","depsSet_1","reactiveEffect","handlerObject","arrayProxyHandler","reduce","c","toRaw","toString","last","undefined","generateProxyHandler","isShallow","isReadOnly","deletePropertyHandler","createDeletePropertyHandler","getHandler","createGetHandler","setHandler","createSetHandler","deleteProperty","ownKeys","createOwnKeysHandler","createHasHandler","objectGetHandler","receiver","Reflect","isRef","readonly","reactive","createObjectGetHandler","arrayGetHandler","createArrayGetHandler","getProxyCacheMap","Error","isReadonly","warn","hasKey","result","isShallow$1","targetIsArray","hadKey","createReactive$1","cacheMap","proxyHandler","isExtensible","proxy","Proxy","createReactiveWithCache","isReactive","observed","raw","unwrapRefGerHandler","refObject","unwrapRefSetHandler","RefImpl","_rawValue","_a$1","_depsSet","_value","ObjectRefImpl","_object","_b$1","traversal","ComputedRefImpl","_getter","_setter","_dirty","_effect","globalInstance","getterOrOption","getter","setter","props","setup","render","ForBeforeUnmount","_super","componentWillUnmount","$$__instance__$$","onBeforeUnmount","f","children","react","Component","ForBeforeMount","componentDidMount","onBeforeMount","RenderWithLifeCycle","$$__trigger__$$","$$__reactiveState__$$","targetRender","onMounted","componentDidUpdate","onUpdated","onUnmounted","shouldComponentUpdate","canUpdateComponent","onBeforeUpdate","createElement","Render","instance","useState","hasHookInstalled","state","useMemo","objectWithRefs","proxyRefs","setState","updateCallback","useCallback","_c","cb","source","effectAction","cleanUp","onCleanUp","fn","effect","module","ResponsiveReactGridLayout","WidthProvider","Responsive","StyledResponsiveReactGridLayout","styled","Game","t0","t1","t2","t3","t4","t5","t6","t7","$","isMobile","useIsMobile","isMounted","useIsMounted","_useDisclosure","useDisclosure","isOpen","onToggle","onClose","useEffect","_jsx","Button","margin","ModalOverlay","ModalCloseButton","_jsxs","ModalContent","ModalBody","title","srcDoc","height","width","Modal","scrollBehavior","Flex","alignItems","justifyContent","Reactive","createReactive","countRef","ref","changeRef","reactiveObj","x","y","positionChange","throttle","clientX","clientY","watch","reactiveObjXChangeCount","computed","log","window","addEventListener","removeEventListener","changeCount","_ref","VStack","spacing","Heading","as","HStack","Code","onClick","side","dayjs","relativeTime","calendarPlugin","momentTo","time","Date","message","stack","toNow","Actor","forwardRef","avatarProps","avatarUrl","login","resProps","_t","_objectWithoutProperties","_excluded","Avatar","_objectSpread","Text","fontWeight","fontSize","noOfLines","color","Box","marginLeft","maxWidth","displayName","Hover","transform","zIndex","position","transformOrigin","transition","_hover","ItemHeader","externalUrl","detailNumber","location","useLocation","navigate","useNavigate","search","URLSearchParams","append","noBase","__BASENAME__","openModal","open","t8","t9","t10","openExternal","base","md","lg","Tooltip","placement","hasArrow","Icon","AiOutlineRight","userSelect","display","IconButton","variant","icon","VscLinkExternal","Item","number","body","publishedAt","author","url","markNOLineNumber","renderedBody","t11","marginTop","padding","borderTopRadius","Divider","className","overflow","borderBottomRadius","dangerouslySetInnerHTML","__html","flexDirection","_BlogGrid","data","SimpleGrid","columns","xl","Card","index","maxHeight","id","BlogGrid","memo","ErrorCom","useToast","description","status","React","BLOG_REPOSITORY","BLOG_REPOSITORY_OWNER","updatedAt","mark","rendered","marginY","backgroundColor","_temp","_Fragment","RenderWrapper","DetailModal","RenderLoading","name","owner","first","variables","skip","notifyOnNetworkStatusChange","_useQuery","useQuery","GetSingleBlogDocument","loading","fetchMore","networkStatus","_data$repository","_data$repository$issu","_data$repository$issu2","_data$repository$issu3","repository","issue","comments","pageInfo","hasNextPage","after","endCursor","fetchMoreCallback","useCallbackRef","scrollTop","clientHeight","scrollHeight","onThrottleScroll","scrollElement","document","querySelector","NetworkStatus","DetailModalBody","_ref2","SkeletonText","_ref3","_data$repository3","_data$repository3$iss","_data$repository4","_data$repository4$iss","_data$repository4$iss2","_data$repository5","_data$repository5$iss","_data$repository5$iss2","_data$repository2","_data$repository2$iss","borderColor","nodes","DetailModalHeader","_ref4","paddingRight","SkeletonCircle","_ref5","_data$repository6","_data$repository6$iss","client","useApolloClient","refetchQueries","AiOutlineReload","_BlogModal","query","useOverlaysOpen","close","useOverlaysClose","blogId","isModalOpen","closeComplete","setTimeout","string","BlogModal","BlogListLoading","BASIC_VARIABLE","localStorage","getItem","orderBy","field","IssueOrderField","CreatedAt","direction","OrderDirection","Desc","_BlogListWithInfinityScroll","useRef","GetBlogListDocument","states","IssueState","Open","refetch","useEffectOnce","issues","ButtonGroup","bottom","right","colorScheme","textTransform","onScroll","Center","Spinner","BlogGridWithInfinityScroll","Chart","_usePinch","usePinch","pinchRef","coverRef","onOpen","Image","alt","cursor","objectFit","AspectRatio","ratio","GitHubCalendar","username","year","marginBottom","Follower","isFirst","email","bioHTML","StackDivider","AiOutlineUser","AiOutlineMail","divider","border","boxShadow","label","borderRadius","offset","_Followers","Followers","Blog","GetRepoAboutDocument","sm","VscStarFull","marginRight","stargazerCount","Badge","float","t12","isLoaded","paddingX","paddingBottom","_firstLetter","Link","href","textDecoration","RStore","_useQuery2","SSR","_data$repository7","_data$repository8","_data$repository9","_useQuery3","GitDiffView","_data$repository10","_data$repository11","_data$repository12","_useQuery4","UserLoading","Skeleton","_User","GetViewerDocument","viewer","AvatarBadge","bg","boxSize","AiOutlineGithub","SiLeetcode","createdAt","followers","following","User","useMainCard","createState","drag","withActions","onDragStart","onDragEnd","withNamespace","GRID_COLS","xs","xxs","GRID_LAYOUTS","w","h","minW","maxW","minH","static","_useMainCard","GridCard","contentProps","Container","CONTAINER_WIDTH","GRID_ROW_HEIGHT","draggableHandle","DRAG_HANDLER_SELECTOR","draggableCancel","DISABLE_DRAG_HANDLER_SELECTOR","getInitialState","_asyncToGenerator","_regeneratorRuntime","_callee","_context","getApolloClient","Promise","all","abrupt","_defineProperty","cache","extract","isStatic","Hljs","registerLanguage","css","json","java","bash","markdown","javascript","typescript","less","scss","shell","xml","sql","hljs","temp","Mark","html","xhtmlOut","breaks","highlight","str","lang","code","language","getLanguage","ignoreIllegals","highlightAuto","transformArr","_minWidth","minWidth","Math","max","idx","getHighlightHtml","transformValue","utils","escapeHtml"],"sourceRoot":""} \ No newline at end of file diff --git a/client/runtime-59f0fff6925cfe5bbd4b.js b/client/runtime-59f0fff6925cfe5bbd4b.js deleted file mode 100644 index 8da80c1f..00000000 --- a/client/runtime-59f0fff6925cfe5bbd4b.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,t,r,o,a,n={},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=n,e=[],l.O=(t,r,o,a)=>{if(!r){var n=1/0;for(f=0;f=a)&&Object.keys(l.O).every((e=>l.O[e](r[c])))?r.splice(c--,1):(i=!1,a0&&e[f-1][2]>a;f--)e[f]=e[f-1];e[f]=[r,o,a]},l.F={},l.E=e=>{Object.keys(l.F).map((t=>{l.F[t](e)}))},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var a=Object.create(null);l.r(a);var n={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,l.d(a,n),a},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,r)=>(l.f[r](e,t),t)),[])),l.u=e=>(({11:"page-Excalidraw",54:"page-About",101:"page-Tldraw",505:"page-404",719:"page-Blog",907:"page-"}[e]||e)+"-"+{11:"114f4767dfd0870e5c45",54:"bd6471c623144db5bed8",101:"7c5213eacb3f527b2e0c",505:"d5669149c7150a6ebdfb",674:"e112213c2e892f76f561",719:"956eaeff5a2b1f53bb62",907:"e986a868dd3df49c882c"}[e]+".js"),l.miniCssF=e=>{},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="@my-react/ssr-example:",l.l=(e,t,r,n)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==r)for(var d=document.getElementsByTagName("script"),f=0;f{i.onerror=i.onload=null,clearTimeout(p);var a=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(r))),t)return t(r)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),c&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),l.p="/MyReact/client/",(()=>{var e={121:0};l.f.j=(t,r)=>{var o=l.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(121!=t){var a=new Promise(((r,a)=>o=e[t]=[r,a]));r.push(o[2]=a);var n=l.p+l.u(t),i=new Error;l.l(n,(r=>{if(l.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,o[1](i)}}),"chunk-"+t,t)}else e[t]=0},l.F.j=t=>{if((!l.o(e,t)||void 0===e[t])&&121!=t){e[t]=null;var r=document.createElement("link");l.nc&&r.setAttribute("nonce",l.nc),r.rel="prefetch",r.as="script",r.href=l.p+l.u(t),document.head.appendChild(r)}},l.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[n,i,c]=r,d=0;if(n.some((t=>0!==e[t]))){for(o in i)l.o(i,o)&&(l.m[o]=i[o]);if(c)var f=c(l)}for(t&&t(r);d{"use strict";var e,t,r,o,a,n={},i={};function c(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.m=n,e=[],c.O=(t,r,o,a)=>{if(!r){var n=1/0;for(u=0;u=a)&&Object.keys(c.O).every((e=>c.O[e](r[l])))?r.splice(l--,1):(i=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,o,a]},c.F={},c.E=e=>{Object.keys(c.F).map((t=>{c.F[t](e)}))},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var a=Object.create(null);c.r(a);var n={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,c.d(a,n),a},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,r)=>(c.f[r](e,t),t)),[])),c.u=e=>(({11:"page-Excalidraw",54:"page-About",101:"page-Tldraw",505:"page-404",719:"page-Blog",907:"page-"}[e]||e)+"-"+{11:"114f4767dfd0870e5c45",54:"bd6471c623144db5bed8",101:"7c5213eacb3f527b2e0c",505:"d5669149c7150a6ebdfb",674:"e112213c2e892f76f561",719:"65f19307ddb7bb842bdf",907:"53b9063d91581b619547"}[e]+".js"),c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},a="@my-react/ssr-example:",c.l=(e,t,r,n)=>{if(o[e])o[e].push(t);else{var i,l;if(void 0!==r)for(var d=document.getElementsByTagName("script"),u=0;u{i.onerror=i.onload=null,clearTimeout(p);var a=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(r))),t)return t(r)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),l&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/MyReact/client/",(()=>{var e={121:0};c.f.j=(t,r)=>{var o=c.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(121!=t){var a=new Promise(((r,a)=>o=e[t]=[r,a]));r.push(o[2]=a);var n=c.p+c.u(t),i=new Error;c.l(n,(r=>{if(c.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,o[1](i)}}),"chunk-"+t,t)}else e[t]=0},c.F.j=t=>{if((!c.o(e,t)||void 0===e[t])&&121!=t){e[t]=null;var r=document.createElement("link");c.nc&&r.setAttribute("nonce",c.nc),r.rel="prefetch",r.as="script",r.href=c.p+c.u(t),document.head.appendChild(r)}},c.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[n,i,l]=r,d=0;if(n.some((t=>0!==e[t]))){for(o in i)c.o(i,o)&&(c.m[o]=i[o]);if(l)var u=l(c)}for(t&&t(r);d {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@my-react/ssr-example:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.F = {};\n__webpack_require__.E = (chunkId) => {\n\tObject.keys(__webpack_require__.F).map((key) => {\n\t\t__webpack_require__.F[key](chunkId);\n\t});\n}","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + ({\"11\":\"page-Excalidraw\",\"54\":\"page-About\",\"101\":\"page-Tldraw\",\"505\":\"page-404\",\"719\":\"page-Blog\",\"907\":\"page-\"}[chunkId] || chunkId) + \"-\" + {\"11\":\"114f4767dfd0870e5c45\",\"54\":\"bd6471c623144db5bed8\",\"101\":\"7c5213eacb3f527b2e0c\",\"505\":\"d5669149c7150a6ebdfb\",\"674\":\"e112213c2e892f76f561\",\"719\":\"956eaeff5a2b1f53bb62\",\"907\":\"e986a868dd3df49c882c\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/MyReact/client/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t121: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(121 != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n__webpack_require__.F.j = (chunkId) => {\n\tif((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && 121 != chunkId) {\n\t\tinstalledChunks[chunkId] = null;\n\t\tvar link = document.createElement('link');\n\n\t\tif (__webpack_require__.nc) {\n\t\t\tlink.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tlink.rel = \"prefetch\";\n\t\tlink.as = \"script\";\n\t\tlink.href = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\tdocument.head.appendChild(link);\n\t}\n};\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_my_react_ssr_example\"] = self[\"webpackChunk_my_react_ssr_example\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","F","E","chunkId","map","n","getter","__esModule","d","a","getPrototypeOf","obj","t","value","mode","this","then","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","get","f","e","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","p","installedChunks","installedChunkData","promise","resolve","reject","error","Error","errorType","realSrc","message","name","request","link","rel","as","href","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"runtime-c76f8a1318f1b317a41a.js","mappings":"uBAAIA,ECCAC,EADAC,ECAAC,EACAC,E,KCAAC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CACjDK,GAAIL,EACJM,QAAQ,EACRH,QAAS,CAAC,GAUX,OANAI,EAAoBP,GAAUQ,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAG3EK,EAAOE,QAAS,EAGTF,EAAOD,OACf,CAGAJ,EAAoBU,EAAIF,EH5BpBd,EAAW,GACfM,EAAoBW,EAAI,CAACC,EAAQC,EAAUC,EAAIC,KAC9C,IAAGF,EAAH,CAMA,IAAIG,EAAeC,IACnB,IAASC,EAAI,EAAGA,EAAIxB,EAASyB,OAAQD,IAAK,CAGzC,IAFA,IAAKL,EAAUC,EAAIC,GAAYrB,EAASwB,GACpCE,GAAY,EACPC,EAAI,EAAGA,EAAIR,EAASM,OAAQE,MACpB,EAAXN,GAAsBC,GAAgBD,IAAaO,OAAOC,KA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/webpack/runtime/create fake namespace object","webpack://@my-react/ssr-example/webpack/runtime/load script","webpack://@my-react/ssr-example/webpack/bootstrap","webpack://@my-react/ssr-example/webpack/runtime/chunk prefetch function","webpack://@my-react/ssr-example/webpack/runtime/compat get default export","webpack://@my-react/ssr-example/webpack/runtime/define property getters","webpack://@my-react/ssr-example/webpack/runtime/ensure chunk","webpack://@my-react/ssr-example/webpack/runtime/get javascript chunk filename","webpack://@my-react/ssr-example/webpack/runtime/get mini-css chunk filename","webpack://@my-react/ssr-example/webpack/runtime/global","webpack://@my-react/ssr-example/webpack/runtime/hasOwnProperty shorthand","webpack://@my-react/ssr-example/webpack/runtime/make namespace object","webpack://@my-react/ssr-example/webpack/runtime/node module decorator","webpack://@my-react/ssr-example/webpack/runtime/publicPath","webpack://@my-react/ssr-example/webpack/runtime/jsonp chunk loading","webpack://@my-react/ssr-example/webpack/runtime/nonce"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@my-react/ssr-example:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.F = {};\n__webpack_require__.E = (chunkId) => {\n\tObject.keys(__webpack_require__.F).map((key) => {\n\t\t__webpack_require__.F[key](chunkId);\n\t});\n}","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + ({\"11\":\"page-Excalidraw\",\"54\":\"page-About\",\"101\":\"page-Tldraw\",\"505\":\"page-404\",\"719\":\"page-Blog\",\"907\":\"page-\"}[chunkId] || chunkId) + \"-\" + {\"11\":\"114f4767dfd0870e5c45\",\"54\":\"bd6471c623144db5bed8\",\"101\":\"7c5213eacb3f527b2e0c\",\"505\":\"d5669149c7150a6ebdfb\",\"674\":\"e112213c2e892f76f561\",\"719\":\"65f19307ddb7bb842bdf\",\"907\":\"53b9063d91581b619547\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/MyReact/client/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t121: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(121 != chunkId) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n__webpack_require__.F.j = (chunkId) => {\n\tif((!__webpack_require__.o(installedChunks, chunkId) || installedChunks[chunkId] === undefined) && 121 != chunkId) {\n\t\tinstalledChunks[chunkId] = null;\n\t\tvar link = document.createElement('link');\n\n\t\tif (__webpack_require__.nc) {\n\t\t\tlink.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tlink.rel = \"prefetch\";\n\t\tlink.as = \"script\";\n\t\tlink.href = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\tdocument.head.appendChild(link);\n\t}\n};\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_my_react_ssr_example\"] = self[\"webpackChunk_my_react_ssr_example\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","F","E","chunkId","map","n","getter","__esModule","d","a","getPrototypeOf","obj","t","value","mode","this","then","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","get","f","e","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","p","installedChunks","installedChunkData","promise","resolve","reject","error","Error","errorType","realSrc","message","name","request","link","rel","as","href","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self"],"sourceRoot":""} \ No newline at end of file diff --git a/client/vendor-43bad59d52e373c98dc1.js.LICENSE.txt b/client/vendor-43bad59d52e373c98dc1.js.LICENSE.txt deleted file mode 100644 index f7fed2af..00000000 --- a/client/vendor-43bad59d52e373c98dc1.js.LICENSE.txt +++ /dev/null @@ -1,139 +0,0 @@ -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - */ - -/*! #__NO_SIDE_EFFECTS__ */ - -/*! Bundled license information: - -mime-db/index.js: - (*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - *) -*/ - -/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/** - * @license React - * use-sync-external-store-with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/** - * @remix-run/router v1.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */ - -/** - * String.prototype.replaceAll() polyfill - * https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/ - * @author Chris Ferdinandi - * @license MIT - */ - -/** - * chroma.js - JavaScript library for color conversions - * - * Copyright (c) 2011-2019, Gregor Aisch - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. The name Gregor Aisch may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, - * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * ------------------------------------------------------- - * - * chroma.js includes colors from colorbrewer2.org, which are released under - * the following license: - * - * Copyright (c) 2002 Cynthia Brewer, Mark Harrower, - * and The Pennsylvania State University. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific - * language governing permissions and limitations under the License. - * - * ------------------------------------------------------ - * - * Named colors are taken from X11 Color Names. - * http://www.w3.org/TR/css3-color/#svg-color - * - * @preserve - */ - -/** -* @vue/shared v3.4.38 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/ - -/**! - * hotkeys-js v3.9.4 - * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. - * - * Copyright (c) 2022 kenny wong - * http://jaywcjlove.github.io/hotkeys - * Licensed under the MIT license - */ diff --git a/client/vendor-43bad59d52e373c98dc1.js b/client/vendor-69a404b80b0f9f8959e2.js similarity index 68% rename from client/vendor-43bad59d52e373c98dc1.js rename to client/vendor-69a404b80b0f9f8959e2.js index a28120b1..3d057197 100644 --- a/client/vendor-43bad59d52e373c98dc1.js +++ b/client/vendor-69a404b80b0f9f8959e2.js @@ -1,5 +1,5 @@ -/*! For license information please see vendor-43bad59d52e373c98dc1.js.LICENSE.txt */ -(self.webpackChunk_my_react_ssr_example=self.webpackChunk_my_react_ssr_example||[]).push([[502],{6057:(e,t,n)=>{var r,i;self,e.exports=(r=n(19953),i=n(60496),function(){var e,t,n,o,a={5779:function(e,t){"use strict";t.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,i=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|:)/gim,s=[".","/"];t.N=function(e){var t,l=(t=e||"",t.replace(r,(function(e,t){return String.fromCharCode(t)}))).replace(i,"").replace(o,"").trim();if(!l)return"about:blank";if(function(e){return s.indexOf(e[0])>-1}(l))return l;var c=l.match(a);if(!c)return l;var u=c[0];return n.test(u)?"about:blank":l}},7217:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},9335:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(9787);function i(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function o(...e){return(0,r.useCallback)(i(...e),e)}},1267:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(9787);function i(e,t=[]){let n=[];const i=()=>{const t=n.map((e=>(0,r.createContext)(e)));return function(n){const i=(null==n?void 0:n[e])||t;return(0,r.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:i}})),[n,i])}};return i.scopeName=e,[function(t,i){const o=(0,r.createContext)(i),a=n.length;function s(t){const{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,c=(0,r.useMemo)((()=>s),Object.values(s));return(0,r.createElement)(l.Provider,{value:c},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][a])||o,c=(0,r.useContext)(l);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},o(i,...t)]}function o(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const i=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,r.useMemo)((()=>({[`__scope${t.scopeName}`]:i})),[i])}};return n.scopeName=t.scopeName,n}},5622:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(9787),i=n(3348);const o=r["useId".toString()]||(()=>{});let a=0;function s(e){const[t,n]=r.useState(o());return(0,i.b)((()=>{e||n((e=>null!=e?e:String(a++)))}),[e]),e||(t?`radix-${t}`:"")}},1483:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(9787),i=n(5156),o=n(9335),a=n(3348);const s=e=>{const{present:t,children:n}=e,s=function(e){const[t,n]=(0,r.useState)(),o=(0,r.useRef)({}),s=(0,r.useRef)(e),c=(0,r.useRef)("none"),u=e?"mounted":"unmounted",[d,p]=function(e,t){return(0,r.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)((()=>{const e=l(o.current);c.current="mounted"===d?e:"none"}),[d]),(0,a.b)((()=>{const t=o.current,n=s.current;if(n!==e){const r=c.current,i=l(t);e?p("MOUNT"):"none"===i||"none"===(null==t?void 0:t.display)?p("UNMOUNT"):p(n&&r!==i?"ANIMATION_OUT":"UNMOUNT"),s.current=e}}),[e,p]),(0,a.b)((()=>{if(t){const e=e=>{const n=l(o.current).includes(e.animationName);e.target===t&&n&&(0,i.flushSync)((()=>p("ANIMATION_END")))},n=e=>{e.target===t&&(c.current=l(o.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,r.useCallback)((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),c="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),u=(0,o.e)(s.ref,c.ref);return"function"==typeof n||s.isPresent?(0,r.cloneElement)(c,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},3119:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(11),i=n(9787),o=n(5156),a=n(4801);const s=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,i.forwardRef)(((e,n)=>{const{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function l(e,t){e&&(0,o.flushSync)((()=>e.dispatchEvent(t)))}},4801:function(e,t,n){"use strict";n.d(t,{g7:function(){return a}});var r=n(11),i=n(9787),o=n(9335);const a=(0,i.forwardRef)(((e,t)=>{const{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(c);if(l){const e=l.props.children,n=a.map((t=>t===l?i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null:t));return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)}));a.displayName="Slot";const s=(0,i.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...u(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null}));s.displayName="SlotClone";const l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function c(e){return(0,i.isValidElement)(e)&&e.type===l}function u(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}},3060:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(9787);function i(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),(0,r.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},2673:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(9787),i=n(3060);function o({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[o,a]=function({defaultProp:e,onChange:t}){const n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)((()=>{a.current!==o&&(s(o),a.current=o)}),[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,c=(0,i.W)(n);return[l,(0,r.useCallback)((t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&c(n)}else a(t)}),[s,e,a,c])]}},3348:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(9787);const i=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},45:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n="undefined"!=typeof Buffer;function r(e){for(var n=-1,r=0,i=e.length-7;r>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])])>>>8^t[255&(n^e[r++])];for(;r>>8^t[255&(n^e[r++])];return-1^n}e.table=t,e.bstr=function(e){if(e.length>32768&&n)return r(new Buffer(e));for(var i=-1,o=e.length-1,a=0;a>>8,i=t[255&(i^e.charCodeAt(a++))]^i>>>8;return a===o&&(i=i>>>8^t[255&(i^e.charCodeAt(a))]),-1^i},e.buf=function(e){if(e.length>1e4)return r(e);for(var n=-1,i=0,o=e.length-3;i>>8^t[255&(n^e[i++])])>>>8^t[255&(n^e[i++])])>>>8^t[255&(n^e[i++])])>>>8^t[255&(n^e[i++])];for(;i>>8^t[255&(n^e[i++])];return-1^n},e.str=function(e){for(var n,r,i=-1,o=0,a=e.length;o>>8^t[255&(i^n)]:n<2048?i=(i=i>>>8^t[255&(i^(192|n>>6&31))])>>>8^t[255&(i^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),r=1023&e.charCodeAt(o++),i=(i=(i=(i=i>>>8^t[255&(i^(240|n>>8&7))])>>>8^t[255&(i^(128|n>>2&63))])>>>8^t[255&(i^(128|r>>6&15|3&n))])>>>8^t[255&(i^(128|63&r))]):i=(i=(i=i>>>8^t[255&(i^(224|n>>12&15))])>>>8^t[255&(i^(128|n>>6&63))])>>>8^t[255&(i^(128|63&n))];return-1^i}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},200:function(e,t,n){var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),p=Object.prototype.toString,h=Math.max,f=Math.min,m=function(){return d.Date.now()};function g(e,t,n){var i,o,a,s,l,c,u=0,d=!1,p=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function y(t){var n=i,r=o;return i=o=void 0,u=t,s=e.apply(r,n)}function x(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function w(){var e=m();if(x(e))return O(e);l=setTimeout(w,function(e){var n=t-(e-c);return p?f(n,a-(e-u)):n}(e))}function O(e){return l=void 0,g&&i?y(e):(i=o=void 0,s)}function k(){var e=m(),n=x(e);if(i=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),d?y(e):s}(c);if(p)return l=setTimeout(w,t),y(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=b(t)||0,v(n)&&(d=!!n.leading,a=(p="maxWait"in n)?h(b(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0},k.flush=function(){return void 0===l?s:O(m())},k}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=a.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return v(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}},2744:function(e,t,n){"use strict";var r={};(0,n(9187).assign)(r,n(4395),n(578),n(2684)),e.exports=r},4395:function(e,t,n){"use strict";var r=n(6193),i=n(9187),o=n(8592),a=n(5604),s=n(249),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new c(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}c.prototype.push=function(e,t){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=c,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},578:function(e,t,n){"use strict";var r=n(7823),i=n(9187),o=n(8592),a=n(2684),s=n(5604),l=n(249),c=n(9968),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[n])}function p(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,p=this.strm,h=this.options.chunkSize,f=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new i.Buf8(h),p.next_out=0,p.avail_out=h),(n=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&f&&(n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),c=p.next_out-l,d=o.buf2string(p.output,l),p.next_out=c,p.avail_out=h-c,c&&i.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((p.avail_in>0||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),p.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=d,t.inflate=p,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},t.ungzip=p},9187:function(e,t){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},3693:function(e){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},2684:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(e){"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var o=t,a=i+r;e^=-1;for(var s=i;s>>8^o[255&(e^n[s])];return-1^e}},6193:function(e,t,n){"use strict";var r,i=n(9187),o=n(8676),a=n(3693),s=n(8464),l=n(5604),c=-2,u=258,d=262,p=103,h=113,f=666;function m(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function v(e){for(var t=e.length;--t>=0;)e[t]=0}function b(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function y(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,b(e.strm)}function x(e,t){e.pending_buf[e.pending++]=t}function w(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function O(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,c=e.window,p=e.w_mask,h=e.prev,f=e.strstart+u,m=c[o+a-1],g=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===g&&c[n+a-1]===m&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;m=c[o+a-1],g=c[o+a]}}}while((t=h[t&p])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function k(e){var t,n,r,o,l,c,u,p,h,f,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=m?r-m:0}while(--n);t=n=m;do{r=e.prev[--t],e.prev[t]=r>=m?r-m:0}while(--n);o+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,p=e.strstart+e.lookahead,h=o,f=void 0,(f=c.avail_in)>h&&(f=h),n=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,p),1===c.state.wrap?c.adler=a(c.adler,u,f,p):2===c.state.wrap&&(c.adler=s(c.adler,u,f,p)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return m(e,c);8===r&&(r=9);var l=new C;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)})),new _(4,4,8,4,S),new _(4,5,16,8,S),new _(4,6,32,32,S),new _(4,4,16,16,E),new _(8,16,32,32,E),new _(8,16,128,128,E),new _(8,32,128,256,E),new _(32,128,258,1024,E),new _(32,258,258,4096,E)],t.deflateInit=function(e,t){return I(e,t,8,15,8,0)},t.deflateInit2=I,t.deflateReset=j,t.deflateResetKeep=P,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},t.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||t>5||t<0)return e?m(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===f&&4!==t)return m(e,0===e.avail_out?-5:c);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,x(i,31),x(i,139),x(i,8),i.gzhead?(x(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),x(i,255&i.gzhead.time),x(i,i.gzhead.time>>8&255),x(i,i.gzhead.time>>16&255),x(i,i.gzhead.time>>24&255),x(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),x(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(x(i,255&i.gzhead.extra.length),x(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(x(i,0),x(i,0),x(i,0),x(i,0),x(i,0),x(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),x(i,3),i.status=h);else{var d=8+(i.w_bits-8<<4)<<8;d|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=h,w(i,d),0!==i.strstart&&(w(i,e.adler>>>16),w(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending!==i.pending_buf_size));)x(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),b(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=p)}else i.status=p;if(i.status===p&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&b(e),i.pending+2<=i.pending_buf_size&&(x(i,255&e.adler),x(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(b(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(n)&&4!==t)return m(e,-5);if(i.status===f&&0!==e.avail_in)return m(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==f){var O=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=u){if(k(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+u;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==O&&4!==O||(i.status=f),1===O||3===O)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===O&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(v(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),b(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(x(i,255&e.adler),x(i,e.adler>>8&255),x(i,e.adler>>16&255),x(i,e.adler>>24&255),x(i,255&e.total_in),x(i,e.total_in>>8&255),x(i,e.total_in>>16&255),x(i,e.total_in>>24&255)):(w(i,e.adler>>>16),w(i,65535&e.adler)),b(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==p&&t!==h&&t!==f?m(e,c):(e.state=null,t===h?m(e,-3):0):c},t.deflateSetDictionary=function(e,t){var n,r,o,s,l,u,d,p,h=t.length;if(!e||!e.state)return c;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return c;for(1===s&&(e.adler=a(e.adler,t,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(v(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,h-n.w_size,n.w_size,0),t=p,h=n.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=h,e.next_in=0,e.input=t,k(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<>>=x=y>>>24,f-=x,0==(x=y>>>16&255))_[o++]=65535&y;else{if(!(16&x)){if(0==(64&x)){y=m[(65535&y)+(h&(1<>>=x,f-=x),f<15&&(h+=E[r++]<>>=x=y>>>24,f-=x,!(16&(x=y>>>16&255))){if(0==(64&x)){y=g[(65535&y)+(h&(1<l){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=x,f-=x,O>(x=o-a)){if((x=O-x)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,S=p,0===d){if(k+=c-x,x2;)_[o++]=S[k++],_[o++]=S[k++],_[o++]=S[k++],w-=3;w&&(_[o++]=S[k++],w>1&&(_[o++]=S[k++]))}else{k=o-O;do{_[o++]=_[k++],_[o++]=_[k++],_[o++]=_[k++],w-=3}while(w>2);w&&(_[o++]=_[k++],w>1&&(_[o++]=_[k++]))}break}}break}}while(r>3,h&=(1<<(f-=w<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,h(e)):l}function m(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):l}function g(e,t){var n,r;return e?(r=new p,e.state=r,r.window=null,0!==(n=m(e,t))&&(e.state=null),n):l}var v,b,y=!0;function x(e){if(y){var t;for(v=new r.Buf32(512),b=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,v,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,b,0,e.work,{bits:5}),y=!1}e.lencode=v,e.lenbits=9,e.distcode=b,e.distbits=5}function w(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,Z,2,0),b=0,y=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",n.mode=u;break}if(8!=(15&b)){e.msg="unknown compression method",n.mode=u;break}if(y-=4,D=8+(15&(b>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){e.msg="invalid window size",n.mode=u;break}n.dmax=1<>8&1),512&n.flags&&(Z[0]=255&b,Z[1]=b>>>8&255,n.check=o(n.check,Z,2,0)),b=0,y=0,n.mode=3;case 3:for(;y<32;){if(0===g)break e;g--,b+=p[f++]<>>8&255,Z[2]=b>>>16&255,Z[3]=b>>>24&255,n.check=o(n.check,Z,4,0)),b=0,y=0,n.mode=4;case 4:for(;y<16;){if(0===g)break e;g--,b+=p[f++]<>8),512&n.flags&&(Z[0]=255&b,Z[1]=b>>>8&255,n.check=o(n.check,Z,2,0)),b=0,y=0,n.mode=5;case 5:if(1024&n.flags){for(;y<16;){if(0===g)break e;g--,b+=p[f++]<>>8&255,n.check=o(n.check,Z,2,0)),b=0,y=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((S=n.length)>g&&(S=g),S&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,p,f,S,D)),512&n.flags&&(n.check=o(n.check,p,S,f)),g-=S,f+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===g)break e;S=0;do{D=p[f+S++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D))}while(D&&S>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=c;break;case 10:for(;y<32;){if(0===g)break e;g--,b+=p[f++]<>>=7&y,y-=7&y,n.mode=27;break}for(;y<3;){if(0===g)break e;g--,b+=p[f++]<>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6===t){b>>>=2,y-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=u}b>>>=2,y-=2;break;case 14:for(b>>>=7&y,y-=7&y;y<32;){if(0===g)break e;g--,b+=p[f++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=u;break}if(n.length=65535&b,b=0,y=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(S>g&&(S=g),S>v&&(S=v),0===S)break e;r.arraySet(h,p,f,S,m),g-=S,f+=S,v-=S,m+=S,n.length-=S;break}n.mode=c;break;case 17:for(;y<14;){if(0===g)break e;g--,b+=p[f++]<>>=5,y-=5,n.ndist=1+(31&b),b>>>=5,y-=5,n.ncode=4+(15&b),b>>>=4,y-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=u;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,y-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},A=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,A){e.msg="invalid code lengths set",n.mode=u;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,j=65535&z,!((C=z>>>24)<=y);){if(0===g)break e;g--,b+=p[f++]<>>=C,y-=C,n.lens[n.have++]=j;else{if(16===j){for(L=C+2;y>>=C,y-=C,0===n.have){e.msg="invalid bit length repeat",n.mode=u;break}D=n.lens[n.have-1],S=3+(3&b),b>>>=2,y-=2}else if(17===j){for(L=C+3;y>>=C)),b>>>=3,y-=3}else{for(L=C+7;y>>=C)),b>>>=7,y-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=u;break}for(;S--;)n.lens[n.have++]=D}}if(n.mode===u)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=u;break}if(n.lenbits=9,R={bits:n.lenbits},A=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,A){e.msg="invalid literal/lengths set",n.mode=u;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},A=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,A){e.msg="invalid distances set",n.mode=u;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(g>=6&&v>=258){e.next_out=m,e.avail_out=v,e.next_in=f,e.avail_in=g,n.hold=b,n.bits=y,a(e,k),m=e.next_out,h=e.output,v=e.avail_out,f=e.next_in,p=e.input,g=e.avail_in,b=n.hold,y=n.bits,n.mode===c&&(n.back=-1);break}for(n.back=0;P=(z=n.lencode[b&(1<>>16&255,j=65535&z,!((C=z>>>24)<=y);){if(0===g)break e;g--,b+=p[f++]<>I)])>>>16&255,j=65535&z,!(I+(C=z>>>24)<=y);){if(0===g)break e;g--,b+=p[f++]<>>=I,y-=I,n.back+=I}if(b>>>=C,y-=C,n.back+=C,n.length=j,0===P){n.mode=26;break}if(32&P){n.back=-1,n.mode=c;break}if(64&P){e.msg="invalid literal/length code",n.mode=u;break}n.extra=15&P,n.mode=22;case 22:if(n.extra){for(L=n.extra;y>>=n.extra,y-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;P=(z=n.distcode[b&(1<>>16&255,j=65535&z,!((C=z>>>24)<=y);){if(0===g)break e;g--,b+=p[f++]<>I)])>>>16&255,j=65535&z,!(I+(C=z>>>24)<=y);){if(0===g)break e;g--,b+=p[f++]<>>=I,y-=I,n.back+=I}if(b>>>=C,y-=C,n.back+=C,64&P){e.msg="invalid distance code",n.mode=u;break}n.offset=j,n.extra=15&P,n.mode=24;case 24:if(n.extra){for(L=n.extra;y>>=n.extra,y-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=u;break}n.mode=25;case 25:if(0===v)break e;if(S=k-v,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=u;break}S>n.wnext?(S-=n.wnext,E=n.wsize-S):E=n.wnext-S,S>n.length&&(S=n.length),_=n.window}else _=h,E=m-n.offset,S=n.length;S>v&&(S=v),v-=S,n.length-=S;do{h[m++]=_[E++]}while(--S);0===n.length&&(n.mode=21);break;case 26:if(0===v)break e;h[m++]=n.length,v--,n.mode=21;break;case 27:if(n.wrap){for(;y<32;){if(0===g)break e;g--,b|=p[f++]<=1&&0===R[_];_--);if(C>_&&(C=_),0===_)return c[u++]=20971520,c[u++]=20971520,p.bits=1,0;for(E=1;E<_&&0===R[E];E++);for(C0&&(0===e||1!==_))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+R[k];for(S=0;S852||2===e&&T>592)return 1;for(;;){y=k-j,d[S]b?(x=z[Z+d[S]],w=D[A+d[S]]):(x=96,w=0),h=1<>j)+(f-=h)]=y<<24|x<<16|w|0}while(0!==f);for(h=1<>=1;if(0!==h?(M&=h-1,M+=h):M=0,S++,0==--R[k]){if(k===_)break;k=t[n+d[S]]}if(k>C&&(M&g)!==m){for(0===j&&(j=C),v+=E,I=1<<(P=k-j);P+j<_&&!((I-=R[P+j])<=0);)P++,I<<=1;if(T+=1<852||2===e&&T>592)return 1;c[m=M&g]=C<<24|P<<16|v-u|0}}return 0!==M&&(c[v+M]=k-j<<24|64<<16|0),p.bits=C,0}},5604:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(e,t,n){"use strict";var r=n(9187);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=15,a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var d=new Array(60);i(d);var p=new Array(512);i(p);var h=new Array(256);i(h);var f=new Array(29);i(f);var m,g,v,b=new Array(30);function y(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?p[e]:p[256+(e>>>7)]}function O(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function _(e,t,n){var r,i,a=new Array(16),s=0;for(r=1;r<=o;r++)a[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var l=e[2*i+1];0!==l&&(e[2*i]=E(a[l]++,l))}}function C(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function P(e){e.bi_valid>8?O(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)I(e,a,n);i=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],I(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,I(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,s,l,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,p=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(a=0;a<=o;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)>m&&(a=m,g++),c[2*r+1]=a,r>u||(e.bl_count[a]++,s=0,r>=f&&(s=h[r-f]),l=c[2*r],e.opt_len+=l*(a+s),p&&(e.static_len+=l*(d[2*r+1]+s)));if(0!==g){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,g-=2}while(g>0);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>u||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),_(a,u,e.bl_count)}function D(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s>=7;r<30;r++)for(b[r]=i<<7,e=0;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),a=function(e){var t;for(D(e,e.dyn_ltree,e.l_desc.max_code),D(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?L(e,t,n,r):4===e.strategy||o===i?(k(e,2+(r?1:0),3),T(e,u,d)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(h[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),S(e,256,u),function(e){16===e.bi_valid?(O(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},249:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(e){e.exports=function(e){e.data&&e.name&&(e=e.data);for(var t=!0,n="",r="",i=0;i=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var n,r=e.length+t.length+1,i=new Uint8Array(r),o=0,a=0;a1&&s.push(n)):s.push(n),s.push(e[t+3])}else{const r=.5,i=e[t+0],l=e[t+1],c=e[t+2],u=e[t+3],d=o(i,l,r),p=o(l,c,r),h=o(c,u,r),f=o(d,p,r),m=o(p,h,r),g=o(f,m,r);a([i,d,f,g],0,n,s),a([g,m,h,u],0,n,s)}var l,c;return s}function s(e,t){return l(e,0,e.length,t)}function l(e,t,n,r,o){const a=o||[],s=e[t],c=e[n-1];let u=0,d=1;for(let r=t+1;ru&&(u=t,d=r)}return Math.sqrt(u)>r?(l(e,t,d+1,r,a),l(e,d,n,r,a)):(a.length||a.push(s),a.push(c)),a}function c(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let n=0;n0?l(r,0,r.length,n):r}n.d(t,{og:function(){return s},sU:function(){return c}})},6094:function(e,t,n){"use strict";var r=n(9787),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},4512:function(e,t,n){"use strict";e.exports=n(6094)},8128:function(e,t,n){"use strict";function r(e,t,n){if(e&&e.length){const[r,i]=t,o=Math.PI/180*n,a=Math.cos(o),s=Math.sin(o);for(const t of e){const[e,n]=t;t[0]=(e-r)*a-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*a+i}}}function i(e,t){return e[0]===t[0]&&e[1]===t[1]}function o(e,t,n,o=1){const a=n,s=Math.max(t,.1),l=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,c=[0,0];if(a)for(const e of l)r(e,c,a);const u=function(e,t,n){const r=[];for(const t of e){const e=[...t];i(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}const o=[];t=Math.max(t,.1);const a=[];for(const e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return o;let s=[],l=a[0].ymin,c=0;for(;s.length||a.length;){if(a.length){let e=-1;for(let t=0;tl);t++)e=t;a.splice(0,e+1).forEach((e=>{s.push({s:l,edge:e})}))}if(s=s.filter((e=>!(e.edge.ymax<=l))),s.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(1!==n||c%t==0)&&s.length>1)for(let e=0;e=s.length)break;const n=s[e].edge,r=s[t].edge;o.push([[Math.round(n.x),l],[Math.round(r.x),l]])}l+=n,s.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),c++}return o}(l,s,o);if(a){for(const e of l)r(e,c,-a);!function(e,t,n){const i=[];e.forEach((e=>i.push(...e))),r(i,t,n)}(u,c,-a)}return u}function a(e,t){var n;const r=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.max(i,.1);let a=1;return t.roughness>=1&&((null===(n=t.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(a=i),o(e,i,r,a||1)}n.d(t,{V:function(){return ne}});class s{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const n=a(e,t);return{type:"fillSketch",ops:this.renderLines(n,t)}}renderLines(e,t){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}function l(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class c extends s{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const r=a(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,o=[],s=.5*n*Math.cos(i),c=.5*n*Math.sin(i);for(const[e,t]of r)l([e,t])&&o.push([[e[0]-s,e[1]+c],[...t]],[[e[0]+s,e[1]-c],[...t]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}}class u extends s{fillPolygons(e,t){const n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class d{constructor(e){this.helper=e}fillPolygons(e,t){const n=a(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){const n=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const o=r/4;for(const a of e){const e=l(a),s=e/r,c=Math.ceil(s)-1,u=e-c*r,d=(a[0][0]+a[1][0])/2-r/4,p=Math.min(a[0][1],a[1][1]);for(let e=0;e{const o=l(e),a=Math.floor(o/(n+r)),s=(o+r-a*(n+r))/2;let c=e[0],u=e[1];c[0]>u[0]&&(c=e[1],u=e[0]);const d=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let e=0;e{const i=l(e),o=Math.round(i/(2*t));let a=e[0],s=e[1];a[0]>s[0]&&(a=e[1],s=e[0]);const c=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let e=0;er%2?e+n:e+t));o.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":o.push({key:"Q",data:[...s]}),t=s[2],n=s[3];break;case"q":{const e=s.map(((e,r)=>r%2?e+n:e+t));o.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":o.push({key:"A",data:[...s]}),t=s[5],n=s[6];break;case"a":t+=s[5],n+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case"H":o.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...s]}),t=s[2],n=s[3];break;case"s":{const e=s.map(((e,r)=>r%2?e+n:e+t));o.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":o.push({key:"T",data:[...s]}),t=s[0],n=s[1];break;case"t":t+=s[0],n+=s[1],o.push({key:"T",data:[t,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=r,n=i}return o}function x(e){const t=[];let n="",r=0,i=0,o=0,a=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[o,a]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,o=0;"C"===n||"S"===n?(e=r+(r-s),o=i+(i-l)):(e=r,o=i),t.push({key:"C",data:[e,o,...u]}),s=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[e,o]=u;let a=0,c=0;"Q"===n||"T"===n?(a=r+(r-s),c=i+(i-l)):(a=r,c=i);const d=r+2*(a-r)/3,p=i+2*(c-i)/3,h=e+2*(a-e)/3,f=o+2*(c-o)/3;t.push({key:"C",data:[d,p,h,f,e,o]}),s=a,l=c,r=e,i=o;break}case"Q":{const[e,n,o,a]=u,c=r+2*(e-r)/3,d=i+2*(n-i)/3,p=o+2*(e-o)/3,h=a+2*(n-a)/3;t.push({key:"C",data:[c,d,p,h,o,a]}),s=e,l=n,r=o,i=a;break}case"A":{const e=Math.abs(u[0]),n=Math.abs(u[1]),o=u[2],a=u[3],s=u[4],l=u[5],c=u[6];0===e||0===n?(t.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):r===l&&i===c||(O(r,i,l,c,e,n,o,a,s).forEach((function(e){t.push({key:"C",data:e})})),r=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),r=o,i=a}n=c}return t}function w(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function O(e,t,n,r,i,o,a,s,l,c){const u=(d=a,Math.PI*d/180);var d;let p=[],h=0,f=0,m=0,g=0;if(c)[h,f,m,g]=c;else{[e,t]=w(e,t,-u),[n,r]=w(n,r,-u);const a=(e-n)/2,c=(t-r)/2;let d=a*a/(i*i)+c*c/(o*o);d>1&&(d=Math.sqrt(d),i*=d,o*=d);const p=i*i,v=o*o,b=p*v-p*c*c-v*a*a,y=p*c*c+v*a*a,x=(s===l?-1:1)*Math.sqrt(Math.abs(b/y));m=x*i*c/o+(e+n)/2,g=x*-o*a/i+(t+r)/2,h=Math.asin(parseFloat(((t-g)/o).toFixed(9))),f=Math.asin(parseFloat(((r-g)/o).toFixed(9))),ef&&(h-=2*Math.PI),!l&&f>h&&(f-=2*Math.PI)}let v=f-h;if(Math.abs(v)>120*Math.PI/180){const e=f,t=n,s=r;f=l&&f>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,p=O(n=m+i*Math.cos(f),r=g+o*Math.sin(f),t,s,i,o,a,0,l,[f,e,m,g])}v=f-h;const b=Math.cos(h),y=Math.sin(h),x=Math.cos(f),k=Math.sin(f),S=Math.tan(v/4),E=4/3*i*S,_=4/3*o*S,C=[e,t],P=[e+E*y,t-_*b],j=[n+E*k,r-_*x],I=[n,r];if(P[0]=2*C[0]-P[0],P[1]=2*C[1]-P[1],c)return[P,j,I].concat(p);{p=[P,j,I].concat(p);const e=[];for(let t=0;t2){const i=[];for(let t=0;t2*Math.PI&&(h=0,f=2*Math.PI);const m=2*Math.PI/l.curveStepCount,g=Math.min(m/2,(f-h)/2),v=B(g,c,u,d,p,h,f,1,l);if(!l.disableMultiStroke){const e=B(g,c,u,d,p,h,f,1.5,l);v.push(...e)}return a&&(s?v.push(...L(c,u,c+d*Math.cos(h),u+p*Math.sin(h),l),...L(c,u,c+d*Math.cos(f),u+p*Math.sin(f),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+d*Math.cos(h),u+p*Math.sin(h)]})),{type:"path",ops:v}}function I(e,t){const n=x(y(b(e))),r=[];let i=[0,0],o=[0,0];for(const{key:e,data:a}of n)switch(e){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...L(o[0],o[1],a[0],a[1],t)),o=[a[0],a[1]];break;case"C":{const[e,n,i,s,l,c]=a;r.push(...F(e,n,i,s,l,c,o,t)),o=[l,c];break}case"Z":r.push(...L(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]]}return{type:"path",ops:r}}function T(e,t){const n=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+R(e,t),r[0][1]+R(e,t)]});for(let o=1;o500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);const d=u/2,p=.2+.2*D(i);let h=i.bowing*i.maxRandomnessOffset*(r-t)/200,f=i.bowing*i.maxRandomnessOffset*(e-n)/200;h=R(h,i,c),f=R(f,i,c);const m=[],g=()=>R(d,i,c),v=()=>R(u,i,c),b=i.preserveVertices;return o&&(a?m.push({op:"move",data:[e+(b?0:g()),t+(b?0:g())]}):m.push({op:"move",data:[e+(b?0:R(u,i,c)),t+(b?0:R(u,i,c))]})),a?m.push({op:"bcurveTo",data:[h+e+(n-e)*p+g(),f+t+(r-t)*p+g(),h+e+2*(n-e)*p+g(),f+t+2*(r-t)*p+g(),n+(b?0:g()),r+(b?0:g())]}):m.push({op:"bcurveTo",data:[h+e+(n-e)*p+v(),f+t+(r-t)*p+v(),h+e+2*(n-e)*p+v(),f+t+2*(r-t)*p+v(),n+(b?0:v()),r+(b?0:v())]}),m}function Z(e,t,n){const r=[];r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]),r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]);for(let i=1;i3){const o=[],a=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n)):i.push(n),i.push(e[t+3])}else{const r=.5,o=e[t+0],a=e[t+1],s=e[t+2],l=e[t+3],c=U(o,a,r),u=U(a,s,r),d=U(s,l,r),p=U(c,u,r),h=U(u,d,r),f=U(p,h,r);Y([o,c,p,f],0,n,i),Y([f,h,d,l],0,n,i)}var o,a;return i}function V(e,t,n,r,i){const o=i||[],a=e[t],s=e[n-1];let l=0,c=1;for(let r=t+1;rl&&(l=t,c=r)}return Math.sqrt(l)>r?(V(e,t,c+1,r,o),V(e,c,n,r,o)):(o.length||o.push(a),o.push(s)),o}function q(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function X(e,t,n){const r=q(t,n);if(0===r)return q(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),q(e,G(t,n,i))}function G(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function K(e,t,n,r){const i=r||[];if(function(e,t){const n=e[t+0],r=e[t+1],i=e[t+2],o=e[t+3];let a=3*r[0]-2*n[0]-o[0];a*=a;let s=3*r[1]-2*n[1]-o[1];s*=s;let l=3*i[0]-2*o[0]-n[0];l*=l;let c=3*i[1]-2*o[1]-n[1];return c*=c,a1&&i.push(n)):i.push(n),i.push(e[t+3])}else{const r=.5,o=e[t+0],a=e[t+1],s=e[t+2],l=e[t+3],c=G(o,a,r),u=G(a,s,r),d=G(s,l,r),p=G(c,u,r),h=G(u,d,r),f=G(p,h,r);K([o,c,p,f],0,n,i),K([f,h,d,l],0,n,i)}var o,a;return i}function J(e,t){return ee(e,0,e.length,t)}function ee(e,t,n,r,i){const o=i||[],a=e[t],s=e[n-1];let l=0,c=1;for(let r=t+1;rl&&(l=t,c=r)}return Math.sqrt(l)>r?(ee(e,t,c+1,r,o),ee(e,c,n,r,o)):(o.length||o.push(a),o.push(s)),o}const te="none";class ne{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return(0,m.W)()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){const o=this._o(i);return this._d("line",[S(e,t,n,r,o)],o)}rectangle(e,t,n,r,i){const o=this._o(i),a=[],s=function(e,t,n,r,i){return function(e,t){return E(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}(e,t,n,r,o);if(o.fill){const i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===o.fillStyle?a.push(T([i],o)):a.push(M([i],o))}return o.stroke!==te&&a.push(s),this._d("rectangle",a,o)}ellipse(e,t,n,r,i){const o=this._o(i),a=[],s=C(n,r,o),l=P(e,t,o,s);if(o.fill)if("solid"===o.fillStyle){const n=P(e,t,o,s).opset;n.type="fillPath",a.push(n)}else a.push(M([l.estimatedPoints],o));return o.stroke!==te&&a.push(l.opset),this._d("ellipse",a,o)}circle(e,t,n,r){const i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){const n=this._o(t);return this._d("linearPath",[E(e,!1,n)],n)}arc(e,t,n,r,i,o,a=!1,s){const l=this._o(s),c=[],u=j(e,t,n,r,i,o,a,!0,l);if(a&&l.fill)if("solid"===l.fillStyle){const a=Object.assign({},l);a.disableMultiStroke=!0;const s=j(e,t,n,r,i,o,!0,!1,a);s.type="fillPath",c.push(s)}else c.push(function(e,t,n,r,i,o,a){const s=e,l=t;let c=Math.abs(n/2),u=Math.abs(r/2);c+=R(.01*c,a),u+=R(.01*u,a);let d=i,p=o;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const h=(p-d)/a.curveStepCount,f=[];for(let e=d;e<=p;e+=h)f.push([s+c*Math.cos(e),l+u*Math.sin(e)]);return f.push([s+c*Math.cos(p),l+u*Math.sin(p)]),f.push([s,l]),M([f],a)}(e,t,n,r,i,o,l));return l.stroke!==te&&c.push(u),this._d("arc",c,l)}curve(e,t){const n=this._o(t),r=[],i=_(e,n);if(n.fill&&n.fill!==te&&e.length>=3)if("solid"===n.fillStyle){const t=_(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{const t=function(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(Q(e[0]),Q(e[1]),Q(e[2]),Q(e[2]));else{const n=[];n.push(e[0],e[0]);for(let t=1;t0?V(r,0,r.length,n):r}(t,10,(1+n.roughness)/2);r.push(M([i],n))}return n.stroke!==te&&r.push(i),this._d("curve",r,n)}polygon(e,t){const n=this._o(t),r=[],i=E(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(T([e],n)):r.push(M([e],n))),n.stroke!==te&&r.push(i),this._d("polygon",r,n)}path(e,t){const n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==te,o=n.stroke!==te,a=!!(n.simplification&&n.simplification<1),s=function(e,t,n){const r=x(y(b(e))),i=[];let o=[],a=[0,0],s=[];const l=()=>{s.length>=4&&o.push(...function(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let n=0;n0?ee(r,0,r.length,n):r}(s,t)),s=[]},c=()=>{l(),o.length&&(i.push(o),o=[])};for(const{key:e,data:t}of r)switch(e){case"M":c(),a=[t[0],t[1]],o.push(a);break;case"L":l(),o.push([t[0],t[1]]);break;case"C":if(!s.length){const e=o.length?o[o.length-1]:a;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case"Z":l(),o.push([a[0],a[1]])}if(c(),!n)return i;const u=[];for(const e of i){const t=J(e,n);t.length&&u.push(t)}return u}(e,1,a?4-4*(n.simplification||1):(1+n.roughness)/2),l=I(e,n);if(i)if("solid"===n.fillStyle)if(1===s.length){const t=I(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else r.push(T(s,n));else r.push(M(s,n));return o&&(a?s.forEach((e=>{r.push(E(e,!1,n))})):r.push(l)),this._d("path",r,n)}opsToPath(e,t){let n="";for(const r of e.ops){const e="number"==typeof t&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){const t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const e of t){let t=null;switch(e.type){case"path":t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:te};break;case"fillPath":t={d:this.opsToPath(e),stroke:te,strokeWidth:0,fill:n.fill||te};break;case"fillSketch":t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||te,strokeWidth:n,fill:te}}_mergedShape(e){return e.filter(((e,t)=>0===t||"move"!==e.op))}}},8152:function(e,t,n){"use strict";function r(){return Math.floor(Math.random()*2**31)}n.d(t,{W:function(){return r},k:function(){return i}});class i{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}},9845:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(8128);class i{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new r.V(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(const o of t)switch(o.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,o,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,o,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,o,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){e.beginPath();for(const r of t.ops){const t="number"==typeof n&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1])}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){const o=this.gen.line(e,t,n,r,i);return this.draw(o),o}rectangle(e,t,n,r,i){const o=this.gen.rectangle(e,t,n,r,i);return this.draw(o),o}ellipse(e,t,n,r,i){const o=this.gen.ellipse(e,t,n,r,i);return this.draw(o),o}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,o,a=!1,s){const l=this.gen.arc(e,t,n,r,i,o,a,s);return this.draw(l),l}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){const n=this.gen.path(e,t);return this.draw(n),n}}const o="http://www.w3.org/2000/svg";class a{constructor(e,t){this.svg=e,this.gen=new r.V(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(o,"g"),a=e.options.fixedDecimalPlaceDigits;for(const s of t){let t=null;switch(s.type){case"path":t=r.createElementNS(o,"path"),t.setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":t=r.createElementNS(o,"path"),t.setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,s,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=e.createElementNS(o,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){const o=this.gen.line(e,t,n,r,i);return this.draw(o)}rectangle(e,t,n,r,i){const o=this.gen.rectangle(e,t,n,r,i);return this.draw(o)}ellipse(e,t,n,r,i){const o=this.gen.ellipse(e,t,n,r,i);return this.draw(o)}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,o,a=!1,s){const l=this.gen.arc(e,t,n,r,i,o,a,s);return this.draw(l)}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n)}path(e,t){const n=this.gen.path(e,t);return this.draw(n)}}var s={canvas:(e,t)=>new i(e,t),svg:(e,t)=>new a(e,t),generator:e=>new r.V(e),newSeed:()=>r.V.newSeed()}},5714:function(e){e.exports=function(e,t,n){var r=[],i=e.length;if(0===i)return r;var o=t<0?Math.max(0,t+i):t||0;for(void 0!==n&&(i=n<0?n+i:n);i-- >o;)r[i-o]=e[i];return r}},2173:function(e,t,n){"use strict";var r=n(9787),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),a((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},5917:function(e,t,n){"use strict";var r=n(9787),i=n(1374),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},1374:function(e,t,n){"use strict";e.exports=n(2173)},5668:function(e,t,n){"use strict";e.exports=n(5917)},940:function(e,t,n){var r={"./ar-SA.json":[7822,2091],"./az-AZ.json":[9753,4568],"./bg-BG.json":[1203,1628],"./bn-BD.json":[8525,7429],"./ca-ES.json":[510,5130],"./cs-CZ.json":[7605,6265],"./da-DK.json":[2392,1790],"./de-DE.json":[2853,3082],"./el-GR.json":[9876,1513],"./en.json":[1463],"./es-ES.json":[2264,8759],"./eu-ES.json":[5658,8081],"./fa-IR.json":[3747,5330],"./fi-FI.json":[9490,3512],"./fr-FR.json":[7830,3682],"./gl-ES.json":[5199,2943],"./he-IL.json":[1994,2312],"./hi-IN.json":[4646,9828],"./hu-HU.json":[6373,7368],"./id-ID.json":[3247,3808],"./it-IT.json":[3257,6239],"./ja-JP.json":[198,1204],"./kaa.json":[7941,663],"./kab-KAB.json":[228,9551],"./kk-KZ.json":[8972,22],"./km-KH.json":[5845,6566],"./ko-KR.json":[7596,6844],"./ku-TR.json":[2508,3031],"./lt-LT.json":[3755,8340],"./lv-LV.json":[2327,6768],"./mr-IN.json":[5297,3397],"./my-MM.json":[7704,1477],"./nb-NO.json":[1167,2359],"./nl-NL.json":[290,3024],"./nn-NO.json":[4481,3885],"./oc-FR.json":[2284,1690],"./pa-IN.json":[6773,3162],"./percentages.json":[4451],"./pl-PL.json":[3661,3674],"./pt-BR.json":[8881,3721],"./pt-PT.json":[125,5395],"./ro-RO.json":[2013,5089],"./ru-RU.json":[2253,8124],"./si-LK.json":[5497,1302],"./sk-SK.json":[4570,8750],"./sl-SI.json":[1984,6071],"./sv-SE.json":[976,8534],"./ta-IN.json":[3952,2404],"./th-TH.json":[2596,537],"./tr-TR.json":[7315,4977],"./uk-UA.json":[3458,7759],"./vi-VN.json":[456,4e3],"./zh-CN.json":[1037,4680],"./zh-HK.json":[5334,7920],"./zh-TW.json":[931,3421]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n.t(i,19)}))}i.keys=function(){return Object.keys(r)},i.id=940,e.exports=i},9713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},6479:function(e,t,n){var r=n(7316);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},7316:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}},4295:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(3940),n.b),u=new URL(n(3147),n.b),d=new URL(n(8303),n.b),p=new URL(n(1273),n.b),h=new URL(n(9577),n.b),f=new URL(n(9729),n.b),m=a()(i()),g=l()(c),v=l()(u),b=l()(d),y=l()(p),x=l()(h),w=l()(f);m.push([e.id,'@font-face{font-family:"Virgil";src:url('+g+');font-display:swap}@font-face{font-family:"Cascadia";src:url('+v+');font-display:swap}@font-face{font-family:"Assistant";src:url('+b+');font-display:swap;font-weight:400}@font-face{font-family:"Assistant";src:url('+y+');font-display:swap;font-weight:500}@font-face{font-family:"Assistant";src:url('+x+');font-display:swap;font-weight:600}@font-face{font-family:"Assistant";src:url('+w+");font-display:swap;font-weight:700}",""]),t.Z=m},6086:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".zoom-actions,.undo-redo-buttons{background-color:var(--island-bg-color);border-radius:var(--border-radius-lg);box-shadow:0 0 0 1px var(--color-surface-lowest)}.zoom-button,.undo-redo-buttons button{border-radius:0 !important;background-color:var(--color-surface-low) !important;font-size:.875rem !important;width:var(--lg-button-size);height:var(--lg-button-size)}.zoom-button svg,.undo-redo-buttons button svg{width:var(--lg-icon-size) !important;height:var(--lg-icon-size) !important}.zoom-button .ToolIcon__icon,.undo-redo-buttons button .ToolIcon__icon{width:100%;height:100%}.reset-zoom-button{border-left:0 !important;border-right:0 !important;padding:0 .625rem !important;width:3.75rem !important;justify-content:center;color:var(--text-primary-color)}.zoom-out-button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-out-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-out-button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.zoom-in-button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .zoom-in-button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.zoom-in-button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.undo-redo-buttons .undo-button-container button{border-top-left-radius:var(--border-radius-lg) !important;border-bottom-left-radius:var(--border-radius-lg) !important;border-right:0 !important}:root[dir=rtl] .undo-redo-buttons .undo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .undo-button-container button .ToolIcon__icon{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.undo-redo-buttons .redo-button-container button{border-top-right-radius:var(--border-radius-lg) !important;border-bottom-right-radius:var(--border-radius-lg) !important}:root[dir=rtl] .undo-redo-buttons .redo-button-container button{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.undo-redo-buttons .redo-button-container button .ToolIcon__icon{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}",""]),t.Z=a},3729:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Avatar{width:1.25rem;height:1.25rem;position:relative;border-radius:100%;outline-offset:2px;display:flex;justify-content:center;align-items:center;cursor:pointer;font-size:.75rem;font-weight:800;line-height:1}.excalidraw .Avatar-img{width:100%;height:100%;border-radius:100%}.excalidraw .Avatar::before{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:1px solid var(--avatar-border-color);border-radius:100%}',""]),t.Z=a},3137:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(7984),n.b),u=new URL(n(1639),n.b),d=a()(i()),p=l()(c),h=l()(u);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+p+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-on-surface);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: #ffffff;--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: var(--island-bg-color);--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--select-highlight-color: #339af0;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--button-hover-bg: var(--color-surface-high);--button-active-bg: var(--color-surface-high);--button-active-border: var(--color-brand-active);--default-border-color: var(--color-surface-high);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-surface-high);--sidebar-bg-color: var(--island-bg-color);--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-on-surface);--color-selection: #6965db;--color-icon-white: #ffffff;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-primary-light-darker: #d7d5ff;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-warning-dark: #f5c354;--color-warning-darker: #f3ab2c;--color-warning-darkest: #ec8b14;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-danger-dark: #db6965;--color-danger-darker: #d65550;--color-danger-darkest: #d1413c;--color-danger-text: black;--color-danger-background: #fff0f0;--color-danger-icon-background: #ffdad6;--color-danger-color: #700000;--color-danger-icon-color: #700000;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--text-primary-color);--color-warning-icon-color: var(--text-primary-color);--color-muted: var(--color-gray-30);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-100);--color-muted-background: var(--color-gray-80);--color-muted-background-darker: var(--color-gray-100);--color-promo: #e70078;--color-success: #268029;--color-success-lighter: #cafccc;--color-logo-icon: var(--color-primary);--color-logo-text: #190064;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem;--color-surface-high: hsl(244, 100%, 97%);--color-surface-mid: hsl(240 25% 96%);--color-surface-low: hsl(240 25% 94%);--color-surface-lowest: #ffffff;--color-on-surface: #1b1b1f;--color-brand-hover: #5753d0;--color-on-primary-container: #030064;--color-surface-primary-container: #e0dfff;--color-brand-active: #4440bf;--color-border-outline: #767680;--color-border-outline-variant: #c5c5d0;--color-surface-primary-container: #e0dfff}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+h+");--focus-highlight-color: #228be6;--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #232329;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-icon-white: var(--color-gray-90);--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-primary-light-darker: #43415e;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-danger-dark: #672120;--color-danger-darker: #8f2625;--color-danger-darkest: #ac2b29;--color-danger-text: #fbcbcc;--color-danger-background: #fbcbcc;--color-danger-icon-background: #672120;--color-danger-color: #261919;--color-danger-icon-color: #fbcbcc;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--color-gray-80);--color-warning-icon-color: var(--color-gray-80);--color-muted: var(--color-gray-80);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-20);--color-muted-background: var(--color-gray-40);--color-muted-background-darker: var(--color-gray-20);--color-promo: #d297ff;--color-logo-text: #e2dfff;--color-surface-high: hsl(245, 10%, 21%);--color-surface-low: hsl(240, 8%, 15%);--color-surface-mid: hsl(240 6% 10%);--color-surface-lowest: hsl(0, 0%, 7%);--color-on-surface: #e3e3e8;--color-brand-hover: #bbb8ff;--color-on-primary-container: #e0dfff;--color-surface-primary-container: #403e6a;--color-brand-active: #d0ccff;--color-border-outline: #8e8d9c;--color-border-outline-variant: #46464f;--color-surface-primary-container: #403e6a}.excalidraw .excalidraw-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface))}.excalidraw .excalidraw-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .excalidraw-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .excalidraw-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .excalidraw-button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .excalidraw-button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .excalidraw-button.active svg{color:var(--button-color, var(--color-on-primary-container))}",""]),t.Z=d},4241:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Card{display:flex;flex-direction:column;align-items:center;max-width:290px;margin:1em;text-align:center}.excalidraw .Card .Card-icon{font-size:2.6em;display:flex;flex:0 0 auto;padding:1.4rem;border-radius:50%;background:var(--card-color);color:#fff}.excalidraw .Card .Card-icon svg{width:2.8rem;height:2.8rem}.excalidraw .Card .Card-details{font-size:.96em;min-height:90px;padding:0 1em;margin-bottom:auto}.excalidraw .Card .Card-button.ToolIcon_type_button{height:2.5rem;margin-top:1em;margin-bottom:.3em;background-color:var(--card-color)}.excalidraw .Card .Card-button.ToolIcon_type_button:hover{background-color:var(--card-color-darker)}.excalidraw .Card .Card-button.ToolIcon_type_button:active{background-color:var(--card-color-darkest)}.excalidraw .Card .Card-button.ToolIcon_type_button .ToolIcon__label{color:#fff}.excalidraw .Card .Card-button.ToolIcon_type_button .Spinner{--spinner-color: #fff}",""]),t.Z=a},6029:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Checkbox{margin:4px .3em;display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus){box-shadow:0 0 0 2px #4dabf7}.excalidraw .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) svg{display:block;opacity:.3}.excalidraw .Checkbox:active .Checkbox-box{box-shadow:0 0 2px 1px inset #1c7ed6 !important}.excalidraw .Checkbox:hover .Checkbox-box{background-color:rgba(208,235,255,.2)}.excalidraw .Checkbox.is-checked .Checkbox-box{background-color:#d0ebff}.excalidraw .Checkbox.is-checked .Checkbox-box svg{display:block}.excalidraw .Checkbox.is-checked:hover .Checkbox-box{background-color:#a5d8ff}.excalidraw .Checkbox .Checkbox-box{width:22px;height:22px;padding:0;flex:0 0 auto;margin:0 1em;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #1c7ed6;background-color:rgba(0,0,0,0);border-radius:4px;color:#1c7ed6;border:0}.excalidraw .Checkbox .Checkbox-box:focus{box-shadow:0 0 0 3px #1c7ed6}.excalidraw .Checkbox .Checkbox-box svg{display:none;width:16px;height:16px;stroke-width:3px}.excalidraw .Checkbox .Checkbox-label{display:flex;align-items:center}.excalidraw .Checkbox .excalidraw-tooltip-icon{width:1em;height:1em}",""]),t.Z=a},4269:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(9669),n.b),u=a()(i()),d=l()(c);u.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .focus-visible-none:focus-visible{outline:none !important}.excalidraw .color-picker__heading{padding:0 .5rem;font-size:.75rem;text-align:left}.excalidraw .color-picker-container{display:grid;grid-template-columns:1fr 20px 1.625rem;padding:.25rem 0px;align-items:center}.excalidraw--mobile.excalidraw .color-picker-container{max-width:175px}.excalidraw .color-picker__top-picks{display:flex;justify-content:space-between}.excalidraw .color-picker__button{--radius: 0.25rem;padding:0;margin:0;width:1.35rem;height:1.35rem;border:1px solid var(--color-gray-30);border-radius:var(--radius);-webkit-filter:var(--theme-filter);filter:var(--theme-filter);background-color:var(--swatch-color);background-position:left center;position:relative;font-family:inherit;box-sizing:border-box}.excalidraw .color-picker__button:hover::after{content:"";position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;box-shadow:0 0 0 1px var(--color-gray-30);border-radius:calc(var(--radius) + 1px);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker__button.active .color-picker__button-outline{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;box-shadow:0 0 0 1px var(--color-primary-darkest);z-index:1;border-radius:calc(var(--radius) + 1px);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker__button:focus-visible{outline:none}.excalidraw .color-picker__button:focus-visible::after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:3px solid var(--focus-highlight-color);border-radius:calc(var(--radius) + 1px)}.excalidraw .color-picker__button:focus-visible.active .color-picker__button-outline{display:none}.excalidraw .color-picker__button--large{--radius: 0.5rem;width:1.875rem;height:1.875rem}.excalidraw .color-picker__button.is-transparent{background-image:url('+d+")}.excalidraw .color-picker__button--no-focus-visible{border:0}.excalidraw .color-picker__button--no-focus-visible::after{display:none}.excalidraw .color-picker__button--no-focus-visible:focus-visible{outline:none !important}.excalidraw .color-picker__button.active-color{border-radius:calc(var(--radius) + 1px);width:1.625rem;height:1.625rem}.excalidraw .color-picker__button__hotkey-label{position:absolute;right:4px;bottom:4px;-webkit-filter:none;filter:none;font-size:11px}.excalidraw .color-picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 0 1px 4px;border-radius:4px;position:absolute}:root[dir=ltr] .excalidraw .color-picker{left:-5.5px}:root[dir=rtl] .excalidraw .color-picker{right:-5.5px}.excalidraw .color-picker-control-container{display:grid;grid-template-columns:auto 1fr;align-items:center;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .color-picker-control-container+.popover{position:static}.excalidraw .color-picker-popover-container{margin-top:-0.25rem}:root[dir=ltr] .excalidraw .color-picker-popover-container{margin-left:.5rem}:root[dir=rtl] .excalidraw .color-picker-popover-container{margin-left:-3rem}.excalidraw .color-picker-triangle{width:0;height:0;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color);position:absolute;top:10px}:root[dir=ltr] .excalidraw .color-picker-triangle{-webkit-transform:rotate(270deg);transform:rotate(270deg);left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle{-webkit-transform:rotate(90deg);transform:rotate(90deg);right:-14px}.excalidraw .color-picker-triangle-shadow{border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1)}:root[dir=ltr] .excalidraw .color-picker-triangle-shadow{left:-14px}:root[dir=rtl] .excalidraw .color-picker-triangle-shadow{right:-16px}.excalidraw .color-picker-content{display:flex;flex-direction:column;gap:.75rem;outline:none}.excalidraw .color-picker-content--default{padding:.5rem;display:grid;grid-template-columns:repeat(5, 1.875rem);grid-gap:.25rem;border-radius:4px}.excalidraw .color-picker-content--default:focus{outline:none;box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .color-picker-content--canvas{display:flex;flex-direction:column;padding:.25rem}.excalidraw .color-picker-content--canvas-title{color:#868e96;font-size:12px;padding:0 .25rem}.excalidraw .color-picker-content--canvas-colors{padding:.5rem 0}.excalidraw .color-picker-content--canvas-colors .color-picker-swatch{margin:0 .25rem}.excalidraw .color-picker-content .color-input-container{grid-column:1/span 5}.excalidraw .color-picker-swatch{position:relative;height:1.875rem;width:1.875rem;cursor:pointer;border-radius:4px;margin:0;box-sizing:border-box;border:1px solid #ddd;background-color:currentColor !important;-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .color-picker-swatch:focus{box-shadow:0 0 4px 1px currentColor;border-color:var(--select-highlight-color)}.excalidraw .color-picker-transparent{border-radius:4px;box-shadow:rgba(0,0,0,.1) 0 0 0 1px inset;position:absolute;top:0;right:0;bottom:0;left:0}.excalidraw .color-picker-transparent,.excalidraw .color-picker-label-swatch{background:url("+d+') left center}.excalidraw .color-picker-hash{height:var(--default-button-size);flex-shrink:0;padding:.5rem .5rem .5rem .75rem;border:1px solid var(--default-border-color);border-right:0;box-sizing:border-box;color:var(--input-label-color);display:flex;align-items:center;justify-content:center;position:relative}:root[dir=ltr] .excalidraw .color-picker-hash{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg)}:root[dir=rtl] .excalidraw .color-picker-hash{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0;border-right:1px solid var(--default-border-color);border-left:0}.excalidraw .color-input-container{display:flex}.excalidraw .color-input-container:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker__input-label{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;border:1px solid var(--default-border-color);border-radius:8px;padding:0 12px;margin:8px;box-sizing:border-box}.excalidraw .color-picker__input-label:focus-within{box-shadow:0 0 0 1px var(--color-primary-darkest);border-radius:var(--border-radius-lg)}.excalidraw .color-picker__input-hash{padding:0 .25rem}.excalidraw .color-picker-input{box-sizing:border-box;width:100%;margin:0;font-size:.875rem;font-family:inherit;background-color:rgba(0,0,0,0);color:var(--text-primary-color);border:0;outline:none;height:var(--default-button-size);border:1px solid var(--default-border-color);border-left:0;letter-spacing:.4px;padding:.5rem;padding-left:.25rem;-webkit-appearance:none;appearance:none}:root[dir=ltr] .excalidraw .color-picker-input{border-radius:0 var(--border-radius-lg) var(--border-radius-lg) 0}:root[dir=rtl] .excalidraw .color-picker-input{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);border-left:1px solid var(--default-border-color);border-right:0}.excalidraw .color-picker-input:focus-visible{box-shadow:none}.excalidraw .color-picker-label-swatch-container{border:1px solid var(--default-border-color);border-radius:var(--border-radius-lg);width:var(--default-button-size);height:var(--default-button-size);box-sizing:border-box;overflow:hidden}.excalidraw .color-picker-label-swatch{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));background-color:var(--swatch-color) !important;overflow:hidden;position:relative;-webkit-filter:var(--theme-filter);filter:var(--theme-filter);border:0 !important}.excalidraw .color-picker-label-swatch svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .color-picker-label-swatch:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .color-picker-label-swatch:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .color-picker-label-swatch.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .color-picker-label-swatch.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .color-picker-label-swatch.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .color-picker-label-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--swatch-color)}.excalidraw .color-picker-keybinding{position:absolute;bottom:2px;font-size:.7em}:root[dir=ltr] .excalidraw .color-picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .color-picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .color-picker-keybinding{display:none}.excalidraw .color-picker-type-canvasBackground .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementBackground .color-picker-keybinding{color:#fff}.excalidraw .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#aaa}.excalidraw .color-picker-type-elementStroke .color-picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .color-picker-type-elementBackground .color-picker-keybinding{color:#000}.excalidraw.theme--dark .color-picker-swatch[aria-label=transparent] .color-picker-keybinding{color:#000}',""]),t.Z=u},9393:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .confirm-dialog-buttons{display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;justify-content:flex-end}",""]),t.Z=a},6578:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .context-menu{position:relative;border-radius:4px;box-shadow:0 3px 10px rgba(0,0,0,.2);padding:0;list-style:none;-webkit-user-select:none;user-select:none;margin:-0.25rem 0 0 .125rem;padding:.5rem 0;background-color:var(--popup-secondary-bg-color);border:1px solid var(--button-gray-3);cursor:default}.excalidraw .context-menu button{color:var(--popup-text-color)}.excalidraw .context-menu-item{position:relative;width:100%;min-width:9.5rem;margin:0;padding:.25rem 1rem .25rem 1.25rem;text-align:start;border-radius:0;background-color:rgba(0,0,0,0);border:none;white-space:nowrap;font-family:inherit;display:grid;grid-template-columns:1fr .2fr;align-items:center}.excalidraw .context-menu-item.checkmark::before{position:absolute;left:6px;margin-bottom:1px;content:"✓"}.excalidraw .context-menu-item.dangerous .context-menu-item__label{color:#f03e3e}.excalidraw .context-menu-item .context-menu-item__label{justify-self:start;-webkit-margin-end:20px;margin-inline-end:20px}.excalidraw .context-menu-item .context-menu-item__shortcut{justify-self:end;opacity:.6;font-family:inherit;font-size:.7rem}.excalidraw .context-menu-item:hover{color:var(--popup-bg-color);background-color:var(--select-highlight-color)}.excalidraw .context-menu-item:hover.dangerous{background-color:#fa5252}.excalidraw .context-menu-item:hover.dangerous .context-menu-item__label{color:var(--popup-bg-color)}.excalidraw .context-menu-item:focus{z-index:1}.excalidraw--mobile.excalidraw .context-menu-item{display:block}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__label{-webkit-margin-end:0;margin-inline-end:0}.excalidraw--mobile.excalidraw .context-menu-item .context-menu-item__shortcut{display:none}.excalidraw .context-menu-item-separator{border:none;border-top:1px solid #adb5bd}',""]),t.Z=a},9482:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Dialog{-webkit-user-select:text;user-select:text;cursor:auto}.excalidraw .Dialog__title{margin:0;text-align:left;font-size:1.25rem;border-bottom:1px solid var(--dialog-border-color);padding:0 0 .75rem;margin-bottom:1.5rem}.excalidraw .Dialog__close{color:var(--color-gray-40);margin:0;position:absolute;top:.75rem;right:.5rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Dialog__close:hover{color:var(--color-gray-60)}.excalidraw .Dialog__close:active{color:var(--color-gray-40)}.excalidraw .Dialog__close svg{width:1.5rem;height:1.5rem}.excalidraw .Dialog--fullscreen .Dialog__close{top:1.25rem;right:1.25rem}",""]),t.Z=a},6148:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .Dialog__action-button{position:relative;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;padding:.5rem 1.5rem;border:1px solid var(--default-border-color);background-color:rgba(0,0,0,0);height:3rem;border-radius:var(--border-radius-lg);letter-spacing:.4px;color:inherit;font-family:inherit;font-size:.875rem;font-weight:600;-webkit-user-select:none;user-select:none}.excalidraw .Dialog__action-button svg{display:block;width:1rem;height:1rem}.excalidraw .Dialog__action-button--danger{background-color:var(--color-danger);border-color:var(--color-danger);color:#fff}.excalidraw .Dialog__action-button--primary{background-color:var(--color-primary);border-color:var(--color-primary);color:#fff}.excalidraw.theme--dark .Dialog__action-button--danger{color:var(--color-gray-100)}.excalidraw.theme--dark .Dialog__action-button--primary{color:var(--color-gray-100)}",""]),t.Z=a},5744:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .ExcalidrawLogo{--logo-icon--xs: 2rem;--logo-text--xs: 1.5rem;--logo-icon--small: 2.5rem;--logo-text--small: 1.75rem;--logo-icon--normal: 3rem;--logo-text--normal: 2.2rem;--logo-icon--large: 90px;--logo-text--large: 65px;display:flex;align-items:center}.excalidraw .ExcalidrawLogo svg{flex:0 0 auto}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-icon{width:auto;color:var(--color-logo-icon)}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-text{margin-left:.75rem;width:auto;color:var(--color-logo-text)}.excalidraw .ExcalidrawLogo.is-xs .ExcalidrawLogo-icon{height:var(--logo-icon--xs)}.excalidraw .ExcalidrawLogo.is-xs .ExcalidrawLogo-text{height:var(--logo-text--xs)}.excalidraw .ExcalidrawLogo.is-small .ExcalidrawLogo-icon{height:var(--logo-icon--small)}.excalidraw .ExcalidrawLogo.is-small .ExcalidrawLogo-text{height:var(--logo-text--small)}.excalidraw .ExcalidrawLogo.is-normal .ExcalidrawLogo-icon{height:var(--logo-icon--normal)}.excalidraw .ExcalidrawLogo.is-normal .ExcalidrawLogo-text{height:var(--logo-text--normal)}.excalidraw .ExcalidrawLogo.is-large .ExcalidrawLogo-icon{height:var(--logo-icon--large)}.excalidraw .ExcalidrawLogo.is-large .ExcalidrawLogo-text{height:var(--logo-text--large)}",""]),t.Z=a},7955:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(9669),n.b),u=a()(i()),d=l()(c);u.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExportDialog__preview{--preview-padding: calc(var(--space-factor) * 4);background:url("+d+") left center;text-align:center;padding:var(--preview-padding);margin-bottom:calc(var(--space-factor)*3);display:flex;justify-content:center;align-items:center}.excalidraw .ExportDialog__preview canvas{max-width:calc(100% - var(--preview-padding)*2);max-height:25rem}.excalidraw.theme--dark .ExportDialog__preview canvas{-webkit-filter:none;filter:none}.excalidraw .ExportDialog__actions{width:100%;display:flex;grid-gap:calc(var(--space-factor)*2);align-items:top;justify-content:space-between}.excalidraw--mobile.excalidraw .ExportDialog{display:flex;flex-direction:column}.excalidraw--mobile.excalidraw .ExportDialog__actions{flex-direction:column;align-items:center}.excalidraw--mobile.excalidraw .ExportDialog__actions>*{margin-bottom:calc(var(--space-factor)*3)}.excalidraw--mobile.excalidraw .ExportDialog__preview canvas{max-height:30vh}.excalidraw--mobile.excalidraw .ExportDialog__dialog,.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{height:100%;box-sizing:border-box}.excalidraw--mobile.excalidraw .ExportDialog__dialog .Island{overflow-y:auto}.excalidraw .ExportDialog--json .ExportDialog-cards{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));justify-items:center;row-gap:2em}@media(max-width: 460px){.excalidraw .ExportDialog--json .ExportDialog-cards{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}.excalidraw .ExportDialog--json .ExportDialog-cards .Card-details{min-height:40px}}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:1em auto;align-items:flex-start;flex-direction:column}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName .TextInput{width:auto}.excalidraw .ExportDialog--json .ExportDialog-cards .ProjectName-label{margin:.625em 0;font-weight:bold}.excalidraw button.ExportDialog-imageExportButton{border:0;width:5rem;height:5rem;margin:0 .2em;padding:0;display:flex;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--button-color);box-shadow:0 3px 5px -1px rgba(0,0,0,.28),0 6px 10px 0 rgba(0,0,0,.14);font-family:Cascadia;font-size:1.8em;color:#fff}.excalidraw button.ExportDialog-imageExportButton:hover{background-color:var(--button-color-darker)}.excalidraw button.ExportDialog-imageExportButton:active{background-color:var(--button-color-darkest);box-shadow:none}.excalidraw button.ExportDialog-imageExportButton svg{width:.9em}",""]),t.Z=u},7522:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .excalidraw-eye-dropper-container,.excalidraw .excalidraw-eye-dropper-backdrop{position:absolute;width:100%;height:100%;z-index:var(--zIndex-eyeDropperBackdrop);touch-action:none}.excalidraw .excalidraw-eye-dropper-container{pointer-events:none}.excalidraw .excalidraw-eye-dropper-backdrop{pointer-events:all}.excalidraw .excalidraw-eye-dropper-preview{pointer-events:none;width:3rem;height:3rem;position:fixed;z-index:var(--zIndex-eyeDropperPreview);border-radius:1rem;border:1px solid var(--default-border-color);-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .excalidraw-eye-dropper-trigger{width:1.25rem;height:1.25rem;cursor:pointer;padding:4px;margin-right:-4px;margin-left:-2px;border-radius:.5rem;color:var(--icon-fill-color)}.excalidraw .excalidraw-eye-dropper-trigger:hover{background:var(--button-hover-bg)}.excalidraw .excalidraw-eye-dropper-trigger.selected{color:var(--color-primary);background:var(--color-primary-light)}",""]),t.Z=a},8960:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ExcButton{--text-color: transparent;--border-color: transparent;--back-color: transparent;color:var(--text-color);background-color:var(--back-color);border-color:var(--border-color);display:flex;justify-content:center;align-items:center;flex-shrink:0;flex-wrap:nowrap;border-radius:.5rem;border-width:1px;border-style:solid;font-family:"Assistant";-webkit-user-select:none;user-select:none;transition:all 150ms ease-out}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled{--text-color: var(--color-surface-lowest);--back-color: var(--color-primary)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:hover{--back-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-filled:active{--back-color: var(--color-brand-active)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon{--text-color: var(--color-primary);--border-color: var(--color-border-outline);--back-color: transparent}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:hover{--text-color: var(--color-brand-hover);--border-color: var(--color-brand-hover)}.excalidraw .ExcButton--color-primary.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-primary.ExcButton--variant-icon:active{--text-color: var(--color-brand-active);--border-color: var(--color-brand-active)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled{--text-color: var(--color-danger-text);--back-color: var(--color-danger-dark)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:hover{--back-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-danger.ExcButton--variant-filled:active{--back-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon{--text-color: var(--color-danger);--border-color: var(--color-danger);--back-color: transparent}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:hover{--text-color: var(--color-danger-darkest);--border-color: var(--color-danger-darkest)}.excalidraw .ExcButton--color-danger.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-danger.ExcButton--variant-icon:active{--text-color: var(--color-danger-darker);--border-color: var(--color-danger-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled{--text-color: var(--island-bg-color);--back-color: var(--color-gray-50)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:hover{--back-color: var(--color-gray-60)}.excalidraw .ExcButton--color-muted.ExcButton--variant-filled:active{--back-color: var(--color-gray-80)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon{--text-color: var(--color-muted-background);--border-color: var(--color-muted);--back-color: var(--island-bg-color)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:hover{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darker)}.excalidraw .ExcButton--color-muted.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-muted.ExcButton--variant-icon:active{--text-color: var(--color-muted-background-darker);--border-color: var(--color-muted-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled{--text-color: black;--back-color: var(--color-warning-dark)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:hover{--back-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-filled:active{--back-color: var(--color-warning-darkest)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon{--text-color: var(--color-warning-dark);--border-color: var(--color-warning-dark);--back-color: var(--input-bg-color)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:hover,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:hover{--text-color: var(--color-warning-darker);--border-color: var(--color-warning-darker)}.excalidraw .ExcButton--color-warning.ExcButton--variant-outlined:active,.excalidraw .ExcButton--color-warning.ExcButton--variant-icon:active{--text-color: var(--color-warning-darkest);--border-color: var(--color-warning-darkest)}.excalidraw .ExcButton--size-large{font-weight:600;font-size:.875rem;min-height:3rem;padding:.5rem 1.5rem;gap:.75rem;letter-spacing:.4px}.excalidraw .ExcButton--size-medium{font-weight:600;font-size:.75rem;min-height:2.5rem;padding:.5rem 1rem;gap:.5rem;letter-spacing:normal}.excalidraw .ExcButton--variant-icon{padding:.5rem .75rem;width:3rem}.excalidraw .ExcButton--fullWidth{width:100%}.excalidraw .ExcButton__icon{width:1.25rem;height:1.25rem}',""]),t.Z=a},3195:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .FixedSideContainer{position:absolute;pointer-events:none}.excalidraw .FixedSideContainer>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .FixedSideContainer_side_top{left:var(--editor-container-padding);top:var(--editor-container-padding);right:var(--editor-container-padding);bottom:var(--editor-container-padding);z-index:2}.excalidraw .FixedSideContainer_side_top.zen-mode{right:42px}",""]),t.Z=a},2978:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HelpDialog .Modal__content{max-width:960px}.excalidraw .HelpDialog h3{margin:1.5rem 0;font-weight:bold;font-size:1.125rem}.excalidraw .HelpDialog__header{display:flex;flex-wrap:wrap;gap:.75rem}.excalidraw .HelpDialog__btn{--background: var(--color-surface-mid);display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;align-items:center;background-color:var(--background);padding:.625rem 1rem;border:1px solid var(--background);border-radius:var(--border-radius-lg);color:var(--text-primary-color);font-weight:600;font-size:.75rem;letter-spacing:.4px}.excalidraw.theme--dark.excalidraw .HelpDialog__btn{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .HelpDialog__btn:hover{--background: #363541}.excalidraw .HelpDialog__btn:hover{--background: var(--color-surface-high);text-decoration:none}.excalidraw .HelpDialog__btn:active{border-color:var(--color-primary)}.excalidraw .HelpDialog__link-icon{line-height:0}.excalidraw .HelpDialog__link-icon svg{width:1rem;height:1rem}.excalidraw .HelpDialog__islands-container{display:grid;grid-column-gap:1.5rem;grid-row-gap:2rem}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__islands-container{grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){.excalidraw .HelpDialog__island--tools{grid-area:1/1/2/2}.excalidraw .HelpDialog__island--view{grid-area:2/1/3/2}.excalidraw .HelpDialog__island--editor{grid-area:1/2/3/3}}.excalidraw .HelpDialog__island h4{font-size:1rem;font-weight:bold;margin:0;margin-bottom:.625rem}.excalidraw .HelpDialog__island-content{border:1px solid var(--dialog-border-color);border-radius:var(--border-radius-lg)}.excalidraw .HelpDialog__shortcut{border-bottom:1px solid var(--dialog-border-color);padding:.375rem .75rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .HelpDialog__shortcut:last-child{border-bottom:none}.excalidraw .HelpDialog__key-container{display:flex;align-items:center;-webkit-column-gap:.25rem;column-gap:.25rem;flex-shrink:0}.excalidraw .HelpDialog__key{display:flex;box-sizing:border-box;font-size:.625rem;background-color:var(--color-primary-light);border-radius:var(--border-radius-md);padding:.5rem;word-break:keep-all;align-items:center;font-family:inherit;line-height:1}",""]),t.Z=a},1587:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .HintViewer{pointer-events:none;box-sizing:border-box;position:absolute;display:flex;justify-content:center;left:0;top:100%;max-width:100%;width:100%;margin-top:.5rem;text-align:center;color:var(--color-gray-40);font-size:.75rem}.excalidraw--mobile.excalidraw .HintViewer{position:static;padding-right:2rem}.excalidraw .HintViewer>span{padding:.25rem}.excalidraw.theme--dark .HintViewer{color:var(--color-gray-60)}",""]),t.Z=a},9478:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .picker-container{display:inline-block;box-sizing:border-box;margin-right:.25rem}.excalidraw .picker{background:var(--popup-bg-color);border:0 solid rgba(255,255,255,.25);box-shadow:rgba(0,0,0,.25) 2px 2px 4px 2px;border-radius:4px;position:absolute}.excalidraw .picker-container button,.excalidraw .picker button{position:relative;display:flex;align-items:center;justify-content:center}.excalidraw .picker-container button:focus-visible,.excalidraw .picker button:focus-visible{outline:rgba(0,0,0,0);background-color:var(--button-gray-2)}.excalidraw .picker-container button:focus-visible svg,.excalidraw .picker button:focus-visible svg{opacity:1}.excalidraw .picker-container button:hover,.excalidraw .picker button:hover{background-color:var(--button-gray-2)}.excalidraw .picker-container button:active,.excalidraw .picker button:active{background-color:var(--button-gray-3)}.excalidraw .picker-container button:disabled,.excalidraw .picker button:disabled{cursor:not-allowed}.excalidraw .picker-container button svg,.excalidraw .picker button svg{margin:0;width:36px;height:18px;pointer-events:none}.excalidraw .picker button{padding:.25rem .28rem .35rem .25rem}.excalidraw .picker-triangle{width:0;height:0;position:relative;top:-10px;z-index:10}:root[dir=ltr] .excalidraw .picker-triangle{left:12px}:root[dir=rtl] .excalidraw .picker-triangle{right:12px}.excalidraw .picker-triangle:before{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,.1);top:-1px}.excalidraw .picker-triangle:after{content:"";position:absolute;border-style:solid;border-width:0 9px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--popup-bg-color)}.excalidraw .picker-content{padding:.5rem;display:grid;grid-template-columns:repeat(3, auto);grid-gap:.5rem;border-radius:4px}:root[dir=rtl] .excalidraw .picker-content{padding:.4rem}.excalidraw .picker-keybinding{position:absolute;bottom:2px;font-size:.7em;color:var(--keybinding-color)}:root[dir=ltr] .excalidraw .picker-keybinding{right:2px}:root[dir=rtl] .excalidraw .picker-keybinding{left:2px}.excalidraw--mobile.excalidraw .picker-keybinding{display:none}.excalidraw .picker-type-canvasBackground .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementBackground .picker-keybinding{color:#fff}.excalidraw .picker-swatch[aria-label=transparent] .picker-keybinding{color:#aaa}.excalidraw .picker-type-elementStroke .picker-keybinding{color:#d4d4d4}.excalidraw.theme--dark .picker-type-elementBackground .picker-keybinding{color:#000}.excalidraw.theme--dark .picker-swatch[aria-label=transparent] .picker-keybinding{color:#000}',""]),t.Z=a},9706:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(9669),n.b),u=a()(i()),d=l()(c);u.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--ImageExportModal-preview-border: #d6d6d6}.excalidraw.theme--dark{--ImageExportModal-preview-border: #5c5c5c}.excalidraw .ImageExportModal{display:flex;flex-direction:row;justify-content:space-between}.excalidraw .ImageExportModal h3{font-family:"Assistant";font-style:normal;font-weight:700;font-size:1.313rem;line-height:130%;padding:0;margin:0}.excalidraw--mobile.excalidraw .ImageExportModal h3{display:none}.excalidraw .ImageExportModal>h3{display:none}.excalidraw--mobile.excalidraw .ImageExportModal>h3{display:block}.excalidraw--mobile.excalidraw .ImageExportModal{flex-direction:column;height:calc(100vh - 5rem)}.excalidraw .ImageExportModal__preview{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;height:360px;width:55%;margin-right:1.5rem}.excalidraw--mobile.excalidraw .ImageExportModal__preview{max-width:unset;margin-right:unset;width:100%;height:unset;flex-grow:1}.excalidraw .ImageExportModal__preview__filename>input{margin-top:1rem}.excalidraw .ImageExportModal__preview__canvas{box-sizing:border-box;width:100%;height:100%;display:flex;flex-grow:1;justify-content:center;align-items:center;background:url('+d+') left center;border:1px solid var(--ImageExportModal-preview-border);border-radius:12px;overflow:hidden;padding:1rem}.excalidraw .ImageExportModal__preview__canvas>canvas{max-width:calc(100% - 2rem);max-height:calc(100% - 2rem);-webkit-filter:none !important;filter:none !important}.excalidraw--mobile.excalidraw .ImageExportModal__preview__canvas>canvas{max-height:100%}.excalidraw--mobile.excalidraw .ImageExportModal__preview__canvas{margin-top:24px;max-width:unset}.excalidraw .ImageExportModal__settings{display:flex;flex-direction:column;flex-wrap:wrap;gap:18px}.excalidraw--mobile.excalidraw .ImageExportModal__settings{margin-left:unset;margin-top:1rem;flex-direction:row;gap:6px 34px;align-content:flex-start}.excalidraw .ImageExportModal__settings__setting{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.excalidraw--mobile.excalidraw .ImageExportModal__settings__setting{flex-direction:column;align-items:start;justify-content:unset;height:52px}.excalidraw .ImageExportModal__settings__setting__label{display:flex;flex-direction:row;align-items:center;font-family:"Assistant";font-weight:600;font-size:1rem;line-height:150%}.excalidraw .ImageExportModal__settings__setting__label svg{width:20px;height:20px;margin-left:10px}.excalidraw .ImageExportModal__settings__setting__content{display:flex;height:100%;align-items:center}.excalidraw .ImageExportModal__settings__buttons{flex-grow:1;flex-wrap:wrap;display:flex;flex-direction:row;gap:11px;align-items:flex-end;align-content:flex-end}.excalidraw--mobile.excalidraw .ImageExportModal__settings__buttons{padding-top:32px;flex-basis:100%;justify-content:center}',""]),t.Z=u},7369:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .Island{--padding: 0;box-sizing:border-box;background-color:var(--island-bg-color);box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);padding:calc(var(--padding)*var(--space-factor));position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .Island.zen-mode{box-shadow:none}",""]),t.Z=a},7930:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .LaserToolOverlay{pointer-events:none;width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:2}.excalidraw .LaserToolOverlay .LaserToolOverlayCanvas{image-rendering:auto;overflow:visible;position:absolute;top:0;left:0}",""]),t.Z=a},1434:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .layer-ui__wrapper.animate{transition:width .1s ease-in-out}.excalidraw .layer-ui__wrapper{position:absolute;width:100%;height:100%;pointer-events:none;z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex;gap:.75rem}.excalidraw .layer-ui__wrapper__footer{width:100%}.excalidraw .layer-ui__wrapper__footer-right{z-index:100;display:flex}.excalidraw .layer-ui__wrapper .zen-mode-transition{transition:-webkit-transform .5s ease-in-out;transition:transform .5s ease-in-out;transition:transform .5s ease-in-out, -webkit-transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{-webkit-transform:translate(999px, 0);transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{-webkit-transform:translate(-999px, 0);transform:translate(-999px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{-webkit-transform:translate(0, 92px);transform:translate(0, 92px)}.excalidraw .layer-ui__wrapper .disable-zen-mode{padding:10px;position:absolute;bottom:0;opacity:0;visibility:hidden;transition:visibility 0s linear 0s,opacity .5s;font-family:var(--ui-font);font-size:.75rem;font-weight:500;line-height:1;border-radius:var(--border-radius-lg);border:1px solid var(--default-border-color);background-color:var(--island-bg-color);color:var(--text-primary-color)}[dir=ltr] .excalidraw .layer-ui__wrapper .disable-zen-mode{right:1rem}[dir=rtl] .excalidraw .layer-ui__wrapper .disable-zen-mode{left:1rem}.excalidraw .layer-ui__wrapper .disable-zen-mode:hover{background-color:var(--button-hover-bg)}.excalidraw .layer-ui__wrapper .disable-zen-mode:active{border-color:var(--color-primary)}.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{opacity:1;visibility:visible;transition:visibility 0s linear 300ms,opacity .5s;transition-delay:.8s;pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-left>*,.excalidraw .layer-ui__wrapper .footer-center>*,.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto}",""]),t.Z=a},8923:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,'.excalidraw .layer-ui__library{display:flex;flex-direction:column;flex:1 1 auto}.excalidraw .library-actions-counter{background-color:var(--color-primary);color:var(--color-primary-light);font-weight:bold;display:flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;position:absolute;bottom:-0.25rem;right:-0.25rem;font-size:.625rem;pointer-events:none}.excalidraw .layer-ui__library-message{padding:2rem;min-width:200px;display:flex;flex-direction:column;align-items:center;flex-grow:1;justify-content:center}.excalidraw .layer-ui__library-message span{font-size:.8em}.excalidraw .publish-library-success .Dialog__content{display:flex;flex-direction:column}.excalidraw .publish-library-success-close.ToolIcon_type_button{background-color:#228be6;align-self:flex-end}.excalidraw .publish-library-success-close.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon{width:auto;font-size:1rem;color:#fff;padding:0 .5rem}.excalidraw .library-menu-control-buttons{display:flex;align-items:center;justify-content:center;gap:.625rem;position:relative}.excalidraw .library-menu-control-buttons--at-bottom::before{content:"";width:calc(100% - 1.5rem);height:1px;position:absolute;top:-1px;background:var(--sidebar-border-color)}.excalidraw .library-menu-browse-button{flex:1;height:var(--lg-button-size);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border-radius:var(--border-radius-lg);background-color:var(--color-primary);color:#fff;text-align:center;white-space:nowrap;text-decoration:none !important;font-weight:600;font-size:.75rem}.excalidraw .library-menu-browse-button:hover{background-color:var(--color-brand-hover)}.excalidraw .library-menu-browse-button:active{background-color:var(--color-brand-active)}.excalidraw.theme--dark .library-menu-browse-button{color:var(--color-gray-100)}.excalidraw.excalidraw--mobile .library-menu-browse-button{height:var(--default-button-size)}.excalidraw .layer-ui__library .dropdown-menu{width:auto;top:initial;right:0;left:initial;bottom:100%;margin-bottom:.625rem}.excalidraw .layer-ui__library .dropdown-menu .dropdown-menu-container{width:196px;box-shadow:var(--library-dropdown-shadow);border-radius:var(--border-radius-lg);padding:.25rem .5rem}.excalidraw .layer-ui__library .library-menu-dropdown-container{position:relative}.excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading{padding:0;position:absolute;top:1rem;right:.75rem;z-index:1}.excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading .dropdown-menu{top:100%}',""]),t.Z=a},6440:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw{--container-padding-y: 1.5rem;--container-padding-x: 0.75rem}.excalidraw .library-menu-items__no-items{text-align:center;color:var(--color-gray-70);line-height:1.5;font-size:.875rem;width:100%}.excalidraw .library-menu-items__no-items__label{color:var(--color-primary);font-weight:bold;font-size:1.125rem;margin-bottom:.75rem}.excalidraw.theme--dark .library-menu-items__no-items{color:var(--color-gray-40)}.excalidraw .library-menu-items-container{width:100%;display:flex;flex-grow:1;flex-shrink:1;flex-basis:0;overflow-y:auto;flex-direction:column;height:100%;justify-content:center;margin:0;position:relative}.excalidraw .library-menu-items-container>div{padding-left:.75rem;padding-right:.75rem}.excalidraw .library-menu-items-container__row{display:grid;grid-template-columns:repeat(4, 1fr);gap:1rem}.excalidraw .library-menu-items-container__items{row-gap:.5rem;padding:var(--container-padding-y) 0;flex:1;overflow-y:auto;overflow-x:hidden;margin-bottom:1rem}.excalidraw .library-menu-items-container__header{color:var(--color-primary);font-size:1.125rem;font-weight:bold;margin-bottom:.75rem;width:100%;padding-right:4rem;box-sizing:border-box}.excalidraw .library-menu-items-container__header--excal{margin-top:2rem}.excalidraw .library-menu-items-container__grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;grid-gap:1rem}.excalidraw .library-menu-items-container .separator{width:100%;display:flex;align-items:center;font-weight:500;font-size:.9rem;margin:.6em .2em;color:var(--text-primary-color)}.excalidraw .library-menu-items-private-library-container{min-height:3.75rem;width:100%}",""]),t.Z=a},5644:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .library-unit{align-items:center;border:1px solid rgba(0,0,0,0);display:flex;justify-content:center;position:relative;width:55px;height:55px;box-sizing:border-box;border-radius:var(--border-radius-lg)}.excalidraw .library-unit svg{pointer-events:none}.excalidraw .library-unit--hover{border-color:var(--color-primary)}.excalidraw .library-unit--selected{border-color:var(--color-primary);border-width:1px}.excalidraw .library-unit--skeleton{opacity:.5;background:linear-gradient(-45deg, var(--color-gray-10), var(--color-gray-20), var(--color-gray-10));background-size:200% 200%;-webkit-animation:library-unit__skeleton-opacity-animation .2s linear;animation:library-unit__skeleton-opacity-animation .2s linear}.excalidraw.theme--dark .library-unit--skeleton{background-image:linear-gradient(-45deg, var(--color-gray-100), var(--color-gray-80), var(--color-gray-100))}.excalidraw .library-unit__dragger{display:flex;align-items:center;justify-content:center;height:100%;width:100%}.excalidraw .library-unit__dragger>svg{-webkit-filter:var(--theme-filter);filter:var(--theme-filter);flex-grow:1;max-height:100%;max-width:100%}.excalidraw .library-unit__checkbox-container,.excalidraw .library-unit__checkbox-container:hover,.excalidraw .library-unit__checkbox-container:active{align-items:center;background:none;border:none;color:var(--icon-fill-color);display:flex;justify-content:center;margin:0;padding:.5rem;position:absolute;left:2rem;bottom:2rem;cursor:pointer}.excalidraw .library-unit__checkbox-container input,.excalidraw .library-unit__checkbox-container:hover input,.excalidraw .library-unit__checkbox-container:active input{cursor:pointer}.excalidraw .library-unit__checkbox{position:absolute;top:.125rem;right:.125rem;margin:0}.excalidraw .library-unit__checkbox .Checkbox-box{margin:0;width:1rem;height:1rem;border-radius:4px;background-color:var(--color-primary-light);border:1px solid var(--color-primary);box-shadow:none !important;padding:2px}.excalidraw .library-unit__checkbox.Checkbox:hover .Checkbox-box{background-color:var(--color-primary-light)}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box{background-color:var(--color-primary) !important}.excalidraw .library-unit__checkbox.is-checked .Checkbox-box svg{color:var(--color-primary-light)}.excalidraw .library-unit__removeFromLibrary>svg{height:16px;width:16px}.excalidraw .library-unit__adder{-webkit-transform:scale(1);transform:scale(1);-webkit-animation:library-unit__adder-animation 1s ease-in infinite;animation:library-unit__adder-animation 1s ease-in infinite;position:absolute;width:1.5rem;height:1.5rem;background-color:var(--color-primary);border-radius:var(--border-radius-md);display:flex;justify-content:center;align-items:center;pointer-events:none}.excalidraw .library-unit__adder svg{color:var(--color-primary-light);width:1rem;height:1rem}.excalidraw .library-unit:active .library-unit__adder{-webkit-animation:none;animation:none;-webkit-transform:scale(0.8);transform:scale(0.8)}.excalidraw .library-unit__active{cursor:pointer}@-webkit-keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@keyframes library-unit__adder-animation{0%{-webkit-transform:scale(0.85);transform:scale(0.85)}50%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(0.85);transform:scale(0.85)}}@-webkit-keyframes library-unit__skeleton-opacity-animation{0%{opacity:0}75%{opacity:0}100%{opacity:.5}}@keyframes library-unit__skeleton-opacity-animation{0%{opacity:0}75%{opacity:0}100%{opacity:.5}}",""]),t.Z=a},5830:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(9669),n.b),u=a()(i()),d=l()(c);u.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dialog-mermaid-title{margin-bottom:5px;margin-top:2px}.excalidraw .dialog-mermaid-desc{font-size:15px;font-style:italic;font-weight:500}.excalidraw .dialog-mermaid .Modal__content .Island{box-shadow:none}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid{padding:1.25rem}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content{height:100%;max-height:750px}@media screen and (max-width: 860px){.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content{height:auto;max-height:100%}}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content .Island{height:100%;display:flex;flex-direction:column;flex:1 1 auto}.excalidraw:not(.excalidraw--mobile).excalidraw .dialog-mermaid .Modal__content .Island .Dialog__content{display:flex;flex:1 1 auto}.excalidraw .dialog-mermaid-body{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;height:100%;-webkit-column-gap:4rem;column-gap:4rem}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-body{flex-direction:column;display:flex;gap:1rem}}.excalidraw .dialog-mermaid-panels{display:grid;width:100%;grid-template-columns:1fr 1fr;justify-content:space-between;gap:4rem;grid-row:1;grid-column:1/3}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels{flex-direction:column;display:flex;gap:1rem}}.excalidraw .dialog-mermaid-panels label{font-size:14px;font-style:normal;font-weight:600;margin-bottom:4px;margin-left:4px}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels label{margin-top:4px}}.excalidraw .dialog-mermaid-panels-text{display:flex;flex-direction:column}.excalidraw .dialog-mermaid-panels-text textarea{width:20rem;height:100%;resize:none;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color);white-space:pre-wrap;padding:.85rem;box-sizing:border-box;width:100%;font-family:monospace}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels-text textarea{width:auto;height:10rem}}.excalidraw .dialog-mermaid-panels-preview-wrapper{display:flex;align-items:center;justify-content:center;padding:.85rem;box-sizing:border-box;width:100%;height:200px;flex-grow:1;position:relative;background:url("+d+') left center;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color)}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-panels-preview-wrapper{height:400px;width:auto}}.excalidraw .dialog-mermaid-panels-preview-wrapper canvas{max-width:100%;max-height:100%}.excalidraw .dialog-mermaid-panels-preview-canvas-container{display:flex;width:100%;height:100%;align-items:center;justify-content:center;flex-grow:1}.excalidraw .dialog-mermaid-panels-preview{display:flex;flex-direction:column}.excalidraw .dialog-mermaid-panels .mermaid-error{color:red;font-weight:800;font-size:30px;word-break:break-word;overflow:auto;max-height:100%;height:100%;width:100%;text-align:center;position:absolute;z-index:10}.excalidraw .dialog-mermaid-panels .mermaid-error p{font-weight:500;font-family:Cascadia;text-align:left;white-space:pre-wrap;font-size:.875rem;padding:0 10px}.excalidraw .dialog-mermaid-buttons{grid-column:2}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{font-family:"Assistant";font-weight:600;height:2.5rem;margin-top:1em;margin-bottom:.3em;width:7.5rem;font-size:12px;color:#fff;background-color:var(--color-primary)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button:hover{background-color:var(--color-primary-darker)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button:active{background-color:var(--color-primary-darkest)}@media screen and (max-width: 860px){.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{width:100%}}.excalidraw.theme--dark.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert.excalidraw-button{color:var(--color-gray-100)}.excalidraw .dialog-mermaid-buttons .dialog-mermaid-insert span{padding-left:.5rem;display:flex}',""]),t.Z=u},6843:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw.excalidraw-modal-container{position:absolute;z-index:var(--zIndex-modal)}.excalidraw .Modal{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:calc(var(--space-factor)*10)}.excalidraw .Modal .Island{padding:2.5rem !important}.excalidraw .Modal__background{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1;background-color:rgba(18,18,18,.2);-webkit-animation:Modal__background__fade-in .125s linear forwards;animation:Modal__background__fade-in .125s linear forwards}.excalidraw .Modal__content{position:relative;z-index:2;width:100%;max-width:var(--max-width);max-height:100%;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-animation:Modal__content_fade-in .1s ease-out .05s forwards;animation:Modal__content_fade-in .1s ease-out .05s forwards;position:relative;overflow-y:auto;background:var(--island-bg-color);border:1px solid var(--dialog-border-color);box-shadow:var(--modal-shadow);border-radius:6px;box-sizing:border-box}.excalidraw .Modal__content:focus{outline:none}@-webkit-keyframes Modal__background__fade-in{from{opacity:0}to{opacity:1}}@keyframes Modal__background__fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes Modal__content_fade-in{from{opacity:0;-webkit-transform:scale(0.9);transform:scale(0.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.excalidraw .Modal__close{color:var(--icon-fill-color);margin:0;padding:.375rem;position:absolute;top:1rem;right:1rem;border:0;background-color:rgba(0,0,0,0);line-height:0;cursor:pointer}.excalidraw .Modal__close svg{width:1.5rem;height:1.5rem}.excalidraw .Dialog--fullscreen .Modal{padding:0}.excalidraw .Dialog--fullscreen .Modal__content{position:absolute;top:0;left:0;right:0;bottom:0;max-width:100%;border:0;border-radius:0}",""]),t.Z=a},9439:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .OverwriteConfirm{display:flex;flex-direction:column;align-items:center;gap:.75rem;isolation:isolate}.excalidraw .OverwriteConfirm h3{margin:0;font-weight:700;font-size:1.3125rem;line-height:130%;align-self:flex-start;color:var(--text-primary-color)}.excalidraw .OverwriteConfirm__Description{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;gap:1rem;padding:2.5rem;background:var(--color-danger-background);border-radius:.5rem;font-family:"Assistant";font-style:normal;font-weight:400;font-size:1rem;line-height:150%;color:var(--color-danger-color)}.excalidraw--mobile.excalidraw .OverwriteConfirm__Description{flex-direction:column;text-align:center}.excalidraw .OverwriteConfirm__Description__spacer{flex-grow:1}.excalidraw .OverwriteConfirm__Description__icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:2.5rem;background:var(--color-danger-icon-background);width:3.5rem;height:3.5rem;padding:.75rem}.excalidraw .OverwriteConfirm__Description__icon svg{color:var(--color-danger-icon-color);width:1.5rem;height:1.5rem}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning{background:var(--color-warning-background);color:var(--color-warning-color)}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon{background:var(--color-warning-icon-background);flex:0 0 auto}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon svg{color:var(--color-warning-icon-color)}.excalidraw .OverwriteConfirm__Actions{display:flex;flex-direction:row;align-items:stretch;justify-items:stretch;justify-content:center;gap:1.5rem}.excalidraw--mobile.excalidraw .OverwriteConfirm__Actions{flex-direction:column}.excalidraw .OverwriteConfirm__Actions__Action{display:flex;flex-direction:column;align-items:center;padding:1.5rem;gap:.75rem;flex-basis:50%;flex-grow:0}.excalidraw .OverwriteConfirm__Actions__Action__content{height:100%;font-size:.875rem;text-align:center}.excalidraw .OverwriteConfirm__Actions__Action h4{font-weight:700;font-size:1.125rem;line-height:130%;margin:0;color:var(--text-primary-color)}',""]),t.Z=a},8461:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw--mobile.excalidraw .PasteChartDialog .Island{display:flex;flex-direction:column}.excalidraw .PasteChartDialog .container{display:flex;align-items:center;justify-content:space-around;flex-wrap:wrap}.excalidraw--mobile.excalidraw .PasteChartDialog .container{flex-direction:column;justify-content:center}.excalidraw .PasteChartDialog .ChartPreview{margin:8px;text-align:center;width:192px;height:128px;border-radius:2px;padding:1px;border:1px solid #ced4da;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0)}.excalidraw .PasteChartDialog .ChartPreview div{display:inline-block}.excalidraw .PasteChartDialog .ChartPreview svg{max-height:120px;max-width:186px}.excalidraw .PasteChartDialog .ChartPreview:hover{padding:0;border:2px solid #339af0}",""]),t.Z=a},9935:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .popover{position:absolute;z-index:10;padding:5px 0 5px;outline:none}",""]),t.Z=a},532:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".ProjectName{margin:auto;display:flex;align-items:center}.ProjectName .TextInput{height:calc(1rem - 3px);width:200px;overflow:hidden;text-align:center;margin-left:8px;text-overflow:ellipsis}.ProjectName .TextInput--readonly{background:none;border:none;width:auto;max-width:200px;padding-left:2px}.ProjectName .TextInput--readonly:hover{background:none}",""]),t.Z=a},7589:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .publish-library__fields{display:flex;flex-direction:column}.excalidraw .publish-library__fields label{padding:1em 0;display:flex;justify-content:space-between;align-items:center}.excalidraw .publish-library__fields label span{font-weight:500;font-size:1rem;color:#868e96}.excalidraw .publish-library__fields label input,.excalidraw .publish-library__fields label textarea{width:70%;padding:.6em;font-family:var(--ui-font)}.excalidraw .publish-library__fields label .required{color:#e03131;margin:.2rem}.excalidraw .publish-library__buttons{display:flex;padding:.2rem 0;justify-content:flex-end;gap:.5rem}.excalidraw .publish-library__buttons .ToolIcon__icon{min-width:2.5rem;width:auto;font-size:1rem}.excalidraw .publish-library__buttons .ToolIcon_type_button{margin-left:1rem;padding:0 .5rem}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button{background-color:#228be6}.excalidraw .publish-library__buttons--confirm.ToolIcon_type_button:hover{background-color:#1971c2}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button{background-color:#adb5bd}.excalidraw .publish-library__buttons--cancel.ToolIcon_type_button:hover{background-color:#868e96}.excalidraw .publish-library__buttons .ToolIcon__icon{color:#fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner{--spinner-color: #fff}.excalidraw .publish-library__buttons .ToolIcon__icon .Spinner svg{padding:.5rem}.excalidraw .publish-library .selected-library-items{display:flex;flex-wrap:wrap}.excalidraw .publish-library .selected-library-items .single-library-item-wrapper{width:9rem}.excalidraw .publish-library-warning{color:#fa5252}.excalidraw .publish-library-note{padding:1em 0;font-style:italic;font-size:14px;display:block}.excalidraw .single-library-item{position:relative}.excalidraw .single-library-item-status{position:absolute;top:.3rem;left:.3rem;font-size:.7rem;color:#f03e3e;background:rgba(255,255,255,.9);padding:.1rem .2rem;border-radius:.2rem}.excalidraw .single-library-item__svg{background-color:#fff;padding:.3rem;width:7.5rem;height:7.5rem;border:1px solid var(--button-gray-2)}.excalidraw .single-library-item__svg svg{width:100%;height:100%}.excalidraw .single-library-item .ToolIcon__icon{background-color:#fff;width:auto;height:auto;margin:0 .5rem}.excalidraw .single-library-item .ToolIcon,.excalidraw .single-library-item .ToolIcon_type_button:hover{background-color:#fff}.excalidraw .single-library-item .required,.excalidraw .single-library-item .error{color:#e03131;font-weight:bold;font-size:1rem;margin:.2rem}.excalidraw .single-library-item .error{font-weight:500;margin:0;padding:.3em 0}.excalidraw .single-library-item--remove{position:absolute;top:.2rem;right:1rem}.excalidraw .single-library-item--remove .ToolIcon__icon{margin:0}.excalidraw .single-library-item--remove .ToolIcon__icon{background-color:#fa5252}.excalidraw .single-library-item--remove .ToolIcon__icon:hover{background-color:#f03e3e}.excalidraw .single-library-item--remove .ToolIcon__icon:active{background-color:#e03131}.excalidraw .single-library-item--remove svg{color:#fff;padding:.26rem;border-radius:.3em;width:1rem;height:1rem}",""]),t.Z=a},6217:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--RadioGroup-background: var(--island-bg-color);--RadioGroup-border: var(--color-surface-high);--RadioGroup-choice-color-off: var(--color-primary);--RadioGroup-choice-color-off-hover: var(--color-brand-hover);--RadioGroup-choice-background-off: var(--island-bg-color);--RadioGroup-choice-background-off-active: var(--color-surface-high);--RadioGroup-choice-color-on: var(--color-surface-lowest);--RadioGroup-choice-background-on: var(--color-primary);--RadioGroup-choice-background-on-hover: var(--color-brand-hover);--RadioGroup-choice-background-on-active: var(--color-brand-active)}.excalidraw .RadioGroup{box-sizing:border-box;display:flex;flex-direction:row;align-items:flex-start;padding:3px;border-radius:10px;background:var(--RadioGroup-background);border:1px solid var(--RadioGroup-border)}.excalidraw .RadioGroup__choice{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:24px;color:var(--RadioGroup-choice-color-off);background:var(--RadioGroup-choice-background-off);border-radius:8px;font-family:"Assistant";font-style:normal;font-weight:600;font-size:.75rem;line-height:100%;-webkit-user-select:none;user-select:none;letter-spacing:.4px;transition:all 75ms ease-out}.excalidraw .RadioGroup__choice:hover{color:var(--RadioGroup-choice-color-off-hover)}.excalidraw .RadioGroup__choice:active{background:var(--RadioGroup-choice-background-off-active)}.excalidraw .RadioGroup__choice.active{color:var(--RadioGroup-choice-color-on);background:var(--RadioGroup-choice-background-on)}.excalidraw .RadioGroup__choice.active:hover{background:var(--RadioGroup-choice-background-on-hover)}.excalidraw .RadioGroup__choice.active:active{background:var(--RadioGroup-choice-background-on-active)}.excalidraw .RadioGroup__choice input{z-index:1;position:absolute;width:100%;height:100%;margin:0;padding:0;border-radius:8px;-webkit-appearance:none;appearance:none;cursor:pointer}',""]),t.Z=a},8208:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;right:0;z-index:5;margin:0;padding:0;box-sizing:border-box;background-color:var(--sidebar-bg-color);box-shadow:var(--sidebar-shadow);pointer-events:var(--ui-pointerEvents);overflow:hidden;border-radius:0;width:calc(302px - var(--space-factor) * 2);border-left:1px solid var(--sidebar-border-color)}:root[dir=rtl] .excalidraw .sidebar{left:0;right:auto}.excalidraw .sidebar--docked{box-shadow:none}:root[dir=rtl] .excalidraw .sidebar{border-right:1px solid var(--sidebar-border-color);border-left:0}.excalidraw .sidebar__header{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem .75rem;position:relative}.excalidraw .sidebar__header::after{content:"";width:calc(100% - 1.5rem);height:1px;background:var(--sidebar-border-color);position:absolute;bottom:-1px}.excalidraw .sidebar__header__buttons{gap:0;display:flex;align-items:center;margin-left:auto}.excalidraw .sidebar__header__buttons button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));--button-bg: transparent;border:0 !important;width:var(--lg-button-size);height:var(--lg-button-size);padding:0}.excalidraw .sidebar__header__buttons button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar__header__buttons button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar__header__buttons button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar__header__buttons button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar__header__buttons button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .sidebar__header__buttons button:hover{background:var(--button-hover-bg, var(--island-bg-color))}.excalidraw .sidebar__header__buttons .sidebar__dock.selected svg{stroke:var(--color-primary);fill:var(--color-primary)}.excalidraw .sidebar-tabs-root{display:flex;flex-direction:column;flex:1 1 auto;padding:1rem 0}.excalidraw .sidebar-tabs-root [role=tabpanel]{flex:1;outline:none;flex:1 1 auto;display:flex;flex-direction:column;outline:none}.excalidraw .sidebar-tabs-root [role=tabpanel][data-state=inactive]{display:none !important}.excalidraw .sidebar-tabs-root [role=tablist]{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit, minmax(0, 1fr))}.excalidraw .sidebar-tabs-root>.sidebar__header{padding-top:0;padding-bottom:1rem}.excalidraw .sidebar-tab-trigger{--button-width: auto;--button-bg: transparent;--button-hover-bg: transparent;--button-active-bg: var(--color-primary);--button-hover-color: var(--color-primary);--button-hover-border: var(--color-primary)}.excalidraw .sidebar-tab-trigger[data-state=active]{--button-bg: var(--color-primary);--button-hover-bg: var(--color-primary-darker);--button-hover-color: var(--color-icon-white);--button-border: var(--color-primary);color:var(--color-icon-white)}.excalidraw .default-sidebar{display:flex;flex-direction:column}.excalidraw .default-sidebar .sidebar-triggers{display:flex;gap:0;padding:2px;margin-top:-3px;margin-bottom:-3px;border:1px solid var(--sidebar-border-color);background:var(--default-bg-color);border-radius:.625rem}.excalidraw .default-sidebar .sidebar-triggers .sidebar-tab-trigger{height:var(--lg-button-size);width:var(--lg-button-size);border:none}',""]),t.Z=a},7051:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar-trigger{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low);width:auto;height:var(--lg-button-size);display:flex;align-items:center;gap:.5rem;line-height:0;font-size:.75rem;letter-spacing:.4px}.excalidraw .sidebar-trigger svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar-trigger:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar-trigger:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar-trigger.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar-trigger.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar-trigger.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar-trigger:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .sidebar-trigger svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .default-sidebar-trigger .sidebar-trigger__label{display:block}.excalidraw.excalidraw--mobile .default-sidebar-trigger .sidebar-trigger__label{display:none}",""]),t.Z=a},5892:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .Spinner{display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:auto;--spinner-color: var(--icon-fill-color)}.excalidraw .Spinner svg{-webkit-animation:rotate 1.6s linear infinite;animation:rotate 1.6s linear infinite;-webkit-animation-delay:var(--spinner-delay);animation-delay:var(--spinner-delay);-webkit-transform-origin:center center;transform-origin:center center}.excalidraw .Spinner circle{stroke:var(--spinner-color);-webkit-animation:dash 1.6s linear 0s infinite;animation:dash 1.6s linear 0s infinite;stroke-linecap:round}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}@keyframes dash{0%{stroke-dasharray:1,300;stroke-dashoffset:0}50%{stroke-dasharray:150,300;stroke-dashoffset:-200}100%{stroke-dasharray:1,300;stroke-dashoffset:-280}}",""]),t.Z=a},3874:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .Stack{--gap: 0;display:grid;gap:calc(var(--space-factor)*var(--gap))}.excalidraw .Stack_vertical{grid-template-columns:auto;grid-auto-flow:row;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.excalidraw .Stack_horizontal{grid-template-rows:auto;grid-auto-flow:column;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content}",""]),t.Z=a},2681:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Stats{position:absolute;top:64px;right:12px;font-size:12px;z-index:10;pointer-events:var(--ui-pointerEvents)}.excalidraw .Stats h3{margin:0 24px 8px 0;white-space:nowrap}.excalidraw .Stats .close{float:right;height:16px;width:16px;cursor:pointer}.excalidraw .Stats .close svg{width:100%;height:100%}.excalidraw .Stats table{width:100%}.excalidraw .Stats table th{border-bottom:1px solid var(--input-border-color);padding:4px}.excalidraw .Stats table tr td:nth-child(2){min-width:24px;text-align:right}:root[dir=rtl] .excalidraw .Stats{left:12px;right:initial}:root[dir=rtl] .excalidraw .Stats h3{margin:0 0 8px 24px}:root[dir=rtl] .excalidraw .Stats .close{float:left}",""]),t.Z=a},7802:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--Switch-disabled-color: var(--color-border-outline);--Switch-disabled-toggled-background: var(--color-border-outline-variant);--Switch-disabled-border: var(--color-border-outline-variant);--Switch-track-background: var(--island-bg-color);--Switch-thumb-background: var(--color-on-surface);--Switch-hover-background: var(--color-brand-hover);--Switch-active-background: var(--color-brand-active)}.excalidraw .Switch{position:relative;box-sizing:border-box;width:40px;height:20px;border-radius:12px;transition-property:background,border;transition-duration:150ms;transition-timing-function:ease-out;background:var(--Switch-track-background);border:1px solid var(--Switch-disabled-color)}.excalidraw .Switch:hover{background:var(--Switch-track-background);border:1px solid var(--Switch-hover-background)}.excalidraw .Switch:active{border:1px solid var(--Switch-active-background)}.excalidraw .Switch.toggled{background:var(--color-primary);border:1px solid var(--color-primary)}.excalidraw .Switch.toggled:hover{background:var(--color-primary-darker);border:1px solid var(--color-primary-darker)}.excalidraw .Switch.disabled{background:var(--Switch-track-background);border:1px solid var(--Switch-disabled-border)}.excalidraw .Switch.disabled.toggled{background:var(--Switch-disabled-toggled-background);border:1px solid var(--Switch-disabled-toggled-background)}.excalidraw .Switch:before{content:"";box-sizing:border-box;display:block;pointer-events:none;position:absolute;border-radius:100%;transition:all 150ms ease-out;width:10px;height:10px;top:4px;left:4px;background:var(--Switch-thumb-background)}.excalidraw .Switch:active:before{width:12px}.excalidraw .Switch.toggled:before{width:14px;height:14px;left:22px;top:2px;background:var(--Switch-track-background)}.excalidraw .Switch.toggled:active:before{width:16px;left:20px}.excalidraw .Switch.disabled:before{background:var(--Switch-disabled-color)}.excalidraw .Switch.disabled.toggled:before{background:var(--Switch-disabled-color)}.excalidraw .Switch input{width:100%;height:100%;margin:0;border-radius:12px;-webkit-appearance:none;appearance:none;cursor:pointer}.excalidraw .Switch input:disabled{cursor:unset}',""]),t.Z=a},6759:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .TextInput{display:inline-block}",""]),t.Z=a},9650:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Toast{-webkit-animation:fade-in .5s;animation:fade-in .5s;background-color:var(--button-gray-1);border-radius:4px;bottom:10px;box-sizing:border-box;cursor:default;left:50%;margin-left:-150px;padding:4px 0;position:absolute;text-align:center;width:300px;z-index:999999}.excalidraw .Toast .Toast__message{padding:0 1.6rem;color:var(--popup-text-color);white-space:pre-wrap}.excalidraw .Toast .close{position:absolute;top:0;right:0;padding:.4rem}.excalidraw .Toast .close .ToolIcon__icon{width:1.2rem;height:1.2rem}@-webkit-keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes fade-in{from{opacity:0}to{opacity:1}}",""]),t.Z=a},2044:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .ToolIcon{border-radius:var(--border-radius-lg);display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon__hidden{display:none !important}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon{--icon-fill-color: var(--color-on-primary-container)}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{fill:var(--icon-fill-color)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-surface-primary-container);--keybinding-color: var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .ToolIcon .ToolIcon__icon:hover{background:var(--button-hover-bg)}.excalidraw .ToolIcon .ToolIcon__icon:active{background:var(--button-hover-bg);border:1px solid var(--button-active-border)}.excalidraw .ToolIcon .ToolIcon__icon:active svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon--plain{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon__icon{box-sizing:border-box;width:var(--default-button-size);height:var(--default-button-size);color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{-webkit-margin-start:0;margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;width:var(--default-icon-size);height:var(--default-icon-size);color:var(--icon-fill-color)}.excalidraw .ToolIcon__label{display:flex;align-items:center;color:var(--icon-fill-color);font-family:var(--ui-font);margin:0 .8em;text-overflow:ellipsis}.excalidraw .ToolIcon__label .Spinner{margin-left:.6em}.excalidraw .ToolIcon_size_small .ToolIcon__icon{width:2rem;height:2rem;font-size:.8em}.excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button,.excalidraw .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit;background-color:initial}.excalidraw .ToolIcon_type_button:focus-visible,.excalidraw .Modal .ToolIcon_type_button:focus-visible,.excalidraw .ToolIcon_type_button:focus-visible{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_button.ToolIcon--selected,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected,.excalidraw .ToolIcon_type_button.ToolIcon--selected{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .ToolIcon_type_button.ToolIcon--selected:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active,.excalidraw .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show,.excalidraw .ToolIcon_type_button--show{visibility:visible}.excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide,.excalidraw .ToolIcon_type_button--hide{display:none !important}.excalidraw .ToolIcon_type_floating{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:hover{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating:active{background-color:rgba(0,0,0,0)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2rem}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__keybinding{position:absolute;bottom:2px;right:3px;font-size:.625rem;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}.excalidraw .App-toolbar-container .ToolIcon__icon{width:var(--lg-button-size);height:var(--lg-button-size)}@media screen and (max-width: 450px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.8rem;height:1.8rem}}@media screen and (max-width: 379px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.5rem;height:1.5rem}}.excalidraw .App-toolbar-container .ToolIcon__icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .App-toolbar-container .ToolIcon__LaserPointer .ToolIcon__icon{width:var(--default-button-size);height:var(--default-button-size)}",""]),t.Z=a},9144:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw .App-toolbar__divider{width:1px;height:1.5rem;align-self:center;background-color:var(--default-border-color);margin:0 .25rem}.excalidraw--mobile.excalidraw .App-toolbar__divider{margin:0}.excalidraw .App-toolbar__extra-tools-trigger{box-shadow:none;border:0;background-color:rgba(0,0,0,0)}.excalidraw .App-toolbar__extra-tools-trigger:active{background-color:var(--button-hover-bg);box-shadow:0 0 0 1px var(--button-active-border, var(--color-primary-darkest)) inset}.excalidraw .App-toolbar__extra-tools-trigger--selected,.excalidraw .App-toolbar__extra-tools-trigger--selected:hover{background:var(--color-primary-light);color:var(--color-primary)}.excalidraw .App-toolbar__extra-tools-dropdown{margin-top:.375rem;right:0;min-width:11.875rem;z-index:1}",""]),t.Z=a},6626:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-tooltip{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:fixed;z-index:var(--zIndex-popup);padding:8px;border-radius:6px;box-sizing:border-box;pointer-events:none;word-wrap:break-word;background:#000;line-height:1.5;text-align:center;font-size:13px;font-weight:500;color:#fff;display:none}.excalidraw-tooltip.excalidraw-tooltip--visible{display:block}.excalidraw-tooltip-wrapper{display:flex}.excalidraw-tooltip-icon{width:.9em;height:.9em;margin-left:5px;margin-top:1px;display:flex}.excalidraw--mobile.excalidraw-tooltip-icon{display:none}",""]),t.Z=a},6359:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .UserList{pointer-events:none;padding:var(--space-factor) var(--space-factor) var(--space-factor) var(--space-factor);display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.625rem;max-height:140px;max-width:290px;overflow:hidden}.excalidraw .UserList:empty{display:none}.excalidraw .UserList>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .UserList_mobile{padding:0;justify-content:normal;margin:.5rem 0}",""]),t.Z=a},7399:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .dropdown-menu{position:absolute;top:100%;margin-top:.25rem}.excalidraw .dropdown-menu--mobile{left:0;width:100%;row-gap:.75rem}.excalidraw .dropdown-menu--mobile .dropdown-menu-container{padding:8px 8px;box-sizing:border-box;box-shadow:var(--shadow-island);border-radius:var(--border-radius-lg);position:relative;transition:box-shadow .5s ease-in-out}.excalidraw .dropdown-menu--mobile .dropdown-menu-container.zen-mode{box-shadow:none}.excalidraw .dropdown-menu .dropdown-menu-container{background-color:var(--island-bg-color);max-height:calc(100vh - 150px);overflow-y:auto;--gap: 2}.excalidraw .dropdown-menu .dropdown-menu-item-base{display:flex;padding:0 .625rem;-webkit-column-gap:.625rem;column-gap:.625rem;font-size:.875rem;color:var(--color-on-surface);width:100%;box-sizing:border-box;font-weight:normal;font-family:inherit}.excalidraw .dropdown-menu .dropdown-menu-item{background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);align-items:center;height:2rem;cursor:pointer;border-radius:var(--border-radius-md)}@media screen and (min-width: 1921px){.excalidraw .dropdown-menu .dropdown-menu-item{height:2.25rem}}.excalidraw .dropdown-menu .dropdown-menu-item--selected{background:var(--color-primary-light);--icon-fill-color: var(--color-primary-darker)}.excalidraw .dropdown-menu .dropdown-menu-item__text{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.excalidraw .dropdown-menu .dropdown-menu-item__shortcut{-webkit-margin-start:auto;margin-inline-start:auto;opacity:.5}.excalidraw .dropdown-menu .dropdown-menu-item:hover{background-color:var(--button-hover-bg);text-decoration:none}.excalidraw .dropdown-menu .dropdown-menu-item:active{background-color:var(--button-hover-bg);border-color:var(--color-brand-active)}.excalidraw .dropdown-menu .dropdown-menu-item svg{width:1rem;height:1rem;display:block}.excalidraw .dropdown-menu .dropdown-menu-item-custom{margin-top:.5rem}.excalidraw .dropdown-menu .dropdown-menu-group-title{font-size:14px;text-align:left;margin:10px 0;font-weight:500}.excalidraw .dropdown-menu-button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));width:var(--lg-button-size);height:var(--lg-button-size);--background: var(--color-surface-mid);background-color:var(--background)}.excalidraw .dropdown-menu-button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .dropdown-menu-button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .dropdown-menu-button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .dropdown-menu-button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .dropdown-menu-button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .dropdown-menu-button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw.theme--dark.excalidraw .dropdown-menu-button{--background: var(--color-surface-high)}.excalidraw.theme--dark.excalidraw .dropdown-menu-button:hover{--background: #363541}.excalidraw .dropdown-menu-button:hover{--background: var(--color-surface-high);background-color:var(--background);text-decoration:none}.excalidraw .dropdown-menu-button:active{border-color:var(--color-primary)}.excalidraw .dropdown-menu-button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .dropdown-menu-button--mobile{border:none;margin:0;padding:0;width:var(--default-button-size);height:var(--default-button-size)}",""]),t.Z=a},8793:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".footer-center{pointer-events:none;display:flex;width:100%;justify-content:flex-start;-webkit-margin-end:.6rem;margin-inline-end:.6rem}.footer-center>*{pointer-events:var(--ui-pointerEvents)}",""]),t.Z=a},3397:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,':export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .collab-button{--button-bg: var(--color-primary);--button-color: white;--button-border: var(--color-primary);--button-width: var(--lg-button-size);--button-height: var(--lg-button-size);--button-hover-bg: var(--color-primary-darker);--button-hover-border: var(--color-primary-darker);--button-active-bg: var(--color-primary-darker);box-shadow:0 0 0 1px var(--color-surface-lowest);flex-shrink:0}.excalidraw .collab-button.active.active{background-color:#0fb884;border-color:#0fb884}.excalidraw .collab-button.active.active svg{color:#fff}.excalidraw .collab-button.active.active:hover,.excalidraw .collab-button.active.active:active{background-color:#0fb884;border-color:#0fb884}.excalidraw.theme--dark .collab-button{color:var(--color-gray-90)}.excalidraw .CollabButton.is-collaborating{background-color:var(--button-special-active-bg-color)}.excalidraw .CollabButton.is-collaborating .ToolIcon__icon svg,.excalidraw .CollabButton.is-collaborating .ToolIcon__label{color:var(--icon-green-fill-color)}.excalidraw .CollabButton-collaborators{min-width:1em;min-height:1em;line-height:1;position:absolute;bottom:-5px;padding:3px;border-radius:50%;background-color:#b2f2bb;color:#2b8a3e;font-size:.6rem;font-family:"Cascadia"}:root[dir=ltr] .excalidraw .CollabButton-collaborators{right:-5px}:root[dir=rtl] .excalidraw .CollabButton-collaborators{left:-5px}',""]),t.Z=a},4343:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".excalidraw .ActiveFile .ActiveFile__fileName{display:flex;align-items:center}.excalidraw .ActiveFile .ActiveFile__fileName span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:9.3em}.excalidraw .ActiveFile .ActiveFile__fileName svg{width:1.15em;-webkit-margin-end:.3em;margin-inline-end:.3em;-webkit-transform:scaleY(0.9);transform:scaleY(0.9)}",""]),t.Z=a},1569:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,'.excalidraw .virgil{font-family:"Virgil"}.excalidraw .welcome-screen-decor{pointer-events:none;color:var(--color-gray-40)}.excalidraw .welcome-screen-decor a{--color: var(--color-primary);color:var(--color);text-decoration:none;margin-bottom:-6px}.excalidraw.theme--dark .welcome-screen-decor{color:var(--color-gray-60)}@media(max-height: 599px){.excalidraw .welcome-screen-decor-hint{display:none !important}}@media(max-width: 1024px),(max-width: 800px){.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--help,.excalidraw .welcome-screen-decor-hint .welcome-screen-decor--menu{display:none}}.excalidraw .welcome-screen-decor-hint--help{display:flex;position:absolute;right:0;bottom:100%}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help{left:0;right:auto}.excalidraw .welcome-screen-decor-hint--help svg{margin-top:.5rem;width:85px;height:71px;-webkit-transform:scaleX(-1) rotate(80deg);transform:scaleX(-1) rotate(80deg)}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--help svg{-webkit-transform:rotate(80deg);transform:rotate(80deg)}.excalidraw .welcome-screen-decor-hint--toolbar{position:absolute;top:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin-top:2.5rem;display:flex;align-items:baseline}.excalidraw .welcome-screen-decor-hint--toolbar .welcome-screen-decor-hint__label{width:120px;position:relative;top:-0.5rem}.excalidraw .welcome-screen-decor-hint--toolbar svg{width:38px;height:78px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--toolbar svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .welcome-screen-decor-hint--menu{position:absolute;width:320px;font-size:1rem;top:100%;margin-top:.25rem;-webkit-margin-start:.6rem;margin-inline-start:.6rem;display:flex;align-items:flex-end;gap:.5rem}.excalidraw .welcome-screen-decor-hint--menu svg{width:41px;height:94px}:root[dir=rtl] .excalidraw .welcome-screen-decor-hint--menu svg{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@media(max-width: 860px){.excalidraw .welcome-screen-decor-hint--menu .welcome-screen-decor-hint__label{max-width:160px}}.excalidraw .welcome-screen-center{display:flex;flex-direction:column;gap:2rem;justify-content:center;align-items:center;position:absolute;pointer-events:none;left:1rem;top:1rem;right:1rem;bottom:1rem}.excalidraw .welcome-screen-center__logo{display:flex;align-items:center;-webkit-column-gap:.75rem;column-gap:.75rem;font-size:2.25rem}.excalidraw .welcome-screen-center__heading{font-size:1.125rem;text-align:center}.excalidraw .welcome-screen-menu{display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center}.excalidraw .welcome-screen-menu-item{box-sizing:border-box;pointer-events:var(--ui-pointerEvents);color:var(--color-gray-50);font-size:.875rem;width:100%;min-width:300px;max-width:400px;display:grid;align-items:center;justify-content:space-between;background:none;border:1px solid rgba(0,0,0,0);padding:.75rem;border-radius:var(--border-radius-md);grid-template-columns:calc(var(--default-icon-size) + .5rem) 1fr 3rem}.excalidraw .welcome-screen-menu-item__text{display:flex;align-items:center;margin-right:auto;text-align:left;-webkit-column-gap:.5rem;column-gap:.5rem}.excalidraw .welcome-screen-menu-item__icon{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .welcome-screen-menu-item__shortcut{margin-left:auto;color:var(--color-gray-40);font-size:.75rem}.excalidraw .welcome-screen-menu-item:hover{text-decoration:none;background:var(--button-hover-bg)}.excalidraw .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active{background:var(--button-hover-bg);border-color:var(--color-brand-active)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-100)}.excalidraw .welcome-screen-menu-item:active--promo{color:var(--color-promo) !important}.excalidraw .welcome-screen-menu-item:active--promo:hover .welcome-screen-menu-item__text{color:var(--color-promo) !important}.excalidraw.theme--dark .welcome-screen-menu-item{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item__shortcut{color:var(--color-gray-60)}.excalidraw.theme--dark .welcome-screen-menu-item:hover{background-color:var(--color-surface-low)}.excalidraw.theme--dark .welcome-screen-menu-item:hover .welcome-screen-menu-item__shortcut{color:var(--color-gray-50)}.excalidraw.theme--dark .welcome-screen-menu-item:hover .welcome-screen-menu-item__text{color:var(--color-gray-10)}.excalidraw.theme--dark .welcome-screen-menu-item:active .welcome-screen-menu-item__text{color:var(--color-gray-10)}@media(max-height: 599px){.excalidraw .welcome-screen-center{margin-top:4rem}}@media(min-height: 600px)and (max-height: 900px){.excalidraw .welcome-screen-center{margin-top:8rem}}@media(max-height: 500px),(max-width: 320px){.excalidraw .welcome-screen-center{display:none}}',""]),t.Z=a},9915:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,".visually-hidden{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);white-space:nowrap;-webkit-user-select:none;user-select:none}.LoadingMessage{position:absolute;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.LoadingMessage .Spinner{font-size:2.8em}.LoadingMessage .LoadingMessage-text{margin-top:1em;font-size:.8em}.LoadingMessage--dark{background-color:#121212;color:#ced4da}",""]),t.Z=a},9310:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o),s=n(1667),l=n.n(s),c=new URL(n(7984),n.b),u=new URL(n(1639),n.b),d=a()(i()),p=l()(c),h=l()(u);d.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw{--theme-filter: none;--button-destructive-bg-color: #ffe3e3;--button-destructive-color: #c92a2a;--button-gray-1: #e9ecef;--button-gray-2: #ced4da;--button-gray-3: #adb5bd;--button-special-active-bg-color: #ebfbee;--dialog-border-color: var(--color-gray-20);--dropdown-icon: url("+p+");--focus-highlight-color: #a5d8ff;--icon-fill-color: var(--color-on-surface);--icon-green-fill-color: #2b8a3e;--default-bg-color: #ffffff;--input-bg-color: #ffffff;--input-border-color: #ced4da;--input-hover-bg-color: #f1f3f5;--input-label-color: #495057;--island-bg-color: #ffffff;--keybinding-color: var(--color-gray-40);--link-color: #1c7ed6;--overlay-bg-color: rgba(255, 255, 255, 0.88);--popup-bg-color: var(--island-bg-color);--popup-secondary-bg-color: #f1f3f5;--popup-text-color: #000000;--popup-text-inverted-color: #ffffff;--select-highlight-color: #339af0;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--button-hover-bg: var(--color-surface-high);--button-active-bg: var(--color-surface-high);--button-active-border: var(--color-brand-active);--default-border-color: var(--color-surface-high);--default-button-size: 2rem;--default-icon-size: 1rem;--lg-button-size: 2.25rem;--lg-icon-size: 1rem;--editor-container-padding: 1rem;--scrollbar-thumb: var(--button-gray-2);--scrollbar-thumb-hover: var(--button-gray-3);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-20);--sidebar-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--sidebar-border-color: var(--color-surface-high);--sidebar-bg-color: var(--island-bg-color);--library-dropdown-shadow: 0px 15px 6px rgba(0, 0, 0, 0.01), 0px 8px 5px rgba(0, 0, 0, 0.05), 0px 4px 4px rgba(0, 0, 0, 0.09), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);--space-factor: 0.25rem;--text-primary-color: var(--color-on-surface);--color-selection: #6965db;--color-icon-white: #ffffff;--color-primary: #6965db;--color-primary-darker: #5b57d1;--color-primary-darkest: #4a47b1;--color-primary-light: #e3e2fe;--color-primary-light-darker: #d7d5ff;--color-gray-10: #f5f5f5;--color-gray-20: #ebebeb;--color-gray-30: #d6d6d6;--color-gray-40: #b8b8b8;--color-gray-50: #999999;--color-gray-60: #7a7a7a;--color-gray-70: #5c5c5c;--color-gray-80: #3d3d3d;--color-gray-85: #242424;--color-gray-90: #1e1e1e;--color-gray-100: #121212;--color-warning: #fceeca;--color-warning-dark: #f5c354;--color-warning-darker: #f3ab2c;--color-warning-darkest: #ec8b14;--color-text-warning: var(--text-primary-color);--color-danger: #db6965;--color-danger-dark: #db6965;--color-danger-darker: #d65550;--color-danger-darkest: #d1413c;--color-danger-text: black;--color-danger-background: #fff0f0;--color-danger-icon-background: #ffdad6;--color-danger-color: #700000;--color-danger-icon-color: #700000;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--text-primary-color);--color-warning-icon-color: var(--text-primary-color);--color-muted: var(--color-gray-30);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-100);--color-muted-background: var(--color-gray-80);--color-muted-background-darker: var(--color-gray-100);--color-promo: #e70078;--color-success: #268029;--color-success-lighter: #cafccc;--color-logo-icon: var(--color-primary);--color-logo-text: #190064;--border-radius-md: 0.375rem;--border-radius-lg: 0.5rem;--color-surface-high: hsl(244, 100%, 97%);--color-surface-mid: hsl(240 25% 96%);--color-surface-low: hsl(240 25% 94%);--color-surface-lowest: #ffffff;--color-on-surface: #1b1b1f;--color-brand-hover: #5753d0;--color-on-primary-container: #030064;--color-surface-primary-container: #e0dfff;--color-brand-active: #4440bf;--color-border-outline: #767680;--color-border-outline-variant: #c5c5d0;--color-surface-primary-container: #e0dfff}@media screen and (min-device-width: 1921px){.excalidraw{--lg-button-size: 2.5rem;--lg-icon-size: 1.25rem;--default-button-size: 2.25rem;--default-icon-size: 1.25rem}}.excalidraw.theme--dark.theme--dark-background-none{background:none}.excalidraw.theme--dark{--theme-filter: invert(93%) hue-rotate(180deg);--button-destructive-bg-color: #5a0000;--button-destructive-color: #ffa8a8;--button-gray-1: #363636;--button-gray-2: #272727;--button-gray-3: #222;--button-special-active-bg-color: #204624;--dialog-border-color: var(--color-gray-80);--dropdown-icon: url("+h+');--focus-highlight-color: #228be6;--icon-green-fill-color: #69db7c;--default-bg-color: #121212;--input-bg-color: #121212;--input-border-color: #2e2e2e;--input-hover-bg-color: #181818;--input-label-color: #e9ecef;--island-bg-color: #232329;--keybinding-color: var(--color-gray-60);--link-color: #4dabf7;--overlay-bg-color: rgba(52, 58, 64, 0.12);--popup-secondary-bg-color: #222;--popup-text-color: #ced4da;--popup-text-inverted-color: #2c2c2c;--select-highlight-color: #4dabf7;--shadow-island: 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17), 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08), 0px 7px 14px 0px rgba(0, 0, 0, 0.05);--modal-shadow: 0px 100px 80px rgba(0, 0, 0, 0.07), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);--avatar-border-color: var(--color-gray-85);--scrollbar-thumb: #343a40;--scrollbar-thumb-hover: #495057;--color-selection: #3530c4;--color-icon-white: var(--color-gray-90);--color-primary: #a8a5ff;--color-primary-darker: #b2aeff;--color-primary-darkest: #beb9ff;--color-primary-light: #4f4d6f;--color-primary-light-darker: #43415e;--color-text-warning: var(--color-gray-80);--color-danger: #ffa8a5;--color-danger-dark: #672120;--color-danger-darker: #8f2625;--color-danger-darkest: #ac2b29;--color-danger-text: #fbcbcc;--color-danger-background: #fbcbcc;--color-danger-icon-background: #672120;--color-danger-color: #261919;--color-danger-icon-color: #fbcbcc;--color-warning-background: var(--color-warning);--color-warning-icon-background: var(--color-warning-dark);--color-warning-color: var(--color-gray-80);--color-warning-icon-color: var(--color-gray-80);--color-muted: var(--color-gray-80);--color-muted-darker: var(--color-gray-60);--color-muted-darkest: var(--color-gray-20);--color-muted-background: var(--color-gray-40);--color-muted-background-darker: var(--color-gray-20);--color-promo: #d297ff;--color-logo-text: #e2dfff;--color-surface-high: hsl(245, 10%, 21%);--color-surface-low: hsl(240, 8%, 15%);--color-surface-mid: hsl(240 6% 10%);--color-surface-lowest: hsl(0, 0%, 7%);--color-on-surface: #e3e3e8;--color-brand-hover: #bbb8ff;--color-on-primary-container: #e0dfff;--color-surface-primary-container: #403e6a;--color-brand-active: #d0ccff;--color-border-outline: #8e8d9c;--color-border-outline-variant: #46464f;--color-surface-primary-container: #403e6a}:root{--zIndex-canvas: 1;--zIndex-interactiveCanvas: 2;--zIndex-wysiwyg: 3;--zIndex-layerUI: 4;--zIndex-eyeDropperBackdrop: 5;--zIndex-eyeDropperPreview: 6;--zIndex-modal: 1000;--zIndex-popup: 1001;--zIndex-toast: 999999;--sab: env(safe-area-inset-bottom);--sal: env(safe-area-inset-left);--sar: env(safe-area-inset-right);--sat: env(safe-area-inset-top)}.excalidraw{--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;font-family:var(--ui-font);position:relative;overflow:hidden;color:var(--text-primary-color);display:flex;top:0;bottom:0;left:0;right:0;height:100%;width:100%;-webkit-user-select:none;user-select:none}.excalidraw button{cursor:pointer}.excalidraw:focus{outline:none}.excalidraw a{font-weight:500;text-decoration:none;color:var(--link-color)}.excalidraw a:hover{text-decoration:underline}.excalidraw canvas{touch-action:none;image-rendering:pixelated;image-rendering:-moz-crisp-edges;z-index:var(--zIndex-canvas)}.excalidraw canvas.interactive{z-index:var(--zIndex-interactiveCanvas)}.excalidraw__canvas-wrapper,.excalidraw__canvas.static{pointer-events:none}.excalidraw__canvas{position:absolute}.excalidraw__embeddable{width:100%;height:100%;border:0}.excalidraw__embeddable-container{position:absolute;z-index:2;-webkit-transform-origin:top left;transform-origin:top left;pointer-events:none}.excalidraw.theme--dark canvas{-webkit-filter:var(--theme-filter);filter:var(--theme-filter)}.excalidraw .FixedSideContainer{padding-top:var(--sat, 0);padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0)}.excalidraw .panelRow{display:flex;justify-content:space-between}.excalidraw .panelColumn{display:flex;flex-direction:column;row-gap:.75rem}.excalidraw .panelColumn h3,.excalidraw .panelColumn legend,.excalidraw .panelColumn .control-label{margin:0;margin-bottom:.25rem;font-size:.75rem;color:var(--text-primary-color);font-weight:normal;display:block}.excalidraw .panelColumn .control-label input{display:block;width:100%}.excalidraw .panelColumn legend{padding:0}.excalidraw .panelColumn .iconSelectList{flex-wrap:wrap;position:relative}.excalidraw .panelColumn .buttonList{flex-wrap:wrap;display:flex;-webkit-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem}.excalidraw .panelColumn .buttonList label{font-size:.75rem}.excalidraw .panelColumn .buttonList input[type=radio],.excalidraw .panelColumn .buttonList input[type=button]{opacity:0;position:absolute;pointer-events:none}.excalidraw .panelColumn .buttonList .iconRow{margin-top:8px}.excalidraw .panelColumn fieldset{margin:0;padding:0;border:none}.excalidraw .divider{width:1px;background-color:#e9ecef;margin:1px}.excalidraw .welcome-screen-menu-item:focus-visible,.excalidraw .dropdown-menu-item:focus-visible,.excalidraw button:focus-visible,.excalidraw .buttonList label:focus-within,.excalidraw input:focus-visible{outline:rgba(0,0,0,0);box-shadow:0 0 0 1px var(--color-brand-hover)}.excalidraw .buttonList .ToolIcon__icon{all:unset !important;display:flex !important}.excalidraw .buttonList button{background-color:rgba(0,0,0,0)}.excalidraw .buttonList label,.excalidraw .buttonList button,.excalidraw .buttonList .zIndexButton{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));padding:0}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .buttonList label:hover,.excalidraw .buttonList button:hover,.excalidraw .buttonList .zIndexButton:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .buttonList label:active,.excalidraw .buttonList button:active,.excalidraw .buttonList .zIndexButton:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .buttonList label.active,.excalidraw .buttonList button.active,.excalidraw .buttonList .zIndexButton.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .buttonList label.active:hover,.excalidraw .buttonList button.active:hover,.excalidraw .buttonList .zIndexButton.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .buttonList label.active svg,.excalidraw .buttonList button.active svg,.excalidraw .buttonList .zIndexButton.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .buttonList label svg,.excalidraw .buttonList button svg,.excalidraw .buttonList .zIndexButton svg{width:var(--default-icon-size);height:var(--default-icon-size)}.excalidraw .App-top-bar{z-index:var(--zIndex-layerUI);display:flex;flex-direction:column;align-items:center}.excalidraw .App-bottom-bar{position:absolute;top:0;bottom:0;left:0;right:0;--bar-padding: calc(4 * var(--space-factor));padding-top:max(var(--bar-padding), var(--sat,0));padding-right:var(--sar, 0);padding-bottom:var(--sab, 0);padding-left:var(--sal, 0);z-index:4;display:flex;align-items:flex-end;pointer-events:none}.excalidraw .App-bottom-bar>.Island{width:100%;max-width:100%;min-width:100%;box-sizing:border-box;max-height:100%;display:flex;flex-direction:column;pointer-events:var(--ui-pointerEvents)}.excalidraw .App-bottom-bar>.Island .panelColumn{padding:8px 8px 0 8px}.excalidraw .App-toolbar{width:100%}.excalidraw .App-toolbar .eraser.ToolIcon:hover{--icon-fill-color: #fff;--keybinding-color: #fff}.excalidraw .App-toolbar .eraser.active{background-color:var(--color-primary)}.excalidraw .App-toolbar-content{display:flex;align-items:center;justify-content:space-between;padding:8px}.excalidraw .App-toolbar-content .dropdown-menu--mobile{bottom:55px;top:auto}.excalidraw .App-mobile-menu{width:100%;overflow-x:visible;overflow-y:auto;box-sizing:border-box;margin-bottom:var(--bar-padding)}.excalidraw .App-menu{display:grid;color:var(--icon-fill-color)}.excalidraw .shapes-section{display:flex;justify-content:center;pointer-events:none !important}.excalidraw .shapes-section>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .App-menu_top{grid-template-columns:1fr 2fr 1fr;grid-gap:2rem;align-items:flex-start;cursor:default;pointer-events:none !important}.excalidraw .App-menu_top>*{pointer-events:var(--ui-pointerEvents)}@media(min-width: 1536px){.excalidraw .App-menu_top{grid-template-columns:1fr 1fr 1fr;grid-gap:3rem}}.excalidraw .App-menu_top>*:first-child{justify-self:flex-start}.excalidraw .App-menu_top>*:last-child{justify-self:flex-end}.excalidraw .App-menu_bottom{position:absolute;bottom:1rem;display:flex;justify-content:space-between;align-items:flex-start;cursor:default;pointer-events:none !important;box-sizing:border-box;padding:0 1rem}.excalidraw .App-menu_bottom--transition-left section{width:185px}.excalidraw .App-menu_bottom section{display:flex}.excalidraw .App-menu_bottom>*:first-child{justify-self:flex-start}.excalidraw .App-menu_bottom>*:last-child{justify-self:flex-end}.excalidraw .App-menu_left{grid-template-rows:1fr auto 1fr;height:100%}.excalidraw .App-menu_right{grid-template-rows:1fr;height:100%}.excalidraw .App-menu__left{overflow-y:auto;padding:.75rem;width:202px;box-sizing:border-box;position:absolute}.excalidraw .dropdown-select{height:1.5rem;padding:0;-webkit-padding-start:.5rem;padding-inline-start:.5rem;-webkit-padding-end:1.5rem;padding-inline-end:1.5rem;color:var(--icon-fill-color);background-color:var(--button-gray-1);border-radius:var(--space-factor);border:1px solid var(--button-gray-2);font-size:.8rem;font-family:inherit;outline:none;-webkit-appearance:none;appearance:none;background-image:var(--dropdown-icon);background-repeat:no-repeat;background-position:right .7rem top 50%,0 0;background-size:.65em auto,100%}:root[dir=rtl] .excalidraw .dropdown-select{background-position:left .7rem top 50%,0 0}.excalidraw .dropdown-select:focus{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .dropdown-select:hover{background-color:var(--button-gray-2)}.excalidraw .dropdown-select:active{background-color:var(--button-gray-2)}.excalidraw .dropdown-select__language{height:2rem;background-color:var(--island-bg-color);border-color:var(--default-border-color) !important;cursor:pointer}.excalidraw .dropdown-select__language:hover{background-color:var(--island-bg-color)}.excalidraw .scroll-back-to-content{border-radius:var(--border-radius-lg);background-color:var(--island-bg-color);color:var(--icon-fill-color);border:1px solid var(--default-border-color);padding:10px 20px;position:absolute;left:50%;bottom:30px;-webkit-transform:translateX(-50%);transform:translateX(-50%);pointer-events:var(--ui-pointerEvents);font-family:inherit}.excalidraw .scroll-back-to-content:hover{background-color:var(--button-hover-bg)}.excalidraw .scroll-back-to-content:active{border:1px solid var(--button-active-border)}.excalidraw .help-icon{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low);width:var(--lg-button-size);height:var(--lg-button-size)}.excalidraw .help-icon svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .help-icon:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .help-icon:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .help-icon.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .help-icon.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .help-icon.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .help-icon:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .help-icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .reset-zoom-button{font-family:var(--ui-font)}.excalidraw .finalize-button{display:grid;grid-auto-flow:column;gap:.4em;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw .undo-redo-buttons,.excalidraw .eraser-buttons{display:grid;grid-auto-flow:column;margin-top:auto;margin-bottom:auto;-webkit-margin-start:.6em;margin-inline-start:.6em}.excalidraw--mobile.excalidraw aside{display:none}.excalidraw--mobile.excalidraw .scroll-back-to-content{bottom:calc(80px + var(--sab, 0));z-index:-1}:root[dir=rtl] .excalidraw .rtl-mirror{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.excalidraw .zen-mode-visibility{visibility:visible;opacity:1;height:auto;width:auto;transition:opacity .5s}.excalidraw .zen-mode-visibility.zen-mode-visibility--hidden{visibility:hidden;opacity:0;height:0;width:0;transition:opacity .5s}.excalidraw .disable-pointerEvents{pointer-events:none !important}.excalidraw.excalidraw--view-mode .App-menu{display:flex;justify-content:space-between}.excalidraw input[type=text],.excalidraw textarea:not(.excalidraw-wysiwyg){color:var(--text-primary-color);border:1.5px solid var(--input-border-color);padding:.75rem;white-space:nowrap;border-radius:var(--space-factor);background-color:var(--input-bg-color)}.excalidraw input[type=text]:not(:focus):hover,.excalidraw textarea:not(.excalidraw-wysiwyg):not(:focus):hover{border-color:var(--color-brand-hover)}.excalidraw input[type=text]:focus,.excalidraw textarea:not(.excalidraw-wysiwyg):focus{outline:none;border-color:var(--color-brand-hover)}@media print{.excalidraw .App-bottom-bar,.excalidraw .FixedSideContainer,.excalidraw .layer-ui__wrapper{display:none}}.excalidraw ::-webkit-scrollbar{width:3px;height:3px}.excalidraw select::-webkit-scrollbar{width:10px}.excalidraw ::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:10px}.excalidraw ::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}.excalidraw ::-webkit-scrollbar-thumb:active{background:var(--scrollbar-thumb)}.excalidraw .mobile-misc-tools-container{position:absolute;top:calc(5rem - var(--editor-container-padding));right:calc(var(--editor-container-padding)*-1);display:flex;flex-direction:column;border:1px solid var(--sidebar-border-color);border-top-left-radius:var(--border-radius-lg);border-bottom-left-radius:var(--border-radius-lg);border-right:0;overflow:hidden;background-color:var(--island-bg-color)}.excalidraw .mobile-misc-tools-container .ToolIcon__icon{width:2rem;height:2rem;border-radius:0}.excalidraw .mobile-misc-tools-container .default-sidebar-trigger{border:0}.excalidraw .App-toolbar--mobile{overflow:visible;max-width:98vw}.excalidraw .App-toolbar--mobile .ToolIcon__keybinding{display:none}.excalidraw .UserList-Wrapper{margin:0;padding:0;border:none;text-align:left}.excalidraw .UserList-Wrapper legend{display:block;font-size:.75rem;font-weight:400;margin:0 0 .25rem;padding:0}.excalidraw .main-menu-trigger{border:none;box-shadow:0 0 0 1px var(--color-surface-lowest);background-color:var(--color-surface-low)}.excalidraw .main-menu-trigger:active{box-shadow:0 0 0 1px var(--color-brand-active)}.excalidraw .App-menu__left{--button-border: transparent;--button-bg: var(--color-surface-mid)}.excalidraw.theme--dark.excalidraw .App-menu__left{--button-hover-bg: #363541;--button-bg: var(--color-surface-high)}.ErrorSplash.excalidraw{min-height:100vh;padding:20px 0;overflow:auto;display:flex;align-items:center;justify-content:center;-webkit-user-select:text;user-select:text}.ErrorSplash.excalidraw .ErrorSplash-messageContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background-color:#ffe3e3;border:3px solid #c92a2a}.ErrorSplash.excalidraw .ErrorSplash-paragraph{margin:15px 0;max-width:600px}.ErrorSplash.excalidraw .ErrorSplash-paragraph.align-center{text-align:center}.ErrorSplash.excalidraw .bigger,.ErrorSplash.excalidraw .bigger button{font-size:1.1em}.ErrorSplash.excalidraw .smaller,.ErrorSplash.excalidraw .smaller button{font-size:.9em}.ErrorSplash.excalidraw .ErrorSplash-details{display:flex;flex-direction:column;align-items:flex-start}.ErrorSplash.excalidraw .ErrorSplash-details textarea{width:100%;margin:10px 0;font-family:"Cascadia";font-size:.8em}.excalidraw__embeddable-container .excalidraw__embeddable-container__inner{overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:var(--embeddable-radius)}.excalidraw__embeddable-container .excalidraw__embeddable__outer{width:100%;height:100%}.excalidraw__embeddable-container .excalidraw__embeddable__outer>*{border-radius:var(--embeddable-radius)}.excalidraw__embeddable-container .excalidraw__embeddable-hint{position:absolute;z-index:1;background:rgba(0,0,0,.5);padding:1rem 1.6rem;border-radius:12px;color:#fff;font-weight:bold;letter-spacing:.6px;font-family:"Assistant"}',""]),t.Z=d},6464:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,"",""]),a.locals={themeFilter:"invert(93%) hue-rotate(180deg)",rightSidebarWidth:"302px"},t.Z=a},5260:function(e,t,n){"use strict";var r=n(8081),i=n.n(r),o=n(3645),a=n.n(o)()(i());a.push([e.id,":export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw-hyperlinkContainer{display:flex;align-items:center;justify-content:space-between;position:absolute;box-shadow:0px 2px 4px 0 rgba(0,0,0,.3);z-index:100;background:var(--island-bg-color);border-radius:var(--border-radius-md);box-sizing:border-box;min-height:42px}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer button{z-index:100}.excalidraw-hyperlinkContainer-input,.excalidraw-hyperlinkContainer-link{height:24px;padding:0 8px;line-height:24px;font-size:.9rem;font-weight:500;font-family:var(--ui-font)}.excalidraw-hyperlinkContainer-input{width:18rem;border:none;background-color:rgba(0,0,0,0);color:var(--text-primary-color);outline:none;border:none;box-shadow:none !important}.excalidraw-hyperlinkContainer-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15rem}.excalidraw-hyperlinkContainer button{color:#228be6;background-color:rgba(0,0,0,0) !important;font-weight:500}.excalidraw-hyperlinkContainer button.excalidraw-hyperlinkContainer--remove{color:#c92a2a}.excalidraw-hyperlinkContainer--remove .ToolIcon__icon svg{color:#fa5252}.excalidraw-hyperlinkContainer .ToolIcon__icon{width:2rem;height:2rem}.excalidraw-hyperlinkContainer__buttons{flex:0 0 auto}",""]),t.Z=a},3645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},7392:function(e,t,n){"use strict";n.d(t,{JQ:function(){return x},vD:function(){return b},y7:function(){return v}});var r=n(1930),i=n(7169),o=n(9937),a=n(7651),s=n(583),l=n(4761),c=n(3474),u=n(4183),d=n(9827),p=n(2767);function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&o},perform:function(e,t,n,i){var c,d=i.scene.getSelectedElements(t),p=e.slice(),f={},m=h(d);try{var v=function(){var e=c.value;if((0,a.iB)(e)){var n,i=(0,a.Up)({type:"rectangle",backgroundColor:t.currentItemBackgroundColor,boundElements:[].concat((0,r.Z)(e.boundElements||[]),[{id:e.id,type:"text"}]),angle:e.angle,fillStyle:t.currentItemFillStyle,strokeColor:t.currentItemStrokeColor,roughness:t.currentItemRoughness,strokeWidth:t.currentItemStrokeWidth,strokeStyle:t.currentItemStrokeStyle,roundness:"round"===t.currentItemRoundness?{type:(0,u.QI)("rectangle")?o.a6.ADAPTIVE_RADIUS:o.a6.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:e.x-o.gK,y:e.y-o.gK,width:(0,l.NS)(e.width,"rectangle"),height:(0,l.NS)(e.height,"rectangle"),groupIds:e.groupIds,frameId:e.frameId});if(null!==(n=e.boundElements)&&void 0!==n&&n.length){var d=e.boundElements.filter((function(e){return"arrow"===e.type})).map((function(e){return e.id}));p.filter((function(e){return d.includes(e.id)})).forEach((function(t){var n,r,o=t.startBinding,a=t.endBinding;(null===(n=o)||void 0===n?void 0:n.elementId)===e.id&&(o=g(g({},o),{},{elementId:i.id})),(null===(r=a)||void 0===r?void 0:r.elementId)===e.id&&(a=g(g({},a),{},{elementId:i.id})),(o||a)&&(0,s.DR)(t,{startBinding:o,endBinding:a},!1)}))}(0,s.DR)(e,{containerId:i.id,verticalAlign:o.oX.MIDDLE,boundElements:null,textAlign:o.I8.CENTER},!1),(0,l.oN)(e,i),p=function(e,t,n){var r=e.slice(),i=r.findIndex((function(e){return e.id===t.id}));r.splice(i,1);var o=r.findIndex((function(e){return e.id===n.id}));return r.splice(o,0,t),r}([].concat((0,r.Z)(p),[i]),i,e),f[i.id]=!0}};for(m.s();!(c=m.n()).done;)v()}catch(e){m.e(e)}finally{m.f()}return{elements:p,appState:g(g({},t),{},{selectedElementIds:f}),commitToHistory:!0}}})},6006:function(e,t,n){"use strict";n.d(t,{CZ:function(){return C},JB:function(){return P},Lo:function(){return _},Zp:function(){return j},eF:function(){return I},mo:function(){return E}});var r=n(2577),i=n(7169),o=n(193),a=n(8935),s=n(1512),l=n(9937),c=n(7651),u=n(8227),d=n(5491),p=n(4105),h=n(2382),f=n(4116),m=n(9827),g=n(2767),v=n(8925),b=n(583),y=n(6853),x=n(9240),w=n(7652),O=n(4512);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t0},contextItemLabel:"labels.copyAsSvg"}),E=(0,l.z)({name:"copyAsPng",trackEvent:{category:"element"},perform:(x=(0,i.Z)(a().mark((function e(t,n,r,i){var o,s,l,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.canvas){e.next=2;break}return e.abrupt("return",{commitToHistory:!1});case 2:return o=i.scene.getSelectedElements({selectedElementIds:n.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0}),s=(0,d.HD)(t,n,!0),l=s.exportedElements,c=s.exportingFrame,e.prev=4,e.next=7,(0,d.p1)("clipboard",l,n,i.files,g(g({},n),{},{exportingFrame:c}));case 7:return e.abrupt("return",{appState:g(g({},n),{},{toast:{message:(0,h.t)("toast.copyToClipboardAsPng",{exportSelection:o.length?(0,h.t)("toast.selection"):(0,h.t)("toast.canvas"),exportColorScheme:n.exportWithDarkMode?(0,h.t)("buttons.darkMode"):(0,h.t)("buttons.lightMode")})}}),commitToHistory:!1});case 10:return e.prev=10,e.t0=e.catch(4),console.error(e.t0),e.abrupt("return",{appState:g(g({},n),{},{errorMessage:e.t0.message}),commitToHistory:!1});case 14:case"end":return e.stop()}}),e,null,[[4,10]])}))),function(e,t,n,r){return x.apply(this,arguments)}),predicate:function(e){return c.vt&&e.length>0},contextItemLabel:"labels.copyAsPng",keyTest:function(e){return e.code===s.aU.C&&e.altKey&&e.shiftKey}}),_=(0,l.z)({name:"copyText",trackEvent:{category:"element"},perform:function(e,t,n,r){var i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0}).reduce((function(e,t){return(0,p.iB)(t)&&e.push(t.text),e}),[]).join("\n\n");return(0,c.dd)(i),{commitToHistory:!1}},predicate:function(e,t,n,r){return c.wx&&r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0}).some(p.iB)},contextItemLabel:"labels.copyText"})},2448:function(e,t,n){"use strict";n.d(t,{X:function(){return w}});var r=n(7169),i=n(4105),o=n(5491),a=n(1512),s=n(8227),l=n(2767),c=n(7651),u=n(583),d=n(9215),p=n(7422),h=n(9645),f=n(4183),m=n(9827),g=n(8935),v=n(4512);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0?[o[0]-1]:[0]})}),commitToHistory:!0}}var v=function(e,t){var n=new Set((0,i.eD)(e.filter((function(e){return"frame"===e.type})),t).map((function(e){return e.id})));return{elements:e.map((function(e){return t.selectedElementIds[e.id]||e.frameId&&n.has(e.frameId)||(0,f.Xh)(e)&&t.selectedElementIds[e.containerId]?(0,u.BE)(e,{isDeleted:!0}):e})),appState:y(y({},t),{},{selectedElementIds:{},selectedGroupIds:{}})}}(e,t),b=v.elements,w=v.appState;return(0,h.$q)(b,e.filter((function(e){var n=e.id;return t.selectedElementIds[n]}))),{elements:b,appState:y(y({},w=x(w,b)),{},{activeTool:(0,m.Om)(t,{type:"selection"}),multiElement:null,activeEmbeddable:null}),commitToHistory:(0,i.N)((0,c.Lm)(e),t)}},contextItemLabel:"labels.delete",keyTest:function(e,t,n){return(e.key===o.tW.BACKSPACE||e.key===o.tW.DELETE)&&!e[o.tW.CTRL_OR_CMD]},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,v.jsx)(a.V,{type:"button",icon:g.XH,title:(0,s.t)("labels.delete"),"aria-label":(0,s.t)("labels.delete"),onClick:function(){return r(null)},visible:(0,i.N)((0,c.Lm)(t),n)})}})},9672:function(e,t,n){"use strict";n.d(t,{$:function(){return d},U:function(){return p}});var r=n(7169),i=n(583),o=n(5491),a=n(9827),s=n(2767);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0}}),p=(0,s.z)({name:"unlockAllElements",trackEvent:{category:"canvas"},viewMode:!1,predicate:function(e){return e.some((function(e){return e.locked}))},perform:function(e,t){var n=e.filter((function(e){return e.locked}));return{elements:e.map((function(e){return e.locked?(0,i.BE)(e,{locked:!1}):e})),appState:c(c({},t),{},{selectedElementIds:Object.fromEntries(n.map((function(e){return[e.id,!0]})))}),commitToHistory:!0}},contextItemLabel:"labels.elementLock.unlockAll"})},4406:function(e,t,n){"use strict";n.d(t,{XA:function(){return te},Du:function(){return ne},sK:function(){return ee},zX:function(){return J},bJ:function(){return ae},_d:function(){return oe},mM:function(){return ie},ns:function(){return re}});var r=n(8950),i=n(2577),o=n(7169),a=n(2975),s=n.n(a),l=n(8935),c=n(3379),u=n.n(c),d=n(7795),p=n.n(d),h=n(569),f=n.n(h),m=n(3565),g=n.n(m),v=n(9216),b=n.n(v),y=n(4589),x=n.n(y),w=n(6759),O={};O.styleTagTransform=x(),O.setAttributes=g(),O.insert=f().bind(null,"head"),O.domAPI=p(),O.insertStyleElement=b(),u()(w.Z,O),w.Z&&w.Z.locals&&w.Z.locals;var k=n(9787),S=n(9827),E=n(532),_={};_.styleTagTransform=x(),_.setAttributes=g(),_.insert=f().bind(null,"head"),_.domAPI=p(),_.insertStyleElement=b(),u()(E.Z,_),E.Z&&E.Z.locals&&E.Z.locals;var C=n(8242),P=n(5491),j=n(4512),I=function(e){var t=(0,C.J0)().id,n=(0,k.useState)(e.value),r=(0,i.Z)(n,2),o=r[0],a=r[1];return(0,j.jsxs)("div",{className:"ProjectName",children:[(0,j.jsx)("label",{className:"ProjectName-label",htmlFor:"filename",children:"".concat(e.label).concat(e.isNameEditable?"":":")}),e.isNameEditable?(0,j.jsx)("input",{type:"text",className:"TextInput",onBlur:function(t){e.ignoreFocus||(0,S.qz)(t.target);var n=t.target.value;n!==e.value&&e.onChange(n)},onKeyDown:function(e){if(e.key===P.tW.ENTER){if(e.preventDefault(),e.nativeEvent.isComposing||229===e.keyCode)return;e.currentTarget.blur()}},id:"".concat(t,"-filename"),value:o,onChange:function(e){return a(e.target.value)}}):(0,j.jsx)("span",{className:"TextInput TextInput--readonly",id:"".concat(t,"-filename"),children:e.value})]})},T=n(1512),M=n(8925),D=(n(3041),n(8227)),A=n(9937),R=function(e){var t=e.title||("dark"===e.value?(0,D.t)("buttons.lightMode"):(0,D.t)("buttons.darkMode"));return(0,j.jsx)(T.V,{type:"icon",icon:e.value===A.C6.LIGHT?L.MOON:L.SUN,title:t,"aria-label":t,onClick:function(){return e.onChange(e.value===A.C6.DARK?A.C6.LIGHT:A.C6.DARK)},"data-testid":"toggle-dark-mode"})},L={SUN:(0,j.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,j.jsx)("path",{fill:"currentColor",d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"})}),MOON:(0,j.jsx)("svg",{width:"512",height:"512",className:"rtl-mirror",viewBox:"0 0 512 512",children:(0,j.jsx)("path",{fill:"currentColor",d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"})})},z=n(2435),Z=n(5796);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],i=(0,W.xn)((0,F.eD)(e,t,{includeBoundTextElement:r}));return e.map((function(e){var r;return i.get(e.id)||e.id===(null===(r=t.editingElement)||void 0===r?void 0:r.id)?n(e):e}))},q=function(e,t,n,r,i){var o,a=t.editingElement,s=(0,z.Lm)(e),l=null;return a&&(l=n(a)),l||(l=(0,F.N)(s,t)?null!==(o=(0,F.PR)(!0===r?s:s.filter((function(e){return r(e)})),t,n))&&void 0!==o?o:"function"==typeof i?i(!0):i:"function"==typeof i?i(!1):i),l},X=function(e,t,n,i){var o=new Set;return{elements:V(e,t,(function(e){if((0,z.iB)(e)){var t=n(e);o.add(t);var r=(0,Z.BE)(e,{fontSize:t});return(0,z.oN)(r,(0,N.tl)(e)),i=e,a=r,(0,$.Xh)(a)?a:(0,Z.DR)(a,{x:"left"===i.textAlign?i.x:i.x+(i.width-a.width)/("center"===i.textAlign?2:1),y:i.y+(i.height-a.height)/2},!1)}var i,a;return e}),!0),appState:Y(Y({},t),{},{currentItemFontSize:1===o.size?(0,r.Z)(o)[0]:null!=i?i:t.currentItemFontSize}),commitToHistory:!0}},G=((0,H.z)({name:"changeStrokeColor",trackEvent:!1,perform:function(e,t,n){return Y(Y({},n.currentItemStrokeColor&&{elements:V(e,t,(function(e){return(0,Q.PD)(e.type)?(0,Z.BE)(e,{strokeColor:n.currentItemStrokeColor}):e}),!0)}),{},{appState:Y(Y({},t),n),commitToHistory:!!n.currentItemStrokeColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return e.appProps,(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{"aria-hidden":"true",children:(0,I.t)("labels.stroke")}),(0,l.jsx)(u.z,{topPicks:o.fY,palette:o.Wk,type:"elementStroke",label:(0,I.t)("labels.stroke"),color:q(t,n,(function(e){return e.strokeColor}),!0,n.currentItemStrokeColor),onChange:function(e){return r({currentItemStrokeColor:e})},elements:t,appState:n,updateData:r})]})}}),(0,H.z)({name:"changeBackgroundColor",trackEvent:!1,perform:function(e,t,n){return Y(Y({},n.currentItemBackgroundColor&&{elements:V(e,t,(function(e){return(0,Z.BE)(e,{backgroundColor:n.currentItemBackgroundColor})}))}),{},{appState:Y(Y({},t),n),commitToHistory:!!n.currentItemBackgroundColor})},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return e.appProps,(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{"aria-hidden":"true",children:(0,I.t)("labels.background")}),(0,l.jsx)(u.z,{topPicks:o.eq,palette:o.SF,type:"elementBackground",label:(0,I.t)("labels.background"),color:q(t,n,(function(e){return e.backgroundColor}),!0,n.currentItemBackgroundColor),onChange:function(e){return r({currentItemBackgroundColor:e})},elements:t,appState:n,updateData:r})]})}}),(0,H.z)({name:"changeFillStyle",trackEvent:!1,perform:function(e,t,n,r){return(0,a.L)("element","changeFillStyle","".concat(n," (").concat(r.device.editor.isMobile?"mobile":"desktop",")")),{elements:V(e,t,(function(e){return(0,Z.BE)(e,{fillStyle:n})})),appState:Y(Y({},t),{},{currentItemFillStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=(0,F.eD)(t,n),o=i.length>0&&i.every((function(e){return"zigzag"===e.fillStyle}));return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.fill")}),(0,l.jsx)(c,{type:"button",options:[{value:"hachure",text:"".concat(o?(0,I.t)("labels.zigzag"):(0,I.t)("labels.hachure")," (").concat((0,W.uY)("Alt-Click"),")"),icon:o?R.lF:R.a0,active:!!o||void 0,testId:"fill-hachure"},{value:"cross-hatch",text:(0,I.t)("labels.crossHatch"),icon:R.np,testId:"fill-cross-hatch"},{value:"solid",text:(0,I.t)("labels.solid"),icon:R.X7,testId:"fill-solid"}],value:q(t,n,(function(e){return e.fillStyle}),(function(e){return e.hasOwnProperty("fillStyle")}),(function(e){return e?null:n.currentItemFillStyle})),onClick:function(e,t){var n=t.altKey&&"hachure"===e&&i.every((function(e){return"hachure"===e.fillStyle}))?"zigzag":e;r(n)}})]})}}),(0,H.z)({name:"changeStrokeWidth",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){return(0,Z.BE)(e,{strokeWidth:n})})),appState:Y(Y({},t),{},{currentItemStrokeWidth:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.strokeWidth")}),(0,l.jsx)(c,{group:"stroke-width",options:[{value:L.dg.thin,text:(0,I.t)("labels.thin"),icon:R.ZA,testId:"strokeWidth-thin"},{value:L.dg.bold,text:(0,I.t)("labels.bold"),icon:R.Wl,testId:"strokeWidth-bold"},{value:L.dg.extraBold,text:(0,I.t)("labels.extraBold"),icon:R.m9,testId:"strokeWidth-extraBold"}],value:q(t,n,(function(e){return e.strokeWidth}),(function(e){return e.hasOwnProperty("strokeWidth")}),(function(e){return e?null:n.currentItemStrokeWidth})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeSloppiness",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){return(0,Z.BE)(e,{seed:(0,B.LU)(),roughness:n})})),appState:Y(Y({},t),{},{currentItemRoughness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.sloppiness")}),(0,l.jsx)(c,{group:"sloppiness",options:[{value:0,text:(0,I.t)("labels.architect"),icon:R.bf},{value:1,text:(0,I.t)("labels.artist"),icon:R.kM},{value:2,text:(0,I.t)("labels.cartoonist"),icon:R.W2}],value:q(t,n,(function(e){return e.roughness}),(function(e){return e.hasOwnProperty("roughness")}),(function(e){return e?null:n.currentItemRoughness})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeStrokeStyle",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){return(0,Z.BE)(e,{strokeStyle:n})})),appState:Y(Y({},t),{},{currentItemStrokeStyle:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.strokeStyle")}),(0,l.jsx)(c,{group:"strokeStyle",options:[{value:"solid",text:(0,I.t)("labels.strokeStyle_solid"),icon:R.ZA},{value:"dashed",text:(0,I.t)("labels.strokeStyle_dashed"),icon:R.a5},{value:"dotted",text:(0,I.t)("labels.strokeStyle_dotted"),icon:R.aT}],value:q(t,n,(function(e){return e.strokeStyle}),(function(e){return e.hasOwnProperty("strokeStyle")}),(function(e){return e?null:n.currentItemStrokeStyle})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeOpacity",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){return(0,Z.BE)(e,{opacity:n})}),!0),appState:Y(Y({},t),{},{currentItemOpacity:n}),commitToHistory:!0}},PanelComponent:function(e){var t,n=e.elements,r=e.appState,i=e.updateData;return(0,l.jsxs)("label",{className:"control-label",children:[(0,I.t)("labels.opacity"),(0,l.jsx)("input",{type:"range",min:"0",max:"100",step:"10",onChange:function(e){return i(+e.target.value)},value:null!==(t=q(n,r,(function(e){return e.opacity}),!0,r.currentItemOpacity))&&void 0!==t?t:void 0})]})}}),(0,H.z)({name:"changeFontSize",trackEvent:!1,perform:function(e,t,n){return X(e,t,(function(){return n}),n)},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.fontSize")}),(0,l.jsx)(c,{group:"font-size",options:[{value:16,text:(0,I.t)("labels.small"),icon:R.q0,testId:"fontSize-small"},{value:20,text:(0,I.t)("labels.medium"),icon:R.nq,testId:"fontSize-medium"},{value:28,text:(0,I.t)("labels.large"),icon:R.tW,testId:"fontSize-large"},{value:36,text:(0,I.t)("labels.veryLarge"),icon:R.OA,testId:"fontSize-veryLarge"}],value:q(t,n,(function(e){if((0,z.iB)(e))return e.fontSize;var t=(0,N.WJ)(e);return t?t.fontSize:null}),(function(e){return(0,z.iB)(e)||null!==(0,N.WJ)(e)}),(function(e){return e?null:n.currentItemFontSize||L.n5})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"decreaseFontSize",trackEvent:!1,perform:function(e,t,n){return X(e,t,(function(e){return Math.round(1/1.1*e.fontSize)}))},keyTest:function(e){return e[j.tW.CTRL_OR_CMD]&&e.shiftKey&&(e.key===j.tW.CHEVRON_LEFT||e.key===j.tW.COMMA)}})),K=(0,H.z)({name:"increaseFontSize",trackEvent:!1,perform:function(e,t,n){return X(e,t,(function(e){return Math.round(1.1*e.fontSize)}))},keyTest:function(e){return e[j.tW.CTRL_OR_CMD]&&e.shiftKey&&(e.key===j.tW.CHEVRON_RIGHT||e.key===j.tW.PERIOD)}});(0,H.z)({name:"changeFontFamily",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){if((0,z.iB)(e)){var t=(0,Z.BE)(e,{fontFamily:n,lineHeight:(0,N.PT)(n)});return(0,z.oN)(t,(0,N.tl)(e)),t}return e}),!0),appState:Y(Y({},t),{},{currentItemFontFamily:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=[{value:L.ut.Virgil,text:(0,I.t)("labels.handDrawn"),icon:R.Pm,testId:"font-family-virgil"},{value:L.ut.Helvetica,text:(0,I.t)("labels.normal"),icon:R.vo,testId:"font-family-normal"},{value:L.ut.Cascadia,text:(0,I.t)("labels.code"),icon:R.z6,testId:"font-family-code"}];return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.fontFamily")}),(0,l.jsx)(c,{group:"font-family",options:i,value:q(t,n,(function(e){if((0,z.iB)(e))return e.fontFamily;var t=(0,N.WJ)(e);return t?t.fontFamily:null}),(function(e){return(0,z.iB)(e)||null!==(0,N.WJ)(e)}),(function(e){return e?null:n.currentItemFontFamily||L.rk})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeTextAlign",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){if((0,z.iB)(e)){var t=(0,Z.BE)(e,{textAlign:n});return(0,z.oN)(t,(0,N.tl)(e)),t}return e}),!0),appState:Y(Y({},t),{},{currentItemTextAlign:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.textAlign")}),(0,l.jsx)(c,{group:"text-align",options:[{value:"left",text:(0,I.t)("labels.left"),icon:R.rr,testId:"align-left"},{value:"center",text:(0,I.t)("labels.center"),icon:R.o3,testId:"align-horizontal-center"},{value:"right",text:(0,I.t)("labels.right"),icon:R.oT,testId:"align-right"}],value:q(t,n,(function(e){if((0,z.iB)(e))return e.textAlign;var t=(0,N.WJ)(e);return t?t.textAlign:null}),(function(e){return(0,z.iB)(e)||null!==(0,N.WJ)(e)}),(function(e){return e?null:n.currentItemTextAlign})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeVerticalAlign",trackEvent:{category:"element"},perform:function(e,t,n){return{elements:V(e,t,(function(e){if((0,z.iB)(e)){var t=(0,Z.BE)(e,{verticalAlign:n});return(0,z.oN)(t,(0,N.tl)(e)),t}return e}),!0),appState:Y({},t),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,l.jsx)("fieldset",{children:(0,l.jsx)(c,{group:"text-align",options:[{value:L.oX.TOP,text:(0,I.t)("labels.alignTop"),icon:(0,l.jsx)(R.EO,{theme:n.theme}),testId:"align-top"},{value:L.oX.MIDDLE,text:(0,I.t)("labels.centerVertically"),icon:(0,l.jsx)(R.P7,{theme:n.theme}),testId:"align-middle"},{value:L.oX.BOTTOM,text:(0,I.t)("labels.alignBottom"),icon:(0,l.jsx)(R.aA,{theme:n.theme}),testId:"align-bottom"}],value:q(t,n,(function(e){if((0,z.iB)(e)&&e.containerId)return e.verticalAlign;var t=(0,N.WJ)(e);return t?t.verticalAlign:null}),(function(e){return(0,z.iB)(e)||null!==(0,N.WJ)(e)}),(function(e){return e?null:L.oX.MIDDLE})),onChange:function(e){return r(e)}})})}}),(0,H.z)({name:"changeRoundness",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){return(0,Z.BE)(e,{roundness:"round"===n?{type:(0,$.QI)(e.type)?L.a6.ADAPTIVE_RADIUS:L.a6.PROPORTIONAL_RADIUS}:null})})),appState:Y(Y({},t),{},{currentItemRoundness:n}),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=(0,F.Zs)((0,z.Lm)(t),n).some((function(e){var t;return(null===(t=e.roundness)||void 0===t?void 0:t.type)===L.a6.LEGACY}));return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.edges")}),(0,l.jsx)(c,{group:"edges",options:[{value:"sharp",text:(0,I.t)("labels.sharp"),icon:R.wr},{value:"round",text:(0,I.t)("labels.round"),icon:R.DS}],value:q(t,n,(function(e){return i?null:e.roundness?"round":"sharp"}),(function(e){return e.hasOwnProperty("roundness")}),(function(e){return e?null:n.currentItemRoundness})),onChange:function(e){return r(e)}})]})}}),(0,H.z)({name:"changeArrowhead",trackEvent:!1,perform:function(e,t,n){return{elements:V(e,t,(function(e){if((0,$.bt)(e)){var t=n.position,r=n.type;if("start"===t)return(0,Z.BE)(e,{startArrowhead:r});if("end"===t)return(0,Z.BE)(e,{endArrowhead:r})}return e})),appState:Y(Y({},t),{},(0,i.Z)({},"start"===n.position?"currentItemStartArrowhead":"currentItemEndArrowhead",n.type)),commitToHistory:!0}},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=(0,I.G3)().rtl;return(0,l.jsxs)("fieldset",{children:[(0,l.jsx)("legend",{children:(0,I.t)("labels.arrowheads")}),(0,l.jsxs)("div",{className:"iconSelectList buttonList",children:[(0,l.jsx)(A,{label:"arrowhead_start",options:[{value:null,text:(0,I.t)("labels.arrowhead_none"),icon:R.fr,keyBinding:"q"},{value:"arrow",text:(0,I.t)("labels.arrowhead_arrow"),icon:(0,l.jsx)(R.il,{flip:!i}),keyBinding:"w"},{value:"bar",text:(0,I.t)("labels.arrowhead_bar"),icon:(0,l.jsx)(R.m,{flip:!i}),keyBinding:"e"},{value:"dot",text:(0,I.t)("labels.arrowhead_dot"),icon:(0,l.jsx)(R.tn,{flip:!i}),keyBinding:"r"},{value:"triangle",text:(0,I.t)("labels.arrowhead_triangle"),icon:(0,l.jsx)(R.j8,{flip:!i}),keyBinding:"t"}],value:q(t,n,(function(e){return(0,$.bt)(e)&&(0,F.Un)(e.type)?e.startArrowhead:n.currentItemStartArrowhead}),!0,n.currentItemStartArrowhead),onChange:function(e){return r({position:"start",type:e})}}),(0,l.jsx)(A,{label:"arrowhead_end",group:"arrowheads",options:[{value:null,text:(0,I.t)("labels.arrowhead_none"),keyBinding:"q",icon:R.fr},{value:"arrow",text:(0,I.t)("labels.arrowhead_arrow"),keyBinding:"w",icon:(0,l.jsx)(R.il,{flip:i})},{value:"bar",text:(0,I.t)("labels.arrowhead_bar"),keyBinding:"e",icon:(0,l.jsx)(R.m,{flip:i})},{value:"dot",text:(0,I.t)("labels.arrowhead_dot"),keyBinding:"r",icon:(0,l.jsx)(R.tn,{flip:i})},{value:"triangle",text:(0,I.t)("labels.arrowhead_triangle"),icon:(0,l.jsx)(R.j8,{flip:i}),keyBinding:"t"}],value:q(t,n,(function(e){return(0,$.bt)(e)&&(0,F.Un)(e.type)?e.endArrowhead:n.currentItemEndArrowhead}),!0,n.currentItemEndArrowhead),onChange:function(e){return r({position:"end",type:e})}})]})]})}})},7080:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var r=n(7169),i=n(2767),o=n(5491);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&e[i-1]!==r-1&&(t=++t),(n[t]||(n[t]=[])).push(r),n}),[])}(r);"right"===n&&(s=s.reverse());var l=new Set(r.filter((function(t){return"frame"===e[t].type})).map((function(t){return e[t].id})));return s.forEach((function(r,i){var a,s=r[0],c=r[r.length-1],u="left"===n?s:c,d=r.some((function(t){var n=e[t];return n.frameId&&l.has(n.frameId)}))?null:null===(a=e[u])||void 0===a?void 0:a.frameId,p=v(t,e,u,n,d);if(-1!==p&&u!==p){var h="left"===n?e.slice(0,p):e.slice(0,s),f=e.slice(s,c+1),m="left"===n?e.slice(p,s):e.slice(c+1,p+1),g="left"===n?e.slice(c+1):e.slice(p+1);e="left"===n?[].concat((0,o.Z)(h),(0,o.Z)(f),(0,o.Z)(m),(0,o.Z)(g)):[].concat((0,o.Z)(h),(0,o.Z)(m),(0,o.Z)(f),(0,o.Z)(g))}})),e.map((function(e){return i[e.id]?(0,a.ZP)(e):e}))},x=function(e,t,n,r,i){var s,c,u=m(e,t,i),p=b(e,u),h=[];if("left"===n){if(r)s=(0,d.cx)(e,(function(e){return f(e,r)}));else if(t.editingGroupId){var g=(0,l.Fb)(e,t.editingGroupId);if(!g.length)return e;s=e.indexOf(g[0])}else s=0;c=u[u.length-1]}else{if(r)c=(0,d.qr)(e,(function(e){return f(e,r)}));else if(t.editingGroupId){var v=(0,l.Fb)(e,t.editingGroupId);if(!v.length)return e;c=e.indexOf(v[v.length-1])}else c=e.length-1;s=u[0]}-1===s&&(s=0);for(var y=s;y=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;h.set(r.id,!0)}}catch(e){n.e(e)}finally{n.f()}return e},m=[],g=-1;++g=0;){var E=m[g];S.get(E.id)||(S.set(E.id,!0),k.push(E))}var _=k.reverse();(0,H.P7)(m,a,c),(0,W.ek)(m,a,c),(0,q.xr)(_,a,c);var C=(0,N.aI)(i);return{elements:_,appState:K(K({},t),(0,l.bO)({editingGroupId:t.editingGroupId,selectedElementIds:C.reduce((function(e,t){return(0,s.Xh)(t)||(e[t.id]=!0),e}),{})},(0,z.Lm)(_),t,null))}},te=(n(3361),n(6006)),ne=n(2361),re=n(7652);function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t1){var C=Z._.getPointAtIndexGlobalCoordinates(w,-1),P=(0,i.Z)(C,2),j=P[0],I=P[1];(0,W.R)(w,t,u.Z.getScene(w),{x:j,y:I})}}return(t.activeTool.locked||"freedraw"===t.activeTool.type)&&w||(0,re.z8)(l),x="eraser"===t.activeTool.type?(0,d.Om)(t,oe(oe({},t.activeTool.lastActiveTool||{type:"selection"}),{},{lastActiveToolBeforeEraser:null})):(0,d.Om)(t,{type:"selection"}),{elements:b,appState:oe(oe({},t),{},{cursorButton:"up",activeTool:(t.activeTool.locked||"freedraw"===t.activeTool.type)&&w?t.activeTool:x,activeEmbeddable:null,draggingElement:null,multiElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:w&&!t.activeTool.locked&&"freedraw"!==t.activeTool.type?oe(oe({},t.selectedElementIds),{},(0,L.Z)({},w.id,!0)):t.selectedElementIds,selectedLinearElement:w&&(0,s.bt)(w)?new Z._(w,p):t.selectedLinearElement,pendingImageElementId:null}),commitToHistory:"freedraw"===t.activeTool.type}},keyTest:function(e,t){return e.key===_.tW.ESCAPE&&(null!==t.editingLinearElement||!t.draggingElement&&null===t.multiElement)||(e.key===_.tW.ESCAPE||e.key===_.tW.ENTER)&&null!==t.multiElement},PanelComponent:function(e){var t=e.appState,n=e.updateData,r=e.data;return(0,T.jsx)(Q.V,{type:"button",icon:j.$c,title:(0,C.t)("buttons.done"),"aria-label":(0,C.t)("buttons.done"),onClick:n,visible:null!=t.multiElement,size:(null==r?void 0:r.size)||"medium"})}}),se=n(4406);function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=2&&!function(e){if(e.length>=2){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e[0].groupIds);try{var r=function(){var n=t.value;if(e.reduce((function(e,t){return e&&(0,l.Nd)(t,n)}),!0))return{v:!0}};for(n.s();!(t=n.n()).done;){var i=r();if("object"===(0,ge.Z)(i))return i.v}}catch(e){n.e(e)}finally{n.f()}}return!1}(r)},Oe=(0,P.z)({name:"group",trackEvent:{category:"element"},perform:function(e,t,n,r){var i=r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0});if(i.length<2)return{appState:t,elements:e,commitToHistory:!1};var s=(0,l.iJ)(t);if(1===s.length){var c=s[0],u=new Set((0,l.Fb)(e,c).map((function(e){return e.id}))),p=new Set(i.map((function(e){return e.id})));if(new Set([].concat((0,o.Z)(Array.from(u)),(0,o.Z)(Array.from(p)))).size===u.size)return{appState:t,elements:e,commitToHistory:!1}}var h=(0,o.Z)(e);new Set(i.map((function(e){return e.frameId}))).size>1&&(0,q.SH)(i).forEach((function(e,n){h=(0,q.lz)(h,e,t)}));var f=(0,ve.kb)(),m=(0,d.xn)(i);h=h.map((function(e){return m.get(e.id)?(0,a.BE)(e,{groupIds:(0,l.S_)(e.groupIds,f,t.editingGroupId)}):e}));var g=(0,l.Fb)(h,f),v=g[g.length-1],b=h.lastIndexOf(v),y=h.slice(b+1),x=h.slice(0,b).filter((function(e){return!(0,l.Nd)(e,f)}));return h=[].concat((0,o.Z)(x),(0,o.Z)(g),(0,o.Z)(y)),{appState:ye(ye({},t),(0,l.F$)(f,ye(ye({},t),{},{selectedGroupIds:{}}),(0,z.Lm)(h))),elements:h,commitToHistory:!0}},contextItemLabel:"labels.group",predicate:function(e,t,n,r){return we(0,t,r)},keyTest:function(e){return!e.shiftKey&&e[_.tW.CTRL_OR_CMD]&&e.key===_.tW.G},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=e.app;return(0,T.jsx)(Q.V,{hidden:!we(0,n,i),type:"button",icon:(0,T.jsx)(j.BF,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat((0,C.t)("labels.group")," — ").concat((0,d.uY)("CtrlOrCmd+G")),"aria-label":(0,C.t)("labels.group"),visible:(0,c.N)((0,z.Lm)(t),n)})}}),ke=(0,P.z)({name:"ungroup",trackEvent:{category:"element"},perform:function(e,t,n,r){if(0===(0,l.iJ)(t).length)return{appState:t,elements:e,commitToHistory:!1};var c=(0,o.Z)(e),u=[];c=c.map((function(e){(0,s.Xh)(e)&&u.push(e.id);var n=(0,l.h6)(e.groupIds,t.selectedGroupIds);return n.length===e.groupIds.length?e:(0,a.BE)(e,{groupIds:n})}));var d=(0,l.bO)(t,(0,z.Lm)(c),t,null),p=r.scene.getSelectedElements(t),h=new Set(p.filter((function(e){return e.frameId})).map((function(e){return e.frameId})));return(0,q.wO)(e).filter((function(e){return h.has(e.id)})).forEach((function(e){e&&(c=(0,q.pr)(c,(0,q.ni)(c,e,t),e,t))})),d.selectedElementIds=Object.entries(d.selectedElementIds).reduce((function(e,t){var n=(0,i.Z)(t,2),r=n[0];return n[1]&&!u.includes(r)&&(e[r]=!0),e}),{}),{appState:ye(ye({},t),d),elements:c,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e[_.tW.CTRL_OR_CMD]&&e.key===_.tW.G.toUpperCase()},contextItemLabel:"labels.ungroup",predicate:function(e,t){return(0,l.iJ)(t).length>0},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData;return(0,T.jsx)(Q.V,{type:"button",hidden:0===(0,l.iJ)(n).length,icon:(0,T.jsx)(j.RJ,{theme:n.theme}),onClick:function(){return r(null)},title:"".concat((0,C.t)("labels.ungroup")," — ").concat((0,d.uY)("CtrlOrCmd+Shift+G")),"aria-label":(0,C.t)("labels.ungroup"),visible:(0,c.N)((0,z.Lm)(t),n)})}}),Se=n(957),Ee=n(3379),_e=n.n(Ee),Ce=n(7795),Pe=n.n(Ce),je=n(569),Ie=n.n(je),Te=n(3565),Me=n.n(Te),De=n(9216),Ae=n.n(De),Re=n(4589),Le=n.n(Re),ze=n(3729),Ze={};Ze.styleTagTransform=Le(),Ze.setAttributes=Me(),Ze.insert=Ie().bind(null,"head"),Ze.domAPI=Pe(),Ze.insertStyleElement=Ae(),_e()(ze.Z,Ze),ze.Z&&ze.Z.locals&&ze.Z.locals;var Ne=n(9787),$e=function(e){var t=e.color,n=e.onClick,r=e.name,o=e.src,a=(0,Se.l)(r),s=(0,Ne.useState)(!1),l=(0,i.Z)(s,2),c=l[0],u=l[1],d=!c&&o,p=d?void 0:{background:t};return(0,T.jsx)("div",{className:"Avatar",style:p,onClick:n,children:d?(0,T.jsx)("img",{className:"Avatar-img",src:o,alt:a,referrerPolicy:"no-referrer",onError:function(){return u(!0)}}):a})},Be=n(2382);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(I.PR);try{var l=function(){var e=i.value;if(a.some((function(t){return t.type===e})))return{v:{commitToHistory:!1,appState:Ue(Ue({},t),{},{errorMessage:(0,C.t)("errors.libraryElementTypeError.".concat(e))})}}};for(s.s();!(i=s.n()).done;){var c=l();if("object"===(0,ge.Z)(c))return c.v}}catch(e){s.e(e)}finally{s.f()}return r.library.getLatestLibrary().then((function(e){return r.library.setLibrary([{id:(0,ve.kb)(),status:"unpublished",elements:a.map(We.OL),created:Date.now()}].concat((0,o.Z)(e)))})).then((function(){return{commitToHistory:!1,appState:Ue(Ue({},t),{},{toast:{message:(0,C.t)("toast.addedToLibrary")}})}})).catch((function(e){return{commitToHistory:!1,appState:Ue(Ue({},t),{},{errorMessage:e.message})}}))},contextItemLabel:"labels.addToLibrary"}),qe=n(4949);function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t1&&!i.some((function(e){return"frame"===e.type}))},et=function(e,t,n,r){var i=function(e,t){var n=(0,l.AI)(e),r=(0,qe.v2)(e);return n.flatMap((function(e){var n=Ke(e,r,t);return e.map((function(e){return(0,a.BE)(e,{x:e.x+n.x,y:e.y+n.y})}))}))}(n.scene.getSelectedElements(t),r),o=(0,d.xn)(i);return(0,q.Tq)(e.map((function(e){return o.get(e.id)||e})),t,n)};function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&!n.some((function(e){return"frame"===e.type}))},rt=function(e,t,n,r){var o=function(e,t){var n,r="x"===t.axis?["minX","midX","maxX","width"]:["minY","midY","maxY","height"],o=(0,i.Z)(r,4),s=o[0],c=o[1],u=o[2],d=o[3],p=(0,qe.v2)(e),h=(0,l.AI)(e).map((function(e){return[e,(0,qe.v2)(e)]})).sort((function(e,t){return e[1][c]-t[1][c]})),f=0,m=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(h);try{for(m.s();!(n=m.n()).done;)f+=n.value[1][d]}catch(e){m.e(e)}finally{m.f()}var g=(p[d]-f)/(h.length-1);if(g<0){var v=h.findIndex((function(e){return e[1][s]===p[s]})),b=h.findIndex((function(e){return e[1][u]===p[u]})),y=(h[b][1][c]-h[v][1][c])/(h.length-1),x=h[v][1][c];return h.flatMap((function(e,n){var r=(0,i.Z)(e,2),o=r[0],s=r[1],l={x:0,y:0};return n!==v&&n!==b&&(x+=y,l[t.axis]=x-s[c]),o.map((function(e){return(0,a.BE)(e,{x:e.x+l.x,y:e.y+l.y})}))}))}var w=p[s];return h.flatMap((function(e){var n=(0,i.Z)(e,2),r=n[0],o=n[1],l={x:0,y:0};return l[t.axis]=w-o[s],w+=g,w+=o[d],r.map((function(e){return(0,a.BE)(e,{x:e.x+l.x,y:e.y+l.y})}))}))}(n.scene.getSelectedElements(t),r),s=(0,d.xn)(o);return(0,q.Tq)(e.map((function(e){return s.get(e.id)||e})),t,n)},it=((0,P.z)({name:"distributeHorizontally",trackEvent:{category:"element"},perform:function(e,t,n,r){return{appState:t,elements:rt(e,t,r,{space:"between",axis:"x"}),commitToHistory:!0}},keyTest:function(e){return!e[_.tW.CTRL_OR_CMD]&&e.altKey&&e.code===_.aU.H},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=e.app;return(0,T.jsx)(Q.V,{hidden:!nt(n,i),type:"button",icon:j.uD,onClick:function(){return r(null)},title:"".concat((0,C.t)("labels.distributeHorizontally")," — ").concat((0,d.uY)("Alt+H")),"aria-label":(0,C.t)("labels.distributeHorizontally"),visible:(0,c.N)((0,z.Lm)(t),n)})}}),(0,P.z)({name:"distributeVertically",trackEvent:{category:"element"},perform:function(e,t,n,r){return{appState:t,elements:rt(e,t,r,{space:"between",axis:"y"}),commitToHistory:!0}},keyTest:function(e){return!e[_.tW.CTRL_OR_CMD]&&e.altKey&&e.code===_.aU.V},PanelComponent:function(e){var t=e.elements,n=e.appState,r=e.updateData,i=e.app;return(0,T.jsx)(Q.V,{hidden:!nt(n,i),type:"button",icon:j.W5,onClick:function(){return r(null)},title:"".concat((0,C.t)("labels.distributeVertically")," — ").concat((0,d.uY)("Alt+V")),"aria-label":(0,C.t)("labels.distributeVertically"),visible:(0,c.N)((0,z.Lm)(t),n)})}}),n(4381)),ot=(0,P.z)({name:"flipHorizontal",trackEvent:{category:"element"},perform:function(e,t,n,r){return{elements:(0,q.Tq)(st(e,t,"horizontal"),t,r),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e.code===_.aU.H},contextItemLabel:"labels.flipHorizontal"}),at=(0,P.z)({name:"flipVertical",trackEvent:{category:"element"},perform:function(e,t,n,r){return{elements:(0,q.Tq)(st(e,t,"vertical"),t,r),appState:t,commitToHistory:!0}},keyTest:function(e){return e.shiftKey&&e.code===_.aU.V&&!e[_.tW.CTRL_OR_CMD]},contextItemLabel:"labels.flipVertical"}),st=function(e,t,n){var r=(0,c.eD)((0,z.Lm)(e),t,{includeBoundTextElement:!0,includeElementsInFrames:!0}),i=lt(r,t,n),o=(0,d.xn)(i);return e.map((function(e){return o.get(e.id)||e}))},lt=function(e,t,n){var r=(0,qe.v2)(e),i=r.minX,o=r.minY,a=r.maxX,s=r.maxY;return(0,it.LM)({originalElements:(0,d.xn)(e)},e,"nw",!0,"horizontal"===n?a:i,"horizontal"===n?o:s),((0,W.N1)(t)?W.el:W.H)(e),e},ct=n(5047);function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t0?t[0]:""}},3646:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=function(e,t,n,r){try{if("undefined"==typeof window||{VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PORTAL_URL:"https://portal.excalidraw.com",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_WS_SERVER_URL:"",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_PKG_NAME:"@excalidraw/excalidraw",VITE_PKG_VERSION:"0.17.6",VITE_IS_EXCALIDRAW_NPM_PACKAGE:!0}.VITE_WORKER_ID)return;if(![].includes(e))return;window.sa_event&&window.sa_event(t,{category:e,label:n,value:r})}catch(e){console.error("error during analytics",e)}}},6853:function(e,t,n){"use strict";n.d(t,{EN:function(){return h},eS:function(){return p},im:function(){return l},l$:function(){return f},s:function(){return d}});var r=n(9240),i=n(9937),o=n(8227),a=n(9827),s=i.ZB.includes(devicePixelRatio)?devicePixelRatio:1,l=function(){return{showWelcomeScreen:!1,theme:i.C6.LIGHT,collaborators:new Map,currentChartType:"bar",currentItemBackgroundColor:i.HN.backgroundColor,currentItemEndArrowhead:"arrow",currentItemFillStyle:i.HN.fillStyle,currentItemFontFamily:i.rk,currentItemFontSize:i.n5,currentItemOpacity:i.HN.opacity,currentItemRoughness:i.HN.roughness,currentItemStartArrowhead:null,currentItemStrokeColor:i.HN.strokeColor,currentItemRoundness:"round",currentItemStrokeStyle:i.HN.strokeStyle,currentItemStrokeWidth:i.HN.strokeWidth,currentItemTextAlign:i.Hg,cursorButton:"up",activeEmbeddable:null,draggingElement:null,editingElement:null,editingGroupId:null,editingLinearElement:null,activeTool:{type:"selection",customType:null,locked:i.HN.locked,lastActiveTool:null},penMode:!1,penDetected:!1,errorMessage:null,exportBackground:!0,exportScale:s,exportEmbedScene:!1,exportWithDarkMode:!1,fileHandle:null,gridSize:null,isBindingEnabled:!0,defaultSidebarDockedPreference:!1,isLoading:!1,isResizing:!1,isRotating:!1,lastPointerDownWith:"mouse",multiElement:null,name:"".concat((0,o.t)("labels.untitled"),"-").concat((0,a.Fc)()),contextMenu:null,openMenu:null,openPopup:null,openSidebar:null,openDialog:null,pasteDialog:{shown:!1,data:null},previousSelectedElementIds:{},resizingElement:null,scrolledOutside:!1,scrollX:0,scrollY:0,selectedElementIds:{},selectedGroupIds:{},selectedElementsAreBeingDragged:!1,selectionElement:null,shouldCacheIgnoreZoom:!1,showStats:!1,startBoundElement:null,suggestedBindings:[],frameRendering:{enabled:!0,clip:!0,name:!0,outline:!0},frameToHighlight:null,editingFrame:null,elementsToHighlight:null,toast:null,viewBackgroundColor:r.HO.white,zenModeEnabled:!1,zoom:{value:1},viewModeEnabled:!1,pendingImageElementId:null,showHyperlinkPopup:!1,selectedLinearElement:null,snapLines:[],originSnapOffset:{x:0,y:0},objectsSnapModeEnabled:!1}},c={showWelcomeScreen:{browser:!0,export:!1,server:!1},theme:{browser:!0,export:!1,server:!1},collaborators:{browser:!1,export:!1,server:!1},currentChartType:{browser:!0,export:!1,server:!1},currentItemBackgroundColor:{browser:!0,export:!1,server:!1},currentItemEndArrowhead:{browser:!0,export:!1,server:!1},currentItemFillStyle:{browser:!0,export:!1,server:!1},currentItemFontFamily:{browser:!0,export:!1,server:!1},currentItemFontSize:{browser:!0,export:!1,server:!1},currentItemRoundness:{browser:!0,export:!1,server:!1},currentItemOpacity:{browser:!0,export:!1,server:!1},currentItemRoughness:{browser:!0,export:!1,server:!1},currentItemStartArrowhead:{browser:!0,export:!1,server:!1},currentItemStrokeColor:{browser:!0,export:!1,server:!1},currentItemStrokeStyle:{browser:!0,export:!1,server:!1},currentItemStrokeWidth:{browser:!0,export:!1,server:!1},currentItemTextAlign:{browser:!0,export:!1,server:!1},cursorButton:{browser:!0,export:!1,server:!1},activeEmbeddable:{browser:!1,export:!1,server:!1},draggingElement:{browser:!1,export:!1,server:!1},editingElement:{browser:!1,export:!1,server:!1},editingGroupId:{browser:!0,export:!1,server:!1},editingLinearElement:{browser:!1,export:!1,server:!1},activeTool:{browser:!0,export:!1,server:!1},penMode:{browser:!0,export:!1,server:!1},penDetected:{browser:!0,export:!1,server:!1},errorMessage:{browser:!1,export:!1,server:!1},exportBackground:{browser:!0,export:!1,server:!1},exportEmbedScene:{browser:!0,export:!1,server:!1},exportScale:{browser:!0,export:!1,server:!1},exportWithDarkMode:{browser:!0,export:!1,server:!1},fileHandle:{browser:!1,export:!1,server:!1},gridSize:{browser:!0,export:!0,server:!0},height:{browser:!1,export:!1,server:!1},isBindingEnabled:{browser:!1,export:!1,server:!1},defaultSidebarDockedPreference:{browser:!0,export:!1,server:!1},isLoading:{browser:!1,export:!1,server:!1},isResizing:{browser:!1,export:!1,server:!1},isRotating:{browser:!1,export:!1,server:!1},lastPointerDownWith:{browser:!0,export:!1,server:!1},multiElement:{browser:!1,export:!1,server:!1},name:{browser:!0,export:!1,server:!1},offsetLeft:{browser:!1,export:!1,server:!1},offsetTop:{browser:!1,export:!1,server:!1},contextMenu:{browser:!1,export:!1,server:!1},openMenu:{browser:!0,export:!1,server:!1},openPopup:{browser:!1,export:!1,server:!1},openSidebar:{browser:!0,export:!1,server:!1},openDialog:{browser:!1,export:!1,server:!1},pasteDialog:{browser:!1,export:!1,server:!1},previousSelectedElementIds:{browser:!0,export:!1,server:!1},resizingElement:{browser:!1,export:!1,server:!1},scrolledOutside:{browser:!0,export:!1,server:!1},scrollX:{browser:!0,export:!1,server:!1},scrollY:{browser:!0,export:!1,server:!1},selectedElementIds:{browser:!0,export:!1,server:!1},selectedGroupIds:{browser:!0,export:!1,server:!1},selectedElementsAreBeingDragged:{browser:!1,export:!1,server:!1},selectionElement:{browser:!1,export:!1,server:!1},shouldCacheIgnoreZoom:{browser:!0,export:!1,server:!1},showStats:{browser:!0,export:!1,server:!1},startBoundElement:{browser:!1,export:!1,server:!1},suggestedBindings:{browser:!1,export:!1,server:!1},frameRendering:{browser:!1,export:!1,server:!1},frameToHighlight:{browser:!1,export:!1,server:!1},editingFrame:{browser:!1,export:!1,server:!1},elementsToHighlight:{browser:!1,export:!1,server:!1},toast:{browser:!1,export:!1,server:!1},viewBackgroundColor:{browser:!0,export:!0,server:!0},width:{browser:!1,export:!1,server:!1},zenModeEnabled:{browser:!0,export:!1,server:!1},zoom:{browser:!0,export:!1,server:!1},viewModeEnabled:{browser:!1,export:!1,server:!1},pendingImageElementId:{browser:!1,export:!1,server:!1},showHyperlinkPopup:{browser:!1,export:!1,server:!1},selectedLinearElement:{browser:!0,export:!1,server:!1},snapLines:{browser:!1,export:!1,server:!1},originSnapOffset:{browser:!1,export:!1,server:!1},objectsSnapModeEnabled:{browser:!0,export:!1,server:!1}},u=function(e,t){for(var n={},r=0,i=Object.keys(e);r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2)return{type:g,reason:"More than 2 columns"};if(1===t){if(!y(e,0))return{type:g,reason:"Value is not numeric"};var n=null===b(e[0][0]),r=(n?e.slice(1):e).map((function(e){return b(e[0])}));return r.length<2?{type:g,reason:"Less than two rows"}:{type:v,spreadsheet:{title:n?e[0][0]:null,labels:null,values:r}}}var i=y(e,0),a=y(e,1);if(!i&&!a)return{type:g,reason:"Value is not numeric"};var s=a?[0,1]:[1,0],l=(0,o.Z)(s,2),c=l[0],u=l[1],d=null===b(e[0][u]),p=d?e.slice(1):e;return p.length<2?{type:g,reason:"Less than 2 rows"}:{type:v,spreadsheet:{title:d?e[0][u]:null,labels:p.map((function(e){return e[c]})),values:p.map((function(e){return b(e[u])}))}}},w=function(e){var t=e.trim().split("\n").map((function(e){return e.trim().split("\t")}));if(t.length&&2!==t[0].length&&(t=e.trim().split("\n").map((function(e){return e.trim().split(",")}))),0===t.length)return{type:g,reason:"No values"};var n=t[0].length;if(!t.every((function(e){return e.length===n})))return{type:g,reason:"All rows don't have same number of columns"};var r=x(t);if(r.type!==v){var i=x(function(e){for(var t=[],n=0;n8?"".concat(e.slice(0,5),"..."):e,x:t+44*o+24,y:n+6,width:32,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"}))})))||[]}(e,t,n,i,o)),(0,r.Z)(function(e,t,n,i,o){var a=(0,l.VL)(h(h({groupIds:[i],backgroundColor:o},k),{},{x:t-f,y:n-f,text:"0",textAlign:"right"}));return[a,(0,l.VL)(h(h({groupIds:[i],backgroundColor:o},k),{},{x:t-f,y:n-m-a.height/2,text:Math.max.apply(Math,(0,r.Z)(e.values)).toLocaleString(),textAlign:"right"}))]}(e,t,n,i,o)),(0,r.Z)(function(e,t,n,r,i){var o=S(e),a=o.chartWidth,s=o.chartHeight;return[(0,l.y8)(h(h({backgroundColor:i,groupIds:[r]},k),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,width:a,points:[[0,0],[a,0]]})),(0,l.y8)(h(h({backgroundColor:i,groupIds:[r]},k),{},{type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,height:s,points:[[0,0],[0,-s]]})),(0,l.y8)(h(h({backgroundColor:i,groupIds:[r]},k),{},{type:"line",x:t,y:n-m-f,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:a,opacity:50,points:[[0,0],[a,0]]}))]}(e,t,n,i,o)))},_=function(e,t,n,i){return"line"===e?function(e,t,n){var i,o=Math.max.apply(Math,(0,r.Z)(e.values)),a=(0,c.kb)(),s=O[Math.floor(Math.random()*O.length)],d=0,p=[],g=u(e.values);try{for(g.s();!(i=g.n()).done;){var v=i.value,b=44*d,y=-v/o*m;p.push([b,y]),d++}}catch(e){g.e(e)}finally{g.f()}var x=Math.max.apply(Math,(0,r.Z)(p.map((function(e){return e[0]})))),w=Math.max.apply(Math,(0,r.Z)(p.map((function(e){return e[1]})))),S=Math.min.apply(Math,(0,r.Z)(p.map((function(e){return e[0]})))),_=Math.min.apply(Math,(0,r.Z)(p.map((function(e){return e[1]})))),C=(0,l.y8)(h(h({backgroundColor:s,groupIds:[a]},k),{},{type:"line",x:t+f+16,y:n-f,startArrowhead:null,endArrowhead:null,height:w-_,width:x-S,strokeWidth:2,points:p})),P=e.values.map((function(e,r){var i=44*r+6,c=-e/o*m+6;return(0,l.Up)(h(h({backgroundColor:s,groupIds:[a]},k),{},{fillStyle:"solid",strokeWidth:2,type:"ellipse",x:t+i+16,y:n+c-24,width:f,height:f}))})),j=e.values.map((function(e,r){var i=44*r+6,c=e/o*m+6+f;return(0,l.y8)(h(h({backgroundColor:s,groupIds:[a]},k),{},{type:"line",x:t+i+16+6,y:n-c,startArrowhead:null,endArrowhead:null,height:c,strokeStyle:"dotted",opacity:50,points:[[0,0],[0,c]]}))}));return[].concat((0,r.Z)(E(e,t,n,a,s,!1)),[C],(0,r.Z)(j),(0,r.Z)(P))}(t,n,i):function(e,t,n){var i=Math.max.apply(Math,(0,r.Z)(e.values)),o=(0,c.kb)(),a=O[Math.floor(Math.random()*O.length)],s=e.values.map((function(e,r){var s=e/i*m;return(0,l.Up)(h(h({backgroundColor:a,groupIds:[o]},k),{},{type:"rectangle",x:t+44*r+f,y:n-s-f,width:32,height:s}))}));return[].concat((0,r.Z)(s),(0,r.Z)(E(e,t,n,o,a,!1)))}(t,n,i)}},957:function(e,t,n){"use strict";n.d(t,{G:function(){return r},l:function(){return i}});var r=function(e){var t=Math.abs(function(e){var t=0;if(0===e.length)return t;for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==l[1]&&l[1],e.prev=1,!(i=!n&&t&&_(t))){e.next=7;break}if(!i.value.every((function(e){return"text"===e.type}))){e.next=6;break}return e.abrupt("return",{type:"text",value:(null===(o=t.clipboardData)||void 0===o?void 0:o.getData("text/plain"))||i.value.map((function(e){return e.value})).join("\n").trim()});case 6:return e.abrupt("return",i);case 7:return a=null===(r=t.clipboardData)||void 0===r?void 0:r.getData("text/plain"),e.abrupt("return",{type:"text",value:(a||"").trim()});case 11:return e.prev=11,e.t0=e.catch(1),e.abrupt("return",{type:"text",value:""});case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=(0,i.Z)(s().mark((function e(t){var n,r,i,o,a,l=arguments;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]&&l[1],e.next=3,P(t,n);case 3:if("mixedContent"!==(r=e.sent).type){e.next=6;break}return e.abrupt("return",{mixedContent:r.value});case 6:if(e.prev=6,!(i=!n&&S(r.value))){e.next=10;break}return e.abrupt("return",i);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),console.error(e.t0);case 15:if(e.prev=15,o=JSON.parse(r.value),a=o.type===c.r8.excalidrawClipboardWithAPI,!x(o)){e.next=20;break}return e.abrupt("return",{elements:o.elements,files:o.files,text:n?JSON.stringify(o.elements,null,2):void 0,programmaticAPI:a});case 20:e.next=24;break;case 22:e.prev=22,e.t1=e.catch(15);case 24:return e.abrupt("return",{text:r.value});case 25:case"end":return e.stop()}}),e,null,[[6,12],[15,22]])})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=(0,i.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.write([new window.ClipboardItem((0,r.Z)({},c.LO.png,t))]);case 3:case 21:e.next=24;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(0,f.y8)(t)){e.next=23;break}return e.t1=navigator.clipboard,e.t2=window.ClipboardItem,e.t3=r.Z,e.t4={},e.t5=c.LO.png,e.next=15,t;case 15:return e.t6=e.sent,e.t7=(0,e.t3)(e.t4,e.t5,e.t6),e.t8=new e.t2(e.t7),e.t9=[e.t8],e.next=21,e.t1.write.call(e.t1,e.t9);case 23:throw e.t0;case 24:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=(0,i.Z)(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b){e.next=10;break}return e.prev=1,e.next=4,navigator.clipboard.writeText(t||"");case 4:return e.abrupt("return");case 7:e.prev=7,e.t0=e.catch(1),console.error(e.t0);case 10:if(e.prev=10,!n){e.next=16;break}if(null===(r=n.clipboardData)||void 0===r||r.setData("text/plain",t||""),(null===(i=n.clipboardData)||void 0===i?void 0:i.getData("text/plain"))===t){e.next=15;break}throw new Error("Failed to setData on clipboardEvent");case 15:return e.abrupt("return");case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(10),console.error(e.t1);case 21:if(M(t)){e.next=23;break}throw new Error((0,m.t)("errors.copyToSystemClipboardFailed"));case 23:case"end":return e.stop()}}),e,null,[[1,7],[10,18]])})));return function(t,n){return e.apply(this,arguments)}}(),M=function(e){e||(e=" ");var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;n.style.top="".concat(r,"px"),n.style.fontSize="12pt",n.setAttribute("readonly",""),n.value=e,document.body.appendChild(n);var i=!1;try{n.select(),n.setSelectionRange(0,n.value.length),i=document.execCommand("copy")}catch(e){console.error(e)}return n.remove(),i}},9240:function(e,t,n){"use strict";n.d(t,{C2:function(){return u},HO:function(){return m},Lx:function(){return l},SF:function(){return w},Wk:function(){return x},_T:function(){return p},ay:function(){return y},dC:function(){return c},eq:function(){return b},fY:function(){return v},sF:function(){return O},vq:function(){return k},z8:function(){return d}});var r=n(7169),i=n(5284);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&console.warn("Canceling as multiple actions match this shortcut",r),!1;var i=r[0];if(this.getAppState().viewModeEnabled&&!0!==i.viewMode)return!1;var o=this.getElementsIncludingDeleted(),a=this.getAppState();return L(i,"keyboard",a,o,this.app,null),e.preventDefault(),e.stopPropagation(),this.updater(r[0].perform(o,a,null,this.app)),!0}},{key:"executeAction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"api",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getElementsIncludingDeleted(),i=this.getAppState();L(e,t,i,r,this.app,n),this.updater(e.perform(r,i,n,this.app))}}]),e}(),Z=n(2767),N=n(6853),$=n(4694),B=n(2435),F=n(9326),Q=n(7994),W=n(7651),H=n(7422),U=n(5742),Y=n(4183),V=function(e){var t=Array.from(e.values());return{x:X(t,(function(e){return e.x}))/t.length,y:X(t,(function(e){return e.y}))/t.length}},q=function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return Math.hypot(n.x-r.x,n.y-r.y)},X=function(e,t){return e.reduce((function(e,n){return e+t(n)}),0)},G=n(9215);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t-1;r--){var i=e.elements[r],o=n.elements[r];if(!i||!o||i.id!==o.id||i.versionNonce!==o.versionNonce)return!0}for(t in e.appState){var a,s;if(("editingLinearElement"!==t||(null===(a=e.appState[t])||void 0===a?void 0:a.elementId)!==(null===(s=n.appState[t])||void 0===s?void 0:s.elementId))&&"selectedElementIds"!==t&&"selectedGroupIds"!==t&&e.appState[t]!==n.appState[t])return!0}return!1}},{key:"pushEntry",value:function(e,t){var n=this.generateEntry(e,t),r=this.hydrateHistoryEntry(n);if(r){if(!this.shouldCreateEntry(r))return;this.stateHistory.push(n),this.lastEntry=r,this.clearRedoStack()}}},{key:"clearRedoStack",value:function(){this.redoStack.splice(0,this.redoStack.length)}},{key:"redoOnce",value:function(){if(0===this.redoStack.length)return null;var e=this.redoStack.pop();return void 0!==e?(this.stateHistory.push(e),this.hydrateHistoryEntry(e)):null}},{key:"undoOnce",value:function(){if(1===this.stateHistory.length)return null;var e=this.stateHistory.pop(),t=this.stateHistory[this.stateHistory.length-1];return void 0!==e?(this.redoStack.push(e),this.hydrateHistoryEntry(t)):null}},{key:"setCurrentState",value:function(e,t){this.lastEntry=this.hydrateHistoryEntry(this.generateEntry(e,t))}},{key:"resumeRecording",value:function(){this.recording=!0}},{key:"record",value:function(e,t){this.recording&&(this.pushEntry(e,t),this.recording=!1)}}]),e}(),ne=n(7935),re=n(2361),ie=n(4105),oe=n(457),ae=n(4116),se=[{icon:k.zu,value:"selection",key:_.tW.V,numericKey:_.tW[1],fillable:!0},{icon:k.OW,value:"rectangle",key:_.tW.R,numericKey:_.tW[2],fillable:!0},{icon:k.nb,value:"diamond",key:_.tW.D,numericKey:_.tW[3],fillable:!0},{icon:k.Re,value:"ellipse",key:_.tW.O,numericKey:_.tW[4],fillable:!0},{icon:k.e0,value:"arrow",key:_.tW.A,numericKey:_.tW[5],fillable:!0},{icon:k.zb,value:"line",key:_.tW.L,numericKey:_.tW[6],fillable:!0},{icon:k.Pm,value:"freedraw",key:[_.tW.P,_.tW.X],numericKey:_.tW[7],fillable:!1},{icon:k.VL,value:"text",key:_.tW.T,numericKey:_.tW[8],fillable:!1},{icon:k.XB,value:"image",key:null,numericKey:_.tW[9],fillable:!1},{icon:k.$q,value:"eraser",key:_.tW.E,numericKey:_.tW[0],fillable:!1}],le=n(761),ce=n(3204),ue=n(3379),de=n.n(ue),pe=n(7795),he=n.n(pe),fe=n(569),me=n.n(fe),ge=n(3565),ve=n.n(ge),be=n(9216),ye=n.n(be),xe=n(4589),we=n.n(xe),Oe=n(6578),ke={};ke.styleTagTransform=we(),ke.setAttributes=ve(),ke.insert=me().bind(null,"head"),ke.domAPI=he(),ke.insertStyleElement=ye(),de()(Oe.Z,ke),Oe.Z&&Oe.Z.locals&&Oe.Z.locals;var Se=n(2529),Ee="separator",_e=v().memo((function(e){var t=e.actionManager,n=e.items,r=e.top,i=e.left,o=e.onClose,a=Qi(),s=Fi(),l=n.reduce((function(e,n){return!n||n!==Ee&&n.predicate&&!n.predicate(s,a,t.app.props,t.app)||e.push(n),e}),[]);return(0,T.jsx)(ce.J,{onCloseRequest:function(){o()},top:r,left:i,fitInViewport:!0,offsetLeft:a.offsetLeft,offsetTop:a.offsetTop,viewportWidth:a.width,viewportHeight:a.height,children:(0,T.jsx)("ul",{className:"context-menu",onContextMenu:function(e){return e.preventDefault()},children:l.map((function(e,n){var r;if(e===Ee)return l[n-1]&&l[n-1]!==Ee?(0,T.jsx)("hr",{className:"context-menu-item-separator"},n):null;var i=e.name,c="";return e.contextItemLabel&&(c="function"==typeof e.contextItemLabel?(0,E.t)(e.contextItemLabel(s,a,t.app)):(0,E.t)(e.contextItemLabel)),(0,T.jsx)("li",{"data-testid":i,onClick:function(){o((function(){t.executeAction(e,"contextMenu")}))},children:(0,T.jsxs)("button",{className:(0,x.Z)("context-menu-item",{dangerous:"deleteSelectedElements"===i,checkmark:null===(r=e.checked)||void 0===r?void 0:r.call(e,a)}),children:[(0,T.jsx)("div",{className:"context-menu-item__label",children:c}),(0,T.jsx)("kbd",{className:"context-menu-item__shortcut",children:i?(0,Se.C)(i):""})]})},n)}))})})})),Ce=n(2726),Pe=n(2540),je=n(1648),Ie=n(8925),Te=n(4761),Me=n(6086),De={};De.styleTagTransform=we(),De.setAttributes=ve(),De.insert=me().bind(null,"head"),De.domAPI=he(),De.insertStyleElement=ye(),de()(Me.Z,De),Me.Z&&Me.Z.locals&&Me.Z.locals;var Ae=n(7104);function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(o);try{for(m.s();!(s=m.n()).done;)if(s.value.type!==f){f=null;break}}catch(e){m.e(e)}finally{m.f()}return(0,T.jsxs)("div",{className:"panelColumn",children:[(0,T.jsx)("div",{children:((0,je.PD)(n.activeTool.type)&&"image"!==n.activeTool.type&&"image"!==f&&"frame"!==f||o.some((function(e){return(0,je.PD)(e.type)})))&&i("changeStrokeColor")}),p&&(0,T.jsx)("div",{children:i("changeBackgroundColor")}),d&&i("changeFillStyle"),((0,ie.Zd)(n.activeTool.type)||o.some((function(e){return(0,ie.Zd)(e.type)})))&&i("changeStrokeWidth"),("freedraw"===n.activeTool.type||o.some((function(e){return"freedraw"===e.type})))&&i("changeStrokeShape"),((0,ie.M9)(n.activeTool.type)||o.some((function(e){return(0,ie.M9)(e.type)})))&&(0,T.jsxs)(T.Fragment,{children:[i("changeStrokeStyle"),i("changeSloppiness")]}),((0,ie.sh)(n.activeTool.type)||o.some((function(e){return(0,ie.sh)(e.type)})))&&(0,T.jsx)(T.Fragment,{children:i("changeRoundness")}),("text"===n.activeTool.type||o.some(Y.iB))&&(0,T.jsxs)(T.Fragment,{children:[i("changeFontSize"),i("changeFontFamily"),("text"===n.activeTool.type||(0,Te.aV)(o))&&i("changeTextAlign")]}),(0,Te.cn)(o)&&i("changeVerticalAlign"),((0,ie.Un)(n.activeTool.type)||o.some((function(e){return(0,ie.Un)(e.type)})))&&(0,T.jsx)(T.Fragment,{children:i("changeArrowhead")}),i("changeOpacity"),(0,T.jsxs)("fieldset",{children:[(0,T.jsx)("legend",{children:(0,E.t)("labels.layers")}),(0,T.jsxs)("div",{className:"buttonList",children:[i("sendToBack"),i("sendBackward"),i("bringToFront"),i("bringForward")]})]}),o.length>1&&!a&&(0,T.jsxs)("fieldset",{children:[(0,T.jsx)("legend",{children:(0,E.t)("labels.align")}),(0,T.jsxs)("div",{className:"buttonList",children:[u?(0,T.jsxs)(T.Fragment,{children:[i("alignRight"),i("alignHorizontallyCentered"),i("alignLeft")]}):(0,T.jsxs)(T.Fragment,{children:[i("alignLeft"),i("alignHorizontallyCentered"),i("alignRight")]}),o.length>2&&i("distributeHorizontally"),(0,T.jsx)("div",{style:{flexBasis:"100%",height:0}}),(0,T.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:".5rem",marginTop:"-0.5rem"},children:[i("alignTop"),i("alignVerticallyCentered"),i("alignBottom"),o.length>2&&i("distributeVertically")]})]})]}),!l&&o.length>0&&(0,T.jsxs)("fieldset",{children:[(0,T.jsx)("legend",{children:(0,E.t)("labels.actions")}),(0,T.jsxs)("div",{className:"buttonList",children:[!c.editor.isMobile&&i("duplicateSelection"),!c.editor.isMobile&&i("deleteSelectedElements"),i("group"),i("ungroup"),h&&i("hyperlink")]})]})]})},ze=function(e){var t=e.activeTool,n=e.appState,r=e.app,o=e.UIOptions,a=(0,g.useState)(!1),s=(0,i.Z)(a,2),l=s[0],c=s[1],u="frame"===t.type,d="laser"===t.type,p="embeddable"===t.type;return(0,T.jsxs)(T.Fragment,{children:[se.map((function(e,i){var a,s=e.value,l=e.icon,c=e.key,u=e.numericKey,d=e.fillable;if(!1===(null===(a=o.tools)||void 0===a?void 0:a[s]))return null;var p=(0,E.t)("toolBar.".concat(s)),h=c&&(0,j.Oo)("string"==typeof c?c:c[0]),f=h?"".concat(h," ").concat((0,E.t)("helpDialog.or")," ").concat(u):"".concat(u);return(0,T.jsx)(S.V,{className:(0,x.Z)("Shape",{fillable:d}),type:"radio",icon:l,checked:t.type===s,name:"editor-current-shape",title:"".concat((0,j.Oo)(p)," — ").concat(f),keyBindingLabel:u||h,"aria-label":(0,j.Oo)(p),"aria-keyshortcuts":f,"data-testid":"toolbar-".concat(s),onPointerDown:function(e){var t=e.pointerType;n.penDetected||"pen"!==t||r.togglePenMode(!0)},onChange:function(e){var t=e.pointerType;n.activeTool.type!==s&&(0,R.L)("toolbar",s,"ui"),"image"===s?r.setActiveTool({type:s,insertOnCanvasDirectly:"mouse"!==t}):r.setActiveTool({type:s})}},s)})),(0,T.jsx)("div",{className:"App-toolbar__divider"}),(0,T.jsxs)(Ae.Z,{open:l,children:[(0,T.jsx)(Ae.Z.Trigger,{className:(0,x.Z)("App-toolbar__extra-tools-trigger",{"App-toolbar__extra-tools-trigger--selected":u||p||d&&!r.props.isCollaborating}),onToggle:function(){return c(!l)},title:(0,E.t)("toolBar.extraTools"),children:k.dg}),(0,T.jsxs)(Ae.Z.Content,{onClickOutside:function(){return c(!1)},onSelect:function(){return c(!1)},className:"App-toolbar__extra-tools-dropdown",children:[(0,T.jsx)(Ae.Z.Item,{onSelect:function(){return r.setActiveTool({type:"frame"})},icon:k.zl,shortcut:_.tW.F.toLocaleUpperCase(),"data-testid":"toolbar-frame",selected:u,children:(0,E.t)("toolBar.frame")}),(0,T.jsx)(Ae.Z.Item,{onSelect:function(){return r.setActiveTool({type:"embeddable"})},icon:k.FL,"data-testid":"toolbar-embeddable",selected:p,children:(0,E.t)("toolBar.embeddable")}),(0,T.jsx)(Ae.Z.Item,{onSelect:function(){return r.setActiveTool({type:"laser"})},icon:k.d,"data-testid":"toolbar-laser",selected:d,shortcut:_.tW.K.toLocaleUpperCase(),children:(0,E.t)("toolBar.laser")}),(0,T.jsx)(Ae.Z.Item,{onSelect:function(){return r.setOpenDialog("mermaid")},icon:k.II,"data-testid":"toolbar-embeddable",children:(0,E.t)("toolBar.mermaidToExcalidraw")})]})]})]})},Ze=function(e){var t=e.renderAction;return e.zoom,(0,T.jsx)(Pe.Z.Col,{gap:1,className:"zoom-actions",children:(0,T.jsxs)(Pe.Z.Row,{align:"center",children:[t("zoomOut"),t("resetZoom"),t("zoomIn")]})})},Ne=function(e){var t=e.renderAction,n=e.className;return(0,T.jsxs)("div",{className:"undo-redo-buttons ".concat(n),children:[(0,T.jsx)("div",{className:"undo-button-container",children:(0,T.jsx)(Ie.u,{label:(0,E.t)("buttons.undo"),children:t("undo")})}),(0,T.jsx)("div",{className:"redo-button-container",children:(0,T.jsxs)(Ie.u,{label:(0,E.t)("buttons.redo"),children:[" ",t("redo")]})})]})},$e=function(e){var t=e.actionManager,n=e.showExitZenModeBtn;return(0,T.jsx)("button",{className:(0,x.Z)("disable-zen-mode",{"disable-zen-mode--visible":n}),onClick:function(){return t.executeAction(O.JN)},children:(0,E.t)("buttons.exitZenMode")})},Be=function(e){var t=e.renderAction,n=e.className;return(0,T.jsx)("div",{className:"finalize-button ".concat(n),children:t("finalize",{size:"small"})})},Fe=n(1300),Qe=function(e){var t=e.children,n=e.onClose,r=(0,g.useState)(!!t),o=(0,i.Z)(r,2),a=o[0],s=o[1],l=Bi().container,c=v().useCallback((function(){s(!1),n&&n(),null==l||l.focus()}),[n,l]);return(0,T.jsx)(T.Fragment,{children:a&&(0,T.jsx)(Fe.V,{size:"small",onCloseRequest:c,title:(0,E.t)("errorDialog.title"),children:(0,T.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t})})})},We=n(4406),He=n(5796),Ue=n(6548),Ye=n(507),Ve=n(6217),qe={};qe.styleTagTransform=we(),qe.setAttributes=ve(),qe.insert=me().bind(null,"head"),qe.domAPI=he(),qe.insertStyleElement=ye(),de()(Ve.Z,qe),Ve.Z&&Ve.Z.locals&&Ve.Z.locals;var Xe=function(e){var t=e.onChange,n=e.value,r=e.choices,i=e.name;return(0,T.jsx)("div",{className:"RadioGroup",children:r.map((function(e){return(0,T.jsxs)("div",{className:(0,x.Z)("RadioGroup__choice",{active:e.value===n}),children:[(0,T.jsx)("input",{name:i,type:"radio",checked:e.value===n,onChange:function(){return t(e.value)}}),e.label]},e.label)}))})},Ge=n(7802),Ke={};Ke.styleTagTransform=we(),Ke.setAttributes=ve(),Ke.insert=me().bind(null,"head"),Ke.domAPI=he(),Ke.insertStyleElement=ye(),de()(Ge.Z,Ke),Ge.Z&&Ge.Z.locals&&Ge.Z.locals;var Je=function(e){var t=e.title,n=e.name,r=e.checked,i=e.onChange,o=e.disabled,a=void 0!==o&&o;return(0,T.jsx)("div",{className:(0,x.Z)("Switch",{toggled:r,disabled:a}),children:(0,T.jsx)("input",{name:n,id:n,title:t,type:"checkbox",checked:r,disabled:a,onChange:function(){return i(!r)},onKeyDown:function(e){" "===e.key&&i(!r)}})})},et=n(9706),tt={};tt.styleTagTransform=we(),tt.setAttributes=ve(),tt.insert=me().bind(null,"head"),tt.domAPI=he(),tt.insertStyleElement=ye(),de()(et.Z,tt),et.Z&&et.Z.locals&&et.Z.locals;var nt=n(8960),rt={};rt.styleTagTransform=we(),rt.setAttributes=ve(),rt.insert=me().bind(null,"head"),rt.domAPI=he(),rt.insertStyleElement=ye(),de()(nt.Z,rt),nt.Z&&nt.Z.locals&&nt.Z.locals;var it=(0,g.forwardRef)((function(e,t){var n=e.children,r=e.startIcon,i=e.onClick,o=e.label,a=e.variant,s=void 0===a?"filled":a,l=e.color,c=void 0===l?"primary":l,u=e.size,d=void 0===u?"medium":u,p=e.fullWidth,h=e.className;return(0,T.jsxs)("button",{className:(0,x.Z)("ExcButton","ExcButton--color-".concat(c),"ExcButton--variant-".concat(s),"ExcButton--size-".concat(d),{"ExcButton--fullWidth":p},h),onClick:i,type:"button","aria-label":o,ref:t,children:[r&&(0,T.jsx)("div",{className:"ExcButton__icon","aria-hidden":!0,children:r}),"icon"!==s&&(null!=n?n:o)]})}));function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t1&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("tr",{children:(0,T.jsx)("th",{colSpan:2,children:(0,E.t)("stats.selected")})}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,E.t)("stats.elements")}),(0,T.jsx)("td",{children:r.length})]})]}),r.length>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:"x"}),(0,T.jsx)("td",{children:Math.round(i[0])})]}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:"y"}),(0,T.jsx)("td",{children:Math.round(i[1])})]}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,E.t)("stats.width")}),(0,T.jsx)("td",{children:Math.round(i[2]-i[0])})]}),(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,E.t)("stats.height")}),(0,T.jsx)("td",{children:Math.round(i[3]-i[1])})]})]}),1===r.length&&(0,T.jsxs)("tr",{children:[(0,T.jsx)("td",{children:(0,E.t)("stats.angle")}),(0,T.jsx)("td",{children:"".concat(Math.round(180*r[0].angle/Math.PI),"°")})]}),null===(t=e.renderCustomStats)||void 0===t?void 0:t.call(e,e.elements,e.appState)]})})]})})},Mt=function(e){return(0,T.jsx)(S.V,{className:(0,x.Z)("Shape",{fillable:!1}),type:"radio",icon:k.Hk,name:"editor-current-shape",checked:e.checked,title:"".concat(e.title," — H"),keyBindingLabel:e.isMobile?void 0:_.tW.H.toLocaleUpperCase(),"aria-label":"".concat(e.title," — H"),"aria-keyshortcuts":_.tW.H,"data-testid":"toolbar-hand",onChange:function(){var t;return null===(t=e.onChange)||void 0===t?void 0:t.call(e)}})},Dt=n(4572);function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Rt=function(e){var t=e.appState,n=e.elements,r=e.actionManager,i=e.setAppState,o=e.onLockToggle,a=e.onHandToolToggle,s=e.onPenModeToggle,l=e.renderTopRightUI,c=e.renderCustomStats,u=e.renderSidebars,d=e.device,p=e.renderWelcomeScreen,f=e.UIOptions,m=e.app,g=(0,Dt.R6)(),v=g.WelcomeScreenCenterTunnel,b=g.MainMenuTunnel,y=g.DefaultSidebarTriggerTunnel;return(0,T.jsxs)(T.Fragment,{children:[u(),!t.viewModeEnabled&&(0,T.jsxs)(ft,{side:"top",className:"App-top-bar",children:[p&&(0,T.jsx)(v.Out,{}),(0,T.jsx)(Et,{heading:"shapes",children:function(e){return(0,T.jsx)(Pe.Z.Col,{gap:4,align:"center",children:(0,T.jsxs)(Pe.Z.Row,{gap:1,className:"App-toolbar-container",children:[(0,T.jsxs)(bt.W,{padding:1,className:"App-toolbar App-toolbar--mobile",children:[e,(0,T.jsx)(Pe.Z.Row,{gap:1,children:(0,T.jsx)(ze,{appState:t,activeTool:t.activeTool,UIOptions:f,app:m})})]}),l&&l(!0,t),(0,T.jsxs)("div",{className:"mobile-misc-tools-container",children:[!t.viewModeEnabled&&(0,T.jsx)(y.Out,{}),(0,T.jsx)(Ct,{checked:t.penMode,onChange:function(){return s(null)},title:(0,E.t)("toolBar.penMode"),isMobile:!0,penDetected:t.penDetected}),(0,T.jsx)(wt,{checked:t.activeTool.locked,onChange:o,title:(0,E.t)("toolBar.lock"),isMobile:!0}),(0,T.jsx)(Mt,{checked:(0,N.l$)(t),onChange:function(){return a()},title:(0,E.t)("toolBar.hand"),isMobile:!0})]})]})})}}),(0,T.jsx)(vt,{appState:t,isMobile:!0,device:d,app:m})]}),!t.openMenu&&t.showStats&&(0,T.jsx)(Tt,{appState:t,setAppState:i,elements:n,onClose:function(){r.executeAction(O.u0)},renderCustomStats:c}),(0,T.jsx)("div",{className:"App-bottom-bar",style:{marginBottom:_t.nn+2*_t.WM,marginLeft:_t.nn+2*_t.WM,marginRight:_t.nn+2*_t.WM},children:(0,T.jsxs)(bt.W,{padding:0,children:["shape"===t.openMenu&&!t.viewModeEnabled&&(0,W.RT)(t,n)?(0,T.jsx)(Et,{className:"App-mobile-menu",heading:"selectedShapeActions",children:(0,T.jsx)(Le,{appState:t,elements:n,renderAction:r.renderAction})}):null,(0,T.jsxs)("footer",{className:"App-toolbar",children:[t.viewModeEnabled?(0,T.jsx)("div",{className:"App-toolbar-content",children:(0,T.jsx)(b.Out,{})}):(0,T.jsxs)("div",{className:"App-toolbar-content",children:[(0,T.jsx)(b.Out,{}),r.renderAction("toggleEditMenu"),r.renderAction("undo"),r.renderAction("redo"),r.renderAction(t.multiElement?"finalize":"duplicateSelection"),r.renderAction("deleteSelectedElements")]}),t.scrolledOutside&&!t.openMenu&&!t.openSidebar&&(0,T.jsx)("button",{className:"scroll-back-to-content",onClick:function(){i((function(e){return function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n")]})]})]})]})})},nn=n(4704),rn=n(4241),on={};on.styleTagTransform=we(),on.setAttributes=ve(),on.insert=me().bind(null,"head"),on.domAPI=he(),on.insertStyleElement=ye(),de()(rn.Z,on),rn.Z&&rn.Z.locals&&rn.Z.locals;var an=function(e){var t,n=e.children,r=e.color;return(0,T.jsx)("div",{className:"Card",style:(t={},(0,h.Z)(t,"--card-color","primary"===r?"var(--color-primary)":Lt[r][7]),(0,h.Z)(t,"--card-color-darker","primary"===r?"var(--color-primary-darker)":Lt[r][8]),(0,h.Z)(t,"--card-color-darkest","primary"===r?"var(--color-primary-darkest)":Lt[r][9]),t),children:n})},sn=n(7955),ln={};ln.styleTagTransform=we(),ln.setAttributes=ve(),ln.insert=me().bind(null,"head"),ln.domAPI=he(),ln.insertStyleElement=ye(),de()(sn.Z,ln),sn.Z&&sn.Z.locals&&sn.Z.locals;var cn=function(e){var t=e.elements,n=e.appState,r=e.setAppState,i=e.files,o=e.actionManager,s=e.exportOpts,l=e.canvas,c=e.onCloseRequest,u=s.onExportToBackend;return(0,T.jsx)("div",{className:"ExportDialog ExportDialog--json",children:(0,T.jsxs)("div",{className:"ExportDialog-cards",children:[s.saveFileToDisk&&(0,T.jsxs)(an,{color:"lime",children:[(0,T.jsx)("div",{className:"Card-icon",children:k.TP}),(0,T.jsx)("h2",{children:(0,E.t)("exportDialog.disk_title")}),(0,T.jsxs)("div",{className:"Card-details",children:[(0,E.t)("exportDialog.disk_details"),!Ue.kr&&o.renderAction("changeProjectName")]}),(0,T.jsx)(S.V,{className:"Card-button",type:"button",title:(0,E.t)("exportDialog.disk_button"),"aria-label":(0,E.t)("exportDialog.disk_button"),showAriaLabel:!0,onClick:function(){o.executeAction(We.mM,"ui")}})]}),u&&(0,T.jsxs)(an,{color:"pink",children:[(0,T.jsx)("div",{className:"Card-icon",children:k.xP}),(0,T.jsx)("h2",{children:(0,E.t)("exportDialog.link_title")}),(0,T.jsx)("div",{className:"Card-details",children:(0,E.t)("exportDialog.link_details")}),(0,T.jsx)(S.V,{className:"Card-button",type:"button",title:(0,E.t)("exportDialog.link_button"),"aria-label":(0,E.t)("exportDialog.link_button"),showAriaLabel:!0,onClick:(0,a.Z)(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,(0,R.L)("export","link","ui (".concat((0,j.$h)(),")")),e.next=4,u(t,n,i,l);case 4:c(),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),r({errorMessage:e.t0.message});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))})]}),s.renderCustomUI&&s.renderCustomUI(t,n,i,l)]})})},un=function(e){var t=e.elements,n=e.appState,r=e.files,i=e.actionManager,o=e.exportOpts,a=e.canvas,s=e.setAppState,l=v().useCallback((function(){s({openDialog:null})}),[s]);return(0,T.jsx)(T.Fragment,{children:"jsonExport"===n.openDialog&&(0,T.jsx)(Fe.V,{onCloseRequest:l,title:(0,E.t)("buttons.export"),children:(0,T.jsx)(cn,{elements:t,appState:n,setAppState:s,files:r,actionManager:i,onCloseRequest:l,exportOpts:o,canvas:a})})})},dn=n(7080),pn=function(e){return(0,T.jsx)("button",{className:"help-icon",onClick:e.onClick,type:"button",title:"".concat((0,E.t)("helpDialog.title")," — ?"),"aria-label":(0,E.t)("helpDialog.title"),children:k.by})},hn=function(e){var t=e.appState,n=e.actionManager,r=e.showExitZenModeBtn,i=e.renderWelcomeScreen,o=(0,Dt.R6)(),a=o.FooterCenterTunnel,s=o.WelcomeScreenHelpHintTunnel,l=$i(),c=!t.viewModeEnabled&&t.multiElement&&l.isTouchScreen;return(0,T.jsxs)("footer",{role:"contentinfo",className:"layer-ui__wrapper__footer App-menu App-menu_bottom",children:[(0,T.jsx)("div",{className:(0,x.Z)("layer-ui__wrapper__footer-left zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":t.zenModeEnabled}),children:(0,T.jsx)(Pe.Z.Col,{gap:2,children:(0,T.jsxs)(Et,{heading:"canvasActions",children:[(0,T.jsx)(Ze,{renderAction:n.renderAction,zoom:t.zoom}),!t.viewModeEnabled&&(0,T.jsx)(Ne,{renderAction:n.renderAction,className:(0,x.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-bottom":t.zenModeEnabled})}),c&&(0,T.jsx)(Be,{renderAction:n.renderAction,className:(0,x.Z)("zen-mode-transition",{"layer-ui__wrapper__footer-left--transition-left":t.zenModeEnabled})})]})})}),(0,T.jsx)(a.Out,{}),(0,T.jsx)("div",{className:(0,x.Z)("layer-ui__wrapper__footer-right zen-mode-transition",{"transition-right":t.zenModeEnabled}),children:(0,T.jsxs)("div",{style:{position:"relative"},children:[i&&(0,T.jsx)(s.Out,{}),(0,T.jsx)(pn,{onClick:function(){return n.executeAction(O.jY)}})]})}),(0,T.jsx)($e,{actionManager:n,showExitZenModeBtn:r})]})},fn=hn;hn.displayName="Footer";var mn=n(5902),gn=n(453),vn=n(3607),bn=n(7021),yn=n(8973),xn=n(6922),wn=n(7827),On=function(e){var t=e.title,n=e.children,r=e.actionLabel,i=e.onClick;return(0,T.jsxs)("div",{className:"OverwriteConfirm__Actions__Action",children:[(0,T.jsx)("h4",{children:t}),(0,T.jsx)("div",{className:"OverwriteConfirm__Actions__Action__content",children:n}),(0,T.jsx)(it,{variant:"outlined",color:"muted",label:r,size:"large",fullWidth:!0,onClick:i})]})},kn=Object.assign((function(e){var t=e.children;return(0,T.jsx)("div",{className:"OverwriteConfirm__Actions",children:t})}),{ExportToImage:function(){var e=(0,E.QT)().t,t=Hi(),n=Wi();return(0,T.jsx)(On,{title:e("overwriteConfirm.action.exportToImage.title"),actionLabel:e("overwriteConfirm.action.exportToImage.button"),onClick:function(){t.executeAction(We.Du,"ui",!0),n({openDialog:"imageExport"})},children:e("overwriteConfirm.action.exportToImage.description")})},SaveToDisk:function(){var e=(0,E.QT)().t,t=Hi();return(0,T.jsx)(On,{title:e("overwriteConfirm.action.saveToDisk.title"),actionLabel:e("overwriteConfirm.action.saveToDisk.button"),onClick:function(){t.executeAction(O.mM,"ui")},children:e("overwriteConfirm.action.saveToDisk.description")})}}),Sn=n(9439),En={};function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n);try{for(l.s();!(a=l.n()).done;){var c=a.value;(0,C.DR)(c,(0,h.Z)({},i&&A.swapPreviewOnAlt?"elementBackground"===e?"strokeColor":"backgroundColor":"elementBackground"===e?"backgroundColor":"strokeColor",t),!1),Ln.R.delete(c)}}catch(e){l.e(e)}finally{l.f()}null===(o=oe.Z.getScene(n[0]))||void 0===o||o.informMutation()}else s("elementBackground"===e?{currentItemBackgroundColor:t}:{currentItemStrokeColor:t})},onSelect:function(e,t){var n;L((function(e){return null!=e&&e.keepOpenOnAlt&&t.altKey?e:null})),null==A||null===(n=A.onSelect)||void 0===n||n.call(A,e,t)}}),"help"===o.openDialog&&(0,T.jsx)(tn,{onClose:function(){s({openDialog:null})}}),(0,T.jsx)(yn.o,{}),(0,T.jsx)(P.OverwriteConfirmDialogTunnel.Out,{}),Z(),z(),o.pasteDialog.shown&&(0,T.jsx)(Ft,{setAppState:s,appState:o,onClose:function(){return s({pasteDialog:{shown:!1,data:null}})}}),_.editor.isMobile&&(0,T.jsx)(Rt,{app:O,appState:o,elements:l,actionManager:r,renderJSONExportDialog:z,renderImageExportDialog:Z,setAppState:s,onLockToggle:u,onHandToolToggle:d,onPenModeToggle:p,renderTopRightUI:m,renderCustomStats:g,renderSidebars:$,device:_,renderWelcomeScreen:y,UIOptions:v}),!_.editor.isMobile&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:"layer-ui__wrapper",style:o.openSidebar&&B&&_.editor.canFitSidebar?{width:"calc(100% - ".concat(I.EE,"px)")}:{},children:[y&&(0,T.jsx)(P.WelcomeScreenCenterTunnel.Out,{}),(n=(0,W.RT)(o,l),(0,T.jsx)(ft,{side:"top",children:(0,T.jsxs)("div",{className:"App-menu App-menu_top",children:[(0,T.jsxs)(Pe.Z.Col,{gap:6,className:(0,x.Z)("App-menu_top__left"),children:[(0,T.jsxs)("div",{style:{position:"relative"},children:[(0,T.jsx)(P.MainMenuTunnel.Out,{}),y&&(0,T.jsx)(P.WelcomeScreenMenuHintTunnel.Out,{})]}),n&&(0,T.jsx)(Et,{heading:"selectedShapeActions",className:(0,x.Z)("selected-shape-actions zen-mode-transition",{"transition-left":o.zenModeEnabled}),children:(0,T.jsx)(bt.W,{className:I.$C.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:"".concat(o.height-166,"px")},children:(0,T.jsx)(Le,{appState:o,elements:l,renderAction:r.renderAction})})})]}),!o.viewModeEnabled&&(0,T.jsx)(Et,{heading:"shapes",className:"shapes-section",children:function(e){return(0,T.jsxs)("div",{style:{position:"relative"},children:[y&&(0,T.jsx)(P.WelcomeScreenToolbarHintTunnel.Out,{}),(0,T.jsx)(Pe.Z.Col,{gap:4,align:"start",children:(0,T.jsxs)(Pe.Z.Row,{gap:1,className:(0,x.Z)("App-toolbar-container",{"zen-mode":o.zenModeEnabled}),children:[(0,T.jsxs)(bt.W,{padding:1,className:(0,x.Z)("App-toolbar",{"zen-mode":o.zenModeEnabled}),children:[(0,T.jsx)(vt,{appState:o,isMobile:_.editor.isMobile,device:_,app:O}),e,(0,T.jsxs)(Pe.Z.Row,{gap:1,children:[(0,T.jsx)(Ct,{zenModeEnabled:o.zenModeEnabled,checked:o.penMode,onChange:function(){return p(null)},title:(0,E.t)("toolBar.penMode"),penDetected:o.penDetected}),(0,T.jsx)(wt,{checked:o.activeTool.locked,onChange:u,title:(0,E.t)("toolBar.lock")}),(0,T.jsx)("div",{className:"App-toolbar__divider"}),(0,T.jsx)(Mt,{checked:(0,N.l$)(o),onChange:function(){return d()},title:(0,E.t)("toolBar.hand"),isMobile:!0}),(0,T.jsx)(ze,{appState:o,activeTool:o.activeTool,UIOptions:v,app:O})]})]}),S&&(0,T.jsx)(bt.W,{style:{marginLeft:8,alignSelf:"center",height:"fit-content"},children:(0,T.jsx)(zn,{title:(0,E.t)("toolBar.laser"),checked:"laser"===o.activeTool.type,onChange:function(){return O.setActiveTool({type:"laser"})},isMobile:!0})})]})})]})}}),(0,T.jsxs)("div",{className:(0,x.Z)("layer-ui__wrapper__top-right zen-mode-transition",{"transition-right":o.zenModeEnabled}),children:[(0,T.jsx)(nn.Z,{collaborators:o.collaborators}),null==m?void 0:m(_.editor.isMobile,o),!o.viewModeEnabled&&(!B||(null===(t=o.openSidebar)||void 0===t?void 0:t.name)!==I.Cc.name)&&(0,T.jsx)(P.DefaultSidebarTriggerTunnel.Out,{})]})]})})),(0,T.jsx)(fn,{appState:o,actionManager:r,showExitZenModeBtn:f,renderWelcomeScreen:y}),o.showStats&&(0,T.jsx)(Tt,{appState:o,setAppState:s,elements:l,onClose:function(){r.executeAction(dn.u)},renderCustomStats:g}),o.scrolledOutside&&(0,T.jsx)("button",{className:"scroll-back-to-content",onClick:function(){s((function(e){return function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{omitCenter:!1,boundingBoxCorners:!1},n=t.omitCenter,r=t.boundingBoxCorners,o=t.dragOffset,a=[];if(1===e.length){var s=e[0],l=(0,Pt.qf)(s),c=(0,i.Z)(l,6),u=c[0],d=c[1],p=c[2],h=c[3],f=c[4],m=c[5];o&&(u+=o.x,p+=o.x,f+=o.x,d+=o.y,h+=o.y,m+=o.y);var g=(p-u)/2,v=(h-d)/2;if("diamond"!==s.type&&"ellipse"!==s.type||r){var b=(0,re.xj)([u,d],[f,m],s.angle),y=(0,re.xj)([p,d],[f,m],s.angle),x=(0,re.xj)([u,h],[f,m],s.angle),w=(0,re.xj)([p,h],[f,m],s.angle);a=n?[b,y,x,w]:[b,y,x,w,[f,m]]}else{var O=(0,re.xj)([u,d+v],[f,m],s.angle),k=(0,re.xj)([u+g,d],[f,m],s.angle),S=(0,re.xj)([p,d+v],[f,m],s.angle),E=(0,re.xj)([u+g,h],[f,m],s.angle);a=n?[O,k,S,E]:[O,k,S,E,[f,m]]}}else if(e.length>1){var _=(0,Pt.hC)(e,null!=o?o:{x:0,y:0}),C=(0,i.Z)(_,4),P=C[0],j=C[1],I=C[2],T=C[3],M=[P,j],D=[I,j],A=[P,T],R=[I,T];a=n?[M,D,A,R]:[M,D,A,R,[P+(I-P)/2,j+(T-j)/2]]}return a.map((function(e){return[Tr(e[0]),Tr(e[1])]}))},Pr=function(e,t,n){var r=t.filter((function(e){return(0,Y.He)(e)})).map((function(e){return e.id}));return(0,ur.CF)(e,t,n).filter((function(e){return!(e.frameId&&r.includes(e.frameId))}))},jr=function(e,t,n,r,o,a,s){if(!_r({appState:n,event:r,selectedElements:e}))return[];if(0===e.length)return[];var l=Er.getVisibleGaps();if(l){var c,u=l.horizontalGaps,d=l.verticalGaps,p=(0,Pt.hC)(e,t).map((function(e){return Tr(e)})),h=(0,i.Z)(p,4),f=h[0],m=h[1],g=h[2],v=h[3],b=(f+g)/2,y=(m+v)/2,x=Or(u);try{for(x.s();!(c=x.n()).done;){var w=c.value;if((0,re.ep)([m,v],w.overlap)){var O=w.startSide[0][0]+w.length/2,k=Tr(O-b);if(w.length>g-f&&Math.abs(k)<=s.x){Math.abs(k)v-m&&Math.abs(R)<=s.y){Math.abs(R)0){var a,s=Or(e);try{for(s.s();!(a=s.n()).done;){var l=a.value;if("point"===l.type){var c,u=Tr(l.points[0][0]);n[u]||(n[u]=[]),(c=n[u]).push.apply(c,(0,o.Z)(l.points.map((function(e){return[Tr(e[0]),Tr(e[1])]}))))}}}catch(e){s.e(e)}finally{s.f()}}if(t.length>0){var d,p=Or(t);try{for(p.s();!(d=p.n()).done;){var h=d.value;if("point"===h.type){var f,m=Tr(h.points[0][1]);r[m]||(r[m]=[]),(f=r[m]).push.apply(f,(0,o.Z)(h.points.map((function(e){return[Tr(e[0]),Tr(e[1])]}))))}}}catch(e){p.e(e)}finally{p.f()}}return Object.entries(n).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return{type:"points",points:Mr(r.map((function(e){return[Number(n),e[1]]})).sort((function(e,t){return e[1]-t[1]})))}})).concat(Object.entries(r).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return{type:"points",points:Mr(r.map((function(e){return[e[0],Number(n)]})).sort((function(e,t){return e[0]-t[0]})))}})))},Ar=function(e,t,n){var r,o=(0,Pt.hC)(e,t),a=(0,i.Z)(o,4),s=a[0],l=a[1],c=a[2],u=a[3],d=[],p=Or(n);try{for(p.s();!(r=p.n()).done;){var h=r.value,f=(0,i.Z)(h.gap.startBounds,4),m=f[0],g=f[1],v=f[2],b=f[3],y=(0,i.Z)(h.gap.endBounds,4),x=y[0],w=y[1],O=y[2],k=y[3],S=(0,re.mW)([l,u],h.gap.overlap),E=(0,re.mW)([s,c],h.gap.overlap);switch(h.direction){case"center_horizontal":if(S){var _=(S[0]+S[1])/2;d.push({type:"gap",direction:"horizontal",points:[[h.gap.startSide[0][0],_],[s,_]]},{type:"gap",direction:"horizontal",points:[[c,_],[h.gap.endSide[0][0],_]]})}break;case"center_vertical":if(E){var C=(E[0]+E[1])/2;d.push({type:"gap",direction:"vertical",points:[[C,h.gap.startSide[0][1]],[C,l]]},{type:"gap",direction:"vertical",points:[[C,u],[C,h.gap.endSide[0][1]]]})}break;case"side_right":if(S){var P=(S[0]+S[1])/2;d.push({type:"gap",direction:"horizontal",points:[[v,P],[x,P]]},{type:"gap",direction:"horizontal",points:[[O,P],[s,P]]})}break;case"side_left":if(S){var j=(S[0]+S[1])/2;d.push({type:"gap",direction:"horizontal",points:[[c,j],[m,j]]},{type:"gap",direction:"horizontal",points:[[v,j],[x,j]]})}break;case"side_top":if(E){var I=(E[0]+E[1])/2;d.push({type:"gap",direction:"vertical",points:[[I,u],[I,g]]},{type:"gap",direction:"vertical",points:[[I,b],[I,w]]})}break;case"side_bottom":if(E){var T=(E[0]+E[1])/2;d.push({type:"gap",direction:"vertical",points:[[T,b],[T,w]]},{type:"gap",direction:"vertical",points:[[T,k],[T,l]]})}}}}catch(e){p.e(e)}finally{p.f()}return function(e){var t,n=new Map,r=Or(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.points.flat().map((function(e){return[Tr(e)]})).join(",");n.has(o)||n.set(o,i)}}catch(e){r.e(e)}finally{r.f()}return Array.from(n.values())}(d.map((function(e){return wr(wr({},e),{},{points:e.points.map((function(e){return[Tr(e[0]),Tr(e[1])]}))})})))},Rr=n(7392),Lr=n(9247),zr=function(){return(0,T.jsxs)("div",{"data-testid":"brave-measure-text-error",children:[(0,T.jsx)("p",{children:(0,T.jsx)(Lr.Z,{i18nKey:"errors.brave_measure_text_error.line1",bold:function(e){return(0,T.jsx)("span",{style:{fontWeight:600},children:e})}})}),(0,T.jsx)("p",{children:(0,T.jsx)(Lr.Z,{i18nKey:"errors.brave_measure_text_error.line2",bold:function(e){return(0,T.jsx)("span",{style:{fontWeight:600},children:e})}})}),(0,T.jsx)("p",{children:(0,T.jsx)(Lr.Z,{i18nKey:"errors.brave_measure_text_error.line3",link:function(e){return(0,T.jsx)("a",{href:"http://docs.excalidraw.com/docs/@excalidraw/excalidraw/faq#turning-off-aggresive-block-fingerprinting-in-brave-browser",children:e})}})}),(0,T.jsx)("p",{children:(0,T.jsx)(Lr.Z,{i18nKey:"errors.brave_measure_text_error.line4",issueLink:function(e){return(0,T.jsx)("a",{href:"https://github.com/excalidraw/excalidraw/issues/new",children:e})},discordLink:function(e){return(0,T.jsxs)("a",{href:"https://discord.gg/UexuTaE",children:[e,"."]})}})})]})},Zr=n(6199),Nr=n(7766),$r=function(e){return{zoom:e.zoom,scrollX:e.scrollX,scrollY:e.scrollY,width:e.width,height:e.height,viewModeEnabled:e.viewModeEnabled,editingGroupId:e.editingGroupId,editingLinearElement:e.editingLinearElement,selectedElementIds:e.selectedElementIds,frameToHighlight:e.frameToHighlight,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,theme:e.theme,pendingImageElementId:e.pendingImageElementId,selectionElement:e.selectionElement,selectedGroupIds:e.selectedGroupIds,selectedLinearElement:e.selectedLinearElement,multiElement:e.multiElement,isBindingEnabled:e.isBindingEnabled,suggestedBindings:e.suggestedBindings,isRotating:e.isRotating,elementsToHighlight:e.elementsToHighlight,openSidebar:e.openSidebar,showHyperlinkPopup:e.showHyperlinkPopup,collaborators:e.collaborators,activeEmbeddable:e.activeEmbeddable,snapLines:e.snapLines,zenModeEnabled:e.zenModeEnabled}},Br=v().memo((function(e){var t=(0,g.useRef)(!1);return(0,g.useEffect)((function(){var n;if(t.current){var r={},i={},o={},a={},s={};e.appState.collaborators.forEach((function(t,n){if(t.selectedElementIds)for(var l=0,c=Object.keys(t.selectedElementIds);l{const a=function(e,t,n){const r=pi(t,n);if(0===r)return pi(e,t);const i=((e,t,n)=>Math.max(0,Math.min(1,e)))(((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r**2);return pi([t[0]+i*(n[0]-t[0]),t[1]+i*(n[1]-t[1]),e[2]],e)}(i,n,r);return a>e?[a,o]:[e,t]}),[0,-1]);if(i>=t){const i=e[o];return[...hi([n,...e.slice(1,o),i],t).slice(0,-1),i,...hi([i,...e.slice(o,-1),r],t).slice(1)]}return[n,r]}ti={},ni=()=>fi,Object.defineProperty(ti,"LaserPointer",{get:ni,set:undefined,enumerable:!0,configurable:!0});class fi{static#e=(()=>{this.defaults={size:2,streamline:.45,simplify:.1,simplifyPhase:"output",sizeMapping:()=>1}})();static#t=(()=>{this.constants={cornerDetectionMaxAngle:120,cornerDetectionVariance:e=>e>35?.5:1,maxTailLength:50}})();constructor(e){this.originalPoints=[],this.stablePoints=[],this.tailPoints=[],this.isFresh=!0,this.options=Object.assign({},fi.defaults,e)}get lastPoint(){return this.tailPoints[this.tailPoints.length-1]??this.stablePoints[this.stablePoints.length-1]}addPoint(e){const t=this.originalPoints[this.originalPoints.length-1];if(!t||t[0]!==e[0]||t[1]!==e[1]){if(this.originalPoints.push(e),this.isFresh)return this.isFresh=!1,void this.stablePoints.push(e);var n,r,i;this.options.streamline>0&&(n=this.lastPoint,r=e,i=1-this.options.streamline,e=ii(n,ai(oi(r,n),i))),this.tailPoints.push(e),function(e){if(e.length<2)return 0;let t=0;for(let n=1;n<=e.length-1;n++)t+=pi(e[n-1],e[n]);return t+=pi(e[e.length-2],e[e.length-1]),t}(this.tailPoints)>fi.constants.maxTailLength&&this.stabilizeTail()}}close(){this.stabilizeTail()}stabilizeTail(){if(this.options.simplify>0&&"tail"==this.options.simplifyPhase)throw new Error("Not implemented yet");this.stablePoints.push(...this.tailPoints),this.tailPoints=[]}getSize(e,t,n,r,i){return(e??this.options.size)*this.options.sizeMapping({pressure:t,runningLength:i,currentIndex:n,totalLength:r})}getStrokeOutline(e){if(this.isFresh)return[];let t=[...this.stablePoints,...this.tailPoints];this.options.simplify>0&&"input"===this.options.simplifyPhase&&(t=hi(t,this.options.simplify));const n=t.length;if(0===n)return[];if(1===n){const r=t[0],i=[];for(let t=0;t<=2*Math.PI;t+=Math.PI/16)i.push(ii(r,ai(li([1,0,0],t),this.getSize(e,r[2],0,n,0))));return i.push(ii(r,ai([1,0,0],this.getSize(e,r[2],0,n,0)))),i}if(2===n){const r=t[0],i=t[1],o=[],a=ci(r,[r[0],r[1]-100,r[2]],i);for(let t=a;t<=Math.PI+a;t+=Math.PI/16)o.push(ii(r,ai(li([1,0,0],t),this.getSize(e,r[2],0,n,0))));for(let t=Math.PI+a;t<=2*Math.PI+a;t+=Math.PI/16)o.push(ii(i,ai(li([1,0,0],t),this.getSize(e,i[2],0,n,0))));return o.push(o[0]),o}const r=[],i=[];let o=0,a=0,s=0,l=0;for(let c=1;c=0;t-=e/4)i.push(ii(d,li(ai(b,m),t)));i.push(j,S)}else{r.push(O,P);for(let t=0;t<=e;t+=e/4)i.push(ii(d,li(ai(b,-m),-t)));for(let t=e;t>=0;t-=e/4)r.push(ii(d,li(ai(b,-m),-t)));r.push(P,E)}}else r.push(P),i.push(j);a=o}const c=t[s],u=t[s+1],d=t[n-2],p=t[n-1];if(s>=n-2)return[];const h=si(oi(u,c)),f=si(oi(d,p)),m=li(h,-Math.PI/2),g=li(f,Math.PI/2),v=this.getSize(e,c[2],0,n,0),b=[],y=this.getSize(e,d[2],n-2,n,l),x=[];for(let e=0;e<=Math.PI;e+=Math.PI/16)b.unshift(ii(c,li(ai(m,v),-e)));b.unshift(ii(c,ai(m,-v)));for(let e=0;e<=Math.PI;e+=Math.PI/16)x.push(ii(p,li(ai(g,-y),-e)));const w=[...b,...r,...x.reverse(),...i.reverse()];return b.length>0&&w.push(b[0]),this.options.simplify>0&&"output"===this.options.simplifyPhase?hi(w,this.options.simplify):w}}var mi=n(957);function gi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1],n=e.length;if(n<4)return"";for(var r=e[0],i=e[1],o=e[2],a="M".concat(r[0].toFixed(2),",").concat(r[1].toFixed(2)," Q").concat(i[0].toFixed(2),",").concat(i[1].toFixed(2)," ").concat(bi(i[0],o[0]).toFixed(2),",").concat(bi(i[1],o[1]).toFixed(2)," T"),s=2,l=n-1;s=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x+e.width/3&&n<=e.x+2*e.width/3&&r>=e.y+e.height/3&&r<=e.y+2*e.height/3}},{key:"renderEmbeddables",value:function(){var e=this,t=this.state.zoom.value,n=this.state.width,r=this.state.height,i=this.scene.getNonDeletedElements().filter((function(e){return(0,Y.gs)(e)&&!!e.validated}));return(0,T.jsx)(T.Fragment,{children:i.map((function(i){var o,a,s,l,c,u,d,p,f,m=(0,j._i)({sceneX:i.x,sceneY:i.y},e.state),g=m.x,v=m.y,b=(0,le.LM)((0,ir.ye)(i.link||"")),y=(0,ne.PZ)(i,n,r,e.state),w=(null===(o=e.state.activeEmbeddable)||void 0===o?void 0:o.element)===i&&"active"===(null===(a=e.state.activeEmbeddable)||void 0===a?void 0:a.state),O=(null===(s=e.state.activeEmbeddable)||void 0===s?void 0:s.element)===i&&"hover"===(null===(l=e.state.activeEmbeddable)||void 0===l?void 0:l.state);return(0,T.jsx)("div",{className:(0,x.Z)("excalidraw__embeddable-container",{"is-hovered":O}),style:(0,h.Z)({transform:y?"translate(".concat(g-e.state.offsetLeft,"px, ").concat(v-e.state.offsetTop,"px) scale(").concat(t,")"):"none",display:y?"block":"none",opacity:i.opacity/100},"--embeddable-radius","".concat((0,re.yW)(Math.min(i.width,i.height),i),"px")),children:(0,T.jsxs)("div",{className:"excalidraw__embeddable-container__inner",style:{width:y?"".concat(i.width,"px"):0,height:y?"".concat(i.height,"px"):0,transform:y?"rotate(".concat(i.angle,"rad)"):"none",pointerEvents:w?I.XI.enabled:I.XI.disabled},children:[O&&(0,T.jsx)("div",{className:"excalidraw__embeddable-hint",children:(0,E.t)("buttons.embeddableInteractionButton")}),(0,T.jsx)("div",{className:"excalidraw__embeddable__outer",style:{padding:"".concat(i.strokeWidth,"px")},children:null!==(c=null===(u=(d=e.props).renderEmbeddable)||void 0===u?void 0:u.call(d,i,e.state))&&void 0!==c?c:(0,T.jsx)("iframe",{ref:function(t){return e.updateEmbeddableRef(i.id,t)},className:"excalidraw__embeddable",srcDoc:"document"===(null==b?void 0:b.type)?b.srcdoc(e.state.theme):void 0,src:"document"!==(null==b?void 0:b.type)?null!==(p=null==b?void 0:b.link)&&void 0!==p?p:"":void 0,scrolling:"no",referrerPolicy:"no-referrer-when-downgrade",title:"Excalidraw Embedded Content",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,sandbox:"".concat(null!=b&&null!==(f=b.sandbox)&&void 0!==f&&f.allowSameOrigin?"allow-same-origin":""," allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-downloads")})})]})},i.id)}))})}},{key:"render",value:function(){var e,t,n,r=this,i=this.scene.getSelectedElements(this.state),o=this.props,a=o.renderTopRightUI,s=o.renderCustomStats,l=this.scene.getVersionNonce(),c=this.renderer.getRenderableElements({versionNonce:l,zoom:this.state.zoom,offsetLeft:this.state.offsetLeft,offsetTop:this.state.offsetTop,scrollX:this.state.scrollX,scrollY:this.state.scrollY,height:this.state.height,width:this.state.width,editingElement:this.state.editingElement,pendingImageElementId:this.state.pendingImageElementId}),u=c.canvasElements,d=c.visibleElements,p=!(this.state.editingElement&&(0,Y.bt)(this.state.editingElement))&&(this.state.selectionElement||this.state.draggingElement||this.state.resizingElement||"laser"===this.state.activeTool.type&&"down"===this.state.cursorButton||this.state.editingElement&&!(0,W.iB)(this.state.editingElement));return(0,T.jsx)("div",{className:(0,x.Z)("excalidraw excalidraw-container",{"excalidraw--view-mode":this.state.viewModeEnabled,"excalidraw--mobile":this.device.editor.isMobile}),style:(0,h.Z)({},"--ui-pointerEvents",p?I.XI.disabled:I.XI.enabled),ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,children:(0,T.jsx)(ji.Provider,{value:this,children:(0,T.jsx)(Ii.Provider,{value:this.props,children:(0,T.jsx)(Di.Provider,{value:this.excalidrawContainerValue,children:(0,T.jsx)(Mi.Provider,{value:this.device,children:(0,T.jsx)(Li.Provider,{value:this.setAppState,children:(0,T.jsx)(Ri.Provider,{value:this.state,children:(0,T.jsxs)(Ai.Provider,{value:this.scene.getNonDeletedElements(),children:[(0,T.jsxs)(zi.Provider,{value:this.actionManager,children:[(0,T.jsxs)(Un,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getNonDeletedElements(),onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onHandToolToggle:this.onHandToolToggle,langCode:(0,E.G3)().code,renderTopRightUI:a,renderCustomStats:s,showExitZenModeBtn:void 0===(null===(e=this.props)||void 0===e?void 0:e.zenModeEnabled)&&this.state.zenModeEnabled,UIOptions:this.props.UIOptions,onExportImage:this.onExportImage,renderWelcomeScreen:!this.state.isLoading&&this.state.showWelcomeScreen&&"selection"===this.state.activeTool.type&&!this.state.zenModeEnabled&&!this.scene.getElementsIncludingDeleted().length,app:this,isCollaborating:this.props.isCollaborating,children:[this.props.children,"mermaid"===this.state.openDialog&&(0,T.jsx)(Kr,{})]}),(0,T.jsx)("div",{className:"excalidraw-textEditorContainer"}),(0,T.jsx)("div",{className:"excalidraw-contextMenuContainer"}),(0,T.jsx)("div",{className:"excalidraw-eye-dropper-container"}),(0,T.jsx)(ri,{manager:this.laserPathManager}),1===i.length&&!this.state.contextMenu&&this.state.showHyperlinkPopup&&(0,T.jsx)(rr.nW,{element:i[0],setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen,setToast:this.setToast},i[0].id),null!==this.state.toast&&(0,T.jsx)(qn,{message:this.state.toast.message,onClose:function(){return r.setToast(null)},duration:this.state.toast.duration,closable:this.state.toast.closable}),this.state.contextMenu&&(0,T.jsx)(_e,{items:this.state.contextMenu.items,top:this.state.contextMenu.top,left:this.state.contextMenu.left,actionManager:this.actionManager,onClose:function(e){r.setState({contextMenu:null},(function(){r.focusContainer(),null==e||e()}))}}),(0,T.jsx)(Qr,{canvas:this.canvas,rc:this.rc,elements:u,visibleElements:d,versionNonce:l,selectionNonce:null===(t=this.state.selectionElement)||void 0===t?void 0:t.versionNonce,scale:window.devicePixelRatio,appState:this.state,renderConfig:{imageCache:this.imageCache,isExporting:!1,renderGrid:!0}}),(0,T.jsx)(Br,{containerRef:this.excalidrawContainerRef,canvas:this.interactiveCanvas,elements:u,visibleElements:d,selectedElements:i,versionNonce:l,selectionNonce:null===(n=this.state.selectionElement)||void 0===n?void 0:n.versionNonce,scale:window.devicePixelRatio,appState:this.state,renderInteractiveSceneCallback:this.renderInteractiveSceneCallback,handleCanvasRef:this.handleInteractiveCanvasRef,onContextMenu:this.handleCanvasContextMenu,onPointerMove:this.handleCanvasPointerMove,onPointerUp:this.handleCanvasPointerUp,onPointerCancel:this.removePointer,onTouchMove:this.handleTouchMove,onPointerDown:this.handleCanvasPointerDown,onDoubleClick:this.handleCanvasDoubleClick}),this.renderFrameNames()]}),this.renderEmbeddables()]})})})})})})})})}},{key:"componentDidMount",value:(r=(0,a.Z)(m().mark((function e(){var t,n=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,"production"===I.Vi.TEST&&(this.setState.bind(this),Object.defineProperties(window.h,{state:{configurable:!0,get:function(){return n.state}},setState:{configurable:!0,value:function(){return n.setState.apply(n,arguments)}},app:{configurable:!0,value:this},history:{configurable:!0,value:this.history}})),this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.props.autoFocus&&this.excalidrawContainerRef.current&&this.focusContainer(),(0,j.h2)()||(this.refreshViewportBreakpoints(),this.refreshEditorBreakpoints()),Ui&&this.excalidrawContainerRef.current&&(this.resizeObserver=new ResizeObserver((function(){n.refreshEditorBreakpoints(),n.updateDOMRect()})),null===(t=this.resizeObserver)||void 0===t||t.observe(this.excalidrawContainerRef.current)),new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene),(0,I.jP)()&&!(0,Te.eB)()&&this.setState({errorMessage:(0,T.jsx)(zr,{})});case 11:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){var e;this.renderer.destroy(),this.scene=new oe.Z,this.renderer=new Wr(this.scene),this.files={},this.imageCache.clear(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),this.library.destroy(),this.laserPathManager.destroy(),this.onChangeEmitter.destroy(),Ln.R.destroy(),Er.destroy(),clearTimeout(Ji),ie.N.clearCache(),G.bO.clearCache(),Ji=0}},{key:"removeEventListeners",value:function(){var e,t,n,r;document.removeEventListener(I.Ks.POINTER_UP,this.removePointer),document.removeEventListener(I.Ks.COPY,this.onCopy),document.removeEventListener(I.Ks.PASTE,this.pasteFromClipboard),document.removeEventListener(I.Ks.CUT,this.onCut),null===(e=this.excalidrawContainerRef.current)||void 0===e||e.removeEventListener(I.Ks.WHEEL,this.onWheel),null===(t=this.nearestScrollableContainer)||void 0===t||t.removeEventListener(I.Ks.SCROLL,this.onScroll),document.removeEventListener(I.Ks.KEYDOWN,this.onKeyDown,!1),document.removeEventListener(I.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition,!1),document.removeEventListener(I.Ks.KEYUP,this.onKeyUp),window.removeEventListener(I.Ks.RESIZE,this.onResize,!1),window.removeEventListener(I.Ks.UNLOAD,this.onUnload,!1),window.removeEventListener(I.Ks.BLUR,this.onBlur,!1),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.removeEventListener(I.Ks.DRAG_OVER,this.disableEvent,!1),null===(r=this.excalidrawContainerRef.current)||void 0===r||r.removeEventListener(I.Ks.DROP,this.disableEvent,!1),document.removeEventListener(I.Ks.GESTURE_START,this.onGestureStart,!1),document.removeEventListener(I.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.removeEventListener(I.Ks.GESTURE_END,this.onGestureEnd,!1),window.removeEventListener(I.Ks.MESSAGE,this.onWindowMessage,!1)}},{key:"addEventListeners",value:function(){var e,t,n,r,i,o=this;this.removeEventListeners(),window.addEventListener(I.Ks.MESSAGE,this.onWindowMessage,!1),document.addEventListener(I.Ks.POINTER_UP,this.removePointer),document.addEventListener(I.Ks.COPY,this.onCopy),null===(e=this.excalidrawContainerRef.current)||void 0===e||e.addEventListener(I.Ks.WHEEL,this.onWheel,{passive:!1}),this.props.handleKeyboardGlobally&&document.addEventListener(I.Ks.KEYDOWN,this.onKeyDown,!1),document.addEventListener(I.Ks.KEYUP,this.onKeyUp,{passive:!0}),document.addEventListener(I.Ks.MOUSE_MOVE,this.updateCurrentCursorPosition),null===(t=document.fonts)||void 0===t||null===(n=t.addEventListener)||void 0===n||n.call(t,"loadingdone",(function(e){var t=e.fontfaces;o.fonts.onFontsLoaded(t)})),document.addEventListener(I.Ks.GESTURE_START,this.onGestureStart,!1),document.addEventListener(I.Ks.GESTURE_CHANGE,this.onGestureChange,!1),document.addEventListener(I.Ks.GESTURE_END,this.onGestureEnd,!1),this.state.viewModeEnabled||(document.addEventListener(I.Ks.PASTE,this.pasteFromClipboard),document.addEventListener(I.Ks.CUT,this.onCut),this.props.detectScroll&&(this.nearestScrollableContainer=(0,j.Ip)(this.excalidrawContainerRef.current),this.nearestScrollableContainer.addEventListener(I.Ks.SCROLL,this.onScroll)),window.addEventListener(I.Ks.RESIZE,this.onResize,!1),window.addEventListener(I.Ks.UNLOAD,this.onUnload,!1),window.addEventListener(I.Ks.BLUR,this.onBlur,!1),null===(r=this.excalidrawContainerRef.current)||void 0===r||r.addEventListener(I.Ks.DRAG_OVER,this.disableEvent,!1),null===(i=this.excalidrawContainerRef.current)||void 0===i||i.addEventListener(I.Ks.DROP,this.disableEvent,!1))}},{key:"componentDidUpdate",value:function(e,t){var n,r,i,o,a=this;this.updateEmbeddables(),this.state.showWelcomeScreen||this.scene.getElementsIncludingDeleted().length||this.setState({showWelcomeScreen:!0}),e.UIOptions.dockedSidebarBreakpoint!==this.props.UIOptions.dockedSidebarBreakpoint&&this.refreshEditorBreakpoints(),(t.scrollX!==this.state.scrollX||t.scrollY!==this.state.scrollY)&&(null===(i=this.props)||void 0===i||null===(o=i.onScrollChange)||void 0===o||o.call(i,this.state.scrollX,this.state.scrollY)),Object.keys(this.state.selectedElementIds).length&&(0,N.EN)(this.state)&&this.setState({activeTool:(0,j.Om)(this.state,{type:"selection"})}),"eraser"===this.state.activeTool.type&&t.theme!==this.state.theme&&(0,pr.OF)(this.interactiveCanvas,this.state.theme),"selection"===t.activeTool.type&&"selection"!==this.state.activeTool.type&&this.state.showHyperlinkPopup&&this.setState({showHyperlinkPopup:!1}),e.langCode!==this.props.langCode&&this.updateLanguage(),e.viewModeEnabled!==this.props.viewModeEnabled&&this.setState({viewModeEnabled:!!this.props.viewModeEnabled}),t.viewModeEnabled!==this.state.viewModeEnabled&&(this.addEventListeners(),this.deselectElements()),e.zenModeEnabled!==this.props.zenModeEnabled&&this.setState({zenModeEnabled:!!this.props.zenModeEnabled}),e.theme!==this.props.theme&&this.props.theme&&this.setState({theme:this.props.theme}),e.gridModeEnabled!==this.props.gridModeEnabled&&this.setState({gridSize:this.props.gridModeEnabled?I.k:null}),this.props.name&&e.name!==this.props.name&&this.setState({name:this.props.name}),null===(n=this.excalidrawContainerRef.current)||void 0===n||n.classList.toggle("theme--dark","dark"===this.state.theme),this.state.editingLinearElement&&!this.state.selectedElementIds[this.state.editingLinearElement.elementId]&&setTimeout((function(){a.state.editingLinearElement&&a.actionManager.executeAction(O.pL)})),null!==(r=this.state.editingElement)&&void 0!==r&&r.isDeleted&&this.setState({editingElement:null}),this.state.selectedLinearElement&&!this.state.selectedElementIds[this.state.selectedLinearElement.elementId]&&this.setState({selectedLinearElement:null});var s,l,c=t.multiElement;t.activeTool!==this.state.activeTool&&null!=c&&(0,P.N1)(this.state)&&(0,Y.Mn)(c,!1)&&(0,P.R)(c,this.state,this.scene,(0,j.AK)(H._.getPointAtIndexGlobalCoordinates(c,-1))),this.history.record(this.state,this.scene.getElementsIncludingDeleted()),this.state.isLoading||(null===(s=(l=this.props).onChange)||void 0===s||s.call(l,this.scene.getElementsIncludingDeleted(),this.state,this.files),this.onChangeEmitter.trigger(this.scene.getElementsIncludingDeleted(),this.state,this.files))}},{key:"addElementsFromMixedContentPaste",value:(n=(0,a.Z)(m().mark((function e(t,n){var r,i,o,s,l,c,u,d,p,h,f,g,v,b,y;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.isPlainPaste,i=n.sceneX,o=n.sceneY,r||!t.some((function(e){return"imageUrl"===e.type}))||!this.isToolSupported("image")){e.next=35;break}return s=t.filter((function(e){return"imageUrl"===e.type})).map((function(e){return e.value})),e.next=5,Promise.all(s.map(function(){var e=(0,a.Z)(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,He._p)(t);case 3:return e.t0=e.sent,e.abrupt("return",{file:e.t0});case 7:return e.prev=7,e.t1=e.catch(0),e.abrupt("return",{errorMessage:e.t1.message});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()));case 5:l=e.sent,c=o,u=!1,d={},p=Si(l),e.prev=10,p.s();case 12:if((h=p.n()).done){e.next=22;break}if(!(f=h.value).file){e.next=20;break}return g=this.createImageElement({sceneX:i,sceneY:c}),e.next=18,this.insertImageElement(g,f.file);case 18:(v=e.sent)&&(u||(u=!0,c-=v.height/2),(0,C.DR)(v,{y:c},!1),c=g.y+g.height+25,d[g.id]=!0);case 20:e.next=12;break;case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(10),p.e(e.t0);case 27:return e.prev=27,p.f(),e.finish(27);case 30:this.setState({selectedElementIds:(0,ur.Oh)(d,this.state)}),b=l.find((function(e){return!!e.errorMessage})),b&&b.errorMessage&&this.setState({errorMessage:b.errorMessage}),e.next=37;break;case 35:(y=t.filter((function(e){return"text"===e.type}))).length&&this.addTextFromPaste(y.map((function(e){return e.value})).join("\n\n"),r);case 37:case"end":return e.stop()}}),e,this,[[10,24,27,30]])}))),function(e,t){return n.apply(this,arguments)})},{key:"addTextFromPaste",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,j.dE)({clientX:this.lastViewportPosition.x,clientY:this.lastViewportPosition.y},this.state),i=r.x,a=r.y,s={x:i,y:a,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roundness:null,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:e,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:I.hs,locked:!1},l=a,c=n?[e]:e.split("\n"),u=c.reduce((function(e,n,r){var o=n.trim(),a=(0,Te.PT)(s.fontFamily);if(o.length){var u=t.getTopLayerFrameAtSceneCoords({x:i,y:l}),d=(0,W.VL)(Pi(Pi({},s),{},{x:i,y:l,text:o,lineHeight:a,frameId:u?u.id:null}));e.push(d),l+=d.height+10}else{var p;(null===(p=c[r-1])||void 0===p?void 0:p.trim())&&(l+=(0,Te.Rg)(s.fontSize,a)+10)}return e}),[]);if(0!==u.length){var d=u[0].frameId;d?this.scene.insertElementsAtIndex(u,this.scene.getElementIndex(d)):this.scene.replaceAllElements([].concat((0,o.Z)(this.scene.getElementsIncludingDeleted()),(0,o.Z)(u))),this.setState({selectedElementIds:(0,ur.Oh)(Object.fromEntries(u.map((function(e){return[e.id,!0]}))),this.state)}),!n&&u.length>1&&!1===io&&!this.device.editor.isMobile&&(this.setToast({message:(0,E.t)("toast.pasteAsSingleElement",{shortcut:(0,j.uY)("CtrlOrCmd+Shift+V")}),duration:5e3}),io=!0),this.history.resumeRecording()}}},{key:"handleTextWysiwyg",value:function(e,t){var n=this,r=t.isExistingElement,i=void 0!==r&&r,a=function(t,r,i){n.scene.replaceAllElements((0,o.Z)(n.scene.getElementsIncludingDeleted().map((function(n){return n.id===e.id&&(0,W.iB)(n)?(0,W.N_)(n,{text:t,isDeleted:i,originalText:r}):n}))))};(0,W.b_)({id:e.id,canvas:this.canvas,getViewportCoords:function(e,t){var r=(0,j._i)({sceneX:e,sceneY:t},n.state),i=r.x,o=r.y;return[i-n.state.offsetLeft,o-n.state.offsetTop]},onChange:(0,j.tH)((function(t){a(t,t,!1),(0,W.qP)(e)&&(0,P.Ww)(e)})),onSubmit:(0,j.tH)((function(t){var r=t.text,o=t.viaKeyboard,s=t.originalText,l=!r.trim();if(a(r,s,l),!l&&o){var c=e.containerId?e.containerId:e.id;n.setState((function(e){return{selectedElementIds:(0,ur.Oh)(Pi(Pi({},e.selectedElementIds),{},(0,h.Z)({},c,!0)),e)}}))}l&&(0,P.$q)(n.scene.getNonDeletedElements(),[e]),l&&!i||n.history.resumeRecording(),n.setState({draggingElement:null,editingElement:null}),n.state.activeTool.locked&&(0,pr.Uk)(n.interactiveCanvas,n.state),n.focusContainer()})),element:e,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),a(e.text,e.originalText,!1)}},{key:"deselectElements",value:function(){this.setState({selectedElementIds:(0,ur.Oh)({},this.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}},{key:"getTextElementAtPosition",value:function(e,t){var n=this.getElementAtPosition(e,t,{includeBoundTextElement:!0});return n&&(0,W.iB)(n)&&!n.isDeleted?n:null}},{key:"getElementAtPosition",value:function(e,t,n){var r=this.getElementsAtPosition(e,t,null==n?void 0:n.includeBoundTextElement,null==n?void 0:n.includeLockedElements);if(r.length>1){if(null!=n&&n.preferSelected)for(var i=r.length-1;i>-1;i--)if(this.state.selectedElementIds[r[i].id])return r[i];var o=r[r.length-1];return(0,W.wB)(o,this.state,this.frameNameBoundsCache,e,t)?r[r.length-2]:o}return 1===r.length?r[0]:null}},{key:"getElementsAtPosition",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=r&&i?this.scene.getNonDeletedElements():this.scene.getNonDeletedElements().filter((function(e){return(i||!e.locked)&&(r||!((0,W.iB)(e)&&e.containerId))}));return(0,ie.CJ)(o,(function(r){return(0,W.wX)(r,n.state,n.frameNameBoundsCache,e,t)})).filter((function(r){var i=(0,cr.$Z)(r);return!(i&&n.state.frameRendering.enabled&&n.state.frameRendering.clip)||(0,cr.Dn)({x:e,y:t},i)}))}},{key:"handleHoverSelectedLinearElement",value:function(e,t,n){var r=H._.getElement(e.elementId),i=(0,Te.WJ)(r);if(r)if(this.state.selectedLinearElement){var o=-1,a=null;(0,nr.Qu)(r,this.state,this.frameNameBoundsCache,[t,n])?(o=H._.getPointIndexUnderCursor(r,this.state.zoom,t,n),a=H._.getSegmentMidpointHitCoords(e,{x:t,y:n},this.state),o>=0||a?(0,pr.KJ)(this.interactiveCanvas,I.oc.POINTER):(0,pr.KJ)(this.interactiveCanvas,I.oc.MOVE)):((0,or.oY)([r],this.state)&&(0,W.wB)(r,this.state,this.frameNameBoundsCache,t,n)||i&&(0,W.wX)(i,this.state,this.frameNameBoundsCache,t,n))&&(0,pr.KJ)(this.interactiveCanvas,I.oc.MOVE),this.state.selectedLinearElement.hoverPointIndex!==o&&this.setState({selectedLinearElement:Pi(Pi({},this.state.selectedLinearElement),{},{hoverPointIndex:o})}),H._.arePointsEqual(this.state.selectedLinearElement.segmentMidPointHoveredCoords,a)||this.setState({selectedLinearElement:Pi(Pi({},this.state.selectedLinearElement),{},{segmentMidPointHoveredCoords:a})})}else(0,pr.KJ)(this.interactiveCanvas,I.oc.AUTO)}},{key:"maybeCleanupAfterMissingPointerUp",value:function(e){null!==oo&&oo(e)}},{key:"updateGestureOnPointerDown",value:function(e){ao.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),2===ao.pointers.size&&(ao.lastCenter=V(ao.pointers),ao.initialScale=this.state.zoom.value,ao.initialDistance=q(Array.from(ao.pointers.values())))}},{key:"initialPointerDownState",value:function(e){var t=(0,j.dE)(e,this.state),n=this.scene.getSelectedElements(this.state),r=(0,W.KP)(n),o=(0,i.Z)(r,4),a=o[0],s=o[1],l=o[2],c=o[3];return{origin:t,withCmdOrCtrl:e[_.tW.CTRL_OR_CMD],originInGrid:(0,j.AK)((0,re.wC)(t.x,t.y,e[_.tW.CTRL_OR_CMD]?null:this.state.gridSize)),scrollbars:(0,ie._4)(Ki,e.clientX-this.state.offsetLeft,e.clientY-this.state.offsetTop),lastCoords:Pi({},t),originalElements:this.scene.getNonDeletedElements().reduce((function(e,t){return e.set(t.id,(0,U.OL)(t)),e}),new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(l+a)/2,y:(c+s)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(t,n)},drag:{hasOccurred:!1,offset:null},eventListeners:{onMove:null,onUp:null,onKeyUp:null,onKeyDown:null},boxSelection:{hasOccurred:!1},elementIdsToErase:{}}}},{key:"handleDraggingScrollBar",value:function(e,t){var n=this;if(!t.scrollbars.isOverEither||this.state.multiElement)return!1;Gi=!0,t.lastCoords.x=e.clientX,t.lastCoords.y=e.clientY;var r=(0,j.$9)((function(e){e.target instanceof HTMLElement&&n.handlePointerMoveOverScrollbars(e,t)})),i=(0,j.tH)((function(){Gi=!1,(0,pr.Uk)(n.interactiveCanvas,n.state),oo=null,n.setState({cursorButton:"up"}),n.savePointer(e.clientX,e.clientY,"up"),window.removeEventListener(I.Ks.POINTER_MOVE,r),window.removeEventListener(I.Ks.POINTER_UP,i),r.flush()}));return oo=i,window.addEventListener(I.Ks.POINTER_MOVE,r),window.addEventListener(I.Ks.POINTER_UP,i),!0}},{key:"isASelectedElement",value:function(e){return null!=e&&this.state.selectedElementIds[e.id]}},{key:"isHittingCommonBoundingBoxOfSelectedElements",value:function(e,t){if(t.length<2)return!1;var n=10/this.state.zoom.value,r=(0,W.KP)(t),o=(0,i.Z)(r,4),a=o[0],s=o[1],l=o[2],c=o[3];return e.x>a-n&&e.xs-n&&e.y2&&void 0!==arguments[2]&&arguments[2];!_r({event:e,appState:this.state,selectedElements:t})||!n&&Er.getReferenceSnapPoints()||Er.setReferenceSnapPoints(function(e,t,n){var r=Pr(e,t,n);return(0,G.AI)(r).filter((function(e){return!(1===e.length&&(0,Y.Xh)(e[0]))})).flatMap((function(e){return Cr(e)}))}(this.scene.getNonDeletedElements(),t,this.state))}},{key:"maybeCacheVisibleGaps",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!_r({event:e,appState:this.state,selectedElements:t})||!n&&Er.getVisibleGaps()||Er.setVisibleGaps(function(e,t,n){var r=Pr(e,t,n),o=(0,G.AI)(r).filter((function(e){return!(1===e.length&&(0,Y.Xh)(e[0]))})).map((function(e){return(0,Pt.KP)(e).map((function(e){return Tr(e)}))})),a=o.sort((function(e,t){return e[0]-t[0]})),s=[],l=0;e:for(var c=0;c99999)break e;var p=a[d],h=(0,i.Z)(u,4),f=h[1],m=h[2],g=h[3],v=(0,i.Z)(p,4),b=v[0],y=v[1],x=v[3];m99999)break e;var _=w[E],C=(0,i.Z)(S,4),P=C[0],j=C[2],I=C[3],T=(0,i.Z)(_,3),M=T[0],D=T[1],A=T[2];I0&&!e.withCmdOrCtrl&&!t.state.editingElement&&"active"!==(null===(v=t.state.activeEmbeddable)||void 0===v?void 0:v.state)){var O={x:a.x-e.origin.x,y:a.y-e.origin.y},k=(0,o.Z)(e.originalElements.values()),S=n.shiftKey;if(S){var E=Math.abs(O.x),T=Math.abs(O.y),M=S&&E>T;S&&E0&&ee[ee.length-1];if(!oe||oe[0]!==te||oe[1]!==ne){var ae=J.simulatePressure?J.pressures:[].concat((0,o.Z)(J.pressures),[n.pressure]);(0,C.DR)(J,{points:[].concat((0,o.Z)(ee),[[te,ne]]),pressures:ae})}}else if((0,Y.bt)(J)){e.drag.hasOccurred=!0,t.setState({selectedElementsAreBeingDragged:!0});var se=J.points,le=c-J.x,ce=u-J.y;if((0,_.Ge)(n)&&2===se.length){var ue=(0,W.o4)(J.x,J.y,a.x,a.y);le=ue.width,ce=ue.height}1===se.length?(0,C.DR)(J,{points:[].concat((0,o.Z)(se),[[le,ce]])}):2===se.length&&(0,C.DR)(J,{points:[].concat((0,o.Z)(se.slice(0,-1)),[[le,ce]])}),(0,Y.Mn)(J,!1)&&t.maybeSuggestBindingsForLinearElementAtCoords(J,[a],t.state.startBoundElement)}else e.lastCoords.x=a.x,e.lastCoords.y=a.y,t.maybeDragNewGenericElement(e,n);if("selection"===t.state.activeTool.type){e.boxSelection.hasOccurred=!0;var de=t.scene.getNonDeletedElements();if(t.state.editingLinearElement)H._.handleBoxSelection(n,t.state,t.setState.bind(t));else{var pe=!0;!n.shiftKey&&(0,ie.N)(de,t.state)&&(e.withCmdOrCtrl&&e.hit.element?t.setState((function(n){return(0,G.bO)(Pi(Pi({},n),{},{selectedElementIds:(0,h.Z)({},e.hit.element.id,!0)}),t.scene.getNonDeletedElements(),n,t)})):pe=!1);var he=(0,ie.Yp)(de,J);t.setState((function(n){var r=Pi(Pi({},pe&&n.selectedElementIds),he.reduce((function(e,t){return e[t.id]=!0,e}),{}));return e.hit.element&&(he.length?delete r[e.hit.element.id]:r[e.hit.element.id]=!0),n=pe?n:Pi(Pi({},n),{},{selectedGroupIds:{},editingGroupId:null}),Pi(Pi({},(0,G.bO)({editingGroupId:n.editingGroupId,selectedElementIds:r},t.scene.getNonDeletedElements(),n,t)),{},{selectedLinearElement:1===he.length&&(0,Y.bt)(he[0])?new H._(he[0],t.scene):null,showHyperlinkPopup:!(1!==he.length||!he[0].link&&!(0,Y.gs)(he[0]))&&"info"})}))}}}}}}}))}},{key:"handlePointerMoveOverScrollbars",value:function(e,t){if(t.scrollbars.isOverHorizontal){var n=e.clientX,r=n-t.lastCoords.x;return this.translateCanvas({scrollX:this.state.scrollX-r/this.state.zoom.value}),t.lastCoords.x=n,!0}if(t.scrollbars.isOverVertical){var i=e.clientY,o=i-t.lastCoords.y;return this.translateCanvas({scrollY:this.state.scrollY-o/this.state.zoom.value}),t.lastCoords.y=i,!0}return!1}},{key:"onPointerUpFromPointerDownHandler",value:function(e){var t=this;return(0,j.tH)((function(n){var r;e.eventListeners.onMove&&e.eventListeners.onMove.flush();var i,a,s=t.state,l=s.draggingElement,c=s.resizingElement,u=s.multiElement,d=s.activeTool,p=s.isResizing,f=s.isRotating;if(t.setState({isResizing:!1,isRotating:!1,resizingElement:null,selectionElement:null,frameToHighlight:null,elementsToHighlight:null,cursorButton:"up",editingElement:u||(0,W.iB)(t.state.editingElement)?t.state.editingElement:null,snapLines:[],originSnapOffset:null}),Er.setReferenceSnapPoints(null),Er.setVisibleGaps(null),t.savePointer(n.clientX,n.clientY,"up"),t.setState({selectedElementsAreBeingDragged:!1}),t.state.editingLinearElement)if(e.boxSelection.hasOccurred||(null===(i=e.hit)||void 0===i||null===(a=i.element)||void 0===a?void 0:a.id)===t.state.editingLinearElement.elementId){var m=H._.handlePointerUp(n,t.state.editingLinearElement,t.state);m!==t.state.editingLinearElement&&t.setState({editingLinearElement:m,suggestedBindings:[]})}else t.actionManager.executeAction(O.pL);else if(t.state.selectedLinearElement){var g,v;if((null===(g=e.hit)||void 0===g||null===(v=g.element)||void 0===v?void 0:v.id)!==t.state.selectedLinearElement.elementId)t.scene.getSelectedElements(t.state).length>1&&t.setState({selectedLinearElement:null});else{var b=H._.handlePointerUp(n,t.state.selectedLinearElement,t.state),y=b.startBindingElement,x=b.endBindingElement,w=t.scene.getElement(b.elementId);(0,Y.Mn)(w)&&(0,P.HG)(w,y,x),b!==t.state.selectedLinearElement&&t.setState({selectedLinearElement:Pi(Pi({},b),{},{selectedPointsIndices:null}),suggestedBindings:[]})}}if(oo=null,window.removeEventListener(I.Ks.POINTER_MOVE,e.eventListeners.onMove),window.removeEventListener(I.Ks.POINTER_UP,e.eventListeners.onUp),window.removeEventListener(I.Ks.KEYDOWN,e.eventListeners.onKeyDown),window.removeEventListener(I.Ks.KEYUP,e.eventListeners.onKeyUp),t.state.pendingImageElementId&&t.setState({pendingImageElementId:null}),t.onPointerUpEmitter.trigger(t.state.activeTool,e,n),"freedraw"===(null==l?void 0:l.type)){var k=(0,j.dE)(n,t.state),S=l.points,E=k.x-l.x,_=k.y-l.y;E===S[0][0]&&_===S[0][1]&&(_+=1e-4,E+=1e-4);var T=l.simulatePressure?[]:[].concat((0,o.Z)(l.pressures),[n.pressure]);return(0,C.DR)(l,{points:[].concat((0,o.Z)(S),[[E,_]]),pressures:T,lastCommittedPoint:[E,_]}),void t.actionManager.executeAction(O.pL)}if((0,Y.pC)(l)){var M=l;try{t.initializeImageDimensions(M),t.setState({selectedElementIds:(0,ur.Oh)((0,h.Z)({},M.id,!0),t.state)},(function(){t.actionManager.executeAction(O.pL)}))}catch(e){console.error(e),t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==M.id}))),t.actionManager.executeAction(O.pL)}}else if((0,Y.bt)(l)){l.points.length>1&&t.history.resumeRecording();var D=(0,j.dE)(n,t.state);e.drag.hasOccurred||!l||u?e.drag.hasOccurred&&!u&&((0,P.N1)(t.state)&&(0,Y.Mn)(l,!1)&&(0,P.R)(l,t.state,t.scene,D),t.setState({suggestedBindings:[],startBoundElement:null}),d.locked?t.setState((function(e){return{draggingElement:null}})):((0,pr.z8)(t.interactiveCanvas),t.setState((function(e){return{draggingElement:null,activeTool:(0,j.Om)(t.state,{type:"selection"}),selectedElementIds:(0,ur.Oh)(Pi(Pi({},e.selectedElementIds),{},(0,h.Z)({},l.id,!0)),e),selectedLinearElement:new H._(l,t.scene)}})))):((0,C.DR)(l,{points:[].concat((0,o.Z)(l.points),[[D.x-l.x,D.y-l.y]])}),t.setState({multiElement:l,editingElement:t.state.draggingElement}))}else{if("selection"!==d.type&&l&&(0,W.QD)(l))return t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==l.id}))),void t.setState({draggingElement:null});if(l){if(e.drag.hasOccurred){var A=(0,j.dE)(n,t.state);if(t.state.selectedLinearElement&&t.state.selectedLinearElement.isDragging){var R=t.scene.getElement(t.state.selectedLinearElement.elementId);if(null!=R&&R.frameId){var L=(0,cr.$Z)(R);L&&R&&((0,cr.cO)(R,L)||((0,C.DR)(R,{groupIds:[]}),t.scene.replaceAllElements((0,cr.lz)(t.scene.getElementsIncludingDeleted(),[R],t.state))))}}else{var z=t.getTopLayerFrameAtSceneCoords(A),Z=t.scene.getSelectedElements(t.state),$=t.scene.getElementsIncludingDeleted(),B=function(e){if(e.length>0){var n,r=Si(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.groupIds.indexOf(t.state.editingGroupId);(0,C.DR)(i,{groupIds:i.groupIds.slice(0,o)},!1)}}catch(e){r.e(e)}finally{r.f()}$.forEach((function(e){e.groupIds.length&&(0,G.Fb)($,e.groupIds[e.groupIds.length-1]).length<2&&(0,C.DR)(e,{groupIds:[]},!1)})),t.setState({editingGroupId:null})}};if(z&&!t.state.selectedElementIds[z.id]){var F=Z.filter((function(e){return e.frameId!==z.id&&(0,cr.Qs)(e,$,t.state)}));t.state.editingGroupId&&B(F),$=(0,cr.A_)($,F,z)}else if(!z&&t.state.editingGroupId){var Q=Z.filter((function(e){return e.frameId&&!(0,cr.Qs)(e,$,t.state)}));B(Q)}$=(0,cr.Tq)($,t.state,t),t.scene.replaceAllElements($)}}if("frame"===l.type){var U=(0,cr.fj)(t.scene.getElementsIncludingDeleted(),l);t.scene.replaceAllElements((0,cr.A_)(t.scene.getElementsIncludingDeleted(),U,l))}(0,C.DR)(l,(0,W.Qp)(l))}if(c&&t.history.resumeRecording(),c&&(0,W.QD)(c)&&t.scene.replaceAllElements(t.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==c.id}))),e.resize.isResizing){var V,q=(0,cr.Tq)(t.scene.getElementsIncludingDeleted(),t.state,t),X=t.scene.getSelectedElements(t.state).filter((function(e){return"frame"===e.type})),K=Si(X);try{for(K.s();!(V=K.n()).done;){var J=V.value;q=(0,cr.pr)(q,(0,cr.ni)(t.scene.getElementsIncludingDeleted(),J,t.state),J,t.state)}}catch(e){K.e(e)}finally{K.f()}t.scene.replaceAllElements(q)}var ee=e.hit.element;if((null===(r=t.state.selectedLinearElement)||void 0===r?void 0:r.elementId)!==(null==ee?void 0:ee.id)&&(0,Y.bt)(ee)&&1===t.scene.getSelectedElements(t.state).length&&t.setState({selectedLinearElement:new H._(ee,t.scene)}),(0,N.EN)(t.state)){if(0===(0,re.LW)(t.lastPointerDownEvent.clientX,t.lastPointerDownEvent.clientY,t.lastPointerUpEvent.clientX,t.lastPointerUpEvent.clientY)){var te=(0,j.dE)({clientX:t.lastPointerUpEvent.clientX,clientY:t.lastPointerUpEvent.clientY},t.state);t.getElementsAtPosition(te.x,te.y).forEach((function(t){return e.elementIdsToErase[t.id]={erase:!0,opacity:t.opacity}}))}t.eraseElements(e)}else{var ne;Object.keys(e.elementIdsToErase).length&&t.restoreReadyToEraseElements(e),!ee||e.drag.hasOccurred||e.hit.wasAddedToSelection||t.state.editingLinearElement&&e.boxSelection.hasOccurred||(n.shiftKey&&!t.state.editingLinearElement?t.state.selectedElementIds[ee.id]?(0,G.zq)(t.state,ee)?t.setState((function(e){var n,r=Pi({},e.selectedElementIds),i=Si(ee.groupIds.flatMap((function(e){return(0,G.Fb)(t.scene.getNonDeletedElements(),e)})));try{for(i.s();!(n=i.n()).done;)delete r[n.value.id]}catch(e){i.e(e)}finally{i.f()}return{selectedGroupIds:Pi(Pi({},e.selectedElementIds),ee.groupIds.map((function(e){return(0,h.Z)({},e,!1)})).reduce((function(e,t){return Pi(Pi({},e),t)}),{})),selectedElementIds:(0,ur.Oh)(r,e)}})):null!==(ne=t.state.selectedLinearElement)&&void 0!==ne&&ne.isDragging||t.setState((function(e){var n=Pi({},e.selectedElementIds);delete n[ee.id];var r=(0,ie.eD)(t.scene.getNonDeletedElements(),{selectedElementIds:n});return Pi(Pi({},(0,G.bO)({editingGroupId:e.editingGroupId,selectedElementIds:n},t.scene.getNonDeletedElements(),e,t)),{},{selectedLinearElement:1===r.length&&(0,Y.bt)(r[0])?new H._(r[0],t.scene):e.selectedLinearElement})})):ee.frameId&&t.state.selectedElementIds[ee.frameId]?t.setState((function(e){var n,r,i=Pi(Pi({},e.selectedElementIds),{},(0,h.Z)({},ee.id,!0));return delete i[ee.frameId],(null!==(n=null===(r=t.scene.getElement(ee.frameId))||void 0===r?void 0:r.groupIds)&&void 0!==n?n:[]).flatMap((function(e){return(0,G.Fb)(t.scene.getNonDeletedElements(),e)})).forEach((function(e){delete i[e.id]})),Pi(Pi({},(0,G.bO)({editingGroupId:e.editingGroupId,selectedElementIds:i},t.scene.getNonDeletedElements(),e,t)),{},{showHyperlinkPopup:!(!ee.link&&!(0,Y.gs)(ee))&&"info"})})):t.setState((function(e){return{selectedElementIds:(0,ur.Oh)(Pi(Pi({},e.selectedElementIds),{},(0,h.Z)({},ee.id,!0)),e)}})):t.setState((function(e){var n;return Pi(Pi({},(0,G.bO)({editingGroupId:e.editingGroupId,selectedElementIds:(0,h.Z)({},ee.id,!0)},t.scene.getNonDeletedElements(),e,t)),{},{selectedLinearElement:(0,Y.bt)(ee)&&(null===(n=e.selectedLinearElement)||void 0===n?void 0:n.elementId)!==ee.id?new H._(ee,t.scene):e.selectedLinearElement})}))),e.drag.hasOccurred||t.state.isResizing||!(ee&&(0,W.wB)(ee,t.state,t.frameNameBoundsCache,e.origin.x,e.origin.y)||!ee&&e.hit.hasHitCommonBoundingBoxOfSelectedElements)?(!d.locked&&"freedraw"!==d.type&&l&&"selection"!==l.type&&t.setState((function(e){return{selectedElementIds:(0,ur.Oh)(Pi(Pi({},e.selectedElementIds),{},(0,h.Z)({},l.id,!0)),e),showHyperlinkPopup:(0,Y.gs)(l)&&!l.link?"editor":e.showHyperlinkPopup}})),("selection"!==d.type||(0,ie.N)(t.scene.getNonDeletedElements(),t.state))&&t.history.resumeRecording(),(e.drag.hasOccurred||p||f)&&((0,P.N1)(t.state)?P.el:P.H)(t.scene.getSelectedElements(t.state)),"laser"!==d.type?(d.locked||"freedraw"===d.type?t.setState({draggingElement:null,suggestedBindings:[]}):((0,pr.z8)(t.interactiveCanvas),t.setState({draggingElement:null,suggestedBindings:[],activeTool:(0,j.Om)(t.state,{type:"selection"})})),ee&&t.lastPointerUpEvent&&t.lastPointerDownEvent&&t.lastPointerUpEvent.timeStamp-t.lastPointerDownEvent.timeStamp<300&&ao.pointers.size<=1&&(0,Y.gs)(ee)&&t.isEmbeddableCenter(ee,t.lastPointerUpEvent,e.origin.x,e.origin.y)&&t.handleEmbeddableCenterClick(ee)):t.laserPathManager.endPath()):t.state.editingLinearElement?t.setState({editingLinearElement:null}):t.setState({selectedElementIds:(0,ur.Oh)({},t.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}}}))}},{key:"maybeSuggestBindingForAll",value:function(e){if(!(e.length>50)){var t=(0,P.ZB)(e);this.setState({suggestedBindings:t})}}},{key:"clearSelection",value:function(e){this.setState((function(t){return{selectedElementIds:(0,ur.Oh)({},t),activeEmbeddable:null,selectedGroupIds:{},editingGroupId:t.editingGroupId&&null!=e&&(0,G.Nd)(e,t.editingGroupId)?t.editingGroupId:null}})),this.setState({selectedElementIds:(0,ur.Oh)({},this.state),activeEmbeddable:null,previousSelectedElementIds:this.state.selectedElementIds})}},{key:"getTextWysiwygSnappedToCenterPosition",value:function(e,t,n,r){if(r){var i=r.x+r.width/2,o=r.y+r.height/2,a=(0,Te.TP)(r,n);if(a&&(i=a.x,o=a.y),Math.hypot(e-i,t-o)r,isMobile:e.isMobileBreakpoint(n,r)});return i!==o&&(e.device=Pi(Pi({},e.device),{},{viewport:o}),!0)}},this.refreshEditorBreakpoints=function(){var t=e.excalidrawContainerRef.current;if(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height,o=null!=e.props.UIOptions.dockedSidebarBreakpoint?e.props.UIOptions.dockedSidebarBreakpoint:I.sk,a=e.device.editor,s=(0,j.v4)(a,{isMobile:e.isMobileBreakpoint(r,i),canFitSidebar:r>o});return a!==s&&(e.device=Pi(Pi({},e.device),{},{editor:s}),!0)}},this.onResize=(0,j.tH)((function(){e.scene.getElementsIncludingDeleted().forEach((function(e){return Ln.R.delete(e)})),e.refreshViewportBreakpoints(),e.updateDOMRect(),Ui||e.refreshEditorBreakpoints(),e.setState({})})),this.renderInteractiveSceneCallback=function(t){var n=t.atLeastOneVisibleElement,r=t.scrollBars,i=t.elements;r&&(Ki=r);var o=!(0,W.iB)(e.state.editingElement)&&!n&&i.length>0;e.state.scrolledOutside!==o&&e.setState({scrolledOutside:o}),e.scheduleImageRefresh()},this.onScroll=(0,j.Ds)((function(){var t=e.getCanvasOffsets(),n=t.offsetTop,r=t.offsetLeft;e.setState((function(e){return e.offsetLeft===r&&e.offsetTop===n?null:{offsetTop:n,offsetLeft:r}}))}),I.HM),this.onCut=(0,j.tH)((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!(0,j.s)(t.target)&&(e.actionManager.executeAction(O.ZM,"keyboard",t),t.preventDefault(),t.stopPropagation())})),this.onCopy=(0,j.tH)((function(t){var n;(null===(n=e.excalidrawContainerRef.current)||void 0===n?void 0:n.contains(document.activeElement))&&!(0,j.s)(t.target)&&(e.actionManager.executeAction(O.uN,"keyboard",t),t.preventDefault(),t.stopPropagation())})),this.onTouchStart=function(t){if(I.Dt||t.preventDefault(),!Yi)return Yi=!0,clearTimeout(Vi),void(Vi=window.setTimeout(so.resetTapTwice,I.Gj));if(Yi&&1===t.touches.length){var n=t.touches[0];e.handleCanvasDoubleClick({clientX:n.clientX,clientY:n.clientY}),Yi=!1,clearTimeout(Vi)}I.Dt&&t.preventDefault(),2===t.touches.length&&e.setState({selectedElementIds:(0,ur.Oh)({},e.state),activeEmbeddable:null})},this.onTouchEnd=function(t){e.resetContextMenuTimer(),t.touches.length>0?e.setState({previousSelectedElementIds:{},selectedElementIds:(0,ur.Oh)(e.state.previousSelectedElementIds,e.state)}):ao.pointers.clear()},this.pasteFromClipboard=(0,j.tH)(function(){var t=(0,a.Z)(m().mark((function t(n){var r,i,o,a,s,l,c,u,d,p,f,g,v,b,y,x,w;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!!no,a=document.activeElement,s=null===(r=e.excalidrawContainerRef.current)||void 0===r?void 0:r.contains(a),!n||s){t.next=5;break}return t.abrupt("return");case 5:if(l=document.elementFromPoint(e.lastViewportPosition.x,e.lastViewportPosition.y),!n||l instanceof HTMLCanvasElement&&!(0,j.s)(a)){t.next=8;break}return t.abrupt("return");case 8:return c=(0,j.dE)({clientX:e.lastViewportPosition.x,clientY:e.lastViewportPosition.y},e.state),u=c.x,d=c.y,p=null==n||null===(i=n.clipboardData)||void 0===i?void 0:i.files[0],t.next=12,(0,$.mQ)(n,o);case 12:if(f=t.sent,p||o){t.next=19;break}if(!f.mixedContent){t.next=18;break}return t.abrupt("return",e.addElementsFromMixedContentPaste(f.mixedContent,{isPlainPaste:o,sceneX:u,sceneY:d}));case 18:f.text&&(g=f.text.trim()).startsWith("")&&(p=(0,He.Pn)(g));case 19:if(!(0,He.Wr)(p)||f.spreadsheet){t.next=28;break}if(e.isToolSupported("image")){t.next=23;break}return e.setState({errorMessage:(0,E.t)("errors.imageToolNotSupported")}),t.abrupt("return");case 23:return v=e.createImageElement({sceneX:u,sceneY:d}),e.insertImageElement(v,p),e.initializeImageDimensions(v),e.setState({selectedElementIds:(0,ur.Oh)((0,h.Z)({},v.id,!0),e.state)}),t.abrupt("return");case 28:if(!e.props.onPaste){t.next=40;break}return t.prev=29,t.next=32,e.props.onPaste(f,n);case 32:if(t.t0=t.sent,!1!==t.t0){t.next=35;break}return t.abrupt("return");case 35:t.next=40;break;case 37:t.prev=37,t.t1=t.catch(29),console.error(t.t1);case 40:if(!f.errorMessage){t.next=44;break}e.setState({errorMessage:f.errorMessage}),t.next=60;break;case 44:if(!f.spreadsheet||o){t.next=48;break}e.setState({pasteDialog:{data:f.spreadsheet,shown:!0}}),t.next=60;break;case 48:if(!f.elements){t.next=53;break}b=f.programmaticAPI?(0,Zr.w)(f.elements):f.elements,e.addElementsFromPasteOrLibrary({elements:b,files:f.files||null,position:"cursor",retainSeed:o}),t.next=60;break;case 53:if(!f.text){t.next=60;break}if(x=(0,le.eX)(f.text),o||!(0,le.xm)(x,e.props.validateEmbeddable)||!/^(http|https):\/\/[^\s/$.?#].[^\s]*$/.test(x)&&"video"!==(null===(y=(0,le.LM)(x))||void 0===y?void 0:y.type)){t.next=59;break}return(w=e.insertEmbeddableElement({sceneX:u,sceneY:d,link:(0,ir.$u)(x)}))&&e.setState({selectedElementIds:(0,h.Z)({},w.id,!0)}),t.abrupt("return");case 59:e.addTextFromPaste(f.text,o);case 60:e.setActiveTool({type:"selection"}),null==n||n.preventDefault();case 62:case"end":return t.stop()}}),t,null,[[29,37]])})));return function(e){return t.apply(this,arguments)}}()),this.addElementsFromPasteOrLibrary=function(t){var n=(0,Q.ET)(t.elements,null,void 0),a=(0,W.KP)(n),s=(0,i.Z)(a,4),l=s[0],c=s[1],u=s[2],d=s[3],p=(0,j.TE)(l,u)/2,h=(0,j.TE)(c,d)/2,f="object"===(0,r.Z)(t.position)?t.position.clientX:"cursor"===t.position?e.lastViewportPosition.x:e.state.width/2+e.state.offsetLeft,m="object"===(0,r.Z)(t.position)?t.position.clientY:"cursor"===t.position?e.lastViewportPosition.y:e.state.height/2+e.state.offsetTop,g=(0,j.dE)({clientX:f,clientY:m},e.state),v=g.x-p,b=g.y-h,y=(0,re.wC)(v,b,e.state.gridSize),x=(0,i.Z)(y,2),w=x[0],O=x[1],k=(0,U._N)(n.map((function(e){return(0,C.BE)(e,{x:e.x+w-l,y:e.y+O-c})})),{randomizeSeed:!t.retainSeed}),S=[].concat((0,o.Z)(e.scene.getElementsIncludingDeleted()),(0,o.Z)(k));e.scene.replaceAllElements(S),k.forEach((function(e){if((0,W.iB)(e)&&(0,Y.Xh)(e)){var t=(0,Te.tl)(e);(0,W.oN)(e,t)}})),t.files&&(e.files=Pi(Pi({},e.files),t.files)),e.history.resumeRecording();var E=(0,ur.aI)(k);e.setState(Pi(Pi({},e.state),{},{openSidebar:e.state.openSidebar&&e.device.editor.canFitSidebar&&gn.e_.get(mn.t6)?e.state.openSidebar:null},(0,G.bO)({editingGroupId:null,selectedElementIds:E.reduce((function(e,t){return(0,Y.Xh)(t)||(e[t.id]=!0),e}),{})},e.scene.getNonDeletedElements(),e.state,e)),(function(){t.files&&e.addNewImagesToImageCache()})),e.setActiveTool({type:"selection"}),t.fitToContent&&e.scrollToContent(k,{fitToContent:!0})},this.setAppState=function(t,n){e.setState(t,n)},this.removePointer=function(t){Ji&&e.resetContextMenuTimer(),ao.pointers.delete(t.pointerId)},this.toggleLock=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ui";e.state.activeTool.locked||(0,R.L)("toolbar","toggleLock","".concat(t," (").concat(e.device.editor.isMobile?"mobile":"desktop",")")),e.setState((function(t){return{activeTool:Pi(Pi(Pi({},t.activeTool),(0,j.Om)(e.state,t.activeTool.locked?{type:"selection"}:t.activeTool)),{},{locked:!t.activeTool.locked})}}))},this.updateFrameRendering=function(t){e.setState((function(e){var n,r,i,o,a="function"==typeof t?t(e.frameRendering):t;return{frameRendering:{enabled:null!==(n=null==a?void 0:a.enabled)&&void 0!==n?n:e.frameRendering.enabled,clip:null!==(r=null==a?void 0:a.clip)&&void 0!==r?r:e.frameRendering.clip,name:null!==(i=null==a?void 0:a.name)&&void 0!==i?i:e.frameRendering.name,outline:null!==(o=null==a?void 0:a.outline)&&void 0!==o?o:e.frameRendering.outline}}}))},this.togglePenMode=function(t){e.setState((function(e){return{penMode:null!=t?t:!e.penMode,penDetected:!0}}))},this.onHandToolToggle=function(){e.actionManager.executeAction(br.eF)},this.zoomCanvas=function(t){e.setState(Pi({},(0,ae.E)({viewportX:e.state.width/2+e.state.offsetLeft,viewportY:e.state.height/2+e.state.offsetTop,nextZoom:(0,ie.j)(t)},e.state)))},this.cancelInProgresAnimation=null,this.scrollToContent=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.scene.getNonDeletedElements(),r=arguments.length>1?arguments[1]:void 0;null===(t=e.cancelInProgresAnimation)||void 0===t||t.call(e);var i=Array.isArray(n)?n:[n],o=e.state.zoom,a=e.state.scrollX,s=e.state.scrollY;if(null!=r&&r.fitToContent||null!=r&&r.fitToViewport){var l=(0,br.JB)({targetElements:i,appState:e.state,fitToViewport:!(null==r||!r.fitToViewport),viewportZoomFactor:null==r?void 0:r.viewportZoomFactor}).appState;o=l.zoom,a=l.scrollX,s=l.scrollY}else{var c=(0,ie.W)(i,e.state);a=c.scrollX,s=c.scrollY}if(null!=r&&r.animate){var u,d=e.state.scrollX,p=e.state.scrollY,h=e.state.zoom.value,f=(0,j.B4)({fromValues:{scrollX:d,scrollY:p,zoom:h},toValues:{scrollX:a,scrollY:s,zoom:o.value},interpolateValue:function(e,t,n,r){if("zoom"===r)return e*Math.pow(t/e,(0,j.Vv)(n))},onStep:function(t){var n=t.scrollX,r=t.scrollY,i=t.zoom;e.setState({scrollX:n,scrollY:r,zoom:{value:i}})},onStart:function(){e.setState({shouldCacheIgnoreZoom:!0})},onEnd:function(){e.setState({shouldCacheIgnoreZoom:!1})},onCancel:function(){e.setState({shouldCacheIgnoreZoom:!1})},duration:null!==(u=null==r?void 0:r.duration)&&void 0!==u?u:500});e.cancelInProgresAnimation=function(){f(),e.cancelInProgresAnimation=null}}else e.setState({scrollX:a,scrollY:s,zoom:o})},this.translateCanvas=function(t){var n;null===(n=e.cancelInProgresAnimation)||void 0===n||n.call(e),e.setState(t)},this.setToast=function(t){e.setState({toast:t})},this.restoreFileFromShare=(0,a.Z)(m().mark((function t(){var n,r,i,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,caches.open("web-share-target");case 3:return n=t.sent,t.next=6,n.match("shared-file");case 6:if(!(r=t.sent)){t.next=16;break}return t.next=10,r.blob();case 10:return i=t.sent,o=new File([i],i.name||"",{type:i.type}),e.loadFileToCanvas(o,null),t.next=15,n.delete("shared-file");case 15:window.history.replaceState(null,I.iC,window.location.pathname);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(0),e.setState({errorMessage:t.t0.message});case 21:case"end":return t.stop()}}),t,null,[[0,18]])}))),this.addFiles=(0,j.tH)((function(t){var n=t.reduce((function(e,t){return e.set(t.id,t),e}),new Map);e.files=Pi(Pi({},e.files),Object.fromEntries(n)),e.scene.getNonDeletedElements().forEach((function(t){(0,Y.wi)(t)&&n.has(t.fileId)&&(e.imageCache.delete(t.fileId),Ln.R.delete(t))})),e.scene.informMutation(),e.addNewImagesToImageCache()})),this.updateScene=(0,j.tH)((function(t){t.commitToHistory&&e.history.resumeRecording(),t.appState&&e.setState(t.appState),t.elements&&e.scene.replaceAllElements(t.elements),t.collaborators&&e.setState({collaborators:t.collaborators})})),this.onSceneUpdated=function(){e.setState({})},this.toggleSidebar=function(t){var n,r,i=t.name,o=t.tab,a=t.force;return n=void 0===a?(null===(r=e.state.openSidebar)||void 0===r?void 0:r.name)===i?null:i:a?i:null,e.setState({openSidebar:n?{name:n,tab:o}:null}),!!n},this.updateCurrentCursorPosition=(0,j.tH)((function(t){e.lastViewportPosition.x=t.clientX,e.lastViewportPosition.y=t.clientY})),this.onKeyDown=(0,j.tH)((function(t){if("Proxy"in window&&(!t.shiftKey&&/^[A-Z]$/.test(t.key)||t.shiftKey&&/^[a-z]$/.test(t.key))&&(t=new Proxy(t,{get:function(e,n){var r=e[n];return"function"==typeof r?r.bind(e):"key"===n?t.shiftKey?e.key.toUpperCase():e.key.toLowerCase():r}})),t[_.tW.CTRL_OR_CMD]&&t.key.toLowerCase()===_.tW.V&&(no=t.shiftKey,clearTimeout(ro),ro=window.setTimeout((function(){no=!1}),100)),!t[_.tW.CTRL_OR_CMD]||!(0,j.s)(t.target)||t.code!==_.aU.MINUS&&t.code!==_.aU.EQUAL){if(!((0,j.s)(t.target)&&t.key!==_.tW.ESCAPE||(0,_.Wl)(t.key)&&(0,j._Z)(t.target)))if(t.key!==_.tW.QUESTION_MARK){if(t.key.toLowerCase()===_.tW.E&&t.shiftKey&&t[_.tW.CTRL_OR_CMD])return t.preventDefault(),void e.setState({openDialog:"imageExport"});if(t.key===_.tW.PAGE_UP||t.key===_.tW.PAGE_DOWN){var n=(t.shiftKey?e.state.width:e.state.height)/e.state.zoom.value;t.key===_.tW.PAGE_DOWN&&(n=-n),t.shiftKey?e.translateCanvas((function(e){return{scrollX:e.scrollX+n}})):e.translateCanvas((function(e){return{scrollY:e.scrollY+n}}))}if(!e.actionManager.handleKeyDown(t)&&!e.state.viewModeEnabled){if(t[_.tW.CTRL_OR_CMD]&&e.state.isBindingEnabled&&e.setState({isBindingEnabled:!1}),(0,_.Wl)(t.key)){var r=e.state.gridSize&&(t.shiftKey?I.$e:e.state.gridSize)||(t.shiftKey?I.Iw:I.$e),i=0,o=0;t.key===_.tW.ARROW_LEFT?i=-r:t.key===_.tW.ARROW_RIGHT?i=r:t.key===_.tW.ARROW_UP?o=-r:t.key===_.tW.ARROW_DOWN&&(o=r);var a=e.scene.getSelectedElements({selectedElementIds:e.state.selectedElementIds,includeBoundTextElement:!0,includeElementsInFrames:!0});a.forEach((function(e){(0,C.DR)(e,{x:e.x+i,y:e.y+o}),(0,P.Ww)(e,{simultaneouslyUpdated:a})})),e.maybeSuggestBindingForAll(a),t.preventDefault()}else if(t.key===_.tW.ENTER){var s=e.scene.getSelectedElements(e.state);if(1===s.length){var l=s[0];if(t[_.tW.CTRL_OR_CMD])(0,Y.bt)(l)&&(e.state.editingLinearElement&&e.state.editingLinearElement.elementId===s[0].id||(e.history.resumeRecording(),e.setState({editingLinearElement:new H._(l,e.scene)})));else{if((0,W.iB)(l)||(0,Te.Zr)(l)){var c;(0,W.iB)(l)||(c=l);var u=(0,Te.TP)(l,e.state),d=u.x,p=u.y;return e.startTextEditing({sceneX:d,sceneY:p,container:c}),void t.preventDefault()}(0,Y.He)(l)&&e.setState({editingFrame:l.id})}}}else if(!t.ctrlKey&&!t.altKey&&!t.metaKey&&null===e.state.draggingElement){var h=function(e){var t=se.find((function(t,n){return null!=t.numericKey&&e===t.numericKey.toString()||t.key&&("string"==typeof t.key?t.key===e:t.key.includes(e))}));return(null==t?void 0:t.value)||null}(t.key);h?(e.state.activeTool.type!==h&&(0,R.L)("toolbar",h,"keyboard (".concat(e.device.editor.isMobile?"mobile":"desktop",")")),e.setActiveTool({type:h}),t.stopPropagation()):t.key===_.tW.Q&&(e.toggleLock("keyboard"),t.stopPropagation())}if(t.key===_.tW.SPACE&&0===ao.pointers.size&&(qi=!0,(0,pr.KJ)(e.interactiveCanvas,I.oc.GRAB),t.preventDefault()),!(t.key!==_.tW.G&&t.key!==_.tW.S||t.altKey||t[_.tW.CTRL_OR_CMD])){var f=e.scene.getSelectedElements(e.state);if("selection"===e.state.activeTool.type&&!f.length)return;t.key===_.tW.G&&((0,ie.$b)(e.state.activeTool.type)||f.some((function(e){return(0,ie.$b)(e.type)})))&&(e.setState({openPopup:"elementBackground"}),t.stopPropagation()),t.key===_.tW.S&&(e.setState({openPopup:"elementStroke"}),t.stopPropagation())}if(t.key!==_.tW.K||t.altKey||t[_.tW.CTRL_OR_CMD]){!t[_.tW.CTRL_OR_CMD]||t.key!==_.tW.BACKSPACE&&t.key!==_.tW.DELETE||gn.e_.set(yn.w,"clearCanvas");var m=t.key.toLocaleLowerCase(),g=m===_.tW.S&&t.shiftKey,v=t.key===_.tW.I||m===_.tW.G&&t.shiftKey;(g||v)&&e.openEyeDropper({type:g?"stroke":"background"})}else"laser"===e.state.activeTool.type?e.setActiveTool({type:"selection"}):e.setActiveTool({type:"laser"})}}else e.setState({openDialog:"help"})}else t.preventDefault()})),this.onWheel=(0,j.tH)((function(e){e.target instanceof HTMLCanvasElement||!e.ctrlKey||e.preventDefault()})),this.onKeyUp=(0,j.tH)((function(t){if(t.key===_.tW.SPACE&&(e.state.viewModeEnabled?(0,pr.KJ)(e.interactiveCanvas,I.oc.GRAB):"selection"===e.state.activeTool.type?(0,pr.z8)(e.interactiveCanvas):((0,pr.Uk)(e.interactiveCanvas,e.state),e.setState({selectedElementIds:(0,ur.Oh)({},e.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})),qi=!1),t[_.tW.CTRL_OR_CMD]||e.state.isBindingEnabled||e.setState({isBindingEnabled:!0}),(0,_.Wl)(t.key)){var n=e.scene.getSelectedElements(e.state);(0,P.N1)(e.state)?(0,P.el)(n):(0,P.H)(n),e.setState({suggestedBindings:[]})}})),this.isToolSupported=function(t){var n;return!1!==(null===(n=e.props.UIOptions.tools)||void 0===n?void 0:n[t])},this.setActiveTool=function(t){if(e.isToolSupported(t.type)){var n,r=(0,j.Om)(e.state,t);"hand"===r.type?(0,pr.KJ)(e.interactiveCanvas,I.oc.GRAB):qi||(0,pr.Uk)(e.interactiveCanvas,e.state),(0,j.wO)(document.activeElement)&&e.focusContainer(),(0,Y.dt)(r.type)||e.setState({suggestedBindings:[]}),"image"===r.type&&e.onImageAction({insertOnCanvasDirectly:null!==(n="image"===t.type&&t.insertOnCanvasDirectly)&&void 0!==n&&n}),e.setState((function(e){var t={snapLines:e.snapLines.length?[]:e.snapLines,originSnapOffset:null,activeEmbeddable:null};return"selection"!==r.type?Pi(Pi({},e),{},{activeTool:r,selectedElementIds:(0,ur.Oh)({},e),selectedGroupIds:(0,ur.Oh)({},e),editingGroupId:null,multiElement:null},t):Pi(Pi({},e),{},{activeTool:r},t)}))}else console.warn('"'.concat(t.type,'" tool is disabled via "UIOptions.canvasActions.tools.').concat(t.type,'"'))},this.setOpenDialog=function(t){e.setState({openDialog:t})},this.setCursor=function(t){(0,pr.KJ)(e.interactiveCanvas,t)},this.resetCursor=function(){(0,pr.z8)(e.interactiveCanvas)},this.isTouchScreenMultiTouchGesture=function(){return ao.pointers.size>=2},this.onGestureStart=(0,j.tH)((function(t){t.preventDefault(),e.isTouchScreenMultiTouchGesture()&&e.setState({selectedElementIds:(0,ur.Oh)({},e.state),activeEmbeddable:null}),ao.initialScale=e.state.zoom.value})),this.onGestureChange=(0,j.tH)((function(t){if(t.preventDefault(),!e.isTouchScreenMultiTouchGesture()){var n=ao.initialScale;n&&e.setState((function(r){return Pi({},(0,ae.E)({viewportX:e.lastViewportPosition.x,viewportY:e.lastViewportPosition.y,nextZoom:(0,ie.j)(n*t.scale)},r))}))}})),this.onGestureEnd=(0,j.tH)((function(t){t.preventDefault(),e.isTouchScreenMultiTouchGesture()&&e.setState({previousSelectedElementIds:{},selectedElementIds:(0,ur.Oh)(e.state.previousSelectedElementIds,e.state)}),ao.initialScale=null})),this.startTextEditing=function(t){var n,r,i,o,a=t.sceneX,s=t.sceneY,l=t.insertAtParentCenter,c=void 0===l||l,u=t.container,d=!1,p=c&&e.getTextWysiwygSnappedToCenterPosition(a,s,e.state,u);u&&p&&((0,Te.WJ)(u)||(d=!0));var h,f=e.scene.getSelectedElements(e.state),m=(null===(n=h=1===f.length?(0,W.iB)(f[0])?f[0]:u?(0,Te.WJ)(f[0]):e.getTextElementAtPosition(a,s):e.getTextElementAtPosition(a,s))||void 0===n?void 0:n.fontFamily)||e.state.currentItemFontFamily,g=(null===(r=h)||void 0===r?void 0:r.lineHeight)||(0,Te.PT)(m),v=e.state.currentItemFontSize;if(!h&&d&&u&&!(0,Y.Yv)(u)){var b={fontSize:v,fontFamily:m},y=(0,Te.AT)((0,j.mO)(b),g),x=(0,Te.w_)(v,g),w=Math.max(u.height,x),O=Math.max(u.width,y);(0,C.DR)(u,{height:w,width:O}),a=u.x+O/2,s=u.y+w/2,p&&(p=e.getTextWysiwygSnappedToCenterPosition(a,s,e.state,u))}var k=e.getTopLayerFrameAtSceneCoords({x:a,y:s}),S=h||(0,W.VL)({x:p?p.elementCenterX:a,y:p?p.elementCenterY:s,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,text:"",fontSize:v,fontFamily:m,textAlign:p?"center":e.state.currentItemTextAlign,verticalAlign:p?I.oX.MIDDLE:I.hs,containerId:d?null==u?void 0:u.id:void 0,groupIds:null!==(i=null==u?void 0:u.groupIds)&&void 0!==i?i:[],lineHeight:g,angle:null!==(o=null==u?void 0:u.angle)&&void 0!==o?o:0,frameId:k?k.id:null});if(!h&&d&&u&&(0,C.DR)(u,{boundElements:(u.boundElements||[]).concat({type:"text",id:S.id})}),e.setState({editingElement:S}),!h)if(u&&d){var E=e.scene.getElementIndex(u.id);e.scene.insertElementAtIndex(S,E+1)}else e.scene.addNewElement(S);e.setState({editingElement:S}),e.handleTextWysiwyg(S,{isExistingElement:!!h})},this.handleCanvasDoubleClick=function(t){if(!e.state.multiElement&&"selection"===e.state.activeTool.type){var n=e.scene.getSelectedElements(e.state);if(1===n.length&&(0,Y.bt)(n[0])){if(t[_.tW.CTRL_OR_CMD]&&(!e.state.editingLinearElement||e.state.editingLinearElement.elementId!==n[0].id))return e.history.resumeRecording(),void e.setState({editingLinearElement:new H._(n[0],e.scene)});if(e.state.editingLinearElement&&e.state.editingLinearElement.elementId===n[0].id)return}(0,pr.z8)(e.interactiveCanvas);var r=(0,j.dE)(t,e.state),i=r.x,o=r.y;if((0,G.iJ)(e.state).length>0){var a=e.getElementAtPosition(i,o),s=a&&(0,G.YS)(a,e.state.selectedGroupIds);if(s)return void e.setState((function(t){return Pi(Pi({},t),(0,G.bO)({editingGroupId:s,selectedElementIds:(0,h.Z)({},a.id,!0)},e.scene.getNonDeletedElements(),t,e))}))}if((0,pr.z8)(e.interactiveCanvas),!t[_.tW.CTRL_OR_CMD]&&!e.state.viewModeEnabled){var l=e.getElementAtPosition(i,o);if((0,Y.gs)(l))return void e.setState({activeEmbeddable:{element:l,state:"active"}});var c=(0,Te.OW)(e.scene.getNonDeletedElements(),e.state,i,o);if(c&&((0,Y.Xo)(c)||!(0,j.Qm)(c.backgroundColor)||(0,nr.Qu)(c,e.state,e.frameNameBoundsCache,[i,o]))){var u=(0,Te.TP)(c,e.state);i=u.x,o=u.y}e.startTextEditing({sceneX:i,sceneY:o,insertAtParentCenter:!t.altKey,container:c})}}},this.getElementLinkAtPosition=function(t,n){var r=e.scene.getNonDeletedElements().slice().reverse(),i=1/0;return r.find((function(r,o){return n&&r.id===n.id&&(i=o),r.link&&o<=i&&(0,rr.Ni)(r,e.state,[t.x,t.y],e.device.editor.isMobile)}))},this.redirectToLink=function(t,n){var r=(0,re.LW)(e.lastPointerDownEvent.clientX,e.lastPointerDownEvent.clientY,e.lastPointerUpEvent.clientX,e.lastPointerUpEvent.clientY);if(!(!e.hitLinkElement||n&&r>I.f||!n&&0!==r)){var i=(0,j.dE)(e.lastPointerDownEvent,e.state),o=(0,rr.Ni)(e.hitLinkElement,e.state,[i.x,i.y],e.device.editor.isMobile),a=(0,j.dE)(e.lastPointerUpEvent,e.state),s=(0,rr.Ni)(e.hitLinkElement,e.state,[a.x,a.y],e.device.editor.isMobile);if(o&&s){var l,c,u=e.hitLinkElement.link;if(u&&(u=(0,ir.$u)(u),e.props.onLinkOpen&&(c=(0,j.ag)(I.Ks.EXCALIDRAW_LINK,t.nativeEvent),e.props.onLinkOpen(Pi(Pi({},e.hitLinkElement),{},{link:u}),c)),null===(l=c)||void 0===l||!l.defaultPrevented)){var d=(0,ir.q$)(u)?"_self":"_blank",p=window.open(void 0,d);p&&(p.opener=null,p.location=u)}}}},this.getTopLayerFrameAtSceneCoords=function(t){var n=e.scene.getNonDeletedFrames().filter((function(e){return(0,cr.Dn)(t,e)}));return n.length?n[n.length-1]:null},this.handleCanvasPointerMove=function(t){e.savePointer(t.clientX,t.clientY,e.state.cursorButton),ao.pointers.has(t.pointerId)&&ao.pointers.set(t.pointerId,{x:t.clientX,y:t.clientY});var n=ao.initialScale;if(2===ao.pointers.size&&ao.lastCenter&&n&&ao.initialDistance){var r=V(ao.pointers),a=r.x-ao.lastCenter.x,s=r.y-ao.lastCenter.y;ao.lastCenter=r;var l=q(Array.from(ao.pointers.values())),c="freedraw"===e.state.activeTool.type&&e.state.penMode?1:l/ao.initialDistance,u=c?(0,ie.j)(n*c):e.state.zoom.value;e.setState((function(t){var n=(0,ae.E)({viewportX:r.x,viewportY:r.y,nextZoom:u},t);e.translateCanvas({zoom:n.zoom,scrollX:n.scrollX+a/u,scrollY:n.scrollY+s/u,shouldCacheIgnoreZoom:!0})})),e.resetShouldCacheIgnoreZoomDebounced()}else ao.lastCenter=ao.initialDistance=ao.initialScale=null;if(!(qi||Xi||Gi||(0,N.l$)(e.state))){var d=(0,ie._4)(Ki,t.clientX-e.state.offsetLeft,t.clientY-e.state.offsetTop).isOverEither;e.state.draggingElement||e.state.multiElement||(d?(0,pr.z8)(e.interactiveCanvas):(0,pr.Uk)(e.interactiveCanvas,e.state));var p,h=(0,j.dE)(t,e.state),f=h.x,m=h.y;if(e.state.draggingElement||"rectangle"!==(p=e.state.activeTool.type)&&"ellipse"!==p&&"diamond"!==p&&"frame"!==p&&"image"!==p)e.state.draggingElement||e.setState({snapLines:[]});else{var g=function(e,t,n,r){if(!_r({event:r,selectedElements:[],appState:t}))return{originOffset:{x:0,y:0},snapLines:[]};var i,o=(0,ur.CF)(e,[],t),a=Sr(t.zoom.value),s={x:a,y:a},l=[],c=[],u=Or(o);try{for(u.s();!(i=u.n()).done;){var d,p=i.value,h=Or(Cr([p]));try{for(h.s();!(d=h.n()).done;){var f=d.value,m=f[0]-n.x;Math.abs(m)<=Math.abs(s.x)&&(Math.abs(m)0?c[0].points[0][0]-n.x:0,y:l.length>0?l[0].points[0][1]-n.y:0},snapLines:[].concat(c,l)}}(e.scene.getNonDeletedElements(),e.state,{x:f,y:m},t),v=g.originOffset,y=g.snapLines;e.setState({snapLines:y,originSnapOffset:v})}if(e.state.editingLinearElement&&!e.state.editingLinearElement.isDragging){var x=H._.handlePointerMove(t,f,m,e.state);x&&x!==e.state.editingLinearElement&&(0,b.flushSync)((function(){e.setState({editingLinearElement:x})})),null!=(null==x?void 0:x.lastUncommittedPoint)?e.maybeSuggestBindingAtCursor(h):(0,b.flushSync)((function(){e.setState({suggestedBindings:[]})}))}if((0,Y.Lx)(e.state.activeTool.type)){var w=e.state.draggingElement;(0,Y.Mn)(w,!1)?e.maybeSuggestBindingsForLinearElementAtCoords(w,[h],e.state.startBoundElement):e.maybeSuggestBindingAtCursor(h)}if(e.state.multiElement){var O=e.state.multiElement,k=O.x,S=O.y,E=O.points,P=O.lastCommittedPoint,T=E[E.length-1];if((0,pr.Uk)(e.interactiveCanvas,e.state),T===P)(0,re.LW)(f-k,m-S,T[0],T[1])>=I.qx?(0,C.DR)(O,{points:[].concat((0,o.Z)(E),[[f-k,m-S]])}):(0,pr.KJ)(e.interactiveCanvas,I.oc.POINTER);else if(E.length>2&&P&&(0,re.LW)(f-k,m-S,P[0],P[1])1&&!d){var K=(0,W.n2)((0,W.KP)(G),f,m,e.state.zoom,t.pointerType);if(K)return void(0,pr.KJ)(e.interactiveCanvas,(0,W.Un)({transformHandleType:K}))}}else{var J=(0,W.jt)(X,e.state,f,m,e.state.zoom,t.pointerType);if(J&&J.transformHandleType)return void(0,pr.KJ)(e.interactiveCanvas,(0,W.Un)(J))}var ee=e.getElementAtPosition(h.x,h.y);if(e.hitLinkElement=e.getElementLinkAtPosition(h,ee),!(0,N.EN)(e.state))if(e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id])(0,pr.KJ)(e.interactiveCanvas,I.oc.POINTER),(0,rr.Pp)(e.hitLinkElement,e.state);else if((0,rr.lV)(),ee&&(ee.link||(0,Y.gs)(ee))&&e.state.selectedElementIds[ee.id]&&!e.state.contextMenu&&!e.state.showHyperlinkPopup)e.setState({showHyperlinkPopup:"info"});else if("text"===e.state.activeTool.type)(0,pr.KJ)(e.interactiveCanvas,(0,W.iB)(ee)?I.oc.TEXT:I.oc.CROSSHAIR);else if(e.state.viewModeEnabled)(0,pr.KJ)(e.interactiveCanvas,I.oc.GRAB);else if(d)(0,pr.KJ)(e.interactiveCanvas,I.oc.AUTO);else if(e.state.selectedLinearElement)e.handleHoverSelectedLinearElement(e.state.selectedLinearElement,f,m);else if(t[_.tW.CTRL_OR_CMD])(0,pr.KJ)(e.interactiveCanvas,I.oc.AUTO);else{var te;!ee&&!e.isHittingCommonBoundingBoxOfSelectedElements(h,G)||null!=ee&&ee.locked||(ee&&(0,Y.gs)(ee)&&e.isEmbeddableCenter(ee,t,f,m)?((0,pr.KJ)(e.interactiveCanvas,I.oc.POINTER),e.setState({activeEmbeddable:{element:ee,state:"hover"}})):((0,pr.KJ)(e.interactiveCanvas,I.oc.MOVE),"hover"===(null===(te=e.state.activeEmbeddable)||void 0===te?void 0:te.state)&&e.setState({activeEmbeddable:null})))}}}},this.handleEraser=function(t,n,r){for(var i=function(e){e.forEach((function(e){e.locked||(o.push(e.id),t.altKey?n.elementIdsToErase[e.id]&&n.elementIdsToErase[e.id].erase&&(n.elementIdsToErase[e.id].erase=!1):n.elementIdsToErase[e.id]||(n.elementIdsToErase[e.id]={erase:!0,opacity:e.opacity}))}))},o=[],a=(0,re.LW)(n.lastCoords.x,n.lastCoords.y,r.x,r.y),s=10/e.state.zoom.value,l=Pi({},n.lastCoords),c=0;c<=a&&(i(e.getElementsAtPosition(l.x,l.y)),c!==a);){var u=(c=Math.min(c+s,a))/a,d=(1-u)*l.x+u*r.x,p=(1-u)*l.y+u*r.y;l.x=d,l.y=p}var h=e.scene.getElementsIncludingDeleted().map((function(e){var r=(0,Y.Xh)(e)&&o.includes(e.containerId)?e.containerId:e.id;if(o.includes(r)){if(!t.altKey)return(0,C.BE)(e,{opacity:I.xY});if(n.elementIdsToErase[r]&&!1===n.elementIdsToErase[r].erase)return(0,C.BE)(e,{opacity:n.elementIdsToErase[r].opacity})}return e}));e.scene.replaceAllElements(h),n.lastCoords.x=r.x,n.lastCoords.y=r.y},this.handleTouchMove=function(e){eo=!0},this.handleCanvasPointerDown=function(t){var n,r;if(e.state.contextMenu&&e.setState({contextMenu:null}),e.state.snapLines&&e.setAppState({snapLines:[]}),e.updateGestureOnPointerDown(t),"touch"===t.pointerType&&e.state.draggingElement&&"freedraw"===e.state.draggingElement.type){var i=e.state.draggingElement;e.updateScene(Pi(Pi({},i.points.length<10?{elements:e.scene.getElementsIncludingDeleted().filter((function(e){return e.id!==i.id}))}:{}),{},{appState:{draggingElement:null,editingElement:null,startBoundElement:null,suggestedBindings:[],selectedElementIds:(0,ur.Oh)(Object.keys(e.state.selectedElementIds).filter((function(e){return e!==i.id})).reduce((function(t,n){return t[n]=e.state.selectedElementIds[n],t}),{}),e.state)}}))}else{var o=document.getSelection();if(null!=o&&o.anchorNode&&o.removeAllRanges(),e.maybeOpenContextMenuAfterPointerDownOnTouchDevices(t),e.maybeCleanupAfterMissingPointerUp(t),e.state.penDetected||"pen"!==t.pointerType||e.setState((function(e){return{penMode:!0,penDetected:!0}})),!e.device.isTouchScreen&&["pen","touch"].includes(t.pointerType)&&(e.device=(0,j.v4)(e.device,{isTouchScreen:!0})),!(Xi||(e.lastPointerDownEvent=t,e.handleCanvasPanUsingWheelOrSpaceDrag(t)||(e.setState({lastPointerDownWith:t.pointerType,cursorButton:"down"}),e.savePointer(t.clientX,t.clientY,"down"),t.button!==I.Oh.MAIN&&t.button!==I.Oh.TOUCH||ao.pointers.size>1)))){var a=e.initialPointerDownState(t);if(e.setState({selectedElementsAreBeingDragged:!1}),!(e.handleDraggingScrollBar(t,a)||(e.clearSelectionIfNotUsingSelection(),e.updateBindingEnabledOnPointerMove(t),e.handleSelectionOnPointerDown(t,a)||e.state.penMode&&"touch"===t.pointerType&&"selection"!==e.state.activeTool.type&&"text"!==e.state.activeTool.type&&"image"!==e.state.activeTool.type)))if("text"!==e.state.activeTool.type){if("arrow"===e.state.activeTool.type||"line"===e.state.activeTool.type)e.handleLinearElementOnPointerDown(t,e.state.activeTool.type,a);else if("image"===e.state.activeTool.type){(0,pr.KJ)(e.interactiveCanvas,I.oc.CROSSHAIR);var s=e.state.pendingImageElementId&&e.scene.getElement(e.state.pendingImageElementId);if(!s)return;e.setState({draggingElement:s,editingElement:s,pendingImageElementId:null,multiElement:null});var l=(0,j.dE)(t,e.state),c=l.x,u=l.y,d=e.getTopLayerFrameAtSceneCoords({x:c,y:u});(0,C.DR)(s,{x:c,y:u,frameId:d?d.id:null})}else"freedraw"===e.state.activeTool.type?e.handleFreeDrawElementOnPointerDown(t,e.state.activeTool.type,a):"custom"===e.state.activeTool.type?(0,pr.Uk)(e.interactiveCanvas,e.state):"frame"===e.state.activeTool.type?e.createFrameElementOnPointerDown(a):"laser"===e.state.activeTool.type?e.laserPathManager.startPath(a.lastCoords.x,a.lastCoords.y):"eraser"!==e.state.activeTool.type&&"hand"!==e.state.activeTool.type&&e.createGenericElementOnPointerDown(e.state.activeTool.type,a);null===(n=e.props)||void 0===n||null===(r=n.onPointerDown)||void 0===r||r.call(n,e.state.activeTool,a),e.onPointerDownEmitter.trigger(e.state.activeTool,a,t);var p=e.onPointerMoveFromPointerDownHandler(a),h=e.onPointerUpFromPointerDownHandler(a),f=e.onKeyDownFromPointerDownHandler(a),m=e.onKeyUpFromPointerDownHandler(a);oo=h,e.state.viewModeEnabled&&"laser"!==e.state.activeTool.type||(window.addEventListener(I.Ks.POINTER_MOVE,p),window.addEventListener(I.Ks.POINTER_UP,h),window.addEventListener(I.Ks.KEYDOWN,f),window.addEventListener(I.Ks.KEYUP,m),a.eventListeners.onMove=p,a.eventListeners.onUp=h,a.eventListeners.onKeyUp=m,a.eventListeners.onKeyDown=f)}else e.handleTextOnPointerDown(t,a)}}},this.handleCanvasPointerUp=function(t){var n,r;e.removePointer(t),e.lastPointerUpEvent=t;var i=(0,j.dE)({clientX:t.clientX,clientY:t.clientY},e.state),o=t.timeStamp-(null!==(n=null===(r=e.lastPointerDownEvent)||void 0===r?void 0:r.timeStamp)&&void 0!==n?n:0);if(e.device.editor.isMobile&&o<300){var a=e.getElementAtPosition(i.x,i.y);if((0,Y.gs)(a)&&e.isEmbeddableCenter(a,t,i.x,i.y))return void e.handleEmbeddableCenterClick(a)}if(e.device.isTouchScreen){var s=e.getElementAtPosition(i.x,i.y);e.hitLinkElement=e.getElementLinkAtPosition(i,s)}e.hitLinkElement&&!e.state.selectedElementIds[e.hitLinkElement.id]?o<300&&"embeddable"===e.hitLinkElement.type&&!(0,rr.wq)(e.hitLinkElement,e.state,[i.x,i.y])?e.handleEmbeddableCenterClick(e.hitLinkElement):e.redirectToLink(t,e.device.isTouchScreen):e.state.viewModeEnabled&&e.setState({activeEmbeddable:null,selectedElementIds:{}})},this.maybeOpenContextMenuAfterPointerDownOnTouchDevices=function(t){"touch"===t.pointerType&&(eo=!1,Ji?eo=!0:Ji=window.setTimeout((function(){Ji=0,eo||e.handleCanvasContextMenu(t)}),I.nM))},this.resetContextMenuTimer=function(){clearTimeout(Ji),Ji=0,eo=!1},this.handleCanvasPanUsingWheelOrSpaceDrag=function(t){if(!(ao.pointers.size<=1&&(t.button===I.Oh.WHEEL||t.button===I.Oh.MAIN&&qi||(0,N.l$)(e.state)||e.state.viewModeEnabled))||(0,W.iB)(e.state.editingElement))return!1;Xi=!0,t.preventDefault();var n=!1,r=/Linux/.test(window.navigator.platform);(0,pr.KJ)(e.interactiveCanvas,I.oc.GRABBING);var i=t.clientX,o=t.clientY,a=(0,j.$9)((function(t){var a=i-t.clientX,s=o-t.clientY;if(i=t.clientX,o=t.clientY,r&&!n&&(Math.abs(a)>1||Math.abs(s)>1)){n=!0;var l=function e(t){document.body.removeEventListener(I.Ks.PASTE,e),t.stopPropagation()};document.body.addEventListener(I.Ks.PASTE,l),window.addEventListener(I.Ks.POINTER_UP,(function e(){setTimeout((function(){document.body.removeEventListener(I.Ks.PASTE,l),window.removeEventListener(I.Ks.POINTER_UP,e)}),100)}))}e.translateCanvas({scrollX:e.state.scrollX-a/e.state.zoom.value,scrollY:e.state.scrollY-s/e.state.zoom.value})})),s=(0,j.tH)(oo=function(){oo=null,Xi=!1,qi||(e.state.viewModeEnabled?(0,pr.KJ)(e.interactiveCanvas,I.oc.GRAB):(0,pr.Uk)(e.interactiveCanvas,e.state)),e.setState({cursorButton:"up"}),e.savePointer(t.clientX,t.clientY,"up"),window.removeEventListener(I.Ks.POINTER_MOVE,a),window.removeEventListener(I.Ks.POINTER_UP,s),window.removeEventListener(I.Ks.BLUR,s),a.flush()});return window.addEventListener(I.Ks.BLUR,s),window.addEventListener(I.Ks.POINTER_MOVE,a,{passive:!0}),window.addEventListener(I.Ks.POINTER_UP,s),!0},this.clearSelectionIfNotUsingSelection=function(){"selection"!==e.state.activeTool.type&&e.setState({selectedElementIds:(0,ur.Oh)({},e.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})},this.handleSelectionOnPointerDown=function(t,n){if("selection"===e.state.activeTool.type){var r=e.scene.getNonDeletedElements(),i=e.scene.getSelectedElements(e.state);if(1!==i.length||e.state.editingLinearElement)i.length>1&&(n.resize.handleType=(0,W.n2)((0,W.KP)(i),n.origin.x,n.origin.y,e.state.zoom,t.pointerType));else{var o=(0,W.jt)(r,e.state,n.origin.x,n.origin.y,e.state.zoom,t.pointerType);null!=o&&(e.setState({resizingElement:o.element}),n.resize.handleType=o.transformHandleType)}if(n.resize.handleType)n.resize.isResizing=!0,n.resize.offset=(0,j.AK)((0,W.xx)(n.resize.handleType,i,n.origin.x,n.origin.y)),1===i.length&&(0,Y.bt)(i[0])&&2===i[0].points.length&&(n.resize.arrowDirection=(0,W.T)(n.resize.handleType,i[0]));else{var a;if(e.state.selectedLinearElement){var s=e.state.editingLinearElement||e.state.selectedLinearElement,l=H._.handlePointerDown(t,e.state,e.history,n.origin,s);if(l.hitElement&&(n.hit.element=l.hitElement),l.linearElementEditor&&(e.setState({selectedLinearElement:l.linearElementEditor}),e.state.editingLinearElement&&e.setState({editingLinearElement:l.linearElementEditor})),l.didAddPoint)return!0}if(n.hit.element=null!==(a=n.hit.element)&&void 0!==a?a:e.getElementAtPosition(n.origin.x,n.origin.y),n.hit.element&&e.getElementLinkAtPosition({x:n.origin.x,y:n.origin.y},n.hit.element))return!1;n.hit.allHitElements=e.getElementsAtPosition(n.origin.x,n.origin.y);var c=n.hit.element,u=n.hit.allHitElements.some((function(t){return e.isASelectedElement(t)}));if(null!==c&&u||t.shiftKey||n.hit.hasHitCommonBoundingBoxOfSelectedElements||e.clearSelection(c),e.state.editingLinearElement)e.setState({selectedElementIds:(0,ur.Oh)((0,h.Z)({},e.state.editingLinearElement.elementId,!0),e.state)});else if(null!=c){if(t[_.tW.CTRL_OR_CMD])return e.state.selectedElementIds[c.id]||(n.hit.wasAddedToSelection=!0),e.setState((function(t){return Pi(Pi({},(0,G.iE)(t,c)),{},{previousSelectedElementIds:e.state.selectedElementIds})})),!1;e.state.selectedElementIds[c.id]||(e.state.editingGroupId&&!(0,G.Nd)(c,e.state.editingGroupId)&&e.setState({selectedElementIds:(0,ur.Oh)({},e.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null}),u||n.hit.hasHitCommonBoundingBoxOfSelectedElements||(e.setState((function(t){var n=Pi(Pi({},t.selectedElementIds),{},(0,h.Z)({},c.id,!0)),r=[];if(Object.keys(t.selectedElementIds).forEach((function(t){var n=e.scene.getElement(t);n&&r.push(n)})),"frame"===c.type)(0,cr.zD)(r,c.id).forEach((function(e){delete n[e.id]}));else if(c.frameId)n[c.frameId]&&delete n[c.id];else{var i=c.groupIds,o=new Set(i.flatMap((function(t){return(0,G.Fb)(e.scene.getNonDeletedElements(),t)})).filter((function(e){return"frame"===e.type})).map((function(e){return e.id})));o.size>0&&r.forEach((function(t){t.frameId&&o.has(t.frameId)&&(delete n[t.id],t.groupIds.flatMap((function(t){return(0,G.Fb)(e.scene.getNonDeletedElements(),t)})).forEach((function(e){delete n[e.id]})))}))}return Pi(Pi({},(0,G.bO)({editingGroupId:t.editingGroupId,selectedElementIds:n},e.scene.getNonDeletedElements(),t,e)),{},{showHyperlinkPopup:!(!c.link&&!(0,Y.gs)(c))&&"info"})})),n.hit.wasAddedToSelection=!0))}e.setState({previousSelectedElementIds:e.state.selectedElementIds})}}return!1},this.handleTextOnPointerDown=function(t,n){if(!(0,W.iB)(e.state.editingElement)){var r=n.origin.x,i=n.origin.y,o=e.getElementAtPosition(r,i,{includeBoundTextElement:!0}),a=(0,Te.OW)(e.scene.getNonDeletedElements(),e.state,r,i);(0,Y.Xo)(o)&&(a=o,r=o.x+o.width/2,i=o.y+o.height/2),e.startTextEditing({sceneX:r,sceneY:i,insertAtParentCenter:!t.altKey,container:a}),(0,pr.z8)(e.interactiveCanvas),e.state.activeTool.locked||e.setState({activeTool:(0,j.Om)(e.state,{type:"selection"})})}},this.handleFreeDrawElementOnPointerDown=function(t,n,r){var a=(0,re.wC)(r.origin.x,r.origin.y,null),s=(0,i.Z)(a,2),l=s[0],c=s[1],u=e.getTopLayerFrameAtSceneCoords({x:l,y:c}),d=(0,U.KE)({type:n,x:l,y:c,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,opacity:e.state.currentItemOpacity,roundness:null,simulatePressure:.5===t.pressure,locked:!1,frameId:u?u.id:null});e.setState((function(e){var t=Pi({},e.selectedElementIds);return delete t[d.id],{selectedElementIds:(0,ur.Oh)(t,e)}}));var p=d.simulatePressure?d.pressures:[].concat((0,o.Z)(d.pressures),[t.pressure]);(0,C.DR)(d,{points:[[0,0]],pressures:p});var h=(0,P.Y9)(r.origin,e.scene);e.scene.addNewElement(d),e.setState({draggingElement:d,editingElement:d,startBoundElement:h,suggestedBindings:[]})},this.insertEmbeddableElement=function(t){var n,r=t.sceneX,a=t.sceneY,s=t.link,l=(0,re.wC)(r,a,null!==(n=e.lastPointerDownEvent)&&void 0!==n&&n[_.tW.CTRL_OR_CMD]?null:e.state.gridSize),c=(0,i.Z)(l,2),u=c[0],d=c[1],p=(0,le.LM)(s);if(p){p.warning&&e.setToast({message:p.warning,closable:!0});var h=(0,U.M)({type:"embeddable",x:u,y:d,strokeColor:"transparent",backgroundColor:"transparent",fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,roundness:e.getCurrentItemRoundness("embeddable"),opacity:e.state.currentItemOpacity,locked:!1,width:p.aspectRatio.w,height:p.aspectRatio.h,link:s,validated:null});return e.scene.replaceAllElements([].concat((0,o.Z)(e.scene.getElementsIncludingDeleted()),[h])),h}},this.createImageElement=function(t){var n,r=t.sceneX,o=t.sceneY,a=t.addToFrameUnderCursor,s=void 0===a||a,l=(0,re.wC)(r,o,null!==(n=e.lastPointerDownEvent)&&void 0!==n&&n[_.tW.CTRL_OR_CMD]?null:e.state.gridSize),c=(0,i.Z)(l,2),u=c[0],d=c[1],p=s?e.getTopLayerFrameAtSceneCoords({x:u,y:d}):null;return(0,W.vw)({type:"image",x:u,y:d,strokeColor:e.state.currentItemStrokeColor,backgroundColor:e.state.currentItemBackgroundColor,fillStyle:e.state.currentItemFillStyle,strokeWidth:e.state.currentItemStrokeWidth,strokeStyle:e.state.currentItemStrokeStyle,roughness:e.state.currentItemRoughness,roundness:null,opacity:e.state.currentItemOpacity,locked:!1,frameId:p?p.id:null})},this.handleLinearElementOnPointerDown=function(t,n,r){if(e.state.multiElement){var a=e.state.multiElement;if("line"===a.type&&(0,re.g6)(a.points,e.state.zoom.value))return(0,C.DR)(a,{lastCommittedPoint:a.points[a.points.length-1]}),void e.actionManager.executeAction(O.pL);var s=a.x,l=a.y,c=a.lastCommittedPoint;if(a.points.length>1&&c&&(0,re.LW)(r.origin.x-s,r.origin.y-l,c[0],c[1])I.$n)){t.next=42;break}throw new Error((0,E.t)("errors.fileTooBig",{maxSize:"".concat(Math.trunc(I.$n/1024/1024),"MB")}));case 42:if(u&&(v=null===(g=e.files[p])||void 0===g?void 0:g.dataURL,b=v&&(0,He.KG)(v),e.setImagePreviewCursor(b||s)),t.t7=null===(o=e.files[p])||void 0===o?void 0:o.dataURL,t.t7){t.next=48;break}return t.next=47,(0,He.Sf)(s);case 47:t.t7=t.sent;case 48:return y=t.t7,x=(0,C.DR)(l,{fileId:p},!1),t.abrupt("return",new Promise(function(){var t=(0,a.Z)(m().mark((function t(n,r){var i,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.files=Pi(Pi({},e.files),{},(0,h.Z)({},p,{mimeType:d,id:p,dataURL:y,created:Date.now(),lastRetrieved:Date.now()})),o=e.imageCache.get(p)){t.next=7;break}return e.addNewImagesToImageCache(),t.next=7,e.updateImageCache([x]);case 7:if(!((null==o?void 0:o.image)instanceof Promise)){t.next=10;break}return t.next=10,o.image;case 10:e.state.pendingImageElementId!==x.id&&(null===(i=e.state.draggingElement)||void 0===i?void 0:i.id)!==x.id&&e.initializeImageDimensions(x,!0),n(x),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(0),console.error(t.t0),r(new Error((0,E.t)("errors.imageInsertError")));case 18:return t.prev=18,u||(0,pr.z8)(e.interactiveCanvas),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[0,14,18,21]])})));return function(e,n){return t.apply(this,arguments)}}()));case 51:case"end":return t.stop()}}),t,null,[[6,19],[31,37]])})));return function(e){return t.apply(this,arguments)}}(),this.insertImageElement=function(){var t=(0,a.Z)(m().mark((function t(n,r,i){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isToolSupported("image")){t.next=3;break}return e.setState({errorMessage:(0,E.t)("errors.imageToolNotSupported")}),t.abrupt("return");case 3:return e.scene.addNewElement(n),t.prev=4,t.next=7,e.initializeImage({imageFile:r,imageElement:n,showCursorImagePreview:i});case 7:return t.abrupt("return",t.sent);case 10:return t.prev=10,t.t0=t.catch(4),(0,C.DR)(n,{isDeleted:!0}),e.actionManager.executeAction(O.pL),e.setState({errorMessage:t.t0.message||(0,E.t)("errors.imageInsertError")}),t.abrupt("return",null);case 16:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(e,n,r){return t.apply(this,arguments)}}(),this.setImagePreviewCursor=function(){var t=(0,a.Z)(m().mark((function t(n){var r,i,o,a,s,l,c;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=96,t.next=3,(0,He.Tu)(n,{maxWidthOrHeight:r});case 3:return i=t.sent,t.next=6,(0,He.Sf)(i);case 6:if(o=t.sent,n.type!==I.LO.svg){t.next=20;break}return t.next=10,(0,Jn.PK)(o);case 10:a=t.sent,s=Math.min(a.height,r),(l=s*(a.width/a.height))>r&&(s=(l=r)*(a.height/a.width)),(c=document.createElement("canvas")).height=s,c.width=l,c.getContext("2d").drawImage(a,0,0,l,s),o=c.toDataURL(I.LO.svg);case 20:e.state.pendingImageElementId&&(0,pr.KJ)(e.interactiveCanvas,"url(".concat(o,") 4 4, auto"));case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.onImageAction=function(){var t=(0,a.Z)(m().mark((function t(n){var r,i,o,a,s,l,c,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.insertOnCanvasDirectly,t.prev=1,i=e.state.width/2+e.state.offsetLeft,o=e.state.height/2+e.state.offsetTop,a=(0,j.dE)({clientX:i,clientY:o},e.state),s=a.x,l=a.y,t.next=7,(0,Ue.I$)({description:"Image",extensions:Object.keys(I.KL)});case 7:c=t.sent,u=e.createImageElement({sceneX:s,sceneY:l,addToFrameUnderCursor:!1}),r?(e.insertImageElement(u,c),e.initializeImageDimensions(u),e.setState({selectedElementIds:(0,ur.Oh)((0,h.Z)({},u.id,!0),e.state)},(function(){e.actionManager.executeAction(O.pL)}))):e.setState({pendingImageElementId:u.id},(function(){e.insertImageElement(u,c,!0)})),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(1),"AbortError"!==t.t0.name?console.error(t.t0):console.warn(t.t0),e.setState({pendingImageElementId:null,editingElement:null,activeTool:(0,j.Om)(e.state,{type:"selection"})},(function(){e.actionManager.executeAction(O.pL)}));case 16:case"end":return t.stop()}}),t,null,[[1,12]])})));return function(e){return t.apply(this,arguments)}}(),this.initializeImageDimensions=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,Y.wi)(t)&&(null===(n=e.imageCache.get(t.fileId))||void 0===n?void 0:n.image);if(!i||i instanceof Promise){if(t.width1&&void 0!==u[1]?u[1]:e.files,t.next=3,(0,Jn.Xx)({imageCache:e.imageCache,fileIds:n.map((function(e){return e.fileId})),files:r});case 3:if(i=t.sent,o=i.updatedFiles,a=i.erroredFiles,o.size||a.size){s=Si(n);try{for(s.s();!(l=s.n()).done;)c=l.value,o.has(c.fileId)&&Ln.R.delete(c)}catch(e){s.e(e)}finally{s.f()}}return a.size&&e.scene.replaceAllElements(e.scene.getElementsIncludingDeleted().map((function(e){return(0,Y.wi)(e)&&a.has(e.fileId)?(0,C.BE)(e,{status:"error"}):e}))),t.abrupt("return",{updatedFiles:o,erroredFiles:a});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.addNewImagesToImageCache=(0,a.Z)(m().mark((function t(){var n,r,i,o=arguments;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=o.length>0&&void 0!==o[0]?o[0]:(0,Jn.oA)(e.scene.getNonDeletedElements()),r=o.length>1&&void 0!==o[1]?o[1]:e.files,!(i=n.filter((function(t){return!t.isDeleted&&!e.imageCache.has(t.fileId)}))).length){t.next=9;break}return t.next=6,e.updateImageCache(i,r);case 6:t.sent.updatedFiles.size&&e.scene.informMutation();case 9:case"end":return t.stop()}}),t)}))),this.scheduleImageRefresh=tr()((function(){e.addNewImagesToImageCache()}),I.LL),this.updateBindingEnabledOnPointerMove=function(t){var n=(0,P.cz)(t);e.state.isBindingEnabled!==n&&e.setState({isBindingEnabled:n})},this.maybeSuggestBindingAtCursor=function(t){var n=(0,P.Y9)(t,e.scene);e.setState({suggestedBindings:null!=n?[n]:[]})},this.maybeSuggestBindingsForLinearElementAtCoords=function(t,n,r){if(n.length){var i=n.reduce((function(n,i){var o=(0,P.Y9)(i,e.scene);return null==o||(0,P.DK)(t,null==r?void 0:r.id,o)||n.push(o),n}),[]);e.setState({suggestedBindings:i})}},this.handleInteractiveCanvasRef=function(t){var n,r,i;null!==t?(e.interactiveCanvas=t,e.interactiveCanvas.addEventListener(I.Ks.WHEEL,e.handleWheel),e.interactiveCanvas.addEventListener(I.Ks.TOUCH_START,e.onTouchStart),e.interactiveCanvas.addEventListener(I.Ks.TOUCH_END,e.onTouchEnd)):(null===(n=e.interactiveCanvas)||void 0===n||n.removeEventListener(I.Ks.WHEEL,e.handleWheel),null===(r=e.interactiveCanvas)||void 0===r||r.removeEventListener(I.Ks.TOUCH_START,e.onTouchStart),null===(i=e.interactiveCanvas)||void 0===i||i.removeEventListener(I.Ks.TOUCH_END,e.onTouchEnd))},this.handleAppOnDrop=function(){var t=(0,a.Z)(m().mark((function t(n){var r,i,o,a,s,l,c,u,d,p,f,g,v,b,y,x;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,He.bv)(n);case 2:if(o=t.sent,a=o.file,s=o.fileHandle,l=(0,j.dE)(n,e.state),c=l.x,u=l.y,t.prev=6,!(0,He.Wr)(a)||!e.isToolSupported("image")){t.next=26;break}if((null==a?void 0:a.type)!==I.LO.png&&(null==a?void 0:a.type)!==I.LO.svg){t.next=21;break}return t.prev=9,t.next=12,(0,B.cT)(a,e.state,e.scene.getElementsIncludingDeleted(),s);case 12:return d=t.sent,e.syncActionResult(Pi(Pi({},d),{},{appState:Pi(Pi({},d.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.abrupt("return");case 17:if(t.prev=17,t.t0=t.catch(9),"EncodingError"===t.t0.name){t.next=21;break}throw t.t0;case 21:return p=e.createImageElement({sceneX:c,sceneY:u}),e.insertImageElement(p,a),e.initializeImageDimensions(p),e.setState({selectedElementIds:(0,ur.Oh)((0,h.Z)({},p.id,!0),e.state)}),t.abrupt("return");case 26:t.next=31;break;case 28:return t.prev=28,t.t1=t.catch(6),t.abrupt("return",e.setState({isLoading:!1,errorMessage:t.t1.message}));case 31:if(!(f=n.dataTransfer.getData(I.LO.excalidrawlib))||"string"!=typeof f){t.next=35;break}try{g=(0,He.wf)(f),e.addElementsFromPasteOrLibrary({elements:(0,F.WV)(g),position:n,files:null})}catch(t){e.setState({errorMessage:t.message})}return t.abrupt("return");case 35:if(!a){t.next=38;break}return t.next=38,e.loadFileToCanvas(a,s);case 38:null!==(r=n.dataTransfer)&&void 0!==r&&null!==(i=r.types)&&void 0!==i&&i.includes("text/plain")&&(y=null===(v=n.dataTransfer)||void 0===v?void 0:v.getData("text"))&&(0,le.xm)(y,e.props.validateEmbeddable)&&(/^(http|https):\/\/[^\s/$.?#].[^\s]*$/.test(y)||"video"===(null===(b=(0,le.LM)(y))||void 0===b?void 0:b.type))&&(x=e.insertEmbeddableElement({sceneX:c,sceneY:u,link:(0,ir.$u)(y)}))&&e.setState({selectedElementIds:(0,h.Z)({},x.id,!0)});case 39:case"end":return t.stop()}}),t,null,[[6,28],[9,17]])})));return function(e){return t.apply(this,arguments)}}(),this.loadFileToCanvas=function(){var t=(0,a.Z)(m().mark((function t(n,r){var i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,He.gY)(n);case 2:return n=t.sent,t.prev=3,t.next=6,(0,He.ZY)(n,e.state,e.scene.getElementsIncludingDeleted(),r);case 6:if((i=t.sent).type!==I.LO.excalidraw){t.next=12;break}e.setState({isLoading:!0}),e.syncActionResult(Pi(Pi({},i.data),{},{appState:Pi(Pi({},i.data.appState||e.state),{},{isLoading:!1}),replaceFiles:!0,commitToHistory:!0})),t.next=15;break;case 12:if(i.type!==I.LO.excalidrawlib){t.next=15;break}return t.next=15,e.library.updateLibrary({libraryItems:n,merge:!0,openLibraryMenu:!0}).catch((function(t){console.error(t),e.setState({errorMessage:(0,E.t)("errors.importLibraryError")})}));case 15:t.next=23;break;case 17:if(t.prev=17,t.t0=t.catch(3),!(t.t0 instanceof yr.jk&&"IMAGE_NOT_CONTAINS_SCENE_DATA"===t.t0.code)||e.isToolSupported("image")){t.next=22;break}return e.setState({isLoading:!1,errorMessage:(0,E.t)("errors.imageToolNotSupported")}),t.abrupt("return");case 22:e.setState({isLoading:!1,errorMessage:t.t0.message});case 23:case"end":return t.stop()}}),t,null,[[3,17]])})));return function(e,n){return t.apply(this,arguments)}}(),this.handleCanvasContextMenu=function(t){if(t.preventDefault(),!("pointerType"in t.nativeEvent&&"touch"===t.nativeEvent.pointerType||"pointerType"in t.nativeEvent&&"pen"===t.nativeEvent.pointerType&&t.button!==I.Oh.SECONDARY)||"selection"===e.state.activeTool.type){var n=(0,j.dE)(t,e.state),r=n.x,i=n.y,o=e.getElementAtPosition(r,i,{preferSelected:!0,includeLockedElements:!0}),a=e.scene.getSelectedElements(e.state),s=e.isHittingCommonBoundingBoxOfSelectedElements({x:r,y:i},a),l=o||s?"element":"canvas",c=e.excalidrawContainerRef.current.getBoundingClientRect(),u=c.top,d=c.left,p=t.clientX-d,f=t.clientY-u;(0,R.L)("contextMenu","openContextMenu",l),e.setState(Pi(Pi({},o&&!e.state.selectedElementIds[o.id]?Pi(Pi(Pi({},e.state),(0,G.bO)({editingGroupId:e.state.editingGroupId,selectedElementIds:(0,h.Z)({},o.id,!0)},e.scene.getNonDeletedElements(),e.state,e)),{},{selectedLinearElement:(0,Y.bt)(o)?new H._(o,e.scene):null}):e.state),{},{showHyperlinkPopup:!1}),(function(){e.setState({contextMenu:{top:f,left:p,items:e.getContextMenuItems(l)}})}))}},this.maybeDragNewGenericElement=function(t,n){var r=e.state.draggingElement,o=t.lastCoords;if(r)if("selection"===r.type&&"eraser"!==e.state.activeTool.type)(0,W.EJ)(r,e.state.activeTool.type,t.origin.x,t.origin.y,o.x,o.y,(0,j.TE)(t.origin.x,o.x),(0,j.TE)(t.origin.y,o.y),(0,_.E0)(n),(0,_.OA)(n));else{var a,s,l,c,u,d=(0,re.wC)(o.x,o.y,n[_.tW.CTRL_OR_CMD]?null:e.state.gridSize),p=(0,i.Z)(d,2),h=p[0],f=p[1],m=(0,Y.wi)(r)&&(null===(a=e.imageCache.get(r.fileId))||void 0===a?void 0:a.image),g=!m||m instanceof Promise?null:m.width/m.height;e.maybeCacheReferenceSnapPoints(n,[r]);var v=function(e,t,n,r,i){var o,a,s,l;if(!_r({event:n,selectedElements:[e],appState:t}))return{snapOffset:{x:0,y:0},snapLines:[]};var c=[[r.x+i.x,r.y+i.y]],u=Sr(t.zoom.value),d={x:u,y:u},p=[],h=[];Ir([e],c,t,n,p,h,d);var f={x:null!==(o=null===(a=p[0])||void 0===a?void 0:a.offset)&&void 0!==o?o:0,y:null!==(s=null===(l=h[0])||void 0===l?void 0:l.offset)&&void 0!==s?s:0};d.x=0,d.y=0,p.length=0,h.length=0;var m=Cr([e],{boundingBoxCorners:!0,omitCenter:!0});return Ir([e],m,t,n,p,h,d),{snapOffset:f,snapLines:Dr(p,h)}}(r,e.state,n,{x:t.originInGrid.x+(null!==(s=null===(l=e.state.originSnapOffset)||void 0===l?void 0:l.x)&&void 0!==s?s:0),y:t.originInGrid.y+(null!==(c=null===(u=e.state.originSnapOffset)||void 0===u?void 0:u.y)&&void 0!==c?c:0)},{x:h-t.originInGrid.x,y:f-t.originInGrid.y}),b=v.snapOffset,y=v.snapLines;h+=b.x,f+=b.y,e.setState({snapLines:y}),(0,W.EJ)(r,e.state.activeTool.type,t.originInGrid.x,t.originInGrid.y,h,f,(0,j.TE)(t.originInGrid.x,h),(0,j.TE)(t.originInGrid.y,f),(0,Y.pC)(r)?!(0,_.E0)(n):(0,_.E0)(n),(0,_.OA)(n),g,e.state.originSnapOffset),e.maybeSuggestBindingForAll([r]),"frame"===e.state.activeTool.type&&e.setState({elementsToHighlight:(0,cr.ni)(e.scene.getNonDeletedElements(),r,e.state)})}},this.maybeHandleResize=function(t,n){var r=e.scene.getSelectedElements(e.state),a=r.filter((function(e){return"frame"===e.type})),s=t.resize.handleType;if(a.length>0&&"rotation"===s)return!1;e.setState({isResizing:s&&"rotation"!==s,isRotating:"rotation"===s,activeEmbeddable:null});var l=t.lastCoords,c=(0,re.wC)(l.x-t.resize.offset.x,l.y-t.resize.offset.y,n[_.tW.CTRL_OR_CMD]?null:e.state.gridSize),u=(0,i.Z)(c,2),d=u[0],p=u[1],h=new Map;if(a.forEach((function(t){(0,cr.zD)(e.scene.getNonDeletedElements(),t.id).forEach((function(e){h.set(t.id+e.id,{x:e.x-t.x,y:e.y-t.y})}))})),!e.state.selectedElementsAreBeingDragged){var f=(0,re.wC)(l.x,l.y,n[_.tW.CTRL_OR_CMD]?null:e.state.gridSize),m=(0,i.Z)(f,2),g=m[0],v=m[1],b={x:g-t.originInGrid.x,y:v-t.originInGrid.y},y=(0,o.Z)(t.originalElements.values());e.maybeCacheReferenceSnapPoints(n,r);var x=function(e,t,n,r,o,a){var s,l,c,u;if(!_r({event:r,selectedElements:e,appState:n})||0===e.length||1===e.length&&!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(e-t)<=n}(e[0].angle,0))return{snapOffset:{x:0,y:0},snapLines:[]};var d=(0,Pt.KP)(t),p=(0,i.Z)(d,4),h=p[0],f=p[1],m=p[2],g=p[3];a&&(a.includes("e")?m+=o.x:a.includes("w")&&(h+=o.x),a.includes("n")?f+=o.y:a.includes("s")&&(g+=o.y));var v=[];if(a)switch(a){case"e":v.push([m,f],[m,g]);break;case"w":v.push([h,f],[h,g]);break;case"n":v.push([h,f],[m,f]);break;case"s":v.push([h,g],[m,g]);break;case"ne":v.push([m,f]);break;case"nw":v.push([h,f]);break;case"se":v.push([m,g]);break;case"sw":v.push([h,g])}var b=Sr(n.zoom.value),y={x:b,y:b},x=[],w=[];Ir(t,v,n,r,x,w,y);var O={x:null!==(s=null===(l=x[0])||void 0===l?void 0:l.offset)&&void 0!==s?s:0,y:null!==(c=null===(u=w[0])||void 0===u?void 0:u.offset)&&void 0!==c?c:0};y.x=0,y.y=0,x.length=0,w.length=0;var k=(0,Pt.KP)(e).map((function(e){return Tr(e)})),S=(0,i.Z)(k,4),E=S[0],_=S[1],C=S[2],P=S[3];return Ir(e,[[E,_],[E,P],[C,_],[C,P]],n,r,x,w,y),{snapOffset:O,snapLines:Dr(x,w)}}(r,(0,ie.eD)(y,e.state),e.state,n,b,s),w=x.snapOffset,O=x.snapLines;d+=w.x,p+=w.y,e.setState({snapLines:O})}if((0,W.vY)(t,s,r,t.resize.arrowDirection,(0,_.Ge)(n),(0,_.OA)(n),1===r.length&&(0,Y.pC)(r[0])?!(0,_.E0)(n):(0,_.E0)(n),d,p,t.resize.center.x,t.resize.center.y,e.state)){e.maybeSuggestBindingForAll(r);var k=new Set;return a.forEach((function(t){var n=(0,cr.zD)(e.scene.getNonDeletedElements(),t.id);s&&(s.includes("w")&&n.forEach((function(e){var n,r;(0,C.DR)(e,{x:t.x+((null===(n=h.get(t.id+e.id))||void 0===n?void 0:n.x)||0),y:t.y+((null===(r=h.get(t.id+e.id))||void 0===r?void 0:r.y)||0)})})),s.includes("n")&&n.forEach((function(e){var n,r;(0,C.DR)(e,{x:t.x+((null===(n=h.get(t.id+e.id))||void 0===n?void 0:n.x)||0),y:t.y+((null===(r=h.get(t.id+e.id))||void 0===r?void 0:r.y)||0)})}))),(0,cr.ni)(e.scene.getNonDeletedElements(),t,e.state).forEach((function(e){return k.add(e)}))})),e.setState({elementsToHighlight:(0,o.Z)(k)}),!0}return!1},this.getContextMenuItems=function(t){var n=[];return n.push(O.jK,O.FA),"canvas"===t?e.state.viewModeEnabled?[].concat(n,[O.Pb,O.JN,Kn,O.u0]):[dr.yQ,Ee,O.jK,O.FA,O.zp,Ee,O.Yy,ar.U,Ee,O.Pb,O.pm,O.JN,Kn,O.u0]:(n.push(O.zp),e.state.viewModeEnabled?[O.uN].concat(n):[O.ZM,O.uN,dr.yQ,gr,vr,Ee].concat(n,[Ee,O.pw,O.W3,Ee,O.EQ,O.y7,O.vD,Rr.JQ,O.s,Ee,O.FL,Ee,O.V,O.yA,O.zi,O.BZ,Ee,O.jl,O.kt,Ee,O.Qs,O.nz,O.xF,O.$h,Ee,O.X9]))},this.handleWheel=(0,j.tH)((function(t){if(t.preventDefault(),!Xi){var n=t.deltaX,r=t.deltaY;if(t.metaKey||t.ctrlKey){var i=Math.sign(r),o=100*I.V4,a=Math.abs(r),s=r;a>o&&(s=o*i);var l=e.state.zoom.value-s/100;return l+=Math.log10(Math.max(1,e.state.zoom.value))*-i*Math.min(1,a/20),e.translateCanvas((function(t){return Pi(Pi({},(0,ae.E)({viewportX:e.lastViewportPosition.x,viewportY:e.lastViewportPosition.y,nextZoom:(0,ie.j)(l)},t)),{},{shouldCacheIgnoreZoom:!0})})),void e.resetShouldCacheIgnoreZoomDebounced()}t.shiftKey?e.translateCanvas((function(e){var t=e.zoom;return{scrollX:e.scrollX-(r||n)/t.value}})):e.translateCanvas((function(e){var t=e.zoom,i=e.scrollX,o=e.scrollY;return{scrollX:i-n/t.value,scrollY:o-r/t.value}}))}})),this.savePointer=function(t,n,r){var i,o;if(t&&n){var a=(0,j.dE)({clientX:t,clientY:n},e.state),s=a.x,l=a.y;isNaN(s)||isNaN(l);var c={x:s,y:l,tool:"laser"===e.state.activeTool.type?"laser":"pointer"};null===(i=(o=e.props).onPointerUpdate)||void 0===i||i.call(o,{pointer:c,button:r,pointersMap:ao.pointers})}},this.resetShouldCacheIgnoreZoomDebounced=(0,j.Ds)((function(){e.unmounted||e.setState({shouldCacheIgnoreZoom:!1})}),300),this.updateDOMRect=function(t){var n;if(null!==(n=e.excalidrawContainerRef)&&void 0!==n&&n.current){var r=e.excalidrawContainerRef.current.getBoundingClientRect(),i=r.width,o=r.height,a=r.left,s=r.top,l=e.state,c=l.width,u=l.height,d=l.offsetTop,p=l.offsetLeft;if(i===c&&o===u&&a===p&&s===d)return void(t&&t());e.setState({width:i,height:o,offsetLeft:a,offsetTop:s},(function(){t&&t()}))}},this.refresh=function(){e.setState(Pi({},e.getCanvasOffsets()))}};"production"===I.Vi.TEST&&(window.h=window.h||{},Object.defineProperties(window.h,{elements:{configurable:!0,get:function(){var e;return null===(e=this.app)||void 0===e?void 0:e.scene.getElementsIncludingDeleted()},set:function(e){var t;return null===(t=this.app)||void 0===t?void 0:t.scene.replaceAllElements(e)}}}));var co=so},8806:function(e,t,n){"use strict";n.d(t,{z:function(){return E}});var r=n(7169),i=n(2726),o=n(45),a=n(9827),s=n(3379),l=n.n(s),c=n(7795),u=n.n(c),d=n(569),p=n.n(d),h=n(3565),f=n.n(h),m=n(9216),g=n.n(m),v=n(4589),b=n.n(v),y=n(3137),x={};x.styleTagTransform=b(),x.setAttributes=f(),x.insert=p().bind(null,"head"),x.domAPI=u(),x.insertStyleElement=g(),l()(y.Z,x),y.Z&&y.Z.locals&&y.Z.locals;var w=n(4512),O=["type","onSelect","selected","children","className"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t-1)return{colorName:s,shade:c}}else if(l===n)return{colorName:s,shade:null}}return null},m=[["q","w","e","r","t"],["a","s","d","f","g"],["z","x","c","v","b"]].flat(),g=function(e){var t=e.color,n=e.palette;return!Object.values(n).flat().includes(t)},v=(0,p.cn)(null),b=function(e,t,n){return(299*e+587*t+114*n)/1e3>=160?"black":"white"},y=function(e,t){if(t){var n=(new Option).style;if(n.color=e,n.color){var r=n.color.replace(/^(rgb|rgba)\(/,"").replace(/\)$/,"").replace(/\s/g,"").split(","),i=parseInt(r[0]),o=parseInt(r[1]),a=parseInt(r[2]);return b(i,o,a)}}if("transparent"===e)return"black";var s=parseInt(e.substring(1,3),16),l=parseInt(e.substring(3,5),16),c=parseInt(e.substring(5,7),16);return b(s,l,c)},x=function(e){var t=e.color,n=e.keyLabel,r=e.isCustomColor,i=void 0!==r&&r,o=e.isShade,a=void 0!==o&&o;return(0,s.jsxs)("div",{className:"color-picker__button__hotkey-label",style:{color:y(t,i)},children:[a&&"⇧",n]})},w=function(e){var t=e.hex,n=e.onChange,i=e.palette,a=f({color:t||"transparent",palette:i}),l=(0,p.KO)(v),u=(0,r.Z)(l,2),h=u[0],m=u[1],g=(0,c.useRef)(null);if((0,c.useEffect)((function(){g.current&&"shades"===h&&g.current.focus()}),[a,h]),a){var b=a.colorName,y=a.shade,w=i[b];if(Array.isArray(w))return(0,s.jsx)("div",{className:"color-picker-content--default shades",children:w.map((function(e,t){return(0,s.jsxs)("button",{ref:t===y&&"shades"===h?g:void 0,tabIndex:-1,type:"button",className:(0,o.Z)("color-picker__button color-picker__button--large",{active:t===y}),"aria-label":"Shade",title:"".concat(b," - ").concat(t+1),style:e?{"--swatch-color":e}:void 0,onClick:function(){n(e),m("shades")},children:[(0,s.jsx)("div",{className:"color-picker__button-outline"}),(0,s.jsx)(x,{color:e,keyLabel:t+1,isShade:!0})]},t)}))})}return(0,s.jsxs)("div",{className:"color-picker-content--default",style:{position:"relative"},tabIndex:-1,children:[(0,s.jsx)("button",{type:"button",tabIndex:-1,className:"color-picker__button color-picker__button--large color-picker__button--no-focus-visible"}),(0,s.jsx)("div",{tabIndex:-1,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",fontSize:"0.75rem"},children:(0,d.t)("colorPicker.noShades")})]})},O=function(e){var t=e.palette,n=e.color,i=e.onChange,a=(e.label,e.activeShade),l=f({color:n||"transparent",palette:t}),u=(0,p.KO)(v),h=(0,r.Z)(u,2),g=h[0],b=h[1],y=(0,c.useRef)(null);return(0,c.useEffect)((function(){y.current&&"baseColors"===g&&y.current.focus()}),[null==l?void 0:l.colorName,g]),(0,s.jsx)("div",{className:"color-picker-content--default",children:Object.entries(t).map((function(e,t){var n=(0,r.Z)(e,2),c=n[0],u=n[1],p=(Array.isArray(u)?u[a]:u)||"transparent",h=m[t],f=(0,d.t)("colors.".concat(c.replace(/\d+/,"")),null,"");return(0,s.jsxs)("button",{ref:(null==l?void 0:l.colorName)===c?y:void 0,tabIndex:-1,type:"button",className:(0,o.Z)("color-picker__button color-picker__button--large",{active:(null==l?void 0:l.colorName)===c,"is-transparent":"transparent"===p||!p}),onClick:function(){i(p),b("baseColors")},title:"".concat(f).concat(p.startsWith("#")?" ".concat(p):""," — ").concat(h),"aria-label":"".concat(f," — ").concat(h),style:p?{"--swatch-color":p}:void 0,"data-testid":"color-".concat(c),children:[(0,s.jsx)("div",{className:"color-picker__button-outline"}),(0,s.jsx)(x,{color:p,keyLabel:h})]},c)}))})},k=function(e){var t=e.colors,n=e.color,i=e.onChange,a=e.label,l=(0,p.KO)(v),u=(0,r.Z)(l,2),d=u[0],h=u[1],f=(0,c.useRef)(null);return(0,c.useEffect)((function(){f.current&&f.current.focus()}),[n,d]),(0,s.jsx)("div",{className:"color-picker-content--default",children:t.map((function(e,t){return(0,s.jsxs)("button",{ref:n===e?f:void 0,tabIndex:-1,type:"button",className:(0,o.Z)("color-picker__button color-picker__button--large",{active:n===e,"is-transparent":"transparent"===e||!e}),onClick:function(){i(e),h("custom")},title:e,"aria-label":a,style:{"--swatch-color":e},children:[(0,s.jsx)("div",{className:"color-picker__button-outline"}),(0,s.jsx)(x,{color:e,keyLabel:t+1,isCustomColor:!0})]},t)}))})},S=n(5491),E=function(e,t,n){var r,i=Math.ceil(n/a.dC);switch(t=null!==(r=t)&&void 0!==r?r:-1,e){case"ArrowLeft":var o=t-1;return o<0?n-1:o;case"ArrowRight":return(t+1)%n;case"ArrowDown":var s=t+a.dC;return s>=n?t%a.dC:s;case"ArrowUp":var l=t-a.dC,c=l<0?a.dC*i+l:l;return c>=n?void 0:c}},_=function(e){var t=e.event,n=e.activeColorPickerSection,i=e.palette,o=e.color,s=e.onChange,l=e.customColors,c=e.setActiveColorPickerSection,u=(e.updateData,e.activeShade),d=e.onEyeDropperToggle,p=e.onEscape;if(t[S.tW.CTRL_OR_CMD])return!1;if(t.key===S.tW.ESCAPE)return p(t),!0;if(t.key===S.tW.ALT)return d(!0),!0;if(t.key===S.tW.I)return d(),!0;var h=f({color:o,palette:i});if(t.key===S.tW.TAB){var g={custom:!!l.length,baseColors:!0,shades:null!=(null==h?void 0:h.shade),hex:!0},v=Object.entries(g).reduce((function(e,t){var n=(0,r.Z)(t,2),i=n[0];return n[1]&&e.push(i),e}),[]),b=v.indexOf(n),y=t.shiftKey?-1:1,x=v[b+y>v.length-1?0:b+y<0?v.length-1:b+y];return x&&c(x),"custom"===x?s(l[0]):"baseColors"===x&&(Object.entries(i).find((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];return Array.isArray(i)?i.includes(o):i===o?n:null}))||s(a.HO.black)),t.preventDefault(),t.stopPropagation(),!0}if(function(e){var t=e.e,n=e.colorObj,r=e.onChange,i=e.palette,o=e.customColors,a=e.setActiveColorPickerSection,s=e.activeShade;if(null!=(null==n?void 0:n.shade)&&["Digit1","Digit2","Digit3","Digit4","Digit5"].includes(t.code)&&t.shiftKey){var l=Number(t.code.slice(-1))-1;return r(i[n.colorName][l]),a("shades"),!0}if(["1","2","3","4","5"].includes(t.key)&&o[Number(t.key)-1])return r(o[Number(t.key)-1]),a("custom"),!0;if(m.includes(t.key)){var c=m.indexOf(t.key),u=i[Object.keys(i)[c]];return r(Array.isArray(u)?u[s]:u),a("baseColors"),!0}return!1}({e:t,colorObj:h,onChange:s,palette:i,customColors:l,setActiveColorPickerSection:c,activeShade:u}))return!0;if("shades"===n&&h){var w=h.shade,O=E(t.key,w,a.dC);if(void 0!==O)return s(i[h.colorName][O]),!0}if("baseColors"===n&&h){var k=h.colorName,_=Object.keys(i),C=_.indexOf(k),P=E(t.key,C,_.length);if(void 0!==P){var j=i[_[P]];return s(Array.isArray(j)?j[u]:j),!0}}if("custom"===n){var I=l.indexOf(o),T=E(t.key,I,l.length);if(void 0!==T)return s(l[T]),!0}return!1},C=function(e){var t=e.children;return(0,s.jsx)("div",{className:"color-picker__heading",children:t})},P=n(9937),j=function(e){var t,n=e.color,i=e.onChange,o=e.label,l=e.type,m=e.elements,b=e.palette,y=e.updateData,x=e.children,E=e.onEyeDropperToggle,j=e.onEscape,I=u().useState((function(){return"canvasBackground"===l?[]:function(e,t,n){var r={elementBackground:"backgroundColor",elementStroke:"strokeColor"},i=e.filter((function(e){if(e.isDeleted)return!1;var i=e[r[t]];return g({color:i,palette:n})})),o=new Map;return i.forEach((function(e){var n=e[r[t]];o.has(n)?o.set(n,o.get(n)+1):o.set(n,1)})),(0,h.Z)(o.entries()).sort((function(e,t){return t[1]-e[1]})).map((function(e){return e[0]})).slice(0,a.Lx)}(m,l,b)})),T=(0,r.Z)(I,1)[0],M=(0,p.KO)(v),D=(0,r.Z)(M,2),A=D[0],R=D[1],L=f({color:n,palette:b});(0,c.useEffect)((function(){if(!A){var e=g({color:n,palette:b}),t=e&&!T.includes(n);R(t?"hex":e?"custom":null!=(null==L?void 0:L.shade)?"shades":"baseColors")}}),[A,n,b,R,L,T]);var z=(0,c.useState)(null!==(t=null==L?void 0:L.shade)&&void 0!==t?t:"elementBackground"===l?a._T:a.z8),Z=(0,r.Z)(z,2),N=Z[0],$=Z[1];(0,c.useEffect)((function(){null!=(null==L?void 0:L.shade)&&$(L.shade);var e=function(e){e.key===S.tW.ALT&&E(!1)};return document.addEventListener(P.Ks.KEYUP,e,{capture:!0}),function(){document.removeEventListener(P.Ks.KEYUP,e,{capture:!0})}}),[L,E]);var B=u().useRef(null);return(0,s.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":(0,d.t)("labels.colorPicker"),children:(0,s.jsxs)("div",{ref:B,onKeyDown:function(e){_({event:e,activeColorPickerSection:A,palette:b,color:n,onChange:i,onEyeDropperToggle:E,customColors:T,setActiveColorPickerSection:R,updateData:y,activeShade:N,onEscape:j})&&(e.preventDefault(),e.stopPropagation())},className:"color-picker-content",tabIndex:-1,children:[!!T.length&&(0,s.jsxs)("div",{children:[(0,s.jsx)(C,{children:(0,d.t)("colorPicker.mostUsedCustomColors")}),(0,s.jsx)(k,{colors:T,color:n,label:(0,d.t)("colorPicker.mostUsedCustomColors"),onChange:i})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(C,{children:(0,d.t)("colorPicker.colors")}),(0,s.jsx)(O,{color:n,label:o,palette:b,onChange:i,activeShade:N})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(C,{children:(0,d.t)("colorPicker.shades")}),(0,s.jsx)(w,{hex:n,onChange:i,palette:b})]}),x]})})},I=n(11),T=n(7217),M=n(9335),D=n(1267),A=n(3119),R=n(3060);const L="dismissableLayer.update";let z;const Z=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=(0,c.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,d=(0,c.useContext)(Z),[p,h]=(0,c.useState)(null),f=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,c.useState)({}),g=(0,M.e)(t,(e=>h(e))),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(b),x=p?v.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,O=x>=y,k=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,R.W)(e),r=(0,c.useRef)(!1),i=(0,c.useRef)((()=>{}));return(0,c.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const o={originalEvent:e};function a(){B("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));O&&!n&&(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())}),f),S=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,R.W)(e),r=(0,c.useRef)(!1);return(0,c.useEffect)((()=>{const e=e=>{e.target&&!r.current&&B("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),f);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,R.W)(e);(0,c.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{x===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),f),(0,c.useEffect)((()=>{if(p)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(z=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),$(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=z)}}),[p,f,r,d]),(0,c.useEffect)((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),$())}),[p,d]),(0,c.useEffect)((()=>{const e=()=>m({});return document.addEventListener(L,e),()=>document.removeEventListener(L,e)}),[]),(0,c.createElement)(A.WV.div,(0,I.Z)({},u,{ref:g,style:{pointerEvents:w?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,T.M)(e.onFocusCapture,S.onFocusCapture),onBlurCapture:(0,T.M)(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:(0,T.M)(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function $(){const e=new CustomEvent(L);document.dispatchEvent(e)}function B(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,A.jH)(i,o):i.dispatchEvent(o)}let F=0;function Q(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const W="focusScope.autoFocusOnMount",H="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},Y=(0,c.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=(0,c.useState)(null),u=(0,R.W)(i),d=(0,R.W)(o),p=(0,c.useRef)(null),h=(0,M.e)(t,(e=>l(e))),f=(0,c.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,c.useEffect)((()=>{if(r){function e(e){if(f.paused||!s)return;const t=e.target;s.contains(t)?p.current=t:G(p.current,{select:!0})}function t(e){!f.paused&&s&&(s.contains(e.relatedTarget)||G(p.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,f.paused]),(0,c.useEffect)((()=>{if(s){K.add(f);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(W,U);s.addEventListener(W,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(G(r,{select:t}),document.activeElement!==n)return}(V(s).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&G(s))}return()=>{s.removeEventListener(W,u),setTimeout((()=>{const t=new CustomEvent(H,U);s.addEventListener(H,d),s.dispatchEvent(t),t.defaultPrevented||G(null!=e?e:document.body,{select:!0}),s.removeEventListener(H,d),K.remove(f)}),0)}}}),[s,u,d,f]);const m=(0,c.useCallback)((e=>{if(!n&&!r)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=V(e);return[q(t,e),q(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&G(o,{select:!0})):(e.preventDefault(),n&&G(r,{select:!0})):i===t&&e.preventDefault()}}),[n,r,f.paused]);return(0,c.createElement)(A.WV.div,(0,I.Z)({tabIndex:-1},a,{ref:h,onKeyDown:m}))}));function V(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function q(e,t){for(const n of e)if(!X(n,{upTo:t}))return n}function X(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function G(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const K=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=J(e,t),e.unshift(t)},remove(t){var n;e=J(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function J(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var ee=n(5622);function te(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function re(e){return["top","bottom"].includes(te(e))?"x":"y"}function ie(e){return"y"===e?"height":"width"}function oe(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=re(t),l=ie(s),c=r[l]/2-i[l]/2,u="x"===s;let d;switch(te(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(ne(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function ae(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function se(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function le(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=t,f=ae(h),m=s[p?"floating"===d?"reference":"floating":d],g=se(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=se(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+f.top,bottom:v.bottom-g.bottom+f.bottom,left:g.left-v.left+f.left,right:v.right-g.right+f.right}}const ce=Math.min,ue=Math.max;function de(e,t,n){return ue(e,ce(t,n))}const pe=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=ae(r),u={x:i,y:o},d=re(a),p=ne(a),h=ie(d),f=await l.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[h]+s.reference[d]-u[d]-s.floating[h],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let x=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===x&&(x=s.floating[h]);const w=v/2-b/2,O=c[m],k=x-f[h]-c[g],S=x/2-f[h]/2+w,E=de(O,S,k),_=("start"===p?c[m]:c[g])>0&&S!==E&&s.reference[h]<=s.floating[h];return{[d]:u[d]-(_?She[e]))}const me={start:"end",end:"start"};function ge(e){return e.replace(/start|end/g,(e=>me[e]))}const ve=["top","right","bottom","left"],be=(ve.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",flipAlignment:h=!0,...f}=e,m=te(r),g=d||(m!==a&&h?function(e){const t=fe(e);return[ge(e),t,ge(t)]}(a):[fe(a)]),v=[a,...g],b=await le(t,f),y=[];let x=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&y.push(b[m]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=ne(e),i=re(e),o=ie(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=fe(a)),{main:a,cross:fe(a)}}(r,o,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(x=[...x,{placement:r,overflows:y}],!y.every((e=>e<=0))){var w,O;const e=(null!=(w=null==(O=i.flip)?void 0:O.index)?w:0)+1,t=v[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(p){case"bestFit":{var k;const e=null==(k=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});function ye(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xe(e){return ve.some((t=>e[t]>=0))}const we=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=ye(await le(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:xe(t)}}}case"escaped":{const t=ye(await le(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:xe(t)}}}default:return{}}}}},Oe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=te(n),s=ne(n),l="x"===re(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function ke(e){return"x"===e?"y":"x"}const Se=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await le(t,l),d=re(te(i)),p=ke(d);let h=c[d],f=c[p];if(o){const e="y"===d?"bottom":"right";h=de(h+u["y"===d?"top":"left"],h,h-u[e])}if(a){const e="y"===p?"bottom":"right";f=de(f+u["y"===p?"top":"left"],f,f-u[e])}const m=s.fn({...t,[d]:h,[p]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Ee=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=re(i),p=ke(d);let h=u[d],f=u[p];const m="function"==typeof s?s({...o,placement:i}):s,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,n=o.reference[d]+o.reference[e]-g.mainAxis;hn&&(h=n)}if(c){var v,b,y,x;const e="y"===d?"width":"height",t=["top","left"].includes(te(i)),n=o.reference[p]-o.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[p])?v:0)+(t?0:g.crossAxis),r=o.reference[p]+o.reference[e]+(t?0:null!=(y=null==(x=a.offset)?void 0:x[p])?y:0)-(t?g.crossAxis:0);fr&&(f=r)}return{[d]:h,[p]:f}}}},_e=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a,...s}=e,l=await le(t,s),c=te(n),u=ne(n);let d,p;"top"===c||"bottom"===c?(d=c,p=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(p=c,d="end"===u?"top":"bottom");const h=ue(l.left,0),f=ue(l.right,0),m=ue(l.top,0),g=ue(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==g?m+g:ue(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==h||0!==f?h+f:ue(l.left,l.right)):l[p])},b=await i.getDimensions(o.floating);null==a||a({...t,...v});const y=await i.getDimensions(o.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function Ce(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Pe(e){if(null==e)return window;if(!Ce(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function je(e){return Pe(e).getComputedStyle(e)}function Ie(e){return Ce(e)?"":e?(e.nodeName||"").toLowerCase():""}function Te(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Me(e){return e instanceof Pe(e).HTMLElement}function De(e){return e instanceof Pe(e).Element}function Ae(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Pe(e).ShadowRoot||e instanceof ShadowRoot)}function Re(e){const{overflow:t,overflowX:n,overflowY:r}=je(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Le(e){return["table","td","th"].includes(Ie(e))}function ze(e){const t=/firefox/i.test(Te()),n=je(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Ze(){return!/^((?!chrome|android).)*safari/i.test(Te())}const Ne=Math.min,$e=Math.max,Be=Math.round;function Fe(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&Me(e)&&(l=e.offsetWidth>0&&Be(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Be(s.height)/e.offsetHeight||1);const u=De(e)?Pe(e):window,d=!Ze()&&n,p=(s.left+(d&&null!=(r=null==(i=u.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=u.visualViewport)?void 0:a.offsetTop)?o:0))/c,f=s.width/l,m=s.height/c;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}function Qe(e){return(t=e,(t instanceof Pe(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function We(e){return De(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function He(e){return Fe(Qe(e)).left+We(e).scrollLeft}function Ue(e,t,n){const r=Me(t),i=Qe(t),o=Fe(e,r&&function(e){const t=Fe(e);return Be(t.width)!==e.offsetWidth||Be(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Ie(t)||Re(i))&&(a=We(t)),Me(t)){const e=Fe(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=He(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Ye(e){return"html"===Ie(e)?e:e.assignedSlot||e.parentNode||(Ae(e)?e.host:null)||Qe(e)}function Ve(e){return Me(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function qe(e){const t=Pe(e);let n=Ve(e);for(;n&&Le(n)&&"static"===getComputedStyle(n).position;)n=Ve(n);return n&&("html"===Ie(n)||"body"===Ie(n)&&"static"===getComputedStyle(n).position&&!ze(n))?t:n||function(e){let t=Ye(e);for(Ae(t)&&(t=t.host);Me(t)&&!["html","body"].includes(Ie(t));){if(ze(t))return t;t=t.parentNode}return null}(e)||t}function Xe(e){if(Me(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Fe(e);return{width:t.width,height:t.height}}function Ge(e){const t=Ye(e);return["html","body","#document"].includes(Ie(t))?e.ownerDocument.body:Me(t)&&Re(t)?t:Ge(t)}function Ke(e,t){var n;void 0===t&&(t=[]);const r=Ge(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Pe(r),a=i?[o].concat(o.visualViewport||[],Re(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ke(a))}function Je(e,t,n){return"viewport"===t?se(function(e,t){const n=Pe(e),r=Qe(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Ze();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):De(t)?function(e,t){const n=Fe(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):se(function(e){var t;const n=Qe(e),r=We(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=$e(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=$e(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-r.scrollLeft+He(e);const l=-r.scrollTop;return"rtl"===je(i||n).direction&&(s+=$e(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(Qe(e)))}function et(e){const t=Ke(e),n=["absolute","fixed"].includes(je(e).position)&&Me(e)?qe(e):e;return De(n)?t.filter((e=>De(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ae(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Ie(e))):[]}const tt={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?et(t):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Je(t,n,i);return e.top=$e(r.top,e.top),e.right=Ne(r.right,e.right),e.bottom=Ne(r.bottom,e.bottom),e.left=$e(r.left,e.left),e}),Je(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Me(n),o=Qe(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==Ie(n)||Re(o))&&(a=We(n)),Me(n))){const e=Fe(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:De,getDimensions:Xe,getOffsetParent:qe,getDocumentElement:Qe,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:Ue(t,qe(n),r),floating:{...Xe(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===je(e).direction};function nt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,c=o&&!s,u=l||c?[...De(e)?Ke(e):[],...Ke(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),De(e)&&!s&&p.observe(e),p.observe(t)}let h=s?Fe(e):null;return s&&function t(){const r=Fe(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}var rt=n(5156),it=n.n(rt),ot="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;function at(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!at(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||at(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function st(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e;const o=c.useRef(null),a=c.useRef(null),s=function(e){const t=c.useRef(e);return ot((()=>{t.current=e})),t}(i),l=c.useRef(null),[u,d]=c.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[p,h]=c.useState(t);at(null==p?void 0:p.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||h(t);const f=c.useCallback((()=>{o.current&&a.current&&((e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=oe(l,r,s),d=r,p={},h=0;for(let n=0;n{m.current&&rt.flushSync((()=>{d(e)}))}))}),[p,n,r]);ot((()=>{m.current&&f()}),[f]);const m=c.useRef(!1);ot((()=>(m.current=!0,()=>{m.current=!1})),[]);const g=c.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current)if(s.current){const e=s.current(o.current,a.current,f);l.current=e}else f()}),[f,s]),v=c.useCallback((e=>{o.current=e,g()}),[g]),b=c.useCallback((e=>{a.current=e,g()}),[g]),y=c.useMemo((()=>({reference:o,floating:a})),[]);return c.useMemo((()=>({...u,update:f,refs:y,reference:v,floating:b})),[u,f,y,v,b])}const lt=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?pe({element:t.current,padding:n}).fn(e):{}:t?pe({element:t,padding:n}).fn(e):{};var r}}},ct=(0,c.forwardRef)(((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return(0,c.createElement)(A.WV.svg,(0,I.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,c.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),ut=ct;var dt=n(3348);const pt="Popper",[ht,ft]=(0,D.b)(pt),[mt,gt]=ht(pt),vt=(0,c.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=gt("PopperAnchor",n),a=(0,c.useRef)(null),s=(0,M.e)(t,a);return(0,c.useEffect)((()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,c.createElement)(A.WV.div,(0,I.Z)({},i,{ref:s}))})),bt="PopperContent",[yt,xt]=ht(bt),[wt,Ot]=ht(bt,{hasParent:!1,positionUpdateFns:new Set}),kt=(0,c.forwardRef)(((e,t)=>{var n,r,i,o,a,s,l,u;const{__scopePopper:d,side:p="bottom",sideOffset:h=0,align:f="center",alignOffset:m=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,onPlaced:O,...k}=e,S=gt(bt,d),[E,_]=(0,c.useState)(null),C=(0,M.e)(t,(e=>_(e))),[P,j]=(0,c.useState)(null),I=function(e){const[t,n]=(0,c.useState)(void 0);return(0,dt.b)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(P),T=null!==(n=null==I?void 0:I.width)&&void 0!==n?n:0,D=null!==(r=null==I?void 0:I.height)&&void 0!==r?r:0,L=p+("center"!==f?"-"+f:""),z="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(v)?v:[v],N=Z.length>0,$={padding:z,boundary:Z.filter(Ct),altBoundary:N},{reference:B,floating:F,strategy:Q,x:W,y:H,placement:U,middlewareData:Y,update:V}=st({strategy:"fixed",placement:L,whileElementsMounted:nt,middleware:[Pt(),Oe({mainAxis:h+D,alignmentAxis:m}),w?Se({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?Ee():void 0,...$}):void 0,P?lt({element:P,padding:g}):void 0,w?be({...$}):void 0,_e({...$,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),jt({arrowWidth:T,arrowHeight:D}),x?we({strategy:"referenceHidden"}):void 0].filter(_t)});(0,dt.b)((()=>{B(S.anchor)}),[B,S.anchor]);const q=null!==W&&null!==H,[X,G]=It(U),K=(0,R.W)(O);(0,dt.b)((()=>{q&&(null==K||K())}),[q,K]);const J=null===(i=Y.arrow)||void 0===i?void 0:i.x,ee=null===(o=Y.arrow)||void 0===o?void 0:o.y,te=0!==(null===(a=Y.arrow)||void 0===a?void 0:a.centerOffset),[ne,re]=(0,c.useState)();(0,dt.b)((()=>{E&&re(window.getComputedStyle(E).zIndex)}),[E]);const{hasParent:ie,positionUpdateFns:oe}=Ot(bt,d),ae=!ie;(0,c.useLayoutEffect)((()=>{if(!ae)return oe.add(V),()=>{oe.delete(V)}}),[ae,oe,V]),(0,dt.b)((()=>{ae&&q&&Array.from(oe).reverse().forEach((e=>requestAnimationFrame(e)))}),[ae,q,oe]);const se={"data-side":X,"data-align":G,...k,ref:C,style:{...k.style,animation:q?void 0:"none",opacity:null!==(s=Y.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,c.createElement)("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:Q,left:0,top:0,transform:q?`translate3d(${Math.round(W)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(l=Y.transformOrigin)||void 0===l?void 0:l.x,null===(u=Y.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,c.createElement)(yt,{scope:d,placedSide:X,onArrowChange:j,arrowX:J,arrowY:ee,shouldHideArrow:te},ae?(0,c.createElement)(wt,{scope:d,hasParent:!0,positionUpdateFns:oe},(0,c.createElement)(A.WV.div,se)):(0,c.createElement)(A.WV.div,se)))})),St={top:"bottom",right:"left",bottom:"top",left:"right"},Et=(0,c.forwardRef)((function(e,t){const{__scopePopper:n,...r}=e,i=xt("PopperArrow",n),o=St[i.placedSide];return(0,c.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,c.createElement)(ut,(0,I.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))}));function _t(e){return void 0!==e}function Ct(e){return null!==e}const Pt=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),jt=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[h,f]=It(s),m={start:"0%",center:"50%",end:"100%"}[f],g=(null!==(r=null===(i=c.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(o=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+p/2;let b="",y="";return"bottom"===h?(b=u?m:`${g}px`,y=-p+"px"):"top"===h?(b=u?m:`${g}px`,y=`${l.floating.height+p}px`):"right"===h?(b=-p+"px",y=u?m:`${v}px`):"left"===h&&(b=`${l.floating.width+p}px`,y=u?m:`${v}px`),{data:{x:b,y}}}});function It(e){const[t,n="center"]=e.split("-");return[t,n]}const Tt=e=>{const{__scopePopper:t,children:n}=e,[r,i]=(0,c.useState)(null);return(0,c.createElement)(mt,{scope:t,anchor:r,onAnchorChange:i},n)},Mt=vt,Dt=kt,At=Et,Rt=(0,c.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...i}=e;return r?it().createPortal((0,c.createElement)(A.WV.div,(0,I.Z)({},i,{ref:t})),r):null}));var Lt=n(1483),zt=n(4801),Zt=n(2673),Nt=new WeakMap,$t=new WeakMap,Bt={},Ft=0,Qt=function(e){return e&&(e.host||Qt(e.parentNode))},Wt=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),function(e,t,n,r){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Qt(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Bt[n]||(Bt[n]=new WeakMap);var o=Bt[n],a=[],s=new Set,l=new Set(i),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(Nt.get(e)||0)+1,c=(o.get(e)||0)+1;Nt.set(e,l),o.set(e,c),a.push(e),1===l&&i&&$t.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}}))};return u(t),s.clear(),Ft++,function(){a.forEach((function(e){var t=Nt.get(e)-1,i=o.get(e)-1;Nt.set(e,t),o.set(e,i),t||($t.has(e)||e.removeAttribute(r),$t.delete(e)),i||e.removeAttribute(n)})),--Ft||(Nt=new WeakMap,Nt=new WeakMap,$t=new WeakMap,Bt={})}}(r,i,n,"aria-hidden")):function(){return null}},Ht=function(){return Ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n