Files
checkflow/chamgojaryo/워홀 입국 후 - TickTick_files/tt_modules.ap-39500e2a639c87f4665c.js.다운로드
T
2026-08-21 15:22:17 +09:00

2 lines
587 KiB
Plaintext

(self.webpackChunkweb_node=self.webpackChunkweb_node||[]).push([[4858],{nYAh:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("yq1k"),n("4mDm"),n("2B1R"),n("+2oP"),n("sMBO"),n("zKZe"),n("07d7"),n("4l63"),n("rB9j"),n("ALS0"),n("JfAA"),n("JTJg"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("NW6w"),o=n("9IBm"),a=n("Eh+D"),s=n("bjJs"),l=n("AtZj"),c=n("lQiI"),u=n("97ST"),f=n("bJwH"),d=n("UbDi"),h=n("d7tj"),p=n("UDbp"),m=n("eDHg"),g=n("4+DD");function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k=function(e){var t=e.visible,n=e.setVisible,i=e.onSelect,o=e.selectedKeys,a=e.children,s=e.containerMenuRef,l=(0,r.useRef)(),c=(0,r.useCallback)((function(e){e&&(0,g.iD)($(e))}),[]),u=y((0,m.zu)(c),2),f=(u[0],u[1]);return(0,r.useEffect)((function(){t&&setTimeout((function(){l.current&&l.current.focus()}))}),[t]),r.createElement("div",{className:"antiscroll-wrap",ref:f},r.createElement(p.ZP,{ref:l,onSelect:i,selectedKeys:o,onKeyDown:function(e){"Escape"!==e.key&&e.stopPropagation(),"ArrowLeft"===e.key&&t&&(n(!1),setTimeout((function(){s&&s.current&&s.current.focus()})))},tabIndex:-1,className:"antiscroll-inner max-h-[236px]"},a))};t.Z=function(e,t){var n=e.onActive,b=e.projectId,w=e.onSelect,C=e.selected,x=e.children,_=e.placement,S=void 0===_?"bottomCenter":_,E=e.menuClassName,O=e.align,T=e.trigger,L=void 0===T?["click"]:T,P=e.inRightMenu,M=e.containerMenuRef,D=e.onAfterShow,j=e.onHide,N=e.alignPoint,I=(0,o.Z)(),R=(0,r.useMemo)((function(){return L.includes("hover")}),[L]),A=(0,r.useCallback)((function(e){e&&(0,g.iD)($(e))}),[]),B=y((0,m.zu)(A),2),Z=B[0],F=B[1],U=y((0,r.useState)(!1),2),K=U[0],Y=U[1];(0,i.v9)((function(){return(0,u.gz)(b)}));var W=function(e){var t=e.selectedKeys;w(parseInt(t[0],10))},H=function(e){var t=e.get("displayName");c.U2("userId")===e.get("userId")&&(t=I.formatMessage({id:"me"}));var n=!(-1===parseInt(e.get("userId"),10)),i=P?"w-[192px]":"",o=R?{onClick:function(e){var t=e.key;w(parseInt(t,10))}}:{};return n?r.createElement(p.gO,v({key:e.get("userId"),prefixIcon:r.createElement(d.Z,{className:"avatar med icon-avatar avatar-bd-divider ml-0 mr-[12px] inline-block flex-none",url:e.get("avatarUrl"),size:24}),title:(0,h.tj)(t),withChecker:!0,className:i},o)):r.createElement(p.gO,v({key:e.get("userId"),prefixIcon:r.createElement(l.Z,{name:"assignment-none",className:"inline-block mr-[12px] text-grey-60 p-[3px] flex-none"}),title:I.formatMessage({id:"assignment_nobody"}),withChecker:!0,className:i},o))},z=function(){var e=(0,u.am)(b),t=[];return e=e.unshift((0,a.Map)({userId:"-1",isAccept:!0})),t=C&&-1!==C?["".concat(C)]:["-1"],R?r.createElement(k,{visible:K,setVisible:Y,onSelect:W,selectedKeys:t,containerMenuRef:M},e.map((function(e){return H(e)}))):r.createElement("div",{className:"antiscroll-wrap dropdown-menu-menu kanban-click-ignore",ref:F},r.createElement(p.ZP,{onSelect:W,selectedKeys:t,onKeyDown:function(e){"Escape"!==e.key&&e.stopPropagation()},onClick:function(e){var t;e&&e.domEvent&&"keydown"===e.domEvent.type&&(null===(t=Z.current)||void 0===t||t.click())},className:"antiscroll-inner max-h-[236px]"},e.map((function(e){return H(e)}))))}(),q=R?{action:L,visible:K,mouseEnterDelay:.1}:{};return r.createElement(s.Z,v({disabled:(0,f.I2)((0,f.Rp)(b)),menu:z,menuClassName:E,onVisibleChange:function(e){R&&Y(e),n&&n(e),e?(0,u.TX)(b):null===j||void 0===j||j()},placement:S,align:O,onShow:function(e){return null===D||void 0===D?void 0:D(e)},alignPoint:N},q),x)}},Np6E:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("ma9I"),n("4mDm"),n("pDQq"),n("zKZe"),n("NBAS"),n("ExoC"),n("07d7"),n("4l63"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("mSNm");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){var t;t="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;var r="undefined"!==typeof document&&document.attachEvent;if(!r){var i=function(){var e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)};return function(t){return e(t)}}(),o=function(){var e=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout;return function(t){return e(t)}}(),a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},l=!1,c="",u="animationstart",f="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(l=!0),!1===l)for(var p=0;p<f.length;p++)if(void 0!==h.style[f[p]+"AnimationName"]){c="-"+f[p].toLowerCase()+"-",u=d[p],l=!0;break}var m="resizeanim",g="@"+c+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",v=c+"animation: 1ms "+m+"; "}return{addResizeListener:function(n,i){if(r)n.attachEvent("onresize",i);else{if(!n.__resizeTriggers__){var o=n.ownerDocument,l=t.getComputedStyle(n);l&&"static"==l.position&&(n.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(g||"")+".resize-triggers { "+(v||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(t.createTextNode(n)),r.appendChild(i)}}(o),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=o.createElement("div")).className="resize-triggers",n.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',n.appendChild(n.__resizeTriggers__),a(n),n.addEventListener("scroll",s,!0),u&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&a(n)},n.__resizeTriggers__.addEventListener(u,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(i)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(u,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==o(t)&&"function"!==typeof t?e:t},f=function(e){function t(){var e,n,r;s(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,i=e.onResize;if(r._parentNode){var o=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,f=parseInt(s.paddingBottom,10)||0,d=o-u-f,h=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==h)&&(window.isInvalidResize||r.setState({height:o-u-f,width:a-l-c}),i({height:o,width:a}))}},r._setRef=function(e){r._autoSizer=e},u(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+o(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=a(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.disableHeight,o=e.disableWidth,a=e.style,s=this.state,l=s.height,u=s.width,f={overflow:"visible"},d={},h=!1;return i||(0===l&&(h=!0),f.height=0,d.height=l),o||(0===u&&(h=!0),f.width=0,d.width=u),(0,r.createElement)("div",{className:n,ref:this._setRef,style:c({},f,a)},!h&&t(d))}}]),t}(r.PureComponent);f.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},t.Z=1223==n.j?f:null,(0,i.V)()},mSNm:function(e,t,n){"use strict";n.d(t,{K:function(){return r},V:function(){return i}});var r=function(e){window.isInvalidResize=e},i=function(){window.isInvalidResize=!1}},UbDi:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("yq1k"),n("4mDm"),n("7+zs"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("JTJg"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("H9av"),s=n("NW6w"),l=n("5WEu");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function f(e,t,n){return t=h(t),function(e,t){if(t&&("object"===c(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function m(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var v=(0,s.$j)((function(e){return{isDarkTheme:l.$o(l.gh())}}),{}),y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(n=f(this,t,[e]),"handleError",(function(){n.state.errored||n.setState({errored:!0})})),m(n,"getShowUrl",(function(){var e=n.props,t=e.url,r=void 0===t?"":t,i=e.isDarkTheme,o=r;return o&&o.includes("/image/avatar.png")&&(o=""),o||(0,a.Z)(i)})),n.state={errored:!1},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(i=[{key:"componentDidUpdate",value:function(e,t,n){var r=this.props.url;e.url!==r&&this.setState({errored:!1})}},{key:"render",value:function(){var e=this.props,t=e.url,n=void 0===t?"":t,i=e.className,s=e.altText,l=void 0===s?"":s,c=e.title,u=void 0===c?"":c,f=e.size,d=e.round,h=void 0===d||d,p=e.isDarkTheme,m=this.state.errored,g=f?{width:f,height:f}:{},v=this.getShowUrl(),y=(0,a.Z)(p);return r.createElement("img",{key:n,style:g,className:o()("w-[32px] h-[32px]",h?"rounded-full":"rounded-[6px]",i),title:u,src:m?y:v,alt:l,onError:this.handleError})}}])&&u(n.prototype,i),s&&u(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(r.Component);t.Z=v(y)},aALo:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("4mDm"),n("7+zs"),n("qePV"),n("zKZe"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var s=["children","onClick","loading","loadingText","href","htmlType","className","size","type","prefix","disabled","style"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var h=r.forwardRef((function(e,t){var n=e.children,i=e.onClick,a=void 0===i?function(){}:i,c=e.loading,h=void 0!==c&&c,p=e.loadingText,m=e.href,g=e.htmlType,v=void 0===g?"button":g,y=e.className,b=e.size,k=void 0===b?"middle":b,w=e.type,C=void 0===w?"primary":w,x=e.prefix,_=void 0===x?"btn":x,S=e.disabled,E=void 0!==S&&S,O=e.style,T=d(e,s),L=m?"a":"button",P="";switch(k){case"large":P="rounded-[10px] lrg h-[40px] text-[16px] px-[24px] min-w-[100px]";break;case"middle":P=o()("rounded-[8px]","med h-[30px] text-[14px] px-[16px] min-w-[76px]");break;case"small":P="rounded-default sml h-[30px] text-[14px] px-[18px] min-w-[100px]";break;case"tiny":P="rounded-default tny h-[24px] text-[13px] px-[12px] min-w-[60px]";break;case"custom":P="rounded-default custom px-[16px]"}var M=o()("leading-none transition-colors duration-200 ease-in text-center cursor-pointer inline-block relative disabled:cursor-not-allowed",_,y,f(f(f({},"".concat(function(){switch(C){default:case"primary":return"btn-primary bg-primary text-white border border-[transparent] border-solid disabled:bg-btn-disable-color hover:bg-btn-hover-color focus:bg-btn-hover-color active:bg-btn-active-color";case"cancel":return"btn-cancel text-grey-60 border border-grey-10 border-solid disable:text-grey-20 hover:bg-cancel-btn-hover focus:bg-cancel-btn-hover active:bg-cancel-btn-active disabled:bg-[transparent]";case"team":return"bg-team-orange text-white border border-solid border-[transparent] hover:bg-team-orange-hover focus:bg-team-orange-hover disabled:bg-team-orange-disable active:bg-team-orange-active";case"border":return"text-primary border border-solid border-primary hover:border-btn-hover-color hover:text-btn-hover-color hover:bg-primary-5 focus:border-btn-hover-color focus:text-btn-hover-color focus:bg-primary-5 active:border-btn-active-color active:text-btn-active-color active:bg-primary-5";case"pro":return"btn-pro !text-white"}}()),C),"".concat(P),P),"".concat(h),h));return r.createElement(L,l({},T,{style:"tiny"===k?u(u({},O),{},{flexBasis:"60px"}):u({},O),type:m?void 0:v||"button",href:m,onClick:function(e){return a(e)},className:M,disabled:E||h,ref:t}),h?p:n)}));h.displayName="LegacyButton",t.Z=h},yFjn:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("AtZj"),s=function(e){var t=e.isChecked,n=e.checkboxId,i=e.onChange,s=e.style,l=e.disabled,c=(0,r.useCallback)((function(){l||i&&"function"===typeof i&&i(!t)}),[l,t,i]),u=!!t,f=l?"border-grey-20 cursor-not-allowed":u?"border-menu-primary bg-menu-primary":"border-grey-20 hover:border-menu-primary";return r.createElement("span",{className:o()("relative w-[14px] h-[14px] rounded-[4px] flex-none flex justify-center items-center border border-solid",f),onClick:c,style:s},r.createElement(a.Z,{name:"right-panel-all-selected",className:o()("w-[9px] h-[9px] text-white flex-none",u?"visible":"invisible")}),r.createElement("input",{type:"checkbox",id:n,checked:u,onChange:c,className:"left-0 top-0 opacity-0 pointer-events-none",style:{position:"absolute",display:"none"},disabled:l}))}},dXFY:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("4mDm"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("yFjn");function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){var t=e.isChecked,n=e.className,i=e.id,s=e.checkboxId,l=e.checkboxDesc,u=e.onChange,f=e.suffix,d=e.style,h=e.textStyle,p=e.textClassName,m=e.disabled;return r.createElement("div",{className:o()("checkbox-item flex items-center h-[30px]",n),style:d,id:i},r.createElement(a.P,{isChecked:t,checkboxId:s,onChange:u,disabled:m}),r.createElement("label",{htmlFor:s,className:o()("can-not-select inline-block ml-[8px] mb-0",p),style:c({fontSize:13},h)},l),f)}},ADIj:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("56Ht"),s=n("NW6w"),l=n("5WEu");function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.Z=function(e){var t=e.color,n=e.select,i=e.onSelect,u=e.className,f=e.contextMenus,d=e.mrClassName,h=e.withDarkBorder,p=n&&n.toLowerCase()===t.toLowerCase(),m=c((0,r.useState)(!1),2),g=m[0],v=m[1],y=(0,s.v9)((function(e){return(0,l.$o)()})),b=(0,r.useRef)(null),k=h&&y,w=p?r.createElement("div",{ref:b,style:{width:18,height:18},className:o()(u,"rounded-full cursor-pointer relative",null!==d&&void 0!==d?d:"mr-[8px]"),onClick:function(){i(t)},onContextMenu:function(e){f&&(e.preventDefault(),v(!0))}},r.createElement("div",{className:o()("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full",k&&"bg-primary"),style:{backgroundColor:k?void 0:t,width:20,height:20,zIndex:-2}}),r.createElement("div",{className:"bg-main-background absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{width:16,height:16,zIndex:-1}}),r.createElement("div",{className:"rounded-full absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",style:{width:12,height:12,backgroundColor:t}})):r.createElement("div",{ref:b,style:{backgroundColor:t,width:18,height:18},className:o()(u,"rounded-full cursor-pointer relative",k?"overflow-visible":"overflow-hidden",null!==d&&void 0!==d?d:"mr-[8px]"),onClick:function(){i(t)},onContextMenu:function(e){f&&(e.preventDefault(),v(!0))}},k&&r.createElement("div",{className:"rounded-full absolute border border-solid border-grey-10",style:{top:-1,right:-1,bottom:-1,left:-1,zIndex:-1}}));return r.createElement(r.Fragment,null,w,g&&!!f&&r.createElement(a.Z,{relativeRef:b,menu:f,hideMenu:function(){v(!1)},style:{zIndex:1051},gap:4}))}},Lxla:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n("z8Uv"),i=n("q1tI"),o=(n("pNMO"),n("4Brf"),n("0oug"),n("ma9I"),n("TeQF"),n("pjDv"),n("4mDm"),n("2B1R"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("YGK4"),n("PKPk"),n("3bBZ"),n("EPMa")),a=n.n(o),s=n("h+fQ"),l=n.n(s),c=n("q9+P"),u=n("yjRZ"),f=n("CiLW"),d=n("AtZj"),h=n("M0rw"),p=n("9IBm"),m=n("ADIj"),g=n("NW6w"),v=n("sLZY"),y=n("yPzf"),b=n("rviF"),k=n("5WEu"),w=n("14Z0"),C=n("EItl");function x(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"===typeof e)return E(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)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O="text-[13px] leading-[18px] text-grey-80",T=function(e){var t=e.colors,n=e.pickedColor,r=e.onColorItemClick,o=e.title;return i.createElement("div",{className:"mt-[16px] first-of-type:mt-0"},i.createElement("p",{className:O},o),i.createElement("div",{className:"flex items-center"},t.map((function(e){return i.createElement(m.Z,{key:e,color:e,select:n,onSelect:r,className:"mt-[8px] last-of-type:mr-0"})}))))},L=function(e){var t=e.onColorItemClick,n=e.pickedColor,r=e.useInCountdown,o=e.prefixColors,s=e.addNotIncludeThemeColor,u=(0,p.Z)(),f=_((0,i.useState)(!1),2),h=f[0],k=f[1],S=(0,g.v9)((function(e){return(0,v.uW)(e)})),E=(0,g.I0)(),L=(0,i.useRef)(null),M=(0,i.useMemo)((function(){return o?i.createElement("div",{className:"mt-[16px] first-of-type:mt-0"},i.createElement("p",{className:O},u.formatMessage({id:"recommend"})),i.createElement("div",{className:"flex items-center"},o.map((function(e){return"transparent"===e?i.createElement(w.Z,{select:n,onSelect:function(){t(n)},className:"mt-[8px]"}):i.createElement(m.Z,{key:e,color:e,select:n,onSelect:t,className:"mt-[8px] last-of-type:mr-0"})})))):null}),[o,u,n,t]),D=(0,C.$h)(),j=(0,i.useRef)(!1);(0,i.useEffect)((function(){s&&n&&n.toLowerCase()===D.toLowerCase()&&(j.current=!0)}),[s,n,D]);var N=(0,i.useMemo)((function(){return j.current?[D].concat(x(S)).slice(0,7):S}),[S,j,D]);return i.createElement("div",{className:a()(l().colorGrid)},M,i.createElement(T,{title:u.formatMessage({id:"MacaronColor"}),colors:r?c.lx:c.NA,onColorItemClick:t,pickedColor:n}),i.createElement(T,{title:u.formatMessage({id:"MorandiColor"}),colors:r?c.Y2:c.es,onColorItemClick:t,pickedColor:n}),i.createElement(T,{title:u.formatMessage({id:"RococoColor"}),colors:r?c.dU:c.kw,onColorItemClick:t,pickedColor:n}),i.createElement(T,{title:u.formatMessage({id:"ClassicColor"}),colors:r?c.CI:c.Zm,onColorItemClick:t,pickedColor:n}),i.createElement(T,{title:u.formatMessage({id:"MemphisColor"}),colors:r?c.Wo:c.Em,onColorItemClick:t,pickedColor:n}),i.createElement("div",{className:"mt-[16px]"},i.createElement("p",{className:O},u.formatMessage({id:"CustomColor"})),i.createElement("div",{ref:L,className:"cursor-pointer flex items-center"},i.createElement("div",{style:{width:18,height:18,marginRight:8,marginTop:8},className:"inline-flex bg-grey-5 justify-center items-center rounded-full"},i.createElement(d.Z,{name:"add-color",style:{width:12,height:12},className:"text-primary",onClick:function(){k(!0)}})),N.map((function(e,r){return i.createElement(m.Z,{key:e,color:e,select:n,onSelect:t,className:"mt-[8px] last-of-type:mr-0",contextMenus:[{key:"delete",text:u.formatMessage({id:"delete"}),icon:{name:"delete"},action:function(){!function(e){var t=S.filter((function(t){return t!==e}));E(y.$K(t)),(0,v.a1)()}(e)},itemClassName:"deleteItem"}]})})))),h&&i.createElement(P,{relativeRef:L,color:n,updateColor:function(e){t(e),function(e){var t,n=x(new Set((t=[e]).concat.apply(t,x(S)))).slice(0,7);E(y.$K(n)),(0,v.a1)(),b.Z.projectListUi("list_color","custom")}(e),k(!1)},dismiss:function(){k(!1)}}))},P=function(e){var t=e.color,n=e.updateColor,o=e.dismiss,a=e.relativeRef,s=(0,g.v9)((function(e){return(0,v.uW)(e)})),c=(0,g.v9)((function(e){return(0,k.$o)()})),d=(0,f.pl)(t)?s.length>0?s[0]:c?"#FFFFFF":"#000000":t,m=_((0,i.useState)(d),2),y=m[0],b=m[1],w=(0,p.Z)();return i.createElement(r.Z,{relativeRef:a,hideMenu:o,zIndex:1051,className:"bg-main-background",style:{maxHeight:"none",maxWidth:"none"},placement:"bottom-left",gap:14,gap2:16},i.createElement("div",{style:{padding:"8px 10px"},className:l().picker},i.createElement(u.AI,{disableAlpha:!0,onChange:function(e){return b(e.hex.toUpperCase())},color:y,styles:{default:{picker:{boxShadow:"none",background:"none",fontFamily:"unset"},controls:{alignItems:"center"},body:{padding:"16px 0px 12px"}},disableAlpha:{color:{flex:"none",marginRight:10},swatch:{width:20,height:20,borderRadius:10}}}}),i.createElement("div",{className:"flex justify-end",style:{marginTop:12}},i.createElement(h.Z,{size:"small",onClick:o,color:"transparent"},w.formatMessage({id:"cancel"})),i.createElement("div",{style:{width:12}}),i.createElement(h.Z,{size:"small",onClick:function(){t===y?o():n(y)}},w.formatMessage({id:"save"})))))};var M=function(e){var t=e.relativeRef,n=e.dismiss,o=e.pickColor,a=e.pickedColor,s=e.placement,l=e.gap2,c=e.useInCountdown,u=e.prefixColors,f=e.addNotIncludeThemeColor;return i.createElement(r.Z,{relativeRef:t,hideMenu:n,zIndex:1051,className:"bg-main-background shadow-default dark:shadow-dark-default !max-w-none px-[16px] py-[14px]",style:{maxHeight:"none"},placement:s,gap:10,gap2:l,useNewFixPosition:!0},i.createElement("div",{className:"flex flex-col"},i.createElement(L,{onColorItemClick:o,pickedColor:a,useInCountdown:c,prefixColors:u,addNotIncludeThemeColor:f})))}},QZFz:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("Lxla"),s=n("eDHg"),l=n("wOLI"),c=n("+nq8"),u=n("1Cyt"),f=n("NW6w"),d=n("5WEu");function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.Z=function(e){var t=e.defaultColor,n=e.onPick,i=e.noColor,p=void 0===i?"":i,m=e.placement,g=void 0===m?"bottom-right":m,v=e.gap2,y=e.useInCountdown,b=h((0,r.useState)(t),2),k=b[0],w=b[1],C=(0,s.D9)(k),x=h((0,r.useState)(!1),2),_=x[0],S=x[1],E=(0,r.useRef)(null),O=(0,f.v9)((function(e){return(0,d.$o)()})),T=(0,r.useCallback)((function(e){k===e?w(p):w(e)}),[p,k]);(0,r.useEffect)((function(){C!==k&&n(k)}),[n,k,C]);var L="transparent"!==k;return r.createElement("div",{className:o()("jColorSelect")},r.createElement("div",{key:k,className:o()("color","relative cursor-pointer"),onClick:function(){S(!0)},ref:E,style:{width:18,height:18,lineHeight:"18px"}},r.createElement("div",{className:"rounded-full absolute inset-0"},L?r.createElement(r.Fragment,null,r.createElement("div",{className:"absolute overflow-hidden rounded-full",style:{left:-1,top:-1,right:-1,bottom:-1,background:"url(".concat(O?c.Z:u.Z,")"),backgroundSize:"100%"}}),r.createElement("div",{className:"absolute z-10 rounded-full overflow-hidden bg-main-background",style:{left:3,right:3,top:3,bottom:3}},r.createElement("div",{className:"absolute rounded-full overflow-hidden",style:{left:0,right:0,top:0,bottom:0,background:k}}))):r.createElement("div",{className:"absolute overflow-hidden rounded-full",style:{left:0,top:0,right:0,bottom:0,background:"url(".concat(l.Z,")"),backgroundSize:"100%"}}))),_&&r.createElement(a.Z,{relativeRef:E,dismiss:function(){S(!1)},pickedColor:k,pickColor:T,placement:g,gap2:v,useInCountdown:y}))}},"14Z0":function(e,t,n){"use strict";var r=n("q1tI"),i=n("EPMa"),o=n.n(i);t.Z=function(e){var t=e.select,n=e.onSelect,i=e.marginRight,a=e.className;return"transparent"===t?r.createElement("div",{style:{width:18,height:18,marginRight:null!==i&&void 0!==i?i:8},className:o()("rounded-full cursor-pointer relative flex items-center justify-center",a),onClick:n},r.createElement("div",{className:"bg-primary absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{width:20,height:20,zIndex:-2}}),r.createElement("div",{className:"bg-main-background absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{width:16,height:16,zIndex:-1}}),r.createElement("div",{style:{width:12,height:12},className:"rounded-full overflow-hidden cursor-pointer relative border border-solid border-[#DDDDDD] dark:border-[#575759]"},r.createElement("div",{style:{width:1,height:"20px",transform:"translate(-50%, -50%) rotate(45deg)",top:"50%",left:"50%",position:"absolute",backgroundColor:"#FF6161"}}))):r.createElement("div",{style:{width:18,height:18,marginRight:null!==i&&void 0!==i?i:8},className:o()("rounded-full overflow-hidden cursor-pointer relative border border-solid border-[#DDDDDD] dark:border-[#575759]",a),onClick:n},r.createElement("div",{style:{width:1,height:"20px",transform:"translate(-50%, -50%) rotate(45deg)",top:"50%",left:"50%",position:"absolute",backgroundColor:"#FF6161"}}))}},XJoh:function(e,t,n){"use strict";n.d(t,{I:function(){return w}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("4mDm"),n("2B1R"),n("7+zs"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("AtZj"),s=n("4+DD"),l=n("UDbp"),c=n("z8Uv"),u=n("y8mg"),f=n.n(u);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function p(e,t,n){return t=g(t),function(e,t){if(t&&("object"===d(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}var k=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(n=p(this,t,[e]),"wrapperRef",void 0),y(n,"relativeRef",r.createRef()),y(n,"map",void 0),y(n,"debounceOpenMenu",f().debounce((function(){n.openMenu()}),200));var i=e.listData,o=e.selectedKey;if(null==i||null==o)throw new Error("do not have listData or selectedKey.");return n.map={},i.forEach((function(e){n.map[e.key+""]={key:e.key,value:e.value}})),n.state={downListShow:!1},n.toogleDownList=n.toogleDownList.bind(n),n.closeMenu=n.closeMenu.bind(n),n.openMenu=n.openMenu.bind(n),n.selectOption=n.selectOption.bind(n),n.wrapperRef=r.createRef(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(i=[{key:"componentDidUpdate",value:function(e,t){var n=this.state.downListShow;!t.downListShow&&n&&this.wrapperRef.current&&s.iD($(this.wrapperRef.current)),t.downListShow&&!n&&this.wrapperRef.current&&s.Dh($(this.wrapperRef.current))}},{key:"componentWillUnmount",value:function(){this.wrapperRef.current&&s.Dh($(this.wrapperRef.current))}},{key:"toogleDownList",value:function(e){e.stopPropagation(),this.state.downListShow?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){this.setState({downListShow:!0})}},{key:"closeMenu",value:function(){this.setState({downListShow:!1})}},{key:"selectOption",value:function(e){e.domEvent;var t=e.key,n=this.props,r=n.beforeOnSelected,i=n.selectedKey,o=n.onSelected,a=(n.hover,t);if(r&&"function"===typeof r&&r(a))this.closeMenu();else{if(a!==i&&this.map[a]){var s=this.map[a].key,l=this.map[a].value;o&&"function"===typeof o&&o(s,l)}this.debounceOpenMenu.cancel(),this.closeMenu()}}},{key:"render",value:function(){var e=this,t=this.props,n=t.listData,i=t.selectedKey,a=t.style,s=t.trigger,u=t.hover,f=t.renderListData,d=this.state.downListShow,h=(f||n).map((function(t){return"divider"===t.key?r.createElement("div",{key:t.key,className:"divider py-[4px]",onClick:function(e){e.preventDefault(),e.stopPropagation()}},r.createElement("div",{className:"bg-grey-5 h-[1px]"})):r.createElement(l.gO,{key:t.key,onClick:e.selectOption,withChecker:!0,title:t.value})}));return r.createElement(r.Fragment,null,r.createElement("div",{className:o()("select-menu relative",{open:d}),style:a,onClick:function(t){u?t.currentTarget.contains(t.target)&&e.debounceOpenMenu():e.toogleDownList(t)},onMouseEnter:function(t){u&&e.debounceOpenMenu()},onMouseLeave:function(t){u&&(e.debounceOpenMenu.cancel(),e.closeMenu())},ref:this.relativeRef},r.createElement(w,{title:s||(this.map[i]?this.map[i].value:""),hover:u,downIconVisible:!u,open:d}),d&&r.createElement(c.Z,{relativeRef:this.relativeRef,hideMenu:this.closeMenu,className:"!max-h-none",placement:"bottom-right",gap:8,gap2:18,hoverCover:u},r.createElement("div",{className:"select-menu select-list flex h-full overflow-hidden cursor-pointer flex-col"},r.createElement("div",{className:"antiscroll-wrap",ref:this.wrapperRef},r.createElement("div",{className:"antiscroll-inner max-h-[400px]"},r.createElement(l.ZP,{tabIndex:-1,selectedKeys:[i]},h)))))))}}])&&h(n.prototype,i),a&&h(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);t.Z=k;var w=function(e){var t=e.title,n=e.hover,i=void 0!==n&&n,s=e.downIconVisible,l=void 0===s||s,c=e.open,u=void 0!==c&&c;return r.createElement("div",{className:o()("select-title rounded-s cursor-pointer group relative select-none"),"data-toggle":"dropdown",style:{height:18,paddingLeft:8,paddingRight:i?8:20,lineHeight:"18px",marginRight:i?-8:-6}},r.createElement("div",{style:{top:-3,bottom:-3,left:0,right:0,zIndex:0},className:o()("absolute rounded-hover-bg",{"group-hover:bg-grey-6":!i,"bg-grey-6":u})}),r.createElement("div",{className:"text-s text-grey-60 truncate max-w-full"},t),l&&r.createElement(a.Z,{name:"drop-menu-trigger","data-toggle":"dropdown",className:"select-arrow text-grey-40 cursor-pointer absolute top-1/2 transform -translate-y-1/2",style:{width:12,height:12,right:4}}))}},bjJs:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});n("pNMO"),n("4Brf"),n("0oug"),n("TeQF"),n("4mDm"),n("zKZe"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("FZtP"),n("3bBZ"),n("gXIK"),n("yq1k"),n("7+zs"),n("qePV"),n("JTJg");var r=n("q1tI"),i=n("dgKm"),o=n("EPMa"),a=n.n(o),s={topLeft:{points:["bl","tl"],offset:[0,0],targetOffset:[0,4]},topCenter:{points:["bc","tc"],offset:[0,0],targetOffset:[0,4]},topRight:{points:["br","tr"],offset:[0,0],targetOffset:[0,4]},bottomLeft:{points:["tl","bl"],offset:[0,0],targetOffset:[0,-4]},bottomCenter:{points:["tc","bc"],offset:[0,0],targetOffset:[0,-4]},bottomRight:{points:["tr","br"],offset:[0,0],targetOffset:[0,-4]},rightTop:{points:["tl","tr"],offset:[4,0],targetOffset:[0,0]},rightBottom:{points:["bl","br"],offset:[4,0],targetOffset:[0,0]}},l=n("Ag2S"),c=n("y8mg"),u=n.n(c),f=n("mLa8"),d=n("RDjN"),h=["minMenuWidthMatchTrigger","onVisibleChange","onMenuClick","children","menu","menuClassName","menuStyle","transitionName","animation","align","placement","action","getMenuContainer","visible","defaultVisible","disabled","autoAdjustOverflow","onShow","onHide","scrollToSelected","scrollToSelectedTopGetter","alignPoint","nodePosHandleAfterVisible","withAntiscroll"];function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function g(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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function k(e,t,n){return t=C(t),function(e,t){if(t&&("object"===p(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],C(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function _(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var E=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_(n=k(this,t,[e]),"escListenId",void 0),_(n,"isEscEventExist",!1),_(n,"triggerRef",void 0),_(n,"menuRef",void 0),_(n,"mouseDownEl",void 0),_(n,"hide",(function(){n.onVisibleChange(!1)})),_(n,"onClick",(function(e){e.stopPropagation?e.stopPropagation():e.domEvent.stopPropagation();var t=n.props,r=t.menu.props;"visible"in t||n.mouseDownEl&&$(n.mouseDownEl).closest(".antiscroll-scrollbar").length||n.setState({visible:!1}),n.mouseDownEl=null,t.onMenuClick&&t.onMenuClick(e),r.onClick&&r.onClick(e)})),_(n,"onMouseDown",(function(e){n.props.withAntiscroll&&(n.mouseDownEl=e.target)})),_(n,"onVisibleChange",(function(e){var t=n.props.onVisibleChange;"visible"in n.props||n.setState({visible:e}),null===t||void 0===t||t(e)})),_(n,"afterVisibleChange",(function(e){var t=n.props,r=t.minMenuWidthMatchTrigger,i=t.nodePosHandleAfterVisible,o=t.scrollToSelected,a=t.scrollToSelectedTopGetter,s=t.onShow,l=t.onHide;if(e&&r){var c=n.getPopupDomNode(),u=n.triggerRef.current;u&&c&&(u.offsetWidth>c.offsetWidth&&(c.style.minWidth="".concat(u.offsetWidth,"px"),n.menuRef.current&&n.menuRef.current.forceAlign&&n.menuRef.current.forceAlign()),i&&i(c,u))}if(e){var f=n.getPopupDomNode();if(f&&o){var d=f.querySelector("ul.dropdown-menu-menu"),h=f.querySelector('li[role="menuitem"][class*="-menu-item-selected"], li[class*="-submenu-selected"]');if(d&&h){var p=h.offsetTop-d.offsetHeight/2;d.scrollTop=a?a(p):p}}f&&(null===s||void 0===s||s(f))}else{var m=n.getPopupDomNode();m&&(null===l||void 0===l||l(m))}})),_(n,"getAlignPoint",(function(){var e,t=n.props,r=t.alignPoint,i=t.action;return(r||i&&i.includes("contextMenu"))&&(e=!0),e})),_(n,"getTriggerOtherProps",(function(){var e=n.props;e.minMenuWidthMatchTrigger,e.onVisibleChange,e.onMenuClick,e.children,e.menu,e.menuClassName,e.menuStyle,e.transitionName,e.animation,e.align,e.placement,e.action,e.getMenuContainer,e.visible,e.defaultVisible,e.disabled,e.autoAdjustOverflow,e.onShow,e.onHide,e.scrollToSelected,e.scrollToSelectedTopGetter,e.alignPoint,e.nodePosHandleAfterVisible,e.withAntiscroll;return y(e,h)})),n.state="visible"in e?{visible:e.visible||!1}:{visible:!!e.defaultVisible},n.escListenId=u().uniqueId(),n.menuRef=r.createRef(),n.triggerRef=r.createRef(),n.mouseDownEl=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this,t=this.props.action,n=this.state.visible;t.includes("contextMenu")&&this.triggerRef.current&&$(this.triggerRef.current).on("mousedown",(function(){e.onVisibleChange(!1)})),n&&!t.includes("hover")&&(l.jc.subscribe(this.escListenId,"dropdown",this.hide),this.isEscEventExist=!0)}},{key:"componentWillUnmount",value:function(){this.props.action.includes("contextMenu")&&this.triggerRef.current&&$(this.triggerRef.current).off("mousedown"),l.jc.unSubscribe(this.escListenId)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.visible,n=!!t;void 0!==t&&n!==this.state.visible&&this.setState({visible:n})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.visible,r=this.props.action;t.visible===n||!n||this.isEscEventExist||r.includes("hover")||l.jc.subscribe(this.escListenId,"dropdown",this.hide),t.visible===n||n||l.jc.unSubscribe(this.escListenId)}},{key:"getMenuElement",value:function(){var e=this.props,t=e.menu,n=e.prefixCls,i={prefixCls:"".concat(n,"-menu"),onClick:this.onClick,onMouseDown:this.onMouseDown,tabIndex:-1};return"string"===typeof t.type&&delete i.prefixCls,r.createElement(f.ZP,{autoFocus:!0},r.cloneElement(t,i))}},{key:"getTriggerElement",value:function(){var e=this.props.children,t=this.state.visible,n={ref:this.triggerRef,className:a()(e.props.className,{"dropdown-toggle-active":t})};return r.cloneElement(e,n)}},{key:"getPopupDomNode",value:function(){var e;return null===(e=this.menuRef.current)||void 0===e?void 0:e.popupElement}},{key:"getAlign",value:function(){return this.props.autoAdjustOverflow?{overflow:{adjustX:1,adjustY:1,shiftX:!0,shiftY:!0}}:{overflow:{adjustX:0,adjustY:0}}}},{key:"render",value:function(){var e=this.props,t=e.transitionName,n=e.animation,o=e.align,l=e.placement,c=e.getMenuContainer,u=e.menuClassName,f=e.menuStyle,h=e.disabled,p=e.action,g=v({},f),y=v(v({},o),this.getAlign());if(h)return this.getTriggerElement();var b=this.state.visible;return r.createElement(i.Z,m({},this.getTriggerOtherProps(),{alignPoint:this.getAlignPoint(),ref:this.menuRef,popupClassName:a()(u,d.SIv),popupStyle:g,action:p,popupPlacement:l,popupAlign:y,popupTransitionName:t,popupAnimation:n,popupVisible:b,afterPopupVisibleChange:this.afterVisibleChange,popup:this.getMenuElement(),onPopupVisibleChange:this.onVisibleChange,getPopupContainer:c,builtinPlacements:s}),this.getTriggerElement())}}])&&b(n.prototype,o),c&&b(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,c}(r.Component);_(E,"defaultProps",{minMenuWidthMatchTrigger:!1,prefixCls:"dropdown-menu",action:["click"],menuClassName:"",menuStyle:{},defaultVisible:!1,onVisibleChange:function(e){},placement:"bottomLeft",disabled:!1,destroyPopupOnHide:!0,autoAdjustOverflow:!0,scrollToSelected:!0,withAntiscroll:!1})},PuJ2:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("fbCW"),n("4mDm"),n("+2oP"),n("7+zs"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("3KU8"),o=n.n(i),a=n("aALo"),s=n("bjJs"),l=n("UDbp"),c=n("EPMa"),u=n.n(c),f=n("xS9v"),d=n("schq"),h=n("4+DD"),p=n("mLa8");function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function v(e,t,n){return t=b(t),function(e,t){if(t&&("object"===m(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function w(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}var x=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w(n=v(this,t,[e]),"onVisibleChange",(function(e){var t=n.props,r=t.onCancel,i=t.beforeOnVisibleChange,o=t.preventShowAction;!1===e&&(n.setState({selected:n.defaultSelectedKeys}),r&&r({selectedKeys:n.defaultSelectedKeys})),i(e),e&&o?o():n.setState({visible:e},(function(){n.props.onVisibleChange&&n.props.onVisibleChange(e)}))})),w(n,"saveSelected",(function(e){var t=e.selectedKeys,r=n.props.onSelectChange;0===t.length||"none"===t[t.length-1]?t=["none"]:t.length>1&&"none"===t[0]&&(t=t.slice(1)),n.setState({selected:t}),r&&r({selectedKeys:t})})),w(n,"confirm",(function(){var e=n.props.onConfirm;n.setState({visible:!1}),e&&e({selectedKeys:n.state.selected}),n.defaultSelectedKeys=f.d9(n.state.selected)})),w(n,"cancel",(function(){var e=n.props.onCancel;n.setState({visible:!1,selected:n.defaultSelectedKeys}),e&&e({selectedKeys:n.defaultSelectedKeys})})),n.state={visible:e.defaultVisible,selected:e.selectedKeys},n.defaultSelectedKeys=f.d9(e.selectedKeys),n.confirm=n.confirm.bind(n),n.cancel=n.cancel.bind(n),n.onVisibleChange=n.onVisibleChange.bind(n),n.saveSelected=n.saveSelected.bind(n),n.onShow=n.onShow.bind(n),n.wrapperRef=r.createRef(),n.menuListRef=r.createRef(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this;setTimeout((function(){e.wrapperRef.current&&h.iD($(e.wrapperRef.current))}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.visible,r=this.props.onMenuVisibleChange;n!==t.visible&&r&&r(n)}},{key:"componentWillReceiveProps",value:function(e){var t=e.defaultSelected,n=e.selectedKeys;void 0!==t&&this.setState({selected:t}),n!==this.state.selected&&this.setState({selected:n})}},{key:"componentWillUnmount",value:function(){this.wrapperRef.current&&h.Dh($(this.wrapperRef.current))}},{key:"resetDefaultSelectKeys",value:function(e){this.defaultSelectedKeys=f.d9(e)}},{key:"hideMenu",value:function(){this.setState({visible:!1})}},{key:"showMenu",value:function(){this.setState({visible:!0})}},{key:"onShow",value:function(e){var t=$(e).find(".antiscroll-wrap");h.iD(t),this.props.onShow&&this.props.onShow(e),this.props.keepMenuWidth&&(this.menuListRef.current.style.width=e.getBoundingClientRect().width+"px")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.selectMenu,i=e.selectListHeader,o=e.confirmText,c=e.cancelText,f=e.className,d=e.selectedKeys,h=e.minMenuWidthMatchTrigger,m=e.placement,g=e.autoAdjustOverflow,v=e.intl,y=e.confirmDisabled,b=e.emptyContent,k=e.menuListClassName,w=e.menuListWrapperClassName,C=e.menuUlClassName,x=e.controlClassName,_=e.ExtraFooterComponent,S=r.createElement(p.ZP,null,r.createElement("div",{className:u()("select-list w-full cursor-pointer",k),ref:this.menuListRef},i,r.createElement("div",{className:u()("list-wrapper antiscroll-wrap",w),ref:this.wrapperRef},n?r.createElement(l.ZP,{className:u()("antiscroll-inner",C),multiple:!0,onSelect:this.saveSelected,onDeselect:this.saveSelected,selectedKeys:d,prefixCls:"option"},n):r.createElement("div",{className:"antiscroll-inner"},b)),_,r.createElement("div",{className:u()("control",null!==x&&void 0!==x?x:"relative p-[12px] border-t border-solid border-grey-10 bg-main-background z-[1]")},r.createElement("div",{className:"btns flex w-full"},r.createElement(a.Z,{type:"cancel",size:"tiny",className:"first:mr-[12px] flex-auto min-w-auto",onClick:this.cancel},c||v.formatMessage({id:"cancel"})),r.createElement(a.Z,{size:"tiny",onClick:this.confirm,disabled:y,className:"btn-confirm flex-auto min-w-auto"},o||v.formatMessage({id:"ok"}))))));return r.createElement(s.Z,{onVisibleChange:this.onVisibleChange,visible:this.state.visible,menu:S,menuClassName:u()("multi-select-menu",f),minMenuWidthMatchTrigger:h,placement:m,autoAdjustOverflow:g,onShow:this.onShow,getMenuContainer:this.props.getMenuContainer,boult:this.props.isBoult,align:this.props.align},t)}}])&&g(n.prototype,i),o&&g(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);w(x,"propTypes",{minMenuWidthMatchTrigger:o().bool,className:o().string,confirmText:o().string,cancelText:o().string,selectMenu:o().node,emptyContent:o().node,children:o().any,defaultSelected:o().array,defaultVisible:o().bool,selectedKeys:o().array,onCancel:o().func,onConfirm:o().func,onSelectChange:o().func,placement:o().string,onShow:o().func,menuListClassName:o().string,menuListWrapperClassName:o().string,menuUlClassName:o().string,controlClassName:o().string,beforeOnVisibleChange:o().func,onMenuVisibleChange:o().func,preventShowAction:o().func,keepMenuWidth:o().bool,ExtraFooterComponent:o().node}),w(x,"defaultProps",{defaultVisible:!1,selectedKeys:[],minMenuWidthMatchTrigger:!1,placement:"bottomCenter",onShow:function(){},beforeOnVisibleChange:function(){},keepMenuWidth:!1,ExtraFooterComponent:null}),t.Z=(0,d.ZP)(x,{forwardRef:!0})},PLEF:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("fbCW"),n("4mDm"),n("2B1R"),n("7+zs"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("3KU8"),o=n.n(i),a=n("Eh+D"),s=n("EPMa"),l=n.n(s),c=n("bjJs"),u=n("UDbp"),f=n("4+DD"),d=n("AtZj"),h=n("yhZ0");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function g(e,t,n){return t=y(t),function(e,t){if(t&&("object"===p(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function k(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var C=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),k(n=g(this,t,[e]),"saveTrigger",(function(e){n.trigger=e})),n.state={selectedKeys:e.selectedKeys||[e.noneKey],isMenuShow:!1},n.onSelect=n.onSelect.bind(n),n.onClick=n.onClick.bind(n),n.nodePosHandleAfterVisible=n.nodePosHandleAfterVisible.bind(n),n.rootRef=r.createRef(),n.onShow=n.onShow.bind(n),n.onVisibleChange=n.onVisibleChange.bind(n),n.wrapperRef=r.createRef(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.menu,n=e.menuClassName,i=e.getMenuContainer,o=e.isReadOnly,a=e.minMenuWidthMatchTrigger,s=e.withAntiscroll,f=e.placement,d=e.innerMenuClassName,h=e.align,p=e.scrollToSelectedTopGetter,m=s?r.createElement("div",{className:"list-wrapper antiscroll-wrap",ref:this.wrapperRef},r.createElement(u.ZP,{className:l()("antiscroll-inner",d),selectedKeys:this.state.selectedKeys,onSelect:this.onSelect,onClick:this.onClick,prefixCls:"dropdown-menu-menu"},t)):r.createElement(u.ZP,{selectedKeys:this.state.selectedKeys,onSelect:this.onSelect,onClick:this.onClick,className:d},t);return o?this.getSelectToggle():r.createElement(c.Z,{ref:this.rootRef,menu:m,menuClassName:n,minMenuWidthMatchTrigger:a,getMenuContainer:i,nodePosHandleAfterVisible:this.nodePosHandleAfterVisible,onShow:this.onShow,onVisibleChange:this.onVisibleChange,placement:f,align:h,scrollToSelectedTopGetter:p,withAntiscroll:s},this.getSelectToggle())}},{key:"componentDidMount",value:function(){var e=this;this.props.withAntiscroll&&setTimeout((function(){e.wrapperRef.current&&f.iD($(e.wrapperRef.current))}))}},{key:"componentWillUnmount",value:function(){this.props.withAntiscroll&&this.wrapperRef.current&&f.Dh($(this.wrapperRef.current))}},{key:"onShow",value:function(e){if(this.props.withAntiscroll){var t=$(e).find(".antiscroll-wrap");f.iD(t)}this.props.onShow&&this.props.onShow(e)}},{key:"onVisibleChange",value:function(e){this.props.onVisibleChange&&this.props.onVisibleChange(e),this.props.withHoverClass&&this.setState({isMenuShow:e})}},{key:"getSelectToggle",value:function(){var e=this.props,t=e.showArrow,n=e.children,i=e.isReadOnly,o=e.titleClassName,a=e.type,s=e.extraTitleWrapperClassName,c=e.withHoverClass,u=this.state.isMenuShow,f="normal"===a?"h-[32px] leading-[30px] rounded-select-trigger":"h-[24px] leading-[22px] rounded-default",p="tiny"===a?"text-[13px]":"text-s",m=n||r.createElement(h.Z,{className:l()("group/dropdownWithTittle",o||"multi-select-toggle select-menu relative w-full cursor-pointer")},r.createElement("div",{className:l()("select-title max-w-full w-full truncate bg-main-background border border-solid border-grey-10 cursor-pointer",p,f,s,{readonly:i},c&&u&&"border-primary",c&&!u&&"border-grey-10",c&&"group-hover/dropdownWithTittle:border-primary",!c&&"border-grey-10"),style:{paddingLeft:8,paddingRight:20}},this.getTitle()),!i&&t&&r.createElement(d.Z,{name:"thin-triangle-down",className:l()("select-arrow text-grey-40 w-[12px] h-[12px] absolute top-1/2 transform -translate-y-1/2"),style:{right:8}})),g={ref:this.saveTrigger};return r.cloneElement(m,g)}},{key:"nodePosHandleAfterVisible",value:function(e,t){this.props.nodePosHandleAfterVisible&&this.props.nodePosHandleAfterVisible(e,t)}},{key:"componentWillReceiveProps",value:function(e){var t=e.selectedKeys;t&&!(0,a.is)(this.state.selectedKeys,t)&&this.setState({selectedKeys:t})}},{key:"getTitle",value:function(){var e,t=this.props,n=t.noneKey,r=t.defaultTitle,i=t.map,o=this.state.selectedKeys[0];return n&&r&&o===n?r:null!==(e=i[o])&&void 0!==e?e:i[n]}},{key:"onSelect",value:function(e){var t=e.selectedKeys,n=this.props,r=n.onSelect,i=n.onBeforeSelect;i&&i(t)||(this.setState({selectedKeys:t}),r&&r({selectedKeys:t}))}},{key:"onClick",value:function(e){var t=this.props,n=t.onClick,r=t.withAntiscroll;n&&n(e),e&&e.domEvent&&"keydown"===e.domEvent.type&&r&&this.wrapperRef.current&&$(this.wrapperRef.current).click(),this.setState({isMenuShow:!1})}},{key:"hideMenu",value:function(){this.rootRef.current.setState({visible:!1})}},{key:"showMenu",value:function(){this.rootRef.current.setState({visible:!0})}}])&&m(n.prototype,i),o&&m(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);k(C,"propTypes",{map:o().object,selectedKeys:o().array,menuClassName:o().string,titleClassName:o().string,onSelect:o().func,onBeforeSelect:o().func,showArrow:o().bool,minMenuWidthMatchTrigger:o().bool,withAntiscroll:o().bool,extraTitleWrapperClassName:o().string,withHoverClass:o().bool,innerMenuClassName:o().string,scrollToSelectedTopGetter:o().func}),k(C,"defaultProps",{showArrow:!0,noneKey:"none",minMenuWidthMatchTrigger:!0,withAntiscroll:!1,type:"normal",withHoverClass:!1}),t.Z=C},oIzh:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("TeQF"),n("4mDm"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("J8mR"),o=n("4oOC"),a=n("AxaE"),s=n("pWE6"),l=(n("Kefl"),n("iEvi")),c=n("Mfe1"),u=n("4+DD");function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){var t=e.value,n=e.setValue,f=e.options,d=(0,a.Z)((function(){return"editor-".concat(Date.now(),"-").concat(Math.random())}),[]),p=(0,r.useRef)(),m=(null===f||void 0===f?void 0:f.readOnly)||!1,g=(0,r.useMemo)((function(){return h(h({id:d,mode:"markdown",keyMap:"ticktickmd",theme:"markdown-default",lineWrapping:!0,indentUnit:4,tabSize:4,indentWithTabs:!1,spellcheck:!0,selectionsMayTouch:!1,lineNumbers:!1,dragDrop:!0,cursorScrollMargin:0,styleSelectedText:!0,showCursorWhenSelecting:!1,cursorHeight:1,singleCursorHeightPerLine:!1},f),{},{disableInput:m,readOnly:m,cursorBlinkRate:m?-1:530})}),[d,f,m]),v=(0,r.useRef)(),y=(0,r.useRef)(t),b=(0,r.useMemo)((function(){var e=p.current;if(!e)return!1;if(!e.hasFocus())return!1;if(y.current===t)return!0;for(var n=e.getCursor(),r=y.current,i=0;i<r.length&&i<t.length&&r[i]===t[i];)i++;return i<=e.indexFromPos(n)&&(e.setCursor(e.posFromIndex(i)),!1)}),[t]);return r.createElement(i.fk,{autoCursor:b,value:t,options:g,editorDidMount:function(e){if(p.current!==e){var t;null===(t=v.current)||void 0===t||t.reset(),v.current=new l.ZP(e);var n=new o.Z(e);v.current.startFoldImmediately(),n.start(),e.setOption("ticktickMDFold",v.current)}p.current=e},onBeforeChange:function(e,t,r){y.current=r,n(r)},onSelection:function(e,t){(0,s.WO)(e,t)},onChange:function(e,t,n){},onFocus:function(e,t){m&&(t.preventDefault(),t.stopPropagation())},onCursorActivity:function(e){!function(e){if(e.hasFocus()){var t=e.getWrapperElement();if(t){var n=(0,u.rP)(t.parentElement);n&&setTimeout((function(){(0,c.Pl)(e,e.listSelections()[0].head,$(n));var t=(0,c.Pl)(e,e.listSelections()[0].head,$(n));t>=0&&(n.scrollTop=t)}))}}}(e)}})}},Kefl:function(e,t,n){"use strict";n("pUFS"),n("PE7j"),n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("fbCW"),n("yq1k"),n("4mDm"),n("Junv"),n("7+zs"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("JTJg"),n("PKPk"),n("SYor"),n("GKVU"),n("3bBZ");var r=n("Nr3o"),i=n.n(r),o=n("q1tI"),a=n("i8i4"),s=n("V/jI"),l=n("Mfe1"),c=n("iEvi"),u=n("PcT8"),f=n("DhZW");function d(e,t,n){var r=(0,u.G)(e),i=r.findSpanWithTypeAt(t,"linkText");if(!i)return null;var o=r.findSpanWithTypeAt({line:t.line,ch:i.end+1},"linkHref");if(!o)return null;var a=o.begin+1,s=o.end-1;if(a>=s)return null;var l={line:t.line,ch:a},c={line:t.line,ch:s};return(0,f.V9)(e,l,c)}(0,c.$D)("link",(function(e,t){var n=e.cm,r=t.state.localState||t.state,i=!r.image&&t.string.includes(r.image);return"["!==t.string||!r.linkText||r.linkTitle||i?null:d(n,{line:e.lineNo,ch:t.start},(function(t,n){return e.requestRange(t,n)}))}),!0);var h=n("AqaH"),p=n("aALo"),m=n("pWE6"),g=n("2sNt"),v=n("mLa8"),y=n("EPMa"),b=n.n(y),k=n("RDjN");function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function C(e,t,n){return t=_(t),function(e,t){if(t&&("object"===w(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,x()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function T(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}i().defineExtension("showLink",(function(e){var t=this,n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){var r=(0,l.pw)(n[0]);n[0].head.line!=n[0].anchor.line&&(r=[{line:r[0].line,ch:r[0].ch},{line:r[0].line,ch:99999999}],this.setSelection(r[0],r[1]));var o=this.getRange(r[0],r[1]);e.title=o,e.titleRange=r}else{var a=this.getCursor(),s=this.getLineTokens(a.line),c=(0,m.Rh)(s),u=function(n){if(n&&n.type)if("md-link"===n.type){var r=(0,m.xO)(n.string);if(r)return t.setSelection(i().Pos(a.line,n.start),i().Pos(a.line,n.end)),e.title=r.title,e.url=r.url,!0}else if(n.type.includes("link"))return e.url=n.string,t.setSelection(i().Pos(a.line,n.start),i().Pos(a.line,n.end)),!0;return!1};if(!u(c.find((function(e){return a.ch>=e.start&&a.ch<=e.end}))))u(c.reverse().find((function(e){return a.ch>=e.start&&a.ch<=e.end})))}this.state.linkWidgetActive&&this.state.linkWidgetActive.close();var f=new P(this,e);this.state.linkWidgetActive=f,f.show()}}));var P=function(){return T((function e(t,n){E(this,e),this.cm=t,this.options=n,this.onContainerClick=this.onContainerClick.bind(this),this.onContainerKeyDown=this.onContainerKeyDown.bind(this),this.confirm=this.confirm.bind(this),this.close=this.close.bind(this),this.onRemove=this.onRemove.bind(this)}),[{key:"show",value:function(){var e=this.cm,t=this.options,n=t.title,r=t.url,s=this.smallerSelectionPos(),l=this.getAdjustingScrollTop(s);l>=0&&(this.getScrollElt()[0].scrollTop=l);var c=this.container=document.body,u=e.charCoords(s),f=o.createElement(M,{theme:e.options.theme,title:n,url:r,showRect:u,onConfirm:this.confirm,onCancel:this.close,onRemove:this.onRemove}),d=this.renderingElt=document.createElement("div");c.appendChild(d),this.linkModal=a.render(f,d),i().on(c,"mousedown",this.onContainerClick),i().on(this.modalDom(),"keydown",this.onContainerKeyDown)}},{key:"isCursorVisible",value:function(){return this.getAdjustingScrollTop(this.smallerSelectionPos())<0}},{key:"getScrollElt",value:function(){return $(this.cm.display.input.textarea).parents(".antiscroll-inner").eq(0)}},{key:"getAdjustingScrollTop",value:function(e){return(0,l.Pl)(this.cm,e,this.getScrollElt())}},{key:"modalDom",value:function(){return this.linkModal?this.linkModal.modalRefs.current:null}},{key:"onRemove",value:function(){this.handleAction(!0)}},{key:"close",value:function(){this.cm.state.linkWidgetActive===this&&(this.cm.state.linkWidgetActive=null,i().off(this.container,"mousedown",this.onContainerClick),this.modalDom()&&i().off(this.modalDom(),"keydown",this.onContainerKeyDown),a.unmountComponentAtNode(this.renderingElt),this.cm.hadFocused&&this.isCursorVisible()&&this.cm.focus(),this.cm.somethingSelected()&&this.cm.setCursor(this.cm.getCursor()))}},{key:"confirm",value:function(){this.handleAction(!1)}},{key:"handleAction",value:function(e){var t=this.linkModal.getUrl().trim();if(t){var n=this.cm,r=this.linkModal.getTitle();if(!r){var i=(0,m.WK)(t);if(i){var o=i.taskId,a=s.U2("my_task"),l=(0,g.FOH)(o);(r=l?l.get("title"):a)||(r=a)}else r=t}var u,f=this.options.titleRange,h=e?"".concat(r):"[".concat(r,"](").concat(t,")"),p=null;if(this.cm.somethingSelected()&&(p=n.listSelections()[0]),this.close(),f?(u=f[0],n.replaceRange(h,f[0],f[1],"manualMarkText")):(p&&n.setSelection(p.anchor,p.head),u=this.smallerSelectionPos(),n.replaceSelection(h,void 0,"manualMarkText")),this.cm.setCursor(this.cm.getCursor()),this.cm.focus(),u){var v=d(n,u);v&&(v.on("clear",(function(e,t){(0,c.LX)(e.line)})),v.foldType="link")}}else this.close()}},{key:"smallerSelectionPos",value:function(){return(0,l.pw)(this.cm.listSelections()[0])[0]}},{key:"onContainerClick",value:function(e){this.modalDom()&&(i().contains(this.modalDom(),e.target)||this.close())}},{key:"onContainerKeyDown",value:function(e){switch(e.keyCode){case 13:e.preventDefault(),this.confirm();break;case 27:e.preventDefault(),this.close()}}},{key:"changeFocus",value:function(){var e=document.activeElement===this.titleElt,t=document.activeElement===this.urlElt;(e||t)&&e?this.urlElt.focus():this.titleElt.focus()}}])}(),M=function(e){function t(e){var n;return E(this,t),(n=C(this,t,[e])).modalRefs=o.createRef(),n.titleRefs=o.createRef(),n.urlRefs=o.createRef(),n.onConfirm=n.onConfirm.bind(n),n.onCancel=n.onCancel.bind(n),n.onRemove=n.onRemove.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),T(t,[{key:"componentDidMount",value:function(){var e=this;this.useEffect();var t=this.props,n=t.title,r=t.url;setTimeout((function(){n?r?e.titleRefs.current&&(e.titleRefs.current.focus(),e.titleRefs.current.select()):e.urlRefs.current&&e.urlRefs.current.focus():e.titleRefs.current&&e.titleRefs.current.focus()}),1)}},{key:"componentDidUpdate",value:function(e,t){this.useEffect()}},{key:"onCancel",value:function(){this.props.onCancel&&this.props.onCancel()}},{key:"onConfirm",value:function(){this.props.onConfirm&&this.props.onConfirm()}},{key:"onRemove",value:function(){this.props.onRemove&&this.props.onRemove()}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.url,r=e.theme,i=e.showRect,a=n?s.U2("edit_link"):s.U2("add_link"),l="px-[12px] rounded-default text-s text-grey placeholder:text-grey-20 border border-solid border-grey-10 dark:bg-[transparent]";return o.createElement(v.ZP,null,o.createElement("div",{className:b()("CodeMirror-link-modal",k.SIv,"".concat(r," absolute overflow-hidden bg-main-background shadow-default dark:shadow-dark-default flex flex-col dark:border dark:border-solid dark:box-content dark:border-grey-10 z-menu")),ref:this.modalRefs,style:{left:i.left,top:i.bottom,borderRadius:12,width:296,height:212}},o.createElement("div",{className:"modal-header flex items-center",style:{padding:"0 20px",height:56}},o.createElement("h1",{className:"modal-title flex-auto font-semibold",style:{fontSize:16,lineHeight:"22px"}},a),o.createElement("a",{className:"modal-close flex-none",onClick:this.onCancel},o.createElement(h.Z,{name:"close",className:"text-grey-40",style:{width:18,height:18}}))),o.createElement("div",{className:"modal-body flex-auto",style:{padding:"0 20px"}},o.createElement("input",{ref:this.titleRefs,className:"link-title input-lrg w-full h-[36px] ".concat(l),type:"text",placeholder:s.U2("text"),defaultValue:t}),o.createElement("input",{ref:this.urlRefs,className:"link-url input-lrg ".concat(l," mt-[12px] w-full h-[36px]"),type:"text",placeholder:s.U2("link"),defaultValue:n,style:{marginTop:10}})),this.renderDefaultFooter()))}},{key:"renderDefaultFooter",value:function(){var e=this.props.title?o.createElement(p.Z,{onClick:this.onRemove,type:"cancel",className:"text-[13px] py-[7px] px-0 min-w-[92px]"},s.U2("remove_link")):o.createElement(p.Z,{onClick:this.onCancel,type:"cancel",className:"text-[13px] py-[7px] px-0 min-w-[92px]"},s.U2("cancel"));return o.createElement("div",{className:"modal-footer flex-none items-center flex justify-end",style:{padding:"0 20px",height:54,marginBottom:4}},e,o.createElement(p.Z,{type:"primary",onClick:this.onConfirm,className:"text-[13px] py-[7px] px-0 min-w-[92px] ml-[10px]",style:{marginLeft:10}},s.U2("confirm")))}},{key:"getTitle",value:function(){return this.titleRefs.current.value}},{key:"getUrl",value:function(){return this.urlRefs.current.value}},{key:"changeFocus",value:function(){var e=this.titleRefs.current,t=this.urlRefs.current,n=document.activeElement===e,r=document.activeElement===t;(n||r)&&n?t.focus():e.focus()}},{key:"useEffect",value:function(){var e=window.innerWidth,t=window.innerHeight,n=this.modalRefs.current,r=this.props.showRect,i=n.getBoundingClientRect();if(i.bottom-t>0){var o=i.bottom-i.top;r.top-(r.bottom-i.top)-o>0&&(n.style.top=r.top-o+"px")}var a=i.right-(e-10);a>0&&(n.style.left=r.left-a-10+"px")}}])}(o.Component);n("pXKo"),n("rE61"),n("pDQq");function D(e){e.state.markedSelection&&e.operation((function(){!function(e){if(!e.somethingSelected())return A(e);if(e.listSelections().length>1)return B(e);var t=e.getCursor("start"),n=e.getCursor("end"),r=e.state.markedSelection;if(!r.length)return R(e,t,n);var i=r[0].find(),o=r[r.length-1].find();if(!i||!o||n.line-t.line<=1||I(t,o.to)>=0||I(n,i.from)<=0)return B(e);for(;I(t,i.from)>0;){r.shift().clear();var a=r[0].find();a&&(i=a)}I(t,i.from)<0&&(i.to.line-t.line<1?(r.shift().clear(),R(e,t,i.to,0)):R(e,t,i.from,0));for(;I(n,o.to)<0;){r.pop().clear();var s=r[r.length-1].find();s&&(o=s)}I(n,o.to)>0&&(n.line-o.from.line<1?(r.pop().clear(),R(e,o.from,n)):R(e,o.to,n))}(e)}))}function j(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation((function(){A(e)}))}i().defineOption("styleSelectedText",!1,(function(e,t,n){var r=n&&n!=i().Init;t&&!r?(e.state.markedSelection=[],e.state.markedSelectionStyle="string"==typeof t?t:"CodeMirror-selectedtext",B(e),e.on("cursorActivity",D),e.on("change",j)):!t&&r&&(e.off("cursorActivity",D),e.off("change",j),A(e),e.state.markedSelection=e.state.markedSelectionStyle=null)}));var N=i().Pos,I=i().cmpPos;function R(e,t,n,r){if(0!==I(t,n))for(var i=e.state.markedSelection,o=e.state.markedSelectionStyle,a=function(){var a=s===t.line?t:N(s,0),l=s>=n.line,c=l?n:N(s,e.getLine(s).length),u=document.createElement("div"),f=0===e.getLine(s).length&&0===c.ch?function(){var t=e.addLineWidget(c.line,u,{className:b()(o)});return{clear:function(){t.clear()},find:function(){return{from:c,to:c}}}}():e.markText(a,c,{className:o});if(null==r?i.push(f):i.splice(r++,0,f),l)return 1;s+=1},s=t.line;!a(););}function A(e){for(var t=e.state.markedSelection,n=0;n<t.length;++n)t[n].clear();t.length=0}function B(e){A(e);for(var t=e.listSelections(),n=0;n<t.length;n++)R(e,t[n].from(),t[n].to())}n("rB9j"),n("Rm1S"),n("FZtP");var Z=n("1/gw");i().registerHelper("hint","preset",(function(e,t){var n=t.source,r=e.getCursor(),o=t.start,a=t.end,s=t.callback,l=t.text,c=[];return n.forEach((function(e){if((0,Z.B)(e.match,l)){var t={key:e.key,displayText:e.match,text:e.complete,hint:function(e,t,n){"function"===typeof s&&s(t,n)}};c.push(t)}})),{list:c,from:i().Pos(r.line,o),to:i().Pos(r.line,a)}}));n("2B1R"),n("+2oP"),n("ALS0");var F=n("zoGk"),U=/[\d\w\s\-\:\u4e00-\u9fa5]/;i().registerHelper("hint","date",(function(e,t){var n,r,o=e.getCursor(),a=e.getLine(o.line),s=t.source,l=t.callback,c=t.nlpEnabled,u=[];if("number"===typeof t.start&&"number"===typeof t.end)n=t.start,r=t.end;else{for(n=o.ch,r=n;r<a.length&&U.test(a.charAt(r));)++r;for(;n&&U.test(a.charAt(n-1));)--n}function f(e,t,a){var s=a.text;e.replaceRange(c?s:"",i().Pos(o.line,n-1),i().Pos(o.line,r),"complete"),"function"===typeof l&&l(t,a)}if(s.length){var d=a.slice(n,r);if(d)s.forEach((function(e){(0,Z.B)(e.match,d)&&u.push({displayText:e.match,text:e.hint,hint:f})}));else{var h=s,p=F.Z.getCurrentInWhichDayOfWeek();h=[s[0],s[1],s[7],s[14-p]],u=h.map((function(e){return{displayText:e.match,text:e.hint,hint:f}}))}}else u=[];return{list:u,from:i().Pos(o.line,n),to:i().Pos(o.line,r),hint:f}})),i().registerHelper("hint","tag",(function(e,t){var n=t.source,r=t.originSourceSet,o=t.callback,a=t.needClean,l=e.getCursor(),c=t.start,u=t.end,f=t.text;function d(e,t,n){var r="#"+n.text;a&&(r=""),e.replaceRange(r,i().Pos(l.line,c),i().Pos(l.line,u),"complete"),setTimeout((function(){"function"===typeof o&&o(t,n)}))}var h=[];if(f){var p=!1,m=!1;n.forEach((function(e){var t=e.match.toLowerCase(),n=f.toLowerCase();(0,Z.B)(e.match,f)&&(m=!0,t===n?(p=!0,h.unshift({displayText:e.match,text:e.hint,hint:d})):h.push({displayText:e.match,text:e.hint,hint:d}))}));var g=!!r&&r.has(f.toLowerCase());p||m||g||h.push({text:f+" ",displayText:s.U2("create_tag",{s:f}),hint:d})}else n.forEach((function(e){h.push({displayText:e.match,text:e.hint,hint:d})}));return{list:h,from:i().Pos(l.line,c),to:i().Pos(l.line,u)}}));n("ToJy");i().registerHelper("hint","assignee",(function(e,t){var n=t.source,r=e.getCursor(),o=t.start,a=t.end,s=t.callback,l=t.text,c=[];return n.forEach((function(e,t){var n=e.match.toLowerCase(),r=l.toLowerCase();if(n.includes(r)){var i={index:t,key:e.key,displayText:e.match,avatarUrl:e.avatarUrl,text:e.complete,render:function(e,t,n){var r=document.createElement("div"),i=document.createElement("img");r.className="flex items-center h-full",i.className="avatar med icon-avatar avatar-bd-divider inline-block w-[24px] h-[24px] border border-solid border-grey-10 rounded-full overflow-hidden flex-none",i.src=n.avatarUrl;var o=document.createElement("span");return o.className="truncate",o.innerText=n.displayText,r.appendChild(i),r.appendChild(o),e.appendChild(r),e},hint:function(e,t,n){"function"===typeof s&&s(t,n)}};c.push(i),c.sort((function(e,t){return e.index>t.index?1:-1}))}})),{list:c,from:i().Pos(r.line,o),to:i().Pos(r.line,a)}})),i().registerHelper("hint","detailPreset",(function(e,t){var n=t.source,r=e.getCursor(),o=t.start,a=t.end,s=t.callback,l=t.text,c=t.needClean,u=t.type;function f(e,t,n){var l=u+n.text;c&&(l=""),e.replaceRange(l,i().Pos(r.line,o),i().Pos(r.line,a),"complete"),setTimeout((function(){"function"===typeof s&&s(t,n)}))}var d=[];return n.forEach((function(e){if((0,Z.B)(e.match,l)){var t={key:e.key,displayText:e.match,text:e.complete,hint:f};d.push(t)}})),0===d.length&&e.closeHint(),{list:d,from:i().Pos(r.line,o),to:i().Pos(r.line,a)}})),i().registerHelper("hint","detailAssignee",(function(e,t){var n=t.source,r=e.getCursor(),o=t.start,a=t.end,s=t.callback,l=t.text,c=t.needClean,u=t.type;function f(e,t,n){var l=u+n.text;c&&(l=""),e.replaceRange(l,i().Pos(r.line,o),i().Pos(r.line,a),"complete"),setTimeout((function(){"function"===typeof s&&s(t,n)}))}var d=[];return n.forEach((function(e,t){var n=e.match.toLowerCase(),r=l.toLowerCase();if(n.includes(r)){var i={index:t,key:e.key,displayText:e.match,avatarUrl:e.avatarUrl,text:e.complete,render:function(e,t,n){var r=document.createElement("div"),i=document.createElement("img");r.className="flex items-center h-full",i.className="avatar med icon-avatar avatar-bd-divider inline-block w-[24px] h-[24px] border border-solid border-grey-10 rounded-full overflow-hidden flex-none",i.src=n.avatarUrl;var o=document.createElement("span");return o.className="truncate",o.innerText=n.displayText,r.appendChild(i),r.appendChild(o),e.appendChild(r),e},hint:f};d.push(i),d.sort((function(e,t){return e.index>t.index?1:-1}))}})),0===d.length&&e.closeHint(),{list:d,from:i().Pos(r.line,o),to:i().Pos(r.line,a)}}));var K=/[\d\w\s\-\:\u4e00-\u9fa5]/;i().registerHelper("hint","detailDate",(function(e,t){var n,r,o=e.getCursor(),a=e.getLine(o.line),s=t.source,l=t.type,c=t.needClean,u=t.callback,f=[];if("number"===typeof t.start&&"number"===typeof t.end)n=t.start,r=t.end;else{for(n=o.ch,r=n;r<a.length&&K.test(a.charAt(r));)++r;for(;n&&K.test(a.charAt(n-1));)--n}function d(e,t,a){var s=l+a.text;c&&(s=""),e.replaceRange(s,i().Pos(o.line,n-1),i().Pos(o.line,r),"complete"),setTimeout((function(){"function"===typeof u&&u(t,a)}))}if(s.length){var h=a.slice(n,r);if(h)s.forEach((function(e){(0,Z.B)(e.match,h)&&f.push({key:e.key,displayText:e.match,text:e.hint,hint:d})}));else{var p=s,m=F.Z.getCurrentInWhichDayOfWeek();p=[s[0],s[1],s[7],s[14-m]],f=p.map((function(e){return{key:e.key,displayText:e.match,text:e.hint,hint:d}}))}}else f=[];return 0===f.length&&e.closeHint(),{list:f,from:i().Pos(o.line,n),to:i().Pos(o.line,r)}}));var Y=n("/0bn"),W=n("gFJJ");i().registerHelper("hint","detailLinkTask",(function(e,t){var n=t.source,r=e.getCursor(),o=t.start,a=t.end,l=t.text;function c(e,t,n){var l,c=n.key,f=g.l9i(c),d=(f?(0,m.M_)(f):"")||n.displayText;e.getValue().length+d.length>W.b9.taskContentWordLimit?Y.$Z({text:s.U2("characters_upper_limit")}):(e.replaceRange(d,i().Pos(r.line,o),i().Pos(r.line,a),"complete"),(0,u.G)(e).clearCacheAtLine(r.line),null===(l=e.getOption("ticktickMDFold"))||void 0===l||l.startFoldImmediately())}var f=[];return n.forEach((function(e,t){var n=e.match.toLowerCase(),r=l.toLowerCase();if(n.includes(r)){var i={key:e.key,displayText:e.match,text:e.match,hint:c,className:b()("CodeMirror-hint-detailLinkTask",e.isComplete?"completeStyle":"")};f.push(i)}})),0===f.length&&e.closeHint(),{list:f,from:i().Pos(r.line,o),to:i().Pos(r.line,a)}}));n("AT7j"),n("v87U"),n("TeQF"),n("pjDv"),n("oVuX"),n("sMBO"),n("zKZe"),n("5DmW"),n("27RR"),n("tkto"),n("4l63"),n("JfAA"),n("YGK4"),n("UxlC"),n("LKBx");var H,z=n("Uyqk"),q=n("Ag2S"),V=n("PGqD"),J=n("ylzY"),G=n("rviF");function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function X(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ie=/^(\s*)(>\s|[*+-]\s\[[x| ]\]\s|[*+-]\s|(\d+)([.)]\s))/i,oe=/^(\s*)(>|[*+-] \[[x| ]\]|[*+-]|(\d+)[.)])(\s)$/i,ae=/[*+-]\s/,se=/^(\s*)([*+-]|(\d+)([.)]))(\s)/,le=99999999999999,ce=(0,z.m)();function ue(e,t){if(!1!==e.list){for(var n=!0,r=e.listStack.slice(0);t<r[r.length-1];)if(r.pop(),!r.length){n=!1;break}return n}return!1}function fe(e,t){for(var n="";t-- >0;)n+=e;return n}function de(e,t){var n,i;if(e.getOption("disableInput"))return r.Pass;var o=e.getCursor("start"),a=e.getCursor("end");if((null!==(n=e.findMarks(o,a))&&void 0!==n?n:[]).filter((function(e){return"image"===e.foldType})).length>0)return r.Pass;var s=(te(te(te(te(te(te(te(te(te(te(i={},f.s2.quote,"> "),f.s2.unorderedList,"* "),f.s2.numberedList,"1. "),f.s2.uncheckedItem,"- [ ] "),"h1","# "),"h2","## "),"h3","### "),"h4","#### "),"h5","##### "),"h6","###### "),te(i,"text","")),c=!e.curOp;c&&e.startOperation();for(var u=null,d=[],h=o.line;h<=a.line;h+=1){var p=e.getLineTokens(h),m=(0,f.QY)(p);if(m&&m.type!==f.s2.hr){var g=m.type;g===f.s2.header?g="h"+(m.end-m.start-1):g===f.s2.checkedItem&&(g=f.s2.uncheckedItem),h===o.line?u=g:u!==g&&(u=null),d.push({from:{line:h,ch:m.start},to:{line:h,ch:m.end}})}else u=null}if(d.forEach((function(t){e.replaceRange("",t.from,t.to,"manualMarkText")})),null!=t&&u!==t){for(var v=o.line;v<=a.line;v+=1){var y=e.getLine(v).match(/^([\s\t]*)(.*)/);if(y){var b=void 0,k=void 0;"quote"===t||t.startsWith("h")?(b=0,k=s[t]):(b=y[1].length,k=y[1]+s[t]),e.replaceRange(k,{line:v,ch:0},{line:v,ch:b},"manualMarkText"),(0,f.pH)(e,v)}}t===f.s2.numberedList&&(0,l.xJ)(e,o.line,!0)}return o.line!==a.line&&e.setSelection({line:o.line,ch:0},{line:a.line,ch:le},{origin:"+move"}),c&&e.endOperation(),e.focus(),!0}function he(e,t,n,i){var o;if(e.getOption("disableInput"))return r.Pass;if(1!==e.listSelections().length)return r.Pass;var a=e.listSelections()[0],s=ne((0,l.pw)(a),2),c=s[0],u=s[1];if((null!==(o=e.findMarks(c,u))&&void 0!==o?o:[]).filter((function(e){return"image"===e.foldType})).length>0)return r.Pass;for(var f=[],d=u.line-c.line>0,h=c.line;h<=u.line;h+=1){var p={line:h,ch:0},m={line:h,ch:e.getLine(h).length};h===c.line&&(p.ch=c.ch),h===u.line&&(m.ch=u.ch);var g=pe(e,t,p,m,n,i,d);g&&f.push(g)}var v=!e.curOp;v&&e.startOperation();var y=c,b=u,k=f.filter((function(e){return"add"===e.origin}));(k.length>0?k:f).forEach((function(t){y.line===t.selection[0].line&&(y=t.selection[0]),b.line===t.selection[1].line&&(b=t.selection[1]),e.replaceRange(t.replacement,t.from,t.to,"manualMarkText")}));var w=null==n?0:n.length,C=null==i?w:i.length;return y.line===b.line&&b.ch-y.ch===w+C?e.setSelection({line:y.line,ch:y.ch+w},null,"+move"):e.setSelection(y,b,{origin:"+move"}),v&&e.endOperation(),e.focus(),!0}function pe(e,t,n,r,i,o,a){if(n.line!==r.line)throw new Error("startPoint.line is not equal endPoint.line");if(0===e.getLine(n.line).length&&a)return null;var s,l,c,u=e.getLineTokens(n.line),d=(0,f.QY)(u);if(d){if(d.type===f.s2.hr)return null;d.type!==f.s2.code&&(n.ch=Math.max(d.end,n.ch))}for(var h=0;h<u.length;h+=1){var p=u[h];if(!s&&p.start>n.ch)break;if(me(p)[t]){if(!s){s=p;continue}if(p.end>=r.ch){l=p;break}s=void 0}}var m=i,g=null==o?m:o;if(l){r={line:(n={line:n.line,ch:s.start}).line,ch:l.end},c=e.getRange(n,r),"bold"===t?c=c.replace(/^(\*\*|__)([\s\S]*)\1/,"$2"):"italic"===t?c=c.replace(/^(\*|_)([\s\S]*)\1/,"$2"):"strikethrough"===t?c=c.replace(/^(~~)([\s\S]*)\1/,"$2"):"underline"===t?c=c.replace(/^(~)([\s\S]*)\1/,"$2"):"mark"===t?c=c.replace(/^(::)([\s\S]*)\1/,"$2"):"inlineCode"===t&&(c=c.replace(/^(`)([\s\S]*)\1/,"$2"));var v={line:n.line,ch:s.start};return{origin:"remove",replacement:c,from:v,to:{line:n.line,ch:l.end},selection:[v,{line:n.line,ch:v.ch+c.length}]}}c=e.getRange(n,r),"bold"===t?c=(c=c.split("**").join("")).split("__").join(""):"italic"===t?c=(c=c.split("*").join("")).split("_").join(""):"strikethrough"===t?c=c.split("~~").join(""):"mark"===t?c=c.split("::").join(""):"underline"===t?c=c.split("~").join(""):"inlineCode"===t&&(c=c.split("`").join(""));var y=m+c+g;return{origin:"add",replacement:y,from:n,to:r,selection:[n,{line:n.line,ch:n.ch+y.length}]}}function me(e){if(!e.type)return{};var t=e.type.split(" "),n={};return t.forEach((function(e){"formatting-strong"===e?n.bold=!0:"formatting-code"===e?n.inlineCode=!0:"formatting-em"===e?n.italic=!0:"formatting-mark"===e?n.mark=!0:"formatting-underline"===e?n.underline=!0:"formatting-strikethrough"===e&&(n.strikethrough=!0)})),n}function ge(e){de(e,"h4"),setTimeout((function(){e.focus()}))}function ve(e){de(e,"h5"),setTimeout((function(){e.focus()}))}function ye(e){de(e,"h6"),setTimeout((function(){e.focus()}))}function be(e){return e.extendSelectionsBy((function(t){return(0,l.so)(e,t.head)}),{origin:"+move",bias:1})}function ke(e,t,n){var r=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:r},"div");return 0!==i.ch?i:(0,l.so)(e,t.head,n)}function we(e,t){if(1!==e.listSelections().length)return r.Pass;var n=xe(e);return n.length>0||t?(e.execCommand("indentMore"),n.forEach((function(t){(0,l.xJ)(e,t.fromLine)})),!0):(e.execCommand("insertTab"),!0)}function Ce(e,t){if(1!==e.listSelections().length)return r.Pass;var n=xe(e);return n.length>0||t?(e.execCommand("indentLess"),n.forEach((function(t){(0,l.xJ)(e,t.fromLine)})),!0):(e.execCommand("insertTab"),!0)}function xe(e){var t=e.listSelections()[0],n=t.head,i=t.anchor;if(!t.empty()&&(0,r.cmpPos)(n,i)>0){var o=[n,i];i=o[0],n=o[1]}else i===n&&(i={ch:n.ch,line:n.line},t.anchor=i);for(var a=[],s=null,l=n.line;l<=i.line;l+=1){if(se.exec(e.getLine(l)))!1!==e.getStateAfter(l).list?s?s.toLine=l:s={fromLine:l,toLine:l}:s&&(a.push(s),s=null);else s&&(a.push(s),s=null)}return s&&a.push(s),a}Object.assign(r.commands,{TickTickNewlineAndContinue:function(e){if(e.getOption("disableInput"))return r.Pass;var t=e.listSelections();if(!t||0===t.length)return r.Pass;var n,i=ne(t,1)[0],o=i.head,a=i.empty(),s=e.getStateAfter(o.line),c=e.getLine(o.line),u=!1,d=!1!==s.list,h=s.quote,p=ie.exec(c),g=/^\s*$/.test(c.slice(0,o.ch)),v=!1;if(a&&(d||h)&&p&&!g)if(u=!0,oe.test(c)){var y=(0,m.lI)(s,e.getOption("indentUnit")),b="";y>1&&(b=fe("\t",y-1)),e.replaceRange(b,{line:o.line,ch:0},{line:o.line,ch:o.ch+1},"manualMarkText")}else{n="\n"+p[1]+((v=!(ae.test(p[2])||p[2].indexOf(">")>=0))?parseInt(p[3],10)+1+p[4]:p[2].replace(/x/i," "))}else if(a&&d&&c.length){var k=e.getOption("indentUnit");if(ue(s,c.length))u=!0,n="\n"+fe("\t",(0,m.lI)(s,k))}if(!u)return e.execCommand("newlineAndIndent"),!0;if(n){e.replaceSelection(n,void 0,"manualMarkText"),v&&(0,l.xJ)(e,o.line);var w=o.line+1;(0,f.pH)(e,w)}return!0},TickTickNewline:function(e){if(e.getOption("disableInput"))return r.Pass;if(1!==e.listSelections().length)return r.Pass;var t=e.listSelections()[0].head,n=e.getStateAfter(t.line),i=e.getLine(t.line),o="\n";return!1!==n.list&&i.length&&ue(n,i.length)&&(o+=fe("\t",(0,m.lI)(n,e.getOption("indentUnit")))),e.replaceSelection(o,void 0,"manualMarkText"),!0},TickTickShiftTab:function(e){return Ce(e,!1)},TickTickTab:function(e){return we(e,!1)},TickTickInlineCode:function(e){he(e,"inlineCode","`")},TickTickFullScreen:function(e){q.vp.dispatch("toggleFullScreen",e)},TickTickBold:function(e){he(e,"bold","**")},TickTickItalic:function(e){he(e,"italic","*")},TickTickStrikethrough:function(e){he(e,"strikethrough","~~")},TickTickUnderline:function(e){he(e,"underline","~")},TickTickHighlight:function(e){he(e,"mark","::")},TickTickHeading1:function(e){de(e,"h1"),setTimeout((function(){e.focus()}))},TickTickHeading2:function(e){de(e,"h2"),setTimeout((function(){e.focus()}))},TickTickHeading3:function(e){de(e,"h3"),setTimeout((function(){e.focus()}))},TickTickHeading4:ge,TickTickHeading5:ve,TickTickHeading6:ye,TickTickUnorderedList:function(e){de(e,f.s2.unorderedList)},TickTickOrderedList:function(e){de(e,f.s2.numberedList)},TickTickBlockquote:function(e){de(e,f.s2.quote)},TickTickItemList:function(e){de(e,f.s2.uncheckedItem)},TickTickShowLink:function(e){return e.getOption("readOnly")||e.getOption("disableInput")?r.Pass:(G.Z.taskDetail("shortcut","add_link"),(0,m._m)(e),!0)},TickTickSeparatorLine:function(e){if(e.getOption("disableInput"))return r.Pass;var t=e.listSelections();if(1!==t.length)return r.Pass;var n=t[0].head.line;return 0===e.getLine(n).trim().length?e.replaceRange("---\n",{line:n,ch:0},{line:n,ch:le},"manualMarkText"):(e.replaceSelection("\n---\n",void 0,"manualMarkText"),n+=1),(0,f.pH)(e,n),e.focus(),!0},TickTickDate:function(e){he(e,"date",J.ZP.editorInsertDateText,""),setTimeout((function(){e.focus()}))},TickTickText:function(e){de(e,"text"),setTimeout((function(){e.focus()}))}});var _e=r.keyMap.default===r.keyMap.macDefault?"Cmd":"Ctrl",Se=te(te({Backspace:function(e){if(e.getOption("disableInput"))return r.Pass;if(1!==e.listSelections().length)return r.Pass;var t=e.listSelections()[0];if(!t.empty())return r.Pass;var n=t.head,i=e.getLine(n.line);if(0===n.line&&0===n.ch&&0===i.length)return e.execCommand("deleteLine"),!0;var o=e.getTokenAt(n),a=" "+o.type+" ",s=a.match(/\sformatting-link-string\s/),c=a.match(/\sformatting-link\s/);if(s||c){var u=(0,f.O0)(e,n,!0);if(!u)return r.Pass;var d=ne(u,2),h=d[0],p=d[1],g=n.line;return s?")"===o.string?(e.replaceRange("",{line:g,ch:h.start-1},{line:g,ch:p.end+1},"manualMarkText"),!0):((0,f.rX)(e,{line:g,ch:p.start},{line:g,ch:p.end}),r.Pass):c?((0,f.rX)(e,{line:g,ch:p.start},{line:g,ch:p.end}),r.Pass):r.Pass}var v=a.match(/\sformatting-list-ol\s/);if(v||a.match(/\sformatting-list-ul\s/)||a.match(/\sformatting-checklist\s/)||a.match(/\sformatting-quote\s/)){var y={line:n.line,ch:o.start},b={line:n.line,ch:o.end};a.match(/\sformatting-checklist\s/)&&(y={line:n.line,ch:o.start-2});var k="\t";return function(e,t){var n=t-1;if(n<e.firstLine())return!0;var r=e.getStateAfter(n);if(!1===r.list)return!0;var i=e.getOption("indentUnit"),o=(0,m.lI)(r,i);return(0,m.lI)(e.getStateAfter(t),i)>o}(e,n.line)&&(k=""),e.replaceRange(k,y,b,"manualMarkText"),v&&(0,l.xJ)(e,n.line+1),!0}return r.Pass},LeftClick:function(e,t){if(1===t.outside||Math.abs(t.xRel)>10)return r.Pass;var n=e.getTokenAt(t),i=" "+n.type+" ";if(i.match(/\slink\s/)){if(i.match(/\sformatting-link\s/))return r.Pass;var o=null;if(i.match(/\slinkify\s/))o=e.getRange({line:t.line,ch:n.start},{line:t.line,ch:n.end});else{var a=(0,f.O0)(e,t);a&&(o=a[1].string)}if(!o)return!0;var s=(0,m.WK)(o);if(s){var l={taskId:s.taskId,projectId:s.projectId};q.vp.dispatch("onTaskModalChange",l)}else{var c=function(){var e=ce.match(o);if(e){var t=e[0],n=t.url,r=t.raw;return n.replace(r,o)}return o}(),u=e.getOption("openLinkAction");u&&u(c),window.open(c,"_blank")}return!0}return r.Pass}},"".concat(_e,"-LeftClick"),(function(e,t){e.setSelection(t,t,!1)})),"Space",(function(e){!function(e,t){if(e.getOption("disableInput"))return r.Pass;var n=e.listSelections();if(!n||0===n.length)return r.Pass;var i=ne(n,1)[0].head.line;e.replaceSelection(t,void 0,"manualMarkText"),(0,f.pH)(e,i)}(e," ")}));V.IJ&&V.i7&&delete Se.Space,"Cmd"===_e?(Se["Cmd-Backspace"]=function(e){for(var t,n,i=e.doc.sel.ranges,o=[],a=0;a<i.length;a++){for(var s={from:ke(e,n=i[a],!0),to:n.from()};o.length&&(0,r.cmpPos)(s.from,(t=o,t[t.length-1]).to)<=0;){var l=o.pop();if((0,r.cmpPos)(l.from,s.from)<0){s.from=l.from;break}}o.push(s)}var c=!e.curOp;c&&e.startOperation();for(var u=o.length-1;u>=0;u--)e.replaceRange("",o[u].from,o[u].to,"+delete");c&&e.endOperation()},Se["Cmd-Left"]=function(e){return e.extendSelectionsBy((function(t){return ke(e,t)}),{origin:"+move"})},Se["Ctrl-A"]=be,Se["".concat(_e,"-shift-0")]="TickTickFullScreen"):"Ctrl"===_e&&(Se["".concat(_e,"-alt-0")]="TickTickFullScreen",Se.Home=be);var Ee={"Shift-Enter":function(){}},Oe=ee(ee({},Se),{},(te(te(te(te(te(te(te(te(te(te(H={"Shift-Tab":"TickTickShiftTab",Tab:"TickTickTab"},"".concat(_e,"-["),(function(e){return Ce(e,!0)})),"".concat(_e,"-]"),(function(e){return we(e,!0)})),"Enter","TickTickNewlineAndContinue"),"Shift-Enter","TickTickNewline"),"".concat(_e,"-alt-1"),"TickTickHeading1"),"".concat(_e,"-alt-2"),"TickTickHeading2"),"".concat(_e,"-alt-3"),"TickTickHeading3"),"".concat(_e,"-alt-4"),ge),"".concat(_e,"-alt-5"),ve),"".concat(_e,"-alt-6"),ye),te(te(te(te(te(te(te(te(te(te(H,"".concat(_e,"-shift-8"),"TickTickUnorderedList"),"".concat(_e,"-shift-7"),"TickTickOrderedList"),"".concat(_e,"-shift-U"),"TickTickBlockquote"),"".concat(_e,"-shift-S"),"TickTickItemList"),"".concat(_e,"-B"),"TickTickBold"),"".concat(_e,"-I"),"TickTickItalic"),"".concat(_e,"-shift-X"),"TickTickStrikethrough"),"".concat(_e,"-U"),"TickTickUnderline"),"".concat(_e,"-shift-Y"),"TickTickHighlight"),"".concat(_e,"-K"),"TickTickShowLink"),te(te(H,"".concat(_e,"-alt-C"),"TickTickInlineCode"),"fallthrough","default")));Oe=r.normalizeKeyMap(Oe),r.keyMap.inline=ee(ee({},Ee),{},{fallthrough:"default"}),r.keyMap.ticktickmd=Oe,r.keyMap.tickticklink=ee(ee(ee({},Se),Ee),{},{fallthrough:"default"}),(0,c.$D)("customMarkOpen",(function(e,t){var n="customMarkOpen",r=e.cm;if(!(t.state.localState||t.state)[n])return null;var i={line:e.lineNo,ch:t.start},o=(0,u.G)(r).findSpanWithTypeAt(i,n),a=document.createElement("span");return a.innerText="",r.markText({line:i.line,ch:o.begin},{line:i.line,ch:o.end},{inclusiveLeft:!1,inclusiveRight:!1,selectLeft:!0,selectRight:!1,atomic:!0,replacedWith:a})}),!0),(0,c.$D)("customMarkClose",(function(e,t){var n="customMarkClose",r=e.cm;if(!(t.state.localState||t.state)[n])return null;var i={line:e.lineNo,ch:t.start},o=(0,u.G)(r).findSpanWithTypeAt(i,n),a=document.createElement("span");return a.innerText="",r.markText({line:i.line,ch:o.begin},{line:i.line,ch:o.end},{inclusiveLeft:!1,inclusiveRight:!1,selectLeft:!1,selectRight:!0,atomic:!0,replacedWith:a})}),!0),(0,c.$D)("customMark",(function(e,t){var n="customMark",r=e.cm,i=t.state.localState||t.state;return!i[n]||i.customMarkClose||i.customMarkOpen?null:function(e,t,n,r){var i=(0,u.G)(e).findSpanWithTypeAt(t,n);if(!i)return null;document.createElement("span").innerText="".concat(r.string);var o=r.state.style.background,a=r.state.style.color;return e.markText({line:t.line,ch:i.begin+1},{line:t.line,ch:i.end-1},{css:"background: ".concat(o,"; color: ").concat(a,";")})}(r,{line:e.lineNo,ch:t.start},n,t)}),!0);var Te=n("epob"),Le=n("Es6M"),Pe=n("y8mg"),Me=n.n(Pe);(0,c.$D)("image",(function(e,t){var n=t.state.localState||t.state,r=e.cm,i=r.getOption("renderImageMaker"),o=r.getOption("getAttachment");if(!i)return null;if(/\bformatting-image\b/.test(t.type)){var a,s=e.lineNo,l={line:s,ch:t.start},c={line:s,ch:t.end},u=n.image,f=null,d=null,h=(0,Te.$4)(u),p=(0,Le.FJ)(u).id,m=o({isLinkLike:h,url:u,attachmentId:p});if(console.info("image folder: ",{attachment:m,url:u,attachmentId:p}),null==m)return null;var g="image"!==((null===(a=m.get("fileType"))||void 0===a?void 0:a.toLowerCase())||""),v=document.createElement("span");return v.style.display="inline-block",v.style.marginTop="3px",v.style.marginBottom="3px",v.style.padding="1px 0",v.style.maxWidth="100%",g&&(v.style.width="100%"),i({markerId:Me().uniqueId("cm-marker-image-"),container:v,props:{url:u,removeText:function(){if(null!=f){var e=f.find();if(null!=e){var t=e.from,n=e.to;r.setCursor(t),r.replaceRange("",t,n,"+delete"),r.focus()}}},updateMarker:function(){null!=f&&(d&&clearTimeout(d),d=setTimeout((function(){f.changed()})))},selectMarker:function(){if(null!=f){var e=f.find();r.hasFocus()||(e&&e.from&&r.setCursor(e.from),r.focus()),setTimeout((function(){r.setSelection(e.from,e.to)}))}},isNewTask:r.getOption("isLocal"),isReadOnly:!!r.getOption("disableInput"),getRenderAttachment:o}}),(f=r.markText(l,c,{atomic:!0,clearOnEnter:!1,collapsed:!0,replacedWith:v})).widgetNode.style.display="inline-block",f.widgetNode.style.marginRight="5px",f.widgetNode.style.maxWidth="calc(100% - 5px)",g&&(f.widgetNode.style.width="calc(100% - 5px)"),f}return null}),!0);n("t5UX"),n("TWNs"),n("U3f4"),n("LD7m"),n("EnZy");function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}var je,Ne,Ie=i().Pos;function Re(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function Ae(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function Be(e,t,n){t=Re(t,"g");for(var r=n.line,i=n.ch,o=e.lastLine();r<=o;r++,i=0){t.lastIndex=i;var a=e.getLine(r),s=t.exec(a);if(s)return{from:Ie(r,s.index),to:Ie(r,s.index+s[0].length),match:s}}}function Ze(e,t,n){if(!Ae(t))return Be(e,t,n);t=Re(t,"gm");for(var r,i=1,o=n.line,a=e.lastLine();o<=a;){for(var s=0;s<i&&!(o>a);s++){var l=e.getLine(o++);r=null==r?l:r+"\n"+l}i*=2,t.lastIndex=n.ch;var c=t.exec(r);if(c){var u=r.slice(0,c.index).split("\n"),f=c[0].split("\n"),d=n.line+u.length-1,h=u[u.length-1].length;return{from:Ie(d,h),to:Ie(d+f.length-1,1==f.length?h+f[0].length:f[f.length-1].length),match:c}}}}function Fe(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function Ue(e,t,n){t=Re(t,"g");for(var r=n.line,i=n.ch,o=e.firstLine();r>=o;r--,i=-1){var a=e.getLine(r),s=Fe(a,t,i<0?0:a.length-i);if(s)return{from:Ie(r,s.index),to:Ie(r,s.index+s[0].length),match:s}}}function Ke(e,t,n){if(!Ae(t))return Ue(e,t,n);t=Re(t,"gm");for(var r,i=1,o=e.getLine(n.line).length-n.ch,a=n.line,s=e.firstLine();a>=s;){for(var l=0;l<i&&a>=s;l++){var c=e.getLine(a--);r=null==r?c:c+"\n"+r}i*=2;var u=Fe(r,t,o);if(u){var f=r.slice(0,u.index).split("\n"),d=u[0].split("\n"),h=a+f.length,p=f[f.length-1].length;return{from:Ie(h,p),to:Ie(h+d.length-1,1==d.length?p+d[0].length:d[d.length-1].length),match:u}}}}function Ye(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function We(e,t,n,r){if(!t.length)return null;var i=r?je:Ne,o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,s=n.ch,l=e.lastLine()+1-o.length;a<=l;a++,s=0){var c=e.getLine(a).slice(s),u=i(c);if(1==o.length){var f=u.indexOf(o[0]);if(-1==f)continue e;n=Ye(c,u,f,i)+s;return{from:Ie(a,Ye(c,u,f,i)+s),to:Ie(a,Ye(c,u,f+o[0].length,i)+s)}}var d=u.length-o[0].length;if(u.slice(d)==o[0]){for(var h=1;h<o.length-1;h++)if(i(e.getLine(a+h))!=o[h])continue e;var p=e.getLine(a+o.length-1),m=i(p),g=o[o.length-1];if(m.slice(0,g.length)==g)return{from:Ie(a,Ye(c,u,d,i)+s),to:Ie(a+o.length-1,Ye(p,m,g.length,i))}}}}function He(e,t,n,r){if(!t.length)return null;var i=r?je:Ne,o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,s=n.ch,l=e.firstLine()-1+o.length;a>=l;a--,s=-1){var c=e.getLine(a);s>-1&&(c=c.slice(0,s));var u=i(c);if(1==o.length){var f=u.lastIndexOf(o[0]);if(-1==f)continue e;return{from:Ie(a,Ye(c,u,f,i)),to:Ie(a,Ye(c,u,f+o[0].length,i))}}var d=o[o.length-1];if(u.slice(0,d.length)==d){var h=1;for(n=a-o.length+1;h<o.length-1;h++)if(i(e.getLine(n+h))!=o[h])continue e;var p=e.getLine(a+1-o.length),m=i(p);if(m.slice(m.length-o[0].length)==o[0])return{from:Ie(a+1-o.length,Ye(p,m,p.length-o[0].length,i)),to:Ie(a,Ye(c,u,d.length,i))}}}}function ze(e,t,n,r){var i;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):Ie(0,0),this.pos={from:n,to:n},"object"==De(r)?i=r.caseFold:(i=r,r=null),"string"==typeof t?(null==i&&(i=!1),this.matches=function(n,r){return(n?He:We)(e,t,r,i)}):(t=Re(t,"gm"),r&&!1===r.multiline?this.matches=function(n,r){return(n?Ue:Be)(e,t,r)}:this.matches=function(n,r){return(n?Ke:Ze)(e,t,r)})}String.prototype.normalize?(je=function(e){return e.normalize("NFD").toLowerCase()},Ne=function(e){return e.normalize("NFD")}):(je=function(e){return e.toLowerCase()},Ne=function(e){return e}),ze.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){for(var t=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));t&&0==i().cmpPos(t.from,t.to);)e?t.from.ch?t.from=Ie(t.from.line,t.from.ch-1):t=t.from.line==this.doc.firstLine()?null:this.matches(e,this.doc.clipPos(Ie(t.from.line-1))):t.to.ch<this.doc.getLine(t.to.line).length?t.to=Ie(t.to.line,t.to.ch+1):t=t.to.line==this.doc.lastLine()?null:this.matches(e,Ie(t.to.line+1,0));if(t)return this.pos=t,this.atOccurrence=!0,this.pos.match||!0;var n=Ie(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:n,to:n},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,t){if(this.atOccurrence){var n=i().splitLines(e);this.doc.replaceRange(n,this.pos.from,this.pos.to,t),this.pos.to=Ie(this.pos.from.line+n.length-1,n[n.length-1].length+(1==n.length?this.pos.from.ch:0))}}},i().defineExtension("getSearchCursor",(function(e,t,n){return new ze(this.doc,e,t,n)})),i().defineDocExtension("getSearchCursor",(function(e,t,n){return new ze(this,e,t,n)})),i().defineExtension("selectMatches",(function(e,t){for(var n=[],r=this.getSearchCursor(e,this.getCursor("from"),t);r.findNext()&&!(i().cmpPos(r.to(),this.getCursor("to"))>0);)n.push({anchor:r.from(),head:r.to()});n.length&&this.setSelections(n,0)}))},LcUx:function(e,t,n){"use strict";n.d(t,{Z:function(){return J}});n("pNMO"),n("4Brf"),n("0oug"),n("4mDm"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("SuFq"),n("PKPk"),n("3bBZ"),n("gXIK"),n("ma9I"),n("TeQF"),n("fbCW"),n("yq1k"),n("2B1R"),n("+2oP"),n("ToJy"),n("pDQq"),n("7+zs"),n("sMBO"),n("qePV"),n("zKZe"),n("07d7"),n("TWNs"),n("rB9j"),n("LD7m"),n("ALS0"),n("JfAA"),n("JTJg"),n("Rm1S"),n("OM9Z"),n("UxlC"),n("SYor"),n("FZtP");var r=n("q1tI"),i=n("Nr3o"),o=n.n(i),a=n("y8mg"),s=n.n(a),l=n("dmHn"),c=n.n(l),u=n("5WEu"),f=n("MlAn"),d=n("xS9v"),h=n("zoGk"),p=n("V/jI"),m=n("RDjN"),g=n("dvcG"),v=n("EPMa"),y=n.n(v),b=n("AtZj");function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=r.forwardRef((function(e,t){var n=e.isVisible,i=e.position,o=e.arrowPosition,a=e.children,s=null!=o;return r.createElement("div",{ref:t,className:y()("hint-tip absolute z-[2] transform transition-opacity delay-200 ease-linear",{"show block opacity-100":n,"hidden opacity-0":!n}),style:C({zIndex:20},i)},r.createElement("div",{className:"pop-tip relative py-[11px] px-[12px] bg-black shadow-tip text-white rounded-[4px]",style:s?{marginTop:"10px"}:{}},a),s&&r.createElement(b.Z,{name:"pointer-up",style:o,className:"absolute top-0 w-[18px] h-[18px] text-black"}))}));_.displayName="HintToolTip";var S=_,E=n("C+ZP"),O=n("5uUV"),T=n("VGuJ"),L=n("q9+P"),P=n("Ag2S"),M=n("Llsf"),D=n("rviF"),j=n("XoE2"),N=n("s9k+"),I=n("P26T"),R=["forwardedRef","onChange","onKeyDown"];function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F.apply(this,arguments)}function U(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V(r.key),r)}}function Y(e,t,n){return t=H(t),function(e,t){if(t&&("object"===A(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,W()?Reflect.construct(t,n||[],H(e).constructor):t.apply(e,n))}function W(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(W=function(){return!!e})()}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function z(e,t){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z(e,t)}function q(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}function J(e){var t=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),q(t=Y(this,n,[e]),"debounceDoNlpDate",s().debounce(t.doNlpDate.bind(t),5*L.Rb)),t.state={toolTipStatus:{isAble:null!=e.isTooltipAble?e.isTooltipAble:!g.LP(m.PpT.smartDateParsing),isVisible:!1,position:{}}},t.dateOptions=t.getDateOptions(),t.onUpdateText=t.onUpdateText.bind(t),t.unhighlightBlock=t.unhighlightBlock.bind(t),t.onResetEditor=t.onResetEditor.bind(t),t.onFocusEditor=t.onFocusEditor.bind(t),t.onClickEditor=t.onClickEditor.bind(t),t.handleAddData=t.handleAddData.bind(t),t.handleBatchAddData=t.handleBatchAddData.bind(t),t.onClickBody=t.onClickBody.bind(t),t.doNlpDate=t.doNlpDate.bind(t),t.onTypeKeyChange=t.onTypeKeyChange.bind(t),t.onKeyDown=t.onKeyDown.bind(t),t.dateGroup=null,t.nlpDisabledText=[],t.toolTipRef=r.createRef(),t._listenId=s().uniqueId(),t.presetDateNlpAnchorDate=t.getModelStartDate(e),t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z(e,t)}(n,t),i=n,a=[{key:"componentDidMount",value:function(){document.addEventListener("click",this.onClickBody,{capture:!0}),P.vp.subscribe(this._listenId,"manulDoNlpDate",this.doNlpDate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,i;(null===(t=e.model)||void 0===t||null===(n=t.get)||void 0===n?void 0:n.call(t,"id"))!==(null===(r=this.props.model)||void 0===r||null===(i=r.get)||void 0===i?void 0:i.call(r,"id"))&&(this.presetDateNlpAnchorDate=this.getModelStartDate(this.props))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.onClickBody,{capture:!0}),P.vp.unSubscribe(this._listenId,"manulDoNlpDate"),this.debounceDoNlpDate.cancel()}},{key:"render",value:function(){var t=this.props,n=t.forwardedRef,i=(t.onChange,t.onKeyDown,U(t,R));return r.createElement(r.Fragment,null,r.createElement(e,F({},i,{ref:n,listenId:this._listenId,onAdd:this.handleAddData,onBatchAdd:this.handleBatchAddData,onChange:this.onUpdateText,onClick:this.onClickEditor,onFocus:this.onFocusEditor,onKeyDown:this.onKeyDown,onReset:this.onResetEditor,onTypeKeyChange:this.onTypeKeyChange})),this.renderToolTip())}},{key:"onUpdateText",value:function(e,t){this.props.allowAutoMatchDate&&this.autoMatchDate(e),this.debounceDoNlpDate(e),0===e.getValue().length&&(this.nlpDisabledText=[]),this.props.onChange&&this.props.onChange(e,t)}},{key:"onTypeKeyChange",value:function(e,t,n){var r=this.props.onTypeKeyChange;if("date"===n)if(this.debounceDoNlpDate.cancel(),e.getAllMarks().filter((function(e){return"date"===e.markType||"date-disabled"===e.markType})).forEach((function(e){return e.clear()})),t||this.isQuickDateNlpDisabled())this.closeToolTip(e),t&&this.updateDateChange(null);else if(u.U2("nlpEnabled")){var i=this.doSmartDateParse({doc:e,text:e.getValue()});i?(this.updateDateChange(i),this.highlightBlock(e,i,{className:"cm-bold",handleMouseEvents:!0}),this.showToolTip(e)):this.closeToolTip(e)}null===r||void 0===r||r(e,t,n)}},{key:"onResetEditor",value:function(){this.nlpDisabledText=[],this.dateGroup=null,this.closeToolTip(),f.on(),this.presetDateNlpAnchorDate=this.getModelStartDate(this.props)}},{key:"getModelStartDate",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return(null===(e=n.model)||void 0===e||null===(t=e.get)||void 0===t?void 0:t.call(e,"startDate"))||null}},{key:"getDateOptions",value:function(){var e=[],t=p.LO()?h.Z.toMoment():h.Z.toMoment().locale("en"),n=p.LO()?p.U2("today"):"Today",r=p.LO()?p.U2("tomorrow"):"Tomorrow",i=m.WUZ.atomTime,o=(0,O.I4)("MMMD"),a=p.LO()?"":" ",s=u.k8();e.push({match:t.format(o),key:t.startOf("day").format(i),calendar:n});for(var l=h.Z.toMoment().add(1,"days").format(o),c=h.Z.getCurrentInWhichDayOfWeek(),f=h.Z.toMoment(),d=[],g=0;g<7;g++)d.push(f.day(s+g).format("dddd"));for(var v=h.Z.toMoment(),y=1;y<=6-c;y++){var b=void 0;v.add(1,"days"),b=1===y?r:d[c+y],e.push({match:v.format(o),key:v.startOf("day").format(i),calendar:b})}for(var k=0;k<7;k++){v.add(1,"days");var w=l===v.format(o);e.push({match:v.format(o),key:v.startOf("day").format(i),calendar:w?r:(0,N.h3)(v.toDate())+a+d[k]})}var C=h.Z.toMoment().startOf("month").add(1,"month");e.push({match:C.format(o),key:C.format(i),calendar:p.U2("next_month")});var x=h.Z.toMoment();for(var _ in[2,3,4,5,6,7,8,9,10,11,12])x.add(1,"month"),e.push({match:"",key:x.startOf("month").format(i),calendar:x.startOf("month").format(o)});return e}},{key:"autoMatchDate",value:function(e){for(var t=this,n=/[#\uff03!\uff01\uff3e^~\uff5e@\uff20]/,r=/[*\uff0a]/,i=e.getCursor(),a=e.getLine(i.line),s=i.ch,l=i.ch-1;l>-1;l--){if(n.test(a.charAt(l))){l+=1;break}if(r.test(a.charAt(l)))break}l=Math.max(0,l);var c=a.slice(l,s).match(/([*\uff0a])(.*)/)?this.dateOptions.map((function(e){return{match:e.match+" "+e.calendar,hint:(e.calendar||e.match)+" "}})):[];e.showHint({hint:o().hint.date,completeSingle:!1,alignWithWord:!0,start:l+1,end:s,type:"*",source:c,nlpEnabled:!!u.U2("nlpEnabled"),callback:function(n,r){if(D.Z.shortcut("quick_add","set_due_date"),!u.U2("nlpEnabled")){var i=t.doSymbolDateParse({doc:e,text:r.text});t.updateDateChange(i)}}})}},{key:"doNlpDate",value:function(e){if(!this.isQuickDateNlpDisabled()){var t=e.getValue();if(u.U2("nlpEnabled")){var n=this.doSmartDateParse({doc:e,text:t});if(n?this.showToolTip(e):this.closeToolTip(e),null!=this.props.presetDateNlpMode){var r=this.isPresetDateNlpEnabled()&&!n&&null!=this.dateGroup;(n||!this.isPresetDateNlpEnabled()||r)&&this.updateDateChange(n,{shouldRestorePresetDate:r})}else this.updateDateChange(n);this.highlightBlock(e,n,{className:"cm-bold",handleMouseEvents:!0})}}}},{key:"getNlpDisabledText",value:function(e){var t=e.getAllMarks().filter((function(e){return e.markType&&"date"!==e.markType&&"date-disabled"!==e.markType})).map((function(t){return e.getRange(t.find().from,t.find().to)}));return this.nlpDisabledText.concat(t)}},{key:"isPresetDateNlpEnabled",value:function(){var e=this.props,t=e.enablePresetDateNlp,n=e.model;return!!(t&&(null===n||void 0===n?void 0:n.get)&&n.get("startDate"))}},{key:"getPresetDateNlpAnchorDate",value:function(){return this.presetDateNlpAnchorDate||this.getModelStartDate()}},{key:"getPresetDateNlpRefDate",value:function(){if(!this.isPresetDateNlpEnabled())return null;if("dateTime"===this.props.presetDateNlpMode){var e=G(this.getPresetDateNlpAnchorDate());return(t=e)&&c()(t).startOf("day").isAfter(c()().startOf("day"))?e:null}var t;return G(this.getPresetDateNlpAnchorDate())}},{key:"isQuickDateNlpDisabled",value:function(){return this.props.isQuickDateDisabled&&!this.isPresetDateNlpEnabled()}},{key:"filterPresetDateParseResult",value:function(e){if(!e||!this.isPresetDateNlpEnabled())return e;if("dateTime"===this.props.presetDateNlpMode)return e;var t=this.getPresetDateNlpAnchorDate();return t?function(e,t){return Q(e,t.startDate)&&!t.isAllDay}(t,e)?e:null:e}},{key:"filterPresetDateSymbolParseResult",value:function(e){if(!e||!this.isPresetDateNlpEnabled())return e;if("dateTime"===this.props.presetDateNlpMode)return e;var t=this.getPresetDateNlpAnchorDate();return t?Q(t,e.startDate)?e:null:e}},{key:"doSmartDateParse",value:function(e){var t=e.doc,n=e.text,r=this.getPresetDateNlpRefDate(),i=t?d.BY(n,this.getNlpDisabledText(t)):n,o=f.Sg(i,r?{refDate:r}:void 0),a=this.filterPresetDateParseResult(o);return a?(this.buildDateGroupData(a),a):null}},{key:"doSymbolDateParse",value:function(e){var t=this,n=e.text,r=n.match(/([^\s*]+)(?:\s|$)/g)||[];if(null===r)return null;for(var i,o=function(){var e="";if(t.dateOptions.find((function(t){return n.includes(t.calendar)?(e=t.calendar,!0):!(!t.match||!n.includes(t.match))&&(e=t.match,!0)}))){var r=t.filterPresetDateSymbolParseResult(f.JD(e));return r?(t.buildDateGroupData(r),{v:r}):{v:null}}},a=0;a<r.length;a++)if(i=o())return i.v;return null}},{key:"highlightBlock",value:function(e,t,n){var r=e.getValue();if(e.getAllMarks().filter((function(e){return!e.markType&&"CodeMirror-composing"!==e.className||"date"===e.markType})).forEach((function(e){return e.clear()})),t){var i=t.highlight||[],a=[];i.map((function(t){for(var n=0,i={};n<=r.length;){var a=r.slice(n).indexOf(t);if(a>=0){var s=o().Pos(0,a+n+t.length);if(0===e.findMarksAt(s).filter((function(e){return"date-disabled"===e.markType})).length){i={start:a+n,end:a+n+t.length,highlight:t};break}n+=t.length}else n+=t.length}return i})).sort((function(e,t){return e.start>t.start?1:-1})).forEach((function(t){var n=t.start,r=t.end,i=t.highlight,s=a[a.length-1];if(s){var l=o().Pos(0,s.end),c=o().Pos(0,n);s.end+1>n?(s.end=r,s.highlight+=i):e.getRange(l,c)&&0===e.getRange(l,c).replace(" ","").length?(s.end=r,s.highlight+=e.getRange(l,c)+i):a.push({start:n,end:r,highlight:i})}else a.push({start:n,end:r,highlight:i})})),a.forEach((function(t){var r=t.start,i=t.end,a=o().Pos(0,r),s=o().Pos(0,i);e.findMarks(a,s).length||e.markText(a,s,Z({markType:"date"},n))}))}}},{key:"onKeyDown",value:function(e,t){if(t.keyCode===M.Z.backspace){var n=e.getCursor(),r=e.findMarksAt(n);if(r&&r.length){var i=r[0];if("date"===i.markType){if(i.find().from.ch!==n.ch){t.preventDefault();var o=i.find().from,a=i.find().to;this.nlpDisabledText.push(e.getRange(o,a)),i.clear(),e.markText(o,a,{markType:"date-disabled",className:"cm-disable"}),this.doNlpDate(e)}}else if("date-disabled"===i.markType&&i.find().from.ch!==n.ch){var s=i.find().from,l=i.find().to,c=e.getRange(s,l),u=this.nlpDisabledText.indexOf(c);this.nlpDisabledText.splice(u,1),i.clear()}}}}},{key:"onFocusEditor",value:function(e,t){this.isQuickDateNlpDisabled()&&(e.getAllMarks().filter((function(e){return"date"===e.markType||"date-disabled"===e.markType})).forEach((function(e){return e.clear()})),this.closeToolTip(e)),this.props.onFocus&&this.props.onFocus(e,t)}},{key:"onClickEditor",value:function(e,t){e.hasFocus()&&u.U2("nlpEnabled")&&this.unhighlightBlock(e,t),this.props.onClick&&this.props.onClick(e,t)}},{key:"unhighlightBlock",value:function(e,t){var n=e.findMarksAt(t);if(n&&n.length){var r=n[0];if("date"===r.markType&&t.xRel<0){var i=r.find().from,o=r.find().to;this.nlpDisabledText.push(e.getRange(i,o)),r.clear(),e.markText(i,o,{markType:"date-disabled",className:"cm-disable"}),this.doNlpDate(e)}}}},{key:"renderToolTip",value:function(){var e=this.state.toolTipStatus;return e.isAble?r.createElement(j.Z,null,r.createElement(S,{ref:this.toolTipRef,isVisible:e.isVisible,position:e.position},p.U2("smart_parsing_reminder"))):null}},{key:"showToolTip",value:function(e){var t=e.getAllMarks().filter((function(e){return"date"===e.markType})),n=t[0];if(n){var r=n.find(),i=e.charCoords({line:r.from.line,ch:r.from.ch});this.setState({toolTipStatus:Z(Z({},this.state.toolTipStatus),{},{isVisible:!0,position:{left:i.left-34,top:i.bottom+10}})})}}},{key:"closeToolTip",value:function(){this.state.toolTipStatus.isVisible&&(this.setState({toolTipStatus:Z(Z({},this.state.toolTipStatus),{},{isVisible:!1,isAble:!1})}),g.JU(m.PpT.smartDateParsing,"hide"))}},{key:"updateDateChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!!e,r=n?this.buildDateGroupData(e).dateGroup:null;this.dateGroup=r,this.props.onChangeParse&&this.props.onChangeParse("date",{dateGroup:r,shouldRestorePresetDate:!!t.shouldRestorePresetDate})}},{key:"buildDateGroupData",value:function(e){var t=this.props.isSubscribeCalendar,n={startDate:h.Z.toMoment(e.startDate).locale("en").format(m.WUZ.atomTime),dueDate:e.dueDate?h.Z.toMoment(e.dueDate).locale("en").format(m.WUZ.atomTime):t&&e.isAllDay?h.Z.toMoment(e.startDate).locale("en").add(1,"day").format(m.WUZ.atomTime):h.Z.toMoment(e.startDate).locale("en").format(m.WUZ.atomTime),repeatFlag:e.isNative?e.repeat.repeatFlag:(0,T.Fo)({date:e.repeat.date,repeatData:e.repeat}),isAllDay:e.isAllDay,reminders:e.reminder,trigger:"",isFloating:!1,timeZone:E.vN,annoyingAlert:e.annoyingAlert};return e.repeat&&(n.repeatFrom=e.repeat.repeatFrom),e.dateGroup=n,e}},{key:"handleAddData",value:function(e,t,n){var r=e.getAllMarks().filter((function(e){return"date"===e.markType}));if(r.length&&(!u.U2("nlpEnabled")||u.U2("removeDate"))){var i=r.map((function(t){var n=t.find(),r=e.getRange({ch:n.from.ch-1,line:n.from.line},n.from);/[*\uff0a]/.test(r)&&n.from.ch--;var i=e.getRange({ch:n.from.ch-1,line:n.from.line},n.from);/\s/.test(i)&&n.from.ch--;var o=e.getRange(n.to,{ch:n.to.ch+1,line:n.to.line});return/\s/.test(o)&&n.to.ch++,n}));Object.assign(t,{extractPos:(t.extractPos||[]).concat(i)})}return Object.assign(t,{dateGroup:this.dateGroup}),this.props.onAdd&&this.props.onAdd(e,t,n)}},{key:"handleBatchAddData",value:function(e){var t,n,r=this,i=e.map((function(e){var t=e.title;if(r.isQuickDateNlpDisabled())return e;var n=u.U2("nlpEnabled")?r.doSmartDateParse({text:t}):null,i=t;return n?(!u.U2("removeDate")&&u.U2("nlpEnabled")||((n.highlight||[]).forEach((function(e){var t="\\*{0,1}"+e.trim().replace(/\s/g,"\\s");i=i.replace(new RegExp(t),"")})),i=i.replace(/\s+/g," ").replace(/^\s*/g,"")),Object.assign(e,{title:i,dateGroup:n.dateGroup})):e}));return null===(t=(n=this.props).onBatchAdd)||void 0===t?void 0:t.call(n,i)}},{key:"onClickBody",value:function(e){var t=e.target||null;t&&!$(t).closest(this.toolTipRef.current).length&&this.closeToolTip()}}],a&&K(i.prototype,a),l&&K(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,a,l}(r.Component);return q(t,"defaultProps",{allowAutoMatchDate:!0}),t.displayName="WithDateSetting(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),r.forwardRef((function(e,n){return r.createElement(t,F({},e,{forwardedRef:n}))}))}function G(e){return I.Z.parseUTCString(e)}function Q(e,t){var n,r,i=G(e),o=function(e){if(!e)return null;var t=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})/.exec(e);return t?new Date(Number(t[1]),Number(t[2])-1,Number(t[3]),Number(t[4]),Number(t[5]),Number(t[6])):null}(t);return!(!i||!o||(n=i,r=o,n.getFullYear()!==r.getFullYear()||n.getMonth()!==r.getMonth()||n.getDate()!==r.getDate()))}},rFuB:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});n("pNMO"),n("4Brf"),n("0oug"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("SuFq"),n("gXIK"),n("ma9I"),n("TeQF"),n("fbCW"),n("pjDv"),n("yq1k"),n("4mDm"),n("oVuX"),n("2B1R"),n("+2oP"),n("ToJy"),n("7+zs"),n("sMBO"),n("Tskq"),n("qePV"),n("zKZe"),n("07d7"),n("TWNs"),n("rB9j"),n("LD7m"),n("ALS0"),n("JfAA"),n("YGK4"),n("JTJg"),n("PKPk"),n("Rm1S"),n("UxlC"),n("SYor"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("Nr3o"),o=n.n(i),a=n("CGpF"),s=n("1/gw"),l=n("rviF"),c=n("l3/N"),u=["forwardedRef","onChange"];function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(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 p(e,t){if(e){if("string"===typeof e)return m(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)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function b(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function w(e,t,n){return t=x(t),function(e,t){if(t&&("object"===f(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],x(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function S(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}function O(e){var t=e.getSelectOptions,n=e.type,i=e.symbols,f=e.isDisabledPropKey,p=e.isCertainSettedPropKey,m=e.codeMirrorHint,g=e.completionMatchRule,C=e.applyCompletionToData,x=e.supportProjectColumn;return function(e){var E=function(E){function O(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),S(r=w(this,O,[e]),"isSupportProjectColumn",(function(){var e=r.props.isSubscribeCalendar;return"project"===n&&!e&&x})),S(r,"findMatchFromText",(function(e){var n=r.props,o=n.projectId,s=n.isSubscribeCalendar,l=[],c=t({projectId:o,isSubscribeCalendar:s}),u=r.isSupportProjectColumn();return c.forEach((function(t){var n=t.match,r=t.match1,o=t.key,s=function(t){if(!t)return null;if(u){var n=c.find((function(e){return e.match===t})),r=((null===n||void 0===n?void 0:n.columns)||[]).map((function(e){return e.get("name")}));if(r.length>0){var o=new RegExp("[".concat(i,"]")+t.replace(a.Z.escapeReg,"\\$1").replace(/\s/g,"\\s")+"(?:/(".concat(r.map((function(e){return"(".concat(e.replace(a.Z.escapeReg,"\\$1").replace(/\s/g,"\\s"),")")})).join("|"),"))?")+"\\s","ig"),s=e.match(o);return s?{reg:o,textMatch:s}:null}}var l="[".concat(i,"]").concat(t.replace(a.Z.escapeReg,"\\$1").replace(/\s/g,"\\s"),"\\s"),f=new RegExp(l,"ig"),d=e.match(f);return d?{reg:f,textMatch:d}:null},f=s(n)||s(r)||{},d=f.textMatch,h=f.reg;if(d&&h)for(var p=0,m=d.length;p<m;p++){var g=h.exec(e);l.push({index:g.index,fingerprint:g[0],id:o})}})),l.sort((function(e,t){return e.index>t.index?1:-1}))})),r.onUpdateText=r.onUpdateText.bind(r),r.onClickEditor=r.onClickEditor.bind(r),r.onFocusEditor=r.onFocusEditor.bind(r),r.onPasteText=r.onPasteText.bind(r),r.onResetEditor=r.onResetEditor.bind(r),r.onMouseDownEditor=r.onMouseDownEditor.bind(r),r.handleAddData=r.handleAddData.bind(r),r.handleBatchAddData=r.handleBatchAddData.bind(r),r.onTypeKeyChange=r.onTypeKeyChange.bind(r),r.completionData=null,r.isClickHighlightMarker=null,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(O,E),T=O,(L=[{key:"render",value:function(){var t=this.props,n=t.forwardedRef,i=(t.onChange,b(t,u));return r.createElement(r.Fragment,null,r.createElement(e,y({},i,{ref:n,onAdd:this.handleAddData,onBatchAdd:this.handleBatchAddData,onChange:this.onUpdateText,onClick:this.onClickEditor,onMouseDown:this.onMouseDownEditor,onFocus:this.onFocusEditor,onPasteText:this.onPasteText,onReset:this.onResetEditor,onTypeKeyChange:this.onTypeKeyChange})))}},{key:"handleAddData",value:function(e,t,r){var i=this.props,a=i.projectId,s=i.isSubscribeCalendar,l=e.getAllMarks().filter((function(e){return e.markType===n})),c=v({},t);if(l.length){var u,f=l.pop().find(),d=o().Pos(f.to.line,f.to.ch+1),h=e.getRange(f.from,d),p=h.trim().slice(1);if(void 0!==(u=this.completionData&&this.completionData.text&&this.completionData.text.trim()===h.trim()?this.completionData.key:g(p,{projectId:a,isSubscribeCalendar:s}))){c=C(v({},t),{key:u,text:h});var m=e.getRange({ch:f.from.ch-1,line:f.from.line},f.from);/\s/.test(m)&&f.from.ch--;var y=e.getRange(f.to,{ch:f.to.ch+1,line:f.to.line});/\s/.test(y)&&f.to.ch++,Object.assign(c,{extractPos:(c.extractPos||[]).concat([{from:f.from,to:f.to}])})}}return this.props.onAdd&&this.props.onAdd(e,c,r)}},{key:"handleBatchAddData",value:function(e){var t,n,r=this,i=e.map((function(e){var t=/\s$/.test(e.title)?e.title:"".concat(e.title," "),n=r.findMatchFromText(t).pop();if(n){var i=e.title,o=i.slice(0,n.index).concat(i.slice(n.index+n.fingerprint.length));return C(v(v({},e),{},{title:o}),{key:n.id})}return e}));return null===(t=(n=this.props).onBatchAdd)||void 0===t?void 0:t.call(n,i)}},{key:"isDisabled",value:function(){return f&&this.props[f]}},{key:"isCertainSetted",value:function(){return p&&this.props[p]}},{key:"onUpdateText",value:function(e,t){t.origin==="select-".concat(n)||this.isDisabled()||this.autoMatch(e),this.props.onChange&&this.props.onChange(e,t)}},{key:"onResetEditor",value:function(){this.completionData=null}},{key:"onPasteText",value:function(e,t){var n,r=t.startCursor,i=t.endCursor,o=t.text,a=t.newText,s=r.ch,l=s+o.length,c=this.findMatchFromText(a).filter((function(e){return!(e.index+e.fingerprint.length-1<s)&&!(e.index>l)}));if(c.length){var u=c[c.length-1],f=u.index,d=u.index+u.fingerprint.length;n={from:{line:r.line,ch:f},to:{line:i.line,ch:d}}}return n&&this.highlightMarker(e,n.from,n.to),this.props.onPasteText&&this.props.onPasteText(e,{startCursor:r,endCursor:i,text:o,newText:a})||!!n}},{key:"autoMatch",value:function(e){for(var r=this,u=this.props,f=u.projectId,p=u.isSubscribeCalendar,g="project"===n&&p&&!c.uY(),v=e.getCursor(),y=t({projectId:f,isSubscribeCalendar:p}),b=this.isSupportProjectColumn()?new Map(y.map((function(e){return[e.match,new Set(e.columns.map((function(e){return e.get("name")})))]}))):new Map,k=y.map((function(e){return e.match})).concat(y.map((function(e){return e.match1}))).filter(Boolean),w=e.getLine(v.line),C=v.ch,x=w.slice(0,C),_=new RegExp("([".concat(i,"])([^").concat(i,"]*)$"),"i"),S={index:-1,text:"",prefix:""},E=x,O=function(){var e=_.exec(E);if(!e)return 0;var t=e.index,n=e[2]+S.prefix+S.text;if(!k.find((function(e){if(r.isSupportProjectColumn()){var t=d(n.replace(/\s$/,"").split("/"),2),i=t[0],o=t[1],a=e.includes(i),l=b.get(i)?b.get(i):new Set,c=!o||l.has(o);return a&&c}return(0,s.B)(e,n)||(0,s.B)(e,n.replace(/\s$/,""))})))return 0;S.index=t,S.text=n,S.prefix=e[1],E=x.slice(0,t)};E&&0!==O(););this.isSupportProjectColumn()||g||S.index>-1&&(this.matchPieceText=S.text,e.showHint({hint:m,completeSingle:!1,alignWithWord:!0,text:S.text,start:S.index,end:C,callback:function(t,i){var a=S.prefix+i.text;switch(e.replaceRange(a,t.from,t.to,"select-".concat(n)),r.highlightMarker(e,t.from,o().Pos(t.from.line,t.from.ch+i.text.length+1),{key:i.key,text:a}),n){case"project":l.Z.shortcut("quick_add","add_to_list");break;case"priority":l.Z.shortcut("quick_add","set_priority");break;case"assign":l.Z.shortcut("quick_add","assign_to_member")}},source:y}));var T={start:-1,end:-1};if(S.index>-1)for(var L,P=x.substring(S.index),M="assign"===n?new RegExp("([".concat(i,"])(.*)\\s"),"ig"):new RegExp("([".concat(i,"])([^").concat(i,"]*)\\s"),"ig");null!==(L=M.exec(P));){var D,j=S.index+L.index,N=j+1,I=w.slice(N),R=void 0,A=h(k);try{for(A.s();!(D=A.n()).done;){var B=D.value,Z=B.toLowerCase();if(this.isSupportProjectColumn()){var F=b.get(B)?Array.from(b.get(B)):[];if(F.length>0){var U=new RegExp("^"+B.replace(a.Z.escapeReg,"\\$1").replace(/\s/g,"\\s")+"(?:/(".concat(F.map((function(e){return"(".concat(e.replace(a.Z.escapeReg,"\\$1").replace(/\s/g,"\\s"),")")})).join("|"),"))?")+"\\s","");if(R=I.match(U))break}}var K=new RegExp("^"+Z.replace(a.Z.escapeReg,"\\$1").replace(/\s/g,"\\s")+"\\s","i");if(R=I.match(K))break}}catch(W){A.e(W)}finally{A.f()}R&&(T.start=j,T.end=N+R[0].length)}if(T.start>-1){var Y={from:o().Pos(v.line,T.start),to:o().Pos(v.line,T.end)};this.highlightMarker(e,Y.from,Y.to)}else this.clearMarkers(e,{from:o().Pos(v.line,v.ch-1),to:o().Pos(v.line,v.ch)})}},{key:"onTypeKeyChange",value:function(e,t,r){var i=this.props.onTypeKeyChange;if(r===n){var o=e.getAllMarks().filter((function(e){return e.markType===r}));if(o.length&&(this.updateCompletion(e),o.forEach((function(e){return e.clear()}))),!t){var a,s=e.getValue(),l=s.length,c=e.getCursor(),u=this.findMatchFromText(s).filter((function(e){return!(e.index+e.fingerprint.length-1<0)&&!(e.index>l)}));if(u.length){var f=u[u.length-1],d=f.index,h=f.index+f.fingerprint.length;a={from:{line:c.line,ch:d},to:{line:c.line,ch:h}}}a&&this.highlightMarker(e,a.from,a.to)}}null===i||void 0===i||i(e,t,r)}},{key:"clearMarkers",value:function(e,t){var r=(t?e.findMarks(t.from,t.to):e.getAllMarks()).filter((function(e){return e.markType===n}));r.length&&(this.updateCompletion(e),r.forEach((function(e){return e.clear()})))}},{key:"highlightMarker",value:function(e,t,r,i){var a=e.getAllMarks().filter((function(e){return e.markType===n})),s=a.map((function(e){return e.find()}));a.forEach((function(e){return e.clear()})),this.updateCompletion(e,{from:t,to:r},i);var l="priority"===n&&this.completionData&&Object.prototype.hasOwnProperty.call(this.completionData,"key")?"cm-priority-".concat(this.completionData.key):"",c=o().Pos(r.line,r.ch-1);e.markText(t,c,{className:"cm-bold ".concat(l),markType:n,handleMouseEvents:!0}),s.forEach((function(i){i.from.ch!==t.ch&&i.to.ch!==r.ch&&e.replaceRange("",i.from,{line:i.to.line,ch:i.to.ch+1},"select-".concat(n))}))}},{key:"unhighlightMarker",value:function(e,t){if(e.hasFocus()&&this.isClickHighlightMarker){var r=e.findMarksAt(t);if(r&&r.length){var i=r[0];i.markType===n&&(this.updateCompletion(e),i.clear())}}}},{key:"onMouseDownEditor",value:function(e,t){this.isClickHighlightMarker=$(t.target).hasClass("cm-bold"),this.props.onMouseDown&&this.props.onMouseDown(e,t)}},{key:"onClickEditor",value:function(e,t){this.unhighlightMarker(e,t),this.props.onClick&&this.props.onClick(e,t)}},{key:"onFocusEditor",value:function(e,t){(this.isDisabled()||this.isCertainSetted())&&e.getAllMarks().filter((function(e){return e.markType===n})).forEach((function(e){return e.clear()})),this.props.onFocus&&this.props.onFocus(e,t)}},{key:"updateCompletion",value:function(e,t,r){var i=this.props,o=i.projectId,a=i.isSubscribeCalendar,s=null;if(r)s={key:r.key,text:r.text};else if(t){var l=e.getRange(t.from,t.to).trim().slice(1),c=g(l,{projectId:o,isSubscribeCalendar:a});s=null==c?{}:{key:c,text:l}}this.completionData=s,this.props.onChangeParse&&this.props.onChangeParse(n,s&&s.key)}}])&&k(T.prototype,L),P&&k(T,P),Object.defineProperty(T,"prototype",{writable:!1}),T;var T,L,P}(r.Component);return E.displayName="WithQuickSetting(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),r.forwardRef((function(e,t){return r.createElement(E,y({},e,{forwardedRef:t}))}))}}},"wR+Z":function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("NBAS"),n("tkto"),n("ExoC"),n("SuFq"),n("JfAA"),n("gXIK"),n("ma9I"),n("TeQF"),n("fbCW"),n("4mDm"),n("oVuX"),n("2B1R"),n("+2oP"),n("ToJy"),n("7+zs"),n("sMBO"),n("Tskq"),n("qePV"),n("zKZe"),n("07d7"),n("5s+n"),n("rB9j"),n("ALS0"),n("YGK4"),n("PKPk"),n("Rm1S"),n("UxlC"),n("SYor"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("Nr3o"),o=n.n(i),a=n("l3/N"),s=n("NMvI"),l=n("fEur"),c=n("5WEu"),u=n("RDjN"),f=n("rviF"),d=n("ylzY"),h=["forwardedRef","onChange"];function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function k(e,t,n){return t=C(t),function(e,t){if(t&&("object"===p(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],C(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function _(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}function E(e){var t=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),_(t=k(this,n,[e]),"updateCompletion",(function(e){var n=t.props.onChangeParse,r=e.getAllMarks().filter((function(e){return"tag"===e.markType}));if(r.length){var i=r.map((function(t){var n=t.find();return e.getRange(n.from,n.to).toLowerCase().replace(/^#/,"")}));null===n||void 0===n||n("tag",i)}else null===n||void 0===n||n("tag",[])})),_(t,"highlightTagBlock",(function(e,t,n,r,i){var o=document.createElement("span");o.className="tag-item bg-primary-10 p-[2px] align-baseline whitespace-nowrap break-all relative text-primary cursor-pointer",o.innerText="#"+(i||s.tN(r)),e.markText(t,n,{markType:"tag",atomic:!0,replacedWith:o,handleMouseEvents:!0})})),_(t,"highlightDefaultTagBlocks",(function(e,n){var r=s.x3(t.defaultTags),i=0;r.forEach((function(r,a){var s="#"+r,l=o().Pos(n.line,n.ch+i),c=o().Pos(n.line,n.ch+i+s.length);e.findMarks(l,c).length||t.highlightTagBlock(e,l,c,t.defaultTags[a],r),i+=s.length+1})),t.updateCompletion(e)})),t.state={isEditorFocused:!1},t.defaultTags=[],t.codemirror=null,t.onUpdateText=t.onUpdateText.bind(t),t.onAfterFocusEditor=t.onAfterFocusEditor.bind(t),t.unhighlighTagBlock=t.unhighlighTagBlock.bind(t),t.handleAddData=t.handleAddData.bind(t),t.handleBatchAddData=t.handleBatchAddData.bind(t),t.onTypeKeyChange=t.onTypeKeyChange.bind(t),t.timeoutTimer=null,t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(n,t),i=n,(p=[{key:"componentWillUnmount",value:function(){this.timeoutTimer&&clearTimeout(this.timeoutTimer)}},{key:"render",value:function(){var t=this.props,n=t.forwardedRef,i=(t.onChange,y(t,h));return r.createElement(e,v({},i,{ref:n,onAdd:this.handleAddData,onBatchAdd:this.handleBatchAddData,onAfterFocus:this.onAfterFocusEditor,onChange:this.onUpdateText,onClick:this.unhighlighTagBlock,onTypeKeyChange:this.onTypeKeyChange}))}},{key:"onAfterFocusEditor",value:function(e){var t=this,n=this.props,r=n.forwardedRef,i=n.saveBeforeUnmount;if(this.defaultTags=this.getDefaultTags(),this.codemirror=e,!d.ZP.quickAddChangeTagManually&&0!==!this.defaultTags.length){var o=s.x3(this.defaultTags).map((function(e){return"#"+e+" "})).join("");if(e&&o&&!e.getValue())if(i){var a,l,c=e.getCursor(),u={line:c.line,ch:c.ch};e.replaceRange(o,u),this.highlightDefaultTagBlocks(e,u),e.clearHistory(),null===(a=r.current)||void 0===a||null===(l=a.syncDraftKindIcon)||void 0===l||l.call(a)}else this.timeoutTimer&&clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){if(e){var n,i;r&&r.current&&""===r.current.defaultText&&(r.current.defaultText=o);var a=e.getCursor(),s={line:a.line,ch:a.ch};e.replaceRange(o,s),t.highlightDefaultTagBlocks(e,s),e.clearHistory(),null===(n=r.current)||void 0===n||null===(i=n.syncDraftKindIcon)||void 0===i||i.call(n)}}),10)}}},{key:"doTagParse",value:function(e){var t=this;if(c.YL()){var n=e.getValue(),r=n.match(/#([^$\s\\\":*?<>|#]+)\s/gi),i=new Map(s.NJ().toArray().map((function(e){return[e.get("name"),s.Gf(e)]})));if(e.getAllMarks().filter((function(e){return"tag"===e.markType})).forEach((function(e){return e.clear()})),r){var a=0;(r||[]).map((function(e){var t=e.trim(),r=n.slice(a).indexOf(t),i={start:a+r,end:a+r+t.length,highlight:t};return a=r+e.length,i})).sort((function(e,t){return e.start>t.start?1:-1})).forEach((function(n){var r=n.start,a=n.end,s=n.highlight,l=o().Pos(0,r),c=o().Pos(0,a);if(!e.findMarks(l,c).length){var u=s.slice(1),f=u.toLowerCase();t.highlightTagBlock(e,l,c,f,i.get(f)||u)}}))}this.updateCompletion(e)}else this.updateCompletion(e)}},{key:"onUpdateText",value:function(e,t){var n=this.props,r=n.isQuickTagDisabled,i=n.onChange;r||(c.YL()&&this.autoMatchTag(e),this.doTagParse(e)),i&&i(e,t)}},{key:"onTypeKeyChange",value:function(e,t,n){var r=this.props,i=r.isQuickTagDisabled,o=r.onTypeKeyChange;"tag"===n&&(e.getAllMarks().filter((function(e){return"tag"===e.markType})).forEach((function(e){return e.clear()})),t||i||!c.YL()?this.updateCompletion(e):this.doTagParse(e)),null===o||void 0===o||o(e,t,n)}},{key:"autoMatchTag",value:function(e){for(var t=/\s/,n=e.getCursor(),r=e.getLine(n.line),i=n.ch-1,a=n.ch;i>-1;i--)if(t.test(r.charAt(i))){i+=1;break}i<0&&(i=0);var l=r.slice(i,a).match(/^[#|\uff03]([^\\\/\*\"\:\?\<\>\|#|\uff03|\s]*)/),c=e.findMarks(o().Pos(n.line,i),o().Pos(n.line,a));if(!l||c.length&&"tag"===c[0].markType)return o().Pass;var u=s.xB(),d=e.getAllMarks().filter((function(e){return"tag"===e.markType})).map((function(t){var n=t.find(),r=e.getRange(n.from,n.to);return(r&&r.trim().slice(1)).toLowerCase()})).filter((function(e){return!!e})),h=new Set(d),p=u.filter((function(e){return!h.has(e.toLowerCase())})).map((function(e){return{match:e,hint:e+" "}})),m=new Set(u.map((function(e){return e.toLowerCase()}))),g=l[1]||"";e.showHint({hint:o().hint.tag,completeSingle:!1,alignWithWord:!0,text:g,start:i,end:a,callback:function(e,t){f.Z.shortcut("quick_add","set_tag")},source:p,originSourceSet:m})}},{key:"unhighlighTagBlock",value:function(e,t){if(!t.xRel){var n=e.findMarksAt(t);if(n&&n.length){var r=n[0];if("tag"===r.markType){var i=r.find().from,o=r.find().to;r.clear(),e.markText(i,o,{markType:"tag-disabled",className:"cm-disable"});var a=e.getCursor();setTimeout((function(){e.setCursor(a)})),this.updateCompletion(e.getDoc())}}}this.props.onClick&&this.props.onClick(e,t)}},{key:"handleAddData",value:function(e,t,n){var r=this.props.onAdd,i=e.getAllMarks().filter((function(e){return"tag"===e.markType})),o=c.YL()?[]:this.getDefaultTags();if(i.length){var a=i.map((function(t){var n=t.find(),r=e.getRange(n.from,n.to);return(r&&r.trim().slice(1)).toLowerCase()})).filter((function(e){return!!e}));if(c.U2("removeTag")){var s=i.map((function(t){var n=t.find(),r=e.getRange({ch:n.from.ch-1,line:n.from.line},n.from);/\s/.test(r)&&n.from.ch--;var i=e.getRange(n.to,{ch:n.to.ch+1,line:n.to.line});return/\s/.test(i)&&n.to.ch++,n})).sort((function(e,t){return e.from.ch-t.from.ch}));Object.assign(t,{extractPos:(t.extractPos||[]).concat(s)})}Object.assign(t,{tags:m(new Set([].concat(m(o),m(a))))})}else o.length&&Object.assign(t,{tags:m(new Set([].concat(m(t.tags||[]),m(o))))});return r&&r(e,t,n)}},{key:"handleBatchAddData",value:function(e){var t=this.props.onBatchAdd,n=this.getDefaultTags();if(!c.YL()){var r=e.map((function(e){return n.length?Object.assign(e,{tags:m(new Set([].concat(m(e.tags||[]),m(n))))}):e}));return null===t||void 0===t?void 0:t(r)}var i=e.map((function(e){for(var t=m(n),r=$.trim(e.title),i=/^#([^\\\/\"#:\*\?<>\|\s]+\s+)|(\s+#[^\\\/\"#:\*\?<>\|\s]+)$|^#([^\\\/\"#:\*\?<>\|\s]+)$|\s+#[^\\\/\"#:\*\?<>\|\s]+\s+/g,o=[],a="",s=0,l=i.exec(r);l;)o.push({fingerprint:l[0],index:l.index}),i.lastIndex-=1,l=i.exec(r);return o.forEach((function(e){var n=e.index,i=e.fingerprint,o=i.trim().slice(1);-1===t.indexOf(o)&&t.push(o.toLowerCase()),s>n&&(s=n),a+=r.slice(s,n),s=n+i.length})),a+=r.slice(s),t.length?Object.assign(e,{tags:t,title:a}):e}));return null===t||void 0===t?void 0:t(i)}},{key:"getDefaultTags",value:function(){var e=[],t=this.props,n=t.groupBy,r=t.columnId,i=t.presetProperties;if(this.props.isQuickTagDisabled)return[];var o=c.bz();if(a.Rq())if(a.kG()&&n===u.X9E.tag){if(r===u.iij)return[];r&&e.push(r)}else{var f=s.Js();e.push(f)}else if(i&&void 0!==i.tags){var d=i.tags;if(null==d)return[];d[0]&&e.push(d[0])}else if(a.rQ())if(l.nQ())if(a.kG()&&n===u.X9E.tag){if(r===u.iij)return[];r&&e.push(r)}else{var h=l.S0();if(h){var p=h.map((function(e){return"#"+e})).join(" ").slice(1);e.push(p)}}else if(a.kG()&&n===u.X9E.tag){if(r===u.iij)return[];r&&e.push(r)}else e.push.apply(e,m(o));else if(a.kG()&&n===u.X9E.tag){if(r===u.iij)return[];r&&e.push(r)}else e.push.apply(e,m(o));return e}}])&&b(i.prototype,p),g&&b(i,g),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,p,g}(r.Component);return t.displayName="WithTagSetting(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),r.forwardRef((function(e,n){return r.createElement(t,v({},e,{forwardedRef:n}))}))}},Chbu:function(e,t,n){"use strict";n.d(t,{Z:function(){return pe}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("fbCW"),n("yq1k"),n("4mDm"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("SuFq"),n("rB9j"),n("ALS0"),n("JTJg"),n("PKPk"),n("UxlC"),n("FZtP"),n("3bBZ");var r=n("y8mg"),i=n.n(r),o=n("EPMa"),a=n.n(o),s=n("Nr3o"),l=n.n(s),c=n("q1tI"),u=n("3KU8"),f=n.n(u),d=n("iEvi"),h=n("pWE6"),p=n("4oOC"),m=n("DhZW"),g=n("Mfe1"),v=n("ylzY"),y=n("/Qhg"),b=n.n(y),k=n("Ag2S"),w=n("PGqD");n("E9XD"),n("SYor"),n("oVuX"),n("TWNs"),n("LD7m"),n("JfAA"),n("Rm1S");function C(e,t){return Array(t+1).join(e)}var x=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function _(e){return T(e,x)}var S=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function E(e){return T(e,S)}var O=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function T(e,t){return t.indexOf(e.nodeName)>=0}function L(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var P={};function M(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}P.paragraph={filter:["p","div"],replacement:function(e){return"\n\n"+e+"\n\n"}},P.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},P.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));return"setext"===n.headingStyle&&r<3?"\n\n"+e+"\n"+C(1===r?"=":"-",e.length)+"\n\n":"\n\n"+C("#",r)+" "+e+"\n\n"}},P.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},P.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},P.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ").replace(/(\n )*$/,"");var r=n.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},P.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return console.log("indent",t),"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},P.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var r,i=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,a=n.fence.charAt(0),s=3,l=new RegExp("^"+a+"{3,}","gm");r=l.exec(o);)r[0].length>=s&&(s=r[0].length+1);var c=C(a,s);return"\n\n"+c+i+"\n"+o.replace(/\n$/,"")+"\n"+c+"\n\n"}},P.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},P.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href");n&&(n=n.replace(/([()])/g,"\\$1"));var r=M(t.getAttribute("title"));return r&&(r=' "'+r.replace(/"/g,'\\"')+'"'),"["+e+"]("+n+r+")"}},P.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),a=M(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+a;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+a;break;default:var s=this.references.length+1;r="["+e+"]["+s+"]",i="["+s+"]: "+o+a}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},P.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},P.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},P.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},P.image={filter:"img",replacement:function(e,t){var n=M(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=M(t.getAttribute("title"));return r?"\n!["+n+"]("+r+(i?' "'+i+'"':"")+")\n":""}};var D=P;function j(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function N(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(I(i,t,n))return i}}function I(e,t,n){var r=e.filter;if("string"===typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!==typeof r)throw new TypeError("`filter` needs to be a string, array, or function");if(r.call(e,t,n))return!0}}function R(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function A(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}j.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=N(this.array,e,this.options))||(t=N(this._keep,e,this.options))||(t=N(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var B=function(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!i(t)){for(var o=null,a=!1,s=null,l=A(s,t,i);l!==t;){if(3===l.nodeType||4===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(o&&!/ $/.test(o.data)||a||" "!==c[0]||(c=c.substr(1)),!c){l=R(l);continue}l.data=c,o=l}else{if(1!==l.nodeType){l=R(l);continue}n(l)||"BR"===l.nodeName?(o&&(o.data=o.data.replace(/ $/,"")),o=null,a=!1):r(l)||i(l)?(o=null,a=!0):o&&(a=!1)}var u=A(s,l,i);s=l,l=u}o&&(o.data=o.data.replace(/ $/,""),o.data||R(o))}},Z=n("wKRd"),F="undefined"!==typeof window?window:{};var U,K=function(){var e=F.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(n){}return t}()?F.DOMParser:function(){var e=function(){};return process.browser?!function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){F.ActiveXObject&&(e=!0)}return e}()?e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){return Z.createDocument(e)},e}();function Y(e,t){var n;"string"===typeof e?n=(U=U||new K).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):n=e.cloneNode(!0);return B({element:n,isBlock:_,isVoid:E,isPre:t.preformattedCode?W:null}),n}function W(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function H(e,t){return e.isBlock=_(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!E(e)&&!function(e){return T(e,O)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return L(e,S)}(e)&&!function(e){return L(e,O)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=function(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}(e.textContent);n.leadingAscii&&z("left",e,t)&&(n.leading=n.leadingNonAscii);n.trailingAscii&&z("right",e,t)&&(n.trailing=n.trailingNonAscii);return{leading:n.leading,trailing:n.trailing}}(e,t),e}function z(e,t,n){var r,i,o;return"left"===e?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(3===r.nodeType?o=i.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||_(r)||(o=i.test(r.textContent))),o}var q=Array.prototype.reduce;function V(e){if(!(this instanceof V))return new V(e);var t={rules:D,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},t,e),this.rules=new j(this.options)}function J(e){var t=this;return q.call(e.childNodes,(function(e,n){var r="";return 3===(n=new H(n,t.options)).nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=Q.call(t,n)),X(e,r)}),"")}function G(e){var t=this;return this.rules.forEach((function(n){"function"===typeof n.append&&(e=X(e,n.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Q(e){var t=this.rules.forNode(e),n=J.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function X(e,t){var n=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),i=Math.max(e.length-n.length,t.length-r.length);return n+"\n".substring(0,i)+r}V.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"===typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=J.call(this,new Y(e,this.options));return G.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!==typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return e}};var ee=new V({headingStyle:"atx",hr:"---",bulletListMarker:"-",codeBlockStyle:"fenced",fence:"```",emDelimiter:"*",strongDelimiter:"**",linkStyle:"inlined",br:""});ee.addRule("underline",{filter:["u"],replacement:function(e){return"~"+e+"~"}}),ee.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}});var te=ee,ne=n("AT7j");n("Kefl");function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,de(r.key),r)}}function se(e,t,n){return t=ce(t),function(e,t){if(t&&("object"===re(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,le()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}function fe(e,t,n){return(t=de(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){var t=function(e,t){if("object"!=re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==re(t)?t:t+""}window.editorInactiveSpeed=1;var he=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),fe(n=se(this,t,[e]),"onDocumentVisibilityChange",(function(){"visible"===document.visibilityState||(n.debounceBlurEditorWhenInactiveEditor.cancel(),n.debounceBlurEditorWhenFastInactiveEditor())})),fe(n,"blurEditorWhenInactiveEditor",(function(){n.blur()})),fe(n,"debounceBlurEditorWhenInactiveEditor",i().debounce(n.blurEditorWhenInactiveEditor,3e5*window.editorInactiveSpeed,{leading:!1,trailing:!0})),fe(n,"debounceBlurEditorWhenFastInactiveEditor",i().debounce(n.blurEditorWhenInactiveEditor,6e4*window.editorInactiveSpeed,{leading:!1,trailing:!0})),fe(n,"onFocus",(function(e,t){var r=n.props,i=r.onFocus;r.readOnly?n.setState({isFocused:!1}):(n.setState({isFocused:!0}),n.codeMirror.hadFocused=!0,n.debounceBlurEditorWhenInactiveEditor(),i(e,t))})),fe(n,"onBlur",(function(e,t){var r=n.props,i=r.onBlur,o=r.readOnly;n.setState({isFocused:!1}),o||(n.autoSave.cancel(),i(e,t))})),fe(n,"autoSave",i().throttle((function(){v.ZP.autoSaveEnabled&&(b().info("Editor auto save at ",new Date),n.onSave(!1))}),4e3,{leading:!1})),fe(n,"onKeyDown",(function(e,t){var r=n.props.onKeyDown;$(".CodeMirror-hints").length&&27===t.keyCode&&t.stopPropagation(),r(e,t)})),fe(n,"onKeyUp",(function(e,t){var r=n.props.onKeyUp;(void 0===r?function(){}:r)(e,t)})),fe(n,"onMouseDown",(function(e,t){if(v.ZP.hasTaskContextMenu)t.preventDefault();else{if($(".CodeMirror-hints").length)return n.codeMirror.closeHint(),void t.preventDefault();var r=n.props.onMouseDown;n.isClickOnMdCheckItem(e,t)||r(e,t)}})),fe(n,"onMouseMove",(function(e){(0,n.props.onMouseMove)(e)})),fe(n,"onMouseLeave",(function(e){(0,n.props.onMouseLeave)(e)})),fe(n,"onBeforeChange",(function(e,t){var r=n.props,i=r.handleBeforeInput,o=r.handleOverLimit;o&&o(e,t),i(e,t)})),fe(n,"onChange",(function(e,t){var r=n.props,i=r.readOnly,o=r.onChange;i||(n.isMdMode()&&(0,m.LL)(n.codeMirror),o(e,t),n.autoSave())})),fe(n,"onBeforeSelectionChange",(function(e,t){n.isMdMode()&&(0,h.WO)(e,t)})),fe(n,"onCursorActivity",(function(e){var t=n.props.onCursorActivity;n.adjustScrollPosition(e),n.debounceBlurEditorWhenInactiveEditor(),t(e)})),fe(n,"onPaste",(function(e,t){n.props.readOnly||(n.handlePastedText(e,t),n.mdFold&&n.mdFold.startFoldImmediately())})),fe(n,"onDrop",(function(e,t){t.preventDefault()})),fe(n,"onDragOver",(function(e,t){var r=n.props,i=r.dragDrop,o=r.readOnly;if(i&&!o){var a=t.x,s=t.y,l=e.coordsChar({left:a,top:s}),c=l.line,u=l.ch;e.focus(),e.setCursor({line:c,ch:u})}else t.preventDefault()})),fe(n,"onDragLeave",(function(e,t){var r=n.props,i=r.dragDrop,o=r.readOnly;i&&!o?e.getInputField().blur():t.preventDefault()})),fe(n,"isEmojiInputText",(function(e){return!!e&&/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\u2600-\u27BF]|\u200D|\uFE0F/.test(e)})),fe(n,"onFirefoxMacEmojiBeforeInput",(function(e){if(!n.props.readOnly&&n.codeMirror&&!n.codeMirror.isReadOnly()){var t=e.inputType,r=e.data;"insertText"===t&&n.isEmojiInputText(r)&&(e.preventDefault(),n.codeMirror.replaceSelection(r,"end","+input"))}})),fe(n,"isFullMdMode",(function(){return"markdown"===n.getOptions().mode})),n.state={isFocused:!1},n.isCursorActivated=!1,n.codeMirrorRef=c.createRef(),n.onBlur=n.onBlur.bind(n),n.onSave=n.onSave.bind(n),n.id=i().uniqueId(),n.isDuringClickCheckboxChange=!1,n.restoreIsDuringClickCheckboxChangeTimer=null,n.firefoxMacEmojiInputField=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){var e=this,t=this.props.onMount;this.initEditor(),k.vp.subscribe(this.id,"editorSave",(function(t){var n=t.showToast;e.onSave(n)})),t(),document.addEventListener("visibilitychange",this.onDocumentVisibilityChange)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.placeholder,r=t.readOnly,i=t.id,o=t.keyHandleMap,a=t.env,s=t.isLocal,l=t.value;this.codeMirror&&((l!==e.value&&!this.codeMirror.hasFocus()||i!==e.id)&&this.resetValue(e.value),s!==e.isLocal&&this.codeMirror.setOption("isLocal",e.isLocal),n!==e.placeholder&&(this.codeMirror.setOption("placeholder",e.placeholder),$(this.codeMirror.display.wrapper).hasClass("CodeMirror-focused")?(this.blur(),this.focus()):this.blur()),i!==e.id&&this.codeMirror.setOption("openLinkAction",e.openLinkAction),r!==e.readOnly&&(this.codeMirror.setOption("readOnly",e.readOnly),this.codeMirror.setOption("cursorBlinkRate",e.readOnly?-1:530)),o!==e.keyHandleMap&&this.codeMirror.setOption("extraKeys",e.keyHandleMap),a!==e.env&&this.codeMirror.setOption("ticktickEnv",a))}},{key:"componentWillUnmount",value:function(){k.vp.unSubscribe(this.id,"editorSave"),document.removeEventListener("visibilitychange",this.onDocumentVisibilityChange),this.codeMirror.off("beforeChange",this.onBeforeChange),this.codeMirror.off("change",this.onChange),this.codeMirror.off("cursorActivity",this.onCursorActivity),this.codeMirror.off("beforeSelectionChange",this.onBeforeSelectionChange),this.codeMirror.off("focus",this.onFocus),this.codeMirror.off("blur",this.onBlur),this.codeMirror.off("paste",this.onPaste),this.codeMirror.off("keydown",this.onKeyDown),this.codeMirror.off("keyup",this.onKeyUp),this.codeMirror.off("mousedown",this.onMouseDown),this.codeMirror.off("drop",this.onDrop),this.codeMirror.off("dragover",this.onDragOver),this.codeMirror.off("dragleave",this.onDragLeave),this.removeFirefoxMacEmojiInputHandler()}},{key:"onSave",value:function(e){var t=this.props,n=t.readOnly,r=t.onSave;n||r(e)}},{key:"getCodeMirror",value:function(){return this.codeMirror}},{key:"getValue",value:function(){return this.codeMirror?this.codeMirror.getValue():null}},{key:"getOptions",value:function(){var e=this.props,t=e.readOnly,n=e.placeholder,r=e.options,i=e.openLinkAction;return oe(oe({id:this.id,mode:null,lineNumbers:!1,indentWithTabs:!1,dragDrop:!0,cursorScrollMargin:0,disableInput:t,readOnly:t,cursorBlinkRate:t?-1:530,placeholder:n,openLinkAction:i,styleSelectedText:!0,showCursorWhenSelecting:!1},w.vU&&"markdown"===(null===r||void 0===r?void 0:r.mode)?{cursorHeight:.65,singleCursorHeightPerLine:!0}:{cursorHeight:1,singleCursorHeightPerLine:!1}),r)}},{key:"handlePastedText",value:function(e,t){var n=t.clipboardData||window.clipboardData||t.originalEvent.clipboardData;if(n.items&&n.items.length>1&&"string"!==n.items[1].kind)t.stopPropagation(),t.preventDefault();else{var r,i=this.props.handlePaste;if(t.preventDefault(),window.clipboardData&&window.clipboardData.setData)r=n.getData("text");else{r=n.getData("text/plain");try{var o=n.getData("text/html");if(o&&this.isFullMdMode()&&!o.includes("http://schemas.microsoft.com/office/2004/12/omml")){var a=n.getData("text/markdown");if(a)r=a;else if(o){var s=o.replace(/<([a-z][a-z0-9]*)\b[^>]*>/gi,(function(e){return e.replace(/\n/g," ")})).replace(/<head>[\s\S]*<\/head>/gm,"").replace(/<style>[\s\S]*<\/style>/gm,"").replace(/\n/gm,"<br/>");r=te.turndown(s)}}}catch(l){console.log(l)}}if(i&&i(e,r))return;e.doc.replaceSelection(r)}}},{key:"isClickOnMdCheckItem",value:function(e,t){var n=this;if(!this.isMdMode())return!1;if(e.getOption("readOnly"))return!1;var r=e.coordsChar({left:t.clientX,top:t.clientY}),i=(0,m.R2)(e,r.line,t.clientX);if(i){if(t.preventDefault(),this.restoreIsDuringClickCheckboxChangeTimer&&(clearTimeout(this.restoreIsDuringClickCheckboxChangeTimer),this.restoreIsDuringClickCheckboxChangeTimer=null),this.isDuringClickCheckboxChange)return!1;this.isDuringClickCheckboxChange=!0;var o=i.find(),a=o.from,s=o.to;i.clear();var l=e.getRange(a,s);return l=" [ ] "===l?" [x] ":" [ ] ",e.replaceRange(l,a,s,"manualMarkText"),(0,m.pH)(e,r.line),this.restoreIsDuringClickCheckboxChangeTimer=setTimeout((function(){n.isDuringClickCheckboxChange=!1}),100),!0}return!1}},{key:"addFirefoxMacEmojiInputHandler",value:function(){if(w.vU&&w.V5&&this.codeMirror){var e=this.codeMirror.getInputField();e&&this.firefoxMacEmojiInputField!==e&&(this.removeFirefoxMacEmojiInputHandler(),this.firefoxMacEmojiInputField=e,e.addEventListener("beforeinput",this.onFirefoxMacEmojiBeforeInput))}}},{key:"removeFirefoxMacEmojiInputHandler",value:function(){this.firefoxMacEmojiInputField&&(this.firefoxMacEmojiInputField.removeEventListener("beforeinput",this.onFirefoxMacEmojiBeforeInput),this.firefoxMacEmojiInputField=null)}},{key:"initEditor",value:function(){var e=this,t=this.props,n=t.env,r=t.isLocal;if(this.codeMirror=l().fromTextArea(this.codeMirrorRef.current,this.getOptions()),this.codeMirror.hadFocused=!1,this.codeMirror.setOption("isLocal",r),this.codeMirror.setOption("ticktickEnv",n),this.isMdMode()){var i=this.getOptions().mode;this.mdFold=new d.ZP(this.codeMirror),"markdown"===i&&new p.Z(this.codeMirror).start(),this.codeMirror.setOption("ticktickMDFold",this.mdFold)}this.codeMirror.on("beforeChange",this.onBeforeChange);var o=this.props,a=o.value,s=o.keyHandleMap,c=o.onBeforeNativeFocus;a&&(this.resetValue(a),this.codeMirror.refresh()),this.codeMirror.on("change",this.onChange),this.codeMirror.on("cursorActivity",this.onCursorActivity),this.codeMirror.on("beforeSelectionChange",this.onBeforeSelectionChange),this.codeMirror.on("focus",this.onFocus),this.codeMirror.on("blur",this.onBlur),this.codeMirror.on("paste",this.onPaste),this.codeMirror.on("keydown",this.onKeyDown),this.codeMirror.on("keyup",this.onKeyUp),this.codeMirror.on("mousedown",this.onMouseDown),this.codeMirror.on("drop",this.onDrop),this.codeMirror.on("dragover",this.onDragOver),this.codeMirror.on("dragleave",this.onDragLeave),this.addFirefoxMacEmojiInputHandler(),this.codeMirror.setOption("extraKeys",s),this.codeMirror.setOption("configureMouse",(function(e,t,n){var r="char";return"double"===t&&(r="word"),"triple"===t&&(r=function(e,t){return{from:l().Pos(t.line,0),to:l().Pos(t.line,e.getLine(t.line).length)}}),{unit:r,extend:!!n.shiftKey,addNew:!1,moveOnDrag:!1}})),this.codeMirror.display.input.focus=function(){var t=e.codeMirror.display.input;c(),Object.getPrototypeOf(t).focus.call(t)}}},{key:"isMdLinkMode",value:function(){return"link-markdown"===this.getOptions().mode}},{key:"isMdMode",value:function(){return this.isFullMdMode()||this.isMdLinkMode()}},{key:"resetValue",value:function(e){this.isMdMode()?(this.mdFold.reset(),this.codeMirror.setValue(e),this.mdFold.startFoldImmediately()):this.codeMirror.setValue(e),this.codeMirror.hadFocused=!1,this.codeMirror.refresh(),this.codeMirror.clearHistory()}},{key:"focus",value:function(){this.codeMirror&&this.codeMirror.focus()}},{key:"blur",value:function(){this.codeMirror&&this.codeMirror.getInputField().blur()}},{key:"adjustScrollPosition",value:function(e){var t=this.props.scrollEltSelector;if(t&&this.codeMirrorRef.current){var n=$(this.codeMirrorRef.current).closest(t);n&&0!==e.listSelections().length&&(this.isDuringClickCheckboxChange||setTimeout((function(){var t=(0,g.Pl)(e,e.listSelections()[0].head,n);t>=0&&(n[0].scrollTop=t)})))}}},{key:"render",value:function(){var e=this,t=this.state.isFocused,n=this.props.className,r=a()("MDEditor notranslate",{"MDEditor-focused":t},n),i=function(t,n){var r=e.getCodeMirror(),i=r.getSelection()||function(){var e=r.getCursor();return r.getLine(e.line)}();t.clipboardData.setData("text/plain",i),t.clipboardData.setData("text/markdown",i);var o=ne.e.render(i.replace(/([^\n])\n([^\n])/g,"$1\n\n$2"));t.clipboardData.setData("text/html",o),t.preventDefault(),null===n||void 0===n||n()};return c.createElement("div",{className:r,translate:"no",onMouseMove:this.onMouseMove,onMouseLeave:this.onMouseLeave,onCopy:function(t){var n=e.getCodeMirror();e.isFullMdMode()&&n&&i(t)},onCut:function(t){var n=e.getCodeMirror();e.isFullMdMode()&&n&&i(t,(function(){n.replaceSelection("")}))}},c.createElement("textarea",{ref:this.codeMirrorRef,autoComplete:"off",style:{display:"none"}}))}}],r&&ae(n.prototype,r),o&&ae(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c.Component),pe=he;he.propTypes={id:f().string,onCursorActivity:f().func,handleBeforeInput:f().func,handleOverLimit:f().func,onMouseDown:f().func,onMouseMove:f().func,onMouseLeave:f().func,onFocus:f().func,onBlur:f().func,handlePaste:f().func,onKeyDown:f().func,onKeyUp:f().func,onSave:f().func,onMount:f().func,onChange:f().func,onBeforeNativeFocus:f().func,options:f().object,value:f().string,readOnly:f().bool,placeholder:f().oneOfType([f().string,f().instanceOf(Element)]),keyHandleMap:f().object,className:f().string,scrollEltSelector:f().string,env:f().string,dragDrop:f().bool,isLocal:f().bool,openLinkAction:f().func},he.defaultProps={id:"",onMouseMove:function(){},onMouseLeave:function(){},onCursorActivity:function(e){},handleBeforeInput:function(e,t){},handleOverLimit:function(e,t){},onMouseDown:function(e,t){},onKeyDown:function(e,t){},onKeyUp:function(e,t){},onFocus:function(e,t){},onBlur:function(e,t){},handlePaste:function(e,t){return!1},onSave:function(){},onMount:function(){},onChange:function(e,t){},onBeforeNativeFocus:function(){},openLinkAction:function(){},options:{},readOnly:!1,placeholder:"",keyHandleMap:{},value:"",className:"",scrollEltSelector:"",env:"",dragDrop:!1,isLocal:!1};l().commands.save=function(e){if(e){var t=e.getOption("id");k.vp.dispatchOne("editorSave",t,{showToast:e})}}},enMc:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("fbCW"),n("4mDm"),n("+2oP"),n("7+zs"),n("qePV"),n("zKZe"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("SuFq"),n("rB9j"),n("YGK4"),n("PKPk"),n("Rm1S"),n("UxlC"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("3KU8"),o=n.n(i),a=n("y8mg"),s=n.n(a),l=n("EPMa"),c=n.n(l),u=n("+3a/"),f=n("4+DD"),d=n("xS9v"),h=n("/Qhg"),p=n.n(h),m=n("vqoM"),g=n.n(m);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function C(e,t,n){return t=_(t),function(e,t){if(t&&("object"===v(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,x()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function E(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}var T=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),E(n=C(this,t,[e]),"wrapMouseDown",(function(e){var t=n.props.onEditMouseDown;t&&t(e.target,n.htmlEl)})),E(n,"wrapMouseUp",(function(e){var t=n.props.onEditMouseUp;t&&t(e.target,n.htmlEl),$(e.target).closest($(n.htmlEl)).length||n.focusAndPlaceCaretAtEnd()})),E(n,"autoSave",s().throttle((function(){p().info("Editor auto save at ",new Date),n.onSave()}),4e3,{isLeading:!1})),n.state={isEditing:!1,isFocusing:!1},n.lastValue=e.value,n.onMouseDown=n.onMouseDown.bind(n),n.onKeyUp=n.onKeyUp.bind(n),n.onKeyDown=n.onKeyDown.bind(n),n.onKeyPress=n.onKeyPress.bind(n),n.onFocus=n.onFocus.bind(n),n.onBlur=n.onBlur.bind(n),n.onPaste=n.onPaste.bind(n),n.onChange=n.onChange.bind(n),n.onContextMenu=n.onContextMenu.bind(n),n.focusAndPlaceCaretAtEnd=n.focusAndPlaceCaretAtEnd.bind(n),n.onCompositionStart=n.onCompositionStart.bind(n),n.onCompositionEnd=n.onCompositionEnd.bind(n),n.composing=!1,n.isEdited=!1,n._listenId=s().uniqueId(),n.xDistance=100,n.placeholderRef=r.createRef(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),n=t,i=[{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=this.state;return!this.htmlEl||e.id!==n.id||e.value!==n.value&&!this.isEdited||n.disabledSyntax!==e.disabledSyntax||n.readOnly!==e.readOnly||n.placeholder!==e.placeholder||n.className!==e.className||r.isFocusing!==t.isFocusing||r.isEditing!==t.isEditing||n.titleWidth!==e.titleWidth}},{key:"componentDidMount",value:function(){this.checkPlaceholder()}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(){null!==this.htmlEl&&(this.props.value!==this.getValue()&&(this.lastValue=this.props.value,this.state.isEditing&&this.focusAndPlaceCaretAtEnd(!0)),this.checkPlaceholder())}},{key:"onSave",value:function(){var e=this.props,t=e.onSave;e.readOnly||t()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=t.readOnly,o=t.readOnlyFocusable,a=t.hidePlaceholder,s=t.placeholder,l=t.tabIndex,f=t.lineWrapping,d=t.convertOptions,h=void 0===d?{}:d,p=t.titleWidth,m=t.spellCheck,v=t.placeholderClassName,b=t.disabledSyntax,w=t.valueClassName,C=this.state.isFocusing,x={};o&&(x.tabIndex="-1"),i&&(x.disabled=!0);var _={cursor:i?"inherit":"text"};p&&(_.width=p);var S=C?new Set(["highlight"]):b;return r.createElement("div",{className:c()("inline-editor ap-inline-editor notranslate relative",g().inline,{"word-wrap":f,"word-nowrap":!f},n),style:{cursor:"pointer"},onMouseDown:this.wrapMouseDown,onMouseUp:this.wrapMouseUp,translate:"no"},r.createElement("div",y({ref:function(t){return e.htmlEl=t},tabIndex:l,contentEditable:!i,spellCheck:m,dangerouslySetInnerHTML:{__html:u.fr(this.props.value||"",k(k({},h),{},{lineWrapping:f,editable:!i,disabledSyntax:S}))},className:w,style:_,onMouseDown:this.onMouseDown,onInput:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onPaste:this.onPaste,onKeyUp:this.onKeyUp,onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onContextMenu:this.onContextMenu,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd},x)),a?null:r.createElement("div",{className:c()("input-placeholder absolute top-0 left-0 overflow-hidden whitespace-nowrap text-grey-40 cursor-text\t",v),ref:this.placeholderRef},s))}},{key:"onCompositionStart",value:function(){this.composing=!0,this.props.onCompositionStart&&this.props.onCompositionStart()}},{key:"onCompositionEnd",value:function(){this.composing=!1,this.forceChange||this.onChange(),this.props.onCompositionEnd&&this.props.onCompositionEnd()}},{key:"onMouseDown",value:function(e){var t=$(e.target).closest("a.contentUrl"),n=this.props,r=n.autoLink,i=n.canAutoLinkOpen;r&&i&&t.length>0&&0===e.button&&(this.hasFocus()||(e.preventDefault(),window.open(t.attr("href"),"_blank")))}},{key:"onKeyUp",value:function(e){this.props.hidePlaceholder||this.checkPlaceholder(),this.props.listenKeyUp&&this.props.listenKeyUp(e)}},{key:"onKeyDown",value:function(e){this.props.listenKeyDown&&this.props.listenKeyDown(e)}},{key:"onKeyPress",value:function(e){this.props.listenKeyPress&&this.props.listenKeyPress(e)}},{key:"onContextMenu",value:function(e){this.props.listenContextMenu&&this.props.listenContextMenu(e)}},{key:"onPaste",value:function(e){var t;this.props.listenPaste?this.props.listenPaste(e):e.clipboardData.items&&e.clipboardData.items.length>1&&"string"!==e.clipboardData.items[1].kind?(e.stopPropagation(),e.preventDefault()):(e.preventDefault(),t=window.clipboardData&&window.clipboardData.setData?e.clipboardData.getData("text"):(e.originalEvent||e).clipboardData.getData("text/plain"),(t=d.a2(t)).match(/[\n\r]/)?document.execCommand("insertText",!1,t.replace(/[\n\r]/g," ")):document.execCommand("insertText",!1,t))}},{key:"onChange",value:function(){if(this.htmlEl){var e=this.getValue();e!==this.lastValue?(this.isEdited=!0,!this.props.forceChange&&this.composing||(this.props.onChange&&this.props.onChange(e),this.lastValue=e),this.autoSave()):this.lastValue=e}}},{key:"onFocus",value:function(e){(e=e||window.event).stopPropagation(),this.isEdited=!1,this.state.isEditing||(this.setState({isEditing:!0,isFocusing:!0}),this.props.onFocus&&this.props.onFocus())}},{key:"onBlur",value:function(){this.isEdited=!1,this.setState({isEditing:!1,isFocusing:!1}),this.props.onBlur&&this.props.onBlur(),this.autoSave.cancel()}},{key:"hasFocus",value:function(){return this.state.isEditing}},{key:"getValue",value:function(){return this.htmlEl?u.MY(this.htmlEl.cloneNode(!0)):""}},{key:"getEditor",value:function(){return this.htmlEl}},{key:"checkPlaceholder",value:function(){if(this.placeholderRef.current){var e=$(this.placeholderRef.current);this.getValue()?e.addClass("hide"):e.removeClass("hide")}}},{key:"addHighlight",value:function(e){var t=e.preText.slice(-1)+e.matchStr,n=e.symbolIndex-e.beforeOuterIndex,r=n+t.length;!$(this.htmlEl).find(".tag-item").length&&e.matchStr.length&&f.iX(t,{tagName:"span",className:"tag-item",startIndex:n,endIndex:r,element:this.htmlEl})}},{key:"removeHighlight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".tag-item",t=$(this.htmlEl).find(e),n=f.e3(this.htmlEl);t.replaceWith(document.createTextNode(t.text())),f.IC(this.htmlEl,n)}},{key:"removeTagNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".tag-item",r=$(this.htmlEl).find(n);if(r.length){var i=f.hC(r[0]);r.remove(),f.mh(i)}else f.yd(t.length)}},{key:"focusAndPlaceCaretAtEnd",value:function(e){var t=this;this.setState({isFocusing:!0},(function(){t.htmlEl&&f.e6(t.htmlEl,e)}))}}],i&&w(n.prototype,i),o&&w(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);E(T,"propTypes",{readOnly:o().bool,readOnlyFocusable:o().bool,placeholder:o().string,hidePlaceholder:o().bool,value:o().string,autoLink:o().bool,isEditing:o().bool,forceChange:o().bool,className:o().string,tabIndex:o().string,lineWrapping:o().bool,titleWidth:o().number,onEditMouseDown:o().func,onEditMouseUp:o().func,spellCheck:o().bool,onSave:o().func,canAutoLinkOpen:o().bool,placeholderClassName:o().string,disabledSyntax:o().instanceOf(Set)}),E(T,"defaultProps",{readOnly:!1,readOnlyFocusable:!1,placeholder:"",hidePlaceholder:!0,value:"",autoLink:!0,isEditing:!1,forceChange:!1,className:"",lineWrapping:!1,titleWidth:void 0,onEditMouseDown:function(){},onEditMouseUp:function(){},spellCheck:!0,onSave:function(){},canAutoLinkOpen:!0,placeholderClassName:"",disabledSyntax:new Set([])}),t.Z=T},iEvi:function(e,t,n){"use strict";n.d(t,{LX:function(){return _},ZP:function(){return k},$D:function(){return x}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("fbCW"),n("4mDm"),n("7+zs"),n("qePV"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("GKVU"),n("FZtP"),n("3bBZ");var r=n("pwco"),i=n("DhZW"),o=n("Mfe1");function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"===u(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var v="ok",y="ci",b="hm",k=function(e){function t(e){var n,a,s,l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=d(this,t,[e]),a=n,l=void 0,(s=g(s="_lastCRange"))in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,n.startFold=(0,r.Ds)(n.startFoldImmediately.bind(n),100),e.on("changes",(function(e,t){var r=!1,a=!1;t.forEach((function(t){var n=t.from,s=t.to,l=t.origin;"+delete"===l&&n.line!==s.line&&(0,o.xJ)(e,n.line),"manualMarkText"!==l&&"setValue"!==l&&"+delete"!==l&&(r=!0,i.rX(e,n,s,(function(e){return null!=e.foldType&&"customMark"!==e.foldType})),"quickFold"!==l&&e.hasFocus()||(a=!0))})),r&&(a?n.startFoldImmediately():n.startFold())})),e.on("cursorActivity",(function(e){var t={};function r(n){var r=n.line;if(r in t)t[r].ch.push(n.ch);else{for(var i=e.getLineHandle(n.line).markedSpans||[],o=[],a=0;a<i.length;a++){var s=i[a],l=s.marker,c=s.from,u=s.to;null!=l.foldType&&o.push([l,c,u])}t[r]={lineNo:r,ch:[n.ch],markers:o}}}var i=e.getCursor("from"),o=e.getCursor("to");e.getAllMarks().forEach((function(e){if(i&&o){if(e.widgetNode){var t=e.find();(t.from.line>i.line||t.from.line===i.line&&t.from.ch>=i.ch)&&(t.to.line<o.line||t.to.line===o.line&&t.to.ch<=o.ch)?e.widgetNode.classList.add("CodeMirror-selectedtext"):e.widgetNode.classList.remove("CodeMirror-selectedtext")}}else e.widgetNode&&e.widgetNode.classList.remove("CodeMirror-selectedtext")})),e.listSelections().forEach((function(e){r(e.anchor),r(e.head)})),n.startQuickFold()})),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(a=[{key:"reset",value:function(){S()}},{key:"startQuickFold",value:function(){var e=C;if(0!==e.length){var t=e[0],n=t;e.forEach((function(e){t>e&&(t=e),n<e&&(n=e)})),this.startFold.stop(),this.startFoldImmediately(t,n)}}},{key:"startFoldImmediately",value:function(e,t){var n=this,r=this.cm,o=r.firstLine();e&&e>=r.firstLine()&&e<=r.lastLine()&&(o=e);var a=r.lastLine()+1;t&&t>=r.firstLine()&&t<=r.lastLine()&&(a=t+1),S(),this.setPos(o,0,!0),r.operation((function(){return r.eachLine(o,a,(function(e){var t=e.lineNo();if(!(t<n.lineNo)){t>n.lineNo&&n.setPos(t,0);var o=new Array(e.text.length),a=new Array(e.text.length),s=e.markedSpans;s&&s.forEach((function(e){N(e)}));var l=n.lineTokens,c=i.QY(l);if(c){for(var u=c.start,f=c.end,d=!0,h=!1,p=u;p<f;p+=1){if(o[p]){d=!1;break}a[p]&&(h=!0)}if(d){if(h){var m={line:t,ch:u},g={line:t,ch:f};i.rX(r,m,g)}var v=i.Mo(r,c,t);v&&N({marker:v,from:u,to:f})}}else if(s){var y=[];s.forEach((function(e){var t=e.marker,n=e.from,r=e.to;t.isMarkHeader&&(y.push({from:n,to:r}),t.clear())})),y.forEach((function(e){!function(e){for(var t=null==e.from?0:e.from,n=null==e.to?a.length:e.to,r=t;r<n;r++)a[r]=0,o[r]=0}(e)}))}for(;n.i_token<l.length;){for(var b=l[n.i_token],k=void 0,C=null,x=!0,S=b.start;S<b.end;S++)if(a[S]){x=!1;break}if(x)for(var E=Object.keys(w),O=0;O<E.length&&(k=E[O],!(C=w[k](n,b)));O+=1);if(C){var T=C.find(),L=T.from,P=T.to;if(C.foldType=k,C.on("clear",(function(e,t){_(e.line)})),L.line>t||L.ch>b.start){n.i_token++;for(var M=L.line===t?L.ch:a.length,D=P.line===t?P.ch:a.length,j=M;j<D;j++)a[j]=1}else{if(P.line!==t)return void n.setPos(P.line,P.ch);n.setPos(P.ch)}}else n.i_token++}}function N(e){for(var t=null==e.from?0:e.from,n=null==e.to?a.length:e.to,r=t;r<n;r++)a[r]=1,e.marker.isMarkHeader&&(o[r]=1)}}))}))}},{key:"requestRange",value:function(e,t,n,r){r||(r=t),n||(n=e);var i=this.cm;if(0!==i.findMarks(e,t).length)return b;_(e.line),this._lastCRange=[n,r];for(var a=i.listSelections(),s=0;s<a.length;s+=1){var l=(0,o.pw)(a[s]);if((0,o.zv)(this._lastCRange,l))return y}return _(n.line),v}}])&&f(n.prototype,a),s&&f(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,s}(function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,"line",void 0),l(this,"lineNo",void 0),l(this,"i_token",void 0),l(this,"lineTokens",void 0),this.cm=t},(t=[{key:"setPos",value:function(e,t,n){void 0===t?(t=e,e=this.line):"number"===typeof e&&(e=this.cm.getLineHandle(e));var r=e===this.line,i=0;n||!r?(this.line=e,this.lineNo=e.lineNo(),this.lineTokens=this.cm.getLineTokens(this.lineNo)):(i=this.i_token,this.lineTokens[i].start>t&&(i=0));for(var o=this.lineTokens;i<o.length&&!(o[i].end>t);i++);this.i_token=i}}])&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()),w={},C=[],x=function(e,t,n){var r=w;if(e in r&&!n)throw new Error("Folder ".concat(e," already registered"));r[e]=t},_=function(e){C.push(e)},S=function(){C=[]}},"4oOC":function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("4mDm"),n("2B1R"),n("7+zs"),n("qePV"),n("tkto"),n("07d7"),n("rB9j"),n("ALS0"),n("YGK4"),n("PKPk"),n("UxlC"),n("SYor"),n("FZtP"),n("3bBZ");var r=n("pwco"),i=n("Mfe1");var o=n("PcT8");function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var c="ticktick-hidden-token",u="ticktick-active-line",f="ticktick-em-show-token",d=function(){return e=function e(t){var n,i,o,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=function(e,t,n){a.procLine(t,n)},(i=l(i="renderLineHandler"))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,this.cm=t,this._rangesInLine={},this.hiddenTokenTypesSet=new Set(["strikethrough","strong","em","mark","underline"]),this.update=(0,r.Ds)((function(){a.updateImmediately()}),50),this.renderLineHandler=this.renderLineHandler.bind(this)},(t=[{key:"start",value:function(){var e=this,t=this.cm;t.on("cursorActivity",(function(){e.update()})),t.on("focus",(function(){e.update()})),t.on("renderLine",this.renderLineHandler),this.update(),t.refresh()}},{key:"updateImmediately",value:function(){var e=this;this.update.stop();var t=this.cm,n=t.listSelections(),r={},o={},a=this._rangesInLine;n.forEach((function(e){var t=(0,i.pw)(e),n=t[0].line,a=t[1].line;r[n]=!0,r[a]=!0;for(var s=n;s<=a;s++)o[s]?o[s].push(t):o[s]=[t]})),this._rangesInLine=o,t.operation((function(){Object.keys(a).forEach((function(t){o[t]||e.procLine(~~t)}));var n=!1;Object.keys(o).forEach((function(t){e.procLine(~~t)&&r[t]&&(n=!0)})),n&&t.refresh()}))}},{key:"procLine",value:function(e,t){var n=this.cm,r=n.display.input.composing,a=n.hasFocus(),s="number"===typeof e?e:e.lineNo();"number"===typeof e&&(e=n.getLineHandle(e));var l=this._rangesInLine[s]||[],d=function(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[function(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}(n,s);if(!d||d.hidden||!d.measure)return!1;if(t||(t=d.text),!t)return!1;var m=!1,g=n.getLine(s),v=function(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache,before:!1};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!1};for(r=0;r<e.rest.length;r++)if(e.rest[r].lineNo()>n)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}(d,e,s),y=v.map,b=y.length/3;function k(e,t,n,r){for(var i=!1,o=n=n||0;o<b;o++){var a=y[3*o],s=(y[3*o+1],y[3*o+2]);if(a===e.head.start){if(/formatting-/.test(e.head.type)&&s.nodeType===Node.TEXT_NODE){var l=s.parentElement;(t?p(l,c):h(l,c))&&(i=!0),/formatting-em/.test(e.head.type)&&(r?h(l,f):p(l,f))&&(i=!0)}if(e.tail&&/formatting-/.test(e.tail.type))for(var u=o+1;u<b;u++){var d=y[3*u],m=(y[3*u+1],y[3*u+2]);if(d==e.tail.start&&m.nodeType===Node.TEXT_NODE){var g=m.parentElement;(t?p(g,c):h(g,c))&&(i=!0),/formatting-em/.test(e.tail.type)&&(r?h(g,f):p(g,f))&&(i=!0)}if(d>=e.tail.end)break}}if(a>=e.begin)break}return i}0===l.length?h(t,u)&&(m=!0):p(t,u)&&(m=!0);for(var w=(0,o.G)(n).extract(s),C=0,x=0;x<w.length;x++){var _=w[x];if(this.hiddenTokenTypesSet.has(_.type)){for(var S=[{line:s,ch:_.begin},{line:s,ch:_.end}],E=_.begin;C<b&&y[3*C+1]<E;)C++;for(var O=!0,T=!0,L=n.getCursor(),P=a&&(0,i.zv)(S,[L,L]),M=0;M<l.length;M++){var D=l[M];if(a&&(0,i.zv)(S,D)){O=!1;break}}if(g&&"em"===_.type){var j=_.begin,N=_.end,I=g[j-1],R=g[N];I&&/^\d{1}$/.test(I)||R&&/^\d{1}$/.test(R)?T=!1:O&&a&&(0,i.zv)(S,[L,L])&&(O=!1)}r?k(_,!P&&T,C,T)&&(m=!0):k(_,O&&T,C,T)&&(m=!0)}}return m&&(delete d.measure.heights,d.measure.cache={}),m}}])&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function h(e,t){if(null==e)return!1;var n=" "+e.className+" ",r=" "+t+" ";return-1!==n.indexOf(r)&&(e.className=n.replace(r,"").trim(),!0)}function p(e,t){if(null==e)return!1;var n=" "+t+" ";return-1===(" "+e.className+" ").indexOf(n)&&(e.className=e.className+" "+t,!0)}},t5UX:function(e,t,n){"use strict";n.d(t,{Gz:function(){return d},Do:function(){return h},Fw:function(){return p}});n("fbCW"),n("oVuX"),n("2B1R"),n("07d7"),n("TWNs"),n("rB9j"),n("LD7m"),n("JfAA"),n("UxlC"),n("hByQ");var r=n("Nr3o"),i=n.n(r);function o(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function a(e){return e.state.search||(e.state.search=new o)}function s(e,t,n){return e.getSearchCursor(t,n,{caseFold:!0,multiline:!0})}function l(e,t,n){t.queryText=n,t.query=n,e.removeOverlay(t.overlay),t.overlay=function(e){return{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index===t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query),e.addOverlay(t.overlay)}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=t){var r=a(e),i=t;l(e,r,i),n&&u(e)}}function u(e,t,n){e.operation((function(){var r=a(e),o=s(e,r.query,null);(o.find(t)||(o=s(e,r.query,t?i().Pos(e.lastLine()):i().Pos(e.firstLine(),0))).find(t))&&(e.setSelection(o.from(),o.from()),e.scrollIntoView({from:o.from(),to:o.to()},20),r.posFrom=o.from(),r.posTo=o.to(),n&&n(o.from(),o.to()))}))}function f(e){e.operation((function(){var t=a(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}var d=function(e,t){f(e),c(e,t)},h=function(e,t){f(e),c(e,t,!0)},p=function(e){if(0===e.length)return null;try{return new RegExp("(".concat(e.map((function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")})).join("|"),")"),"gi")}catch(t){return null}}},Z4mW:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={mode:"markdown",keyMap:"ticktickmd",theme:"markdown-default",lineWrapping:!0,indentUnit:4,tabSize:4,indentWithTabs:!1,spellcheck:!0,selectionsMayTouch:!1}},PcT8:function(e,t,n){"use strict";n.d(t,{G:function(){return d}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("4mDm"),n("+2oP"),n("pDQq"),n("7+zs"),n("qePV"),n("07d7"),n("PKPk"),n("3bBZ");var r=n("Mfe1");function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var s=0,l=1,c=2,u=function(){return e=function e(t){var n,r,i,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,i=[],(r=a(r="caches"))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,this.cm=t,t.on("beforeChange",(function(e,t){"setValue"===t.origin&&(o.caches=[])})),t.on("change",(function(e,t){if("setValue"===t.origin)o.caches=[];else{var n=t.from.line;o.caches.length>n&&o.caches.splice(n)}}))},(t=[{key:"getTokenTypes",value:function(e,t){var n=t?t.state.localState||t.state:{},r=e.state.localState||e.state,i=" "+e.type+" ";return{em:r.em?l:n.em?c:s,strikethrough:r.strikethrough?l:n.strikethrough?c:s,strong:r.strong?l:n.strong?c:s,mark:r.mark?l:n.mark?c:s,underline:r.underline?l:n.underline?c:s,code:r.code?l:n.code?c:s,linkText:r.linkText?l:n.linkText?c:s,linkHref:r.linkHref&&!r.linkText?l:r.linkHref||r.linkText||!n.linkHref||n.linkText?s:c,task:-1!==i.indexOf(" formatting-checklist ")?l|c:s,hashtag:r.hmdHashtag?l:n.hmdHashtag?c:s,customMarkOpen:r.customMarkOpen?l:n.customMarkOpen?c:s,customMarkClose:r.customMarkClose?l:n.customMarkClose?c:s,customMark:r.customMark?l:n.customMark?c:s}}},{key:"extract",value:function(e,t){if(!t){var n=this.caches[e];if(n)return n}for(var r=this.cm.getLineTokens(e),i=this.cm.getLine(e),o=i.length,a=[],s={},u=0;u<r.length;u++){var f=r[u],d=this.getTokenTypes(f,r[u-1]);for(var h in d){var p=s[h];d[h]&l&&(p||(p={type:h,begin:f.start,end:o,head:f,head_i:u,tail:r[r.length-1],tail_i:r.length-1,text:i.slice(f.start)},a.push(p),s[h]=p)),d[h]&c&&p&&(p.tail=f,p.tail_i=u,p.end=f.end,p.text=p.text.slice(0,p.end-p.begin),s[h]=null)}}return this.caches[e]=a,a}},{key:"findSpansAt",value:function(e){for(var t=this.extract(e.line),n=e.ch,r=[],i=0;i<t.length;i++){var o=t[i];if(o.begin>n)break;n>=o.begin&&o.end>=n&&r.push(o)}return r}},{key:"findSpanWithTypeAt",value:function(e,t){for(var n=this.extract(e.line),r=e.ch,i=0;i<n.length;i++){var o=n[i];if(o.begin>r)break;if(r>=o.begin&&o.end>=r&&o.type===t)return o}return null}},{key:"clearCacheAtLine",value:function(e){this.caches.length>e&&this.caches.splice(e)}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),f=(0,r.je)("LineSpanExtractor");function d(e){var t=e[f];return t||(t=new u(e),e[f]=t),t}},Mfe1:function(e,t,n){"use strict";n.d(t,{xJ:function(){return c},pw:function(){return u},zv:function(){return f},je:function(){return d},yV:function(){return h},so:function(){return p},Pl:function(){return m}});n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("ToJy"),n("sMBO"),n("Tskq"),n("kSko"),n("07d7"),n("4l63"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("Rm1S"),n("UxlC"),n("GKVU"),n("FZtP"),n("3bBZ");var r=n("Nr3o"),i=n("pWE6");function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"===typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=/^(\s*)((\d+)([.)]))(\s+)/;function c(e,t,n){var r=l,o=e.getLine(t);if(null!=o){var s=r.exec(o);if(null!=s){var c=!e.curOp;c&&e.startOperation();var u=new Map;u.set(t,s);for(var f=0,d=e.firstLine(),h=e.lastLine();;){var p=t+(f-=1);if(p<d)break;if(!(!1!==e.getStateAfter(p).list))break;var m=r.exec(e.getLine(p));if(!m)break;u.set(p,m)}for(var g=0;;){var v=t+(g+=1);if(v>h)break;if(!(!1!==e.getStateAfter(v).list))break;var y=r.exec(e.getLine(v));if(!y)break;u.set(v,y)}var b=new Map;Array.from(u.keys()).sort((function(e,t){return e-t})).forEach((function(t){var o=u.get(t);if(o){var s=parseInt(o[3],10);if(!Number.isNaN(s)){var l,c=(0,i.lE)(o[1].length,e.options.indentUnit),f=t>0?e.getLine(t-1):"",d=r.exec(f),h=e.getLine(t),p=(b.get(c)||0)+1,m=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(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,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(b.keys());try{for(m.s();!(l=m.n()).done;){var g=l.value;g>c&&b.delete(g)}}catch(k){m.e(k)}finally{m.f()}b.set(c,p);var v=parseInt(o[3],10);if(null!=(d?parseInt(o[3],10):null)&&1!==v||n){if(v!==p){var y=h.match(r)[0];e.replaceRange(y.replace(r,o[1]+p+o[4]+o[5]),{line:t,ch:0},{line:t,ch:y.length},"manualMarkText")}}else b.set(c,v)}}})),c&&e.endOperation()}}}function u(e){return"anchor"in e&&(e=[e.head,e.anchor]),(0,r.cmpPos)(e[0],e[1])>0?[e[1],e[0]]:[e[0],e[1]]}function f(e,t){var n=o(e,2),i=n[0],a=n[1],s=o(t,2),l=s[0],c=s[1];return!((0,r.cmpPos)(a,l)<0||(0,r.cmpPos)(i,c)>0)}function d(e){return"function"===typeof Symbol?Symbol(e):"_\n"+e+"\n_"+Math.floor(65535*Math.random()).toString(16)}function h(e){var t=e.lastLine(),n={line:t,ch:e.getLine(t).length};e.hasFocus()||e.focus(),e.setSelection(n)}function p(e,t,n){var r=t.line,i=t.ch,o={line:r,ch:0},a=e.getLine(r).slice(0,i),s=e.getStateAfter(r);if((s.header||s.quote||!1!==s.list)&&a.length){var l=/^(\s*)(\s+|^#{1,6}(?:[\s\t])|>\s|[*+-]\s\[[x| ]\]\s|[*+-]\s|(\d+)([.)]\s))([\s\S]*)/i.exec(a);if(l&&(!n||l[5]&&l[5].length)){var c=l[1]+l[2];return o.ch=c.length,o}}return o}function m(e,t,n){if(!n||!n.length)return-1;if(0===e.listSelections().length)return-1;var r=t,i=n[0].getBoundingClientRect(),o=e.charCoords(r),a=parseInt(n.css("padding-bottom"),10),s=0;Number.isNaN(a)||(s=a);var l=n[0].scrollTop,c=l;return o.top-4<i.top?c=l+(o.top-4-i.top):o.bottom+4+s>i.bottom&&(c=l+(o.bottom+4+s-i.bottom)),c!==l?c:-1}},ZLhR:function(e,t,n){"use strict";n.d(t,{w:function(){return r},i:function(){return o}});n("ma9I"),n("fbCW"),n("yq1k"),n("4mDm"),n("Tskq"),n("07d7"),n("JTJg"),n("PKPk"),n("FZtP"),n("3bBZ");var r={NORMAL:"normal",LINKIFY:"linkify",EM_OPEN:"em_open",EM_CLOSE:"em_close",STRONG_OPEN:"strong_open",STRONG_CLOSE:"strong_close",UNDER_LINE_OPEN:"under_line_open",UNDER_LINE_CLOSE:"under_line_close",STRIKETHROUGH_OPEN:"strikethrough_open",STRIKETHROUGH_CLOSE:"strikethrough_close",CODE_INLINE_OPEN:"code_inline_open",CODE_INLINE_CLOSE:"code_inline_close",MARK_OPEN:"mark_open",MARK_CLOSE:"mark_close",LINK_OPEN:"link_open",LINK_CLOSE:"link_close",LINK_URL_OPEN:"link_url_open",LINK_URL_CLOSE:"link_url_close",IMAGE:"image",CUSTOM_MARK_START_OPEN:"custom_mark_start_open",CUSTOM_MARK_START:"custom_mark_start",CUSTOM_MARK_START_CLOSE:"custom_mark_start_close",CUSTOM_MARK:"custom_mark",CUSTOM_MARK_END_OPEN:"custom_mark_end_open",CUSTOM_MARK_END:"custom_mark_end",CUSTOM_MARK_END_CLOSE:"custom_mark_end_close"};r.NORMAL;function i(e){return e.attrs&&e.attrs.length>0&&e.attrs[0].length>1&&"href"===e.attrs[0][0]?e.attrs[0][1]:""}var o=function(e){var t=[],n=e.find((function(e){return"inline"===e.type}));if(n){var o,s=n.children,l=n.content,c=!1;s.forEach((function(e){var n=e.type,s=e.markup,u=e.content;if("image"!==n){if("link_open"===n&&"linkify"===s)return c=!0,void(o=i(e));if(c)if("text"===n){var f=o;f&&l.includes(f)||(f=u),t.push({content:f,token:r.LINKIFY})}else"link_close"===n&&(c=!1);else{if("link_open"===n)return t.push(a("[",r.LINK_OPEN)),void(o=i(e));if(null==o||"link_close"!==n){var d=function(e){var t=e.type,n=e.markup,i=e.content,o=e.styleObject,s=[];switch(t){case"text":if(!i)return;s.push({content:i,token:r.NORMAL});break;case"custom_mark_start_open":s.push(a(n,r.CUSTOM_MARK_START_OPEN));break;case"custom_mark_start":s.push(a(n,r.CUSTOM_MARK_START));break;case"custom_mark_start_close":s.push(a(n,r.CUSTOM_MARK_START_CLOSE,o));break;case"custom_mark":s.push(a(n,r.CUSTOM_MARK,o));break;case"custom_mark_end_open":s.push(a(n,r.CUSTOM_MARK_END_OPEN,o));break;case"custom_mark_end":s.push(a(n,r.CUSTOM_MARK_END));break;case"custom_mark_end_close":s.push(a(n,r.CUSTOM_MARK_END_CLOSE));break;case"em_open":s.push(a(n,r.EM_OPEN));break;case"em_close":s.push(a(n,r.EM_CLOSE));break;case"strong_open":s.push(a(n,r.STRONG_OPEN));break;case"strong_close":s.push(a(n,r.STRONG_CLOSE));break;case"s_open":s.push(a(n,r.STRIKETHROUGH_OPEN));break;case"s_close":s.push(a(n,r.STRIKETHROUGH_CLOSE));break;case"underline_open":s.push(a(n,r.UNDER_LINE_OPEN));break;case"underline_close":s.push(a(n,r.UNDER_LINE_CLOSE));break;case"mark_open":s.push(a(n,r.MARK_OPEN));break;case"mark_close":s.push(a(n,r.MARK_CLOSE));break;case"code_inline":s.push(a(n,r.CODE_INLINE_OPEN)),s.push({content:i,token:r.NORMAL}),s.push(a(n,r.CODE_INLINE_CLOSE))}return s}(e);d&&(t=t.concat(d))}else"link_close"===n&&(t.push(a("]",r.LINK_CLOSE)),t.push(a("(",r.LINK_URL_OPEN)),o&&t.push({content:o,token:r.NORMAL}),t.push(a(")",r.LINK_URL_CLOSE)),o=null)}}else{var h,p,m,g=new Map(null!==(h=e.attrs)&&void 0!==h?h:[]);t.push({content:"![".concat(u,"](").concat(null!==(p=g.get("src"))&&void 0!==p?p:"",")"),token:r.IMAGE,src:null!==(m=g.get("src"))&&void 0!==m?m:""})}}))}return t};function a(e,t,n){if(e)return{content:e,token:t,style:n}}},pWE6:function(e,t,n){"use strict";n.d(t,{WO:function(){return p},lI:function(){return g},lE:function(){return v},_m:function(){return y},Fu:function(){return b},WK:function(){return k},z:function(){return w},M_:function(){return C},Gt:function(){return x},xR:function(){return _},Rh:function(){return S},xO:function(){return E}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("yyme"),n("TeQF"),n("pjDv"),n("4mDm"),n("oVuX"),n("2B1R"),n("E9XD"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("TWNs"),n("rB9j"),n("LD7m"),n("ALS0"),n("JfAA"),n("PKPk"),n("Rm1S"),n("ofBz"),n("UxlC"),n("GKVU"),n("FZtP"),n("3bBZ");var r=n("Nr3o"),i=(n("/Qhg"),n("DhZW")),o=n("q9+P"),a=n("V/jI"),s=n("2sNt"),l=n("0Ils");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=!1;function p(e,t){if(1===t.ranges.length){h;var n,r=t.ranges[0].head,o=e.getLineTokens(r.line),a=(0,i.QY)(o),s=null;if(o.length>0&&(0,i.qv)(o[0])&&(s=o[0]),a)(a.type===i.s2.uncheckedItem||a.type===i.s2.checkedItem||a.type===i.s2.unorderedList||a.type===i.s2.numberedList||a.type===i.s2.quote||a.type===i.s2.header)&&(n={start:a.start,end:a.end});else n=s?{start:s.start,end:s.end}:null;h,n&&(!t.ranges[0].empty()&&t.ranges[0].anchor.ch>=n.end?m(e,t,(function(e){return e>n.start&&e<n.end}),(function(e){e.update(e.line,n.start)}),(function(e){e.update(e.line,n.end)}),(function(e,t){t>-5?e.update(e.line,n.end):e.update(e.line,n.start)})):m(e,t,(function(e){return e<n.end||e===n.end&&"before"===t.ranges[0].head.sticky}),(function(e){e.line>0?e.update(e.line-1,99999999999):e.update(e.line,n.end)}),(function(e){e.update(e.line,n.end)}),(function(e,t){e.update(e.line,n.end)})))}}function m(e,t,n,i,o,a){var s=t.ranges[0],l=s.head,c=s.anchor,u=!t.ranges[0].empty(),d=l.ch,h=l.xRel;if(n(d)){var p={line:l.line,ch:l.ch,update:function(e,t){this.line=e,this.ch=t}};if("*mouse"===t.origin)a(p,h);else{var m=e.listSelections(),g=1===m.length?m[0].head:null;g&&(g.line!==l.line||(0,r.cmpPos)(l,g)>0)?o(p,t.origin):i(p,t.origin)}var v=p.line,y=p.ch;u?t.update([{anchor:c,head:{line:v,ch:y}}]):t.update([{anchor:f(f({},p),{},{sticky:"after"}),head:{line:v,ch:y,sticky:"after"}}])}}function g(e,t){return function(e,t,n){var r=0;if(e&&e.length){var i=e[e.length-1];r=Math.min(Math.floor((i-t)/n)+1,9)}return r}(e.listStack,e.listMarkerLength,t)}function v(e,t){return Math.min(Math.floor(e/t)+1,9)}function y(e,t,n){(0,i._m)(e,t,n)}function b(){return"^https?:\\/\\/(?:(?:www\\.)?(?:".concat(o.nw.replace(".com","\\.com"),"))\\/(?:webapp\\/?)?#p\\/([0-9a-zA-Z]*)\\/tasks\\/([0-9a-zA-Z]*)")}function k(e){var t=b(),n=new RegExp(t,"i"),r=e.match(n);return r&&r.length?{url:r[0],projectId:r[1],taskId:r[2]}:null}function w(e){var t="https?:\\/\\/(?:(?:www\\.)?(?:".concat(o.nw.replace(".com","\\.com"),"))\\/(?:webapp\\/?)?#p\\/(?:[0-9a-zA-Z]*)\\/tasks\\/([0-9a-zA-Z]*)"),n="\\[([^\\]]*)\\]\\(".concat(t,"\\)"),r=new RegExp(n,"gi");return Array.from(e.matchAll(r))}var C=function e(t){var n=null,r=b(),i=new RegExp("(".concat(r,")([ \\t]([^\\r\\n]*|[^\\n]*|[^\\r]*))?([\\s\\S]*)?"),"i"),l=t.match(i);if(l&&l.length)if(l.length>5){var c,u=null!==(c=l[6])&&void 0!==c?c:"";n={url:l[1],projectId:l[2],taskId:l[3],title:l[5],otherText:u}}else n={url:l[1],projectId:l[2],taskId:l[3]};else{var f=new RegExp("^https?:\\/\\/(?:(?:www\\.)?(?:".concat(o.nw.replace(".com","\\.com"),"))\\/(?:webapp\\/?)?#q\\/all\\/([0-9a-zA-Z]*)\\/([0-9a-zA-Z]*)")),d=t.match(f);if(d&&d[2]){var h=(0,s.l9i)(d[2]);return h?e(h):t}}if(n){var p=n,m=p.url,g=p.taskId,v=p.title,y=p.otherText;if(!v){var k=a.U2("my_task"),w=(0,s.FOH)(g),C=w?w.get("title"):k;return C||(C=k),"[".concat(C,"](").concat(m,")")}var x="[".concat(v,"](").concat(m,")");if(-1!==t.indexOf(v))return x+y}return t};function x(e){var t=[],n={from:e.getCursor("from"),to:e.getCursor("to")},r=null,i=!1;return new Array(n.to.line+1-n.from.line).fill(0).forEach((function(o,a){var s=n.from.line+a,l=s===n.from.line?n.from.ch:null,c=s===n.to.line?n.to.ch:null;e.getLineTokens(s).forEach((function(n){var o=_(e,s);r&&r!==o&&(i=!0),r=o,(null===l||n.end>l)&&(null===c||n.start<c)&&t.push(n)}))})),{lineType:i?null:r,tokens:t}}var _=function(e,t){var n=e.getLineTokens(t),r=e.getStateAfter(t);switch(function(){if(-1===r.code)return"code_block";var o=(0,i.QY)(n);if(o){var a=o.type;return a===i.s2.header?"h"+(o.end-o.start-1):a===i.s2.checkedItem?i.s2.uncheckedItem:a}return e.getLine(t)?i.s2.text:null}()){case i.s2.text:return l.$9.TEXT;case"h1":return l.$9.HEADING_1;case"h2":return l.$9.HEADING_2;case"h3":return l.$9.HEADING_3;case"h4":return l.$9.HEADING_4;case"h5":return l.$9.HEADING_5;case"h6":return l.$9.HEADING_6;case"quote":return l.$9.QUOTE;case"hr":return l.$9.SEPARATOR_LINE;case"unorderedList":return l.$9.BULLETED_LIST;case"numberedList":return l.$9.NUMBERED_LIST;case i.s2.uncheckedItem:return l.$9.CHECK_ITEM_LIST;case"code_block":return"code_block";default:return null}},S=function(e){return e.reduce((function(t,n,r){var i=function(){var t=function(e){return/(link)|(url)/.test(e)};if(n.type&&t(n.type)){for(var i=1;i<6;){var o=e[r+i];if(!o||!o.type)break;if(!t(o.type))break;i++}return 6===i}return!1}(),o=t[t.length-1];if(o&&o.end>n.start)return t;if(i){for(var a=[n],s=1;s<6;s++){var l=e[r+s];l&&a.push(l)}return t.push({type:"md-link",start:n.start,end:a[a.length-1].end,string:a.map((function(e){return e.string})).join(""),state:n.state}),t}return t.push(n),t}),[])},E=function(e){var t=e.match(/\[(.*?)\]\((.*?)\)/);return t?{title:t[1],url:t[2]}:null}},DhZW:function(e,t,n){"use strict";n.d(t,{s2:function(){return f},rX:function(){return d},LL:function(){return h},QY:function(){return p},Mo:function(){return m},R2:function(){return g},pH:function(){return v},V9:function(){return y},O0:function(){return b},Hu:function(){return S},qv:function(){return N},_m:function(){return R}});n("pNMO"),n("4Brf"),n("0oug"),n("fbCW"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("YGK4"),n("PKPk"),n("LKBx"),n("FZtP"),n("3bBZ");var r=n("i8i4"),i=n("q1tI"),o=n("pWE6"),a=n("AtZj"),s=n("2sNt"),l=n("ylzY");function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={header:"header",hr:"hr",unorderedList:"unorderedList",numberedList:"numberedList",uncheckedItem:"uncheckedItem",checkedItem:"checkedItem",quote:"quote",text:"text",code:"code"};function d(e,t,n,r){var i=[];e.findMarks(t,n).forEach((function(e){r?r(e)&&i.push(e):i.push(e)})),i.forEach((function(e){e.clear()}))}function h(e){if(!e.getOption("disableInput")){var t=e.listSelections();if(t&&0!==t.length){var n=c(t,1)[0].head.line,r=function(e){if(!e||!e.length)return null;var t=e[0];if(E(t))return{start:t.start,end:t.end,type:f.hr};return null}(e.getLineTokens(n));if(r)m(e,r,n);else{d(e,{line:n,ch:0},{line:n,ch:99999999999999},(function(e){return e.itemType===f.hr}))}}}}function p(e){if(!e||!e.length)return null;for(var t,n=0,r=0;r<e.length;r+=1){var i=e[r];if(D(i))return{start:i.start,end:i.end,type:f.code};if(0===r){if(O(i))return{start:i.start,end:i.end,type:f.header};if(T(i))return{start:i.start,end:i.end,type:f.quote};if(E(i))return{start:i.start,end:i.end,type:f.hr}}if(P(i))return{start:i.start,end:i.end,type:f.numberedList};if(L(i)){t={start:i.start,end:i.end,type:f.unorderedList},n=r+1;break}if(!M(i)&&!j(i)&&!N(i))break}if(t){var o=e[n];return o?function(e){return I(e,["formatting-checklist","unchecked"])}(o)?{start:t.start,end:o.end,type:f.uncheckedItem}:function(e){return I(e,["formatting-checklist","checked"])}(o)?{start:t.start,end:o.end,type:f.checkedItem}:t:t}return null}function m(e,t,n){var r,i=t.start,a=t.end,s={line:n,ch:i},l={line:n,ch:a};if(t.type===f.header){var c=Math.max(a-i-1,0);r=e.markText({line:n,ch:s.ch+1},l,{atomic:!1,replacedWith:w(c)})}else if(t.type===f.hr)r=e.markText(s,l,{collapsed:!0,replacedWith:C(),handleMouseEvents:!0,selectLeft:!0,selectRight:!0});else if(t.type===f.unorderedList){var u=e.getStateAfter(n),d=(0,o.lI)(u,e.getOption("indentUnit"));r=e.markText({line:n,ch:s.ch},l,{collapsed:!0,atomic:!0,replacedWith:x(d),handleMouseEvents:!0,selectLeft:!0,selectRight:!0})}else t.type===f.uncheckedItem?r=e.markText({line:n,ch:s.ch+1},l,{collapsed:!0,atomic:!0,replacedWith:_(!1),handleMouseEvents:!0,selectLeft:!0,selectRight:!0}):t.type===f.checkedItem&&(r=e.markText({line:n,ch:s.ch+1},l,{collapsed:!0,atomic:!0,replacedWith:_(!0),handleMouseEvents:!0,selectLeft:!0,selectRight:!0}));return r&&(r.isMarkHeader=!0,r.itemType=t.type),r}function g(e,t,n){var r=p(e.getLineTokens(t));if(r&&(r.type===f.checkedItem||r.type===f.uncheckedItem)){var i=e.findMarks({line:t,ch:0},{line:t,ch:999999999}).find((function(e){return e.itemType===f.checkedItem||e.itemType===f.uncheckedItem}));if(i){var o=i.replacedWith.getBoundingClientRect();if(n>=o.left&&n<=o.left+o.width)return i}}return null}function v(e,t){var n,r=p(e.getLineTokens(t));if(r){var i=r.start,o=r.end,a=r.type;"uncheckedItem"!==a&&"checkedItem"!==a||d(e,{line:t,ch:i},{line:t,ch:o}),n=m(e,r,t)}return n}function y(e,t,n){var s,c=e.getRange(t,n);return(s=(0,o.WK)(c)?function(){var e=i.createElement(a.Z,{name:"md-task-link",className:"markdown-inline-icon"}),t=document.createElement("span");return t.className="align-baseline md-pointer-capture-ignore cursor-pointer",r.render(e,t),t}():function(e){var t=i.createElement(a.Z,{name:"md-link",className:"markdown-inline-icon",onClick:e}),n=document.createElement("span");return n.className="align-baseline md-pointer-capture-ignore cursor-pointer",r.render(t,n),n}()).addEventListener("mousedown",(function(e){e.preventDefault(),e.stopPropagation()})),s.addEventListener("click",(function(t){if(t.preventDefault(),t.stopPropagation(),!e.getOption("readOnly")){var n=e.coordsChar({left:l.ZP.userMousePosition.x,top:l.ZP.userMousePosition.y}),r=b(e,n);r&&(e.setCursor({line:n.line,ch:r[1].end+1}),e.focus(),R(e,r[0].string,r[1].string))}}),!1),e.markText(t,n,{collapsed:!0,replacedWith:s})}function b(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getLineTokens(t.line),i=null,o=null,a=0;a<r.length;a+=1){var s=r[a];if(s.type){var l=s.type.split(" ");if(!l.find((function(e){return e.startsWith("formatting")}))&&(I(s,["link"])?i=s:I(s,["string","url"])&&i&&(o=s),o)){if(k(i,t.ch,n)||k(o,t.ch,n))return[i,o];i=null,o=null}}}return null}function k(e,t,n){return n?t>=e.start-1&&t<=e.end+1:t>=e.start&&t<=e.end}function w(e){var t=i.createElement(a.Z,{name:"md-h".concat(e),className:"markdown-inline-icon"}),n=document.createElement("span");return n.className="mark-header mark-header-heading",n.style.opacity="0",r.render(t,n),n}function C(){var e=document.createElement("span");return e.className="mark-header-hr",e.innerText=" ",e}function x(e){var t=i.createElement(a.Z,{name:"md-list-1",className:"markdown-inline-icon !text-primary absolute top-1/2 left-0 -translate-y-1/2"}),n=document.createElement("span");return n.className="align-baseline relative",n.style.paddingLeft="20px",r.render(t,n),n}function _(e){var t=e?"md-item-checked":"md-item-unchecked",n=i.createElement(a.Z,{name:t,className:"markdown-inline-icon absolute top-1/2 left-0 -translate-y-1/2"}),o=document.createElement("span");return o.className="cursor-pointer align-baseline relative",o.style.paddingLeft="20px",r.render(n,o),o}function S(e,t,n,r,i){var o=document.createElement("span");return o.classList.add("cm-bold"),o.innerText=e,o.addEventListener("mousedown",(function(e){var o=r.marker;o&&(0,s.cEw)(t,n,o,i),e.preventDefault(),e.stopPropagation()})),o.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation()})),o}function E(e){return I(e,"line-ticktick-hr")}function O(e){return I(e,"formatting-header")}function T(e){return I(e,"formatting-quote")}function L(e){return I(e,"formatting-list-ul")}function P(e){return I(e,"formatting-list-ol")}function M(e){return null==e.type}function D(e){return I(e,["line-ticktick-code-block"])}function j(e){return I(e,["tab"])}function N(e){return I(e,["ticktick-list-indent"])}function I(e,t){if(!e.type)return!1;var n;n="string"===typeof t?[t]:t;for(var r=new Set(e.type.split(" ")),i=0;i<n.length;i+=1){var o=n[i];if(!r.has(o))return!1}return!0}function R(e,t,n){e.showLink({width:215,height:100,title:t,url:n})}},v87U:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});n("oVuX"),n("+2oP"),n("sMBO"),n("rB9j"),n("ALS0"),n("Rm1S"),n("UxlC");var r=n("Nr3o"),i=n.n(r),o=n("/Qhg"),a=n.n(o),s=n("ZLhR"),l=n("Uyqk"),c=n("0+OH"),u=n("C9Tx"),f=n("0qXX"),d=(0,l.m)(),h=c("zero",{linkify:!0}).use(f).use(u);h.enable(["link","linkify"]),i().defineMode("link-markdown",(function(e,t){(0,l.L)(h.linkify),void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!0),void 0===t.strikethrough&&(t.strikethrough=!0),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.allowAtxHeaderWithoutSpace&&(t.allowAtxHeaderWithoutSpace=!1),void 0===t.xml&&(t.xml=!1),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var n={header:"header",code:"comment",inlineCode:"inline-code",quote:"quote",list1:"list-1",list2:"list-2",list3:"list-3",hr:"hr",formatting:"formatting",linkify:"linkify",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",underline:"underline",mark:"mark",emoji:"builtin"};for(var r in n)n.hasOwnProperty(r)&&t.tokenTypeOverrides[r]&&(n[r]=t.tokenTypeOverrides[r]);var o=/^(?:[*\-+]|^[0-9]+([.)]))\s/,c=/^\[(x| )\]\s/i,u=/^[^#!\[\]*_\\<>` "'(~:]+/;function f(e){var t=null;return-1===e.code&&(t="line-ticktick-code-block line-background-ticktick-code-block-bg"),e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.underline=!1,e.mark=!1,e.strikethrough=!1,e.quote=0,e.prevLine=e.thisLine,e.thisLine={stream:null},e.taskOpen=!1,e.taskClosed=!1,e.inlineTokens=null,t}function p(e,t){return function(e,t,n){return t.f=t.inline=n,n(e,t)}(e,t,t.inline)}function m(e){var r=[];if(e.formatting){r.push(n.formatting),"string"===typeof e.formatting&&(e.formatting=[e.formatting]);for(var i=0;i<e.formatting.length;i++)r.push(n.formatting+"-"+e.formatting[i]),"header"===e.formatting[i]?r.push(n.formatting+"-"+e.formatting[i]+"-"+e.header):"quote"===e.formatting[i]?!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?r.push(n.formatting+"-"+e.formatting[i]+"-"+e.quote):r.push("error"):"code-block"===e.formatting[i]&&(r.push("line-ticktick-code-block"),r.push("line-background-ticktick-code-block-bg"),e.thisLine&&e.thisLine.fencedCodeEnd?(r.push("line-ticktick-code-block-end"),r.push("line-background-ticktick-code-block-end-bg")):(r.push("line-ticktick-code-block-begin"),r.push("line-background-ticktick-code-block-begin-bg")))}return e.linkHref?r.push(n.linkHref,"url"):(e.emoji&&r.push(n.emoji),e.linkText&&r.push(n.linkText),e.linkify&&r.push(n.linkify)),r.length?r.join(" "):null}function g(e,t){if(e.match(u,!0))return m(t)}function v(e,t){var n=e.string.slice(e.pos);if(!d.pretest(n)){var r=t.text(e,t);if("undefined"!==typeof r)return r}if(t.list){if("checklist"===t.listType)" "===e.match(c,!0)[1]?(t.taskOpen=!0,t.taskClosed=!1):(t.taskClosed=!0,t.taskOpen=!1),t.formatting="checklist";else t.taskOpen=!1,t.taskClosed=!1;return t.list=null,m(t)}var i=h.parse(n,{});return t.inlineTokens=s.i(i),e.eatSpace()?m(t):y(e,t)}function y(e,t){for(var n=t.inlineTokens;;){if(!e.next())return t.inlineTokens=null,m(t);if(!n||!n.length)return m(t);var r=n[0],i=r.content,o=r.token,l=e.current(),c=!1;if(t.linkHref&&o===s.w.NORMAL)try{encodeURIComponent(decodeURIComponent(l))===encodeURIComponent(decodeURIComponent(i))&&(c=!0)}catch(k){a().info("markdown parse URI malformed error")}if(l===i||c)switch(n.shift(),c=!1,o){case s.w.NORMAL:return m(t);case s.w.LINKIFY:t.linkText=!0,t.linkify=!0;var u=m(t);return t.linkText=!1,t.linkify=!1,u;case s.w.LINK_OPEN:return t.formatting="link",t.linkText=!0,m(t);case s.w.LINK_CLOSE:t.formatting="link";var f=m(t);return t.linkText=!1,f;case s.w.LINK_URL_OPEN:return t.formatting="link-string",t.linkHref=!0,m(t);case s.w.LINK_URL_CLOSE:t.formatting="link-string";var d=m(t);return t.linkHref=!1,d;case s.w.EM_OPEN:return t.formatting="em",t.em=i,m(t);case s.w.EM_CLOSE:t.formatting="em";var h=m(t);return t.em=!1,h;case s.w.STRONG_OPEN:return t.formatting="strong",t.strong=i,m(t);case s.w.STRONG_CLOSE:t.formatting="strong";var p=m(t);return t.strong=!1,p;case s.w.UNDER_LINE_OPEN:return t.formatting="underline",t.underline=i,m(t);case s.w.UNDER_LINE_CLOSE:t.formatting="underline";var g=m(t);return t.underline=!1,g;case s.w.STRIKETHROUGH_OPEN:return t.formatting="strikethrough",t.strikethrough=i,m(t);case s.w.STRIKETHROUGH_CLOSE:t.formatting="strikethrough";var v=m(t);return t.strikethrough=!1,v;case s.w.CODE_INLINE_OPEN:return t.formatting="code",t.code=i,m(t);case s.w.CODE_INLINE_CLOSE:t.formatting="code";var y=m(t);return t.code=!1,y;case s.w.MARK_OPEN:return t.formatting="mark",t.mark=i,m(t);case s.w.MARK_CLOSE:t.formatting="mark";var b=m(t);return t.mark=!1,b;default:return m(t)}}}var b={startState:function(){return{f:p,prevLine:{stream:null},thisLine:{stream:null},block:p,htmlState:null,indentation:0,listMarkerLength:0,inline:v,text:g,formatting:!1,linkText:!1,linkHref:!1,code:0,em:!1,strong:!1,mark:!1,underline:!1,header:0,hr:!1,listType:null,list:!1,listStack:[],quote:0,strikethrough:!1,emoji:!1,fencedEndRE:null,inlineTokens:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,indentation:e.indentation,listMarkerLength:e.listMarkerLength,localMode:e.localMode,localState:e.localMode?i().copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,mark:e.mark,underline:e.underline,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,hr:e.hr,listType:e.listType,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE,inlineTokens:e.inlineTokens}},token:function(t,n){if(n.formatting=!1,t!==n.thisLine.stream){if(n.header=0,n.hr=!1,n.inlineTokens=null,n.linkText=!1,n.linkHref=!1,n.quote=0,n.taskOpen=!1,n.taskClosed=!1,t.match(/^\s*$/,!0))return f(n);if(n.prevLine=n.thisLine,n.thisLine={stream:t},!n.localState){n.f=n.block;var r=t.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(n.indentation=r,n.indentationDiff=null,r>0){var i=function(t){var n=t.indentation;if(!1!==t.list){for(var r=!0,i=t.listStack.slice(0);n<i[i.length-1];)if(i.pop(),!i.length){r=!1;break}if(r)return i[i.length-1]-t.listMarkerLength+e.indentUnit}return 0}(n);return t.match(o,!1)?"ticktick-list-indent":i?(t.backUp(Math.min(t.pos,Math.max(0,r-i))),"ticktick-list-indent"):null}}}else if(n.inlineTokens&&n.inlineTokens.length)return y(t,n);return n.f(t,n)},innerMode:function(e){return e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:b}},indent:function(e,t,n){return e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,n):0},blankLine:f,getType:m,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"link-markdown"};return b})),i().defineMIME("text/markdown","link-markdown"),i().defineMIME("text/x-markdown","link-markdown")},AT7j:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});n("ma9I"),n("4mDm"),n("oVuX"),n("+2oP"),n("sMBO"),n("07d7"),n("TWNs"),n("rB9j"),n("LD7m"),n("ALS0"),n("JfAA"),n("YGK4"),n("PKPk"),n("Rm1S"),n("UxlC"),n("3bBZ");var r=n("Nr3o"),i=n.n(r),o=(n("EpAV"),n("nKDN"),n("8283"),n("07SJ"),n("Q6dM"),n("WR0P"),n("wpYw"),n("ep3U"),n("Z2Gd"),n("cwKK"),n("NO3D"),n("ZLhR")),a=n("pWE6"),s=n("Uyqk"),l=n("0+OH"),c=n("pMLB"),u=n("C9Tx"),f=n("0qXX"),d=c.prototype.scanDelims;c.prototype.scanDelims=function(e,t){var n,r,i=e,o=!0,a=!0,s=this.posMax,l=this.src.charCodeAt(e);if(95===l)return d.call(this,e,t);for(n=e>0?this.src.charCodeAt(e-1):void 0;i<s&&this.src.charCodeAt(i)===l;)i++;return r=i-e,void 0===(i<s?this.src.charCodeAt(i):void 0)&&(o=!1),void 0===n&&(a=!1),{can_open:o,can_close:a,length:r}};var h=l({linkify:!0}).use(f).use(u);h.normalizeLinkText=function(e){return e},h.normalizeLink=function(e){return e},h.disable(["newline","escape","autolink","html_inline","entity","strikethrough"]),i().defineMode("markdown",(function(e,t){var n;(0,s.L)(h.linkify);var r=null!==(n=e.disableTokenSet)&&void 0!==n?n:new Set,l="summary"===e.editorName;function c(t){if(i().findModeByName){var n=i().findModeByName(t);n&&(t=n.mime||n.mimes[0])}var r=i().getMode(e,t);return"null"===r.name?null:r}void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!0),void 0===t.strikethrough&&(t.strikethrough=!0),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.allowAtxHeaderWithoutSpace&&(t.allowAtxHeaderWithoutSpace=!1),void 0===t.xml&&(t.xml=!1),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var u={header:"header",code:"comment",inlineCode:"inline-code",quote:"quote",list1:"list-1",list2:"list-2",list3:"list-3",hr:"hr",formatting:"formatting",linkify:"linkify",linkText:"link",linkHref:"string",highlight:"highlight",em:"em",strong:"strong",strikethrough:"strikethrough",underline:"underline",mark:"mark",customMarkOpen:"customMarkOpen",customMarkClose:"customMarkClose",customMark:"customMark",emoji:"builtin",image:"image"};for(var f in u)u.hasOwnProperty(f)&&t.tokenTypeOverrides[f]&&(u[f]=t.tokenTypeOverrides[f]);var d=/^([*\-_])(?:\1)(?:\s*\1){1,}\s*$/,p=/^(\*)(?:\s*\1){3}\s*$/,m=/^(?:[*\-+]|^[0-9]+([.)]))\s/,g=/^>\s/,v=/^\[(x| )\]\s/i,y=/^(#{1,6})(?:[\s\t])/,b=/^[^#!\[\]*_\\<>` "'(~:]+/,k=/^(```+)[\s\t]*([\w+#-]*)[^\n`]*$/,w=/^(\+\+\+)(\d)$/;function C(e){var t="";return e.detailMarkdownEndRe&&(t+="line-ticktick-detail-markdown-level-".concat(e.detailMarkdownLevel," line-background-ticktick-detail-markdown-bg-level-").concat(e.detailMarkdownLevel)),(-1===e.code||e.localState&&-1===e.localState.code)&&(t+=" line-ticktick-code-block line-background-ticktick-code-block-bg"),e.highlight=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.underline=!1,e.mark=!1,e.strikethrough=!1,e.quote=0,e.image=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},e.taskOpen=!1,e.taskClosed=!1,e.inlineTokens=null,e.linkify=!1,t||null}function x(e,n){var r,o=0===e.start,a=!(r=n.prevLine.stream)||!/\S/.test(r.string),s=n.prevLine.hr,f=e.column()===n.indentation,h=n.indentation;null===n.indentationDiff&&function(e){var t=e.indentation,n=!1!==e.list;if(null===e.indentationDiff&&(e.indentationDiff=e.indentation,n)){for(e.em=!1,e.strong=!1,e.mark=!1,e.underline=!1,e.code=!1,e.strikethrough=!1,e.images=!1,e.list=null;t<e.listStack[e.listStack.length-1];)e.listStack.pop(),e.listStack.length?e.indentation=e.listStack[e.listStack.length-1]:e.list=!1;!1!==e.list&&(e.indentationDiff=t-e.listStack[e.listStack.length-1])}}(n);var b=o&&(!1===n.list||s||a)&&!e.match(p,!1)&&e.match(d),C=null;if(e.eatSpace())return null;if(o&&f&&(C=e.match(y)))return n.quote=0,n.header=C[1].length,n.thisLine.header=!0,n.formatting="header",n.f=n.inline,S(n);if(o&&e.match(g))return n.quote=f?1:n.quote+1,n.formatting="quote",S(n);if(!b&&f&&(C=e.match(m))){var x=C[1]?"ol":"ul";return n.listMarkerLength=e.current().length,n.indentation=h+n.listMarkerLength,n.list=!0,n.quote=0,n.listStack.push(n.indentation),t.taskLists&&e.match(v,!1)?n.listType="checklist":n.listType=x,n.f=n.inline,n.formatting=["list","list-"+x],S(n)}return l&&f&&(C=e.match(w,!0))&&function(e){var t=new RegExp(/^\+\+\+\s*$/),n=1,r=e.lookAhead(n),i=!1;for(;null!=r;){var o=r.match(t);if(o&&0===o.index){i=!0;break}n+=1,r=e.lookAhead(n)}return i}(e)?(n.localMode=c("markdown"),n.localMode&&(n.localState=i().startState(n.localMode)),n.f=n.block=_,n.formatting="detail-markdown-block",n.detailMarkdownLevel=C[2],n.quote=0,n.detailMarkdownEndRe=new RegExp(/^\+\+\+\s*$/),S(n)):f&&(C=e.match(k,!0))&&function(e,t){var n=new RegExp("```+s*$"),r=1,i=e.lookAhead(r),o=!1;for(;null!=i;){var a=i.match(n);if(a&&0===a.index){o=!0;break}r+=1,i=e.lookAhead(r)}if(o&&null==t.fencedRange){var s=e.lineOracle.line,l=e.lineOracle.line+r;t.fencedRange={start:s,end:l}}return o}(e,n)?(n.localMode=t.fencedCodeBlockHighlighting&&c(C[2]),n.localMode&&(n.localState=i().startState(n.localMode)),n.f=n.block=_,n.formatting="code-block",n.quote=0,n.fencedEndRE=new RegExp(C[1]+"+ *$"),n.code=-1,S(n)):b?(e.skipToEnd(),n.hr=!0,n.thisLine.hr=!0,u.hr+" line-ticktick-hr line-background-ticktick-hr-bg"):function(e,t,n){return t.f=t.inline=n,n(e,t)}(e,n,n.inline)}function _(e,t){var n,r=t.listStack[t.listStack.length-1]||0,i=t.indentation<r,o=r+3,a="";if(t.detailMarkdownEndRe&&(a+="line-ticktick-detail-markdown-level-".concat(t.detailMarkdownLevel," line-background-ticktick-detail-markdown-bg-level-").concat(t.detailMarkdownLevel)),t.fencedEndRE&&(a+=" line-ticktick-code-block line-background-ticktick-code-block-bg",t.fencedRange)){var s=t.fencedRange,l=s.start,c=s.end;a+=" line-ticktick-code-block-range-".concat(l,"-").concat(c)}if(t.detailMarkdownEndRe&&e.match(t.detailMarkdownEndRe)){t.formatting="detail-markdown-block",t.thisLine.detailMarkdownEnd=!0,t.localMode=t.localState=null,t.block=x,t.f=O;var f=S(t);return t.detailMarkdownEndRe=null,t.detailMarkdownLevel=0,f}if(t.fencedEndRE&&t.indentation<=o&&(i||e.match(t.fencedEndRE)))return t.formatting="code-block",t.thisLine.fencedCodeEnd=!0,i||(n=S(t)),t.localMode=t.localState=null,t.block=x,t.f=O,t.fencedEndRE=null,t.fencedRange=null,t.code=0,i?function(e,t,n){return t.f=t.block=n,n(e,t)}(e,t,t.block):n;if(t.localMode){var d=t.localMode.token(e,t.localState);return null==d?a:d+" "+a}return e.skipToEnd(),u.code+" "+a}function S(n){var r,i=[];if(n.formatting){i.push(u.formatting),"string"===typeof n.formatting&&(n.formatting=[n.formatting]);for(var o=0;o<n.formatting.length;o++)if(i.push(u.formatting+"-"+n.formatting[o]),"header"===n.formatting[o])i.push(u.formatting+"-"+n.formatting[o]+"-"+n.header);else if("quote"===n.formatting[o])!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=n.quote?i.push(u.formatting+"-"+n.formatting[o]+"-"+n.quote):i.push("error");else if("code-block"===n.formatting[o]){if(i.push("line-ticktick-code-block"),i.push("line-background-ticktick-code-block-bg"),n.fencedRange){var s=n.fencedRange,l=s.start,c=s.end;i.push("line-ticktick-code-block-range-".concat(l,"-").concat(c))}n.thisLine&&n.thisLine.fencedCodeEnd?(i.push("line-ticktick-code-block-end"),i.push("line-background-ticktick-code-block-end-bg")):(i.push("line-ticktick-code-block-begin"),i.push("line-background-ticktick-code-block-begin-bg"))}else"detail-markdown-block"===n.formatting[o]&&(i.push("line-ticktick-detail-markdown-level-".concat(n.detailMarkdownLevel," line-background-ticktick-detail-markdown-bg-level-").concat(n.detailMarkdownLevel)),n.thisLine&&n.thisLine.detailMarkdownEnd?(i.push("line-background-ticktick-detail-markdown-end-bg"),i.push("line-ticktick-detail-markdown-end")):(i.push("line-background-ticktick-detail-markdown-begin-bg"),i.push("line-ticktick-detail-markdown-begin")))}(n.highlight?i.push(u.highlight):n.linkHref?i.push(u.linkHref,"url"):(n.strong&&i.push(u.strong),n.em&&i.push(u.em),n.underline&&i.push(u.underline),n.strikethrough&&i.push(u.strikethrough),n.emoji&&i.push(u.emoji),n.linkText&&i.push(u.linkText),n.linkify&&i.push(u.linkify),n.code&&-1!==n.code&&i.push(u.inlineCode),n.mark&&i.push(u.mark),n.customMarkOpen&&i.push(u.customMarkOpen),n.customMark&&i.push(u.customMark),n.customMarkClose&&i.push(u.customMarkClose),n.image&&i.push(u.image)),n.header&&(i.push(u.header,u.header+"-"+n.header),i.push("line-ticktick-header","line-ticktick-header-"+n.header)),n.quote)&&(i.push(u.quote),r=!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=n.quote?n.quote:t.maxBlockquoteDepth,i.push(u.quote+"-"+r),i.push("line-ticktick-quote","line-ticktick-quote-"+r));if(!1!==n.list){var f=(n.listStack.length-1)%3;f?1===f?i.push(u.list2):i.push(u.list3):i.push(u.list1);var d=(0,a.lI)(n,e.indentUnit);i.push("line-ticktick-list-line"),i.push("line-ticktick-list-line-"+d),"checklist"===n.listType&&(i.push("line-ticktick-checklist"),n.taskOpen?i.push("unchecked"):n.taskClosed&&i.push("checked"))}return i.length?i.join(" "):null}function E(e,t){if(e.match(b,!0))return S(t)}function O(e,t){var n=e.string.slice(e.pos);if(t.list){if("checklist"===t.listType)" "===e.match(v,!0)[1]?(t.taskOpen=!0,t.taskClosed=!1):(t.taskClosed=!0,t.taskOpen=!1),t.formatting="checklist";else t.taskOpen=!1,t.taskClosed=!1;return t.list=null,S(t)}var r=h.parse(n,{});return t.inlineTokens=o.i(r),e.eatSpace()?S(t):T(e,t)}function T(e,t){for(var n=t.inlineTokens;;){if(!e.next())return t.inlineTokens=null,S(t);if(!n||!n.length)return S(t);var i=n[0]||{},a=i.content,s=i.token,l=i.src;if(e.current()===a)switch(n.shift(),s){case o.w.IMAGE:return a!==e.string||r.has("image")||(t.formatting="image",t.image=l),S(t);case o.w.NORMAL:return S(t);case o.w.LINKIFY:t.linkText=!0,t.linkify=!0;var c=S(t);return t.linkText=!1,t.linkify=!1,c;case o.w.LINK_OPEN:return t.formatting="link",t.linkText=!0,S(t);case o.w.LINK_CLOSE:t.formatting="link";var u=S(t);return t.linkText=!1,u;case o.w.LINK_URL_OPEN:return t.formatting="link-string",t.linkHref=!0,S(t);case o.w.LINK_URL_CLOSE:t.formatting="link-string";var f=S(t);return t.linkHref=!1,f;case o.w.EM_OPEN:return t.formatting="em",t.em=a,S(t);case o.w.EM_CLOSE:t.formatting="em";var d=S(t);return t.em=!1,d;case o.w.STRONG_OPEN:return t.formatting="strong",t.strong=a,S(t);case o.w.STRONG_CLOSE:t.formatting="strong";var h=S(t);return t.strong=!1,h;case o.w.UNDER_LINE_OPEN:return t.formatting="underline",t.underline=a,S(t);case o.w.UNDER_LINE_CLOSE:t.formatting="underline";var p=S(t);return t.underline=!1,p;case o.w.STRIKETHROUGH_OPEN:return t.formatting="strikethrough",t.strikethrough=a,S(t);case o.w.STRIKETHROUGH_CLOSE:t.formatting="strikethrough";var m=S(t);return t.strikethrough=!1,m;case o.w.CODE_INLINE_OPEN:return t.formatting="code",t.code=a,S(t);case o.w.CODE_INLINE_CLOSE:t.formatting="code";var g=S(t);return t.code=!1,g;case o.w.MARK_OPEN:return t.formatting="mark",t.mark=a,S(t);case o.w.MARK_CLOSE:t.formatting="mark";var v=S(t);return t.mark=!1,v;case o.w.CUSTOM_MARK_START_OPEN:return t.customMarkOpen=!0,S(t);case o.w.CUSTOM_MARK_START_CLOSE:var y=S(t);return t.customMarkOpen=!1,t.customMark=!0,t.style=i.style,y;case o.w.CUSTOM_MARK:var b=S(t);return t.style=i.style,b;case o.w.CUSTOM_MARK_END_OPEN:t.customMark=!1,t.customMarkClose=!0;var k=S(t);return t.style=i.style,k;case o.w.CUSTOM_MARK_END_CLOSE:var w=S(t);return t.customMarkClose=!1,w;default:return S(t)}}}var L={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,listMarkerLength:0,inline:O,text:E,formatting:!1,linkText:!1,linkHref:!1,linkify:!1,code:0,em:!1,strong:!1,mark:!1,underline:!1,header:0,hr:!1,listType:null,list:!1,listStack:[],quote:0,image:!1,strikethrough:!1,emoji:!1,fencedEndRE:null,fencedRange:null,inlineTokens:null,detailMarkdownEndRe:null,detailMarkdownLevel:0,customMarkOpen:!1,customMark:!1,customMarkClose:!1,style:{}}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,indentation:e.indentation,listMarkerLength:e.listMarkerLength,localMode:e.localMode,localState:e.localMode?i().copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkHref:e.linkHref,linkify:e.linkify,image:e.image,code:e.code,em:e.em,strong:e.strong,mark:e.mark,underline:e.underline,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,hr:e.hr,listType:e.listType,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE,fencedRange:e.fencedRange,detailMarkdownEndRe:e.detailMarkdownEndRe,detailMarkdownLevel:e.detailMarkdownLevel,customMarkOpen:e.customMarkOpen,customMark:e.customMark,customMarkClose:e.customMarkClose,style:e.style,inlineTokens:e.inlineTokens}},token:function(t,n){if(n.formatting=!1,t!==n.thisLine.stream){if(n.header=0,n.hr=!1,n.inlineTokens=null,n.linkText=!1,n.linkHref=!1,n.linkify=!1,n.quote=0,n.taskOpen=!1,n.taskClosed=!1,t.match(/^\s*$/,!0))return C(n);if(n.prevLine=n.thisLine,n.thisLine={stream:t},!n.localState){n.f=n.block;var r=t.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(n.indentation=r,n.indentationDiff=null,r>0){var i=function(t){var n=t.indentation;if(!1!==t.list){for(var r=!0,i=t.listStack.slice(0);n<i[i.length-1];)if(i.pop(),!i.length){r=!1;break}if(r)return i[i.length-1]-t.listMarkerLength+e.indentUnit}return 0}(n);return t.match(m,!1)?"ticktick-list-indent":i?(t.backUp(Math.min(t.pos,Math.max(0,r-i))),"ticktick-list-indent"):null}}}else if(n.inlineTokens&&n.inlineTokens.length)return T(t,n);return n.f(t,n)},innerMode:function(e){return e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(e,t,n){return e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,n):0},blankLine:C,getType:S,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L})),i().defineMIME("text/markdown","markdown"),i().defineMIME("text/x-markdown","markdown")},lj54:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});n("ma9I");var r=function(e){return+"".concat(e.line).concat(e.ch)},i=function(e,t){var n=r(e),i=r(t);return n>i?"after":n<i?"before":"same"}},pwco:function(e,t,n){"use strict";n.d(t,{Ds:function(){return c},_B:function(){return h},W_:function(){return p},SJ:function(){return m}});n("ma9I"),n("rB9j"),n("ALS0"),n("UxlC"),n("hByQ"),n("SYor");var r=n("ZLhR"),i=n("v87U"),o=n("CPwy"),a=n("ylzY"),s=n("Es6M"),l=n("pWE6");function c(e,t){var n=null,r=0,i=function(){e(),n=null},o=function(){var e=+new Date;if(n){if(e<r)return;clearTimeout(n)}n=setTimeout(i,t),r=e+100};return o.stop=function(){n&&(clearTimeout(n),n=null)},o}var u=function(e){return-1===e.search(/^(.*)?:\/\//)?"https://"+e:e},f=function(e,t){var n=t.editable,r=t.text,i=t.url,o=void 0===i?"":i;switch(e){case"link":return'<a type="link" href="'.concat(u(o),'" url="').concat(o,'" target="_blank" class="contentUrl" ').concat(n?'contenteditable="'.concat(n,'"'):"",">").concat(r,"</a>");case"mdLink":return'<a type="mdLink" href="'.concat(u(o),'" url="').concat(o,'" target="_blank" class="contentUrl" ').concat(n?'contenteditable="'.concat(n,'"'):"",">").concat(r,"</a>");case"highlight":return"<marker ".concat(n?'contenteditable="'.concat(n,'"'):"",">").concat(r,"</marker>");case"subText":return'<span class="sub-text" '.concat(n?'contenteditable="'.concat(n,'"'):"",">").concat(r,"</span>");default:return""}},d=function(e,t,n){var r=void 0===n?a.ZP.highlightKeyWordsRegExp:n;return null==r?e:e.replace(r,(function(e,n){return f("highlight",{editable:t,text:n})}))},h=function(e,t,n,s,c,u){var h="",p="cmList"===e||"cmCalculate"===e,m="calculate"===e,y="detail"===e,b={isLinkText:!1,isLinkHref:!1,linkText:"",linkHref:"",linkHrefRich:"",isHighlightInLink:!1},k=function(){b.isLinkText=!1,b.isLinkHref=!1,b.linkText="",b.linkHref="",b.linkHrefRich="",b.isHighlightInLink=!1},w=s.has("highlight"),C=i.e.parseInline(t,{}),x=r.i(C);if(0===x.length)return o.F1(t);for(var _=function(){var e=x.shift(),t=e.content,i=e.token,s=o.F1(t);switch(i){case r.w.LINK_OPEN:b.isLinkText=!0;break;case r.w.LINK_CLOSE:b.isLinkText=!1;break;case r.w.LINK_URL_OPEN:b.isLinkHref=!0;break;case r.w.LINK_URL_CLOSE:if(b.isLinkHref=!1,b.linkText.trim()&&b.linkHref)if(p)if(b.isHighlightInLink)h+=f("mdLink",{editable:!1,text:"[".concat(b.linkText.trim(),"](").concat(b.linkHrefRich,")"),url:b.linkHref});else{var C=b.linkText.trim(),_=b.linkHref;h+=f("subText",{text:"[".concat(f("mdLink",{editable:!1,text:C,url:_}),"](").concat((0,l.WK)(_)?v:g,")"),editable:!1})}else h+=m?b.linkText:y?b.isHighlightInLink?"[".concat(b.linkText.trim(),"](").concat(b.linkHrefRich,")"):b.linkText.trim():f("mdLink",{editable:n,text:b.isHighlightInLink?"[".concat(b.linkText.trim(),"](").concat(b.linkHrefRich,")"):b.linkText.trim(),url:b.linkHref});else h+="[".concat(b.linkText,"](").concat(b.linkHrefRich,")");k();break;case r.w.LINKIFY:if(k(),m)h+=s;else if(y)h+=d(s,n,c);else{var S=void 0===c?a.ZP.highlightKeyWordsRegExp:c;h+=f("link",{editable:n,text:S&&!w?d(s,n,c):function(){if(u){var e=(0,l.WK)(t);return e?u[e.taskId]||s:u[t]||s}return s}(),url:s})}break;case r.w.NORMAL:default:b.isLinkHref||b.isLinkText?b.isLinkText?b.linkText=w?s:d(s,n,c):(b.linkHref=s,b.linkHrefRich=w?s:d(s,n,c),b.isHighlightInLink=b.linkHref!==b.linkHrefRich):h+=w?s:d(s,n,c)}};x.length>0;)_();return h},p=function(e,t,n){var r=/image/i.test(t)?"image":"file";return"![".concat(r,"](").concat(e,"/").concat(o.GH(n),")")},m=function(e){return"".concat((0,s.Iq)("!["),".*").concat((0,s.Iq)("](")).concat((0,s.Iq)(e+"/"),".*").concat((0,s.Iq)(")"))},g='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\nviewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">\n<path d="M7.605,10.795l1.418,1.418l0,0c0.84,0.84,2.26,0.93,3.188,0s0.84-2.347,0-3.187l-1.417-1.417\nc-0.22-0.22-0.22-0.577,0-0.797l0,0c0.22-0.22,0.577-0.22,0.798,0l1.417,1.417l0,0c1.321,1.318,1.321,3.458,0.003,4.778\nc-1.324,1.323-3.464,1.324-4.785,0.003l-1.418-1.418c-0.22-0.22-0.22-0.576,0-0.796l0,0C7.028,10.575,7.385,10.575,7.605,10.795z\nM2.989,2.991c1.319-1.32,3.459-1.321,4.779-0.003C7.769,2.989,7.77,2.989,7.771,2.991L9.19,4.41c0.22,0.22,0.22,0.576,0,0.796l0,0\nc-0.22,0.22-0.576,0.22-0.796,0L6.975,3.787l0,0c-0.84-0.84-2.26-0.93-3.188,0s-0.84,2.347,0,3.187l1.417,1.417\nc0.22,0.22,0.22,0.577,0,0.797l0,0c-0.22,0.22-0.577,0.22-0.798,0L2.989,7.771l0,0C1.67,6.45,1.67,4.31,2.99,2.989L2.989,2.991z\nM7.039,6.215l2.745,2.743c0.22,0.219,0.22,0.574,0.001,0.794c-0.219,0.219-0.574,0.22-0.793,0.001c0,0,0,0-0.001-0.001L6.246,7.009\nc-0.219-0.219-0.219-0.574,0-0.794C6.465,5.996,6.819,5.995,7.039,6.215C7.039,6.214,7.039,6.214,7.039,6.215z"/>\n</svg>',v='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">\n<path d="M9.949,6.193c0.892,0.892,0.892,2.339,0,3.231l-2.524,2.524c-0.892,0.892-2.339,0.892-3.231,0\n\tL1.669,9.424c-0.892-0.892-0.892-2.339,0-3.231l2.524-2.524c0.892-0.892,2.339-0.892,3.231,0L6.718,4.376\n\tc-0.502-0.502-1.315-0.502-1.817,0L2.376,6.9c-0.502,0.502-0.502,1.315,0,1.817L4.9,11.242c0.502,0.502,1.315,0.502,1.817,0\n\tl2.524-2.524c0.502-0.502,0.502-1.315,0-1.817L8.265,5.923l0.707-0.707L9.949,6.193z M14.331,6.193c0.892,0.892,0.892,2.339,0,3.231\n\tl0,0l-2.524,2.524c-0.892,0.892-2.339,0.892-3.231,0l0,0l0.707-0.707c0.502,0.502,1.315,0.502,1.817,0l0,0l2.524-2.524\n\tc0.502-0.502,0.502-1.315,0-1.817l0,0L11.1,4.376c-0.502-0.502-1.315-0.502-1.817,0l0,0L6.758,6.9c-0.502,0.502-0.502,1.315,0,1.817\n\tl0,0l0.977,0.977l-0.707,0.707L6.051,9.424c-0.892-0.892-0.892-2.339,0-3.231l0,0l2.524-2.524c0.892-0.892,2.339-0.892,3.231,0l0,0\n\tL14.331,6.193z"/>\n</svg>'},"4zF/":function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n("q1tI"),i=(n("Ag2S"),function(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e}),[e]),t.current})},PMrR:function(e,t,n){"use strict";n.d(t,{Z:function(){return pe}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("TeQF"),n("fbCW"),n("x0AG"),n("pjDv"),n("yq1k"),n("4mDm"),n("2B1R"),n("Junv"),n("+2oP"),n("7+zs"),n("sMBO"),n("qePV"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("4l63"),n("SuFq"),n("rB9j"),n("ALS0"),n("JfAA"),n("YGK4"),n("JTJg"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("y8mg"),s=n.n(a),l=n("3KU8"),c=n.n(l),u=n("Eh+D"),f=n("WSY4"),d=n("dmHn"),h=n.n(d),p=n("ue7t"),m=(n("5DmW"),n("27RR"),n("4+DD")),g=n("RDjN"),v=n("2sNt"),y=n("zoGk"),b=n("ylzY"),k=n("/0bn"),w=n("V/jI"),C=n("wV/k"),x=n("QGeY"),_=n("gq2Z"),S=n("lBvt"),E=n("4zF/"),O=n("JxUy"),T=n("CBfc"),L=n("fn0o"),P=n("Xsnu");function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function D(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<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(e,t,n){if(e.isRightPanelKalendae){var r="Kalendae"+e.date;if(b.ZP.dragHoverTarget===r)return;b.ZP.dragHoverTarget=r,(0,m.OZ)(n),n.classList.add(g.wIS.kalendaeDay)}else{if(!R(t.data.current))return;var i="Kalendae"+e.date;if(b.ZP.dragHoverTarget===i)return;b.ZP.dragHoverTarget=i,(0,m.OZ)(n),n.classList.add(g.wIS.kalendaeDay)}};function R(e){return e.dragItem.type===S.cj.TASK}var A=function(e){var t=e.date,n=e.isRightPanelKalendae,i=e.viewType,o=(0,r.useContext)(P.A),a={accepts:[S.cj.TASK],area:n?S.LF.CALENDAR:void 0,overlay:function(e){if(n&&e.area!==S.M5.CALENDAR_MONTH&&e.area!==S.M5.CALENDAR_ALL_DAY&&e.area!==S.M5.CALENDAR_SCHEDULE)return e.area===S.M5.CALENDAR_IN_DAY?r.createElement(O.Z,{dragItem:e,dayWidth:b.ZP.dayWidth||200,targetDate:e.data.fromDate}):r.createElement(T.Z,{dragItem:e})},over:function(){},move:function(t){var n=t.active;d.current&&I(e,n,d.current)},drop:function(t){var n=t.active,r=e.isRightPanelKalendae,a=e.webCalendarViewFilter;if(r){var s=n.data.current,l=e.date,c=s.dragItem;(0,x.j)(c,l,b.ZP.isModifierKeyPressDragging,o,{webCalendarViewFilter:a,viewType:i})}else{var u=n.data.current;if(!R(u))return;var f=u.dragItem,d=f.id,h=f.data.ids,p=h.length>1&&h.includes(d)?h:[d],g=(0,v.a1Z)(p);if((0,v.Ube)(g.get(0)))return void k.$Z({text:w.U2("edit_schedule_date_limit")});var _=y.Z.getOffsetOfToday(e.date);C.Z(g,_)}(0,m.OZ)()}},l=(0,r.useMemo)((function(){return"Kalendae-".concat(s().uniqueId(t))}),[t]),c=(0,L.Z)({id:l,data:a}),u=c.setNodeRef,f=c.isOver,d=c.node,h=(0,E.D)(f);return(0,r.useEffect)((function(){h&&!f&&((0,m.OZ)(),b.ZP.dragHoverTarget="")}),[f,d,h]),(0,_.Z)(j(j({},e),{},{setRef:u}))},B=n("HJxP"),Z=n("rH+n"),F=n("P26T"),U=n("YSKt"),K=n("q9+P"),Y=(n("f1Gl"),n("5VMf")),W=n("AqaH"),H=n("l98v"),z=n("NW6w"),q=n("AtZj"),V=n("aW3o"),J=n("5WEu"),G=n("sLZY"),Q=n("+TCt");function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,le(r.key),r)}}function re(e,t,n){return t=oe(t),function(e,t){if(t&&("object"===X(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ie()?Reflect.construct(t,n||[],oe(e).constructor):t.apply(e,n))}function ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ie=function(){return!!e})()}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ae(e,t){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ae(e,t)}function se(e,t,n){return(t=le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}var ce={direction:c().string,exDate:c().array,mode:c().string,defaultSelectMode:c().string,extraClassName:c().string,isFloat:c().bool,timeZone:c().string,trigger:c().node,isDisplayDateInfo:c().bool,canDrop:c().bool,isAbleSwitchMode:c().bool,onChangeMonth:c().func,onHideKalendae:c().func,beforeDatesInvalid:c().oneOfType([c().bool,c().string]),afterDatesInvalid:c().oneOfType([c().bool,c().string]),dateInstance:c().object,isShowTodayTitle:c().bool,renderCustomDayContent:c().func,size:c().string,isHabitKalendae:c().bool,isRightPanelKalendae:c().bool,isDisableHoliday:c().bool,isInTimecardSingle:c().bool,supportYearView:c().bool},ue={direction:"any",exDate:[],mode:"single",defaultSelectMode:"date",extraClassName:"",isFloat:!1,trigger:null,beforeDatesInvalid:!1,afterDatesInvalid:!1,isDisplayDateInfo:!1,canDrop:!1,isAbleSwitchMode:!0,dateInstance:new B.Z,isShowTodayTitle:!0,size:"normal",isHabitKalendae:!1,isRightPanelKalendae:!1,isDisableHoliday:!1,isInTimecardSingle:!1,supportYearView:!1,onChangeMonth:function(){},onHideKalendae:function(){}},fe="YYYY-MM-DD",de={0:"su",1:"mo",2:"tu",3:"we",4:"th",5:"fr",6:"sa"},he=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),se(n=re(this,t,[e]),"getSelectedDateByMode",(function(e){var t=e.selected,n=e.rangeAt,r=e.mode;if(t)return"range"===r?t["begin"===n?0:1]:"multi"===r?t.length>0?t[t.length-1]:void 0:t})),se(n,"getSnapshotBeforeUpdate",(function(e,t){var r=n.state;r.currentDate!==t.currentDate&&(h()(r.currentDate,"YYYY-MM-DD").isSame(h()(r.focusDate,"YYYY-MM-DD"))||n.setState({focusDate:r.currentDate}));var i=n.props;if(i.selected!==e.selected&&"multi"!==e.mode){var o=n.getCurrentDateFromProps(i),a=i.selected||"";n.setState({selectedDate:a,currentDate:o})}if(i.currentDate!==e.currentDate){var s=n.getCurrentDateFromProps(i);n.setState({currentDate:s})}if(i.beforeDatesInvalid!==e.beforeDatesInvalid){var l=n.handleBeforeDatesInvalid(i.beforeDatesInvalid);l!==e.beforeDatesInvalid&&n.setState({beforeDatesInvalid:l})}if(i.afterDatesInvalid!==e.afterDatesInvalid){var c=n.handleAfterDatesInvalid(i.afterDatesInvalid);c!==e.afterDatesInvalid&&n.setState({afterDatesInvalid:c})}return(0,u.is)(i.exDate||[],e.exDate)||n.setState({exDate:i.exDate||[]}),null})),se(n,"onBodyClick",(function(e){var t=n.props,r=t.onHideKalendae,i=t.trigger;$(e.target).parents(".kalendae").length||i&&$(e.target).closest(i).length||r()})),se(n,"onItemFocus",(function(e){n.setState({focusDate:e})})),se(n,"onArrowTrigger",(function(e){var t=n.state,r=t.focusDate,i=t.currentDate,o=n.kalenadeRef.current;if(o){var a=h()(r,"YYYY-MM-DD").add(function(){switch(e){case"up":return-7;case"down":return 7;case"left":return-1;case"right":return 1;default:return 0}}(),"days"),s=h()(i,"YYYY-MM-DD"),l=a.format("YYYY-MM-DD");if(!(0,V.Qr)(a))return;var c=function(){Array.from($(o).find(".kalenade-day-item")).some((function(e){return e.getAttribute("data-date")===l&&(e.focus(),!0)}))};s.isSame(a,"month")?c():n.setState({currentDate:a.month(a.month()).format("YYYY-MM-DD")},(function(){setTimeout((function(){c()}),0)}))}})),se(n,"renderHolidayIcon",(function(e){var t=e.isWorkDay,n=e.isRestDay,i=e.showHoliday,a=e.isDarkTheme,s=e.isInMonth;return i&&(n||t)?r.createElement("span",{className:o()("absolute right-[-2px] top-[-2px] text-center rounded-full z-[1] holidayIcon",{"border border-solid border-main-background bg-main-background":n||t,"opacity-40":!s})},n&&r.createElement(q.Z,{name:a?"calendar-holiday-dark":"calendar-holiday",className:"w-[10px] h-[10px] text-green"}),t&&r.createElement(q.Z,{name:a?"calendar-workday-dark":"calendar-workday",className:"w-[10px] h-[10px] text-dark-red"})):null})),se(n,"needShowDateInfo",(function(){var e=n.props,t=e.lunarEnabled,r=e.alternativeCalendarValue;return K.j4?t:!!r})),se(n,"renderMonthMenu",(function(){var e=n.props,t=e.size,i=e.isCalendarHeaderKalendae,a=e.supportYearView,s=n.getSingleYearArray(n.state,n.props),l=n.getMonthArray(n.state,n.props);return r.createElement(r.Fragment,null,r.createElement("ul",{className:o()("year relative inline-flex",i?"h-[20px] leading-[20px] text-[14px] font-semibold mb-[12px]":"h-[24px] leading-[24px] text-[12px] ml-[5px]")},s.map((function(e){return r.createElement("li",{className:o()("flex-1 inline-block"),key:e.text},r.createElement("a",{className:o()("year-change block text-center",i?"text-[14px] text-grey":"leading-[20px] text-grey-80 text-[14px]",a&&"cursor-pointer"),onClick:a?function(){return n.switchToYearMode()}:void 0,role:a?"button":void 0},e.text))}))),l.map((function(e,a){var s="tiny"===t;return r.createElement("ul",{className:"month grid justify-between gap-y-[4px]",key:a.toString(),style:{gridTemplateColumns:"repeat(4, 34px)",marginBottom:a<=l.length-1?i?10:s?4:6:0}},e.map((function(e){var t=e.isActive;return r.createElement("li",{className:o()(i?"w-[32px] h-[32px]":"w-[34px] h-[34px]",{active:t}),key:e.text,onClick:function(t){e.isDisabled||n.changeMonth(e.fullString)}},r.createElement("span",{className:o()("month-change block rounded-full text-center text-[13px]",i?"w-[32px] h-[32px] leading-[32px]":"w-[34px] h-[34px] leading-[34px]",se({"month-current":e.isCurrent,"disable cursor-not-allowed opacity-40":e.isDisabled,"cursor-pointer":!e.isDisabled,"bg-primary !text-white active":t,"hover:bg-primary-10":!t&&!e.isDisabled},i?"text-grey-60":Y.RM,!t))},e.text))})))})))})),se(n,"renderYearMenu",(function(){var e=n.state.navYear,t=n.props,i=t.size,a=t.isCalendarHeaderKalendae,s=n.getYearPageArray(n.state,n.props);return r.createElement(r.Fragment,null,r.createElement("div",{className:o()("year relative inline-flex","h-[20px] leading-[20px] text-[14px] font-semibold mb-[12px]")},e," - ",Math.min(parseInt(e,10)+11,V.oH)),s.map((function(e,t){return r.createElement("ul",{className:"year grid justify-between gap-y-[4px]",key:t.toString(),style:{gridTemplateColumns:"repeat(4, 34px)",marginBottom:t<=s.length-1?a?10:"tiny"===i?4:6:0}},e.map((function(e,t){return r.createElement("li",{className:o()(a?"w-[32px] h-[32px]":"w-[34px] h-[34px]",{active:e.isActive}),key:e.text,onClick:function(){e.isDisabled||n.changeYearFromYearView(e.text)}},r.createElement("span",{className:o()("year-change block rounded-full text-center text-[12px]",a?"w-[32px] h-[32px] leading-[32px]":"w-[34px] h-[34px] leading-[34px]",se({"year-current":e.isActive,"disable cursor-not-allowed opacity-40":e.isDisabled,"cursor-pointer":!e.isDisabled,"bg-primary !text-white active":e.isActive,"hover:bg-primary-10":!e.isActive&&!e.isDisabled},a?"text-grey-60":Y.RM,!e.isActive))},e.text))})))})))})),se(n,"getDateInfoElements",(0,f.P1)([function(e){return e.dateArray},function(e,t){return t.isDisplayDateInfo}],(function(e,t){return e.map((function(e){if(t){var n=(0,Z.ht)(h()(e.date,"YYYY-MM-DD").toDate()),i=(0,Z.on)(n,{showWeekOfYear:!1}),a=1===n.ld,s=n.sy<2050?i.text:"";return s?r.createElement("i",{className:o()({highlight:a})},s):null}return null}))}))),se(n,"getWeekNames",(0,f.P1)([function(e){return e.dateInstance}],(function(e){for(var t=[],n=e.getStartOfWeek().subtract(1,"day"),r=0;r<7;r++){var i=n.add(1,"day");t.push({weekday:i.day(),name:w.U2(de[i.day()]+"_week")})}return t}))),se(n,"getDateArray",(0,f.P1)([function(e,t){return e.currentDate},function(e,t){return e.selectedDate},function(e,t){return e.exDate},function(e,t){return t.dateInstance},function(e,t){return t.showRepeat},function(e,t){return t.repeatFrom},function(e,t){return t.repeatFlag},function(e,t){return t.timeZone},function(e,t){return t.mode},function(e,t){return t.showHoliday},function(e,t){return t.isDarkTheme},function(e,t){return t.holidayData},function(e,t){return e.focusDate},function(e,t){return t.todayString}],(function(e,t,r,i,o,a,s,l,c,u,f,d,h,p){for(var m=i.getStartOfMonth(e),g=i.getEndOfMonth(e),v=i.getStartOfWeek(m.clone()).subtract(1,"day"),y=new Set(n.getRepeatDates(v.clone().add(1,"day").toDate(),v.clone().add(42,"day").endOf("day").toDate(),o,a,t,s,r,l)||[]),b=i.getStartOfWeek(),k=[],w=0;w<42;w++){v.add(1,"day");var C=v.format(fe),x=v-b;k.push({date:C,value:v.format("D"),isInWeek:x>=0&&x<=5184e5,isInMonth:v-m>=0&&v-g<=0,isToday:C===p,isSelected:n.isDaySelected(C),isFocused:C===h,isDisabled:n.isDateDisabled(C),isInRepeat:y.has(C),isInRange:n.isDayInRange(C),isRangeStart:"range"===c&&C===t[0],isRangeEnd:"range"===c&&C===t[1],isWorkDay:H.ET(C),isRestDay:H.av(C),showHoliday:u,isDarkTheme:f})}return k}))),se(n,"getDateArrayWithTaskCount",(0,f.P1)([n.getDateArray,function(e,t){return t.needTaskTip},function(e,t){return t.dateCount}],(function(e,t,n){return e.forEach((function(e){var r=!1;t&&(r=n[e.date]),e.hasTask=r})),e}))),se(n,"isBackTodayDisabled",(function(){var e=n.props.dateInstance,t=n.state,r=t.selectMode,i=t.currentDate,o=t.navYear,a=t.beforeDatesInvalid;if("date"===r){var s=e.getDateMoment(i).format("YYYYMMDD"),l=e.getDateMoment().format("YYYYMMDD");return!!a&&h()().format("YYYY-MM-DD")<a||s===l}if("month"===r)return e.getStartOfYear(o).format("YYYY")+e.getDateMoment(i).format("MM")===e.getDateMoment().format("YYYYMM");if("year"===r){var c=parseInt(e.formatYYYY(),10),u=Math.max(V.RW,Math.min(c-4,2088));return parseInt(o,10)===u}return!1})),se(n,"getYearArray",(0,f.P1)((function(e,t){return t.dateInstance}),(function(e,t){return e.navSelectedYear}),(function(e,t){return e.navYear}),(function(e,t){return e.currentDate}),(function(e,t,r,i){for(var o=t||e.formatYYYY(i),a=e.getStartOfYear(r).subtract(1,"year"),s=[],l=0;l<3;l++){a.add(1,"year");var c=a.format("YYYY");s.push({text:c,isActive:c===o,isDisabled:n.isYearDisabled(c)})}return s}))),se(n,"getSingleYearArray",(0,f.P1)((function(e,t){return t.dateInstance}),(function(e,t){return e.navSelectedYear}),(function(e,t){return e.navYear}),(function(e,t){return e.currentDate}),(function(e,t){return t.isCalendarHeaderKalendae}),(function(e,t,r,i,o){var a=t||e.formatYYYY(i),s=[],l=e.getStartOfYear(r).format(o&&K.Xo?"YYYY\u5e74":"YYYY");return s.push({text:l,isActive:l===a,isDisabled:n.isYearDisabled(l)}),s}))),se(n,"getMonthArray",(0,f.P1)((function(e,t){return t.dateInstance}),(function(e,t){return e.navSelectedYear}),(function(e,t){return e.currentDate}),(function(e,t,r){for(var i=e.getStartOfYear(t).subtract(1,"month"),o=[],a=[],s=[],l=e.formatYM(),c=e.formatYM(r),u=0;u<12;u++){i.add(1,"month");var f=i.format("MMM"),d=i.format("YYYY-MM");(0===Math.floor(u/4)?o:1===Math.floor(u/4)?a:s).push({text:f,fullString:d,isActive:d===c,isCurrent:d===l,isDisabled:n.isMonthDisabeld(i.format("YYYY-MM"))})}return[o,a,s]}))),se(n,"getYearPageArray",(0,f.P1)((function(e,t){return e.selectMode}),(function(e,t){return e.navYear}),(function(e,t){return e.navSelectedYear}),(function(e,t){return e.currentDate}),(function(e,t){return t.dateInstance}),(function(e,t,r,i,o){if("year"!==e)return[];for(var a=r||o.formatYYYY(i),s=Math.max(V.RW,Math.min(parseInt(t,10),2088)),l=[],c=[],u=[],f=0;f<12;f++){var d=s+f;if(d>V.oH)break;var h=String(d);(f<4?l:f<8?c:u).push({text:h,isActive:h===a,isDisabled:n.isYearDisabled(h)})}return[l,c,u]})));var i=n.props,a=i.selected,s=i.beforeDatesInvalid,l=i.afterDatesInvalid,c=i.exDate,d=i.dateInstance,p=i.defaultSelectMode,m=i.supportYearView,g=n.getSelectedDateByMode(e),v=n.getCurrentDateFromProps(e),y=d.formatYYYY(g||v),b=m&&"year"===p?Math.max(V.RW,Math.min(parseInt(y,10)-4,2088)):y;return n.state={selectedDate:a||"",currentDate:v,navYear:b,navSelectedYear:y,beforeDatesInvalid:n.handleBeforeDatesInvalid(s),afterDatesInvalid:n.handleAfterDatesInvalid(l),exDate:c||[],selectMode:p},n.state.focusDate=n.state.currentDate,n.updateSelectedDate=n.updateSelectedDate.bind(n),n.doubleSelectedDate=n.doubleSelectedDate.bind(n),n.toPrevUnit=n.toPrevUnit.bind(n),n.toNextUnit=n.toNextUnit.bind(n),n.switchToMonthMode=e.isAbleSwitchMode?n.switchToMonthMode.bind(n):n.clickOnMonth.bind(n),n.changeYear=n.changeYear.bind(n),n.changeMonth=n.changeMonth.bind(n),n.switchToYearMode=n.switchToYearMode.bind(n),n.changeYearFromYearView=n.changeYearFromYearView.bind(n),n.backToToday=n.backToToday.bind(n),n.cacheTaskInDate={},n.kalenadeRef=r.createRef(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ae(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.props.isFloat&&document.addEventListener("click",this.onBodyClick,{capture:!0})}},{key:"componentWillUnmount",value:function(){this.props.isFloat&&document.removeEventListener("click",this.onBodyClick,{capture:!0})}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props||{},r=this.state||{};if(e=e||{},t=t||{},Object.keys(n).length!==Object.keys(e).length||Object.keys(r).length!==Object.keys(t).length)return!0;for(var i in e)if(!(0,u.is)(n[i],e[i]))return!0;for(var o in t)if(r[o]!==t[o]||!(0,u.is)(r[o],t[o]))return!0;return!1}},{key:"refreshCurrentDate",value:function(){var e=this.props.dateInstance;this.setState({currentDate:e.formatYMD()})}},{key:"getKalendaeDayBgColor",value:function(e){var t=this.props.isRightPanelKalendae,n=e.isInRepeat,r=e.isSelected,i=e.isToday,a="";return r?a+="bg-primary z-[-1]":(i&&(a+=t?"bg-primary":"bg-grey-10"),!i&&n&&(a+="bg-primary-20")),r||i||n||(a+="bg-[transparent]"),o()("hackDayDisplay",a)}},{key:"getKalendaeDayAfterBgColorElement",value:function(e){var t=this.props.isRightPanelKalendae,n=e.findIndex((function(e){return e.isInRange})),i=e.reverse().findIndex((function(e){return e.isInRange})),a=i>=0?e.length-1-i:-1,s=t?32:28,l=n>=0?"calc((100% - ".concat(7*s,"px) / 6 * ").concat(n," + ").concat(s,"px * ").concat(n).concat(t?" + 1px":"",")"):void 0,c=a>=0?"calc(100% - (100% - ".concat(7*s,"px) / 6 * ").concat(a," - ").concat(s,"px * ").concat(a+1).concat(t?" + 1px":"",")"):void 0;return l&&c?r.createElement("div",{className:o()("absolute rounded-full z-0",t?"bg-grey-8 top-[1px] bottom-[1px]":"bg-primary-20 top-0 bottom-0"),style:{left:l,right:c}}):null}},{key:"getKalendaeDayInfoColor",value:function(e){var t=this.props.isRightPanelKalendae,n=e.isSelected,r=e.isToday,i="";return n?i="text-white":r&&(i=t?"text-white":"text-primary"),e.isInMonth||(i="opacity-40",n&&(i="text-white")),e.isDisabled&&(i="opacity-40"),i}},{key:"getTaskTipsClassName",value:function(e){var t=e.hasTask,n=e.isSelected,r=this.props.isRightPanelKalendae;return t?n&&r?"invisible":o()("inline-block rounded-full visible",n?"bg-white":"bg-primary"):"invisible"}},{key:"renderDayContent",value:function(e,t){var n=this.props,i=n.renderCustomDayContent,a=n.isDisableHoliday,s=n.isRightPanelKalendae,l=e.isInRepeat&&!e.isSelected,c=e.isDisabled;if(i)return i(e);var u=o()("k-day block relative",s?"w-[30px] leading-[30px]":"w-[28px] leading-[28px]",{"k-in-month":e.isInMonth,"k-out-of-month":!e.isInMonth,"k-today":e.isToday,"k-selected":e.isSelected,"k-in-repeat":l,"k-range":e.isInRange,"k-range-begin":e.isRangeStart,"k-range-end":e.isRangeEnd,"k-task":e.hasTask,disable:e.isDisabled,"k-date-info":!!t}),f=a?null:this.renderHolidayIcon({isWorkDay:e.isWorkDay,isRestDay:e.isRestDay,showHoliday:e.showHoliday,isDarkTheme:e.isDarkTheme,isInMonth:e.isInMonth}),d=o()("rounded-full inline-block absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",s?"w-[30px] h-[30px]":"w-[28px] h-[28px]");return r.createElement("span",{className:o()(u,"select-none hackDayHover z-[1]",{"cursor-not-allowed":c,"cursor-pointer":!c})},!c&&r.createElement("span",{className:o()("daysInfoBackground",d,this.getKalendaeDayBgColor(e))},f),r.createElement("span",{className:o()("daysInfoNumber","block relative font-normal",s?"leading-[30px]":"leading-[28px]",this.getKalendaeDayInfoColor(e))},e.value),r.createElement("span",{className:o()("hasTaskTips w-[4px] h-[4px] absolute bottom-[1px] left-1/2 transform -translate-x-1/2",this.getTaskTipsClassName(e))}),t)}},{key:"isWeekStartEq",value:function(e,t){return h()(e).startOf("weeks").valueOf()===h()(t).valueOf()}},{key:"render",value:function(){var e=this,t=this.state.currentDate,n=this.props,i=n.dateInstance,a=n.isCollapse,l=n.kClassName,c=n.isAbleSwitchMode,u=n.isShowTodayTitle,f=n.isRightPanelKalendae,d=n.viewType,h=n.isHabitKalendae,m=n.isInTimecardSingle,g=n.webCalendarViewFilter,v=n.id,y=n.extraClassName,b=i.getDateMoment(t),k=(b.format(f&&K.Xo?"M\u6708":"MMM"),b.format(f&&K.Xo?"YYYY\u5e74":"YYYY"),this.getWeekNames(this.props)),w=this.getDateArrayWithTaskCount(this.state,this.props),C=this.getDateInfoElements({dateArray:w},this.props),x=C.some((function(e){return!!e}))&&this.needShowDateInfo(),_=this.isPrevDisabled(),S=this.isNextDisabled(),E=this.isBackTodayDisabled(),O=this.state.selectMode,T="month"===O,L="year"===O;return r.createElement("div",{id:v||null,className:o()("kalendae",y),ref:this.kalenadeRef},r.createElement("div",{className:o()("k-calendar","relative mx-auto",l,(T||L)&&"nav-open")},!a&&r.createElement("div",{className:o()("k-title relative"),style:{marginBottom:f?14:m?6:void 0}},h&&r.createElement(r.Fragment,null,r.createElement("a",{className:o()("k-prev k-btn w-[24px] h-[24px] block absolute",T||L||!c?"left-0":"right-[28px]",{"k-btn-disable cursor-not-allowed":_}),onClick:_?void 0:this.toPrevUnit},r.createElement(W.Z,{name:"chevron-left",className:"w-[24px] h-[24px] text-grey-40",disabled:_})),r.createElement("a",{className:o()("k-next k-btn w-[24px] h-[24px] block absolute right-0",{"k-btn-disable cursor-not-allowed":S}),onClick:S?void 0:this.toNextUnit},r.createElement(W.Z,{name:"chevron-right",className:"w-[24px] h-[24px] text-grey-40",disabled:S}))),r.createElement("div",{className:"k-caption"},r.createElement("div",{className:o()("nav-selector",(T||L)&&"open")},r.createElement("span",{className:o()("nav-toggle text-[12px] flex items-center w-[70%]",(T||L)&&"hidden",c?"cursor-pointer":"cursor-default",{"justify-center mx-auto":h}),style:{marginLeft:h?void 0:7},onClick:this.switchToMonthMode},r.createElement("span",{className:o()("inline-block text-[14px] leading-[20px]")},F.Z.formatYearAndMonthStrInCalendar(b))),r.createElement("span",{className:o()("nav-menu",T||L?"block":"hidden")},L?this.renderYearMenu():this.renderMonthMenu()))),!h&&r.createElement("div",{className:o()("absolute flex items-center","h-[20px] top-0"),style:{right:3}},r.createElement("a",{className:o()("k-prev k-btn block mr-[4px]",{"k-btn-disable cursor-not-allowed":_}),onClick:_?void 0:this.toPrevUnit,style:{width:12,height:12}},r.createElement(W.Z,{name:"kalendae-chevron-left",className:o()(f?"":"text-grey-40",{"cursor-not-allowed":_}),disabled:_,style:{width:12,height:12}})),u&&r.createElement("a",{className:o()("k-todayMonth k-btn w-[18px] h-[18px] leading-[18px] relative group",{"k-todayMonth-disable":E}),onClick:E?function(){}:this.backToToday},f&&r.createElement("div",{className:o()("absolute opacity-0 z-0 bg group-hover:opacity-100 bg-grey-5 dark:bg-white-5","rounded-[5px]"),style:{inset:-2}}),r.createElement("div",{className:o()("today-btn absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[8px] h-[8px] rounded-full border border-solid",f?"":"border-grey-40")})),r.createElement("a",{className:o()("k-next k-btn block ml-[4px]",{"k-btn-disable cursor-not-allowed":S}),onClick:S?void 0:this.toNextUnit,style:{width:12,height:12}},r.createElement(W.Z,{name:"kalendae-chevron-right",className:o()(f?"":"text-grey-40"),style:{width:12,height:12},disabled:S})))),r.createElement("div",{className:o()("k-header flex text-[12px] justify-between",(T||L)&&"hidden"),style:f?{margin:"1px 0"}:{}},k.map((function(e){var t=e.name,n=e.weekday;return r.createElement("span",{key:n,className:o()("flex-none text-grey-40 text-center",f?"leading-[30px] w-[30px]":"leading-[28px] w-[28px]",{"k-weekend":0===n||6===n}),style:f?{margin:"0 1px"}:{}},t)}))),r.createElement("div",{className:o()("k-days clearfix flex flex-col justify-between",{"k-info-days":x,hidden:T||L})},s().chunk(w,7).map((function(t,n){return a&&!t[0].isInWeek?null:r.createElement("div",{className:o()("k-days-row flex text-xs text-center justify-between relative"),key:n.toString()},t.map((function(t,i){var s=x?C[i+7*n]:null;return e.props.canDrop&&e.props.useHTMLDrop||f?r.createElement(A,{key:t.date,date:t.date,isDisabled:t.isDisabled,isFocused:t.isFocused&&!a,onClickDay:e.updateSelectedDate,isRightPanelKalendae:f,onDoubleClickDay:e.doubleSelectedDate,className:f?"m-[1px]":"",onArrowTrigger:e.onArrowTrigger,onFocus:e.onItemFocus,webCalendarViewFilter:g,viewType:d},e.renderDayContent(t,s)):r.createElement(p.Z,{key:t.date,date:t.date,isDisabled:t.isDisabled,isFocused:t.isFocused&&!a,onClickDay:e.updateSelectedDate,onDoubleClickDay:e.doubleSelectedDate,className:o()("flex-none"),onArrowTrigger:e.onArrowTrigger,onFocus:e.onItemFocus},e.renderDayContent(t,s))})),e.getKalendaeDayAfterBgColorElement(t))})))))}},{key:"updateSelectedDate",value:function(e){var t=this.state.selectedDate,n=this.props,r=n.dateInstance,i=n.mode,o=n.rangeAt,a=n.onBeforeChange,s=n.onChange,l=n.isRightPanelKalendae;if("range"===i){var c,u;if("begin"===o){c=e;var f=r.getDateMoment(t[1]).diff(r.getDateMoment(t[0]),"day");u=r.getDateMoment(e).add(f,"day").format("YYYY-MM-DD")}else u=e,c=r.getDateMoment(e).isBefore(r.getDateMoment(t[0]),"day")?e:t[0];if(a&&a([c,u]))return;l||this.setState({selectedDate:[c,u]}),s&&s([c,u])}else if("multi"===i){if(a&&a(e))return;if(t.includes(e)){var d=t.filter((function(t){return t!==e}));this.setState({selectedDate:ee(d)})}else this.setState({selectedDate:[].concat(ee(t),[e])});s&&s(e)}else{if(a&&a(e))return;this.setState({selectedDate:e}),s&&s(e)}}},{key:"doubleSelectedDate",value:function(e){var t=this.props,n=t.mode,r=t.onBeforeChange,i=t.onDoubleChange;if("range"!==n){if(r&&r(e))return;i&&i(e)}}},{key:"isPrevDisabled",value:function(){var e=this.state,t=e.selectMode,n=e.currentDate,r=e.navYear,i=e.beforeDatesInvalid,o=this.props,a=o.dateInstance,s=o.direction;if("date"===t){if(parseInt(a.getDateMoment(n).format("YYYYMM"),10)<=191001)return!0;if("future"===s&&a.getDateMoment(n).format("YYYY-MM")===a.getDateMoment().format("YYYY-MM"))return!0;if(i&&a.getDateMoment(n).format("YYYY-MM")===a.getDateMoment(i).format("YYYY-MM"))return!0}else if("month"===t){if(parseInt(r,10)<=V.RW)return!0;if("future"===s&&r-a.getDateMoment().format("YYYY")<=0)return!0;if(i&&r-a.getDateMoment(i).format("YYYY")<=0)return!0}else if("year"===t&&parseInt(r,10)<=V.RW)return!0;return!1}},{key:"toPrevUnit",value:function(){var e=this.props.onPrevUnit,t=this.state,n=t.selectMode,r=t.navYear;if("date"===n)this.toPrevMonth();else if("month"===n)this.toPrevYear();else if("year"===n){var i=Math.max(V.RW,parseInt(r,10)-12);this.setState({navYear:String(i)})}e&&e({selectMode:n})}},{key:"toPrevMonth",value:function(){var e=this.state.currentDate,t=this.props,n=t.dateInstance,r=t.onChangeMonth,i=n.getDateMoment(e).subtract(1,"month").startOf("month").format("YYYY-MM-DD");this.setState({currentDate:i}),r&&r(i)}},{key:"toPrevYear",value:function(){var e=this.state.navYear,t=this.props.dateInstance.getStartOfYear(e).subtract(1,"year");this.setState({navYear:t.format("YYYY"),navSelectedYear:t.format("YYYY")})}},{key:"isNextDisabled",value:function(){var e=this.props,t=e.dateInstance,n=e.direction,r=this.state,i=r.selectMode,o=r.currentDate,a=r.navYear,s=r.afterDatesInvalid;if("date"===i){if(parseInt(t.getDateMoment(o).format("YYYYMM"),10)>=209912)return!0;if("past"===n&&t.getDateMoment(o).format("YYYY-MM")===t.getDateMoment().format("YYYY-MM"))return!0;if(s&&t.getDateMoment(o).format("YYYY-MM")===t.getDateMoment(s).format("YYYY-MM"))return!0}else if("month"===i){if(parseInt(a,10)>=V.oH)return!0;if("past"===n&&a-t.getDateMoment().format("YYYY")>=0)return!0;if(s&&a-t.getDateMoment(s).format("YYYY")>=0)return!0}else if("year"===i&&parseInt(a,10)>=2088)return!0;return!1}},{key:"toNextUnit",value:function(){var e=this.props.onNextUnit,t=this.state,n=t.selectMode,r=t.navYear;if("date"===n)this.toNextMonth();else if("month"===n)this.toNextYear();else if("year"===n){var i=Math.min(2088,parseInt(r,10)+12);this.setState({navYear:String(i)})}e&&e({selectMode:n})}},{key:"toNextMonth",value:function(){var e=this.props,t=e.dateInstance,n=e.onChangeMonth,r=this.state.currentDate,i=t.getDateMoment(r).add(1,"month").startOf("month").format("YYYY-MM-DD");this.setState({currentDate:i}),n&&n(i)}},{key:"toNextYear",value:function(){var e=this.props.dateInstance,t=this.state.navYear,n=e.getStartOfYear(t).add(1,"year");this.setState({navYear:n.format("YYYY"),navSelectedYear:n.format("YYYY")})}},{key:"turnToToday",value:function(){var e=this,t=this.props,n=t.dateInstance,r=t.onChangeSelectMode;this.setState({selectMode:"date",currentDate:n.formatYMD(),navYear:n.formatYYYY()},(function(){var t=e.state.selectMode;"date"!==t&&r&&r(t)}))}},{key:"backToToday",value:function(){var e=this.props,t=e.dateInstance,n=e.onBeforeChange,r=e.onChange,i=e.mode,o=e.rangeAt,a=e.isBackTodayNotChange,s=e.isRightPanelKalendae,l=e.onChangeMonth,c=this.state,u=c.selectMode,f=c.selectedDate;if("month"===u&&this.setState({currentDate:t.formatYMD(),navYear:t.formatYYYY(),navSelectedYear:t.formatYYYY()}),"year"===u){var d=parseInt(t.formatYYYY(),10),h=Math.max(V.RW,Math.min(d-4,2088));this.setState({navYear:String(h),navSelectedYear:t.formatYYYY()})}if("date"===u){var p=t.formatYMD();if("range"===i){var m,g;if("begin"===o){m=p;var v=t.getDateMoment(f[1]).diff(t.getDateMoment(f[0]),"day");g=t.getDateMoment(p).add(v,"day").format("YYYY-MM-DD")}else g=p,m=t.getDateMoment(p).isBefore(t.getDateMoment(f[0]),"day")?p:f[0];if(n&&n([m,g]))return;var y="begin"===o?m:g;if(s?(this.setState({currentDate:y,navYear:t.formatYYYY(y)}),l&&l(y)):this.setState({selectedDate:[m,g],currentDate:y,navYear:t.formatYYYY(y)}),a)return;r&&r([m,g])}else{if(n&&n(p))return;if(this.setState({selectedDate:p,currentDate:p,navYear:t.formatYYYY()}),a)return;r&&r(p)}}}},{key:"switchToMonthMode",value:function(){var e=this,t=this.state.currentDate,n=this.props,r=n.dateInstance,i=n.onChangeSelectMode,o=r.formatYYYY(t);this.setState({selectMode:"month",navYear:o,navSelectedYear:o},(function(){var t=e.state.selectMode;i&&i(t)}))}},{key:"switchToYearMode",value:function(){var e=this,t=this.state.currentDate,n=this.props,r=n.dateInstance,i=n.onChangeSelectMode,o=parseInt(r.formatYYYY(t),10),a=Math.max(V.RW,Math.min(o-4,2088));this.setState({selectMode:"year",navYear:String(a),navSelectedYear:String(o)},(function(){var t=e.state.selectMode;i&&i(t)}))}},{key:"changeYearFromYearView",value:function(e){var t=this,n=this.props.onChangeSelectMode;this.setState({navYear:e,navSelectedYear:e,selectMode:"month"},(function(){var e=t.state.selectMode;n&&n(e)}))}},{key:"clickOnMonth",value:function(){var e=this.props.onClickMonth;e&&e()}},{key:"changeYear",value:function(e){this.setState({navSelectedYear:e})}},{key:"changeMonth",value:function(e){var t=this,n=this.props,r=n.dateInstance,i=n.onChangeSelectMode,o=n.onChangeMonth;this.setState({currentDate:r.formatYMD(e),selectMode:"date"},(function(){var e=t.state.selectMode;i&&i(e)})),o(e)}},{key:"isYearDisabled",value:function(e){var t=this.props,n=t.dateInstance,r=t.direction,i=this.state,o=i.beforeDatesInvalid,a=i.afterDatesInvalid,s=parseInt(e,10);return s<V.RW||s>V.oH||"future"===r&&e<n.getDateMoment().year()||"past"===r&&e>n.getDateMoment().year()||!!(o&&n.getStartOfYear(e).endOf("year")<n.getDateMoment(o))||!!(a&&n.getStartOfYear(e).startOf("year")>n.getDateMoment(a))}},{key:"isMonthDisabeld",value:function(e){var t=this.props,n=t.dateInstance,r=t.direction,i=this.state,o=i.beforeDatesInvalid,a=i.afterDatesInvalid;return!(0,V.Qr)(e)||"future"===r&&n.getDateMoment(e)<n.getStartOfMonth()||"past"===r&&n.getDateMoment(e)>n.getStartOfMonth()||!!(o&&n.getEndOfMonth(e)<n.getDateMoment(o))||!!(a&&n.getStartOfMonth(e)>n.getDateMoment(a))}},{key:"isDateDisabled",value:function(e){var t=this.props,n=t.dateInstance,r=t.direction,i=this.state,o=i.beforeDatesInvalid,a=i.afterDatesInvalid,s=n.getDateMoment(e);return!(0,V.Qr)(s)||"future"===r&&s<n.getStartOfDate()||"past"===r&&s>n.getStartOfDate()||!!(o&&s<n.getDateMoment(o))||!!(a&&s>n.getDateMoment(a))}},{key:"getRepeatDates",value:function(e,t,n,r,i,o,a,s){var l=F.Z.parseMoment(i,fe).toDate();return n?"1"===r?[]:U.pA.occurrenceDatesOfRule(o,l,r,new Set(a),e,t,void 0,0,!1,s).map((function(e){return h()(e).format(fe)})):[]}},{key:"getCurrentDateFromProps",value:function(e){var t,n=e.selected,r=e.dateInstance,i=e.startDate,o=e.currentDate;return t=o||("range"===e.mode&&n instanceof Array?"begin"===e.rangeAt?n[0]:n[1]:"multi"===e.mode?i:n),r.formatYMD(t)}},{key:"isDayInRange",value:function(e){var t=this.props,n=t.dateInstance,r=t.mode,i=this.state.selectedDate;return"range"===r&&n.isDateBetweenRange(e,i[0],i[1])}},{key:"isDaySelected",value:function(e){var t=this.props,n=t.mode,r=t.rangeAt,i=t.isRightPanelKalendae,o=this.state.selectedDate;return!i&&("range"===n?"begin"===r&&e===o[0]||"end"===r&&e===o[1]:"multi"===n?o.includes(e):e===o)}},{key:"handleBeforeDatesInvalid",value:function(e){var t=this.props.dateInstance;if("boolean"===X(e))return!1;var n=t.formatYMD(e);return"Invalid date"!==n&&n}},{key:"handleAfterDatesInvalid",value:function(e){var t=this.props.dateInstance;if("boolean"===X(e))return!1;var n=t.formatYMD(e);return"Invalid date"!==n&&n}}])&&ne(n.prototype,i),a&&ne(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);he.propTypes=ce,he.defaultProps=ue;var pe=(0,z.$j)((function(e){return{alternativeCalendarValue:(0,G.U0)(),lunarEnabled:(0,J.TV)(),showHoliday:e.preference.get("holidayEnabled"),isDarkTheme:(0,J.$o)(),holidayData:e.holidayData,todayString:(0,Q.x2)()}}),null,null,{forwardRef:!0})(he)},ue7t:function(e,t,n){"use strict";var r=n("gq2Z");t.Z=function(e){return(0,r.Z)(e)}},gq2Z:function(e,t,n){"use strict";var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("yhZ0"),s=n("Llsf");t.Z=function(e){var t=e.className,n=e.date,i=e.isDisabled,l=e.isFocused,c=e.onClickDay,u=e.onDoubleClickDay,f=e.children,d=e.onFocus,h=e.onArrowTrigger,p=e.setRef;return r.createElement("span",{className:o()(t),date:n},r.createElement(a.Z,{ref:p,onClick:function(){i||c(n)},onDoubleClick:function(){i||u(n)},className:"kalenade-day-item","data-date":n,tabIndex:l?0:-1,disabled:i,onFocus:function(){return d(n)},onKeyDown:function(e){e.keyCode===s.Z.up_arrow?(e.preventDefault(),e.stopPropagation(),h("up")):e.keyCode===s.Z.down_arrow?(e.preventDefault(),e.stopPropagation(),h("down")):e.keyCode===s.Z.left_arrow?(e.preventDefault(),e.stopPropagation(),h("left")):e.keyCode===s.Z.right_arrow&&(e.preventDefault(),e.stopPropagation(),h("right"))}},f))}},LQHR:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("5EkX"),s=n.n(a);function l(e){var t=e.className;return r.createElement("div",null,r.createElement("ul",{className:o()("css-loading",null!==t&&void 0!==t?t:"relative",s().cssLoading)},r.createElement("li",{className:"inline-block h-[10px] w-[10px] rounded-full"}),r.createElement("li",{className:"inline-block h-[10px] w-[10px] rounded-full"}),r.createElement("li",{className:"inline-block h-[10px] w-[10px] rounded-full"})))}},"4zrk":function(e,t,n){"use strict";n("pNMO"),n("zKZe"),n("tkto");var r=n("q1tI"),i=n("AtZj"),o=n("jxPn"),a=n("EPMa"),s=n.n(a),l=n("RFL7"),c=n.n(l),u=1223==n.j?["withChecker","isDisabledStyle","title","subText","className","menuItemClassName"]:null;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.Z=1223==n.j?function(e){var t=e.withChecker,n=void 0!==t&&t,a=e.isDisabledStyle,l=void 0!==a&&a,h=e.title,p=e.subText,m=e.className,g=e.menuItemClassName,v=d(e,u),y=n?r.createElement(i.Z,{name:"selected",className:s()("w-[16px] h-[16px] flex-none hidden ml-[4px]")}):null;return r.createElement(o.sN,f({},v,{className:s()(g,c().menuItem,l&&c().disabledStyle)}),r.createElement("div",{className:s()("flex flex-col px-[12px] justify-center cursor-pointer min-w-[154px] max-w-[244px]",m,n&&c().checker),style:{height:54}},r.createElement("div",{className:s()("relative clear-both flex items-center justify-between truncate text-[13px] leading-[18px] text-grey",c().title)},h,y),r.createElement("div",{className:"truncate text-grey-40 text-[12px] leading-[16px] mt-[4px]"},p)))}:null},UDbp:function(e,t,n){"use strict";n.d(t,{iz:function(){return S},sN:function(){return _},gO:function(){return N},Wd:function(){return f},DK:function(){return O},ZP:function(){return I}});var r=n("jxPn"),i=(n("pNMO"),n("zKZe"),n("tkto"),n("sMBO"),n("q1tI")),o=n("EPMa"),a=n.n(o),s=n("AtZj"),l=["title","icon","isActive","isHideDirect"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=function(e){var t=e.title,n=e.icon,o=e.isActive,f=e.isHideDirect,d=u(e,l),h=(0,i.useMemo)((function(){if("string"===typeof t){return i.createElement("div",{className:a()("submenu-title flex items-center overflow-hidden",{"dropdown-menu-menu-item-selected":o})},n?n.isEmoji?i.createElement("span",{className:"icons flex-none"},i.createElement("span",{className:"emoji inline-block w-[18px] text-[15px] align-bottom text-center mr-[6px]"},n.name)):i.createElement(s.Z,{name:n.name,className:n.className}):null,f?null:i.createElement(s.Z,{name:"chevron-right",className:"direct i-3 text-grey-40 notUseGlobalCss"}),i.createElement("span",{className:a()("truncate"),style:{paddingRight:f?void 0:12}},t))}return t}),[n,o,f,t]);return i.createElement(r.Wd,c({},d,{title:h}))};n("4Brf"),n("0oug"),n("gXIK"),n("4mDm"),n("7+zs"),n("qePV"),n("NBAS"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ"),n("ExoC");function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var h=["multi","children","isRightPanel"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function m(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function b(e,t,n){return t=w(t),function(e,t){if(t&&("object"===d(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}var x=function(e){function t(){return g(this,t),b(this,t,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.multi,n=e.children,o=e.isRightPanel,l=void 0!==o&&o,c=m(e,h),u=!l&&t&&i.createElement(s.Z,{name:"selected",className:a()("check-icon","i-3 w-[18px] h-[18px] absolute right-[12px] top-1/2 transform -translate-y-1/2")});return i.createElement(r.sN,p({},c,{className:a()(c.className||"")}),n,u)}}])&&v(n.prototype,o),l&&v(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,l}(i.PureComponent),_=x,S=function(e){var t=e.className,n=e.children,r=e.style;return i.createElement("div",{className:a()("divider bg-grey-5 h-[1px]",t),style:r},n)},E=n("V/jI");var O=function(e){var t=e.className,n=e.id;return i.createElement("div",{className:a()("subtitle",t)},i.createElement("span",{className:t},E.U2(n)))},T=n("RFL7"),L=n.n(T),P=n("AVQR"),M=["withChecker","withDisabledConnect","isDisabledStyle","prefixIcon","title","emoji","className","prefixIconClassName","titleRef","menuItemClassName","titleElement","extraStyle","checkerSize"];function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}function j(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var N=function(e){var t=e.withChecker,n=void 0!==t&&t,o=e.withDisabledConnect,l=void 0!==o&&o,c=e.isDisabledStyle,u=void 0!==c&&c,f=e.prefixIcon,d=e.title,h=e.emoji,p=e.className,m=e.prefixIconClassName,g=e.titleRef,v=e.menuItemClassName,y=e.titleElement,b=e.extraStyle,k=e.checkerSize,w=j(e,M),C=n?i.createElement(s.Z,{name:"selected",className:a()("w-[16px] h-[16px] flex-none hidden ml-[4px]"),style:k?{width:k,height:k}:{}}):l?i.createElement(s.Z,{name:"disabled-connect",className:a()("w-[16px] h-[16px] flex-none hidden ml-[4px]")}):null,x=(0,i.useMemo)((function(){return f?"string"===typeof f?i.createElement(s.Z,{name:f,className:a()("w-[18px] h-[18px] mr-[8px] inline-block flex-none",m)}):f:h?i.createElement(P.Z,{emoji:h,size:16,className:"emoji w-[16px] h-[16px] text-[16px] leading-[16px] relative mr-[8px] flex-none"}):null}),[h,f,m]);return i.createElement(r.sN,D({},w,{className:a()(v,L().menuItem,u&&L().disabledStyle)}),i.createElement("div",{className:a()("relative h-[34px] px-[12px] leading-[34px] clear-both flex min-w-[154px] max-w-[244px] cursor-pointer items-center justify-between truncate text-[13px] text-grey",(n||l)&&L().checker,p),ref:g,style:b},x,y||i.createElement("span",{className:"flex-auto truncate"},d),C))},I=r.ZP},xMFI:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("schq"),o=n("r+c2"),a=n("Llsf"),s=n("dUqS");function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.Z=(0,i.ZP)((function(e){var t=e.intl,n=e.value,i=e.warningText,c=e.onValueChange,u=e.onEnterDown,f=e.onFocus,d=e.enableClear,h=void 0!==d&&d,p=e.maxLength,m=l((0,r.useState)(!1),2),g=m[0],v=m[1],y=(0,r.useRef)(null);(0,r.useEffect)((function(){setTimeout((function(){y.current&&$(y.current).focus().select()}))}),[]);var b=(0,r.useCallback)((function(e){var t=e.target.value;c(t),v(!!t)}),[c,v]),k=(0,r.useCallback)((function(e){e.keyCode===a.Z.enter&&u()}),[u]),w=(0,r.useCallback)((function(e){f()}),[f]),C=(0,r.useCallback)((function(){c(""),v(!1)}),[c,v]);return r.createElement("div",{className:"warning-input"},r.createElement("div",{className:"input-wrap relative"},r.createElement("input",{className:"input-lrg h-[36px] w-full pl-[12px] px-[26px] rounded-[4px] text-[14px] border border-solid border-grey-20 focus:border-primary dark:bg-[transparent]",type:"text",placeholder:t.formatMessage({id:"name"}),value:n,onChange:b,onKeyDown:k,onFocus:w,ref:y,maxLength:p}),h&&g&&r.createElement("div",{className:"clear w-[12px] h-[12px] absolute top-1/2 flex items-center rounded-full right-[12px] transform -translate-y-1/2 cursor-pointer",onClick:C},r.createElement(s.Z,{className:"close",name:"close",opacity:40}))),r.createElement(o.Z,{className:"text-alert text-sml text-warn-red text-[13px]",text:i}))}))},Ph81:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("pjDv"),n("4mDm"),n("+2oP"),n("7+zs"),n("sMBO"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("AxaE"),i=n("DRqq"),o=n("OJYT"),a=n("q1tI"),s=n("y8mg"),l=n.n(s),c=n("Ag2S"),u=(n("NBAS"),n("ExoC"),n("SuFq"),n("i8i4")),f=n("3KU8"),d=n.n(f);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function g(e,t,n){return t=y(t),function(e,t){if(t&&("object"===h(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function k(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}var w,C,x,_=function(e){function t(){return p(this,t),g(this,t,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?u.createPortal(this.props.children,this._container):null}}])&&m(n.prototype,r),i&&m(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(a.Component);w=_,C="propTypes",x={getContainer:d().func.isRequired,children:d().node.isRequired,didUpdate:d().func},(C=k(C))in w?Object.defineProperty(w,C,{value:x,enumerable:!0,configurable:!0,writable:!0}):w[C]=x;var S=n("mLa8"),E=n("EPMa"),O=n.n(E),T=n("yhZ0"),L=n("AqaH"),P=n("Llsf"),M=n("aALo"),D=n("V/jI"),j=n("4+DD"),N=n("eDHg");function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function R(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==I(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var U=a.forwardRef((function(e,t){var n=e.className,s=void 0===n?"":n,u=e.visible,f=void 0!==u&&u,d=e.loading,h=void 0!==d&&d,p=e.disabled,m=void 0!==p&&p,g=e.keyboard,v=void 0===g||g,y=e.closable,b=void 0===y||y,k=e.maskClosable,w=void 0===k||k,C=e.loadingText,x=void 0===C?"":C,E=e.noFooter,I=void 0!==E&&E,R=e.bodyClassName,B=void 0===R?"":R,F=e.footerClassName,U=void 0===F?"":F,K=e.titleClassName,Y=void 0===K?"":K,W=e.isAbleShowCancelButton,H=void 0===W||W,z=e.onCancel,q=e.onClose,V=e.getContainer,$=e.onOk,J=e.onContextMenuPopCover,G=e.extraFooterElement,Q=e.title,X=void 0===Q?"":Q,ee=e.id,te=void 0===ee?"":ee,ne=e.coverClassName,re=void 0===ne?"":ne,ie=e.header,oe=e.footer,ae=e.noHeader,se=void 0!==ae&&ae,le=e.okText,ce=void 0===le?"":le,ue=e.cancelText,fe=void 0===ue?"":ue,de=e.height,he=void 0===de?"":de,pe=e.canEnterConfirm,me=void 0!==pe&&pe,ge=e.maskClassName,ve=void 0===ge?"":ge,ye=e.confirmButtonClassName,be=void 0===ye?"":ye,ke=e.cancelButtonClassName,we=void 0===ke?"":ke,Ce=e.outerElement,xe=e.swapBtn,_e=void 0!==xe&&xe,Se=e.confirmEscCallbackResult,Ee=void 0!==Se&&Se,Oe=e.popupStyle,Te=e.titleStyle,Le=e.bodyStyle,Pe=e.children,Me=(0,r.Z)((function(){return l().uniqueId()}),[]),De=(0,a.useRef)(0),je=(0,a.useCallback)((function(e){e.focus()}),[]),Ne=Z((0,N.zu)(je),2),Ie=Ne[0],Re=Ne[1],Ae=(0,i.Z)((function(e){return q?q(e):!!z&&z(e)}));(0,a.useEffect)((function(){f?((0,j.P$)(),De.current=Date.now(),c.jc.subscribe(Me,"modal",(function(){return!!b&&Ae()}),Ee?{confirmCallbackResult:!0}:void 0)):c.jc.unSubscribe(Me)}),[b,Ee,Me,Ae,f]),(0,o.Z)((function(){c.jc.unSubscribe(Me)}));var Be=(0,i.Z)((function(){if(V)return V();var e=document.createElement("div");return document.body.appendChild(e),e})),Ze=(0,a.useMemo)((function(){var e=fe||(0,D.U2)("close");return H?a.createElement(M.Z,{onClick:z,type:"cancel",className:we},e):null}),[we,fe,H,z]),Fe=(0,a.useMemo)((function(){var e=ce||(0,D.U2)("confirm");return a.createElement(M.Z,{type:"primary",onClick:$,loading:h,loadingText:x||e+"...",disabled:m,className:be},e)}),[be,m,h,x,ce,$]),Ue=(0,a.useMemo)((function(){return a.createElement(a.Fragment,null,G,_e?a.createElement(a.Fragment,null,Fe,Ze):a.createElement(a.Fragment,null,Ze,Fe))}),[Ze,Fe,G,_e]);return(0,a.useImperativeHandle)(t,(function(){return{getPopupRef:function(){return Ie}}})),f?a.createElement(_,{getContainer:Be},a.createElement(S.ZP,null,a.createElement("div",{className:"popup-cover ".concat(re),onKeyDown:function(e){if(v){if((e.metaKey||e.ctrlKey||Ie.current===e.target)&&e.keyCode===P.Z.enter)return null===$||void 0===$||$(e),e.stopPropagation(),void e.preventDefault();me&&"keyboard"!==window.userInputType&&e.keyCode===P.Z.enter&&(null===$||void 0===$||$(e),e.stopPropagation())}},onContextMenu:J,onClick:function(e){e.stopPropagation()}},a.createElement("div",{className:O()("absolute z-0 inset-0",ve),onClick:function(e){e.stopPropagation(),w&&(Date.now()-De.current<300||e.target===e.currentTarget&&Ae(e))}}),a.createElement("div",{ref:Re,className:O()("popup fast-transition ".concat(s," z-[1] !outline-none")),id:te,style:A(A({},Oe),{},{height:he}),tabIndex:-1},se?null:a.createElement("div",{className:"popup-header",style:Te},X&&a.createElement("h1",{className:O()("popup-title primary-text text-def",Y)},X),ie,b&&a.createElement(T.Z,{componentProps:{tagName:"a"},className:"popup-close close",onClick:Ae},a.createElement(L.Z,{name:"close",className:"text-grey-40 dark:text-grey-60"}))),a.createElement("div",{className:O()("popup-body",B),style:Le},Pe),I?null:a.createElement("div",{className:O()("popup-footer",U)},null==oe?Ue:oe)),Ce))):null}));U.displayName="LegacyModal";var K=U},qeKn:function(e,t,n){"use strict";var r=n("q1tI");if(1223==n.j)var i=n("XoE2");var o=n("aALo");t.Z=1223==n.j?function(e){var t=e.title,n=e.onOK,a=e.onCancel,s=e.okText,l=e.cancelText,c=e.isPortal,u=void 0!==c&&c,f=r.createElement("div",{className:"mask h-full w-full fixed top-0 z-[1050] flex items-center justify-center"},r.createElement("div",{className:"w-[260px] bg-main-background shadow-modal rounded-default kanban-click-ignore"},r.createElement("h1",{className:"text-[13px] p-[20px] leading-[19px]"},t),r.createElement("div",{className:"h-[54px] flex items-center justify-end pr-[20px] pb-[12px]"},l&&r.createElement(o.Z,{className:"mr-[12px] !min-w-[100px] !h-[30px]",onClick:a,type:"cancel"},l),s&&r.createElement(o.Z,{className:"!min-w-[100px] !h-[30px]",type:"primary",onClick:n},s))));return u?r.createElement(i.Z,null,f):f}:null},"r+c2":function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("4mDm"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("5OdG"),o=n("EPMa"),a=n.n(o);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){var t=e.text,n=e.className;return r.createElement(i.y_,{style:{h:(0,i.ST)(t?19:0,c(c({},i.um.stiff),{},{precision:19}))}},(function(e){var i=e.h;return r.createElement("p",{className:a()("warn",n),style:{height:i+"px"}},t)}))}},zo8X:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("bjJs"),o=n("PMrR");function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.Z=function(e){var t=e.children,n=e.afterDatesInvalid,s=e.confirmCompletedTime,l=e.defaultCompletedTime,c=e.containerMenuRef,u=e.onHide,f=e.onAfterShow,d=a((0,r.useState)(!1),2),h=d[0],p=d[1],m=r.createElement("div",null,r.createElement("div",{tabIndex:0,onKeyDown:function(e){"Escape"!==e.key&&e.stopPropagation(),"ArrowLeft"===e.key&&h&&(p(!1),setTimeout((function(){c&&c.current&&c.current.focus()})))}},r.createElement(o.Z,{afterDatesInvalid:n,selected:l,onChange:s,extraClassName:"z-[2000]",kClassName:"w-[196px]",size:"tiny",isBackTodayNotChange:!0})));return r.createElement(i.Z,{menu:m,menuClassName:"w-[220px] valid-task-menu-click-area",onVisibleChange:function(e){p(e),e||null===u||void 0===u||u()},menuStyle:{padding:11,borderRadius:8},placement:"rightTop",action:["hover"],visible:h,mouseEnterDelay:.1,align:{offset:[8,0]},onShow:function(e){return null===f||void 0===f?void 0:f(e)}},t)}},"3AO3":function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("4mDm"),n("oVuX"),n("2B1R"),n("ToJy"),n("7+zs"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("PuJ2"),o=n("xS9v"),a=n("EPMa"),s=n.n(a),l=n("AtZj"),c=n("yhZ0");function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"===u(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}var y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),g(n=d(this,t,[e]),"rootRef",void 0),n.state={selectedKeys:e.selectedKeys},n.onConfirm=n.onConfirm.bind(n),n.onCancel=n.onCancel.bind(n),n.onSelectChange=n.onSelectChange.bind(n),n.onVisibleChange=n.onVisibleChange.bind(n),n.reSetState=n.reSetState.bind(n),n.rootRef=r.createRef(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(a=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({selectedKeys:e.selectedKeys})}},{key:"onConfirm",value:function(e){var t=e.selectedKeys,n=this.props,r=n.map,i=n.onConfirm,a=o.d9(t).filter(Boolean).sort((function(e,t){return r[e].index-r[t].index}));this.setState({selectedKeys:a}),i&&i()}},{key:"onCancel",value:function(e){var t=e.selectedKeys,n=this.props,r=n.map,i=n.onCancel,a=o.d9(t).filter(Boolean).sort((function(e,t){return r[e].index-r[t].index}));this.setState({selectedKeys:a}),i&&i(t)}},{key:"onSelectChange",value:function(e){var t=e.selectedKeys,n=this.props,r=n.onBeforeSelect,i=n.onSelectChange;r&&r(t)||(this.setState({selectedKeys:t}),i&&i(t))}},{key:"onVisibleChange",value:function(e){var t=this.props.onVisibleChange;t&&t(e)}},{key:"getTitle",value:function(){var e=this.state.selectedKeys,t=this.props,n=t.map,r=t.defaultTitle;return e.length&&"none"!==e[0]?e.map((function(e){var t;return null===(t=n[e])||void 0===t?void 0:t.value})).join(", "):r}},{key:"fixSelecedKeysByParent",value:function(e){this.setState({selectedKeys:e})}},{key:"reSetState",value:function(e){this.setState({selectedKeys:e})}},{key:"hideMenu",value:function(){this.rootRef.current.hideMenu()}},{key:"resetDefaultSelectKeys",value:function(e){this.rootRef.current&&this.rootRef.current.resetDefaultSelectKeys(e)}},{key:"render",value:function(){var e=this.props,t=e.menu,n=e.className,o=e.placement,a=e.onShow,u=e.onHide,f=e.showArrow,d=e.exClassName,h=e.menuClassName,p=e.onMenuVisibleChange,m=e.renderChildren,g=e.menuListClassName,v=e.align,y=e.ExtraFooterComponent,b=e.menuUlClassName,k=this.state.selectedKeys,w=this.getTitle();return r.createElement(i.Z,{ref:this.rootRef,selectMenu:t,className:n,placement:o,onShow:a,onHide:u,onConfirm:this.onConfirm,onCancel:this.onCancel,selectedKeys:k,onSelectChange:this.onSelectChange,onVisibleChange:this.onVisibleChange,menuListClassName:s()("overflow-hidden",g),menuUlClassName:b,controlClassName:"relative bottom-0 w-full px-[16px] py-[12px]",onMenuVisibleChange:p,align:v,ExtraFooterComponent:y},r.createElement("div",{className:s()("multi-select-toggle select-menu relative",h)},m?m(w,k):r.createElement(r.Fragment,null,r.createElement(c.Z,{className:s()("select-title w-full max-w-full truncate rounded-select-trigger cursor-pointer",f?"pl-[12px] pr-[26px]":"px-[16px]",d)},w),f&&r.createElement(l.Z,{name:"thin-triangle-down",className:"select-arrow text-grey-40 cursor-pointer w-[18px] h-[18px] absolute right-[8px] top-1/2 transform -translate-y-1/2"}))))}}])&&f(n.prototype,a),u&&f(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(r.Component);g(y,"defaultProps",{selectedKeys:[],onConfirm:function(){},menu:{},onShow:function(){},showArrow:!0,ExtraFooterComponent:null}),t.Z=y},E0WJ:function(e,t,n){"use strict";n("2B1R"),n("sMBO");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("yhZ0");t.Z=function(e){var t=e.tabList,n=e.activeKey,i=e.onActiveKeyChange,s=e.size,l=void 0===s?"middle":s,c=e.type,u=void 0===c?"between":c,f=e.containerClassName,d=e.style,h="";switch(l){case"middle":h="h-[30px] px-[16px] leading-[30px] text-[14px]";break;case"tiny":h="h-[24px] px-[12px] leading-[24px] text-[12px]"}return r.createElement("div",{className:o()("flex flex-row items-center","between"===u?"justify-between":"justify-center",f)},t.map((function(e){var t=n===e.key;return r.createElement(a.Z,{className:o()(h,"ml-[8px] first:ml-0 cursor-pointer flex items-center justify-center whitespace-nowrap rounded-full",t?"bg-menu-primary-10 text-menu-primary":"bg-grey-5 text-grey-40 hover:text-menu-primary"),onClick:function(t){i(e.key)},key:e.key,style:d},e.name)})))}},HIl9:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("x0AG"),n("pjDv"),n("4mDm"),n("2B1R"),n("E9XD"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("yhZ0");function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.Z=function(e){var t=e.tabList,n=e.activeKey,i=e.onActiveKeyChange,l=t.findIndex((function(e){return n===e.key})),c=s((0,r.useState)([]),2),u=c[0],f=c[1],d=s((0,r.useState)(0),2),h=d[0],p=d[1],m=s((0,r.useState)(0),2),g=m[0],v=m[1],y=s((0,r.useState)(!1),2),b=y[0],k=y[1],w=(0,r.useRef)([]),C=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(0!==w.current.length){var e=w.current.map((function(e){return e?e.getBoundingClientRect().width:0}));f(e)}}),[t]),(0,r.useEffect)((function(){if(0!==u.length&&C.current){var e=C.current.getBoundingClientRect().width,t=(u[l]||0)/e*100,n=u.slice(0,l).reduce((function(e,t){return e+t}),0)/e*100;p(t),v(n)}}),[u,l]),(0,r.useEffect)((function(){if(u.length>0&&!b){var e=setTimeout((function(){k(!0)}),0);return function(){return clearTimeout(e)}}}),[u,b]),r.createElement("div",{className:"flex justify-center"},r.createElement("div",{ref:C,className:o()("inline-flex flex-row flex-none items-center bg-grey-5 relative rounded-full h-[36px]")},r.createElement("div",{className:"absolute inset-0",style:{transform:"translate(".concat(g,"%, 0)"),transition:b?"transform 0.3s ease":"none",willChange:"transform"}},r.createElement("div",{style:{width:"".concat(h,"%"),padding:2},className:"h-full"},r.createElement("div",{className:"h-full rounded-full bg-main-background dark:bg-grey-6"}))),t.map((function(e,t){return r.createElement(a.Z,{ref:function(e){w.current[t]=e},className:o()("h-full cursor-pointer flex items-center justify-center whitespace-nowrap z-[1]",{"text-grey-60":n!==e.key},"py-[6px] px-[20px] text-s font-medium"),onClick:function(){i(e.key)},key:e.key},e.name)}))))}},eiyi:function(e,t,n){"use strict";n.d(t,{Z:function(){return te}});n("TeQF"),n("yq1k"),n("4mDm"),n("2B1R"),n("Junv"),n("ToJy"),n("Tskq"),n("07d7"),n("rB9j"),n("JTJg"),n("PKPk"),n("UxlC"),n("FZtP"),n("3bBZ");var r,i=n("q1tI"),o=(n("oVuX"),n("ALS0"),n("EnZy"),{note:"\u7b14\u8bb0",task:"\u4efb\u52a1",unknown_item:"\u672a\u77e5\u9879",expand:"\u5c55\u5f00",collapse:"\u6536\u8d77",activity_empty:"\u6682\u65f6\u6ca1\u6709\u52a8\u6001",activity_empty_desc:"\u5728\u8fd9\u91cc\u67e5\u770b\u6e05\u5355\u91cc\u7684\u64cd\u4f5c\u8bb0\u5f55",activities:"\u52a8\u6001",project_activity:"\u6e05\u5355\u52a8\u6001",owner:"\u6240\u6709\u8005",task_activity:"\u4efb\u52a1\u52a8\u6001",activity_created_task:"\u521b\u5efa\u4e86\u4efb\u52a1",activity_saved_task:"\u4fdd\u5b58\u4e86\u4efb\u52a1",activity_completed_task:"\u5b8c\u6210\u4e86\u4efb\u52a1",activity_deleted_task:"\u5220\u9664\u4e86\u4efb\u52a1",activity_undone_task:"\u53d6\u6d88\u5b8c\u6210\u4e86\u4efb\u52a1",activity_changed_task_duedate:"\u4fee\u6539\u4e86\u65f6\u95f4",activity_task_duedate:"\u4efb\u52a1\u65f6\u95f4 %s1 \u2192 %s2",activity_task_duedate_clear:"\u4efb\u52a1\u65f6\u95f4\u5df2\u6e05\u9664",activity_task_add_file:"\u6dfb\u52a0\u4e86\u9644\u4ef6",activity_task_del_file:"\u5220\u9664\u4e86\u9644\u4ef6",activity_assigned_task:"\u6307\u6d3e\u4efb\u52a1\u7ed9 <strong>%s1</strong>",activity_canceled_assignment:"\u53d6\u6d88\u4e86\u6307\u6d3e",activity_edited_task_title:"\u4fee\u6539\u4e86\u4efb\u52a1\u6807\u9898",activity_edited_task_content:"\u4fee\u6539\u4e86\u4efb\u52a1\u5185\u5bb9",activity_undeleted_task:"\u8fd8\u539f\u4e86\u4efb\u52a1",activity_created_list:"\u521b\u5efa\u4e86\u6e05\u5355",activity_edited_list_title:"\u4fee\u6539\u4e86\u6e05\u5355\u6807\u9898",activity_deleted_list:"\u5220\u9664\u4e86\u6e05\u5355",activity_joined_list:"\u52a0\u5165\u4e86\u6e05\u5355",activity_quitted_list:"\u9000\u51fa\u4e86\u6e05\u5355",activity_archived_list:"\u5f52\u6863\u4e86\u5171\u4eab\u6e05\u5355",activity_unarchived_list:"\u53d6\u6d88\u5f52\u6863\u4e86\u5171\u4eab\u6e05\u5355",activity_moved_task_in:"\u79fb\u5165\u4e86\u4efb\u52a1",activity_moved_task_out:"\u79fb\u51fa\u4e86\u4efb\u52a1",activity_moved_item_in:"\u79fb\u5165\u4e86%s",activity_moved_item_out:"\u79fb\u51fa\u4e86%s",activity_created_item:"\u521b\u5efa\u4e86%s",activity_deleted_item:"\u5220\u9664\u4e86%s",activity_undeleted_item:"\u8fd8\u539f\u4e86%s",activity_changed_task_progress:"\u4fee\u6539\u4efb\u52a1\u8fdb\u5ea6\u4e3a %s1",activity_switch_task_kind_to_checklist:"\u5207\u6362\u4efb\u52a1\u5230\u5b50\u4efb\u52a1\u6a21\u5f0f",activity_switch_task_kind_to_text:"\u5207\u6362\u4efb\u52a1\u5230\u6587\u672c\u6a21\u5f0f",activity_create_subtask:"\u521b\u5efa\u4e86\u5b50\u4efb\u52a1",activity_delete_subtask:"\u5220\u9664\u4e86\u5b50\u4efb\u52a1",activity_done_subtask:"\u5b8c\u6210\u4e86\u5b50\u4efb\u52a1",activity_undone_subtask:"\u53d6\u6d88\u5b8c\u6210\u4e86\u5b50\u4efb\u52a1",activity_change_subtask_reminder:"\u4fee\u6539\u4e86\u5b50\u4efb\u52a1\u63d0\u9192",activity_change_subtask_content:"\u4fee\u6539\u4e86\u5b50\u4efb\u52a1\u5185\u5bb9",activity_subtask_no_reminder:"\u65e0\u63d0\u9192",closed_project_list:"\u5df2\u5173\u95ed\u7684\u6e05\u5355",unknow_task:"\u672a\u77e5\u4efb\u52a1",what_is_unknow_task:"\u4ec0\u4e48\u662f\u672a\u77e5\u9879\uff1f\u5f53\u67d0\u6761\u4efb\u52a1/\u7b14\u8bb0\u5728\u5783\u573e\u6876\u4e2d\u88ab\u5f7b\u5e95\u5220\u9664\u540e\uff0c\u8fd9\u6761\u4efb\u52a1\u7684\u6240\u6709\u76f8\u5173\u52a8\u6001\u90fd\u4f1a\u663e\u793a\u4e3a\u672a\u77e5\u9879\u3002",notitle_task:"\u65e0\u6807\u9898\u4efb\u52a1",activity_repeated_task:"\u5b8c\u6210\u4e86\u4e0a\u4e2a\u91cd\u590d\u5468\u671f",activity_repeated_task_next:"\u91cd\u590d\u5468\u671f %s1 \u2192 %s2",activity_repeated_task_end:"\u91cd\u590d\u5468\u671f\u5df2\u7ed3\u675f",activity_cancel_task:"\u5c06\u4efb\u52a1\u6807\u8bb0\u4e3a\u201c\u5df2\u653e\u5f03\u201d",activity_reopen_task:"\u91cd\u65b0\u5f00\u59cb\u8fd9\u4e2a\u4efb\u52a1",activity_repeated_cancel_task:"\u653e\u5f03\u4e86\u4e0a\u4e2a\u91cd\u590d\u5468\u671f",activity_created_section:"\u521b\u5efa\u4e86\u5206\u7ec4",activity_deleted_section:"\u5220\u9664\u4e86\u5206\u7ec4",activity_edited_section_title:"\u4fee\u6539\u4e86\u5206\u7ec4\u6807\u9898",activity_moved_section_out:"\u79fb\u51fa\u4e86\u5206\u7ec4",activity_moved_section_in:"\u79fb\u5165\u4e86\u5206\u7ec4",no_title:"\u65e0\u6807\u9898",show_more_tasks:"\u67e5\u770b\u66f4\u591a",just_now:"\u521a\u521a",today:"\u4eca\u5929",tomorrow:"\u660e\u5929",yesterday:"\u6628\u5929",next:"\u4e0b",weekday:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d",weekday_short:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d",month_short:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708",months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708",_relativeTime:{past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6"}}),a={note:"note",task:"task",unknown_item:"unknown item",expand:"Expand",collapse:"Collapse",activity_empty:"No Activities.",activity_empty_desc:"You can track the activities in this list.",activities:"Activities",project_activity:"List Activities",owner:"Owner",task_activity:"Task Activities",activity_saved_task:"saved the task",activity_completed_task:"completed the task",activity_undone_task:"undone the task",activity_changed_task_duedate:"changed the time ",activity_task_duedate:"The time is %s1 \u2192 %s2",activity_task_duedate_clear:"The time has been removed.",activity_task_add_file:"added a attachment",activity_task_del_file:"deleted a attachment",activity_assigned_task:"assigned to <strong>%s1</strong>",activity_canceled_assignment:"canceled an assignment",activity_edited_task_title:"edited the title ",activity_edited_task_content:"edited the content ",activity_created_list:"created the list",activity_edited_list_title:"edited the list title",activity_deleted_list:"deleted the list",activity_joined_list:"joined the shared list",activity_quitted_list:"quitted the shared list",activity_archived_list:"archived list",activity_unarchived_list:"unarchive list",activity_moved_item_in:"moved in the %s",activity_moved_item_out:"moved out the %s",activity_created_item:"created the %s",activity_deleted_item:"deleted the %s",activity_undeleted_item:"restored the %s",activity_changed_task_progress:"changed the progress to %s1",activity_switch_task_kind_to_checklist:"switched the task to subtask mode",activity_switch_task_kind_to_text:"switched the task to text mode",activity_create_subtask:"created a subtask",activity_delete_subtask:"deleted a subtask",activity_done_subtask:"completed a subtask",activity_undone_subtask:"marked a subtask as undone",activity_change_subtask_reminder:"changed the reminder for subtask",activity_change_subtask_content:"edited the content of subtask",activity_subtask_no_reminder:"No Reminder",activity_cancel_task:'marked the task as "won\'t do"',activity_reopen_task:"reopened the task",activity_repeated_cancel_task:'marked the previous recurring cycle as "won\'t do"',activity_created_section:"created the section",activity_deleted_section:"deleted the section",activity_edited_section_title:"edited the section title",activity_moved_section_out:"moved out the section",activity_moved_section_in:"moved in the section",closed_project_list:"Closed Lists",unknow_task:"Unknown task",what_is_unknow_task:'What is unknown item? A task or a note will be shown as "Unknown item" when being deleted completely in Trash.',notitle_task:"Notitle task",activity_repeated_task:"completed the previous recurring cycle",activity_repeated_task_next:"repeat cycle %s1 \u2192 %s2",activity_repeated_task_end:"The repeat cycles has been finished.",no_title:"No Title",show_more_tasks:"View more",just_now:"just now",today:"Today",tomorrow:"Tomorrow",yesterday:"Yesterday",next:"Next",weekday:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday",weekday_short:"Su_Mo_Tu_We_Th_Fr_Sa",month_short:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec",months:"January_February_March_April_May_June_July_August_September_October_November_December",_relativeTime:{past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours"}},s="en",l=!1,c=function(){return/^(zh|ko|ja|tw)/i.test(s)},u=function(){return/^(ko)/i.test(s)},f=function(e,t){var n=l?o[e]:a[e];if(n)for(var r in t)n=n.split("%"+r).join(t[r]);return n},d=(n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("7+zs"),n("sMBO"),n("qePV"),n("SYor"),n("yyme"),n("EPMa")),h=n.n(d);(r=n("Ptmt")).keys().forEach(r);var p=function(e){var t=e.style||{fill:e.fill||"",marginTop:e.marginTop||""};return i.createElement("svg",{className:h()("icon-".concat(e.name),e.className),style:t},i.createElement("use",{xlinkHref:"#".concat(e.name)}))},m=i.createContext({username:"",preference:{showMeridiem:!1,language:"en"}}),g=(n("ma9I"),n("5DmW"),n("NBAS"),n("ExoC"),n("SuFq"),n("XUE8"),n("P26T"));function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function y(e,t,n){return t=C(t),function(e,t){if(t&&("object"===v(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],C(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function k(){return k="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=w(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},k.apply(this,arguments)}function w(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function O(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}var P=function(e){return e.P_CREATE="P_CREATE",e.P_TITLE="P_TITLE",e.P_DELETE="P_DELETE",e.P_SHARE_JOIN="P_SHARE_JOIN",e.P_SHARE_DELETE="P_SHARE_DELETE",e.P_OPEN="P_OPEN",e.P_CLOSE="P_CLOSE",e.P_IN="P_IN",e.P_OUT="P_OUT",e.T_CREATE="T_CREATE",e.T_DELETE="T_DELETE",e.T_DONE="T_DONE",e.T_UNDONE="T_UNDONE",e.T_TRASH_BACK="T_TRASH_BACK",e.T_REPEAT="T_REPEAT",e.T_CANCEL="T_CANCEL",e.T_REOPEN="T_REOPEN",e.T_REPEAT_CANCEL="T_REPEAT_CANCEL",e.P_ADD_COLUMN="P_ADD_COLUMN",e.P_DEL_COLUMN="P_DEL_COLUMN",e.P_COLUMN_TITLE="P_COLUMN_TITLE",e.P_COLUMN_OUT="P_COLUMN_OUT",e.P_COLUMN_IN="P_COLUMN_IN",e}({}),M={isMyself:!0},D=function(e){switch(e){case"NOTE":return f("note");case"TASK":return f("task");default:return""}},j=function(){return O((function e(t,n){var r=this;S(this,e),T(this,"id",""),T(this,"iconName",""),T(this,"actionText",""),T(this,"action",P.P_CREATE),T(this,"when",new Date),T(this,"whoProfile",M),T(this,"userInfo",{username:"",preference:{showMeridiem:!1,language:"en"}}),T(this,"getDisplayName",(function(e){return e?e.isMyself?r.userInfo.username:e.name||e.username||"":""})),this.iconName=t,this.actionText=n}),[{key:"fromJson",value:function(e){var t,n=e.id,r=e.action,i=e.when,o=e.whoProfile;this.id=n,this.action=null!==r&&void 0!==r?r:this.action,this.when=null!==(t=g.Z.parseUTCString(i))&&void 0!==t?t:this.when,this.whoProfile=null!==o&&void 0!==o?o:this.whoProfile}},{key:"setUserInfo",value:function(e){this.userInfo=e}},{key:"getIconName",value:function(){return this.iconName}},{key:"getActionText",value:function(){return f(this.actionText)}},{key:"getCreator",value:function(){return this.getDisplayName(this.whoProfile)}},{key:"getRecordTime",value:function(){return this.when}},{key:"getDetail",value:function(){return""}}])}(),N=function(e){function t(){var e;S(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T(e=y(this,t,[].concat(r)),"name",""),e}return x(t,e),O(t,[{key:"fromJson",value:function(e){k(C(t.prototype),"fromJson",this).call(this,e);var n=e.name;this.name=null!==n&&void 0!==n?n:this.name}}])}(j),I=function(e){function t(){return S(this,t),y(this,t,arguments)}return x(t,e),O(t)}(N),R=function(e){function t(){var e;S(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T(e=y(this,t,[].concat(r)),"name",""),e}return x(t,e),O(t,[{key:"fromJson",value:function(e){k(C(t.prototype),"fromJson",this).call(this,e);var n=e.name,r=e.joinUserProfile;this.name=null!==n&&void 0!==n?n:this.name,this.whoProfile=null!==r&&void 0!==r?r:this.whoProfile}}])}(j),A=function(e){function t(){var e;S(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T(e=y(this,t,[].concat(r)),"taskIds",[]),T(e,"description",void 0),T(e,"type","UNKNOWN"),e}return x(t,e),O(t,[{key:"fromJson",value:function(e){k(C(t.prototype),"fromJson",this).call(this,e);var n=e.taskIds,r=e.description;this.taskIds=n,this.description=null!==r&&void 0!==r?r:this.description}},{key:"getActionText",value:function(){return f(this.actionText,{s:D(this.type)})}}])}(j),B=n("s9k+"),Z=(n("pjDv"),n("+2oP"),n("JfAA"),new Map),F=n("rg1a"),U=n.n(F);function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var W=function(e){var t=e.substr(0,20);return t+(t.length<e.length?"...":"")};function H(e){var t=e.task,n=e.isLastItem,r=t.id,o=t.title,a=t.canFound,s=K((0,i.useState)(!1),2),l=s[0],c=s[1];(0,i.useEffect)((function(){var e=function(){c(!1)};return l&&document.addEventListener("click",e,{capture:!0}),function(){document.removeEventListener("click",e,{capture:!0})}}),[l]);var u=n?"":",";if(a&&o){var d=W(o);return i.createElement("span",null,i.createElement("a",{onClick:function(e){var t;e.preventDefault(),e.stopPropagation(),(t="gotoTask",Z.get(t)||function(){})(r)}},d),u)}if(o){var h=W(o);return i.createElement("span",{className:"text-secondary"},h,u)}return i.createElement(i.Fragment,null,i.createElement("span",null,i.createElement("a",{onClick:function(e){e.preventDefault(),c(!0)}},f("unknown_item")),u),l?i.createElement("div",{className:U().tooltip,onClick:function(e){e.preventDefault(),e.stopPropagation()}},f("what_is_unknow_task")):null)}function z(e){var t=e.creator,n=e.actionDesc,r=e.recordTime,o=e.taskData,a=e.sectionName,s=(0,i.useContext)(m).preference;return i.createElement("div",{className:"ta-summary"},i.createElement("span",{className:"creator"},t),i.createElement("span",{className:"action text-secondary"},n),function(e){if(e){var t=[e[0]],n=t.length-1;return t.map((function(e,t){return i.createElement(H,{key:e.id,task:e,isLastItem:t===n})}))}return null}(o),a?i.createElement("span",{className:"text-secondary"},a):null,i.createElement("span",{className:"time text-info text-sml"},(0,B.w6)(r,s.showMeridiem,c(),f("just_now"))))}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function V(e,t,n){return t=function(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){var t=e.data,n=e.getTitleById,r=e.type,o=(0,i.useMemo)((function(){var e,n=(V(V(V(V(V(V(V(V(V(V(e={},P.P_CREATE,{iconName:"create",actionText:"activity_created_list",class:N}),P.P_TITLE,{iconName:"edit",actionText:"activity_edited_list_title",class:N}),P.P_DELETE,{iconName:"delete",actionText:"activity_deleted_list",class:N}),P.P_SHARE_JOIN,{iconName:"share-join",actionText:"activity_joined_list",class:R}),P.P_SHARE_DELETE,{iconName:"share-delete",actionText:"activity_quitted_list",class:R}),P.P_OPEN,{iconName:"unarchive",actionText:"activity_unarchived_list",class:R}),P.P_CLOSE,{iconName:"archive",actionText:"activity_archived_list",class:R}),P.P_IN,{iconName:"in",actionText:"activity_moved_item_in",class:A}),P.P_OUT,{iconName:"out",actionText:"activity_moved_item_out",class:A}),P.T_CREATE,{iconName:"create",actionText:"activity_created_item",class:A}),V(V(V(V(V(V(V(V(V(V(e,P.T_DELETE,{iconName:"delete",actionText:"activity_deleted_item",class:A}),P.T_DONE,{iconName:"done",actionText:"activity_completed_task",class:A}),P.T_UNDONE,{iconName:"undone",actionText:"activity_undone_task",class:A}),P.T_TRASH_BACK,{iconName:"undone",actionText:"activity_undeleted_item",class:A}),P.T_REPEAT,{iconName:"done",actionText:"activity_repeated_task",class:A}),P.T_CANCEL,{iconName:"cancel",actionText:"activity_cancel_task",class:A}),P.T_REOPEN,{iconName:"reopen",actionText:"activity_reopen_task",class:A}),P.T_REPEAT_CANCEL,{iconName:"cancel",actionText:"activity_repeated_cancel_task",class:A}),P.P_ADD_COLUMN,{iconName:"create",actionText:"activity_created_section",class:I}),P.P_DEL_COLUMN,{iconName:"delete",actionText:"activity_deleted_section",class:I}),V(V(V(e,P.P_COLUMN_TITLE,{iconName:"edit",actionText:"activity_edited_section_title",class:I}),P.P_COLUMN_OUT,{iconName:"out",actionText:"activity_moved_section_out",class:I}),P.P_COLUMN_IN,{iconName:"in",actionText:"activity_moved_section_in",class:I}));return function(e){var t=e.action,i=n[t];if(i){var o=j;i.class&&(o=i.class);var a=new o(i.iconName,i.actionText);return a instanceof A&&(a.type=r),a.fromJson(e),a}return null}(t)}),[t,r]),a=(0,i.useContext)(m);if(o&&o.setUserInfo(a),o){var s=o.getIconName();return i.createElement("li",{className:s},i.createElement("span",{className:"ta-icon"},i.createElement(p,{name:"ac-".concat(s)})),i.createElement("div",{className:"ta-info"},i.createElement(z,{creator:o.getCreator(),actionDesc:o.getActionText(),recordTime:o.getRecordTime(),taskData:o instanceof A?function(e){var t=e.taskIds,r=e.description;return t.map((function(e){var t,i=null===(t=n(e))||void 0===t?void 0:t.trim();return{id:e,title:i||r||null,canFound:!!i}}))}(o):null,sectionName:o instanceof I?o.name:null})))}return null}var J=n("5uUV"),G=n("OQEF"),Q=n("T7FL"),X=n.n(Q),ee=n("RDjN");var te=function(e){var t,n,r=e.data,o=e.projectId,a=e.user,d=e.title,p=e.displayHeader,v=void 0!==p&&p,y=e.gotoTask,b=e.id2TaskInfo,k=void 0===b?{}:b,w=e.isWeb,C=void 0===w||w,x=a.preference,_=x.language,S=x.startDayOfWeek;if(t="gotoTask",n=y,Z.set(t,n),function(e){l=/^(zh)/i.test(s=e)}(_),C);else{(0,J.kR)(c());var E=_.replace("_","-").toLowerCase().replace(/\s*/g,""),O=(0,G.sj)();E.includes(O)||(0,G.z3)(c()?"zh":"en")}g.Z.tryToUpdateMomentConfig(S);var T=(0,i.useMemo)((function(){var e=new Map,t=[];return r.filter((function(e){return"P_VIEW_MODE"!==e.action})).reverse().forEach((function(t){var n=g.Z.parseUTCString(t.when),r=null===n||void 0===n?void 0:n.ap.startOfDay.valueOf();if(r){var i=e.get(r);i?i.push(t):e.set(r,[t])}})),e.forEach((function(e,n){t.push({timeStamp:n,list:e})})),t.sort((function(e,t){return e.timeStamp>t.timeStamp?-1:1})),t}),[r]),L=(0,i.useCallback)((function(e){var t=d[e];return null==t?null:t||f("no_title")}),[d]),P=(0,i.useCallback)((function(e){var t=k[e];return t?t.kind===ee.V60.Note?"NOTE":"TASK":"UNKNOWN"}),[k]);return i.createElement(m.Provider,{value:a},i.createElement(i.Fragment,null,v?i.createElement("div",{className:h()("ta-header",X()["ta-header"])},i.createElement("span",{className:"title"},f("project_activity"))):null,i.createElement("ul",{className:h()("t-activity",X()["t-activity"])},T.map((function(e){return i.createElement("div",{key:e.timeStamp,className:"p-section"},i.createElement("div",{className:"text-info t-section-date"},(0,B.dO)(new Date(e.timeStamp),c(),u(),{next:f("next"),today:f("today"),tomorrow:f("tomorrow"),yesterday:f("yesterday")})),i.createElement("ul",{className:"t-section"},e.list.map((function(e){return i.createElement($,{key:e.id,data:e,projectId:o,getTitleById:L,type:P(e.taskIds?e.taskIds[0]:"")})}))))})))))}},r9e1:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("TeQF"),n("fbCW"),n("pjDv"),n("4mDm"),n("2B1R"),n("E9XD"),n("+2oP"),n("ToJy"),n("7+zs"),n("sMBO"),n("Tskq"),n("qePV"),n("zKZe"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("5s+n"),n("SuFq"),n("rB9j"),n("ALS0"),n("JfAA"),n("YGK4"),n("PKPk"),n("SYor"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("i8i4"),o=n("NW6w"),a=n("Eh+D"),s=n("EPMa"),l=n.n(s),c=n("y8mg"),u=n.n(c),f=n("V/jI"),d=n("bjJs"),h=n("UDbp"),p=n("AtZj"),m=n("kxzV"),g=n("bJwH"),v=n("/kYj"),y=n("ZvEw"),b=n("4+DD"),k=n("ylzY"),w=n("Llsf"),C=n("l3/N"),x=n("xS9v"),_=n("f4Y0"),S=n("DhI8"),E=n("AVQR"),O=n("2KMM"),T=n("nJcm");function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}function M(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t=A(t),function(e,t){if(t&&("object"===L(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,R()?Reflect.construct(t,n||[],A(e).constructor):t.apply(e,n))}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function Z(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function K(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}var W=function(){return K((function e(){F(this,e),this.scrollerElement=null,this.mouseInSubmenuKey="",this.snapshot=null}),[{key:"setScrollElement",value:function(e){this.scrollerElement=e}},{key:"snapScrollTop",value:function(){return this.snapshot=this.scrollerElement?this.scrollerElement.scrollTop:null}},{key:"recoverScrollTop",value:function(){null!==this.snapshot&&this.scrollerElement&&(this.scrollerElement.scrollTop=this.snapshot)}}])}(),H=function(e){function t(e){var n;F(this,t),Z(n=I(this,t,[e]),"shouldShowInbox",(function(){var e=n.props,t=e.selected,r=!0;e.isInboxHide&&(r=t&&/inbox/.test(t.get("id")));return r})),Z(n,"onClickTeamSectionTitle",(function(e){var t=n.state.teamOpenStatus;null!=t[e]?n.setState((function(n){return{teamOpenStatus:N(N({},n.teamOpenStatus),{},Z({},e,!t[e])),menuWrapperHeight:void 0,scrollToSelected:!1}})):n.setState((function(t){return{teamOpenStatus:N(N({},t.teamOpenStatus),{},Z({},e,!0)),menuWrapperHeight:void 0,scrollToSelected:!1}}))})),Z(n,"onHide",(function(e){var t=$(e).find(".antiscroll-wrap");b.Dh(t)})),n.isKeydownHandle=n.props.isKeydownHandle,n.onSelect=n.onSelect.bind(n),n.onClick=n.onClick.bind(n),n.onShow=n.onShow.bind(n),n.onVisibleChange=n.onVisibleChange.bind(n),n.onTriggerClick=n.onTriggerClick.bind(n),n.onProjectNameChange=n.onProjectNameChange.bind(n);var i=n.props.customPrevList?n.props.customPrevList:[],o=n.props.customLastList?n.props.customLastList:[];i=u().isArray(i)?i:[],o=u().isArray(o)?o:[],n.customPrevList=i,n.customLastList=o,n.customPrevList.forEach((function(e){e.custom=!0})),n.customLastList.forEach((function(e){e.custom=!0})),n.getMenuContainer=n.getMenuContainer.bind(n);var a=e.selected?e.selected.get("groupId"):"",s=e.selected&&g.z2(e.selected)||"private",l=e.selected&&/inbox/.test(e.selected.get("id")),c={};return l&&(c=e.teams.map((function(e){return e.get("id")})).reduce((function(e,t){return e[t]=!0,e}),{})),n.state={visible:!1,scrollToSelected:!0,openStatus:a?N(N({},k.ZP.projectGroupOpenStatus),{},Z({},a,!0)):k.ZP.projectGroupOpenStatus,keyword:"",menuWrapperHeight:void 0,teamOpenStatus:l?N(Z({},s,!0),c):Z({},s,!0)},n.scrollPositionPatch=new W,n.dropdownRef=r.createRef(),n.projectNameInputRef=r.createRef(),n.menuRef=r.createRef(),n.menuWrapperRef=r.createRef(),n.filterProjectList=n.filterProjectByProps(e.projectList),n.filterColumns=n.getFilterColumnsByProps(e.columns,e.projectColumnEnable),n.filterGroupList=n.filterGroupListByProps(e.groupList),n.filterSortedProjectList=n.getFilterSortedProject(),n.sortedProjectAndColumns=n.getSortedProjectAndColumns(),n.menuItemRefs={},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),K(t,[{key:"getSnapshotBeforeUpdate",value:function(){return this.scrollPositionPatch.snapScrollTop()}},{key:"componentWillUnmount",value:function(){this.scrollPositionPatch=null}},{key:"componentDidUpdate",value:function(e,t){t.visible!==this.state.visible&&(this.state.visible||this.setState({keyword:"",scrollToSelected:!0}));var n=this.props,r=n.projectList,i=n.columns,o=n.projectColumnEnable,s=n.includesReadOnlyProject,l=n.notIncludesNoteProject,c=n.notIncludesSharedProject,u=n.groupList;a.is(r,e.projectList)&&a.is(i,e.columns)&&a.is(o,e.projectColumnEnable)&&a.is(s,e.includesReadOnlyProject)&&a.is(l,e.notIncludesNoteProject)&&a.is(c,e.notIncludesSharedProject)&&a.is(u,e.groupList)||(this.filterProjectList=this.filterProjectByProps(r),this.filterColumns=this.getFilterColumnsByProps(i,o),this.filterGroupList=this.filterGroupListByProps(u),this.filterSortedProjectList=this.getFilterSortedProject(),this.sortedProjectAndColumns=this.getSortedProjectAndColumns()),this.scrollPositionPatch.recoverScrollTop()}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.bodyContainer,i=e.mask,o=e.maskClosable,a=e.enterDelay,s=e.alignPoint,c=this.getProjectMenu(),u=this.getTrigger(),f=this.state.scrollToSelected;return r.createElement(d.Z,{alignPoint:s,boult:!1,ref:this.dropdownRef,visible:this.state.visible,menu:c,menuClassName:l()(this.props.menuClassName,"max-h-none"),autoAdjustOverflow:this.props.autoAdjustOverflow,placement:this.props.placement,align:this.props.align,boultOffset:this.props.boultOffset,getMenuContainer:n?void 0:this.getMenuContainer,mask:i,maskClosable:o,onVisibleChange:this.onVisibleChange,onShow:this.onShow,onHide:this.onHide,action:t,scrollToSelected:f,mouseEnterDelay:a?.1:void 0},u)}},{key:"getMenuContainer",value:function(){return i.findDOMNode(this.dropdownRef.current.trigger)}},{key:"getTrigger",value:function(){return this.props.trigger?this.props.trigger:r.createElement("a",{onClick:this.onTriggerClick},r.createElement(p.Z,{name:"move-list",className:"i-2-1 fast-transition"}))}},{key:"filterProjectByProps",value:function(e){var t=this.props,n=t.includesReadOnlyProject,r=t.notIncludesNoteProject,i=t.notIncludesSharedProject;return e.filter((function(e){return n?!g.bF(e):!g.I2(e)})).filter((function(e){return!r||!g.vG(e)})).filter((function(e){return!i||!g.vi(e)}))}},{key:"filterGroupListByProps",value:function(e){return e.filter((function(e){return!v.M7(e)&&!e.get("isDeleted")}))}},{key:"getFilterSortedProject",value:function(){var e=[],t=this.filterProjectList.reduce((function(e,t){var n=t.get("groupId");return e[n]?e[n]=e[n].concat([t]):e[n]=[t],e}),{});return this.filterProjectList.filter((function(e){return null==e.get("groupId")})).concat(this.filterGroupList.map((function(e){return e.set("isGroup",!0)}))).sort(m.ZP.order).forEach((function(n){if(n.get("isGroup")){var r=n.get("id"),i=t[r];i&&i.length&&e.push.apply(e,M(i.sort(m.ZP.order)))}else e.push(n)})),e}},{key:"getFilterColumnsByProps",value:function(e,t){var n=new Set(this.filterProjectList.toArray().map((function(e){return e.get("id")})));return t?e.filter((function(e){return n.has(e.get("projectId"))})):a.List()}},{key:"getSortedProjectAndColumns",value:function(){var e=[],t=this.filterColumns.reduce((function(e,t){var n=t.get("projectId");return e[n]?e[n]=e[n].concat([t]):e[n]=[t],e}),{});return this.filterSortedProjectList.forEach((function(n){var r=n.get("id"),i=n.get("name"),o=n.get("teamId");e.push(n);var a=t[r];a&&a.length&&e.push.apply(e,M(a.map((function(e){return e.set("projectName",i).set("teamId",o)}))))})),e}},{key:"getProjectList",value:function(){var e,t,n=this,r=this.props,i=r.columns,o=r.projectColumnEnable,s=(r.selected,r.isInboxHide,this.filterGroupListByProps(this.props.groupList)),l=this.filterProjectList;o&&(l=l.map((function(e){var t=i.filter((function(t){return t.get("projectId")===e.get("id")})).sort(m.ZP.order);return e.set("subList",t).set("isTree",t.size>1)})));var c,u,f=l.filter((function(e){return!g.Gr(e)})).map((function(e){return e.set("teamId",null)})),d=y.Fr(this.props.teams).map((function(e){return l.filter((function(t){return g.z2(t)===e.get("id")}))})).filter((function(e){return e.size>0})),h=s.map((function(e){var t=l.filter((function(t){return t.get("groupId")===e.get("id")})).sort(m.ZP.order);return t.size>0?e.set("subList",t).set("isTree",!0).set("isProject",!0):null})).filter((function(e){return!!e})),p=this.getOnePartSectionList(f,h,a.List(),null),v=d.map((function(e){return n.getOnePartSectionList(e,h,a.List(),e.get(0).get("teamId"))})),b=this.props.projectInbox;if(o){var k=i.filter((function(e){return/inbox/.test(e.get("projectId"))})).sort(m.ZP.order);b=b.set("subList",k).set("isTree",k.size>1)}return this.shouldShowInbox()?(e=(t=a.List()).concat.apply(t,M(v)).concat(p).unshift(b)).unshift.apply(e,M(this.customPrevList)).concat(this.customLastList):(c=(u=a.List()).concat.apply(u,M(v)).concat(p)).unshift.apply(c,M(this.customPrevList)).concat(this.customLastList)}},{key:"getFilteredProjectList",value:function(e,t){var n=this.props,r=n.teams,i=(n.projectList,n.projectInbox),o=this.filterProjectByProps(e),s=o.toArray().filter((function(e){return!g.Gr(e)})).map((function(e){return e.set("teamId",null)})),l=y.Fr(r).toArray().reduce((function(e,t){var n=o.filter((function(e){return g.z2(e)===t.get("id")})).toArray();return e.concat(n)}),[]).concat(s),c=this.filterProjectByProps((0,O.Sd)().concat(this.shouldShowInbox()?[i]:[])),u=c.toArray().filter((function(e){return!g.Gr(e)})).map((function(e){return e.set("teamId",null)})),f=y.Fr(r).toArray().reduce((function(e,t){var n=c.filter((function(e){return g.z2(e)===t.get("id")})).toArray();return e.concat(n)}),[]),d=t.toArray().reduce((function(e,t){var n=e.get(t.get("projectId"));return n?n.push(t):e.set(t.get("projectId"),[t]),e}),new Map),h=f.concat(u).reduce((function(e,t){var n=d.get(t.get("id")),r=t.get("name"),i=t.get("teamId");return n?e.concat(n.map((function(e){return e.set("projectName",r).set("teamId",i)}))):e}),[]);return a.List(l).concat(h)}},{key:"getOnePartSectionList",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=e.filter((function(e){return!i||!g.lM(e)}));if(t=t.filter((function(e){var t=null;return t=e.get("subList")&&e.get("subList").size?v.Wf(e.get("subList").get(0)):v.Wf(e),r?t===r:!t})),n.size>0){var s=new Set(o.concat(n).toArray().map((function(e){return e.get("id")})));return a.List(this.sortedProjectAndColumns.filter((function(e){return s.has(e.get("id"))})))}var l=o.concat(t).sort(m.ZP.sortOrder);return l}},{key:"onProjectNameChange",value:function(e){this.setState({keyword:e.target.value})}},{key:"getFilterProjectList",value:function(){var e=this.state.keyword,t=this.props,n=t.projectList,r=t.projectColumnEnable,i=t.columns,o=t.projectInbox,s=this.getProjectList(n);if(e.trim().length>0){var l=this.shouldShowInbox();if(f.zO()){if(!window.projectMapList)return[];if(!window.columnMapList&&r)return[];var c=window.projectMapList.query(e).map((function(e){return e.originData})).filter((function(e){return!!l||!/inbox/.test(e.get("id"))})),u=r?window.columnMapList.query(e).map((function(e){return e.originData})):[];return this.getFilteredProjectList(a.List(c),a.List(u))}var d=(l?n.push(o):n).filter((function(t){return null!=t.get&&t.get("name").toUpperCase().indexOf(e.toUpperCase())>-1})),h=r?i.filter((function(t){return null!=t.get&&t.get("name").toUpperCase().indexOf(e.toUpperCase())>-1})):a.List();return this.getFilteredProjectList(d,h)}return s}},{key:"getSelectedKeys",value:function(){var e=this.props,t=e.selected,n=e.selectedId,r=e.useSelectedIdAsSelectedKeys,i=e.projectColumnEnable,o=e.columns;if(i){var s=t?t.get("id"):null,l=null==s?a.List():o.filter((function(e){return e.get("projectId")===s})).sort(m.ZP.order);if(l.size>1){var c;if(!(!n||n===s||!l.find((function(e){return e.get("id")===n}))))return[n];var u=null===(c=l.get(0))||void 0===c?void 0:c.get("id");return u?[u]:[]}return n?[n]:t?[t.get("id")]:[]}return r?n?[n]:[]:t?[t.get("id")]:[]}},{key:"getProjectMenu",value:function(){var e=this,t=this.getFilterProjectList(),n=this.props,i=n.inRightMenu,o=n.containerMenuRef,a=n.selected,s=this.getSelectedKeys(),c=null,u=this.state,d=u.keyword,m=u.menuWrapperHeight,v=u.teamOpenStatus,y=this.props.bodyContainer?{getPopupContainer:this.props.getPopupContainer}:{getPopupContainer:this.getMenuContainer};return r.createElement("div",{className:l()("flex flex-col",i?"w-[192px]":"w-[199px]"),style:{maxHeight:412,height:m,minHeight:230},ref:this.menuWrapperRef},r.createElement("div",{className:"px-[16px] pt-[6px] pb-[10px] flex-none flex border-b border-solid border-grey-5 mb-[4px] items-center"},r.createElement(p.Z,{name:"search-thin",className:"w-[18px] h-[18px] mr-[8px] text-grey-60 flex-none"}),r.createElement("div",{className:"flex-auto"},r.createElement("input",{type:"text",name:"project",autoComplete:"off",placeholder:f.U2("search"),value:d,onChange:this.onProjectNameChange,className:l()("h-[18px] w-full bg-[transparent] text-s leading-none placeholder-grey-20"),ref:this.projectNameInputRef,onCompositionStart:function(t){e.composing=!0},onCompositionEnd:function(t){e.composing=!1},onKeyDown:function(t){"ArrowDown"===t.key&&(t.preventDefault(),e.menuRef.current.focus()),("Escape"!==t.key||e.composing)&&t.stopPropagation()},tabIndex:0}))),r.createElement("div",{className:"antiscroll-wrap flex flex-auto flex-col"},r.createElement(h.ZP,P({onSelect:this.onSelect,onClick:this.onClick,selectedKeys:s,triggerSubMenuAction:"hover"},y,{className:"antiscroll-inner flex-auto max-h-none",prefixCls:"dropdown-menu-menu",ref:this.menuRef,onKeyDown:function(t){("Escape"!==t.key&&t.stopPropagation(),"ArrowLeft"!==t.key||$(t.target).closest(".fromSub").length)||e.state.visible&&(e.setState({visible:!1}),setTimeout((function(){o&&o.current&&o.current.focus()})))},onOpenChange:function(t){setTimeout((function(){var n=a?a.get("id"):null,r=s[0];if(t.length>0&&t[t.length-1]===n&&r&&n!==s){var i=e.menuItemRefs[r];i&&i.scrollIntoView()}}),50)}}),t.size>0?t.map((function(t,n){if(t.custom)return e.getCustomMenuItem(t);var r=null,i=(r=t.get("subList")&&t.get("subList").size&&t.get("isProject")?g.z2(t.get("subList").get(0)):g.z2(t)||null)||"private";return r!==c?(c=r,v[i]?[e.renderTeamSectionTitle(r),e.getMenuItem(t,n)]:e.renderTeamSectionTitle(r)):v[i]||t&&/inbox/.test(t.get("id"))?e.getMenuItem(t,n):null})):r.createElement("div",{className:"mt-[30px]"},r.createElement(T.Z,{size:130}),r.createElement("p",{className:"mt-[4px] leading-[18px] text-grey-40 text-[13px] px-[20px] text-center"},f.U2("empty_desc_no_list"))))))}},{key:"renderTeamSectionTitle",value:function(e){var t=this,n=this.state.teamOpenStatus,i=e&&y.mW(e),o=e?i?i.get("name"):e:f.U2("team_personal"),a=e?"st-"+e:"personal-section",s=e?n[e]:n.private;return r.createElement(r.Fragment,null,r.createElement(h.iz,{className:"split-line my-[4px]"}),r.createElement(h.sN,{onClick:function(){return t.onClickTeamSectionTitle(e||"private")},className:"dropdown-section-title text-grey-40 text-xs",key:a},r.createElement("div",{className:"flex items-center h-[34px] px-[2px]"},r.createElement(p.Z,{name:"down-arrow",className:l()("w-[12px] h-[12px] text-grey-40",s?"":"-rotate-90")}),r.createElement("span",{className:"text-xs leading-[20px] text-grey-60 ml-[2px] truncate"},o))))}},{key:"getMenuItem",value:function(e){var t=this,n=this.props,i=n.inRightMenu,o=n.subMenuClassName,a=n.disabledProjectIdSet,s=n.onMenuItemClick;if(e.get("isTree")){var c="project"===e.get("listType");return r.createElement(h.Wd,{key:e.get("id"),title:r.createElement("a",{className:l()("flex items-center overflow-hidden"),style:{width:i?"166px":"100%"}},r.createElement("div",{className:"flex-auto flex overflow-hidden items-center"},this.getProjectIconAndNameEl(e)),r.createElement(p.Z,{name:"right-triangle-down",className:"notUseGlobalCss flex-none w-[12px] h-[12px] ml-[6px] mr-[2px]"})),popupClassName:l()(e.get("subList").size?"":"!hidden","valid-task-menu-click-area calendar-click-ignore kanban-click-ignore timeline-click-ignore modal-dropdown-menu",o,"fromSub"),popupOffset:[8,0],onTitleClick:function(){var n,r;if(c){var i=null===(n=e.get("subList"))||void 0===n||null===(r=n.get(0))||void 0===r?void 0:r.get("id");i&&t.onSelect({selectedKeys:[i]})}}},e.get("subList").map((function(e){return t.getMenuItem(e)})))}var u=e.get("projectName"),f=this.getProjectIconAndName(e),d=f.icon,m=f.emoji,g=f.title;if(u)return r.createElement(h.gO,{withChecker:!0,key:e.get("id"),emoji:m,prefixIcon:d,titleElement:r.createElement("div",{className:"flex-auto flex flex-col h-full overflow-hidden justify-center"},r.createElement("span",{className:"text-[13px] text-grey-80 leading-[18px] truncate"},g),r.createElement("span",{className:"text-[12px] text-grey-40 leading-[16px] truncate"},u)),className:l()("global-quick-add-click-ignore",i?"!w-[184px]":""),menuItemClassName:"fromSub",extraStyle:{height:52}});var v=e.get("id"),y=a.has(v);return r.createElement(h.gO,{withChecker:!y,withDisabledConnect:!0,key:e.get("id"),emoji:m,prefixIcon:d,title:g,className:l()("global-quick-add-click-ignore",i?"!w-[184px]":""),isDisabledStyle:y,menuItemClassName:"fromSub",titleRef:function(n){t.menuItemRefs[e.get("id")]=n},onClick:s})}},{key:"getCustomMenuItem",value:function(e){this.props.selected&&this.props.selected;if("list-divider"===e.className)return r.createElement(h.iz,{className:"split-line my-[4px]"});var t=this.props,n=t.disabledProjectIdSet,i=t.onMenuItemClick,o=e.id,a=n.has(o);return r.createElement(h.gO,{withChecker:!a,withDisabledConnect:!0,key:o,prefixIcon:e.icon?e.icon:null,title:e.name,className:e.className,isDisabledStyle:a,onClick:i})}},{key:"getProjectIconAndNameEl",value:function(e){var t=e.get("name");if(x.Cy(t)){var n=x.y9(t);return r.createElement(r.Fragment,null,r.createElement(E.Z,{emoji:n.emoji,size:18,className:"emoji w-[18px] h-[18px] text-[18px] leading-[18px] relative mr-[8px] flex-none"}),r.createElement("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap"},n.title))}var i=g.Sw(e);return r.createElement(r.Fragment,null,r.createElement(p.Z,{name:i,className:l()("i-3","h-[18px] w-[18px] flex-none mr-[8px]")}),r.createElement("span",{className:"flex-auto truncate"},e.get("name")))}},{key:"getProjectIconAndName",value:function(e){var t=e.get("name");if(e.get("projectId"))return{icon:"section-list",title:t};if(x.Cy(t)){var n=x.y9(t);return{emoji:n.emoji,title:n.title}}return{icon:g.Sw(e),title:t}}},{key:"getProjectById",value:function(e){return this.props.projectList.concat([this.props.projectInbox]).concat(this.customPrevList).concat(this.customLastList).find((function(t){return t.custom?t.id===e:t.get("id")===e}))}},{key:"onSelect",value:function(e){var t=e.selectedKeys[0];if(!(/^st-/.test(t)||"personal-section"===t)){var n=this.props,r=n.projectColumnEnable;if(!n.disabledProjectIdSet.has(t)){var i=this.state.openStatus,o=this.getProjectById(t),a=r?_.UM(t):void 0;if(null==o&&null==a)null!=i[t]?this.setState((function(e){return{openStatus:N(N({},e.openStatus),{},Z({},t,!i[t]))}})):this.setState((function(e){return{openStatus:N(N({},e.openStatus),{},Z({},t,!0))}}));else if(a){this.close();var s=a.get("projectId"),l=this.getProjectById(s);this.props.onSelect(l,a)}else this.close(),this.props.onSelect(o)}}}},{key:"onClick",value:function(e){this.props.selected&&e.key===this.props.selected.get("id")?(0,C._X)()?this.onSelect({selectedKeys:[e.key]}):this.close():this.props.onClick&&this.props.onClick(e)}},{key:"onShow",value:function(e){var t=this,n=this.props.onAfterShow,r=this.state.menuWrapperHeight,i=$(e).find(".antiscroll-wrap");b.iD(i),this.scrollPositionPatch.setScrollElement($(e).find(".antiscroll-inner")[0]),setTimeout((function(){if(t.menuWrapperRef.current){var e=t.menuWrapperRef.current.clientHeight;e!==r&&t.setState({menuWrapperHeight:e})}})),null===n||void 0===n||n(e)}},{key:"onVisibleChange",value:function(e){var t=this.props.onHide;this.setState({visible:e}),this.props.onVisibleChange&&this.props.onVisibleChange(e),null===t||void 0===t||t()}},{key:"onTriggerClick",value:function(){this.props.onTriggerClick&&this.props.onTriggerClick()}},{key:"close",value:function(){this.setState({visible:!1})}},{key:"onKeyDown",value:function(e){var t=this.state.visible;e.keyCode===w.Z.space?this.setState({visible:!t}):e.keyCode===w.Z.enter?(e.preventDefault(),t||this.setState({visible:!t})):e.keyCode===w.Z.escape&&(t&&(this.setState({visible:!1}),e.stopPropagation()),e.preventDefault())}}])}(r.PureComponent);Z(H,"defaultProps",{disabledProjectIdSet:new Set});t.Z=(0,o.$j)((function(e){return N(N(N({},e.projects),e.groups),{},{columns:S.Vg(e),teams:e.teams.teams,isInboxHide:(0,g.g8)(e)})}),null,null,{forwardRef:!0})(H)},Aaic:function(e,t,n){"use strict";n.d(t,{S_:function(){return C},wy:function(){return _}});n("pNMO"),n("4Brf"),n("0oug"),n("4mDm"),n("07d7"),n("PKPk"),n("H+LF"),n("3bBZ");var r=n("+o5M"),i=n("BIGb"),o=n("NyKW"),a=n("UVtB"),s=n("q1tI");if(1223==n.j)var l=n("aaI2");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u="object"===("undefined"===typeof performance?"undefined":c(performance))&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function f(e){cancelAnimationFrame(e.id)}function d(e,t){var n=u();var r={id:requestAnimationFrame((function i(){u()-n>=t?e.call(null):r.id=requestAnimationFrame(i)}))};return r}var h=null;function p(e){if(void 0===e&&(e=!1),null===h||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?h="positive-descending":(t.scrollLeft=1,h=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),h}return h}var m=function(e,t){return e};function g(e){var t,n,l=e.getItemOffset,u=e.getEstimatedTotalSize,h=e.getItemSize,g=e.getOffsetForIndexAndAlignment,y=e.getStartIndexForOffset,b=e.getStopIndexForStartIndex,k=e.initInstanceProps,w=e.shouldResetStyleCacheOnItemSizeChange,C=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=k(n.props,(0,o.Z)((0,o.Z)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:(0,o.Z)((0,o.Z)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=(0,a.Z)((function(e,t,r,i){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:i})})),n._callOnScroll=void 0,n._callOnScroll=(0,a.Z)((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,o=r.itemSize,a=r.layout,s=n._getItemStyleCache(w&&o,w&&a,w&&i);if(s.hasOwnProperty(e))t=s[e];else{var c,u=l(n.props,e,n._instanceProps),f=h(n.props,e,n._instanceProps),d="horizontal"===i||"horizontal"===a;s[e]=((c={position:"absolute"})["rtl"===i?"right":"left"]=d?u:0,c.top=d?0:u,c.height=d?"100%":f,c.width=d?f:"100%",t=c)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=(0,a.Z)((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===i)return null;var t=n.props.direction,a=i;if("rtl"===t)switch(p()){case"negative":a=-i;break;case"positive-descending":a=o-r-i}return a=Math.max(0,Math.min(a,o-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;n.setState((function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===c(t)&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&f(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=d(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return v(e,t),C(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(g(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(p()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&f(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,f=e.innerElementProps,d=e.itemCount,h=e.itemData,p=e.itemKey,g=void 0===p?m:p,v=e.layout,y=e.outerElementType,b=e.outerTagName,k=e.outerId,w=e.style,C=e.useIsScrolling,x=e.width,_=e.childFactory,S=this.state.isScrolling,E="horizontal"===i||"horizontal"===v,O=E?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),L=T[0],P=T[1],M=[];if(d>0)for(var D=L;D<=P;D++){var j=(0,s.createElement)(t,{data:h,key:g(D,h),index:D,isScrolling:C?S:void 0,style:this._getItemStyle(D)});_&&(j=_({data:h,index:D,key:g(D,h),isScrolling:C?S:void 0,children:j})),M.push(j)}var N=u(this.props,this._instanceProps);return(0,s.createElement)(y||b||"div",{id:k,className:n,onScroll:O,ref:this._outerRefSetter,style:(0,r.Z)({position:"relative",height:o,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},w)},(0,s.createElement)(l||c||"div",(0,r.Z)({children:M,ref:a,style:{height:E?"100%":N,pointerEvents:S?"none":void 0,width:E?N:"100%"}},f||{})))},n._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"===typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=y(this.props,a,this._instanceProps),l=b(this.props,s,a,this._instanceProps),c=i&&"backward"!==o?1:Math.max(1,n),u=i&&"forward"!==o?1:Math.max(1,n);return[Math.max(0,s-c),Math.max(0,Math.min(t-1,l+u)),s,l]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var v=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},y=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var c=r(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},b=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=y(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},k=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&y(e,n,t).offset<r;)n+=o,o*=2;return b(e,t,Math.min(n,i-1),Math.floor(n/2),r)},w=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},C=g({getItemOffset:function(e,t,n){return y(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:w,getOffsetForIndexAndAlignment:function(e,t,n,r,i){var o=e.direction,a=e.height,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:a,u=y(e,t,i),f=w(e,i),d=Math.max(0,Math.min(f-c,u.offset)),h=Math.max(0,u.offset-c+u.size);switch("smart"===n&&(n=r>=h-c&&r<=d+c?"auto":"center"),n){case"start":return d;case"end":return h;case"center":return Math.round(h+(d-h)/2);default:return r>=h&&r<=d?r:r<h?h:d}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?b(e,t,i,0,n):k(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:o,u=y(e,t,r),f=n+c,d=u.offset+u.size,h=t;h<a-1&&d<f;)h++,d+=y(e,h,r).size;return h},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function x(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function _(e,t){var n=e.style,r=(0,l.Z)(e,["style"]),i=t.style,o=(0,l.Z)(t,["style"]);return!x(n,i)&&!x(r,o)}},"2A1T":function(e,t,n){"use strict";var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("AtZj"),s=n("yhZ0"),l=r.forwardRef((function(e,t){var n=e.className,i=e.onClick,l=e.isReadOnly,c=e.titleText,u=e.type,f=void 0===u?"tiny":u,d=e.isMenuShow,h=void 0!==d&&d;return r.createElement(s.Z,{onClick:i,ref:t,className:o()(n,{"select-trigger-disabled":l})},r.createElement("div",{className:o()("select-title max-w-full w-full truncate bg-main-background pl-[8px] pr-[16px] rounded-select-trigger border border-solid text-[13px] hover:border-primary",{"text-info text-grey-40":l,"leading-[22px] h-[24px]":"tiny"===f,"leading-[30px] h-[32px]":"normal"===f,"leading-[26px] h-[28px]":"normal"===f},h?"border-primary":"border-grey-20"),style:{paddingLeft:8,paddingRight:20}},c),r.createElement(a.Z,{name:"thin-triangle-down",className:"select-arrow text-grey-40 w-[12px] h-[12px] absolute top-1/2 transform -translate-y-1/2",style:{right:8}}))}));l.displayName="SelectTrigger",t.Z=l},"7k6r":function(e,t,n){"use strict";var r=n("q1tI"),i=n("9IBm"),o=n("aALo"),a=r.forwardRef((function(e,t){var n=e.children,a=e.onCancel,s=e.onConfirm,l=(0,i.Z)();return r.createElement("div",{className:"setting-confirm-popup",ref:t},n,r.createElement("div",{className:"control relative z-10 bg-main-background overflow-hidden",style:{margin:"8px 12px 0"}},r.createElement("div",{className:"btns flex items-center",style:{height:48}},r.createElement(o.Z,{type:"cancel",size:"tiny",className:"first:mr-[12px] flex-auto",onClick:a},l.formatMessage({id:"cancel"})),r.createElement(o.Z,{size:"tiny",onClick:s,className:"flex-auto"},l.formatMessage({id:"ok"})))))}));a.displayName="SettingConfirmPopup",t.Z=a},yhZ0:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("TeQF"),n("4mDm"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("07d7"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("Llsf"),i=n("q1tI");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=["componentProps","onKeyDown","tabIndex"];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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=i.forwardRef((function(e,t){var n=e.componentProps,o=void 0===n?{}:n,s=e.onKeyDown,c=e.tabIndex,f=void 0===c?e.disabled?-1:0:c,d=u(e,a),h=o.tagName,p=void 0===h?"div":h,m=o.onClickTrigger;return i.createElement(p,l(l({},d),{},{ref:t,onKeyDown:function(e){e.target===e.currentTarget&&null==e.currentTarget.getAttribute("disabled")&&(e.keyCode!==r.Z.enter&&e.keyCode!==r.Z.space||(e.target.click(),m&&m())),s&&s(e)},tabIndex:f}))}));f.displayName="SimulateButton",t.Z=f},yspD:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("TeQF"),n("fbCW"),n("4mDm"),n("2B1R"),n("ToJy"),n("7+zs"),n("qePV"),n("zKZe"),n("NBAS"),n("ExoC"),n("07d7"),n("4l63"),n("5s+n"),n("SuFq"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("Eh+D"),o=n("bjJs"),a=n("UDbp"),s=n("NW6w"),l=n("AtZj"),c=n("EPMa"),u=n.n(c),f=n("4+DD"),d=n("Llsf"),h=n("l3/N"),p=n("Ici6"),m=n("kxzV");function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function b(e,t,n){return t=w(t),function(e,t){if(t&&("object"===g(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,k()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function x(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}var S=o.Z,E=function(e,t){return m.ZP.subscribeAccounts(e,t)},O=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),x(n=b(this,t,[e]),"dropdownRef",void 0),x(n,"projectMenuWrapperRef",void 0),x(n,"projectMenuList",void 0),x(n,"onHide",(function(e){var t=$(e).find(".antiscroll-wrap");f.Dh(t)})),n.onSelect=n.onSelect.bind(n),n.onClick=n.onClick.bind(n),n.onShow=n.onShow.bind(n),n.onHide=n.onHide.bind(n),n.onVisibleChange=n.onVisibleChange.bind(n),n.onTriggerClick=n.onTriggerClick.bind(n),n.getMenuContainer=n.getMenuContainer.bind(n),n.getSubMenuContainer=n.getSubMenuContainer.bind(n),n.state={visible:!1,activeIndex:"",openKeys:[]},n.dropdownRef=r.createRef(),n.projectMenuWrapperRef=r.createRef(),n.projectMenuList=i.List(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.visible;t.visible===n||n||this.setState({activeIndex:"",openKeys:[]})}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.align,i=e.autoAdjustOverflow,o=e.bodyContainer,a=e.boultOffset,s=e.enterDelay,l=e.menuClassName,c=e.placement,u=this.state.visible,f=this.getProjectMenu(),d=this.getTrigger(),h=o?{}:{getMenuContainer:this.getMenuContainer};return r.createElement(S,v({boult:!1,ref:this.dropdownRef,visible:u,menu:f,menuClassName:l,autoAdjustOverflow:i,placement:c,align:n,boultOffset:a,action:t,mouseEnterDelay:s?.1:void 0},h,{onVisibleChange:this.onVisibleChange,onShow:this.onShow,onHide:this.onHide}),d)}},{key:"getMenuContainer",value:function(){var e;return null===(e=this.dropdownRef.current)||void 0===e?void 0:e.trigger}},{key:"getSubMenuContainer",value:function(){var e=this.props,t=e.bodyContainer,n=e.getPopupContainer;return n?n():t?document.body:this.getMenuContainer()}},{key:"getTrigger",value:function(){var e=this.props,t=e.trigger,n=e.triggerSize,i=void 0===n?18:n;return t||r.createElement("a",{onClick:this.onTriggerClick},r.createElement(l.Z,{name:"event-calendar",className:"text-grey-60",style:{width:i,height:i}}))}},{key:"getProjectList",value:function(){return this.props.calendars}},{key:"getAccountList",value:function(){var e=this.props,t=e.accounts;return e.showAccountGroups?(t||i.List()).filter((function(e){return!!(e&&(0,p.DP)(e)&&!(0,p.pY)(e.get("id"))&&(0,p.iD)(e.get("id")).size>0)})).sort(E):i.List()}},{key:"shouldShowAccountGroups",value:function(e){return!!this.props.showAccountGroups&&e.size>1}},{key:"getCalendarList",value:function(e){if(this.props.showAccountGroups&&1===e.size){var t=e.first();return(0,p.iD)((null===t||void 0===t?void 0:t.get("id"))||"")}return this.getProjectList()}},{key:"getProjectMenu",value:function(){var e=this,t=this.props,n=t.containerMenuRef,i=t.selected,o=this.state.visible,s=this.getAccountList(),l=this.shouldShowAccountGroups(s),c=l?s:this.getCalendarList(s);this.projectMenuList=c;var u=i?[i.get("id")]:[],f=l?c.map((function(t,n){return e.getAccountMenuItem(t,n||0)})).toArray():c.map((function(t,n){return e.getMenuItem(t,n||0)})).toArray();return r.createElement("div",{className:"antiscroll-wrap",ref:this.projectMenuWrapperRef},r.createElement(a.ZP,{onSelect:this.onSelect,onClick:this.onClick,selectedKeys:u,getPopupContainer:this.getSubMenuContainer,triggerSubMenuAction:"hover",className:"antiscroll-inner",prefixCls:"dropdown-menu-menu",onKeyDown:function(t){"Escape"!==t.key&&t.stopPropagation(),"ArrowLeft"!==t.key||$(t.target).closest(".fromSub").length||o&&(e.setState({visible:!1}),setTimeout((function(){n&&n.current&&n.current.focus()})))}},f))}},{key:"getMenuItem",value:function(e,t){var n=this.state.activeIndex,i=parseInt(n,10);return r.createElement(a.gO,{withChecker:!0,key:e.get("id"),prefixIcon:"rss-subscribe",title:e.get("name"),className:u()({"dropdown-menu-menu-item-active":t===i})})}},{key:"getAccountMenuItem",value:function(e,t){var n=this,i=(0,p.iD)(e.get("id")),o=this.props,s=o.selected,l=o.subMenuClassName,c=!!i.find((function(e){return!!s&&(null===e||void 0===e?void 0:e.get("id"))===s.get("id")}));return r.createElement(a.Wd,{key:e.get("id"),title:(0,p.Py)(e),icon:{name:"event-calendar",className:"i-3"},isActive:c,popupClassName:u()("valid-task-menu-click-area calendar-click-ignore kanban-click-ignore timeline-click-ignore modal-dropdown-menu",l,"fromSub"),popupOffset:[8,0]},i.map((function(e,r){return n.getMenuItem(e,"".concat(t,"-").concat(r))})).toArray())}},{key:"getProjectById",value:function(e){var t=this.props.calendars;return(0,p.xE)(e)||t.find((function(t){return(null===t||void 0===t?void 0:t.get("id"))===e}))}},{key:"onSelect",value:function(e){var t=e.selectedKeys,n=this.props.onSelect,r=t[0],i=this.getProjectById(r);i&&(this.close(),n(i))}},{key:"onClick",value:function(e){var t=this.props,n=t.onClick,r=t.selected;r&&e.key===r.get("id")?(0,h._X)()?this.onSelect({selectedKeys:[e.key]}):this.close():null===n||void 0===n||n(e)}},{key:"onShow",value:function(e){var t=$(e).find(".antiscroll-wrap");f.iD(t)}},{key:"onVisibleChange",value:function(e){var t=this.props.onVisibleChange;this.setState({visible:e}),null===t||void 0===t||t(e)}},{key:"onTriggerClick",value:function(){var e=this.props.onTriggerClick;null===e||void 0===e||e()}},{key:"close",value:function(){this.setState({visible:!1})}},{key:"toggle",value:function(){var e=this.state.visible;this.setState({visible:e})}},{key:"getActiveProjectByIndex",value:function(e){return e>-1?this.projectMenuList.get(e):null}},{key:"scrollListMenuToActiveItem",value:function(e,t){var n=t.find("li"),r=t.height()||0,i=n.eq(0).height()||1,o=e+1-r/i;o=o<0?0:o,t.scrollTop(o*i)}},{key:"calcNextIndex",value:function(e,t,n){return"down"===e?t+1>=n?0:t+1:"up"===e?t-1<0?n-1:t-1:t}},{key:"onKeyDown",value:function(e){var t=this.projectMenuList.size,n=this.state,r=n.activeIndex,i=n.openKeys,o=n.visible,a=r.split("-"),s=parseInt(a[0]||"-1",10),l=parseInt(a[1]||"-1",10);if(e.keyCode===d.Z.space)this.setState((function(e){return{visible:!e.visible}}));else if(e.keyCode===d.Z.enter){if(e.preventDefault(),o&&s>-1){var c,u=this.getActiveProjectByIndex(s),f=u;if(f.isGroup){var h=f.subList.get(Math.max(l,0));c=h?h.get("id"):""}else c=u&&u.get("id")||"";this.onSelect({selectedKeys:[c]})}this.setState((function(e){return{visible:!e.visible}}))}else if(e.keyCode===d.Z.tab)this.setState({visible:!1});else if(e.keyCode===d.Z.escape)o&&(this.setState({visible:!1}),e.stopPropagation()),e.preventDefault();else if(e.keyCode===d.Z.down_arrow||e.keyCode===d.Z.up_arrow){if(!o)return;e.preventDefault();var p=e.keyCode===d.Z.down_arrow?"down":"up";if(l>-1){var m=$("#global-add-task .preset-list .dropdown-menu-menu-sub .dropdown-menu-menu-item").length,g=this.calcNextIndex(p,l,m);this.setState({activeIndex:s+"-"+g}),this.scrollListMenuToActiveItem(g,$("#global-add-task .preset-list .dropdown-menu-menu-sub"))}else{var v=this.calcNextIndex(p,s,t);this.setState({activeIndex:v+""});var y=this.projectMenuWrapperRef.current;y&&this.scrollListMenuToActiveItem(v,$(y).find(".antiscroll-inner"));var b=this.getActiveProjectByIndex(v);b&&b.isGroup?this.setState({openKeys:[b.get("id")]}):i.length&&this.setState({openKeys:[]})}}else e.keyCode===d.Z.right_arrow&&o?i.length&&this.setState({activeIndex:s+"-0"}):e.keyCode===d.Z.left_arrow&&o&&i.length&&this.setState({activeIndex:s+""})}}])&&y(n.prototype,o),s&&y(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(r.Component);t.Z=(0,s.$j)((function(){return function(e,t){return{accounts:e.subscribeAccounts.accounts,calendars:(0,p.iD)(t.accountId||"")}}}),null,null,{forwardRef:!0})(O)},oj1H:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("fbCW"),n("x0AG"),n("4mDm"),n("2B1R"),n("7+zs"),n("sMBO"),n("qePV"),n("zKZe"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("schq"),s=n("HIl9");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function f(e,t,n){return t=h(t),function(e,t){if(t&&("object"===l(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function m(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(n=f(this,t,[e]),"tabsRef",void 0),n.state={activeKey:e.defaultActiveKey,slideOffset:0,slideWidth:0},n.tabsRef=r.createRef(),n.switchActiveTab=n.switchActiveTab.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.updateSlideOffset()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.activeKey!==e.activeKey&&e.activeKey&&this.setState({activeKey:e.activeKey})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state;t.activeKey!==n.activeKey&&this.updateSlideOffset()}},{key:"switchActiveTab",value:function(e){var t=this.props,n=t.onChange,r=t.tabList;this.setState({activeKey:e});var i=r.findIndex((function(t){return t.key===e}));n&&n(e,i)}},{key:"updateSlideOffset",value:function(){var e=this.state.activeKey,t=this.props.tabList.findIndex((function(t){return t.key===e}));if(this.tabsRef.current){var n,r=$(this.tabsRef.current).find(".tab").eq(t);this.setState({slideOffset:r.position().left,slideWidth:null!==(n=r.outerWidth())&&void 0!==n?n:0})}}},{key:"render",value:function(){var e=this.props,t=e.intl,n=e.id,i=e.tabList,a=e.tabContainerClassName,l=e.tabBarClassName,u=e.tabContentClassName,f=(e.tabSlideClassName,e.tabClassName,e.tabClassNameFunc,e.tabPrefixClassName,e.tabActiveClassName,e.tabActiveStyle,e.tabTextClassName,e.tabTextActiveClassName,e.isDividerShown),d=e.children,h=this.state,p=h.activeKey,m=(h.slideOffset,h.slideWidth,i.map((function(e){return{key:e.key,name:t.formatMessage({id:e.name})}})));return r.createElement("div",{className:o()("tabs-container",a),id:n},f&&r.createElement("div",{className:"l-divider"}),r.createElement("div",{className:l},r.createElement(s.Z,{tabList:m,activeKey:p,onActiveKeyChange:this.switchActiveTab})),r.createElement("div",{className:u},i.map((function(e){return e.key===p&&r.createElement(e.component,c({key:e.key},e.props))}))),d)}}])&&u(n.prototype,i),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);m(v,"defaultProps",{isDividerShown:!1}),t.Z=(0,a.ZP)(v)},wgpl:function(e,t,n){"use strict";n.d(t,{Z:function(){return Le}});n("pNMO"),n("4Brf"),n("0oug"),n("ma9I"),n("pjDv"),n("4mDm"),n("2B1R"),n("+2oP"),n("sMBO"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r,i=n("q1tI"),o=(n("oVuX"),n("EnZy"),{expand:"\u5c55\u5f00",collapse:"\u6536\u8d77",activity_empty:"\u6682\u65f6\u6ca1\u6709\u52a8\u6001",activity_empty_desc:"\u5728\u8fd9\u91cc\u67e5\u770b\u6e05\u5355\u91cc\u7684\u64cd\u4f5c\u8bb0\u5f55",activities:"\u52a8\u6001",project_activity:"\u6e05\u5355\u52a8\u6001",owner:"\u6240\u6709\u8005",note_activity:"\u7b14\u8bb0\u52a8\u6001",task_activity:"\u4efb\u52a1\u52a8\u6001",activity_created_task:"\u521b\u5efa\u4e86\u4efb\u52a1",activity_created_note:"\u521b\u5efa\u4e86\u7b14\u8bb0",activity_saved_task:"\u4fdd\u5b58\u4e86\u4efb\u52a1",activity_saved_note:"\u4fdd\u5b58\u4e86\u7b14\u8bb0",activity_completed_task:"\u5b8c\u6210\u4e86\u4efb\u52a1",activity_deleted_task:"\u5220\u9664\u4e86\u4efb\u52a1",activity_deleted_note:"\u5220\u9664\u4e86\u7b14\u8bb0",activity_undone_task:"\u53d6\u6d88\u5b8c\u6210\u4e86\u4efb\u52a1",activity_changed_task_duedate:"\u4fee\u6539\u4e86\u65f6\u95f4",activity_duedate:"\u65f6\u95f4 %s1 \u2192 %s2",activity_duedate_clear:"\u65f6\u95f4\u5df2\u6e05\u9664",activity_task_add_file:"\u6dfb\u52a0\u4e86\u9644\u4ef6",activity_task_del_file:"\u5220\u9664\u4e86\u9644\u4ef6",activity_assigned_task:"\u6307\u6d3e\u4efb\u52a1\u7ed9 <strong>%s1</strong>",activity_assigned_note:"\u6307\u6d3e\u7b14\u8bb0\u7ed9 <strong>%s1</strong>",activity_canceled_assignment:"\u53d6\u6d88\u4e86\u6307\u6d3e",activity_edited_title:"\u4fee\u6539\u4e86\u6807\u9898",activity_edited_content:"\u4fee\u6539\u4e86\u5185\u5bb9",activity_undeleted_task:"\u6062\u590d\u4e86\u4efb\u52a1",activity_undeleted_note:"\u6062\u590d\u4e86\u7b14\u8bb0",activity_created_list:"\u521b\u5efa\u4e86\u6e05\u5355",activity_edited_list_title:"\u4fee\u6539\u4e86\u6e05\u5355\u6807\u9898",activity_deleted_list:"\u5220\u9664\u4e86\u6e05\u5355",activity_joined_list:"\u52a0\u5165\u4e86\u6e05\u5355",activity_quitted_list:"\u9000\u51fa\u4e86\u6e05\u5355",activity_moved_task_in:"\u79fb\u5165\u4e86\u4efb\u52a1",activity_moved_task_out:"\u79fb\u51fa\u4e86\u4efb\u52a1",activity_change_to_task:"\u8f6c\u6362\u4e3a\u4efb\u52a1",activity_change_to_note:"\u8f6c\u6362\u4e3a\u7b14\u8bb0",activity_changed_task_progress:"\u4fee\u6539\u4efb\u52a1\u8fdb\u5ea6\u4e3a %s1",activity_switch_task_kind_to_checklist:"\u5207\u6362\u4efb\u52a1\u5230\u68c0\u67e5\u4e8b\u9879\u6a21\u5f0f",activity_switch_task_kind_to_text:"\u5207\u6362\u4efb\u52a1\u5230\u6587\u672c\u6a21\u5f0f",activity_create_subtask:"\u521b\u5efa\u4e86\u68c0\u67e5\u4e8b\u9879",activity_delete_subtask:"\u5220\u9664\u4e86\u68c0\u67e5\u4e8b\u9879",activity_done_subtask:"\u5b8c\u6210\u4e86\u68c0\u67e5\u4e8b\u9879",activity_undone_subtask:"\u53d6\u6d88\u5b8c\u6210\u4e86\u68c0\u67e5\u4e8b\u9879",activity_change_subtask_reminder:"\u4fee\u6539\u4e86\u68c0\u67e5\u4e8b\u9879\u63d0\u9192",activity_change_subtask_content:"\u4fee\u6539\u4e86\u68c0\u67e5\u4e8b\u9879\u5185\u5bb9",activity_subtask_no_reminder:"\u65e0\u63d0\u9192",closed_project_list:"\u5df2\u5173\u95ed\u7684\u6e05\u5355",unknow_task:"\u672a\u77e5\u4efb\u52a1",what_is_unknow_task:"\u4ec0\u4e48\u662f\u672a\u77e5\u4efb\u52a1\uff1f\u5f53\u67d0\u6761\u4efb\u52a1\u5728\u5783\u573e\u6876\u4e2d\u88ab\u5f7b\u5e95\u5220\u9664\u540e\uff0c\u8fd9\u6761\u4efb\u52a1\u7684\u6240\u6709\u76f8\u5173\u52a8\u6001\u90fd\u4f1a\u663e\u793a\u4e3a\u672a\u77e5\u4efb\u52a1\u3002",notitle_task:"\u65e0\u6807\u9898\u4efb\u52a1",activity_repeated_task:"\u5b8c\u6210\u4e86\u4e0a\u4e2a\u91cd\u590d\u5468\u671f",activity_repeated_task_next:"\u91cd\u590d\u5468\u671f %s1 \u2192 %s2",activity_repeated_task_end:"\u91cd\u590d\u5468\u671f\u5df2\u7ed3\u675f",activity_add_parent:"\u6dfb\u52a0\u4e86\u4e3b\u4efb\u52a1",activity_add_parent_detail:"%s",activity_add_parent_cancel:"\u5df2\u53d6\u6d88",activity_delete_parent:"\u79fb\u9664\u4e86\u4e3b\u4efb\u52a1",activity_change_completed_time:"\u4fee\u6539\u4efb\u52a1\u5b8c\u6210\u65f6\u95f4\u4e3a %s1",activity_cancel_task:"\u5c06\u4efb\u52a1\u6807\u8bb0\u4e3a\u201c\u5df2\u653e\u5f03\u201d",activity_reopen_task:"\u91cd\u65b0\u5f00\u59cb\u8fd9\u4e2a\u4efb\u52a1",activity_repeated_cancel_task:"\u653e\u5f03\u4e86\u4e0a\u4e2a\u91cd\u590d\u5468\u671f",show_more_tasks:"\u67e5\u770b\u66f4\u591a",just_now:"\u521a\u521a",today:"\u4eca\u5929",tomorrow:"\u660e\u5929",yesterday:"\u6628\u5929",next:"\u4e0b",weekday:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d",weekday_short:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d",month_short:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708",months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708",_relativeTime:{past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6"},activity_move_task_action:"\u79fb\u52a8\u4e86%s",activity_move_task_detail:"\u5c06%s\u4ece %s1 \u79fb\u52a8\u81f3 %s2",task:"\u4efb\u52a1",note:"\u7b14\u8bb0",unknown_project:"\u672a\u77e5\u6e05\u5355",activity_move_task_section_detail:"\u5c06%s\u4ece\u5206\u7ec4 %s1 \u79fb\u52a8\u81f3\u5206\u7ec4 %s2",unknown_section:"\u672a\u77e5\u5206\u7ec4"}),a={expand:"Expand",collapse:"Collapse",activity_empty:"No Activities.",activity_empty_desc:"You can track the activities in this list.",activities:"Activities",project_activity:"List Activities",owner:"Owner",note_activity:"Note Activities",task_activity:"Task Activities",activity_created_task:"created the task",activity_created_note:"created the note",activity_saved_task:"saved the task",activity_saved_note:"saved the note",activity_completed_task:"completed the task",activity_deleted_task:"deleted the task",activity_deleted_note:"deleted the note",activity_undone_task:"undone the task",activity_changed_task_duedate:"changed the time ",activity_duedate:"The time is %s1 \u2192 %s2",activity_duedate_clear:"The time has been removed.",activity_task_add_file:"added a attachment",activity_task_del_file:"deleted a attachment",activity_assigned_task:"assigned task to <strong>%s1</strong>",activity_assigned_note:"assigned note to <strong>%s1</strong>",activity_canceled_assignment:"canceled an assignment",activity_edited_title:"edited the title ",activity_edited_content:"edited the content ",activity_undeleted_task:"restored the task",activity_undeleted_note:"restored the note",activity_created_list:"created the list",activity_edited_list_title:"edited the list title",activity_deleted_list:"deleted the list",activity_joined_list:"joined the shared list",activity_quitted_list:"quitted the shared list",activity_moved_task_in:"moved in the task",activity_moved_task_out:"moved out the task",activity_change_to_task:"convert to task",activity_change_to_note:"convert to note",activity_changed_task_progress:"changed the progress to %s1",activity_switch_task_kind_to_checklist:"switched the task to checklist item mode",activity_switch_task_kind_to_text:"switched the task to text mode",activity_create_subtask:"created a checklist item",activity_delete_subtask:"deleted a checklist item",activity_done_subtask:"completed a checklist item",activity_undone_subtask:"marked a checklist item as undone",activity_change_subtask_reminder:"changed the reminder for checklist item",activity_change_subtask_content:"edited the content of checklist item",activity_subtask_no_reminder:"No Reminder",closed_project_list:"Closed Lists",unknow_task:"Unknown task",what_is_unknow_task:"What is unknown task? A task will be shown as \u201cUnknown task\u201d when being deleted completely in Trash.",notitle_task:"Notitle task",activity_repeated_task:"completed the previous recurring cycle",activity_repeated_task_next:"repeat cycle %s1 \u2192 %s2",activity_repeated_task_end:"The repeat cycles has been finished.",activity_add_parent:"added a parent task",activity_add_parent_detail:"%s",activity_add_parent_cancel:"canceled",activity_delete_parent:"removed a parent task",activity_change_completed_time:"change the completed date to %s1",activity_cancel_task:'marked the task as "won\'t do"',activity_reopen_task:"reopened the task",activity_repeated_cancel_task:'marked the previous recurring cycle as "won\'t do"',show_more_tasks:"View more",just_now:"just now",today:"Today",tomorrow:"Tomorrow",yesterday:"Yesterday",next:"Next",weekday:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday",weekday_short:"Su_Mo_Tu_We_Th_Fr_Sa",month_short:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec",months:"January_February_March_April_May_June_July_August_September_October_November_December",_relativeTime:{past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours"},activity_move_task_action:"moved the %s",activity_move_task_detail:"from list %s1 to list %s2",task:"task",note:"note",unknown_project:"Unknown project",activity_move_task_section_detail:"from group %s1 to group %s2",unknown_section:"Unknown group"},s="en",l=!1,c=function(){return l},u=function(){return/^(zh|ko|ja|tw)/i.test(s)},f=function(e,t){var n=l?o[e]:a[e];if(n)for(var r in t)n=n.split("%"+r).join(t[r]);return n},d=(n("yyme"),n("FZtP"),n("EPMa")),h=n.n(d);(r=n("tHAx")).keys().forEach(r);var p=function(e){var t=e.style||{fill:e.fill||"",marginTop:e.marginTop||""};return i.createElement("svg",{className:h()("icon-".concat(e.name),e.className),style:t},i.createElement("use",{xlinkHref:"#".concat(e.name)}))},m=i.createContext({username:"",preference:{showMeridiem:!1,language:"en"}}),g=(n("rNhl"),n("s9k+"));function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){var t=e.creator,n=e.actionDesc,r=e.recordTime,o=e.detail,a=e.isWeb,s=(0,i.useRef)(null),l=v((0,i.useState)(0),2),d=l[0],h=l[1],p=v((0,i.useState)(!1),2),y=p[0],b=p[1];(0,i.useEffect)((function(){var e,t,n=s.current;if(n){var r=parseFloat((null===n||void 0===n?void 0:n.style.lineHeight)||window.getComputedStyle&&(null===(e=document.defaultView)||void 0===e||null===(t=e.getComputedStyle(n,null))||void 0===t?void 0:t.getPropertyValue("line-height"))||"0");n.clientHeight/r>3&&h(3*r)}}),[]);var k=(0,i.useCallback)((function(){d>0&&b(!1)}),[d]),w=(0,i.useCallback)((function(){d>0&&b(!0)}),[d]),C=(0,i.useContext)(m).preference,x=(0,g.w6)(r,C.showMeridiem,a?u():c(),f("just_now")),_=0===d||y?{maxHeight:"unset"}:{maxHeight:d,display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"3"};return i.createElement("div",{className:"ta-summary"},i.createElement("p",{className:"ta-desc",ref:s,style:_},i.createElement("span",{className:"creator"},t),i.createElement("span",{className:"action text-secondary",dangerouslySetInnerHTML:{__html:n}}),o?i.createElement("span",{className:"ta-detail text-secondary"},o):null),0!==d&&(y?i.createElement("a",{className:"action-btn collapse text-link",onClick:k},f("collapse")):i.createElement("a",{className:"action-btn expand text-link",onClick:w},f("expand"))),i.createElement("span",{className:"time text-info text-sml"},x))}n("gXIK"),n("TeQF"),n("7+zs"),n("qePV"),n("5DmW"),n("27RR"),n("tkto"),n("Tskq"),n("NBAS"),n("ExoC"),n("SuFq"),n("XUE8"),n("UxlC"),n("4l63");var k=n("dmHn"),w=n.n(k);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function _(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}var S=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"parseUTCString",value:function(e){if(!e)return null;var t=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).*([+-])(\d{2})(\d{2})$/.exec(e);if(t){var n=parseInt(t[1],10),r=parseInt(t[2],10)-1,i=parseInt(t[3],10),o=parseInt(t[4],10),a=parseInt(t[5],10),s=parseInt(t[6],10),l=t[7],c=60*parseInt(t[8],10)+parseInt(t[9],10),u="+"===l?-c:c;return new Date(Date.UTC(n,r,i,o,a,s)+6e4*u)}return null}},{key:"formatToServerDate",value:function(e){return w()(e||new Date).utc().millisecond(0).format("YYYY-MM-DDTHH:mm:ss.SSSZZ")}}],(t=null)&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),E=n("C+ZP");var O=function(e,t){var n=t.isAllDay,r=t.isFloating,i=t.timeZone;return i?function(e,t){var n=t.isAllDay,r=t.isFloating,i=t.fromTimeZone,o=void 0===i?E.vN:i,a=t.toTimeZone,s=void 0===a?E.vN:a;if(!e)return null;var l=S.parseUTCString(e);return l?n||r?S.formatToServerDate((0,E.yU)(l,o,s,!n)):e:null}(e,{isAllDay:n,isFloating:r,fromTimeZone:i}):e},T=n("5uUV");function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function P(e,t,n){return t=N(t),function(e,t){if(t&&("object"===L(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,M()?Reflect.construct(t,n||[],N(e).constructor):t.apply(e,n))}function M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(M=function(){return!!e})()}function D(){return D="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=j(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},D.apply(this,arguments)}function j(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=N(e)););return e}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function I(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U(r.key),r)}}function Z(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(e,t,n){return(t=U(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}var K=function(e){return e.T_CREATE="T_CREATE",e.T_DELETE="T_DELETE",e.T_DONE="T_DONE",e.T_UNDONE="T_UNDONE",e.T_ASSIGN="T_ASSIGN",e.T_REPEAT="T_REPEAT",e.T_DUE="T_DUE",e.T_TITLE="T_TITLE",e.T_CONTENT="T_CONTENT",e.T_TRASH_BACK="T_TRASH_BACK",e.T_ADD_FILE="T_ADD_FILE",e.T_DEL_FILE="T_DEL_FILE",e.T_PROGRESS="T_PROGRESS",e.T_KIND="T_KIND",e.T_PARENT="T_PARENT",e.T_DELETE_PARENT="T_DELETE_PARENT",e.T_COMPLETED_TIME="T_COMPLETED_TIME",e.T_CANCEL="T_CANCEL",e.T_REOPEN="T_REOPEN",e.T_REPEAT_CANCEL="T_REPEAT_CANCEL",e.C_CREATE="C_CREATE",e.C_DELETE="C_DELETE",e.C_DONE="C_DONE",e.C_UNDONE="C_UNDONE",e.C_REMINDER="C_REMINDER",e.C_CONTENT="C_CONTENT",e.T_AS_NOTE="T_AS_NOTE",e.T_AS_TASK="T_AS_TASK",e.T_MOVE="T_MOVE",e.T_COLUMN="T_COLUMN",e}({}),Y=function(e){return e.CHECKLIST="CHECKLIST",e.TEXT="TEXT",e}(Y||{}),W={isMyself:!0},H=function(e,t,n,r){return e&&E.vN!==n?O(e,{timeZone:n,isAllDay:t,isFloating:r}):e},z=function(e,t,n){return e||n||!t||t===E.vN?E.vN:t},q=function(e,t){var n=[];return e&&n.push(e),t&&t.length&&t.forEach((function(e){n.push("- "+e)})),n.join("\n")||""},V=function(){return Z((function e(t,n,r){var i=this;A(this,e),F(this,"id",""),F(this,"iconName",""),F(this,"actionText",""),F(this,"action",K.C_CREATE),F(this,"when",new Date),F(this,"whoProfile",W),F(this,"userInfo",{username:"",preference:{showMeridiem:!1,language:"en"}}),F(this,"getDisplayName",(function(e){return e?e.isMyself?i.userInfo.username:e.name||e.username||"":""})),this.iconName=t,this.actionText=n}),[{key:"setDetailText",value:function(e){}},{key:"fromJson",value:function(e){var t,n=e.id,r=e.action,i=e.when,o=e.whoProfile;this.id=n,this.action=null!==r&&void 0!==r?r:this.action,this.when=null!==(t=S.parseUTCString(i))&&void 0!==t?t:this.when,this.whoProfile=null!==o&&void 0!==o?o:this.whoProfile}},{key:"setUserInfo",value:function(e){this.userInfo=e}},{key:"getIconName",value:function(){return this.iconName}},{key:"getActionText",value:function(){return f(this.actionText)}},{key:"getCreator",value:function(){return this.getDisplayName(this.whoProfile)}},{key:"getRecordTime",value:function(){return this.when}},{key:"getDetail",value:function(){return""}}])}(),$=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"title",""),F(e,"content",""),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.title,r=e.content;this.title=null!==n&&void 0!==n?n:this.title,this.content=null!==r&&void 0!==r?r:this.content}},{key:"getDetail",value:function(){var e=this.title,t=this.content;return(e&&t?e+"\n"+t:t?"\n"+t:e)||""}}])}(V),J=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"assigneeProfile",void 0),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.assigneeProfile;this.assigneeProfile=null!==n&&void 0!==n?n:this.assigneeProfile}},{key:"getActionText",value:function(){var e=D(N(t.prototype),"getActionText",this).call(this);return this.assigneeProfile?e.replace("%s1",this.getDisplayName(this.assigneeProfile)):f("activity_canceled_assignment")}}])}(V),G=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"detailText",""),F(e,"parentText",""),e}return I(t,e),Z(t,[{key:"setDetailText",value:function(e){this.detailText=e}},{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.parent;this.parentText=null!==n&&void 0!==n?n:this.parentText}},{key:"getDetail",value:function(){var e=this.detailText;return f(e).replace("%s",this.parentText)}}])}(V),Q=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"isAllDay",!0),F(e,"isAllDayBefore",!0),F(e,"startDate",null),F(e,"startDateBefore",null),F(e,"dueDate",null),F(e,"dueDateBefore",null),F(e,"timezone",E.vN),F(e,"timezoneBefore",E.vN),F(e,"isFloating",!1),F(e,"isFloatingBefore",!1),F(e,"detailText",["",""]),e}return I(t,e),Z(t,[{key:"setDetailText",value:function(e){this.detailText=e}},{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.isAllDay,r=e.isAllDayBefore,i=e.startDateBefore,o=e.startDate,a=e.dueDate,s=e.dueDateBefore,l=e.timezone,c=e.timezoneBefore,u=e.isFloating,f=e.isFloatingBefore;this.isAllDay=null!==n&&void 0!==n?n:this.isAllDay,this.startDate=null!==o&&void 0!==o?o:this.startDate,this.dueDate=null!==a&&void 0!==a?a:this.dueDate,this.timezone=null!==l&&void 0!==l?l:this.timezone,this.isFloating=null!==u&&void 0!==u?u:this.isFloating,this.isAllDayBefore=null!==r&&void 0!==r?r:this.isAllDayBefore,this.startDateBefore=null!==i&&void 0!==i?i:this.startDateBefore,this.dueDateBefore=null!==s&&void 0!==s?s:this.dueDateBefore,this.timezoneBefore=null!==c&&void 0!==c?c:this.timezoneBefore,this.isFloatingBefore=null!==f&&void 0!==f?f:this.isFloatingBefore}},{key:"getDetail",value:function(){var e=this.startDateBefore,t=this.startDate,n=this.dueDateBefore,r=this.dueDate,i=this.isAllDayBefore,o=this.isAllDay,a=this.timezone,s=this.timezoneBefore,l=this.isFloating,c=this.isFloatingBefore,d=this.detailText,h=this.userInfo.preference;e===n&&(n=null),t===r&&(r=null);var p=z(i,s,c),m=z(o,a,l);return e=H(e,i,s,c),n=H(n,i,s,c),t=H(t,o,a,l),r=H(r,o,a,l),(t?f(d[0],{s1:(0,g.o5)(e,n,i,p,h.showMeridiem,u()),s2:(0,g.o5)(t,r,o,m,h.showMeridiem,u())}):f(d[1]))||""}}])}(V),X=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"title",""),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.title;this.title=n}},{key:"getDetail",value:function(){return this.title||""}}])}(V),ee=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"content",""),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.content,r=e.desc;this.content=n||r}},{key:"getDetail",value:function(){return this.content||""}}])}(V),te=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"attachments",[]),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.attachments;this.attachments=n}},{key:"getDetail",value:function(){return(this.attachments||[]).map((function(e){return e.fileName})).join(",")||""}}])}(V),ne=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"progress",0),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.progress;this.progress=n}},{key:"getActionText",value:function(){var e=D(N(t.prototype),"getActionText",this).call(this),n=this.progress;return n||0===n?e.replace("%s1",n+"%"):""}}])}(V),re=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"kind",Y.TEXT),F(e,"desc",""),F(e,"itemTitles",[""]),F(e,"content",""),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.kind,r=e.content,i=e.desc,o=e.itemTitles;this.kind=n,this.content=r,this.desc=i,this.itemTitles=o}},{key:"getIconName",value:function(){return"CHECKLIST"===this.kind?"switched-subtask":"switched-text"}},{key:"getActionText",value:function(){return this.kind===Y.CHECKLIST?f("activity_switch_task_kind_to_checklist"):f("activity_switch_task_kind_to_text")}},{key:"getDetail",value:function(){return this.kind===Y.CHECKLIST?q(this.desc,this.itemTitles):this.content||""}}])}(V),ie=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"description",""),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.description;this.description=n}},{key:"getDetail",value:function(){return this.description||""}}])}(V),oe=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"desc",""),F(e,"itemTitles",[""]),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.desc,r=e.itemTitles;this.desc=n,this.itemTitles=r}},{key:"getDetail",value:function(){return q(this.desc,this.itemTitles)||""}}])}(V),ae=function(e){function t(e,n,r){var i;return A(this,t),F(i=P(this,t,[e,n,r]),"description",""),F(i,"isAllDayBefore",!1),F(i,"isAllDay",!1),F(i,"itemReminderDate",null),F(i,"itemReminderDateBefore",null),F(i,"itemTimeZone",E.vN),F(i,"isFloating",!1),i.isFloating=r.isFloating,i}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.description,r=e.isAllDayBefore,i=e.isAllDay,o=e.itemReminderDateBefore,a=e.itemReminderDate,s=e.itemTimeZone;this.description=n,this.isAllDayBefore=r,this.isAllDay=i,this.itemReminderDateBefore=o,this.itemReminderDate=a,this.itemTimeZone=s}},{key:"getDetail",value:function(){var e=f("activity_subtask_no_reminder"),t=f("activity_subtask_no_reminder"),n=this.userInfo.preference;if(this.itemReminderDateBefore){var r=z(this.isAllDayBefore,this.itemTimeZone,this.isFloating),i=H(this.itemReminderDateBefore,this.isAllDayBefore,this.itemTimeZone,this.isFloating);e=(0,g.o5)(i,null,this.isAllDayBefore,r,n.showMeridiem,u())}if(this.itemReminderDate){var o=z(this.isAllDay,this.itemTimeZone,this.isFloating),a=H(this.itemReminderDate,this.isAllDay,this.itemTimeZone,this.isFloating);t=(0,g.o5)(a,null,this.isAllDay,o,n.showMeridiem,u())}return["".concat(e," \u2192 ").concat(t),this.description].join("\n")||""}}])}(V),se=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"completedTime",void 0),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e);var n=e.completedTime;this.completedTime=null!==n&&void 0!==n?n:this.completedTime}},{key:"getActionText",value:function(){var e=(0,E.yP)().startOf("day"),n=(0,E.yP)(this.completedTime).startOf("day"),r="";return r=e.year()===n.clone().year()?(0,T.I4)("MMMD"):(0,T.I4)("ll"),D(N(t.prototype),"getActionText",this).call(this).replace("%s1",n.format(r))}}])}(V),le=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"detailText",""),F(e,"fromProjectId",""),F(e,"toProjectId",""),F(e,"kind",""),F(e,"projectId2name",new Map),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e),this.kind=e.kind,this.fromProjectId=e.fromProjectId,this.toProjectId=e.toProjectId,this.projectId2name=e.projectId2name}},{key:"getItemKind",value:function(){return f("NOTE"===this.kind?"note":"task")}},{key:"setDetailText",value:function(e){this.detailText=e}},{key:"getProjectName",value:function(e){return this.projectId2name.get(e)||f("unknown_project")}},{key:"getActionText",value:function(){return f(this.actionText).replace("%s",this.getItemKind())}},{key:"getDetail",value:function(){return f(this.detailText).replace("%s1",this.getProjectName(this.fromProjectId)).replace("%s2",this.getProjectName(this.toProjectId)).replace("%s",this.getItemKind())}}])}(V),ce=function(e){function t(){var e;A(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(e=P(this,t,[].concat(r)),"detailText",""),F(e,"columnIdBefore",""),F(e,"columnId",""),F(e,"kind",""),F(e,"sectionId2name",new Map),e}return I(t,e),Z(t,[{key:"fromJson",value:function(e){D(N(t.prototype),"fromJson",this).call(this,e),this.kind=e.kind,this.columnIdBefore=e.columnIdBefore,this.columnId=e.columnId,this.sectionId2name=e.sectionId2name}},{key:"getItemKind",value:function(){return f("NOTE"===this.kind?"note":"task")}},{key:"setDetailText",value:function(e){this.detailText=e}},{key:"getSectionName",value:function(e){return this.sectionId2name.get(e)||f("unknown_section")}},{key:"getActionText",value:function(){return f(this.actionText).replace("%s",this.getItemKind())}},{key:"getDetail",value:function(){return f(this.detailText).replace("%s1",this.getSectionName(this.columnIdBefore)).replace("%s2",this.getSectionName(this.columnId)).replace("%s",this.getItemKind())}}])}(V);function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}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 de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ue(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e){var t=e.data,n=e.task,r=e.isWeb,o=function(e){var t=e.data,n=e.task,r=e.projectId2name,o=e.sectionId2name,a=(0,i.useCallback)((function(e,t,n){var r,i=t?"NOTE"===t:"NOTE"===n.kind;return(he(he(he(he(he(he(he(he(he(he(r={},K.T_CREATE,{iconName:"create",actionText:i?n.isCopiedAgenda?"activity_saved_note":"activity_created_note":n.isCopiedAgenda?"activity_saved_task":"activity_created_task",class:$}),K.T_DELETE,{iconName:"delete",actionText:i?"activity_deleted_note":"activity_deleted_task"}),K.T_DONE,{iconName:"done",actionText:"activity_completed_task"}),K.T_UNDONE,{iconName:"undone",actionText:"activity_undone_task"}),K.T_ASSIGN,{iconName:"assign",actionText:i?"activity_assigned_note":"activity_assigned_task",class:J}),K.T_REPEAT,{iconName:"done",actionText:"activity_repeated_task",detailText:["activity_repeated_task_next","activity_repeated_task_end"],class:Q}),K.T_DUE,{iconName:"edit",actionText:"activity_changed_task_duedate",detailText:["activity_duedate","activity_duedate_clear"],class:Q}),K.T_TITLE,{iconName:"edit",actionText:"activity_edited_title",class:X}),K.T_CONTENT,{iconName:"edit",actionText:"activity_edited_content",class:ee}),K.T_TRASH_BACK,{iconName:"undone",actionText:i?"activity_undeleted_note":"activity_undeleted_task"}),he(he(he(he(he(he(he(he(he(he(r,K.T_ADD_FILE,{iconName:"add-file",actionText:"activity_task_add_file",class:te}),K.T_DEL_FILE,{iconName:"del-file",actionText:"activity_task_del_file",class:te}),K.T_COMPLETED_TIME,{iconName:"edit",actionText:"activity_change_completed_time",class:se}),K.T_PARENT,{iconName:"edit",actionText:"activity_add_parent",detailText:"activity_add_parent_detail",class:G}),K.T_DELETE_PARENT,{iconName:"edit",actionText:"activity_delete_parent"}),K.T_PROGRESS,{iconName:"edit",actionText:"activity_changed_task_progress",class:ne}),K.T_KIND,{class:re}),K.T_CANCEL,{iconName:"cancel",actionText:"activity_cancel_task"}),K.T_REOPEN,{iconName:"reopen",actionText:"activity_reopen_task"}),K.T_REPEAT_CANCEL,{iconName:"cancel",actionText:"activity_repeated_cancel_task",detailText:["activity_repeated_task_next","activity_repeated_task_end"],class:Q}),he(he(he(he(he(he(he(he(he(he(r,K.C_CREATE,{iconName:"created-subtask",actionText:"activity_create_subtask",class:ie}),K.C_DELETE,{iconName:"deleted-subtask",actionText:"activity_delete_subtask",class:ie}),K.C_DONE,{iconName:"completed-subtask",actionText:"activity_done_subtask",class:ie}),K.C_UNDONE,{iconName:"undone-subtask",actionText:"activity_undone_subtask",class:ie}),K.C_REMINDER,{iconName:"changed-subtask",actionText:"activity_change_subtask_reminder",class:ae}),K.C_CONTENT,{iconName:"edited-subtask",actionText:"activity_change_subtask_content",class:oe}),K.T_AS_TASK,{iconName:"change-kind",actionText:"activity_change_to_task"}),K.T_AS_NOTE,{iconName:"change-kind",actionText:"activity_change_to_note"}),K.T_MOVE,{iconName:"in",actionText:"activity_move_task_action",detailText:"activity_move_task_detail",class:le}),K.T_COLUMN,{iconName:"in",actionText:"activity_move_task_action",detailText:"activity_move_task_section_detail",class:ce}))[e]}),[]);return(0,i.useMemo)((function(){return function(e,t,n,r){var i=e.action,o=e.kind,s=a(i,o,t);if(s){var l=V;s.class&&(l=s.class);var c=new l(s.iconName,s.actionText,t);return c instanceof le?c.fromJson(de(de({},e),{},{fromProjectId:e.fromProjectId,toProjectId:e.toProjectId,kind:t.kind,projectId2name:n})):c instanceof ce?c.fromJson(de(de({},e),{},{columnIdBefore:e.columnIdBefore,columnId:e.columnId,kind:t.kind,sectionId2name:r})):c.fromJson(e),c.setDetailText&&s.detailText&&c.setDetailText(s.detailText),c}}(t,n,r,o)}),[t,a,r,o,n])}({data:t,task:n,projectId2name:e.projectId2name,sectionId2name:e.sectionId2name}),a=(0,i.useContext)(m);if(o&&o.setUserInfo(a),o){var s=o.getIconName();return i.createElement("li",{className:s},i.createElement("span",{className:"ta-icon"},i.createElement(p,{name:"ac-".concat(s)})),i.createElement("div",{className:"ta-info"},i.createElement(b,{creator:o.getCreator(),actionDesc:o.getActionText(),recordTime:o.getRecordTime(),detail:o.getDetail(),isWeb:r})))}return null}var me=n("n+S7"),ge=n.n(me),ve=(n("ToJy"),n("OQEF"));function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(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 ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){we(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function we(e,t,n){return t=function(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ye(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce={"MM/DD/YYYY":"en","DD/MM/YYYY":"en-gb","YYYY/MM/DD":"en-ca"},xe=function(e){var t=e.language,n=e.dateFormat,r=e.isWeb,o=e.isCopiedAgenda,a=e.data;if(function(e){l=/^(zh)/i.test(s=e)}(t),r);else{(0,T.NU)(c(),n,!0);var u=c()?"zh-cn":Ce[n]||Ce["MM/DD/YYYY"];(0,ve.sj)()===u||(0,ve.z3)(u)}return(0,i.useMemo)((function(){var e=["T_PROGRESS","T_DUE","T_TITLE","T_CONTENT","T_ADD_FILE","T_DEL_FILE"],t=["T_DONE","T_UNDONE","T_REPEAT"],n=a.sort((function(e,t){var n=S.parseUTCString(e.when),r=S.parseUTCString(t.when);if(n){if(r){if(n>r)return-1;if(n<r)return 1;var i=e.id,o=t.id;return null==i&&null==i?0:i?o?i?-1:0:i.localeCompare(o):o?1:0}return n?-1:0}return r?1:0})).filter((function(e){return!(e.action.indexOf("AT_")>=0&&"T_REPEAT_CANCEL"!==e.action)&&!(o&&t.indexOf(e.action)>-1)}));return o&&(n=a.map((function(t){return e.indexOf(t.action)<0?t:ke(ke({},t),{},{whoProfile:{username:f("owner")}})}))),n}),[a,o])},_e=n("tZl4"),Se=n.n(_e),Ee=n("4zF/");function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Le=function(e){var t=e.task,n=e.user,r=e.displayHeader,o=e.closeOptions,a=(e.onUpdateRecordCount,e.isWeb),s=void 0===a||a,l=e.getTaskActivity,c=e.adjustDetailContentHeight,u=e.containerRef,d=e.projectId2name,g=e.sectionId2name,v=t.isCopiedAgenda,y=t.kind,b=Oe((0,i.useState)([]),2),k=b[0],w=b[1],C=Oe((0,i.useState)(!0),2),x=C[0],_=C[1],S=n.preference.language,E="NOTE"===y,O=(0,Ee.D)(k),T=(0,i.useRef)("");(0,i.useEffect)((function(){0===O.length&&k.length>0&&c&&c()}),[c,k.length,O.length]);var L=(0,i.useCallback)((function(){l(t.taskId,k.length,T.current).then((function(e){if(200===e.status){var t=e.data;if(t.length){var n=t[t.length-1];T.current=n.id}0===t.length&&_(!1),w((function(e){return e.concat(t||[])}))}}))}),[k.length,l,t.taskId]),P=xe({isCopiedAgenda:v,language:S,data:k,isWeb:s});return i.createElement(m.Provider,{value:n},i.createElement("div",{className:h()("t-activity",ge()["t-activity"])},r?i.createElement("div",{className:"ta-header"},i.createElement("span",{className:"title"},f(E?"note_activity":"task_activity")),o.isEnable?i.createElement("a",{className:"close",onClick:o.doClose},i.createElement(p,{name:"mini-delete",className:"i-13 i-mic ta-icon"})):null):null,i.createElement("ul",{className:"can-select"},i.createElement(Se(),{loadMore:L,useWindow:!1,hasMore:x,getScrollParent:function(){return u.current}},P.map((function(e){return i.createElement(pe,{key:e.id,data:e,task:t,isWeb:s,projectId2name:d,sectionId2name:g})}))))))}},vmik:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("fbCW"),n("x0AG"),n("pjDv"),n("yq1k"),n("4mDm"),n("oVuX"),n("2B1R"),n("+2oP"),n("7+zs"),n("sMBO"),n("qePV"),n("i6QF"),n("kSko"),n("NBAS"),n("ExoC"),n("07d7"),n("4l63"),n("SuFq"),n("TWNs"),n("rB9j"),n("LD7m"),n("ALS0"),n("JfAA"),n("JTJg"),n("PKPk"),n("Rm1S"),n("UxlC"),n("SYor"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("3KU8"),s=n.n(a),l=n("zoGk"),c=n("Ag2S"),u=n("y8mg"),f=n.n(u),d=n("5WEu"),h=n("4+DD"),p=n("V/jI"),m=n("AtZj"),g=n("yhZ0"),v=n("NMAO");function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}function x(e,t,n){return t=S(t),function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,n||[],S(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}var O=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=x(this,t,[e])).state={showWidget:!1,value:e.defaultTime},n.compatibleBrowser=null!==navigator.userAgent.toLowerCase().match(/safari|trident|msie 10\.0|edge/)&&null===navigator.userAgent.toLowerCase().match(/chrome/),n.highlightedUnit="",n.meridianPosition=e.timeFormat.length+(e.showSeconds?8:5),n.handleDifference(),n.highlightUnitAndShowWidget=n.highlightUnitAndShowWidget.bind(n),n.highlightUnit=n.highlightUnit.bind(n),n.elementKeydown=n.elementKeydown.bind(n),n.onChangeTime=n.onChangeTime.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.showWidget=n.showWidget.bind(n),n.hideWidget=n.hideWidget.bind(n),n.updateFromElementVal=n.updateFromElementVal.bind(n),n.handleWheel=n.handleWheel.bind(n),n.blurTimePicker=n.blurTimePicker.bind(n),n.handleCompositionEnd=n.handleCompositionEnd.bind(n),n.widgetRef=r.createRef(),n.triggerRef=r.createRef(),n.wrapperRef=r.createRef(),n.escListenId=f().uniqueId(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),n=t,(i=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n=this.props.defaultTime;e.defaultTime!==n&&this.setState({value:e.defaultTime},(function(){t.scrollToRightWidgetPos()}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.state;!t.showWidget&&n.showWidget&&(this.wrapperRef.current&&h.iD($(this.wrapperRef.current)),c.jc.subscribe(this.escListenId,"timepicker",this.hideWidget),this.triggerRef.current&&this.triggerRef.current.parentElement&&c.jc.dangerousUpdatePopupId2TriggerEl(this.escListenId,this.triggerRef.current.parentElement),this.fixPosition(),this.scrollToRightWidgetPos()),t.showWidget&&!n.showWidget&&(this.wrapperRef.current&&h.Dh($(this.wrapperRef.current)),c.jc.unSubscribe(this.escListenId))}},{key:"componentWillUnmount",value:function(){c.jc.unSubscribe(this.escListenId)}},{key:"onChangeTime",value:function(){}},{key:"normalizeTypedUnitValue",value:function(e,t,n){var r=this.props.showMeridiem;return 0===t?(e=e<0?0:e>23?23:e,r&&e<1&&n&&(e=1)):e=e<0?0:e>59?59:e,e}},{key:"handleInputChange",value:function(e){var t=this;if(this.compatibleBrowser&&e.target){var n=e.target.value;if(n){var r=this.props,i=r.showMeridiem,o=r.timeFormat,a=this.state.value||"",s=i?n.slice(0,n.lastIndexOf(o)):n,l=n.replace(s,""),c="hour"===this.highlightedUnit?0:1,u=s.split(":");if(u.length<2)this.setState({value:n});else{var f=(u[c]||"").trim(),d=parseInt(u[c],10);if(Number.isNaN(d))return this.setTime(n),void this.setState({value:this.getTime()});var h=this._lastInputChangeUnit===this.highlightedUnit,p=1===f.length,m=h&&Number.isInteger(this._pendingInputDigit)?this._pendingInputDigit:null,g=!1;null!==m&&d<10&&d>=0&&p&&n!==a&&(d=10*m+d,g=!0),this._lastInputChangeUnit=this.highlightedUnit;var v=f.length>=2||g;if(d>=10||v){var y=this.normalizeTypedUnitValue(d,c,!0);this[this.highlightedUnit]=y,this._pendingInputDigit=null,u[c]=y<10?"0"+y:""+y;var b=u.join(":").concat(l);this.setState({value:b},(function(){t.highlightNextUnit(),t.updateFromElementVal()}))}else{var k=this.normalizeTypedUnitValue(d,c,!1);this[this.highlightedUnit]=k,this._pendingInputDigit=k,u[c]=" "+k;var w=u.join(":").concat(l);this.setState({value:w},(function(){t._highlightCurrentUnit()}))}}}else this.setState({value:n})}}},{key:"getTime",value:function(e){return this.formatTime(this.hour,this.minute,this.second,this.meridian,e)}},{key:"getCursorPosition",value:function(){var e=this.triggerRef.current;if(document.selection){e.focus();var t=document.selection.createRange(),n=document.selection.createRange().text.length;return t.moveStart("character",-e.value.length),t.text.length-n}return"selectionStart"in e?e.selectionStart:null}},{key:"setTime",value:function(e,t){var n,r=this.props,i=r.showMeridiem,o=r.timeFormat,a=r.showSeconds;if(i){var s=new RegExp("([ 0-9:]+)"+o+"([ap]m)?","i"),c=e.match(s);if(!c)return;n=c[1].split(":"),this.meridian=c[2]}else n=e.split(":"),this.meridian=l.Z.dateFormatToMoment(e,"HH:mm").locale("en").format("A");this.hour=parseInt(n[0],10),this.minute=parseInt(n[1],10),this.second=parseInt(n[2],10),Number.isNaN(this.hour)&&(this.hour=0),Number.isNaN(this.minute)&&(this.minute=0),Number.isNaN(this.second)&&(this.second=0),i?(this.hour>12?(this.hour%=12,this.meridian="PM"):this.hour<1&&(this.hour=12),"am"===this.meridian||"a"===this.meridian?this.meridian="AM":"pm"!==this.meridian&&"p"!==this.meridian||(this.meridian="PM"),"AM"!==this.meridian&&"PM"!==this.meridian&&(this.meridian="AM")):this.hour>=24?(this.hour%=24,this.meridian="PM"):this.hour<0&&(this.hour=0,this.meridian="AM"),this.minute<0?this.minute=0:this.minute>=60&&(this.minute=59),a&&(Number.isNaN(this.second)||this.second<0?this.second=0:this.second>=60&&(this.second=59)),t||this.update()}},{key:"formatWidgetTime",value:function(e){var t=this.props,n=t.showMeridiem,r=t.timeFormat;e<0?e+=1440:e>=1440&&(e-=1440);var i=[];return i[1]=this.formatUnit(e%60),n?(i[0]=Math.floor(e/60),i[1]+=r+(i[0]>=12?"PM":"AM"),i[0]=i[0]||12,i[0]=i[0]>12?this.formatUnit(i[0]%12):this.formatUnit(i[0])):i[0]=this.formatUnit(Math.floor(e/60)),i.join(":")}},{key:"formatUnit",value:function(e){return e<10?"0"+e:e}},{key:"handleDifference",value:function(){var e=this.props,t=e.minuteDifference,n=e.hourDifference;t=parseInt(t,10),(n=parseInt(n,10))>24&&(n%=24),t>60&&(t%=60),this.minuteDifference=t,this.hourDifference=n}},{key:"highlightUnitAndShowWidget",value:function(e){var t=this.props.onAwake,n=this.state.showWidget,r=this.highlightedUnit;if(this.highlightUnit(e),"meridian"===this.highlightedUnit){t&&t();var i=this.triggerRef.current;return i&&i.value&&this.setTime(i.value,!0),void this.toggleMeridian(!0)}r!==this.highlightedUnit&&this.updateFromElementVal(),t&&t(),n?r===this.highlightedUnit&&this.hideWidget():this.showWidget()}},{key:"highlightUnit",value:function(e){var t=this.props.showSeconds,n=this.triggerRef.current;if(n)if(n.value){var r=v.W(e,n);void 0!==r&&null!==r||(r=this.getCursorPosition()),null==r||r<0||(r>=0&&r<=2?this.highlightHour():r>=3&&r<=5?this.highlightMinute():r>=6&&r<=8&&t?this.highlightSecond():r>=this.meridianPosition&&r<=this.meridianPosition+2&&this.highlightMeridian())}else this.highlightHour()}},{key:"_highlightHour",value:function(){"hour"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=$(this.triggerRef.current).get(0);this.highlightedUnit="hour",e.setSelectionRange&&e.setSelectionRange(0,2)}},{key:"_highlightMinute",value:function(){"minute"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=$(this.triggerRef.current).get(0);this.highlightedUnit="minute",e.setSelectionRange&&e.setSelectionRange(3,5)}},{key:"_highlightSecond",value:function(){"second"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=$(this.triggerRef.current).get(0);this.highlightedUnit="second",e.setSelectionRange&&e.setSelectionRange(6,8)}},{key:"_highlightMeridian",value:function(){"meridian"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.props.showSeconds,t=$(this.triggerRef.current).get(0);this.highlightedUnit="meridian",t.setSelectionRange&&(e?t.setSelectionRange(9,11):t.setSelectionRange(this.meridianPosition,this.meridianPosition+2))}},{key:"_highlightCurrentUnit",value:function(){switch(this.highlightedUnit){case"hour":this._highlightHour();break;case"minute":this._highlightMinute();break;case"second":this._highlightSecond();break;case"meridian":this._highlightMeridian()}}},{key:"highlightHour",value:function(){"hour"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.triggerRef.current;this.highlightedUnit="hour",e.setSelectionRange&&setTimeout((function(){e.setSelectionRange(0,2)}))}},{key:"highlightMinute",value:function(){"minute"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.triggerRef.current;this.highlightedUnit="minute",e.setSelectionRange&&setTimeout((function(){e.setSelectionRange(3,5)}))}},{key:"highlightSecond",value:function(){"second"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.triggerRef.current;this.highlightedUnit="second",e.setSelectionRange&&setTimeout((function(){e.setSelectionRange(6,8)}))}},{key:"highlightMeridian",value:function(){"meridian"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.meridianPosition,t=this.triggerRef.current;this.highlightedUnit="meridian",t.setSelectionRange&&setTimeout((function(){t.setSelectionRange(e,e+2)}))}},{key:"updateFromElementVal",value:function(){var e=this.triggerRef.current.value;e&&this.setTime(e)}},{key:"handleCompositionEnd",value:function(){this.updateFromElementVal()}},{key:"blurTimePicker",value:function(){this.updateFromElementVal();var e=this.props.onBlur;e&&e({value:this.getTime(!0),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian})}},{key:"update",value:function(e){var t=this.props.onChangeTime;t&&t({value:this.getTime(!0),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}),this.setState({value:this.getTime()},e)}},{key:"updateWidget",value:function(){if(!1!==this.$widget){var e=this.props,t=e.showInputs,n=e.showSeconds,r=e.showMeridiem,i=this.hour<10?"0"+this.hour:this.hour,o=this.minute<10?"0"+this.minute:this.minute,a=this.second<10?"0"+this.second:this.second;t?(this.$widget.find("input.timepicker-hour").val(i),this.$widget.find("input.timepicker-minute").val(o),n&&this.$widget.find("input.timepicker-second").val(a),r&&this.$widget.find("input.timepicker-meridian").val(this.meridian)):(this.$widget.find("span.timepicker-hour").text(i),this.$widget.find("span.timepicker-minute").text(o),n&&this.$widget.find("span.timepicker-second").text(a),r&&this.$widget.find("span.timepicker-meridian").text(this.meridian))}}},{key:"formatTime",value:function(e,t,n,r,i){var o=this.props,a=o.showSeconds,s=o.timeFormat;n=n<10?"0"+n:n;var c=(e=e<10?"0"+e:e)+":"+(t=t<10?"0"+t:t)+(a?":"+n:"")+(i?" ":s)+r;return o.showMeridiem||(c=l.Z.dateFormatToMoment(c,"HH:mm").locale("en").format("HH:mm")),c}},{key:"toggleMeridian",value:function(e,t){e||this.hideWidget(),this.meridian="AM"===this.meridian?"PM":"AM",this.update(t)}},{key:"showWidget",value:function(){var e=this,t=this.props,n=t.hasWidget,r=t.onWidgetVisibleChange;n&&this.setState({showWidget:!0},(function(){e.fixPosition(),e.scrollToRightWidgetPos(),r(!0)}))}},{key:"fixPosition",value:function(){var e=this.triggerRef.current.getBoundingClientRect(),t=e.top,n=e.bottom,r=e.height,i=window.innerHeight-n,o=t;i>284?(this.widgetRef.current.style.height="280px",this.widgetRef.current.style.top=r+4+"px"):o>284?(this.widgetRef.current.style.height="280px",this.widgetRef.current.style.top="-284px"):(this.widgetRef.current.style.top=r+"px",this.widgetRef.current.style.height=i-4+"px")}},{key:"scrollToRightWidgetPos",value:function(){var e=this.props.itemHeight,t=this.state.value;if(this.widgetRef.current){var n=0,r=d.ex(t),i=$(this.wrapperRef.current).find(".antiscroll-inner")[0];if("Invalid date"!==r){var o=Array.from(i.childNodes);-1===(n=o.findIndex((function(e){return e.className.includes("active")})))&&(n=o.findIndex((function(e){var t=e.childNodes[0].innerText,n=new Date("2000/01/01 ".concat(r.trim())).getTime();return new Date("2000/01/01 ".concat(t.trim())).getTime()>n})))}i.scrollTop=n*e}}},{key:"hideWidget",value:function(){var e=this.props,t=e.hasWidget,n=e.onWidgetVisibleChange;t&&this.setState({showWidget:!1},(function(){n(!1)}))}},{key:"handleWheel",value:function(e){var t=this,n=null,r=this.triggerRef.current;if(e.nativeEvent.deltaY<=0?r.scrollTop<=0&&(n="decrement"):r.scrollTop+r.clientHeight>=r.scrollHeight&&(n="increment"),n)switch(this.highlightedUnit){case"hour":this[n+"Hour"](null,(function(){t._highlightHour()}));break;case"minute":this[n+"Minute"](null,(function(){t._highlightMinute()}));break;case"second":this[n+"Second"]((function(){t._highlightMinute()}));break;case"meridian":this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}}},{key:"elementKeydown",value:function(e){var t=this;if(!e.nativeEvent||!e.nativeEvent.isComposing){var n=this.props,r=n.showMeridiem,i=n.isOpen,o=n.template,a=e.which?e.which:e.keyCode;switch(a){case 9:switch(this.updateFromElementVal(),this.highlightedUnit){case"hour":case"minute":case"meridian":e.preventDefault(),this.highlightNextUnit();break;case"second":r&&(e.preventDefault(),this.highlightNextUnit())}break;case 27:this.triggerRef.current.blur(),this.updateFromElementVal();break;case 37:e.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:if(e.preventDefault(),"meridian"===this.highlightedUnit||!i||"dropdown"!==o)switch(this.highlightedUnit){case"hour":this.decrementHour(null,(function(){t._highlightHour()}));break;case"minute":this.decrementMinute(null,(function(){t._highlightMinute()}));break;case"second":this.decrementSecond((function(){t._highlightSecond()}));break;case"meridian":this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}break;case 39:e.preventDefault(),this.updateFromElementVal(),this.highlightNextUnit();break;case 40:if(e.preventDefault(),"meridian"===this.highlightedUnit||!i||"dropdown"!==o)switch(this.highlightedUnit){case"hour":this.incrementHour(null,(function(){t._highlightHour()}));break;case"minute":this.incrementMinute(null,(function(){t._highlightMinute()}));break;case"second":this.incrementSecond((function(){t._highlightSecond()}));break;case"meridian":this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}break;case 13:i&&"dropdown"===o||this.hideWidget(),$(this.triggerRef.current).blur();break;default:if(this.compatibleBrowser)return;e.preventDefault();var s=parseInt(e.key,10);if(229===a&&Number.isNaN(s))return;var l=this.getCursorPosition();229===a&&this.compatibleBrowser?this.updateCompatibleInput():l<=1||l>2&&l<5?(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105||s>=0&&s<=9)&&(this.updateInputNumber(e.keyCode%48),c.jc.dangerousUpdatePopupId2TriggerEl(this.escListenId,void 0),this.hideWidget()):l===this.meridianPosition?[97,112,65,80].includes(e.keyCode)&&this.toggleMeridian(!1,(function(){t._highlightMeridian()})):l===this.meridianPosition+1&&[109,77].includes(e.keyCode)&&this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}}}},{key:"highlightPrevUnit",value:function(){var e=this.props.showSeconds;switch(this.highlightedUnit){case"hour":this.highlightMeridian();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":e?this.highlightSecond():this.highlightMinute()}}},{key:"highlightNextUnit",value:function(){var e=this.props,t=e.showSeconds,n=e.showMeridiem;switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":t?this.highlightSecond():n?this.highlightMeridian():this.highlightHour();break;case"second":n?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}}},{key:"decrementHour",value:function(e,t){var n=this.props.showMeridiem;if(e=e||this.hourDifference)if(n){var r=!1;this.hour-=e,this.hour<1&&(this.hour+=12),11===this.hour&&(r=!r),r&&this.toggleMeridian(!0)}else this.hour-=e,this.hour<0&&(this.hour+=24);else this.decrementMinute();this.update(t)}},{key:"decrementMinute",value:function(e,t){e=e||this.minuteDifference,this.minute-=e,this.minute<0&&(this.minute+=60,this.decrementHour(1)),this.update(t)}},{key:"decrementSecond",value:function(e){var t=this.second-this.secondStep;t<0?(this.second=t+60,this.decrementMinute(1)):this.second=t,this.update(e)}},{key:"incrementHour",value:function(e,t){var n=this.props.showMeridiem;if(e=e||this.hourDifference)if(n){var r=!1;this.hour+=e,this.hour>12&&(this.hour-=12),12===this.hour&&(r=!r),r&&this.toggleMeridian(!0)}else this.hour+=e,this.hour>23&&(this.hour-=24);else this.incrementMinute();this.update(t)}},{key:"incrementMinute",value:function(e,t){e=e||this.minuteDifference,this.minute+=e,this.minute>59&&(this.minute-=60,this.incrementHour(1)),this.update(t)}},{key:"incrementSecond",value:function(e){var t=this.second+this.secondStep-this.second%this.secondStep;t>59?(this.second=t-60,this.incrementMinute(!0)):this.second=t,this.update(e)}},{key:"updateCompatibleInput",value:function(){var e=this.props,t=e.showMeridiem,n=e.timeFormat,r=$(this.triggerRef.current).val(),i=t?r.slice(0,r.lastIndexOf(n)):r,o="hour"===this.highlightedUnit?0:1;(i=i.split(":"))[o]=parseInt(i[o],10),this[this.highlightedUnit]=i[o],i[o]>=10&&(this.highlightNextUnit(),this.updateFromElementVal())}},{key:"updateInputNumber",value:function(e){var t=this,n=this.props,r=n.showMeridiem,i=n.timeFormat,o=$(this.triggerRef.current).val(),a=r?o.slice(0,o.lastIndexOf(i)):o,s=o.replace(a,""),l="hour"===this.highlightedUnit?0:1,c=0===(a=a.split(":"))[l].indexOf(" ");a[l]=parseInt(a[l],10),a[l]<10&&c?(a[l]=10*a[l]+e,this[this.highlightedUnit]=a[l],o=a.join(":").concat(s),this.setState({value:o},(function(){t.highlightNextUnit(),t.updateFromElementVal()}))):(this[this.highlightedUnit]=a[l],a[l]=" "+e,o=a.join(":").concat(s),this.setState({value:o},(function(){t._highlightCurrentUnit()})))}},{key:"clearTime",value:function(){this.triggerRef.current.value=""}},{key:"getTimeList",value:function(){for(var e=this,t=this.props,n=t.startClock,r=t.isCrossDay,i=t.endClock,o=[],a=[15,30,45],s=!1,l=0,c=0,u=n?+n.slice(3,5)%30:0,f=[],d=!1,h=new Date("2000/01/01 ".concat(i)).getTime();l<1440;)if(n&&!r&&i){var p=this.formatWidgetTime(l+u),m=this.formatWidgetTime(l+0),g=new Date("2000/01/01 ".concat(m)).getTime();if(n===p){s=!0,f.push.apply(f,b(a.map((function(t,n){var r=e.formatWidgetTime(l+u+t),i=new Date("2000/01/01 ".concat(r)).getTime(),o=!d&&i-h>=0;return o&&(d=!0),{text:r,isActive:o,displayInfo:t,unit:"time_mins"}})))),c=l,l+=60;continue}if(s){var v=g-h>=0&&!d,y=(l-c)/60;f.push({text:p,isActive:v,displayInfo:y,unit:1===y?"time_hr":"time_hrs"}),v&&(d=!0)}else{var k=g-h>=0&&!d;o.push({text:p,isActive:k,displayInfo:l/60,overDay:!0,unit:"time_hrs"}),k&&(d=!0)}l+=30}else{var w=this.formatWidgetTime(l),C=new Date("2000/01/01 ".concat(w)).getTime()-new Date("2000/01/01 ".concat(i)).getTime()>=0&&!d;C&&(d=!0),f.push({text:w,isActive:i?C:w===this.getTime(!0)}),l+=30}return o.forEach((function(e){e.displayInfo+=(1440-c)/60})),f.push.apply(f,o),f}},{key:"renderWidget",value:function(){var e=this,t=this.props,n=t.widgetFooterComponent,i=t.isCrossDay,a=t.endClock,s=t.widgetStyle,l=this.getTimeList(),c=!i&&a;return r.createElement("div",{className:"timepicker-widget dropdown-menu open flex flex-col overflow-hidden absolute ".concat(c?"inline":""),ref:this.widgetRef,style:s},r.createElement("div",{className:"timepicker-widget-content antiscroll-wrap",ref:this.wrapperRef},r.createElement("ul",{className:"timepicker-quick-selector antiscroll-inner"},l.map((function(t){var n=t.isActive;return r.createElement("li",{key:t.text,className:o()("dropdown-menu-item relative",{active:n,"color-theme":n}),onClick:function(){e.setTime(t.text),e.setState({showWidget:!1})}},r.createElement("a",null,t.text),c&&r.createElement("a",null,p.U2(t.unit,{s:t.displayInfo})),n&&r.createElement(m.Z,{name:"selected",className:"w-[18px] h-[18px] absolute right-[8px] top-1/2 transform -translate-y-1/2 text-menu-primary"}))})))),r.createElement("div",{className:"timepicker-widget-footer"},n))}},{key:"render",value:function(){var e=this,t=this.props,n=t.maxLength,i=t.placeholder,a=t.extraClassName,s=t.extraPlaceholderClassName,l=t.placeHolderChildren,c=t.wrapperClassName,u=t.renderInput,f=this.state.showWidget,d=this.state.value;d=d||"";var h=r.createElement("input",{ref:this.triggerRef,type:"text",maxLength:n,placeholder:i,className:o()(a,{hide:!d&&l}),onClick:function(t){e.highlightUnitAndShowWidget(t)},onKeyDown:this.elementKeydown,onCompositionEnd:this.handleCompositionEnd,value:d,onChange:this.compatibleBrowser?this.handleInputChange:this.onChangeTime,onBlur:this.blurTimePicker,onWheel:this.handleWheel,tabIndex:-1,style:{caretColor:"transparent"}});return r.createElement(r.Fragment,null,f&&this.renderWidget(),r.createElement(g.Z,{className:o()(s,{hide:!(!d&&l)}),onClick:function(t){if(!f){e.highlightUnitAndShowWidget(t);var n=e.triggerRef.current;setTimeout((function(){n.focus()}))}}},l),r.createElement(g.Z,{className:o()({hide:!d&&l},c),onClick:function(t){f||e.highlightUnitAndShowWidget(t)}},u?u(h):h))}}])&&w(n.prototype,i),a&&w(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);O.propTypes={defaultTime:s().string,maxLength:s().number,placeholder:s().string,extraClassName:s().string,isOpen:s().bool,showSeconds:s().bool,showInputs:s().bool,showMeridiem:s().bool,template:s().string,timeFormat:s().string,hourDifference:s().number,minuteDifference:s().number,hasWidget:s().bool,widgetFooterComponent:s().element,onAwake:s().func,onBlur:s().func,onChangeTime:s().func,startClock:s().string,endClock:s().string,isCrossDay:s().bool,extraPlaceholderClassName:s().string,placeHolderChildren:s().element,widgetStyle:s().any,onWidgetVisibleChange:s().func,itemHeight:s().number},O.defaultProps={defaultTime:"",maxLength:12,placeholder:"",extraClassName:"",isOpen:!1,showSeconds:!1,showInputs:!1,showMeridiem:!0,template:"dropdown",timeFormat:" | ",hourDifference:1,minuteDifference:15,hasWidget:!1,widgetFooterComponent:null,onAwake:null,onBlur:null,onChangeTime:null,startClock:"",endClock:"",isCrossDay:!1,extraPlaceholderClassName:"",placeHolderChildren:null,widgetStyle:{},onWidgetVisibleChange:function(){},itemHeight:34},t.Z=O},snAW:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("fbCW"),n("x0AG"),n("pjDv"),n("yq1k"),n("4mDm"),n("oVuX"),n("2B1R"),n("+2oP"),n("7+zs"),n("sMBO"),n("qePV"),n("i6QF"),n("kSko"),n("NBAS"),n("ExoC"),n("07d7"),n("4l63"),n("SuFq"),n("TWNs"),n("rB9j"),n("LD7m"),n("ALS0"),n("JfAA"),n("JTJg"),n("PKPk"),n("Rm1S"),n("UxlC"),n("SYor"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("3KU8"),s=n.n(a),l=n("zoGk"),c=n("Ag2S"),u=n("y8mg"),f=n.n(u),d=n("5WEu"),h=n("4+DD"),p=n("V/jI"),m=n("AtZj"),g=n("yhZ0"),v=n("XoE2"),y=n("NMAO");function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function k(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function x(e,t,n){return t=S(t),function(e,t){if(t&&("object"===b(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,n||[],S(e).constructor):t.apply(e,n))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function O(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}var T=function(e){function t(e){var n,i,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=x(this,t,[e]),i=n,a=function(e){$(e.target).closest(n.widgetRef.current).length||$(e.target).closest(n.triggerRef.current).length||n.hideWidget()},(o=O(o="onBodyClick"))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,n.state={showWidget:!1,value:e.defaultTime},n.compatibleBrowser=null!==navigator.userAgent.toLowerCase().match(/safari|trident|msie 10\.0|edge/)&&null===navigator.userAgent.toLowerCase().match(/chrome/),n.highlightedUnit="",n.meridianPosition=e.timeFormat.length+(e.showSeconds?8:5),n.handleDifference(),n.highlightUnitAndShowWidget=n.highlightUnitAndShowWidget.bind(n),n.highlightUnit=n.highlightUnit.bind(n),n.elementKeydown=n.elementKeydown.bind(n),n.onChangeTime=n.onChangeTime.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.showWidget=n.showWidget.bind(n),n.hideWidget=n.hideWidget.bind(n),n.updateFromElementVal=n.updateFromElementVal.bind(n),n.handleWheel=n.handleWheel.bind(n),n.blurTimePicker=n.blurTimePicker.bind(n),n.handleCompositionEnd=n.handleCompositionEnd.bind(n),n.widgetRef=r.createRef(),n.triggerRef=r.createRef(),n.wrapperRef=r.createRef(),n.escListenId=f().uniqueId(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){document.addEventListener("click",this.onBodyClick,{capture:!0})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n=this.props.defaultTime;e.defaultTime!==n&&this.setState({value:e.defaultTime},(function(){t.scrollToRightWidgetPos()}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.state;!t.showWidget&&n.showWidget&&(this.wrapperRef.current&&h.iD($(this.wrapperRef.current)),c.jc.subscribe(this.escListenId,"timepicker",this.hideWidget),this.triggerRef.current&&this.triggerRef.current.parentElement&&c.jc.dangerousUpdatePopupId2TriggerEl(this.escListenId,this.triggerRef.current.parentElement),this.fixPosition(),this.scrollToRightWidgetPos()),t.showWidget&&!n.showWidget&&(this.wrapperRef.current&&h.Dh($(this.wrapperRef.current)),c.jc.unSubscribe(this.escListenId))}},{key:"componentWillUnmount",value:function(){c.jc.unSubscribe(this.escListenId),document.removeEventListener("click",this.onBodyClick,{capture:!0})}},{key:"onChangeTime",value:function(){}},{key:"normalizeTypedUnitValue",value:function(e,t,n){var r=this.props.showMeridiem;return 0===t?(e=e<0?0:e>23?23:e,r&&e<1&&n&&(e=1)):e=e<0?0:e>59?59:e,e}},{key:"handleInputChange",value:function(e){var t=this;if(this.compatibleBrowser&&e.target){var n=e.target.value;if(n){var r=this.props,i=r.showMeridiem,o=r.timeFormat,a=this.state.value||"",s=i?n.slice(0,n.lastIndexOf(o)):n,l=n.replace(s,""),c="hour"===this.highlightedUnit?0:1,u=s.split(":");if(u.length<2)this.setState({value:n});else{var f=(u[c]||"").trim(),d=parseInt(u[c],10);if(Number.isNaN(d))return this.setTime(n),void this.setState({value:this.getTime()});var h=this._lastInputChangeUnit===this.highlightedUnit,p=1===f.length,m=h&&Number.isInteger(this._pendingInputDigit)?this._pendingInputDigit:null,g=!1;null!==m&&d<10&&d>=0&&p&&n!==a&&(d=10*m+d,g=!0),this._lastInputChangeUnit=this.highlightedUnit;var v=f.length>=2||g;if(d>=10||v){var y=this.normalizeTypedUnitValue(d,c,!0);this[this.highlightedUnit]=y,this._pendingInputDigit=null,u[c]=y<10?"0"+y:""+y;var b=u.join(":").concat(l);this.setState({value:b},(function(){t.highlightNextUnit(),t.updateFromElementVal()}))}else{var k=this.normalizeTypedUnitValue(d,c,!1);this[this.highlightedUnit]=k,this._pendingInputDigit=k,u[c]=" "+k;var w=u.join(":").concat(l);this.setState({value:w},(function(){t._highlightCurrentUnit()}))}}}else this.setState({value:n})}}},{key:"getTime",value:function(e){return this.formatTime(this.hour,this.minute,this.second,this.meridian,e)}},{key:"getCursorPosition",value:function(){var e=this.triggerRef.current;if(document.selection){e.focus();var t=document.selection.createRange(),n=document.selection.createRange().text.length;return t.moveStart("character",-e.value.length),t.text.length-n}return"selectionStart"in e?e.selectionStart:null}},{key:"setTime",value:function(e,t){var n,r=this.props,i=r.showMeridiem,o=r.timeFormat,a=r.showSeconds;if(i){var s=new RegExp("([ 0-9:]+)"+o+"([ap]m)?","i"),c=e.match(s);if(!c)return;n=c[1].split(":"),this.meridian=c[2]}else n=e.split(":"),this.meridian=l.Z.dateFormatToMoment(e,"HH:mm").locale("en").format("A");this.hour=parseInt(n[0],10),this.minute=parseInt(n[1],10),this.second=parseInt(n[2],10),Number.isNaN(this.hour)&&(this.hour=0),Number.isNaN(this.minute)&&(this.minute=0),Number.isNaN(this.second)&&(this.second=0),i?(this.hour>12?(this.hour%=12,this.meridian="PM"):this.hour<1&&(this.hour=12),"am"===this.meridian||"a"===this.meridian?this.meridian="AM":"pm"!==this.meridian&&"p"!==this.meridian||(this.meridian="PM"),"AM"!==this.meridian&&"PM"!==this.meridian&&(this.meridian="AM")):this.hour>=24?(this.hour%=24,this.meridian="PM"):this.hour<0&&(this.hour=0,this.meridian="AM"),this.minute<0?this.minute=0:this.minute>=60&&(this.minute=59),a&&(Number.isNaN(this.second)||this.second<0?this.second=0:this.second>=60&&(this.second=59)),t||this.update()}},{key:"formatWidgetTime",value:function(e){var t=this.props,n=t.showMeridiem,r=t.timeFormat;e<0?e+=1440:e>=1440&&(e-=1440);var i=[];return i[1]=this.formatUnit(e%60),n?(i[0]=Math.floor(e/60),i[1]+=r+(i[0]>=12?"PM":"AM"),i[0]=i[0]||12,i[0]=i[0]>12?this.formatUnit(i[0]%12):this.formatUnit(i[0])):i[0]=this.formatUnit(Math.floor(e/60)),i.join(":")}},{key:"formatUnit",value:function(e){return e<10?"0"+e:e}},{key:"handleDifference",value:function(){var e=this.props,t=e.minuteDifference,n=e.hourDifference;t=parseInt(t,10),(n=parseInt(n,10))>24&&(n%=24),t>60&&(t%=60),this.minuteDifference=t,this.hourDifference=n}},{key:"highlightUnitAndShowWidget",value:function(e){var t=this.props.onAwake,n=this.state.showWidget,r=this.highlightedUnit;if(this.highlightUnit(e),"meridian"===this.highlightedUnit){t&&t();var i=this.triggerRef.current;return i&&i.value&&this.setTime(i.value,!0),void this.toggleMeridian(!0)}r!==this.highlightedUnit&&this.updateFromElementVal(),t&&t(),n?r===this.highlightedUnit&&this.hideWidget():this.showWidget()}},{key:"highlightUnit",value:function(e){var t=this.props.showSeconds,n=this.triggerRef.current;if(n)if(n.value){var r=y.W(e,n);void 0!==r&&null!==r||(r=this.getCursorPosition()),null==r||r<0||(r>=0&&r<=2?this.highlightHour():r>=3&&r<=5?this.highlightMinute():r>=6&&r<=8&&t?this.highlightSecond():r>=this.meridianPosition&&r<=this.meridianPosition+2&&this.highlightMeridian())}else this.highlightHour()}},{key:"_highlightHour",value:function(){"hour"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=$(this.triggerRef.current).get(0);this.highlightedUnit="hour",e.setSelectionRange&&e.setSelectionRange(0,2)}},{key:"_highlightMinute",value:function(){"minute"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=$(this.triggerRef.current).get(0);this.highlightedUnit="minute",e.setSelectionRange&&e.setSelectionRange(3,5)}},{key:"_highlightSecond",value:function(){"second"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=$(this.triggerRef.current).get(0);this.highlightedUnit="second",e.setSelectionRange&&e.setSelectionRange(6,8)}},{key:"_highlightMeridian",value:function(){"meridian"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.props.showSeconds,t=$(this.triggerRef.current).get(0);this.highlightedUnit="meridian",t.setSelectionRange&&(e?t.setSelectionRange(9,11):t.setSelectionRange(this.meridianPosition,this.meridianPosition+2))}},{key:"_highlightCurrentUnit",value:function(){switch(this.highlightedUnit){case"hour":this._highlightHour();break;case"minute":this._highlightMinute();break;case"second":this._highlightSecond();break;case"meridian":this._highlightMeridian()}}},{key:"highlightHour",value:function(){"hour"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.triggerRef.current;this.highlightedUnit="hour",e.setSelectionRange&&setTimeout((function(){e.setSelectionRange(0,2)}))}},{key:"highlightMinute",value:function(){"minute"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.triggerRef.current;this.highlightedUnit="minute",e.setSelectionRange&&setTimeout((function(){e.setSelectionRange(3,5)}))}},{key:"highlightSecond",value:function(){"second"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.triggerRef.current;this.highlightedUnit="second",e.setSelectionRange&&setTimeout((function(){e.setSelectionRange(6,8)}))}},{key:"highlightMeridian",value:function(){"meridian"!==this.highlightedUnit&&(this._lastInputChangeUnit=null,this._pendingInputDigit=null);var e=this.meridianPosition,t=this.triggerRef.current;this.highlightedUnit="meridian",t.setSelectionRange&&setTimeout((function(){t.setSelectionRange(e,e+2)}))}},{key:"updateFromElementVal",value:function(){var e=this.triggerRef.current.value;e&&this.setTime(e)}},{key:"handleCompositionEnd",value:function(){this.updateFromElementVal()}},{key:"blurTimePicker",value:function(){this.updateFromElementVal();var e=this.props.onBlur;e&&e({value:this.getTime(!0),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian})}},{key:"update",value:function(e){var t=this.props.onChangeTime;t&&t({value:this.getTime(!0),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}),this.setState({value:this.getTime()},e)}},{key:"updateWidget",value:function(){if(!1!==this.$widget){var e=this.props,t=e.showInputs,n=e.showSeconds,r=e.showMeridiem,i=this.hour<10?"0"+this.hour:this.hour,o=this.minute<10?"0"+this.minute:this.minute,a=this.second<10?"0"+this.second:this.second;t?(this.$widget.find("input.timepicker-hour").val(i),this.$widget.find("input.timepicker-minute").val(o),n&&this.$widget.find("input.timepicker-second").val(a),r&&this.$widget.find("input.timepicker-meridian").val(this.meridian)):(this.$widget.find("span.timepicker-hour").text(i),this.$widget.find("span.timepicker-minute").text(o),n&&this.$widget.find("span.timepicker-second").text(a),r&&this.$widget.find("span.timepicker-meridian").text(this.meridian))}}},{key:"formatTime",value:function(e,t,n,r,i){var o=this.props,a=o.showSeconds,s=o.timeFormat;n=n<10?"0"+n:n;var c=(e=e<10?"0"+e:e)+":"+(t=t<10?"0"+t:t)+(a?":"+n:"")+(i?" ":s)+r;return o.showMeridiem||(c=l.Z.dateFormatToMoment(c,"HH:mm").locale("en").format("HH:mm")),c}},{key:"toggleMeridian",value:function(e,t){e||this.hideWidget(),this.meridian="AM"===this.meridian?"PM":"AM",this.update(t)}},{key:"showWidget",value:function(){var e=this,t=this.props,n=t.hasWidget,r=t.onWidgetVisibleChange;n&&this.setState({showWidget:!0},(function(){e.fixPosition(),e.scrollToRightWidgetPos(),r(!0)}))}},{key:"fixPosition",value:function(){var e=this.props.alignRight,t=this.triggerRef.current.getBoundingClientRect(),n=t.top,r=t.bottom,i=t.height,o=window.innerHeight-r,a=n,s=280;o>284?(this.widgetRef.current.style.height="280px",this.widgetRef.current.style.top=t.top+i+4+"px"):a>284?(this.widgetRef.current.style.height="280px",this.widgetRef.current.style.top=t.top-s-4+"px"):(this.widgetRef.current.style.top=t.top+i+"px",this.widgetRef.current.style.height=o-4+"px"),e?this.widgetRef.current.style.right=window.innerWidth-(t.x+t.width)+"px":this.widgetRef.current.style.left=t.x+"px"}},{key:"scrollToRightWidgetPos",value:function(){var e=this.state.value;if(this.widgetRef.current){var t=0,n=d.ex(e),r=$(this.wrapperRef.current).find(".antiscroll-inner")[0];if("Invalid date"!==n){var i=Array.from(r.childNodes);-1===(t=i.findIndex((function(e){return e.className.includes("active")})))&&(t=i.findIndex((function(e){var t=e.childNodes[0].innerText,r=new Date("2000/01/01 ".concat(n.trim())).getTime();return new Date("2000/01/01 ".concat(t.trim())).getTime()>r})))}r.scrollTop=34*t}}},{key:"hideWidget",value:function(){var e=this.props,t=e.hasWidget,n=e.onWidgetVisibleChange;t&&this.setState({showWidget:!1},(function(){n(!1)}))}},{key:"handleWheel",value:function(e){var t=this,n=null,r=this.triggerRef.current;if(e.nativeEvent.deltaY<=0?r.scrollTop<=0&&(n="decrement"):r.scrollTop+r.clientHeight>=r.scrollHeight&&(n="increment"),n)switch(this.highlightedUnit){case"hour":this[n+"Hour"](null,(function(){t._highlightHour()}));break;case"minute":this[n+"Minute"](null,(function(){t._highlightMinute()}));break;case"second":this[n+"Second"]((function(){t._highlightMinute()}));break;case"meridian":this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}}},{key:"elementKeydown",value:function(e){var t=this;if(!e.nativeEvent||!e.nativeEvent.isComposing){var n=this.props,r=n.showMeridiem,i=n.isOpen,o=n.template,a=e.which?e.which:e.keyCode;switch(a){case 9:switch(this.updateFromElementVal(),this.highlightedUnit){case"hour":case"minute":case"meridian":e.preventDefault(),this.highlightNextUnit();break;case"second":r&&(e.preventDefault(),this.highlightNextUnit())}break;case 27:this.triggerRef.current.blur(),this.updateFromElementVal();break;case 37:e.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:if(e.preventDefault(),"meridian"===this.highlightedUnit||!i||"dropdown"!==o)switch(this.highlightedUnit){case"hour":this.decrementHour(null,(function(){t._highlightHour()}));break;case"minute":this.decrementMinute(null,(function(){t._highlightMinute()}));break;case"second":this.decrementSecond((function(){t._highlightSecond()}));break;case"meridian":this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}break;case 39:e.preventDefault(),this.updateFromElementVal(),this.highlightNextUnit();break;case 40:if(e.preventDefault(),"meridian"===this.highlightedUnit||!i||"dropdown"!==o)switch(this.highlightedUnit){case"hour":this.incrementHour(null,(function(){t._highlightHour()}));break;case"minute":this.incrementMinute(null,(function(){t._highlightMinute()}));break;case"second":this.incrementSecond((function(){t._highlightSecond()}));break;case"meridian":this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}break;case 13:i&&"dropdown"===o||this.hideWidget(),$(this.triggerRef.current).blur();break;default:if(this.compatibleBrowser)return;e.preventDefault();var s=parseInt(e.key,10);if(229===a&&Number.isNaN(s))return;var l=this.getCursorPosition();229===a&&this.compatibleBrowser?this.updateCompatibleInput():l<=1||l>2&&l<5?(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105||s>=0&&s<=9)&&(this.updateInputNumber(e.keyCode%48),c.jc.dangerousUpdatePopupId2TriggerEl(this.escListenId,void 0),this.hideWidget()):l===this.meridianPosition?[97,112,65,80].includes(e.keyCode)&&this.toggleMeridian(!1,(function(){t._highlightMeridian()})):l===this.meridianPosition+1&&[109,77].includes(e.keyCode)&&this.toggleMeridian(!1,(function(){t._highlightMeridian()}))}}}},{key:"highlightPrevUnit",value:function(){var e=this.props.showSeconds;switch(this.highlightedUnit){case"hour":this.highlightMeridian();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":e?this.highlightSecond():this.highlightMinute()}}},{key:"highlightNextUnit",value:function(){var e=this.props,t=e.showSeconds,n=e.showMeridiem;switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":t?this.highlightSecond():n?this.highlightMeridian():this.highlightHour();break;case"second":n?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}}},{key:"decrementHour",value:function(e,t){var n=this.props.showMeridiem;if(e=e||this.hourDifference)if(n){var r=!1;this.hour-=e,this.hour<1&&(this.hour+=12),11===this.hour&&(r=!r),r&&this.toggleMeridian(!0)}else this.hour-=e,this.hour<0&&(this.hour+=24);else this.decrementMinute();this.update(t)}},{key:"decrementMinute",value:function(e,t){e=e||this.minuteDifference,this.minute-=e,this.minute<0&&(this.minute+=60,this.decrementHour(1)),this.update(t)}},{key:"decrementSecond",value:function(e){var t=this.second-this.secondStep;t<0?(this.second=t+60,this.decrementMinute(1)):this.second=t,this.update(e)}},{key:"incrementHour",value:function(e,t){var n=this.props.showMeridiem;if(e=e||this.hourDifference)if(n){var r=!1;this.hour+=e,this.hour>12&&(this.hour-=12),12===this.hour&&(r=!r),r&&this.toggleMeridian(!0)}else this.hour+=e,this.hour>23&&(this.hour-=24);else this.incrementMinute();this.update(t)}},{key:"incrementMinute",value:function(e,t){e=e||this.minuteDifference,this.minute+=e,this.minute>59&&(this.minute-=60,this.incrementHour(1)),this.update(t)}},{key:"incrementSecond",value:function(e){var t=this.second+this.secondStep-this.second%this.secondStep;t>59?(this.second=t-60,this.incrementMinute(!0)):this.second=t,this.update(e)}},{key:"updateCompatibleInput",value:function(){var e=this.props,t=e.showMeridiem,n=e.timeFormat,r=$(this.triggerRef.current).val(),i=t?r.slice(0,r.lastIndexOf(n)):r,o="hour"===this.highlightedUnit?0:1;(i=i.split(":"))[o]=parseInt(i[o],10),this[this.highlightedUnit]=i[o],i[o]>=10&&(this.highlightNextUnit(),this.updateFromElementVal())}},{key:"updateInputNumber",value:function(e){var t=this,n=this.props,r=n.showMeridiem,i=n.timeFormat,o=$(this.triggerRef.current).val(),a=r?o.slice(0,o.lastIndexOf(i)):o,s=o.replace(a,""),l="hour"===this.highlightedUnit?0:1,c=0===(a=a.split(":"))[l].indexOf(" ");a[l]=parseInt(a[l],10),a[l]<10&&c?(a[l]=10*a[l]+e,this[this.highlightedUnit]=a[l],o=a.join(":").concat(s),this.setState({value:o},(function(){t.highlightNextUnit(),t.updateFromElementVal()}))):(this[this.highlightedUnit]=a[l],a[l]=" "+e,o=a.join(":").concat(s),this.setState({value:o},(function(){t._highlightCurrentUnit()})))}},{key:"clearTime",value:function(){this.triggerRef.current.value=""}},{key:"getTimeList",value:function(){for(var e=this,t=this.props,n=t.startClock,r=t.isCrossDay,i=t.endClock,o=[],a=[15,30,45],s=!1,l=0,c=0,u=n?+n.slice(3,5)%30:0,f=[],d=!1,h=new Date("2000/01/01 ".concat(i)).getTime();l<1440;)if(n&&!r&&i){var p=this.formatWidgetTime(l+u),m=this.formatWidgetTime(l+0),g=new Date("2000/01/01 ".concat(m)).getTime();if(n===p){s=!0,f.push.apply(f,k(a.map((function(t,n){var r=e.formatWidgetTime(l+u+t),i=new Date("2000/01/01 ".concat(r)).getTime(),o=!d&&i-h>=0;return o&&(d=!0),{text:r,isActive:o,displayInfo:t,unit:"time_mins"}})))),c=l,l+=60;continue}if(s){var v=g-h>=0&&!d,y=(l-c)/60;f.push({text:p,isActive:v,displayInfo:y,unit:1===y?"time_hr":"time_hrs"}),v&&(d=!0)}else{var b=g-h>=0&&!d;o.push({text:p,isActive:b,displayInfo:l/60,overDay:!0,unit:"time_hrs"}),b&&(d=!0)}l+=30}else{var w=this.formatWidgetTime(l),C=new Date("2000/01/01 ".concat(w)).getTime()-new Date("2000/01/01 ".concat(i)).getTime()>=0&&!d;C&&(d=!0),f.push({text:w,isActive:i?C:w===this.getTime(!0)}),l+=30}return o.forEach((function(e){e.displayInfo+=(1440-c)/60})),f.push.apply(f,o),f}},{key:"renderWidget",value:function(){var e=this,t=this.props,n=t.widgetFooterComponent,i=t.isCrossDay,a=t.endClock,s=t.widgetStyle,l=this.getTimeList(),c=!i&&a;return r.createElement(v.Z,null,r.createElement("div",{className:"timepicker-widget timecard-element dropdown-menu open flex flex-col overflow-hidden absolute z-menu ".concat(c?"inline":""),ref:this.widgetRef,style:s},r.createElement("div",{className:"timepicker-widget-content antiscroll-wrap",ref:this.wrapperRef},r.createElement("ul",{className:"timepicker-quick-selector antiscroll-inner"},l.map((function(t){var n=t.isActive;return r.createElement("li",{key:t.text,className:o()("dropdown-menu-item relative",{active:n,"color-theme":n}),onClick:function(){e.setTime(t.text),e.setState({showWidget:!1})}},r.createElement("a",null,t.text),c&&r.createElement("a",null,p.U2(t.unit,{s:t.displayInfo})),n&&r.createElement(m.Z,{name:"selected",className:"w-[18px] h-[18px] absolute right-[8px] top-1/2 transform -translate-y-1/2 text-menu-primary"}))})))),r.createElement("div",{className:"timepicker-widget-footer"},n)))}},{key:"render",value:function(){var e=this,t=this.props,n=t.maxLength,i=t.placeholder,a=t.extraClassName,s=t.extraPlaceholderClassName,l=t.placeHolderChildren,c=t.wrapperClassName,u=t.renderInput,f=this.state.showWidget,d=this.state.value;d=d||"";var h=r.createElement("input",{ref:this.triggerRef,type:"text",maxLength:n,placeholder:i,className:o()(a,{hide:!d&&l}),onClick:function(t){e.highlightUnitAndShowWidget(t)},onKeyDown:this.elementKeydown,onCompositionEnd:this.handleCompositionEnd,value:d,onChange:this.compatibleBrowser?this.handleInputChange:this.onChangeTime,onBlur:this.blurTimePicker,onWheel:this.handleWheel,tabIndex:-1,style:{caretColor:"transparent"}});return r.createElement(r.Fragment,null,f&&this.renderWidget(),r.createElement(g.Z,{className:o()(s,{hide:!(!d&&l)}),onClick:function(t){if(!f){e.highlightUnitAndShowWidget(t);var n=e.triggerRef.current;setTimeout((function(){n.focus()}))}}},l),r.createElement(g.Z,{className:o()({hide:!d&&l},c),onClick:function(t){f||e.highlightUnitAndShowWidget(t)}},u?u(h):h))}}])&&C(n.prototype,i),a&&C(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);T.propTypes={defaultTime:s().string,maxLength:s().number,placeholder:s().string,extraClassName:s().string,isOpen:s().bool,showSeconds:s().bool,showInputs:s().bool,showMeridiem:s().bool,template:s().string,timeFormat:s().string,hourDifference:s().number,minuteDifference:s().number,hasWidget:s().bool,widgetFooterComponent:s().element,onAwake:s().func,onBlur:s().func,onChangeTime:s().func,startClock:s().string,endClock:s().string,isCrossDay:s().bool,extraPlaceholderClassName:s().string,placeHolderChildren:s().element,widgetStyle:s().any,onWidgetVisibleChange:s().func},T.defaultProps={defaultTime:"",maxLength:12,placeholder:"",extraClassName:"",isOpen:!1,showSeconds:!1,showInputs:!1,showMeridiem:!0,template:"dropdown",timeFormat:" | ",hourDifference:1,minuteDifference:15,hasWidget:!1,widgetFooterComponent:null,onAwake:null,onBlur:null,onChangeTime:null,startClock:"",endClock:"",isCrossDay:!1,extraPlaceholderClassName:"",placeHolderChildren:null,widgetStyle:{},onWidgetVisibleChange:function(){}},t.Z=1223==n.j?T:null},NMAO:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});n("TeQF"),n("oVuX"),n("07d7"),n("rNhl");var r=function(e,t){var n,r=e&&e.nativeEvent;if(r&&t){var i;if(e.target===t&&"number"===typeof r.offsetX)i=r.offsetX;else if("number"===typeof r.clientX&&t.getBoundingClientRect){var o=t.getBoundingClientRect();r.clientX>=o.left&&r.clientX<=o.right&&r.clientY>=o.top&&r.clientY<=o.bottom&&(i=r.clientX-o.left)}"number"===typeof i&&(n=function(e,t){if(!e||!e.value)return 0;var n=window.getComputedStyle(e),r=parseFloat(n.paddingLeft)||0,i=parseFloat(n.paddingRight)||0,o=e.clientWidth-r-i;if(o<=0)return 0;var a=document.createElement("canvas").getContext("2d");if(!a)return 0;a.font=n.font||[n.fontSize,n.fontFamily].filter(Boolean).join(" ");var s=e.value,l=a.measureText(s).width,c=n.textAlign||"left",u=r;"center"===c?u=r+(o-l)/2:"right"!==c&&"end"!==c||(u=r+o-l);var f=t-u;if(f<=0)return 0;if(f>l+2)return 0;if(f>l)return s.length-1;for(var d=1;d<=s.length;d++)if(a.measureText(s.substring(0,d)).width>=f)return d-1;return s.length}(t,i))}return n}},"/0bn":function(e,t,n){"use strict";n.d(t,{e$:function(){return R},Cp:function(){return N},PR:function(){return I},rQ:function(){return D},$Z:function(){return j}});n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("ma9I"),n("TeQF"),n("yq1k"),n("4mDm"),n("2B1R"),n("7+zs"),n("qePV"),n("zKZe"),n("5DmW"),n("27RR"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("SuFq"),n("JTJg"),n("PKPk"),n("FZtP"),n("3bBZ");var r=n("q1tI"),i=n("i8i4"),o=n("Eh+D"),a=n("y8mg"),s=n.n(a),l=(n("rB9j"),n("JfAA"),n("UxlC"),n("4zF/")),c=n("AtZj"),u=n("EPMa"),f=n.n(u),d=n("MX2F"),h=n.n(d),p=n("5WEu"),m=n("d7tj");function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}var v=function(e){var t=e.text,n=e.dataAttrs,i=void 0===n?[]:n,o=e.delayTime,a=e.closable,s=void 0!==a&&a,u=e.actionText,d=e.isClose,v=void 0!==d&&d,y=e.actionType,b=e.canClick,k=e.onClose,w=e.onAction,C=e.onRemove,x=e.onClickAction,_=!!u&&"undo"===y,S=null!==o&&void 0!==o?o:_?5e3:3e3,E=(0,r.useRef)(null),O=(0,r.useRef)(null),T=(0,r.useRef)(null),L=(0,r.useRef)((new Date).getTime()),P=(0,r.useRef)(S),M=(0,l.D)(v),D=(0,r.useCallback)((function(){T.current&&(clearTimeout(T.current),T.current=null)}),[]),j=(0,r.useCallback)((function(){O.current||(O.current=setTimeout((function(){D(),C()}),200))}),[D,C]),N=(0,r.useCallback)((function(e){L.current=(new Date).getTime(),T.current=setTimeout((function(){E.current&&$(E.current).addClass("before-animation"),j()}),e)}),[j]);(0,r.useEffect)((function(){return setTimeout((function(){E.current&&$(E.current).removeClass("before-animation")})),N(S),function(){D()}}),[S,N,D]),(0,r.useEffect)((function(){v&&M!==v&&(E.current&&$(E.current).addClass("fast-close-animation"),j())}),[j,v,M]);var I=(0,p.$o)();return r.createElement("div",g({ref:E,className:f()("pop-tip tip-transition clearfix before-animation relative rounded-[10px] transform translate-y-0 transition-all duration-200 ease-in",h().popTip,b?"dropdown-toggle cursor-pointer":"",{"cursor-pointer":_}),style:{backgroundColor:I?"#2c2c2c":"rgba(5,8,15,.85)",border:I?"1px solid rgba(255, 255, 255, 0.1)":"1px solid transparent",boxShadow:"0 5px 11px 0 rgba(0,0,0, 0.2)",padding:"12px 16px"},onClick:function(){x&&x(),_&&(null===w||void 0===w||w())},onMouseEnter:function(){P.current=(new Date).getTime()-L.current,D()},onMouseLeave:function(){setTimeout((function(){E.current&&$(E.current).removeClass("before-animation")})),N(P.current)}},function(){var e=[];return i.forEach((function(t,n){e.push("data-{key}={val}".replace("{key}",n.toString()).replace("{val}",i[n]))})),e}()),s&&r.createElement("a",{className:"close line-right pl-[10px] float-right z-[1] relative",onClick:function(){D(),setTimeout((function(){k&&k()}),200)}},r.createElement(c.Z,{name:"close"})),u&&r.createElement("a",{className:"action line-right relative float-right text-pro flex z-[1] text-[14px]",onClick:function(){_||null===w||void 0===w||w()},style:{marginLeft:10,marginRight:-2}},"undo"===y?r.createElement(c.Z,{name:"undo",className:"i-s-18 w-[18px] h-[18px]"}):(0,m.tj)(u)),b?r.createElement("div",{className:"canClick flex items-center"},r.createElement("span",{className:"text line-left relative block truncate text-s text-white",style:{lineHeight:"18px"}},(0,m.tj)(t)),r.createElement(c.Z,{name:"chevron-right",className:"i-s-18 ml-[5px] text-white-40",style:{width:16,height:16,marginLeft:8,marginRight:-4}})):r.createElement("span",{className:"text line-left relative block truncate text-s text-white",style:{lineHeight:"18px"}},(0,m.tj)(t)))};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function _(e,t,n){return t=E(t),function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function T(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}var P=null,M=function(e){function t(){var e;C(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return T(e=_(this,t,[].concat(r)),"state",{notices:(0,o.List)()}),T(e,"has",(function(){return e.state.notices.size>0})),T(e,"add",(function(t){var n=t.key=t.key||s().uniqueId("toast_");e.setState((function(e){return{notices:e.notices.map((function(e){return e.isClose=!0,e})).push(w(w({},t),{},{key:n}))}}))})),T(e,"remove",(function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){return e.key!==t}))}}))})),T(e,"removeSome",(function(t){var n=e.state.notices.filter(t),r=n.map((function(e){return e.key}));e.setState((function(e){return{notices:e.notices.filter((function(e){return!r.includes(e.key)}))}})),n.forEach((function(e){e.onRemove&&e.onRemove()}))})),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this,t=this.state.notices;return r.createElement("div",{id:"outer-tip",className:"outer-tip z-[1070] bottom-[32px] absolute left-1/2 transform -translate-x-1/2 max-w-[612px]"},t.map((function(t){var n=!!t.onClickAction;return r.createElement(v,b({},t,{key:t.key,onAction:function(){e.remove(t.key),t.onAction()},onClose:function(){e.remove(t.key),t.onClose()},onRemove:function(){e.remove(t.key),t.onRemove&&t.onRemove()},onClickAction:function(){t.onClickAction&&(e.remove(t.key),t.onClickAction())},canClick:n}))})))}}])&&x(n.prototype,i),a&&x(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component),D=function(){var e=document.createElement("div");document.body.appendChild(e),i.render(r.createElement(r.StrictMode,null,r.createElement(M,{ref:function(e){P=e}})),e)},j=function(e){P&&P.add(e)},N=function(e){P&&P.remove(e)},I=function(e){P&&P.removeSome(e)},R=function(){return!!P&&P.has()}},lRVq:function(e,t,n){"use strict";var r=n("EItl"),i=n("AtZj"),o=n("5WEu"),a=n("q1tI");t.Z=function(e){!function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e);var t=(0,r.jV)(),n=(0,o.$o)(t);return a.createElement(i.Z,{name:n?"tooltip-arrow-dark":"tooltip-arrow",style:{width:14,height:6}})}},bqI8:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("zKZe"),n("tkto"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("51uB"),o=n("q9+P"),a=1223==n.j?["children","inner","placement"]:null;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.Z=1223==n.j?function(e){var t,n=e.children,c=e.inner,f=e.placement,d=u(e,a);switch(f){case"left":t=[-8,0];break;case"right":t=[8,0];break;case"top":t=[0,-3];break;case"bottom":t=[0,3];break;default:t=[0,0]}var h=r.createElement("div",{className:"text-grey-80 text-xs leading-[18px] flex items-center dark:bg-light-black"},c),p=l(r.useState(!1),2),m=p[0],g=p[1];return r.createElement(i.Z,s({},d,{overlayStyle:{position:"absolute"},visible:m,overlay:h,overlayClassName:"bg-white border-grey-10 border border-solid dark:bg-light-black inline-block px-[8px] py-[7px] rounded-s min-h-[24px] text-center z-[1070] shadow-md whitespace-nowrap",placement:f,mouseEnterDelay:o.d_,align:{offset:t},trigger:["hover"],onClick:function(){g(!1)},onVisibleChange:function(e){g(e)}}),n)}:null},SwPS:function(e,t,n){"use strict";var r=n("cFdC").Z;t.Z=r},"51uB":function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("4mDm"),n("zKZe"),n("NBAS"),n("tkto"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ"),n("gXIK"),n("ma9I"),n("7+zs"),n("qePV");var r=n("q1tI"),i=n("A5kP"),o=n("q9+P"),a=["children","boult","onPopupAlign","destroyPopupOnHide","placement","trigger","mouseEnterDelay"];function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"===s(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var y=function(e){function t(){var e;u(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return g(e=d(this,t,[].concat(r)),"saveBoult",(function(t){e.boult=t})),g(e,"saveTrigger",(function(t){e.trigger=t})),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(s=[{key:"getArrowContent",value:function(){var e=this.props,t=e.boult,n=e.boultClassName;return t?r.createElement("div",{className:n,ref:this.saveBoult}):null}},{key:"getTriggerElement",value:function(){var e=this.props.children,t={ref:this.saveTrigger};return r.cloneElement(e,t)}},{key:"onAlign",value:function(e,t){var n=this.props,r=n.boult,i=n.onPopupAlign;r&&this.setBoultPosition(t),i&&i(e,t)}},{key:"setBoultPosition",value:function(e){var t=e.offset,n=e.points[0],r=e.points[1],i=this.trigger?this.trigger.offsetWidth:0;"tl"===n&&"bl"===r&&(this.boult.style.position="absolute",this.boult.style.top="-8px",this.boult.style.left="".concat(-t[0]+i/2,"px")),"tr"===n&&"br"===r&&(this.boult.style.position="absolute",this.boult.style.top="-8px",this.boult.style.right="".concat(t[0]+i/2,"px"))}},{key:"render",value:function(){var e=this.props,t=(e.children,e.boult,e.onPopupAlign,e.destroyPopupOnHide),n=e.placement,s=e.trigger,u=e.mouseEnterDelay,f=c(e,a);return r.createElement(i.Z,l({},f,{arrowContent:this.getArrowContent(),onPopupAlign:this.onAlign.bind(this),destroyPopupOnHide:t,placement:n,trigger:s,mouseEnterDelay:u||o.d_}),this.getTriggerElement())}}])&&f(n.prototype,s),h&&f(n,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s,h}(r.Component);g(y,"defaultProps",{prefixCls:"tool-tip",trigger:["hover"],placement:"bottomLeft",boult:!1,destroyPopupOnHide:!0,boultClassName:"boult"}),t.Z=y},"+Aid":function(e,t,n){"use strict";var r=n("q1tI"),i=n("AtZj"),o=n("z8Uv");t.Z=function(e){var t=e.arrowPosition,n=e.children,a=e.relativeRef,s=e.gap,l=void 0===s?0:s,c=e.gap2,u=void 0===c?0:c,f=e.hideMenu,d=null!=t,h=(0,r.useCallback)((function(){f&&f()}),[f]);return r.createElement(o.Z,{relativeRef:a,hideMenu:h,noCover:!0,placement:"bottom-right",style:{background:"transparent",border:"none",boxShadow:"unset"},maskClassName:"transform transition-opacity delay-200 ease-linear",gap:l,gap2:u},r.createElement("div",{className:"hint-tip"},r.createElement("div",{className:"pop-tip relative py-[11px] px-[12px] bg-grey-90 dark:bg-[#2c2c2c] shadow-tip text-white rounded-[4px]",style:d?{marginTop:"10px"}:{}},n),d&&r.createElement(i.Z,{name:"pointer-up",style:t,className:"absolute top-[2px] w-[18px] h-[18px] text-grey-90 dark:text-main-background"})))}},cFdC:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("pjDv"),n("4mDm"),n("+2oP"),n("sMBO"),n("zKZe"),n("tkto"),n("07d7"),n("rB9j"),n("ALS0"),n("JfAA"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("51uB"),o=n("EPMa"),a=n.n(o),s=n("q9+P"),l=n("5VMf"),c=n("50wf"),u=n.n(c),f=["children","title","placement","trigger","mouseEnterDelay","offset","overlayClassName","textAlign","type","offsetIcon","customBoult"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var g=(0,r.forwardRef)((function(e,t){var n=e.children,o=e.title,c=e.placement,p=e.trigger,g=e.mouseEnterDelay,v=e.offset,y=e.overlayClassName,b=e.textAlign,k=void 0===b?"left":b,w=e.type,C=void 0===w?"normal":w,x=e.offsetIcon,_=void 0!==x&&x,S=e.customBoult,E=m(e,f),O=(0,r.useMemo)((function(){if(v)return v;var e,t=_?l.SO:0;switch(c){case"left":e=[-4-t,0];break;case"right":e=[4+t,0];break;case"top":e=[0,-4-t];break;case"bottom":e=[0,4+t];break;case"topRight":e=[4,-4];break;case"topLeft":e=[-4,-4];break;case"bottomLeft":e=[-4,4];break;case"bottomRight":e=[4,4];break;default:e=[0,0]}return e}),[_,c,v]),T=(0,r.useMemo)((function(){var e="text-left";switch(k){case"center":e="text-center";break;case"right":e="text-right"}return e}),[k]),L="string"===typeof o?r.createElement("div",{className:a()("text-white text-[13px] leading-[18px] break-words",T)},S,o):o,P=e.defaultVisible,M=h(r.useState(P||!1),2),D=M[0],j=M[1],N="normal"===C?"px-[8px] py-[3px] rounded-default":"px-[10px] py-[5px] rounded-[8px]";(0,r.useImperativeHandle)(t,(function(){return{setVisible:j}}));var I=E.boult,R=I||S;return r.createElement(i.Z,d({},E,{visible:D,boult:I,boultClassName:a()(u().arrow,E.boultClassName),overlay:L,overlayClassName:a()(N,"border border-solid border-transparent dark:border-grey-10 inline-block min-h-[24px] z-menu shadow-md whitespace-pre-wrap max-w-[264px]",R?"bg-[#303030]":"bg-grey-90 dark:bg-[#2c2c2c]",{"overflow-hidden":!R},y),placement:c,mouseEnterDelay:g||s.d_,align:{offset:O},trigger:p||["hover"],onClick:function(){j(!1)},onVisibleChange:function(e){(p||["hover"]).length>0&&j(e)}}),n)}));g.displayName="SidebarTooltip",t.Z=g},PJB4:function(e,t,n){"use strict";n("pNMO"),n("4Brf"),n("0oug"),n("gXIK"),n("4mDm"),n("7+zs"),n("sMBO"),n("qePV"),n("NBAS"),n("ExoC"),n("07d7"),n("SuFq"),n("PKPk"),n("3bBZ");var r=n("q1tI"),i=n("EPMa"),o=n.n(i),a=n("9w5L"),s=n.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"===l(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=u(this,t,[e]),"$input",void 0),n.state={inputValue:""},n.$input=null,n.onChange=n.onChange.bind(n),n.onBlur=n.onBlur.bind(n),n.onFocus=n.onFocus.bind(n),n.onKeyDown=n.onKeyDown.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){var e=this;this.props.autoFocus&&setTimeout((function(){var t;null===(t=e.$input)||void 0===t||t.focus()}))}},{key:"onChange",value:function(e){var t=this.props.onChange,n=e.currentTarget.value;this.setState({inputValue:n}),t&&t(n)}},{key:"onFocus",value:function(e){var t=this.props.onFocus,n=e.currentTarget.value;t&&t(n)}},{key:"onBlur",value:function(e){var t=this.props.onBlur,n=e.currentTarget.value;t&&t(n)}},{key:"onKeyDown",value:function(e){var t=this.props.onKeyDown;t&&t(e)}},{key:"getInputClassName",value:function(){var e=this.props,t=e.prefixCls,n=e.disabled,r=e.className,i=e.addonBefore,a=e.addonAfter,s=e.isAbsoluteGroup,l=(i||a)&&!s;return o()(t,p(p(p({},"".concat(t,"-disabled"),n),"block h-[36px] w-full px-[12px] rounded-select-trigger text-[14px] border border-solid border-grey-10 focus:border-primary dark:bg-[transparent]","tick-input"===t),"rounded-tr-none rounded-br-none relative z-100",l),r)}},{key:"reset",value:function(){var e=this.props.onChange;this.$input&&(this.$input.value="",this.setState({inputValue:""},(function(){e&&e("")})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.addonBefore,a=t.addonBeforeCls,l=t.addonAfter,c=t.addonAfterCls,u=t.type,f=t.ph,d=t.id,h=t.defaultValue,m=t.maxLength,g=t.wrapperStyle,v=t.wrapperCls,y=t.name,b=t.autoComplete,k=t.isAbsoluteGroup,w="".concat(n,"-group"),C="tick-input"===n?"w-full inline-table mt-[14px] first:mt-0":"",x="".concat(n,"-addon"),_="tick-input"===n?"table-cell text-[13px] leading-none text-center align-middle h-[36px] relative z-[90]":"",S=i?r.createElement("span",{className:o()(x,a,_)},i):null,E=l?r.createElement("span",{className:o()(x,c,_)},l):null,O=i||l,T=o()("".concat(n,"-wrapper"),p(p(p({},w,O),C,O),"block mt-[14px] first:mt-[8px]","tick-input"===n&&!O),k&&"relative",s().inputWrapper,v);return r.createElement("span",{className:T,style:g},S,r.createElement("input",{type:u,placeholder:f,name:y,className:this.getInputClassName(),id:d,defaultValue:h,maxLength:m,autoComplete:b,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(t){e.$input=t}}),E)}}])&&c(n.prototype,i),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);p(g,"defaultProps",{prefixCls:"tick-input"}),t.Z=1223==n.j?g:null},C9Tx:function(e){"use strict";e.exports=function(e){function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)58===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="mark_open",a.tag="mark",a.nesting=1,a.markup="::",a.content="",(a=e.tokens[o.token]).type="mark_close",a.tag="mark",a.nesting=-1,a.markup="::",a.content="","text"===e.tokens[o.token-1].type&&":"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"mark_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.inline.ruler.before("emphasis","mark",(function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(58!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,(r.can_open||r.can_close)&&e.delimiters.push({marker:s,length:0,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0})),e.inline.ruler2.before("emphasis","mark",(function(e){var n,r=e.tokens_meta,i=(e.tokens_meta||[]).length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}))}},"0qXX":function(e){"use strict";e.exports=function(e){function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)126===(r=t[n]).marker&&-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"s_open":"underline_open",o.tag=s?"s":"u",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"s_close":"underline_close",o.tag=s?"s":"u",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.inline.ruler.before("emphasis","underline",(function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(126!==o)return!1;for(r=e.scanDelims(e.pos,!0),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0})),e.inline.ruler2.before("emphasis","underline",(function(e){var n,r=e.tokens_meta,i=(e.tokens_meta||[]).length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}))}},wOLI:function(e,t,n){"use strict";t.Z=n.p+"i/e210679a3fe2c8b7250dd7256604c095.png"},"+nq8":function(e,t,n){"use strict";t.Z=n.p+"i/4a8a530cfa92f8e749ab15055a197bd9.png"},"1Cyt":function(e,t,n){"use strict";t.Z=n.p+"i/e4b1780d1933043f9f38f3b3edb142a8.png"},f1Gl:function(){},"h+fQ":function(e){e.exports={colorGrid:"colorGrid_Hr_-n",picker:"picker_Myo5z"}},vqoM:function(e){e.exports={inline:"inline_1lcnJ"}},RFL7:function(e){e.exports={menuItem:"menuItem_3FOX7",title:"title_1-b9F",checker:"checker_Ex-gX",disabledStyle:"disabledStyle_2ZFng"}},T7FL:function(e){e.exports={"ta-header":"ta-header_1eidj","t-activity":"t-activity_1nNPU"}},rg1a:function(e){e.exports={tooltip:"tooltip_1iM4R"}},"n+S7":function(e){e.exports={"t-activity":"t-activity_1xpkK"}},MX2F:function(e){e.exports={popTip:"popTip_3xKPl"}},"50wf":function(e){e.exports={arrow:"arrow_2RPMI"}},"9w5L":function(e){e.exports={inputWrapper:"inputWrapper_gvKB4"}},"5EkX":function(e){e.exports={cssLoading:"cssLoading_2iBMu",LOADING:"LOADING_2-KHi"}},Vy5M:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-archive",use:"ac-archive-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="ac-archive"><defs><clipPath id="ac-archive_a"><rect width="24" height="24" rx="0" /></clipPath></defs><g clip-path="url(#ac-archive_a)"><path d="M12.48842078125,4.3671875C12.75808078125,4.3671875,12.97665078125,4.5615585,12.97665078125,4.8020195L12.97665078125,8.8321275L14.41680078125,7.5477975C14.60750078125,7.3778375,14.91660078125,7.3778175,15.10730078125,7.5477975L15.79790078125,8.1640475C15.98860078125,8.3340775,15.98860078125,8.610267499999999,15.79790078125,8.7802975L12.34542078125,11.858677499999999C12.15474078125,12.0287075,11.84564078125,12.0287075,11.65496078125,11.858677499999999L8.20248078125,8.7802975C8.011800781249999,8.610267499999999,8.011800781249999,8.3340775,8.20248078125,8.1640475L8.892750781250001,7.5477975C9.08343078125,7.3777675,9.39272078125,7.3777675,9.583400781249999,7.5477975L11.02373078125,8.833567500000001L11.02373078125,4.8020195C11.02373078125,4.5615585,11.24230078125,4.3671875,11.51196078125,4.3671875L12.00019078125,4.3671875L12.48842078125,4.3671875ZM7.56656078125,5.0208745C7.83861078125,5.0208745,8.059290781249999,5.2152465,8.059290781249999,5.4557075L8.059290781249999,6.3268075C8.059290781249999,6.5672675,7.83861078125,6.7616375,7.56656078125,6.7616375L7.11900078125,6.7616375L5.19493078125,11.7694075L8.059290781249999,11.7694075C8.059290781249999,12.4650275,8.67440078125,13.0327375,9.45014078125,13.0724575L9.53692078125,13.0753375L14.46310078125,13.0753375C15.25010078125,13.0753375,15.89310078125,12.5313775,15.93810078125,11.8457175L15.94070078125,11.7694075L18.80470078125,11.7694075L16.88060078125,6.7616375L16.43330078125,6.7616375C16.161200781250002,6.7616375,15.94070078125,6.5672675,15.94070078125,6.3268075L15.94070078125,5.4557075C15.94070078125,5.2152465,16.161200781250002,5.0208745,16.43330078125,5.0208745L17.26150078125,5.0208745C17.90500078125,5.0208745,18.47080078125,5.3866675,18.66710078125,5.9222175L20.86670078125,11.8572375L20.86670078125,16.9945875C20.86670078125,17.6901875,20.25140078125,18.257887500000002,19.47570078125,18.297687500000002L19.38890078125,18.3004875L4.6109307812499996,18.3004875C3.79477378125,18.3004875,3.13330078125,17.7159875,3.13330078125,16.9945875L3.13330078125,11.8572375L5.30851078125,5.9970875C5.478020781250001,5.4216475,6.06579078125,5.0208745,6.738530781250001,5.0208745L7.56656078125,5.0208745ZM5.1036607812499994,13.5101675L6.707420781250001,13.5101675L6.74640078125,13.5591275C7.33494078125,14.2746675,8.268130781250001,14.7570875,9.33619078125,14.8117875L9.39335078125,14.8146875L9.53692078125,14.8175875L14.46290078125,14.8175875L14.58170078125,14.8160875C15.68630078125,14.7829875,16.66300078125,14.2874275,17.268200781250002,13.5404075L17.29220078125,13.5101675L18.896200781250002,13.5101675L18.896200781250002,16.5582875L5.1036607812499994,16.5582875L5.1036607812499994,13.5101675Z" fill-rule="evenodd" fill="#FFFFFF" /></g></symbol>'});a().add(s);t.default=1223==n.j?s:null},weIo:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-assign",use:"ac-assign-usage",viewBox:"0 0 48 48",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="ac-assign"><g fill-rule="evenodd"><path fill="none" d="M0 0H48V48H0z" /><path d="M24,23 C29.6322038,23 33.2800957,24.3734171 35.7974504,25.9828184 L36.2180815,26.2608151 C36.4230191,26.4007572 36.6200091,26.5419554 36.8095892,26.6836936 L37.3701084,27.1207423 L37.9057103,27.5726196 L38.3986399,28.0180039 L38.6303156,28.2366452 C40.0521338,29.5948387 41,31.6934194 41,33.8630968 L41,39.5483871 C41,40.9016774 40.0768485,42 38.9393939,42 L9.06060606,42 C7.92315152,42 7,40.9016774 7,39.5483871 L7,33.8630968 C7,31.6934194 7.74179303,29.5948387 9.16361121,28.2366452 L9.39587808,28.0180039 L9.8933105,27.5726196 L10.4373394,27.1207423 L11.0091363,26.6836936 C11.1415728,26.5867786 11.2776623,26.490116 11.4175499,26.3939349 L11.8487521,26.1070647 C14.4322581,24.4447518 18.2233807,23 24,23 Z M24,27 C19.3594847,27 16.1120074,27.9987327 13.6862417,29.6848199 L13.4382082,29.8616819 L12.934,30.246 L12.496,30.61 L12.1375838,30.9305714 L11.9265821,31.1290476 C11.4189835,31.6139318 11.0517463,32.5327105 11.0050374,33.6261983 L11,33.8630968 L11,38 L22.688,38 L22.52372,37.8366983 C22.2565721,37.5705113 22.2565237,37.1391263 22.5236119,36.8728799 L24.5396734,34.8628928 L19.1844598,34.8628928 C18.8064431,34.8628928 18.5,34.5577988 18.5,34.1814464 L18.5,32.8185536 C18.5,32.4422012 18.8064431,32.1371072 19.1844598,32.1371072 L24.5424112,32.1371072 L22.52372,30.1270125 C22.2564218,29.8608911 22.2564218,29.4294231 22.52372,29.1633017 L23.4916923,28.199591 C23.7589905,27.9334697 24.1923665,27.9334697 24.4596646,28.199591 L29.2995264,33.0181446 C29.5668245,33.284266 29.5668245,33.715734 29.2995264,33.9818554 L25.262,38 L37,38 L37,33.8630968 C37,32.9153905 36.603517,31.9244728 36.0222338,31.2865015 L35.8849074,31.145723 L35.7169723,30.9859424 L35.274,30.586 L34.843,30.223 L34.414425,29.8873148 C32.0321002,28.1061869 28.9842858,27.0705377 24.4720406,27.0034734 L24,27 Z M24,5.5 C28.418,5.5 32,9.082 32,13.5 C32,17.918 28.418,21.5 24,21.5 C19.582,21.5 16,17.918 16,13.5 C16,9.082 19.582,5.5 24,5.5 Z M24,9.5 C21.791139,9.5 20,11.291139 20,13.5 C20,15.708861 21.791139,17.5 24,17.5 C26.208861,17.5 28,15.708861 28,13.5 C28,11.291139 26.208861,9.5 24,9.5 Z" fill-rule="nonzero" /></g></symbol>'});a().add(s);t.default=1223==n.j?s:null},XWIN:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-cancel",use:"ac-cancel-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-cancel"><g fill-rule="evenodd"><path fill="none" d="M0 0H36V36H0z" /><path d="M28.75,5 C29.9926407,5 31,6.00735931 31,7.25 L31,28.75 C31,29.9926407 29.9926407,31 28.75,31 L7.25,31 C6.00735931,31 5,30.4926407 5,29.25 L5,7.25 C5,6.00735931 6.00735931,5 7.25,5 L28.75,5 Z M28,8 L8,8 L8,28 L28,28 L28,8 Z M14.1109127,11.9895924 L17.9996991,15.8776991 L21.8890873,11.9895924 C22.2495713,11.6291084 22.8168023,11.6013789 23.2090935,11.9064038 L23.3033009,11.9895924 L24.0104076,12.6966991 C24.3708916,13.0571831 24.3986211,13.6244142 24.0935962,14.0167054 L24.0104076,14.1109127 L20.1206991,17.9996991 L24.0104076,21.8890873 C24.4009319,22.2796116 24.4009319,22.9127766 24.0104076,23.3033009 L23.3033009,24.0104076 C22.9127766,24.4009319 22.2796116,24.4009319 21.8890873,24.0104076 L17.9996991,20.1206991 L14.1109127,24.0104076 C13.7504287,24.3708916 13.1831977,24.3986211 12.7909065,24.0935962 L12.6966991,24.0104076 L11.9895924,23.3033009 C11.6291084,22.9428169 11.6013789,22.3755858 11.9064038,21.9832946 L11.9895924,21.8890873 L15.8776991,17.9996991 L11.9895924,14.1109127 C11.5990681,13.7203884 11.5990681,13.0872234 11.9895924,12.6966991 L12.6966991,11.9895924 C13.0872234,11.5990681 13.7203884,11.5990681 14.1109127,11.9895924 Z" /></g></symbol>'});a().add(s);t.default=1223==n.j?s:null},HS1f:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-create",use:"ac-create-usage",viewBox:"0 0 48 48",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="ac-create"><path d="M18.75,6 C19.1642136,6 19.5,6.33578644 19.5,6.75 L19.5,16.4985 L29.25,16.5 C29.6642136,16.5 30,16.8357864 30,17.25 L30,18.75 C30,19.1642136 29.6642136,19.5 29.25,19.5 L19.5,19.4985 L19.5,29.25 C19.5,29.6642136 19.1642136,30 18.75,30 L17.25,30 C16.8357864,30 16.5,29.6642136 16.5,29.25 L16.5,19.4985 L6.75,19.5 C6.33578644,19.5 6,19.1642136 6,18.75 L6,17.25 C6,16.8357864 6.33578644,16.5 6.75,16.5 L16.5,16.4985 L16.5,6.75 C16.5,6.33578644 16.8357864,6 17.25,6 L18.75,6 Z" transform="translate(6 6)" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},DyYW:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-delete",use:"ac-delete-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-delete"><path d="M15.75,0 C17.7382251,0 19.365058,1.5473039 19.4920235,3.50343647 L19.5,3.75 L19.5,4.5 L26.25,4.5 C26.6642136,4.5 27,4.83578644 27,5.25 L27,6.75 C27,7.16421356 26.6642136,7.5 26.25,7.5 L25.5,7.5 L25.5,24.75 C25.5,26.7382251 23.9526961,28.365058 21.9965635,28.4920235 L21.75,28.5 L5.25,28.5 C3.2617749,28.5 1.63494199,26.9526961 1.50797652,24.9965635 L1.5,24.75 L1.5,7.5 L0.75,7.5 C0.335786438,7.5 0,7.16421356 0,6.75 L0,5.25 C0,4.83578644 0.335786438,4.5 0.75,4.5 L7.5,4.5 L7.5,3.75 C7.5,1.7617749 9.0473039,0.134941992 11.0034365,0.00797651952 L11.25,0 L15.75,0 Z M22.5,7.5 L4.5,7.5 L4.5,24.75 C4.5,25.0721661 4.70313007,25.3468886 4.9883007,25.4530781 L5.11518655,25.4879165 L5.25,25.5 L21.75,25.5 C22.1181898,25.5 22.4244126,25.2346873 22.4879165,24.8848134 L22.5,24.75 L22.5,7.5 Z M14.25,10.5 C14.6642136,10.5 15,10.8357864 15,11.25 L15,21.75 C15,22.1642136 14.6642136,22.5 14.25,22.5 L12.75,22.5 C12.3357864,22.5 12,22.1642136 12,21.75 L12,11.25 C12,10.8357864 12.3357864,10.5 12.75,10.5 L14.25,10.5 Z M15.75,3 L11.25,3 C10.8818102,3 10.5755874,3.26531274 10.5120835,3.61518655 L10.5,3.75 L10.5,4.5 L16.5,4.5 L16.5,3.75 C16.5,3.4278339 16.2968699,3.15311136 16.0116993,3.04692189 L15.8848134,3.0120835 L15.75,3 Z" transform="translate(4.5 3)" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},PdB9:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-done",use:"ac-done-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-done"><path d="M28.7631843,8.71653876 L30.2474967,10.0569927 C30.4524374,10.2420708 30.4685393,10.5582436 30.2834612,10.7631843 L17.4216433,25.0053405 L17.4216433,25.0053405 C16.9155201,25.5657811 16.0810337,25.6564673 15.4705554,25.2443665 L15.3229223,25.1308474 L6.31088065,16.8696662 C6.10796319,16.6836553 6.09356589,16.368614 6.27867168,16.1648705 L7.60926304,14.7003065 C7.79495304,14.4959201 8.11117251,14.4807636 8.31555899,14.6664536 C8.31629981,14.6671266 8.3170386,14.6678019 8.31777537,14.6684794 L16.182,21.9 L16.182,21.9 L28.0569664,8.75247957 C28.2420761,8.54758598 28.5582301,8.53149628 28.7631843,8.71653876 Z" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},EcGa:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-edit",use:"ac-edit-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-edit"><path d="M30.75,30 C31.1642136,30 31.5,30.3357864 31.5,30.75 L31.5,32.25 C31.5,32.6642136 31.1642136,33 30.75,33 L5.25,33 C4.83578644,33 4.5,32.6642136 4.5,32.25 L4.5,30.75 C4.5,30.3357864 4.83578644,30 5.25,30 L30.75,30 Z M22.5334234,3.56407942 L22.7262324,3.66350448 L26.6233468,5.91350448 C27.6362017,6.49827657 28.0223977,7.75162328 27.546329,8.79425265 L27.4469039,8.98706164 L17.8448222,25.6183551 L13.0938599,27.9674517 C12.1655974,28.4264279 11.0410182,28.0459961 10.582042,27.1177336 C10.4997519,26.9513047 10.4427898,26.7738901 10.4127306,26.5913664 L10.3916973,26.4073574 L10.0505936,21.1183551 L19.6526753,4.48706164 C20.2374474,3.47420667 21.4907941,3.08801074 22.5334234,3.56407942 Z M18.8855936,11.8141859 L13.1030015,21.8314294 L13.2777896,24.5286875 L15.7018277,23.3301304 L21.4836126,13.3141529 L18.8855936,11.8141859 Z M21.8765015,6.63528166 L20.3840936,9.21618595 L22.9835936,10.7161859 L24.4745777,8.13528166 L21.8765015,6.63528166 Z" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},aHiv:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-in",use:"ac-in-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-in"><path d="M13.0048282,14.4 L13.0048282,18.251065 L13.0048282,18.251065 L14.326394,16.9686982 C14.4849864,16.8149742 14.73816,16.8187481 14.8921,16.9771307 L15.7378346,17.848203 C15.8917253,18.0066978 15.8879878,18.2599363 15.7294899,18.4138238 C15.7294889,18.4138248 15.7294878,18.4138258 15.7294837,18.4138237 L12.0357853,22 L12.0357853,22 L8.2732695,18.4189119 C8.11325533,18.2666051 8.1069983,18.0134198 8.25929375,17.8533948 L9.09713908,16.9730749 C9.24946356,16.8131015 9.50262433,16.8068271 9.66268648,16.9590584 L10.9894916,18.221528 L10.9894916,18.221528 L10.9894916,14.4 C10.9894916,14.1790861 11.1685777,14 11.3894916,14 L12.6048282,14 C12.8257421,14 13.0048282,14.1790861 13.0048282,14.4 Z M18.4138237,8.27051634 L22,11.9642147 L22,11.9642147 L18.4189119,15.7267305 C18.2666051,15.8867447 18.0134198,15.8930017 17.8533948,15.7407063 L16.9730749,14.9028609 C16.8131015,14.7505364 16.8068271,14.4973757 16.9590584,14.3373135 L18.221528,13.0105084 L18.221528,13.0105084 L14.4,13.0105084 C14.1790861,13.0105084 14,12.8314223 14,12.6105084 L14,11.3951718 C14,11.1742579 14.1790861,10.9951718 14.4,10.9951718 L18.251065,10.9951718 L18.251065,10.9951718 L16.9686982,9.67360597 C16.8149742,9.51501355 16.8187481,9.26184004 16.9771307,9.10789995 L17.848203,8.2621654 C18.0066978,8.1082747 18.2599363,8.11201217 18.4138238,8.27051007 C18.4138248,8.27051113 18.4138258,8.27051219 18.4138237,8.27051634 Z M6.15179697,8.2621654 L7.02286931,9.10789995 C7.18125193,9.26184004 7.18502579,9.51501355 7.03130184,9.67360597 L5.74893496,10.9951718 L5.74893496,10.9951718 L9.6,10.9951718 C9.8209139,10.9951718 10,11.1742579 10,11.3951718 L10,12.6105084 C10,12.8314223 9.8209139,13.0105084 9.6,13.0105084 L5.77847204,13.0105084 L5.77847204,13.0105084 L7.04094157,14.3373135 C7.19317286,14.4973757 7.18689855,14.7505364 7.02692508,14.9028609 L6.14660517,15.7407063 C5.98658021,15.8930017 5.73339487,15.8867447 5.58108808,15.7267305 L2,11.9642147 L2,11.9642147 L5.58617633,8.27051634 C5.7400589,8.11201364 5.99329727,8.10827337 6.15179688,8.26215912 C6.15179794,8.26216015 6.151799,8.26216118 6.15179697,8.2621654 Z M12.0357853,2 L15.7294837,5.58617633 C15.8879864,5.7400589 15.8917266,5.99329727 15.7378409,6.15179688 C15.7378398,6.15179794 15.7378388,6.151799 15.7378346,6.15179697 L14.8921,7.02286931 C14.73816,7.18125193 14.4849864,7.18502579 14.326394,7.03130184 L13.0048282,5.74893496 L13.0048282,5.74893496 L13.0048282,9.6 C13.0048282,9.8209139 12.8257421,10 12.6048282,10 L11.3894916,10 C11.1685777,10 10.9894916,9.8209139 10.9894916,9.6 L10.9894916,5.77847204 L10.9894916,5.77847204 L9.66268648,7.04094157 C9.50262433,7.19317286 9.24946356,7.18689855 9.09713908,7.02692508 L8.25929375,6.14660517 C8.1069983,5.98658021 8.11325533,5.73339487 8.2732695,5.58108808 L12.0357853,2 L12.0357853,2 Z" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},xBhy:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-out",use:"ac-out-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-out"><g fill-rule="evenodd"><path d="M12,2 C17.5228475,2 22,6.4771525 22,12 C22,17.5228475 17.5228475,22 12,22 C6.4771525,22 2,17.5228475 2,12 C2,6.4771525 6.4771525,2 12,2 Z M12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 Z" fill-rule="nonzero" /><rect x="8" y="11" width="8" height="2" rx=".4" /></g></symbol>'});a().add(s);t.default=1223==n.j?s:null},G4dj:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-reopen",use:"ac-reopen-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-reopen"><path d="M14.2655811,17.5230012 C14.5359876,17.7933206 14.5568113,18.2187405 14.3280596,18.5129719 L14.2656115,18.5836309 L13.2049513,19.6442911 C12.9120581,19.9371843 12.4371843,19.9371843 12.1442911,19.6442911 L5.78033009,13.2803301 C5.48743687,12.9874369 5.48743687,12.5125631 5.78033009,12.2196699 L12.1442911,5.85570888 C12.4371843,5.56281566 12.9120581,5.56281566 13.2049513,5.85570888 L14.2656115,6.91636906 C14.5585047,7.20926227 14.5585047,7.68413601 14.2656115,7.97702923 L10.9921602,11.249789 L20.4,11.25 C25.6772456,11.25 30,15.2525504 30,20.25 C30,25.1728608 25.8053201,29.1302993 20.6356455,29.2473351 L20.4,29.25 L9,29.25 C8.58578644,29.25 8.25,28.9142136 8.25,28.5 L8.25,27 C8.25,26.5857864 8.58578644,26.25 9,26.25 L20.4,26.25 C24.0697674,26.25 27,23.5368216 27,20.25 C27,17.0229388 24.1753526,14.3488507 20.5994225,14.2526779 L20.4,14.25 L10.9921602,14.249789 L14.2655811,17.5230012 Z" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},jdf6:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-share-delete",use:"ac-share-delete-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-share-delete"><path d="M2.44826087,12.9967559 C2.72532677,12.9967559 2.94993311,13.2206135 2.94993311,13.4967559 L2.94993311,14.9967559 L14.9900669,14.9967559 L14.9900669,13.4967559 C14.9900669,13.2206135 15.2146732,12.9967559 15.4917391,12.9967559 L16.4950836,12.9967559 C16.7721495,12.9967559 16.9967559,13.2206135 16.9967559,13.4967559 L16.9967559,16.4967559 C16.9967559,16.7728982 16.7721495,16.9967559 16.4950836,16.9967559 L1.44491639,16.9967559 C1.16785048,16.9967559 0.943244147,16.7728982 0.943244147,16.4967559 L0.943244147,13.4967559 C0.943244147,13.2206135 1.16785048,12.9967559 1.44491639,12.9967559 L2.44826087,12.9967559 Z M9.22266211,-0.854652987 L9.29214161,-0.796797537 L14.7903337,4.6100567 C14.9644806,4.78362305 14.9838302,5.05304745 14.8483827,5.2479156 L14.7903337,5.3171635 L14.0808621,6.02427025 C13.9067152,6.1978366 13.6363897,6.21712175 13.4408698,6.0821257 L13.3713904,6.02427025 L9.94059873,2.6793394 L9.94075023,11.4917847 C9.94075023,11.7679271 9.71614395,11.9917847 9.43907799,11.9917847 L8.43573351,11.9917847 C8.15866761,11.9917847 7.93406127,11.7679271 7.93406127,11.4917847 L7.93279385,2.6793394 L4.50874731,6.02427025 C4.33460047,6.1978366 4.06427498,6.21712175 3.8687551,6.0821257 L3.79927565,6.02427025 L3.08980395,5.3171635 C2.91565711,5.14359715 2.89630746,4.87417275 3.031755,4.6793046 L3.08980395,4.6100567 L8.58266995,-0.796797537 C8.75681679,-0.970363887 9.02714227,-0.989649042 9.22266211,-0.854652987 Z" transform="rotate(90 8.498 11.528)" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},kYoK:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-share-join",use:"ac-share-join-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-share-join"><path d="M15.5192536,3.02924143 C15.2421877,3.02924143 15.0175813,2.80538378 15.0175813,2.52924143 L15.0175813,1.02924143 L2.97744754,1.02924143 L2.97744754,2.52924143 C2.97744754,2.80538378 2.7528412,3.02924143 2.47577529,3.02924143 L1.47243081,3.02924143 C1.19536491,3.02924143 0.970758572,2.80538378 0.970758572,2.52924143 L0.970758572,-0.470758572 C0.970758572,-0.746900922 1.19536491,-0.970758572 1.47243081,-0.970758572 L16.522598,-0.970758572 C16.7996639,-0.970758572 17.0242703,-0.746900922 17.0242703,-0.470758572 L17.0242703,2.52924143 C17.0242703,2.80538378 16.7996639,3.02924143 16.522598,3.02924143 L15.5192536,3.02924143 Z M9.25017653,4.17783259 L9.31965603,4.23568804 L14.8178481,9.64254228 C14.991995,9.81610863 15.0113446,10.085533 14.8758971,10.2804012 L14.8178481,10.3496491 L14.1083765,11.0567558 C13.9342296,11.2303222 13.6639042,11.2496073 13.4683843,11.1146113 L13.3989048,11.0567558 L9.96811315,7.71182498 L9.96826466,16.5242703 C9.96826466,16.8004126 9.74365837,17.0242703 9.46659242,17.0242703 L8.46324794,17.0242703 C8.18618203,17.0242703 7.9615757,16.8004126 7.9615757,16.5242703 L7.96030827,7.71182498 L4.53626173,11.0567558 C4.36211489,11.2303222 4.09178941,11.2496073 3.89626953,11.1146113 L3.82679008,11.0567558 L3.11731837,10.3496491 C2.94317153,10.1760827 2.92382188,9.90665833 3.05926942,9.71179018 L3.11731837,9.64254228 L8.61018437,4.23568804 C8.78433121,4.06212169 9.0546567,4.04283653 9.25017653,4.17783259 Z" transform="rotate(90 8.51 11.513)" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=1223==n.j?s:null},RlcN:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-unarchive",use:"ac-unarchive-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="ac-unarchive"><defs><clipPath id="ac-unarchive_a"><rect width="24" height="24" rx="0" /></clipPath></defs><g clip-path="url(#ac-unarchive_a)"><path d="M9.215988179779053,8.136655000000001Q9.039708179779053,8.136655000000001,8.915858179779054,8.021615L8.220058179779052,7.374675Q8.098368179779053,7.261675,8.098368179779053,7.102535Q8.098368179779053,6.943655,8.220058179779052,6.831645L11.699838179779054,3.599414Q11.823738179779053,3.4843607306,11.999958179779053,3.484375Q12.176158179779053,3.484375,12.300078179779053,3.599414L15.780038179779053,6.831645Q15.901638179779052,6.944615000000001,15.901738179779052,7.102535Q15.901738179779052,7.261425,15.780038179779053,7.374675L15.083938179779052,8.021615Q14.960038179779053,8.136605,14.783738179779053,8.136655000000001Q14.607638179779054,8.136655000000001,14.483638179779053,8.021615L12.913928179779052,6.563215L12.913928179779052,10.954495Q12.913928179779052,11.113025,12.792248179779053,11.226625Q12.668408179779053,11.341425000000001,12.492118179779053,11.341664999999999L11.507948179779053,11.341664999999999Q11.331638179779052,11.341664999999999,11.207828179779053,11.226625Q11.086218179779053,11.113895,11.086138179779052,10.954495L11.086138179779052,6.561975L9.516108179779053,8.021615Q9.392238179779053,8.136645,9.215988179779053,8.136655000000001ZM5.8265081797790526,4.753515Q6.210418179779053,4.480694,6.696568179779053,4.480143L7.531218179779053,4.480143Q7.709548179779053,4.480143,7.834738179779053,4.595185Q7.9574681797790525,4.707905,7.957508179779053,4.866085L7.957508179779053,5.7802050000000005Q7.957508179779053,5.938525,7.834738179779053,6.051105Q7.709508179779053,6.166125,7.531218179779053,6.166145L7.0310181797790525,6.166145L5.039788179779053,11.563085L7.959208179779052,11.563085Q7.984018179779053,12.094185,8.386588179779054,12.485875Q8.811548179779052,12.898565,9.425958179779052,12.931185L9.515948179779052,12.933655L14.482438179779052,12.933655Q15.102038179779052,12.933665,15.552538179779052,12.541535Q16.003538179779053,12.148335,16.039438179779054,11.576695L16.03973817977905,11.563085L18.959338179779053,11.563085L16.968138179779054,6.166145L16.468238179779053,6.166145Q16.289938179779053,6.166145,16.16473817977905,6.051105Q16.042038179779052,5.9384049999999995,16.04213817977905,5.7802050000000005L16.04213817977905,4.866085Q16.04213817977905,4.707735,16.16473817977905,4.595185Q16.289838179779053,4.480175,16.468238179779053,4.480143L17.30303817977905,4.480143Q17.767338179779053,4.480144,18.14123817977905,4.730015Q18.512538179779053,4.978505,18.653538179779055,5.3794249999999995L20.866438179779053,11.597725L20.866438179779053,16.977375000000002Q20.866438179779053,17.493575,20.480038179779054,17.869175Q20.092838179779054,18.245175,19.531038179779053,18.274974999999998L19.44613817977905,18.277375L4.552108179779053,18.277375Q3.9625681797790526,18.277375,3.546598179779053,17.895175000000002Q3.1331186784790526,17.514675,3.1331382175286526,16.977375000000002L3.1331382175286526,11.597725L5.322278179779053,5.4561150000000005L5.322898179779052,5.453645Q5.444268179779053,5.024615,5.8265081797790526,4.753515ZM4.978398179779052,13.250325L4.978398179779052,16.590175000000002L19.021038179779055,16.590175000000002L19.021038179779055,13.250325L17.299138179779053,13.250325L17.254338179779054,13.308465Q16.79873817977905,13.894075,16.113038179779053,14.239875Q15.406438179779053,14.595775,14.601138179779053,14.620875L14.482238179779053,14.622175L9.518738179779053,14.622175L9.375088179779052,14.619675L9.318648179779053,14.615975Q8.539278179779053,14.574375,7.860568179779053,14.226275Q7.203118179779053,13.889075,6.760428179779053,13.329495L6.699968179779052,13.250325L4.978398179779052,13.250325Z" fill-rule="evenodd" fill="#FFFFFF" /></g></symbol>'});a().add(s);t.default=1223==n.j?s:null},N8nS:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-undone",use:"ac-undone-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-undone"><g fill-rule="evenodd"><path fill="none" d="M0 0H36V36H0z" /><path d="M14.2655811,17.5230012 C14.5359876,17.7933206 14.5568113,18.2187405 14.3280596,18.5129719 L14.2656115,18.5836309 L13.2049513,19.6442911 C12.9120581,19.9371843 12.4371843,19.9371843 12.1442911,19.6442911 L5.78033009,13.2803301 C5.48743687,12.9874369 5.48743687,12.5125631 5.78033009,12.2196699 L12.1442911,5.85570888 C12.4371843,5.56281566 12.9120581,5.56281566 13.2049513,5.85570888 L14.2656115,6.91636906 C14.5585047,7.20926227 14.5585047,7.68413601 14.2656115,7.97702923 L10.9921602,11.249789 L20.4,11.25 C25.6772456,11.25 30,15.2525504 30,20.25 C30,25.1728608 25.8053201,29.1302993 20.6356455,29.2473351 L20.4,29.25 L9,29.25 C8.58578644,29.25 8.25,28.9142136 8.25,28.5 L8.25,27 C8.25,26.5857864 8.58578644,26.25 9,26.25 L20.4,26.25 C24.0697674,26.25 27,23.5368216 27,20.25 C27,17.0229388 24.1753526,14.3488507 20.5994225,14.2526779 L20.4,14.25 L10.9921602,14.249789 L14.2655811,17.5230012 Z" /></g></symbol>'});a().add(s);t.default=1223==n.j?s:null},Unmi:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-add-file",use:"ac-add-file-usage",viewBox:"0 0 48 48",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="ac-add-file"><path d="M17,26 C17.4909198,26 17.8992167,26.3537503 17.9838887,26.8202487 L18,27 L18,34 L18.0101854,34.3525456 C18.1926782,37.5021601 20.8046382,40 24,40 C27.1953618,40 29.8073218,37.5021601 29.9898146,34.3525456 L30,34 L30,27 C30,26.5090802 30.3537503,26.1007833 30.8202487,26.0161113 L31,26 L33,26 C33.4909198,26 33.8992167,26.3537503 33.9838887,26.8202487 L34,27 L34,34 L33.990761,34.4337792 C33.7636362,39.7553866 29.3775094,44 24,44 C18.6224906,44 14.2363638,39.7553866 14.009239,34.4337792 L14,34 L14,27 C14,26.5090802 14.3537503,26.1007833 14.8202487,26.0161113 L15,26 L17,26 Z M25,18 C25.5522847,18 26,18.4477153 26,19 L26,29 C26,29.5522847 25.5522847,30 25,30 L23,30 C22.4477153,30 22,29.5522847 22,29 L22,19 C22,18.4477153 22.4477153,18 23,18 L25,18 Z M24,4 C29.3775094,4 33.7636362,8.24461342 33.990761,13.5662208 L34,14 L34,21 C34,21.5522847 33.5522847,22 33,22 L31,22 C30.4477153,22 30,21.5522847 30,21 L30,14 C30,10.6862915 27.3137085,8 24,8 C20.8046382,8 18.1926782,10.4978399 18.0101854,13.6474544 L18,14 L18,21 C18,21.5522847 17.5522847,22 17,22 L15,22 C14.4477153,22 14,21.5522847 14,21 L14,14 C14,8.4771525 18.4771525,4 24,4 Z" transform="rotate(-45 24 24)" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=s},"11dH":function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-assign",use:"ac-assign-usage",viewBox:"0 0 48 48",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="ac-assign"><g fill-rule="evenodd"><path fill="none" d="M0 0H48V48H0z" /><path d="M24,23 C29.6322038,23 33.2800957,24.3734171 35.7974504,25.9828184 L36.2180815,26.2608151 C36.4230191,26.4007572 36.6200091,26.5419554 36.8095892,26.6836936 L37.3701084,27.1207423 L37.9057103,27.5726196 L38.3986399,28.0180039 L38.6303156,28.2366452 C40.0521338,29.5948387 41,31.6934194 41,33.8630968 L41,39.5483871 C41,40.9016774 40.0768485,42 38.9393939,42 L9.06060606,42 C7.92315152,42 7,40.9016774 7,39.5483871 L7,33.8630968 C7,31.6934194 7.74179303,29.5948387 9.16361121,28.2366452 L9.39587808,28.0180039 L9.8933105,27.5726196 L10.4373394,27.1207423 L11.0091363,26.6836936 C11.1415728,26.5867786 11.2776623,26.490116 11.4175499,26.3939349 L11.8487521,26.1070647 C14.4322581,24.4447518 18.2233807,23 24,23 Z M24,27 C19.3594847,27 16.1120074,27.9987327 13.6862417,29.6848199 L13.4382082,29.8616819 L12.934,30.246 L12.496,30.61 L12.1375838,30.9305714 L11.9265821,31.1290476 C11.4189835,31.6139318 11.0517463,32.5327105 11.0050374,33.6261983 L11,33.8630968 L11,38 L22.688,38 L22.52372,37.8366983 C22.2565721,37.5705113 22.2565237,37.1391263 22.5236119,36.8728799 L24.5396734,34.8628928 L19.1844598,34.8628928 C18.8064431,34.8628928 18.5,34.5577988 18.5,34.1814464 L18.5,32.8185536 C18.5,32.4422012 18.8064431,32.1371072 19.1844598,32.1371072 L24.5424112,32.1371072 L22.52372,30.1270125 C22.2564218,29.8608911 22.2564218,29.4294231 22.52372,29.1633017 L23.4916923,28.199591 C23.7589905,27.9334697 24.1923665,27.9334697 24.4596646,28.199591 L29.2995264,33.0181446 C29.5668245,33.284266 29.5668245,33.715734 29.2995264,33.9818554 L25.262,38 L37,38 L37,33.8630968 C37,32.9153905 36.603517,31.9244728 36.0222338,31.2865015 L35.8849074,31.145723 L35.7169723,30.9859424 L35.274,30.586 L34.843,30.223 L34.414425,29.8873148 C32.0321002,28.1061869 28.9842858,27.0705377 24.4720406,27.0034734 L24,27 Z M24,5.5 C28.418,5.5 32,9.082 32,13.5 C32,17.918 28.418,21.5 24,21.5 C19.582,21.5 16,17.918 16,13.5 C16,9.082 19.582,5.5 24,5.5 Z M24,9.5 C21.791139,9.5 20,11.291139 20,13.5 C20,15.708861 21.791139,17.5 24,17.5 C26.208861,17.5 28,15.708861 28,13.5 C28,11.291139 26.208861,9.5 24,9.5 Z" fill-rule="nonzero" /></g></symbol>'});a().add(s);t.default=s},sLFR:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-attachment",use:"ac-attachment-usage",viewBox:"152 -152 1024 1024",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="152 -152 1024 1024" id="ac-attachment"><path d="M864.5,212.1c-17-17-39.8-26.4-64.1-26.4c-24.3,0-47.1,9.4-64.1,26.4l-85.1,85l-53.1,53.2l-31.9,31.9c-2.8,2.8-5,6-6.6,9.9\tl-0.1,0.3c-1.5,3.7-2.2,7.5-2.2,11.3s0.7,7.6,2.2,11.3c1.5,3.8,3.8,7.2,6.7,10.2c5.7,5.7,13.4,8.9,21.6,8.9c8.1,0,15.7-3.1,21.5-8.8\tl32-32l53.1-53.2l85-85.1c5.6-5.6,13.1-8.7,21-8.7c8.1,0,15.4,3,21,8.7c2.9,2.9,5.1,6.1,6.4,9.6l0.1,0.1c1.4,3.5,2.2,7.3,2.2,11.2\ts-0.7,7.6-2.2,11.2c-1.5,3.7-3.7,7-6.5,9.8L651.5,467.1c-17,17-39.6,26.3-63.6,26.3c-23.9,0-46.5-9.4-63.6-26.3\tc-17-17-26.3-39.6-26.3-63.6c0-23.9,9.4-46.5,26.3-63.6L770.1,94.2c5.7-5.7,8.9-13.4,8.9-21.6c0-8.1-3.1-15.7-8.8-21.5l-0.1-0.1\tc-5.7-5.7-13.4-8.9-21.6-8.9c-8.1,0-15.7,3.1-21.5,8.8L513.1,265l-31.9,31.9c-14.5,14.5-25.6,31.3-33,49.8\tc-7.3,18.1-11.1,37.2-11.1,56.7c0,19.6,3.7,38.7,11.1,56.7c7.6,18.6,18.7,35.4,33.1,49.8c14.5,14.5,31.3,25.6,49.9,33\tc18.1,7.3,37.2,11.1,56.7,11.1c19.6,0,38.7-3.7,56.7-11.1c18.6-7.6,35.4-18.7,49.8-33.1l31.9-31.9l138.2-137.6l0,0\tc17-17,26.4-39.8,26.4-64.1C890.9,251.9,881.5,229.1,864.5,212.1z" /></symbol>'});a().add(s);t.default=s},u7vX:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-cancel",use:"ac-cancel-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-cancel"><g fill-rule="evenodd"><path fill="none" d="M0 0H36V36H0z" /><path d="M28.75,5 C29.9926407,5 31,6.00735931 31,7.25 L31,28.75 C31,29.9926407 29.9926407,31 28.75,31 L7.25,31 C6.00735931,31 5,30.4926407 5,29.25 L5,7.25 C5,6.00735931 6.00735931,5 7.25,5 L28.75,5 Z M28,8 L8,8 L8,28 L28,28 L28,8 Z M14.1109127,11.9895924 L17.9996991,15.8776991 L21.8890873,11.9895924 C22.2495713,11.6291084 22.8168023,11.6013789 23.2090935,11.9064038 L23.3033009,11.9895924 L24.0104076,12.6966991 C24.3708916,13.0571831 24.3986211,13.6244142 24.0935962,14.0167054 L24.0104076,14.1109127 L20.1206991,17.9996991 L24.0104076,21.8890873 C24.4009319,22.2796116 24.4009319,22.9127766 24.0104076,23.3033009 L23.3033009,24.0104076 C22.9127766,24.4009319 22.2796116,24.4009319 21.8890873,24.0104076 L17.9996991,20.1206991 L14.1109127,24.0104076 C13.7504287,24.3708916 13.1831977,24.3986211 12.7909065,24.0935962 L12.6966991,24.0104076 L11.9895924,23.3033009 C11.6291084,22.9428169 11.6013789,22.3755858 11.9064038,21.9832946 L11.9895924,21.8890873 L15.8776991,17.9996991 L11.9895924,14.1109127 C11.5990681,13.7203884 11.5990681,13.0872234 11.9895924,12.6966991 L12.6966991,11.9895924 C13.0872234,11.5990681 13.7203884,11.5990681 14.1109127,11.9895924 Z" /></g></symbol>'});a().add(s);t.default=s},JYB4:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-change-kind",use:"ac-change-kind-usage",viewBox:"0 0 15 15",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15" id="ac-change-kind"><path d="M12.8119,6.30847244140625C13.008,6.30847244140625,13.167,6.151322441406251,13.167,5.95746244140625L13.167,5.25543244140625C13.167,5.06157244140625,13.008,4.9044224414062505,12.8119,4.9044224414062505L5.22283,4.90441244140625L5.22283,3.86551644140625C5.22283,3.82566344140625,5.209099999999999,3.78699764140625,5.1839200000000005,3.75587784140625C5.12265,3.68018803140625,5.01091,3.66791624140625,4.93432,3.72846814140625L2.0666361,5.99592244140625C2.0245132,6.02922244140625,1.99999237061,6.07965244140625,1.99999237061,6.132962441406249C1.99999237061,6.229902441406249,2.0794945,6.30847244140625,2.177567,6.30847244140625L12.8119,6.30847244140625ZM2.355103,8.690062441406251C2.158959,8.690062441406251,2,8.84721244140625,2,9.04107244140625L2,9.74310244140625C2,9.93696244140625,2.158959,10.09411244140625,2.355103,10.09411244140625L9.94416,10.094122441406249L9.94416,11.13302244140625C9.94416,11.17287244140625,9.957889999999999,11.21153244140625,9.983080000000001,11.24265244140625C10.04434,11.31834244140625,10.15609,11.33062244140625,10.23267,11.27006244140625L13.1004,9.00261244140625C13.1425,8.969312441406249,13.167,8.91888244140625,13.167,8.86557244140625C13.167,8.76864244140625,13.0875,8.690062441406251,12.9894,8.690062441406251L2.355103,8.690062441406251Z" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=s},"j/XY":function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-changed-subtask",use:"ac-changed-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-changed-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M10.8314129,7.47893643 C10.6430902,5.89291177 9.28981798,4.65812824 7.65343412,4.65812824 C5.88859973,4.65812824 4.45235526,6.0943727 4.45235526,7.85849431 C4.45235526,8.70655613 4.78373408,9.47847482 5.32373396,10.0517296 L4.82891085,10.9087884 C4.7249279,11.0888922 4.786636,11.31919 4.96673976,11.4231729 C5.14684352,11.5271559 5.3771413,11.4654478 5.48112425,11.285344 L5.91016732,10.5422196 C6.33308309,10.8178519 6.82484549,10.9962923 7.35349226,11.0456402 L10.8314129,7.47893643 Z M11.2114596,7.08918799 L11.6147623,6.67559 C11.7313352,6.40305925 11.795868,6.10296334 11.795868,5.78779499 C11.795868,4.53999955 10.7843299,3.52846148 9.5365345,3.52846148 C9.01120728,3.52846148 8.52775541,3.70775115 8.1440309,4.00847845 C8.14387647,4.00859948 8.14372191,4.00872068 8.14356722,4.00884206 L8.14352985,4.00879443 C8.0655078,4.07001375 8.05188649,4.18289118 8.11310581,4.26091323 C8.140969,4.29642397 8.18118372,4.32013888 8.2257434,4.32733644 C9.63692049,4.55527839 10.7745907,5.61179522 11.1216917,6.97949201 C11.1343797,7.02948709 11.1683458,7.06845895 11.2114596,7.08918799 Z M8.02963331,7.67057291 L8.78274448,7.67057291 C8.99071039,7.67057291 9.15930007,7.83916259 9.15930007,8.04712849 C9.15930007,8.2550944 8.99071039,8.42368408 8.78274448,8.42368408 L7.27652215,8.42368408 L7.27652215,6.16435057 C7.27652215,5.95638467 7.44511182,5.78779499 7.65307773,5.78779499 C7.86104364,5.78779499 8.02963331,5.95638467 8.02963331,6.16435057 L8.02963331,7.67057291 Z M3.87240901,7.01409642 C3.8761375,7.01985499 3.88006608,7.02579463 3.88420486,7.03190852 C3.90719469,7.06599083 3.94192591,7.09041801 3.98177396,7.10053085 C4.0713566,7.12326559 4.16240783,7.06907466 4.18514257,6.97949201 C4.53224365,5.61179522 5.66991382,4.55527839 7.08109091,4.32733644 C7.12565059,4.32013888 7.16586531,4.29642397 7.1937285,4.26091323 C7.25494782,4.18289118 7.24132651,4.07001375 7.16330446,4.00879443 L7.16326709,4.00884206 C7.1631124,4.00872068 7.16295785,4.00859948 7.16280342,4.00847845 C6.7790789,3.70775115 6.29562703,3.52846148 5.77029981,3.52846148 C4.52250437,3.52846148 3.5109663,4.53999955 3.5109663,5.78779499 C3.5109663,6.23986109 3.64373611,6.66091715 3.87240901,7.01409642 Z M13.1066435,7.89542473 L13.1065341,7.89553413 C12.9113147,7.70031471 12.5948166,7.70026574 12.3995367,7.89542476 L8.30330177,11.988907 C7.28092247,13.7749776 6.86519423,14.7634743 7.05611704,14.9543971 C7.24703986,15.1453199 8.22163943,14.7156946 9.97991575,13.665521 L14.0761507,9.5720387 C14.0761872,9.57200225 14.0762236,9.57196579 14.0762601,9.57192933 C14.2715222,9.37666719 14.2715222,9.0600847 14.0762601,8.86482255 L13.1066435,7.89542473 Z M15.3463827,8.29387213 L15.8206008,7.74061774 C15.9786735,7.58254506 15.9786735,7.34543604 15.8206008,7.18736336 L14.714092,6.08085458 C14.5560193,5.9227819 14.3189103,5.9227819 14.1608376,6.08085458 L13.6075832,6.63410897 C13.4495106,6.79218165 13.4495106,7.02929067 13.6075832,7.18736336 L14.714092,8.29387213 C14.7931284,8.37290847 14.951201,8.37290847 15.0302374,8.37290847 C15.1092737,8.37290847 15.2673464,8.37290847 15.3463827,8.29387213 Z" transform="translate(1.5 1)" fill="#FFB119" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},eoaF:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-completed-subtask",use:"ac-completed-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-completed-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M4.22025459,3.67922154 C3.89416465,3.67922154 3.62981653,3.94356966 3.62981653,4.2696596 L3.62981653,4.28878348 C3.62981653,4.61487341 3.89416465,4.87922154 4.22025459,4.87922154 L11.098723,4.87922154 C11.4248129,4.87922154 11.6891611,4.61487341 11.6891611,4.28878348 L11.6891611,4.2696596 C11.6891611,3.94356966 11.4248129,3.67922154 11.098723,3.67922154 L4.22025459,3.67922154 Z M4.22025459,6.42824969 C3.89416465,6.42824969 3.62981653,6.69259781 3.62981653,7.01868775 L3.62981653,7.03781163 C3.62981653,7.36390156 3.89416465,7.62824969 4.22025459,7.62824969 L9.19694787,7.62824969 C9.52303781,7.62824969 9.78738593,7.36390156 9.78738593,7.03781163 L9.78738593,7.01868775 C9.78738593,6.69259781 9.52303781,6.42824969 9.19694787,6.42824969 L4.22025459,6.42824969 Z M7.62497983,12.1577289 L5.11016632,9.76070466 C4.77035808,9.43681241 4.23232253,9.44971488 3.90843028,9.78952311 C3.58453804,10.1293314 3.5974405,10.6673669 3.93724874,10.9912591 L7.04172324,13.9503258 C7.37136096,14.2645239 7.89005543,14.2631131 8.21797911,13.9471265 L15.0930743,7.32229845 C15.4311156,6.99656251 15.4410911,6.45846474 15.1153552,6.12042343 C14.7896192,5.78238212 14.2515215,5.77240664 13.9134801,6.09814257 L7.62497983,12.1577289 Z" transform="translate(1.5 1)" fill="#81BF2C" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},fw2W:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-create",use:"ac-create-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-create"><defs><clipPath id="ac-create_a"><rect width="24" height="24" rx="0" /></clipPath></defs><g clip-path="url(#ac-create_a)"><path d="M12.939936618804932,6.000546970367432Q12.939936618804932,5.7768709703674315,12.781776618804932,5.618709970367432Q12.623616618804931,5.460546970367432,12.399936618804933,5.460546970367432L11.599936618804932,5.460546970367432Q11.376266618804932,5.460546970367432,11.218096618804932,5.6187089703674316Q11.059936618804931,5.776873970367432,11.059936618804931,6.000546970367432L11.059936618804931,11.05976697036743L5.999921618804931,11.060546970367431Q5.776263618804932,11.060546970367431,5.618099618804932,11.218706970367432Q5.459936618804932,11.376876970367432,5.459936618804932,11.600546970367432L5.459936618804932,12.400546970367433Q5.459936618804932,12.624226970367431,5.6180986188049316,12.782386970367432Q5.7762606188049315,12.940546970367432,5.999942618804932,12.940546970367432L11.059936618804931,12.939766970367431L11.059936618804931,18.00054697036743Q11.059936618804931,18.22424697036743,11.218096618804932,18.38234697036743Q11.376266618804932,18.54054697036743,11.599936618804932,18.54054697036743L12.399936618804933,18.54054697036743Q12.623616618804931,18.54054697036743,12.781776618804932,18.38234697036743Q12.939936618804932,18.22424697036743,12.939936618804932,18.00054697036743L12.939936618804932,12.939766970367431L17.99993661880493,12.940546970367432Q18.22363661880493,12.940546970367432,18.38173661880493,12.782386970367432Q18.53993661880493,12.624226970367431,18.53993661880493,12.400546970367433L18.53993661880493,11.600546970367432Q18.53993661880493,11.37686697036743,18.38173661880493,11.218706970367432Q18.22363661880493,11.060546970367431,17.99993661880493,11.060546970367431L12.939936618804932,11.05976697036743L12.939936618804932,6.000546970367432Z" fill-rule="evenodd" /></g></symbol>'});a().add(s);t.default=s},sDGm:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-created-subtask",use:"ac-created-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-created-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M10.4991714,9.78027901 L7.9694991,9.78027901 C7.55528554,9.78027901 7.2194991,10.1160654 7.2194991,10.530279 C7.2194991,10.9444926 7.55528554,11.280279 7.9694991,11.280279 L10.4991714,11.280279 L10.4991714,13.8099513 C10.4991714,14.2241648 10.8349578,14.5599513 11.2491714,14.5599513 C11.6633849,14.5599513 11.9991714,14.2241648 11.9991714,13.8099513 L11.9991714,11.280279 L14.5288436,11.280279 C14.9430572,11.280279 15.2788436,10.9444926 15.2788436,10.530279 C15.2788436,10.1160654 14.9430572,9.78027901 14.5288436,9.78027901 L11.9991714,9.78027901 L11.9991714,7.25060674 C11.9991714,6.83639318 11.6633849,6.50060674 11.2491714,6.50060674 C10.8349578,6.50060674 10.4991714,6.83639318 10.4991714,7.25060674 L10.4991714,9.78027901 Z M3.78026489,3.64875232 C3.45417496,3.64875232 3.18982683,3.91310045 3.18982683,4.23919038 L3.18982683,4.25831426 C3.18982683,4.5844042 3.45417496,4.84875232 3.78026489,4.84875232 L10.6587333,4.84875232 C10.9848232,4.84875232 11.2491714,4.5844042 11.2491714,4.25831426 L11.2491714,4.23919038 C11.2491714,3.91310045 10.9848232,3.64875232 10.6587333,3.64875232 L3.78026489,3.64875232 Z M3.78026489,6.39778047 C3.45417496,6.39778047 3.18982683,6.6621286 3.18982683,6.98821853 L3.18982683,7.00734241 C3.18982683,7.33343235 3.45417496,7.59778047 3.78026489,7.59778047 L8.75938877,7.59778047 C9.08547871,7.59778047 9.34982683,7.33343235 9.34982683,7.00734241 L9.34982683,6.98821853 C9.34982683,6.6621286 9.08547871,6.39778047 8.75938877,6.39778047 L3.78026489,6.39778047 Z" transform="translate(1.5 1)" fill="#617FDE" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},GrfS:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-del-file",use:"ac-del-file-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-del-file"><path d="M15.75,0 C17.7382251,0 19.365058,1.5473039 19.4920235,3.50343647 L19.5,3.75 L19.5,4.5 L26.25,4.5 C26.6642136,4.5 27,4.83578644 27,5.25 L27,6.75 C27,7.16421356 26.6642136,7.5 26.25,7.5 L25.5,7.5 L25.5,24.75 C25.5,26.7382251 23.9526961,28.365058 21.9965635,28.4920235 L21.75,28.5 L5.25,28.5 C3.2617749,28.5 1.63494199,26.9526961 1.50797652,24.9965635 L1.5,24.75 L1.5,7.5 L0.75,7.5 C0.335786438,7.5 0,7.16421356 0,6.75 L0,5.25 C0,4.83578644 0.335786438,4.5 0.75,4.5 L7.5,4.5 L7.5,3.75 C7.5,1.7617749 9.0473039,0.134941992 11.0034365,0.00797651952 L11.25,0 L15.75,0 Z M22.5,7.5 L4.5,7.5 L4.5,24.75 C4.5,25.0721661 4.70313007,25.3468886 4.9883007,25.4530781 L5.11518655,25.4879165 L5.25,25.5 L21.75,25.5 C22.1181898,25.5 22.4244126,25.2346873 22.4879165,24.8848134 L22.5,24.75 L22.5,7.5 Z M14.25,10.5 C14.6642136,10.5 15,10.8357864 15,11.25 L15,21.75 C15,22.1642136 14.6642136,22.5 14.25,22.5 L12.75,22.5 C12.3357864,22.5 12,22.1642136 12,21.75 L12,11.25 C12,10.8357864 12.3357864,10.5 12.75,10.5 L14.25,10.5 Z M15.75,3 L11.25,3 C10.8818102,3 10.5755874,3.26531274 10.5120835,3.61518655 L10.5,3.75 L10.5,4.5 L16.5,4.5 L16.5,3.75 C16.5,3.4278339 16.2968699,3.15311136 16.0116993,3.04692189 L15.8848134,3.0120835 L15.75,3 Z" transform="translate(4.5 3)" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=s},evVp:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-delete-file",use:"ac-delete-file-usage",viewBox:"0 0 48 48",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" id="ac-delete-file"><g fill="none" fill-rule="evenodd"><circle fill="#E03131" cx="24" cy="24" r="24" /><path d="M23.8264382,28.0569664 C22.4802441,30.388643 19.4987409,31.1875343 17.1670644,29.8413403 C14.9157905,28.5415667 14.093415,25.7173194 15.2510559,23.4253987 L15.3826905,23.1819664 L20.3826905,14.5217124 C20.5207617,14.2825661 20.8265569,14.2006285 21.0657032,14.3386997 L23.4472731,15.7136997 C23.6864194,15.8517709 23.768357,16.1575661 23.6302858,16.3967124 L18.6302858,25.0569664 L18.6302858,25.0569664 C18.3196256,25.5950456 18.5039852,26.2830848 19.0420644,26.593745 C19.5353036,26.8785168 20.154551,26.7473346 20.493621,26.3090353 L20.578843,26.1819664 L26.016343,16.7639402 L26.1479776,16.5205079 C27.3056185,14.2285872 26.483243,11.4043399 24.2319691,10.1045663 C21.9806952,8.80479273 19.1236376,9.5047183 17.7175965,11.6532251 L17.5725953,11.8889402 L8.44759526,27.6939038 C8.30952408,27.9330501 8.00372887,28.0149877 7.76458256,27.8769165 L5.3830127,26.5019165 C5.14386639,26.3638453 5.06192881,26.0580501 5.2,25.8189038 L14.325,10.0139402 L14.325,10.0139402 L14.4958105,9.73054396 C16.9514535,5.82497821 22.0776318,4.53063209 26.1069691,6.85697105 C30.1363064,9.18331001 31.5784589,14.2698837 29.4239613,18.3493158 L29.2639382,18.6389402 L23.8264382,28.0569664 Z" transform="translate(6 6)" fill="#FFFFFF" /></g></symbol>'});a().add(s);t.default=s},qQfP:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-delete",use:"ac-delete-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-delete"><path d="M15.75,0 C17.7382251,0 19.365058,1.5473039 19.4920235,3.50343647 L19.5,3.75 L19.5,4.5 L26.25,4.5 C26.6642136,4.5 27,4.83578644 27,5.25 L27,6.75 C27,7.16421356 26.6642136,7.5 26.25,7.5 L25.5,7.5 L25.5,24.75 C25.5,26.7382251 23.9526961,28.365058 21.9965635,28.4920235 L21.75,28.5 L5.25,28.5 C3.2617749,28.5 1.63494199,26.9526961 1.50797652,24.9965635 L1.5,24.75 L1.5,7.5 L0.75,7.5 C0.335786438,7.5 0,7.16421356 0,6.75 L0,5.25 C0,4.83578644 0.335786438,4.5 0.75,4.5 L7.5,4.5 L7.5,3.75 C7.5,1.7617749 9.0473039,0.134941992 11.0034365,0.00797651952 L11.25,0 L15.75,0 Z M22.5,7.5 L4.5,7.5 L4.5,24.75 C4.5,25.0721661 4.70313007,25.3468886 4.9883007,25.4530781 L5.11518655,25.4879165 L5.25,25.5 L21.75,25.5 C22.1181898,25.5 22.4244126,25.2346873 22.4879165,24.8848134 L22.5,24.75 L22.5,7.5 Z M14.25,10.5 C14.6642136,10.5 15,10.8357864 15,11.25 L15,21.75 C15,22.1642136 14.6642136,22.5 14.25,22.5 L12.75,22.5 C12.3357864,22.5 12,22.1642136 12,21.75 L12,11.25 C12,10.8357864 12.3357864,10.5 12.75,10.5 L14.25,10.5 Z M15.75,3 L11.25,3 C10.8818102,3 10.5755874,3.26531274 10.5120835,3.61518655 L10.5,3.75 L10.5,4.5 L16.5,4.5 L16.5,3.75 C16.5,3.4278339 16.2968699,3.15311136 16.0116993,3.04692189 L15.8848134,3.0120835 L15.75,3 Z" transform="translate(4.5 3)" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=s},ns2z:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-deleted-subtask",use:"ac-deleted-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-deleted-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M3.78026489,3.64875232 C3.45417496,3.64875232 3.18982683,3.91310045 3.18982683,4.23919038 L3.18982683,4.25831426 C3.18982683,4.5844042 3.45417496,4.84875232 3.78026489,4.84875232 L10.6587333,4.84875232 C10.9848232,4.84875232 11.2491714,4.5844042 11.2491714,4.25831426 L11.2491714,4.23919038 C11.2491714,3.91310045 10.9848232,3.64875232 10.6587333,3.64875232 L3.78026489,3.64875232 Z M3.78026489,6.39778047 C3.45417496,6.39778047 3.18982683,6.6621286 3.18982683,6.98821853 L3.18982683,7.00734241 C3.18982683,7.33343235 3.45417496,7.59778047 3.78026489,7.59778047 L6.06988355,7.59778047 C6.39597349,7.59778047 6.66032161,7.33343235 6.66032161,7.00734241 L6.66032161,6.98821853 C6.66032161,6.6621286 6.39597349,6.39778047 6.06988355,6.39778047 L3.78026489,6.39778047 Z M3.78026489,9.14680862 C3.45417496,9.14680862 3.18982683,9.41115674 3.18982683,9.73724668 L3.18982683,9.75637056 C3.18982683,10.0824605 3.45417496,10.3468086 3.78026489,10.3468086 L6.06988355,10.3468086 C6.39597349,10.3468086 6.66032161,10.0824605 6.66032161,9.75637056 L6.66032161,9.73724668 C6.66032161,9.41115674 6.39597349,9.14680862 6.06988355,9.14680862 L3.78026489,9.14680862 Z M9.73233098,6.71338369 L9.03971691,6.71338369 C8.48743216,6.71338369 8.03971691,7.16109894 8.03971691,7.71338369 L8.03971691,7.88843968 L14.8101732,7.88843968 L14.8101732,7.71338369 C14.8101732,7.16109894 14.3624579,6.71338369 13.8101732,6.71338369 L13.1175591,6.71338369 L12.8485078,6.43321027 C12.6599421,6.23684951 12.3994695,6.12585569 12.1272296,6.12585569 L10.7226605,6.12585569 C10.4504206,6.12585569 10.189948,6.23684951 10.0013822,6.43321027 L9.73233098,6.71338369 Z M9.6019608,8.76973168 C9.160133,8.76973168 8.8019608,9.12790388 8.8019608,9.56973168 L8.8019608,13.1512477 C8.8019608,13.8139894 9.3392191,14.3512477 10.0019608,14.3512477 L12.8479293,14.3512477 C13.510671,14.3512477 14.0479293,13.8139894 14.0479293,13.1512477 L14.0479293,9.56973168 C14.0479293,9.12790388 13.6897571,8.76973168 13.2479293,8.76973168 L9.6019608,8.76973168 Z" transform="translate(1.5 1)" fill="#FF5B81" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},Db4J:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-done",use:"ac-done-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-done"><defs><clipPath id="ac-done_a"><rect width="24" height="24" rx="0" /></clipPath></defs><g clip-path="url(#ac-done_a)"><path d="M18.788600000000002,9.1503928125Q18.923299999999998,9.0156628125,18.923299999999998,8.8251928125Q18.923299999999998,8.6346628125,18.788600000000002,8.4999998125L18.0532,7.7646488125Q17.9185,7.6299344599,17.727899999999998,7.6298828125Q17.537300000000002,7.6298828125,17.4027,7.7646488125L10.52871,14.6382728125Q10.47598,14.691002812499999,10.40145,14.6910128125Q10.326889999999999,14.6910128125,10.27411,14.638262812499999L6.52061,10.8851428125Q6.38589,10.7504228125,6.19543,10.7503928125Q6.00487,10.7503928125,5.870112,10.8851428125L5.134768,11.6202928125Q5.0000346377,11.7550228125,5,11.9456828125Q5,12.1362128125,5.134724,12.2710628125L10.07616,17.2125128125Q10.21089,17.3472328125,10.40145,17.3472628125Q10.592030000000001,17.3472628125,10.726700000000001,17.2124828125L18.788600000000002,9.1503928125Z" fill-rule="evenodd" /></g></symbol>'});a().add(s);t.default=s},"2OZo":function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-edit",use:"ac-edit-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-edit"><path d="M30.75,30 C31.1642136,30 31.5,30.3357864 31.5,30.75 L31.5,32.25 C31.5,32.6642136 31.1642136,33 30.75,33 L5.25,33 C4.83578644,33 4.5,32.6642136 4.5,32.25 L4.5,30.75 C4.5,30.3357864 4.83578644,30 5.25,30 L30.75,30 Z M22.5334234,3.56407942 L22.7262324,3.66350448 L26.6233468,5.91350448 C27.6362017,6.49827657 28.0223977,7.75162328 27.546329,8.79425265 L27.4469039,8.98706164 L17.8448222,25.6183551 L13.0938599,27.9674517 C12.1655974,28.4264279 11.0410182,28.0459961 10.582042,27.1177336 C10.4997519,26.9513047 10.4427898,26.7738901 10.4127306,26.5913664 L10.3916973,26.4073574 L10.0505936,21.1183551 L19.6526753,4.48706164 C20.2374474,3.47420667 21.4907941,3.08801074 22.5334234,3.56407942 Z M18.8855936,11.8141859 L13.1030015,21.8314294 L13.2777896,24.5286875 L15.7018277,23.3301304 L21.4836126,13.3141529 L18.8855936,11.8141859 Z M21.8765015,6.63528166 L20.3840936,9.21618595 L22.9835936,10.7161859 L24.4745777,8.13528166 L21.8765015,6.63528166 Z" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=s},j4VI:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-edited-subtask",use:"ac-edited-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-edited-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M12.1866188,7.37899363 L12.1865094,7.37910304 C11.99129,7.18388361 11.6747919,7.18383465 11.479512,7.37899367 L7.38327706,11.4724759 C6.36089776,13.2585465 5.94516952,14.2470432 6.13609234,14.437966 C6.32701515,14.6288888 7.30161472,14.1992635 9.05989104,13.1490899 L13.156126,9.05560761 C13.1561625,9.05557116 13.1561989,9.0555347 13.1562354,9.05549824 C13.3514975,8.86023609 13.3514975,8.5436536 13.1562354,8.34839145 L12.1866188,7.37899363 Z M14.426358,7.77744103 L14.9005761,7.22418665 C15.0586488,7.06611396 15.0586488,6.82900494 14.9005761,6.67093226 L13.7940673,5.56442349 C13.6359946,5.40635081 13.3988856,5.40635081 13.2408129,5.56442349 L12.6875585,6.11767787 C12.5294858,6.27575056 12.5294858,6.51285958 12.6875585,6.67093226 L13.7940673,7.77744103 C13.8731036,7.85647737 14.0311763,7.85647737 14.1102127,7.85647737 C14.189249,7.85647737 14.3473217,7.85647737 14.426358,7.77744103 Z M3.78026489,3.64875232 C3.45417496,3.64875232 3.18982683,3.91310045 3.18982683,4.23919038 L3.18982683,4.25831426 C3.18982683,4.5844042 3.45417496,4.84875232 3.78026489,4.84875232 L10.6587333,4.84875232 C10.9848232,4.84875232 11.2491714,4.5844042 11.2491714,4.25831426 L11.2491714,4.23919038 C11.2491714,3.91310045 10.9848232,3.64875232 10.6587333,3.64875232 L3.78026489,3.64875232 Z M3.78026489,6.39778047 C3.45417496,6.39778047 3.18982683,6.6621286 3.18982683,6.98821853 L3.18982683,7.00734241 C3.18982683,7.33343235 3.45417496,7.59778047 3.78026489,7.59778047 L6.06988355,7.59778047 C6.39597349,7.59778047 6.66032161,7.33343235 6.66032161,7.00734241 L6.66032161,6.98821853 C6.66032161,6.6621286 6.39597349,6.39778047 6.06988355,6.39778047 L3.78026489,6.39778047 Z M3.78026489,9.14680862 C3.45417496,9.14680862 3.18982683,9.41115674 3.18982683,9.73724668 L3.18982683,9.75637056 C3.18982683,10.0824605 3.45417496,10.3468086 3.78026489,10.3468086 L6.06988355,10.3468086 C6.39597349,10.3468086 6.66032161,10.0824605 6.66032161,9.75637056 L6.66032161,9.73724668 C6.66032161,9.41115674 6.39597349,9.14680862 6.06988355,9.14680862 L3.78026489,9.14680862 Z" transform="translate(1.5 1)" fill="#FFB119" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},Odwd:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-in",use:"ac-in-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-in"><path d="M13.0048282,14.4 L13.0048282,18.251065 L13.0048282,18.251065 L14.326394,16.9686982 C14.4849864,16.8149742 14.73816,16.8187481 14.8921,16.9771307 L15.7378346,17.848203 C15.8917253,18.0066978 15.8879878,18.2599363 15.7294899,18.4138238 C15.7294889,18.4138248 15.7294878,18.4138258 15.7294837,18.4138237 L12.0357853,22 L12.0357853,22 L8.2732695,18.4189119 C8.11325533,18.2666051 8.1069983,18.0134198 8.25929375,17.8533948 L9.09713908,16.9730749 C9.24946356,16.8131015 9.50262433,16.8068271 9.66268648,16.9590584 L10.9894916,18.221528 L10.9894916,18.221528 L10.9894916,14.4 C10.9894916,14.1790861 11.1685777,14 11.3894916,14 L12.6048282,14 C12.8257421,14 13.0048282,14.1790861 13.0048282,14.4 Z M18.4138237,8.27051634 L22,11.9642147 L22,11.9642147 L18.4189119,15.7267305 C18.2666051,15.8867447 18.0134198,15.8930017 17.8533948,15.7407063 L16.9730749,14.9028609 C16.8131015,14.7505364 16.8068271,14.4973757 16.9590584,14.3373135 L18.221528,13.0105084 L18.221528,13.0105084 L14.4,13.0105084 C14.1790861,13.0105084 14,12.8314223 14,12.6105084 L14,11.3951718 C14,11.1742579 14.1790861,10.9951718 14.4,10.9951718 L18.251065,10.9951718 L18.251065,10.9951718 L16.9686982,9.67360597 C16.8149742,9.51501355 16.8187481,9.26184004 16.9771307,9.10789995 L17.848203,8.2621654 C18.0066978,8.1082747 18.2599363,8.11201217 18.4138238,8.27051007 C18.4138248,8.27051113 18.4138258,8.27051219 18.4138237,8.27051634 Z M6.15179697,8.2621654 L7.02286931,9.10789995 C7.18125193,9.26184004 7.18502579,9.51501355 7.03130184,9.67360597 L5.74893496,10.9951718 L5.74893496,10.9951718 L9.6,10.9951718 C9.8209139,10.9951718 10,11.1742579 10,11.3951718 L10,12.6105084 C10,12.8314223 9.8209139,13.0105084 9.6,13.0105084 L5.77847204,13.0105084 L5.77847204,13.0105084 L7.04094157,14.3373135 C7.19317286,14.4973757 7.18689855,14.7505364 7.02692508,14.9028609 L6.14660517,15.7407063 C5.98658021,15.8930017 5.73339487,15.8867447 5.58108808,15.7267305 L2,11.9642147 L2,11.9642147 L5.58617633,8.27051634 C5.7400589,8.11201364 5.99329727,8.10827337 6.15179688,8.26215912 C6.15179794,8.26216015 6.151799,8.26216118 6.15179697,8.2621654 Z M12.0357853,2 L15.7294837,5.58617633 C15.8879864,5.7400589 15.8917266,5.99329727 15.7378409,6.15179688 C15.7378398,6.15179794 15.7378388,6.151799 15.7378346,6.15179697 L14.8921,7.02286931 C14.73816,7.18125193 14.4849864,7.18502579 14.326394,7.03130184 L13.0048282,5.74893496 L13.0048282,5.74893496 L13.0048282,9.6 C13.0048282,9.8209139 12.8257421,10 12.6048282,10 L11.3894916,10 C11.1685777,10 10.9894916,9.8209139 10.9894916,9.6 L10.9894916,5.77847204 L10.9894916,5.77847204 L9.66268648,7.04094157 C9.50262433,7.19317286 9.24946356,7.18689855 9.09713908,7.02692508 L8.25929375,6.14660517 C8.1069983,5.98658021 8.11325533,5.73339487 8.2732695,5.58108808 L12.0357853,2 L12.0357853,2 Z" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},spUW:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-out",use:"ac-out-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-out"><g fill-rule="evenodd"><path d="M12,2 C17.5228475,2 22,6.4771525 22,12 C22,17.5228475 17.5228475,22 12,22 C6.4771525,22 2,17.5228475 2,12 C2,6.4771525 6.4771525,2 12,2 Z M12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 Z" fill-rule="nonzero" /><rect x="8" y="11" width="8" height="2" rx=".4" /></g></symbol>'});a().add(s);t.default=s},bVdz:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-reopen",use:"ac-reopen-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-reopen"><path d="M14.2655811,17.5230012 C14.5359876,17.7933206 14.5568113,18.2187405 14.3280596,18.5129719 L14.2656115,18.5836309 L13.2049513,19.6442911 C12.9120581,19.9371843 12.4371843,19.9371843 12.1442911,19.6442911 L5.78033009,13.2803301 C5.48743687,12.9874369 5.48743687,12.5125631 5.78033009,12.2196699 L12.1442911,5.85570888 C12.4371843,5.56281566 12.9120581,5.56281566 13.2049513,5.85570888 L14.2656115,6.91636906 C14.5585047,7.20926227 14.5585047,7.68413601 14.2656115,7.97702923 L10.9921602,11.249789 L20.4,11.25 C25.6772456,11.25 30,15.2525504 30,20.25 C30,25.1728608 25.8053201,29.1302993 20.6356455,29.2473351 L20.4,29.25 L9,29.25 C8.58578644,29.25 8.25,28.9142136 8.25,28.5 L8.25,27 C8.25,26.5857864 8.58578644,26.25 9,26.25 L20.4,26.25 C24.0697674,26.25 27,23.5368216 27,20.25 C27,17.0229388 24.1753526,14.3488507 20.5994225,14.2526779 L20.4,14.25 L10.9921602,14.249789 L14.2655811,17.5230012 Z" fill-rule="evenodd" /></symbol>'});a().add(s);t.default=s},"gf/6":function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-share-delete",use:"ac-share-delete-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-share-delete"><path d="M2.44826087,12.9967559 C2.72532677,12.9967559 2.94993311,13.2206135 2.94993311,13.4967559 L2.94993311,14.9967559 L14.9900669,14.9967559 L14.9900669,13.4967559 C14.9900669,13.2206135 15.2146732,12.9967559 15.4917391,12.9967559 L16.4950836,12.9967559 C16.7721495,12.9967559 16.9967559,13.2206135 16.9967559,13.4967559 L16.9967559,16.4967559 C16.9967559,16.7728982 16.7721495,16.9967559 16.4950836,16.9967559 L1.44491639,16.9967559 C1.16785048,16.9967559 0.943244147,16.7728982 0.943244147,16.4967559 L0.943244147,13.4967559 C0.943244147,13.2206135 1.16785048,12.9967559 1.44491639,12.9967559 L2.44826087,12.9967559 Z M9.22266211,-0.854652987 L9.29214161,-0.796797537 L14.7903337,4.6100567 C14.9644806,4.78362305 14.9838302,5.05304745 14.8483827,5.2479156 L14.7903337,5.3171635 L14.0808621,6.02427025 C13.9067152,6.1978366 13.6363897,6.21712175 13.4408698,6.0821257 L13.3713904,6.02427025 L9.94059873,2.6793394 L9.94075023,11.4917847 C9.94075023,11.7679271 9.71614395,11.9917847 9.43907799,11.9917847 L8.43573351,11.9917847 C8.15866761,11.9917847 7.93406127,11.7679271 7.93406127,11.4917847 L7.93279385,2.6793394 L4.50874731,6.02427025 C4.33460047,6.1978366 4.06427498,6.21712175 3.8687551,6.0821257 L3.79927565,6.02427025 L3.08980395,5.3171635 C2.91565711,5.14359715 2.89630746,4.87417275 3.031755,4.6793046 L3.08980395,4.6100567 L8.58266995,-0.796797537 C8.75681679,-0.970363887 9.02714227,-0.989649042 9.22266211,-0.854652987 Z" transform="rotate(90 8.498 11.528)" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},"3Aj3":function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-share-join",use:"ac-share-join-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="ac-share-join"><path d="M15.5192536,3.02924143 C15.2421877,3.02924143 15.0175813,2.80538378 15.0175813,2.52924143 L15.0175813,1.02924143 L2.97744754,1.02924143 L2.97744754,2.52924143 C2.97744754,2.80538378 2.7528412,3.02924143 2.47577529,3.02924143 L1.47243081,3.02924143 C1.19536491,3.02924143 0.970758572,2.80538378 0.970758572,2.52924143 L0.970758572,-0.470758572 C0.970758572,-0.746900922 1.19536491,-0.970758572 1.47243081,-0.970758572 L16.522598,-0.970758572 C16.7996639,-0.970758572 17.0242703,-0.746900922 17.0242703,-0.470758572 L17.0242703,2.52924143 C17.0242703,2.80538378 16.7996639,3.02924143 16.522598,3.02924143 L15.5192536,3.02924143 Z M9.25017653,4.17783259 L9.31965603,4.23568804 L14.8178481,9.64254228 C14.991995,9.81610863 15.0113446,10.085533 14.8758971,10.2804012 L14.8178481,10.3496491 L14.1083765,11.0567558 C13.9342296,11.2303222 13.6639042,11.2496073 13.4683843,11.1146113 L13.3989048,11.0567558 L9.96811315,7.71182498 L9.96826466,16.5242703 C9.96826466,16.8004126 9.74365837,17.0242703 9.46659242,17.0242703 L8.46324794,17.0242703 C8.18618203,17.0242703 7.9615757,16.8004126 7.9615757,16.5242703 L7.96030827,7.71182498 L4.53626173,11.0567558 C4.36211489,11.2303222 4.09178941,11.2496073 3.89626953,11.1146113 L3.82679008,11.0567558 L3.11731837,10.3496491 C2.94317153,10.1760827 2.92382188,9.90665833 3.05926942,9.71179018 L3.11731837,9.64254228 L8.61018437,4.23568804 C8.78433121,4.06212169 9.0546567,4.04283653 9.25017653,4.17783259 Z" transform="rotate(90 8.51 11.513)" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},dA6b:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-switched-subtask",use:"ac-switched-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-switched-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M4.77948594,4.12655427 C4.36527238,4.12655427 4.02948594,4.46234071 4.02948594,4.87655427 C4.02948594,5.29076783 4.36527238,5.62655427 4.77948594,5.62655427 L13.2205141,5.62655427 C13.6347276,5.62655427 13.9705141,5.29076783 13.9705141,4.87655427 C13.9705141,4.46234071 13.6347276,4.12655427 13.2205141,4.12655427 L4.77948594,4.12655427 Z M7.62306737,8.125 C7.20885381,8.125 6.87306737,8.46078644 6.87306737,8.875 C6.87306737,9.28921356 7.20885381,9.625 7.62306737,9.625 L13.2205141,9.625 C13.6347276,9.625 13.9705141,9.28921356 13.9705141,8.875 C13.9705141,8.46078644 13.6347276,8.125 13.2205141,8.125 L7.62306737,8.125 Z M7.62306737,12.1234457 C7.20885381,12.1234457 6.87306737,12.4592322 6.87306737,12.8734457 C6.87306737,13.2876593 7.20885381,13.6234457 7.62306737,13.6234457 L13.2205141,13.6234457 C13.6347276,13.6234457 13.9705141,13.2876593 13.9705141,12.8734457 C13.9705141,12.4592322 13.6347276,12.1234457 13.2205141,12.1234457 L7.62306737,12.1234457 Z M4.77948594,8.125 C4.36527238,8.125 4.02948594,8.46078644 4.02948594,8.875 C4.02948594,9.28921356 4.36527238,9.625 4.77948594,9.625 C5.1936995,9.625 5.52948594,9.28921356 5.52948594,8.875 C5.52948594,8.46078644 5.1936995,8.125 4.77948594,8.125 Z M4.77948594,12.1234457 C4.36527238,12.1234457 4.02948594,12.4592322 4.02948594,12.8734457 C4.02948594,13.2876593 4.36527238,13.6234457 4.77948594,13.6234457 C5.1936995,13.6234457 5.52948594,13.2876593 5.52948594,12.8734457 C5.52948594,12.4592322 5.1936995,12.1234457 4.77948594,12.1234457 Z" transform="translate(1.5 1)" fill="#617FDE" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},XKMj:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-switched-text",use:"ac-switched-text-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-switched-text"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M4.77948594,4.12655427 C4.36527238,4.12655427 4.02948594,4.46234071 4.02948594,4.87655427 C4.02948594,5.29076783 4.36527238,5.62655427 4.77948594,5.62655427 L13.2205141,5.62655427 C13.6347276,5.62655427 13.9705141,5.29076783 13.9705141,4.87655427 C13.9705141,4.46234071 13.6347276,4.12655427 13.2205141,4.12655427 L4.77948594,4.12655427 Z M4.77948594,8.11173914 C4.36527238,8.11173914 4.02948594,8.44752558 4.02948594,8.86173914 C4.02948594,9.2759527 4.36527238,9.61173914 4.77948594,9.61173914 L13.2205141,9.61173914 C13.6347276,9.61173914 13.9705141,9.2759527 13.9705141,8.86173914 C13.9705141,8.44752558 13.6347276,8.11173914 13.2205141,8.11173914 L4.77948594,8.11173914 Z M4.77948594,12.096924 C4.36527238,12.096924 4.02948594,12.4327104 4.02948594,12.846924 C4.02948594,13.2611376 4.36527238,13.596924 4.77948594,13.596924 L8.96007344,13.596924 C9.374287,13.596924 9.71007344,13.2611376 9.71007344,12.846924 C9.71007344,12.4327104 9.374287,12.096924 8.96007344,12.096924 L4.77948594,12.096924 Z" transform="translate(1.5 1)" fill="#617FDE" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},"4VgV":function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-undone-subtask",use:"ac-undone-subtask-usage",viewBox:"0 0 21 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 20" id="ac-undone-subtask"><path d="M9,0 C14,0 18,4 18,9 C18,14 14,18 9,18 C4,18 0,14 0,9 C0,4 4,0 9,0 Z M8.22363973,9.78886824 C8.48563041,8.65804462 9.42166916,7.85885164 10.5965158,7.85885164 C12.023093,7.85885164 13.1795624,9.015321 13.1795624,10.4418983 C13.1795624,11.8684755 12.023093,13.0249449 10.5965158,13.0249449 C10.1823022,13.0249449 9.84651577,13.3607313 9.84651577,13.7749449 C9.84651577,14.1891584 10.1823022,14.5249449 10.5965158,14.5249449 C12.8515201,14.5249449 14.6795624,12.6969026 14.6795624,10.4418983 C14.6795624,8.18689388 12.8515201,6.35885164 10.5965158,6.35885164 C8.6627358,6.35885164 7.12558421,7.70887863 6.74240811,9.54144114 L6.56196747,9.31048765 C6.34095419,9.02760355 5.93246463,8.97744733 5.64958052,9.19846062 C5.36669642,9.41947391 5.31654021,9.82796346 5.53755349,10.1108476 L6.79965745,11.726267 C7.02067074,12.0091511 7.42916029,12.0593073 7.7120444,11.838294 L9.3274638,10.57619 C9.61034791,10.3551768 9.66050412,9.94668721 9.43949083,9.6638031 C9.21847754,9.38091899 8.80998799,9.33076278 8.52710388,9.55177607 L8.22363973,9.78886824 Z M3.91087568,3.63290359 C3.58478575,3.63290359 3.32043762,3.89725171 3.32043762,4.22334165 L3.32043762,4.24246553 C3.32043762,4.56855547 3.58478575,4.83290359 3.91087568,4.83290359 L10.7893441,4.83290359 C11.115434,4.83290359 11.3797822,4.56855547 11.3797822,4.24246553 L11.3797822,4.22334165 C11.3797822,3.89725171 11.115434,3.63290359 10.7893441,3.63290359 L3.91087568,3.63290359 Z M3.91087568,6.38193174 C3.58478575,6.38193174 3.32043762,6.64627986 3.32043762,6.9723698 L3.32043762,6.99149368 C3.32043762,7.31758361 3.58478575,7.58193174 3.91087568,7.58193174 L6.19999956,7.58193174 C6.5260895,7.58193174 6.79043762,7.31758361 6.79043762,6.99149368 L6.79043762,6.9723698 C6.79043762,6.64627986 6.5260895,6.38193174 6.19999956,6.38193174 L3.91087568,6.38193174 Z" transform="translate(1.5 1)" fill="#B8B9BC" fill-rule="nonzero" /></symbol>'});a().add(s);t.default=s},Xb5N:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"ac-undone",use:"ac-undone-usage",viewBox:"0 0 36 36",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" id="ac-undone"><g fill-rule="evenodd"><path fill="none" d="M0 0H36V36H0z" /><path d="M14.2655811,17.5230012 C14.5359876,17.7933206 14.5568113,18.2187405 14.3280596,18.5129719 L14.2656115,18.5836309 L13.2049513,19.6442911 C12.9120581,19.9371843 12.4371843,19.9371843 12.1442911,19.6442911 L5.78033009,13.2803301 C5.48743687,12.9874369 5.48743687,12.5125631 5.78033009,12.2196699 L12.1442911,5.85570888 C12.4371843,5.56281566 12.9120581,5.56281566 13.2049513,5.85570888 L14.2656115,6.91636906 C14.5585047,7.20926227 14.5585047,7.68413601 14.2656115,7.97702923 L10.9921602,11.249789 L20.4,11.25 C25.6772456,11.25 30,15.2525504 30,20.25 C30,25.1728608 25.8053201,29.1302993 20.6356455,29.2473351 L20.4,29.25 L9,29.25 C8.58578644,29.25 8.25,28.9142136 8.25,28.5 L8.25,27 C8.25,26.5857864 8.58578644,26.25 9,26.25 L20.4,26.25 C24.0697674,26.25 27,23.5368216 27,20.25 C27,17.0229388 24.1753526,14.3488507 20.5994225,14.2526779 L20.4,14.25 L10.9921602,14.249789 L14.2655811,17.5230012 Z" /></g></symbol>'});a().add(s);t.default=s},lAuc:function(e,t,n){"use strict";n.r(t);var r=n("4BeY"),i=n.n(r),o=n("IaFt"),a=n.n(o),s=new(i())({id:"mini-delete",use:"mini-delete-usage",viewBox:"0 -2 12 12",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 -2 12 12" id="mini-delete"><path fill="none" d="M0 -2H12V10H0z" /><path d="M10.4 0.4L9.6 -0.4 6 3.3 2.4 -0.4 1.6 0.4 5.3 4 1.6 7.6 2.4 8.4 6 4.7 9.6 8.4 10.4 7.6 6.7 4z" /></symbol>'});a().add(s);t.default=s}}]);
//# sourceMappingURL=tt_modules.ap-39500e2a639c87f4665c.js.map