andoncloud-dashboard-toolkit 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- var e=require("react"),n=require("@mui/material"),t=require("@emotion/react"),r=require("react-dom"),i=require("react-i18next"),o=require("@mui/icons-material"),a=require("./assets/drag-icon.svg"),s=require("./assets/resize-icon.svg"),u=require("actioncable"),c=require("graphql-request"),l=require("andoncloud-sdk");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,n}var h=/*#__PURE__*/d(e),f=/*#__PURE__*/p(e),m=/*#__PURE__*/d(s),g=/*#__PURE__*/d(u);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},b.apply(null,arguments)}function v(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}function I(e,n){return n||(n=e.slice(0)),e.raw=n,e}var y={buttons:{paddingTop:function(e){return e.spacing(2)}},cancelButton:{marginRight:"10px"},popper:{".MuiTooltip-tooltip":{padding:"20px",fontSize:"14px",color:"rgba(0, 0, 0, 0.75)",borderRadius:"8px",backgroundColor:"white"},".MuiTooltip-arrow":{color:"white"}}},C=["children","confirmMessage","confirmButtonText","cancelButtonText","onCancel","onConfirm"],x=function(e){var t=e.children,r=e.confirmMessage,i=e.confirmButtonText,o=e.cancelButtonText,a=e.onCancel,s=e.onConfirm,u=v(e,C);return h.default.createElement(n.Tooltip,b({},u,{placement:"bottom-end",title:h.default.createElement(n.Box,null,h.default.createElement(n.Typography,null,r),h.default.createElement(n.Stack,{direction:"row",justifyContent:"flex-end",sx:y.buttons},h.default.createElement(n.Button,{color:"secondary",onClick:function(e){e.stopPropagation(),a()},sx:y.cancelButton},o),h.default.createElement(n.Button,{color:"error",onClick:function(e){e.stopPropagation(),s()}},i))),PopperProps:{sx:y.popper},arrow:!0}),t)};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 w(e){var n=function(e){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=A(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(n)?n:n+""}function R(e,n,t){return(n=w(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach(function(n){R(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n){if(e){if("string"==typeof e)return E(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?E(e,n):void 0}}function D(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=o.call(t)).done)&&(s.push(r.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,n)||T(e,n)||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 G(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n.includes(t=o[r])||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function k(){return k=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},k.apply(null,arguments)}function M(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V=function(){return!!e})()}function P(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)||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.")}()}const Y=Math.min,W=Math.max,F=Math.round,X=Math.floor,L=e=>({x:e,y:e});function H(){return"undefined"!=typeof window}function Z(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var n;return(null==e||null==(n=e.ownerDocument)?void 0:n.defaultView)||window}function J(e){var n;return null==(n=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:n.documentElement}function z(e){return!!H()&&(e instanceof Node||e instanceof j(e).Node)}function U(e){return!!H()&&(e instanceof Element||e instanceof j(e).Element)}function Q(e){return!!H()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function q(e){return!(!H()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function K(e){const{overflow:n,overflowX:t,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!["inline","contents"].includes(i)}function $(e){return j(e).getComputedStyle(e)}function ee(e){const n=function(e){if("html"===Z(e))return e;const n=e.assignedSlot||e.parentNode||q(e)&&e.host||J(e);return q(n)?n.host:n}(e);return function(e){return["html","body","#document"].includes(Z(e))}(n)?e.ownerDocument?e.ownerDocument.body:e.body:Q(n)&&K(n)?n:ee(n)}function ne(e,n,t){var r;void 0===n&&(n=[]),void 0===t&&(t=!0);const i=ee(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=j(i);if(o){const e=te(a);return n.concat(a,a.visualViewport||[],K(i)?i:[],e&&t?ne(e):[])}return n.concat(i,ne(i,[],t))}function te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function re(e){return U(e)?e:e.contextElement}function ie(e){const n=re(e);if(!Q(n))return L(1);const t=n.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const n=$(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=Q(e),o=i?e.offsetWidth:t,a=i?e.offsetHeight:r,s=F(t)!==o||F(r)!==a;return s&&(t=o,r=a),{width:t,height:r,$:s}}(n);let a=(o?F(t.width):t.width)/r,s=(o?F(t.height):t.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const oe=/*#__PURE__*/L(0);function ae(e,n,t,r){void 0===n&&(n=!1),void 0===t&&(t=!1);const i=e.getBoundingClientRect(),o=re(e);let a=L(1);n&&(r?U(r)&&(a=ie(r)):a=ie(e));const s=function(e,n,t){return void 0===n&&(n=!1),!(!t||n&&t!==j(e))&&n}(o,t,r)?function(e){const n=j(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:oe}(o):L(0);let u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,d=i.height/a.y;if(o){const e=j(o),n=r&&U(r)?j(r):r;let t=e,i=te(t);for(;i&&r&&n!==t;){const e=ie(i),n=i.getBoundingClientRect(),r=$(i),o=n.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=n.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,d*=e.y,u+=o,c+=a,t=j(i),i=te(t)}}return function(e){const{x:n,y:t,width:r,height:i}=e;return{width:r,height:i,top:t,left:n,right:n+r,bottom:t+i,x:n,y:t}}({width:l,height:d,x:u,y:c})}function se(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}var ue=e.useLayoutEffect,ce=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],le=function(){};function de(e,n){return n?"-"===n[0]?e+n:e+"__"+n:e}function pe(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var o=[].concat(r);if(n&&e)for(var a in n)n.hasOwnProperty(a)&&n[a]&&o.push("".concat(de(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var he=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===A(e)&&null!==e?[e]:[]},fe=function(e){return N({},G(e,ce))},me=function(e,n,t){var r=e.cx,i=e.getClassNames,o=e.className;return{css:(0,e.getStyles)(n,e),className:r(null!=t?t:{},i(n,e),o)}};function ge(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function be(e){return ge(e)?window.pageYOffset:e.scrollTop}function ve(e,n){ge(e)?window.scrollTo(0,n):e.scrollTop=n}function Ie(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:le,i=be(e),o=n-i,a=0;!function n(){var s,u=o*((s=(s=a+=10)/t-1)*s*s+1)+i;ve(e,u),a<t?window.requestAnimationFrame(n):r(e)}()}function ye(e,n){var t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),i=n.offsetHeight/3;r.bottom+i>t.bottom?ve(e,Math.min(n.offsetTop+n.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<t.top&&ve(e,Math.max(n.offsetTop-i,0))}function Ce(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var xe=!1,Ae="undefined"!=typeof window?window:{};Ae.addEventListener&&Ae.removeEventListener&&(Ae.addEventListener("p",le,{get passive(){return xe=!0}}),Ae.removeEventListener("p",le,!1));var we=xe;function Re(e){return null!=e}function Se(e,n,t){return e?n:t}var Ne,Ee,Te,De=["children","innerProps"],Ge=["children","innerProps"],Oe=function(e){return"auto"===e?"bottom":e},ke=/*#__PURE__*/e.createContext(null),Me=function(n){var t=n.children,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme,c=(e.useContext(ke)||{}).setPortalPlacement,l=e.useRef(null),d=D(e.useState(i),2),p=d[0],h=d[1],f=D(e.useState(null),2),m=f[0],g=f[1],b=u.spacing.controlHeight;return ue(function(){var e=l.current;if(e){var n="fixed"===a,t=function(e){var n=e.maxHeight,t=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var n=getComputedStyle(e),t="absolute"===n.position,r=/(auto|scroll)/;if("fixed"===n.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(n=getComputedStyle(i),(!t||"static"!==n.position)&&r.test(n.overflow+n.overflowY+n.overflowX))return i;return document.documentElement}(t),c={placement:"bottom",maxHeight:n};if(!t||!t.offsetParent)return c;var l,d=u.getBoundingClientRect().height,p=t.getBoundingClientRect(),h=p.bottom,f=p.height,m=p.top,g=t.offsetParent.getBoundingClientRect().top,b=a||ge(l=u)?window.innerHeight:l.clientHeight,v=be(u),I=parseInt(getComputedStyle(t).marginBottom,10),y=parseInt(getComputedStyle(t).marginTop,10),C=g-y,x=b-m,A=C+v,w=d-v-m,R=h-b+v+I,S=v+m-y,N=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:n};if(w>=f&&!a)return o&&Ie(u,R,N),{placement:"bottom",maxHeight:n};if(!a&&w>=r||a&&x>=r)return o&&Ie(u,R,N),{placement:"bottom",maxHeight:a?x-I:w-I};if("auto"===i||a){var E=n,T=a?C:A;return T>=r&&(E=Math.min(T-I-s,n)),{placement:"top",maxHeight:E}}if("bottom"===i)return o&&ve(u,R),{placement:"bottom",maxHeight:n};break;case"top":if(C>=f)return{placement:"top",maxHeight:n};if(A>=f&&!a)return o&&Ie(u,S,N),{placement:"top",maxHeight:n};if(!a&&A>=r||a&&C>=r){var D=n;return(!a&&A>=r||a&&C>=r)&&(D=a?C-y:A-y),o&&Ie(u,S,N),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!n,isFixedPosition:n,controlHeight:b});h(t.maxHeight),g(t.placement),null==c||c(t.placement)}},[i,o,a,s,r,c,b]),t({ref:l,placerProps:N(N({},n),{},{placement:m||Oe(o),maxHeight:p})})},_e=function(e,n){var t=e.theme,r=t.spacing.baseUnit;return N({textAlign:"center"},n?{}:{color:t.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Be=_e,Ve=_e,Pe=["size"],Ye=["innerProps","isRtl","size"],We="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuL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G4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Fe=function(e){var n=e.size,r=G(e,Pe);return t.jsx("svg",k({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:We},r))},Xe=function(e){return t.jsx(Fe,k({size:20},e),t.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Le=function(e){return t.jsx(Fe,k({size:20},e),t.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},He=function(e,n){var t=e.isFocused,r=e.theme,i=r.colors;return N({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:t?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit,":hover":{color:t?i.neutral80:i.neutral40}})},Ze=He,je=He,Je=t.keyframes(Ne||(Ee=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Te||(Te=Ee.slice(0)),Ne=Object.freeze(Object.defineProperties(Ee,{raw:{value:Object.freeze(Te)}})))),ze=function(e){var n=e.delay,r=e.offset;return t.jsx("span",{css:/*#__PURE__*/t.css({animation:"".concat(Je," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b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Li5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Ue=["data"],Qe=["innerRef","isDisabled","isHidden","inputClassName"],qe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ke={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":N({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},qe)},$e=function(e){return N({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},qe)},en=function(e){return t.jsx("div",e.innerProps,e.children)},nn={ClearIndicator:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||t.jsx(Xe,null))},Control:function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return t.jsx("div",k({ref:e.innerRef},me(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":e.isFocused,"control--menu-is-open":e.menuIsOpen}),i,{"aria-disabled":r||void 0}),n)},DropdownIndicator:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||t.jsx(Le,null))},DownChevron:Le,CrossIcon:Xe,Group:function(e){var n=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,c=e.label,l=e.theme,d=e.selectProps;return t.jsx("div",k({},me(e,"group",{group:!0}),u),t.jsx(a,k({},s,{selectProps:d,theme:l,getStyles:i,getClassNames:o,cx:r}),c),t.jsx("div",null,n))},GroupHeading:function(e){var n=G(fe(e),Ue);return t.jsx("div",k({},me(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"indicatorsContainer",{indicators:!0}),r),n)},IndicatorSeparator:function(e){return t.jsx("span",k({},e.innerProps,me(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var n=e.cx,r=e.value,i=fe(e),o=i.innerRef,a=i.isDisabled,s=i.isHidden,u=i.inputClassName,c=G(i,Qe);return t.jsx("div",k({},me(e,"input",{"input-container":!0}),{"data-value":r||""}),t.jsx("input",k({className:n({input:!0},u),ref:o,style:$e(s),disabled:a},c)))},LoadingIndicator:function(e){var n=e.innerProps,r=e.isRtl,i=e.size,o=void 0===i?4:i,a=G(e,Ye);return t.jsx("div",k({},me(N(N({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),t.jsx(ze,{delay:0,offset:r}),t.jsx(ze,{delay:160,offset:!0}),t.jsx(ze,{delay:320,offset:!r}))},Menu:function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return t.jsx("div",k({},me(e,"menu",{menu:!0}),{ref:r},i),n)},MenuList:function(e){var n=e.children,r=e.innerProps,i=e.innerRef;return t.jsx("div",k({},me(e,"menuList",{"menu-list":!0,"menu-list--is-multi":e.isMulti}),{ref:i},r),n)},MenuPortal:function(n){var i=n.appendTo,o=n.children,a=n.controlElement,s=n.innerProps,u=n.menuPlacement,c=n.menuPosition,l=e.useRef(null),d=e.useRef(null),p=D(e.useState(Oe(u)),2),h=p[0],f=p[1],m=e.useMemo(function(){return{setPortalPlacement:f}},[]),g=D(e.useState(null),2),b=g[0],v=g[1],I=e.useCallback(function(){if(a){var e=function(e){var n=e.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}(a),n="fixed"===c?0:window.pageYOffset,t=e[h]+n;t===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||v({offset:t,rect:e})}},[a,c,h,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);ue(function(){I()},[I]);var y=e.useCallback(function(){"function"==typeof d.current&&(d.current(),d.current=null),a&&l.current&&(d.current=function(e,n,t,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=re(e),l=i||o?[...c?ne(c):[],...ne(n)]:[];l.forEach(e=>{i&&e.addEventListener("scroll",t,{passive:!0}),o&&e.addEventListener("resize",t)});const d=c&&s?function(e,n){let t,r=null;const i=J(e);function o(){var e;clearTimeout(t),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();const c=e.getBoundingClientRect(),{left:l,top:d,width:p,height:h}=c;if(s||n(),!p||!h)return;const f={rootMargin:-X(d)+"px "+-X(i.clientWidth-(l+p))+"px "+-X(i.clientHeight-(d+h))+"px "+-X(l)+"px",threshold:W(0,Y(1,u))||1};let m=!0;function g(n){const r=n[0].intersectionRatio;if(r!==u){if(!m)return a();r?a(!1,r):t=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||se(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,t):null;let p,h=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(n)})),t()}),c&&!u&&f.observe(c),f.observe(n));let m=u?ae(e):null;return u&&function n(){const r=ae(e);m&&!se(m,r)&&t(),m=r,p=requestAnimationFrame(n)}(),t(),()=>{var e;l.forEach(e=>{i&&e.removeEventListener("scroll",t),o&&e.removeEventListener("resize",t)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(p)}}(a,l.current,I,{elementResize:"ResizeObserver"in window}))},[a,I]);ue(function(){y()},[y]);var C=e.useCallback(function(e){l.current=e,y()},[y]);if(!i&&"fixed"!==c||!b)return null;var x=t.jsx("div",k({ref:C},me(N(N({},n),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),o);return t.jsx(ke.Provider,{value:m},i?/*#__PURE__*/r.createPortal(x,i):x)},LoadingMessage:function(e){var n=e.children,r=void 0===n?"Loading...":n,i=e.innerProps,o=G(e,Ge);return t.jsx("div",k({},me(N(N({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},NoOptionsMessage:function(e){var n=e.children,r=void 0===n?"No options":n,i=e.innerProps,o=G(e,De);return t.jsx("div",k({},me(N(N({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},MultiValue:function(e){var n=e.children,r=e.components,i=e.data,o=e.innerProps,a=e.removeProps,s=e.selectProps,u=r.Label,c=r.Remove;return t.jsx(r.Container,{data:i,innerProps:N(N({},me(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":e.isDisabled})),o),selectProps:s},t.jsx(u,{data:i,innerProps:N({},me(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),t.jsx(c,{data:i,innerProps:N(N({},me(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},MultiValueContainer:en,MultiValueLabel:en,MultiValueRemove:function(e){var n=e.children;return t.jsx("div",k({role:"button"},e.innerProps),n||t.jsx(Xe,{size:14}))},Option:function(e){var n=e.children,r=e.isDisabled,i=e.innerRef,o=e.innerProps;return t.jsx("div",k({},me(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":e.isFocused,"option--is-selected":e.isSelected}),{ref:i,"aria-disabled":r},o),n)},Placeholder:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"placeholder",{placeholder:!0}),r),n)},SelectContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"container",{"--is-disabled":e.isDisabled,"--is-rtl":e.isRtl}),r),n)},SingleValue:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"singleValue",{"single-value":!0,"single-value--is-disabled":e.isDisabled}),r),n)},ValueContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",k({},me(e,"valueContainer",{"value-container":!0,"value-container--is-multi":e.isMulti,"value-container--has-value":e.hasValue}),r),n)}},tn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rn(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!((r=e[t])===(i=n[t])||tn(r)&&tn(i)))return!1;var r,i;return!0}for(var on="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},an=function(e){return t.jsx("span",k({css:on},e))},sn={guidance:function(e){var n=e.isSearchable,t=e.isMulti,r=e.tabSelectsValue,i=e.isInitialFocus;switch(e.context){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(t?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.label,t=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(e.action){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(t,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(t,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var n=e.context,t=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,n){return e&&e.length?"".concat(e.indexOf(n)+1," of ").concat(e.length):""};if("value"===n&&a)return"value ".concat(o," focused, ").concat(l(a,t),".");if("menu"===n&&c){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(o).concat(p,", ").concat(l(r,t),".")}return""},onFilter:function(e){var n=e.inputValue;return"".concat(e.resultsMessage).concat(n?" for search term "+n:"",".")}},un=function(n){var r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.focusableOptions,s=n.isFocused,u=n.selectValue,c=n.selectProps,l=n.id,d=n.isAppleDevice,p=c.ariaLiveMessages,h=c.getOptionLabel,f=c.inputValue,m=c.isMulti,g=c.isOptionDisabled,b=c.isSearchable,v=c.menuIsOpen,I=c.options,y=c.screenReaderStatus,C=c.tabSelectsValue,x=c.isLoading,A=c["aria-label"],w=c["aria-live"],R=e.useMemo(function(){return N(N({},sn),p||{})},[p]),S=e.useMemo(function(){var e,n="";if(r&&R.onChange){var t=r.options,i=r.removedValues,o=r.removedValue||r.option||(e=r.value,Array.isArray(e)?null:e),a=o?h(o):"",s=t||i||void 0,c=s?s.map(h):[],l=N({isDisabled:o&&g(o,u),label:a,labels:c},r);n=R.onChange(l)}return n},[r,R,g,u,h]),E=e.useMemo(function(){var e="",n=i||o,t=!!(i&&u&&u.includes(i));if(n&&R.onFocus){var r={focused:n,label:h(n),isDisabled:g(n,u),isSelected:t,options:a,context:n===i?"menu":"value",selectValue:u,isAppleDevice:d};e=R.onFocus(r)}return e},[i,o,h,g,R,a,u,d]),T=e.useMemo(function(){var e="";if(v&&I.length&&!x&&R.onFilter){var n=y({count:a.length});e=R.onFilter({inputValue:f,resultsMessage:n})}return e},[a,f,v,R,I,y,x]),D="initial-input-focus"===(null==r?void 0:r.action),G=e.useMemo(function(){var e="";return R.guidance&&(e=R.guidance({"aria-label":A,context:o?"value":v?"menu":"input",isDisabled:i&&g(i,u),isMulti:m,isSearchable:b,tabSelectsValue:C,isInitialFocus:D})),e},[A,i,o,m,g,b,v,R,u,C,D]),O=t.jsx(e.Fragment,null,t.jsx("span",{id:"aria-selection"},S),t.jsx("span",{id:"aria-focused"},E),t.jsx("span",{id:"aria-results"},T),t.jsx("span",{id:"aria-guidance"},G));return t.jsx(e.Fragment,null,t.jsx(an,{id:l},D&&O),t.jsx(an,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!D&&O))},cn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ln=new RegExp("["+cn.map(function(e){return e.letters}).join("")+"]","g"),dn={},pn=0;pn<cn.length;pn++)for(var hn=cn[pn],fn=0;fn<hn.letters.length;fn++)dn[hn.letters[fn]]=hn.base;var mn=function(e){return e.replace(ln,function(e){return dn[e]})},gn=function(e,n){void 0===n&&(n=rn);var t=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t&&t.lastThis===this&&n(r,t.lastArgs))return t.lastResult;var o=e.apply(this,r);return t={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){t=null},r}(mn),bn=function(e){return e.replace(/^\s+|\s+$/g,"")},vn=function(e){return"".concat(e.label," ").concat(e.value)},In=["innerRef"];function yn(e){var n=e.innerRef,r=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=Object.entries(e).filter(function(e){var n=D(e,1);return!t.includes(n[0])});return i.reduce(function(e,n){var t=D(n,2);return e[t[0]]=t[1],e},{})}(G(e,In),"onExited","in","enter","exit","appear");return t.jsx("input",k({ref:n},r,{css:/*#__PURE__*/t.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGp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gIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Cn=["boxSizing","height","overflow","paddingRight","position"],xn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function An(e){e.cancelable&&e.preventDefault()}function wn(e){e.stopPropagation()}function Rn(){var e=this.scrollTop,n=this.scrollHeight,t=e+this.offsetHeight;0===e?this.scrollTop=1:t===n&&(this.scrollTop=e-1)}function Sn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nn=!("undefined"==typeof window||!window.document||!window.document.createElement),En=0,Tn={capture:!1,passive:!1},Dn=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Gn="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmF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bmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function On(n){var r=n.children,i=n.lockEnabled,o=n.captureEnabled,a=function(n){var t=n.isEnabled,r=n.onBottomArrive,i=n.onBottomLeave,o=n.onTopArrive,a=n.onTopLeave,s=e.useRef(!1),u=e.useRef(!1),c=e.useRef(0),l=e.useRef(null),d=e.useCallback(function(e,n){if(null!==l.current){var t=l.current,c=t.scrollTop,d=t.scrollHeight,p=l.current,h=n>0,f=d-t.clientHeight-c,m=!1;f>n&&s.current&&(i&&i(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&n>f?(r&&!s.current&&r(e),p.scrollTop=d,m=!0,s.current=!0):!h&&-n>c&&(o&&!u.current&&o(e),p.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[r,i,o,a]),p=e.useCallback(function(e){d(e,e.deltaY)},[d]),h=e.useCallback(function(e){c.current=e.changedTouches[0].clientY},[]),f=e.useCallback(function(e){d(e,c.current-e.changedTouches[0].clientY)},[d]),m=e.useCallback(function(e){if(e){var n=!!we&&{passive:!1};e.addEventListener("wheel",p,n),e.addEventListener("touchstart",h,n),e.addEventListener("touchmove",f,n)}},[f,h,p]),g=e.useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))},[f,h,p]);return e.useEffect(function(){if(t){var e=l.current;return m(e),function(){g(e)}}},[t,m,g]),function(e){l.current=e}}({isEnabled:void 0===o||o,onBottomArrive:n.onBottomArrive,onBottomLeave:n.onBottomLeave,onTopArrive:n.onTopArrive,onTopLeave:n.onTopLeave}),s=function(n){var t=n.isEnabled,r=n.accountForScrollbars,i=void 0===r||r,o=e.useRef({}),a=e.useRef(null),s=e.useCallback(function(e){if(Nn){var n=document.body,t=n&&n.style;if(i&&Cn.forEach(function(e){o.current[e]=t&&t[e]}),i&&En<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(xn).forEach(function(e){t&&(t[e]=xn[e])}),t&&(t.paddingRight="".concat(s,"px"))}n&&Sn()&&(n.addEventListener("touchmove",An,Tn),e&&(e.addEventListener("touchstart",Rn,Tn),e.addEventListener("touchmove",wn,Tn))),En+=1}},[i]),u=e.useCallback(function(e){if(Nn){var n=document.body,t=n&&n.style;En=Math.max(En-1,0),i&&En<1&&Cn.forEach(function(e){t&&(t[e]=o.current[e])}),n&&Sn()&&(n.removeEventListener("touchmove",An,Tn),e&&(e.removeEventListener("touchstart",Rn,Tn),e.removeEventListener("touchmove",wn,Tn)))}},[i]);return e.useEffect(function(){if(t){var e=a.current;return s(e),function(){u(e)}}},[t,s,u]),function(e){a.current=e}}({isEnabled:i});return t.jsx(e.Fragment,null,i&&t.jsx("div",{onClick:Dn,css:Gn}),r(function(e){a(e),s(e)}))}var kn="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2V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ZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Mn=function(e){return t.jsx("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:kn,value:"",onChange:function(){}})};function _n(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform)}function Bn(){return _n(/^Mac/i)}var Vn={clearIndicator:je,container:function(e){return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:e.isDisabled?"none":void 0,position:"relative"}},control:function(e,n){var t=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors;return N({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:r?o.primary:o.neutral20,borderRadius:i.borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Ze,group:function(e,n){var t=e.theme.spacing;return n?{}:{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e,n){var t=e.theme,r=t.spacing;return N({label:"group",cursor:"default",display:"block"},n?{}:{color:t.colors.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,n){var t=e.theme,r=t.spacing.baseUnit,i=t.colors;return N({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:e.isDisabled?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return N(N({visibility:e.isDisabled?"hidden":"visible",transform:e.value?"translateZ(0)":""},Ke),n?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,n){var t=e.size,r=e.theme,i=r.colors;return N({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:e.isFocused?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit})},loadingMessage:Ve,menu:function(e,n){var t,r,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return N((R(t={label:"menu"},(r=e.placement)?{bottom:"top",top:"bottom"}[r]:"bottom","100%"),R(t,"position","absolute"),R(t,"width","100%"),R(t,"zIndex",1),t),n?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,n){var t=e.theme.spacing.baseUnit;return N({maxHeight:e.maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:t,paddingTop:t})},menuPortal:function(e){var n=e.rect;return{left:n.left,position:e.position,top:e.offset,width:n.width,zIndex:1}},multiValue:function(e,n){var t=e.theme;return N({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:t.colors.neutral10,borderRadius:t.borderRadius/2,margin:t.spacing.baseUnit/2})},multiValueLabel:function(e,n){var t=e.theme,r=e.cropWithEllipsis;return N({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t.borderRadius/2,color:t.colors.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return N({alignItems:"center",display:"flex"},n?{}:{borderRadius:t.borderRadius/2,backgroundColor:e.isFocused?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Be,option:function(e,n){var t=e.isDisabled,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return N({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:r?a.primary:e.isFocused?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}})},placeholder:function(e,n){var t=e.theme,r=t.spacing;return N({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:t.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return N({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:e.isDisabled?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,n){var t=e.theme.spacing;return N({alignItems:"center",display:e.isMulti&&e.hasValue&&e.selectProps.controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px")})}},Pn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Yn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ce(),captureMenuScroll:!Ce(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,n){if(e.data.__isNew__)return!0;var t=N({ignoreCase:!0,ignoreAccents:!0,stringify:vn,trim:!0,matchFrom:"any"},void 0),r=t.ignoreCase,i=t.ignoreAccents,o=t.stringify,a=t.trim,s=t.matchFrom,u=a?bn(n):n,c=a?bn(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=gn(u),c=mn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(1!==n?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Wn(e,n,t,r){return{type:"option",data:n,isDisabled:zn(e,n,t),isSelected:Un(e,n,t),label:jn(e,n),value:Jn(e,n),index:r}}function Fn(e,n){return e.options.map(function(t,r){if("options"in t){var i=t.options.map(function(t,r){return Wn(e,t,n,r)}).filter(function(n){return Hn(e,n)});return i.length>0?{type:"group",data:t,options:i,index:r}:void 0}var o=Wn(e,t,n,r);return Hn(e,o)?o:void 0}).filter(Re)}function Xn(e){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,P(n.options.map(function(e){return e.data}))):e.push(n.data),e},[])}function Ln(e,n){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,P(t.options.map(function(e){return{data:e.data,id:"".concat(n,"-").concat(t.index,"-").concat(e.index)}}))):e.push({data:t.data,id:"".concat(n,"-").concat(t.index)}),e},[])}function Hn(e,n){var t=e.inputValue,r=void 0===t?"":t,i=n.data,o=n.isSelected,a=n.label,s=n.value;return(!qn(e)||!o)&&Qn(e,{label:a,value:s,data:i},r)}var Zn=function(e,n){var t;return(null===(t=e.find(function(e){return e.data===n}))||void 0===t?void 0:t.id)||null},jn=function(e,n){return e.getOptionLabel(n)},Jn=function(e,n){return e.getOptionValue(n)};function zn(e,n,t){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(n,t)}function Un(e,n,t){if(t.indexOf(n)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(n,t);var r=Jn(e,n);return t.some(function(n){return Jn(e,n)===r})}function Qn(e,n,t){return!e.filterOption||e.filterOption(n,t)}var qn=function(e){var n=e.hideSelectedOptions;return void 0===n?e.isMulti:n},Kn=1,$n=/*#__PURE__*/function(){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}(t,e.Component);var n=function(e){var n=V();return function(){var t,r=B(e);if(n){var i=B(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"==A(n)||"function"==typeof n))return n;if(void 0!==n)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)}(this,t)}}(t);function t(e){var r;if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),(r=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Bn()||_n(/^iPhone/i)||_n(/^iPad/i)||Bn()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,n){var t=r.props,i=t.onChange;n.name=t.name,r.ariaOnChange(e,n),i(e,n)},r.setValue=function(e,n,t){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value",prevInputValue:i.inputValue}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:n,option:t})},r.selectOption=function(e){var n=r.props,t=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(P(a),[e]),"select-option",e):r.setValue(e,"select-option")}t&&r.blurInput()},r.removeValue=function(e){var n=r.props.isMulti,t=r.state.selectValue,i=r.getOptionValue(e),o=t.filter(function(e){return r.getOptionValue(e)!==i}),a=Se(n,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Se(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,n=r.state.selectValue,t=n[n.length-1],i=n.slice(0,n.length-1),o=Se(e,i,i[0]||null);t&&r.onChange(o,{action:"pop-value",removedValue:t})},r.getFocusedOptionId=function(e){return Zn(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Ln(Fn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return pe.apply(void 0,[r.props.classNamePrefix].concat(n))},r.getOptionLabel=function(e){return jn(r.props,e)},r.getOptionValue=function(e){return Jn(r.props,e)},r.getStyles=function(e,n){var t=Vn[e](n,r.props.unstyled);t.boxSizing="border-box";var i=r.props.styles[e];return i?i(t,n):t},r.getClassNames=function(e,n){var t,i;return null===(t=(i=r.props.classNames)[e])||void 0===t?void 0:t.call(i,n)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,N(N({},nn),e.components);var e},r.buildCategorizedOptions=function(){return Fn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Xn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,n){r.setState({ariaSelection:N({value:e},n)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():n&&r.openMenu("first"):(n&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var n=r.props,t=n.isMulti,i=n.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!t}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ge(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var n=e.touches,t=n&&n.item(0);t&&(r.initialTouchX=t.clientX,r.initialTouchY=t.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var n=e.touches,t=n&&n.item(0);if(t){var i=Math.abs(t.clientX-r.initialTouchX),o=Math.abs(t.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var n=r.props.inputValue,t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change",prevInputValue:n}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var n=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:n}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var n=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:n>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return qn(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var n=r.props,t=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.menuIsOpen,c=n.onKeyDown,l=n.tabSelectsValue,d=n.openMenuOnFocus,p=r.state,h=p.focusedOption,f=p.focusedValue,m=p.selectValue;if(!(n.isDisabled||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!t||a)return;r.focusValue("previous");break;case"ArrowRight":if(!t||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(f)r.removeValue(f);else{if(!i)return;t?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!l||!h||d&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Kn),r.state.selectValue=he(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=Zn(i,o[a])}return r}return function(e,n,t){n&&M(e.prototype,n),t&&M(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ye(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.isDisabled,r=this.state.isFocused;(r&&!t&&e.isDisabled||r&&n.menuIsOpen&&!e.menuIsOpen)&&this.focusInput(),r&&t&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||t||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ye(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,n){this.props.onInputChange(e,n)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var n=this,t=this.state,r=t.selectValue,i=t.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return n.onMenuOpen()})}},{key:"focusValue",value:function(e){var n=this.state,t=n.selectValue,r=n.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=t.indexOf(r);r||(i=-1);var o=t.length-1,a=-1;if(t.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:t[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",n=this.props.pageSize,t=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(t);t||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-n)<0&&(i=0):"pagedown"===e?(i=o+n)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Pn):N(N({},Pn),this.props.theme):Pn}},{key:"getCommonProps",value:function(){var e=this.selectOption,n=this.setValue,t=this.props,r=t.isMulti,i=t.isRtl,o=t.options;return{clearValue:this.clearValue,cx:this.cx,getStyles:this.getStyles,getClassNames:this.getClassNames,getValue:this.getValue,hasValue:this.hasValue(),isMulti:r,isRtl:i,options:o,selectOption:e,selectProps:t,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,n=e.isClearable;return void 0===n?e.isMulti:n}},{key:"isOptionDisabled",value:function(e,n){return zn(this.props,e,n)}},{key:"isOptionSelected",value:function(e,n){return Un(this.props,e,n)}},{key:"filterOption",value:function(e,n){return Qn(this.props,e,n)}},{key:"formatOptionLabel",value:function(e,n){return"function"==typeof this.props.formatOptionLabel?this.props.formatOptionLabel(e,{context:n,inputValue:this.props.inputValue,selectValue:this.state.selectValue}):this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,t=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=N(N(N({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!t&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return t?/*#__PURE__*/f.createElement(c,k({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:n,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},g)):/*#__PURE__*/f.createElement(yn,k({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:le,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),t=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,o=n.MultiValueRemove,a=n.SingleValue,s=n.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,I=g.isFocused;if(!this.hasValue()||!l)return h?null:/*#__PURE__*/f.createElement(s,k({},u,{key:"placeholder",isDisabled:d,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return b.map(function(n,a){var s=n===v,c="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));/*#__PURE__*/
2
- return f.createElement(t,k({},u,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),e.formatOptionLabel(n,"value"))});if(h)return null;var y=b[0];/*#__PURE__*/
3
- return f.createElement(a,k({},u,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,t=this.props,r=t.isDisabled,i=t.isLoading,o=this.state.isFocused;return this.isClearable()&&e&&!r&&this.hasValue()&&!i?/*#__PURE__*/f.createElement(e,k({},n,{innerProps:{onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"},isFocused:o})):null}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.props;return e&&n.isLoading?/*#__PURE__*/f.createElement(e,k({},this.commonProps,{innerProps:{"aria-hidden":"true"},isDisabled:n.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.IndicatorSeparator;return e.DropdownIndicator&&n?/*#__PURE__*/f.createElement(n,k({},this.commonProps,{isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;return e?/*#__PURE__*/f.createElement(e,k({},this.commonProps,{innerProps:{onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"},isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),t=n.Group,r=n.GroupHeading,i=n.Menu,o=n.MenuList,a=n.MenuPortal,s=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,b=p.loadingMessage,v=p.minMenuHeight,I=p.maxMenuHeight,y=p.menuPlacement,C=p.menuPosition,x=p.menuPortalTarget,A=p.menuShouldBlockScroll,w=p.menuShouldScrollIntoView,R=p.noOptionsMessage,S=p.onMenuScrollToTop,N=p.onMenuScrollToBottom;if(!p.menuIsOpen)return null;var E,T=function(n,t){var r=n.type,i=n.data,o=n.isDisabled,a=n.isSelected,s=n.label,u=n.value,p=d===i,h=o?void 0:function(){return e.onOptionHover(i)},m=o?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(t);/*#__PURE__*/
4
- return f.createElement(c,k({},l,{innerProps:{id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a},data:i,isDisabled:o,isSelected:a,key:g,label:s,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map(function(n){if("group"===n.type){var i=n.data,o=n.options,a=n.index,s="".concat(e.getElementId("group"),"-").concat(a),u="".concat(s,"-heading");/*#__PURE__*/
5
- return f.createElement(t,k({},l,{key:s,data:i,options:o,Heading:r,headingProps:{id:u,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map(function(e){return T(e,"".concat(a,"-").concat(e.index))}))}if("option"===n.type)return T(n,"".concat(n.index))});else if(g){var D=b({inputValue:m});if(null===D)return null;E=/*#__PURE__*/f.createElement(s,l,D)}else{var G=R({inputValue:m});if(null===G)return null;E=/*#__PURE__*/f.createElement(u,l,G)}var O={minMenuHeight:v,maxMenuHeight:I,menuPlacement:y,menuPosition:C,menuShouldScrollIntoView:w},M=/*#__PURE__*/f.createElement(Me,k({},l,O),function(n){var t=n.placerProps,r=t.maxHeight;/*#__PURE__*/
6
- return f.createElement(i,k({},l,O,{innerRef:n.ref,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:t.placement}),/*#__PURE__*/f.createElement(On,{captureEnabled:h,onTopArrive:S,onBottomArrive:N,lockEnabled:A},function(n){/*#__PURE__*/
7
- return f.createElement(o,k({},l,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:r,focusedOption:d}),E)}))});return x||"fixed"===C?/*#__PURE__*/f.createElement(a,k({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:y,menuPosition:C}),M):M}},{key:"renderFormField",value:function(){var e=this,n=this.props,t=n.delimiter,r=n.isDisabled,i=n.isMulti,o=n.name,a=this.state.selectValue;if(n.required&&!this.hasValue()&&!r)/*#__PURE__*/
8
- return f.createElement(Mn,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(t){var s=a.map(function(n){return e.getOptionValue(n)}).join(t);/*#__PURE__*/
1
+ var e=require("react"),n=require("@mui/material"),t=require("@emotion/react"),r=require("react-dom"),i=require("react-i18next"),o=require("@mui/icons-material"),a=require("./assets/drag-icon.svg"),s=require("./assets/resize-icon.svg"),u=require("actioncable"),c=require("graphql-request"),l=require("andoncloud-sdk");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,n}var h=/*#__PURE__*/d(e),f=/*#__PURE__*/p(e),m=/*#__PURE__*/d(s),g=/*#__PURE__*/d(u);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},b.apply(null,arguments)}function v(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}function I(e,n){return n||(n=e.slice(0)),e.raw=n,e}var y={buttons:{paddingTop:function(e){return e.spacing(2)}},cancelButton:{marginRight:"10px"},popper:{".MuiTooltip-tooltip":{padding:"20px",fontSize:"14px",color:"rgba(0, 0, 0, 0.75)",borderRadius:"8px",backgroundColor:"white"},".MuiTooltip-arrow":{color:"white"}}},C=["children","confirmMessage","confirmButtonText","cancelButtonText","onCancel","onConfirm"],x=function(e){var t=e.children,r=e.confirmMessage,i=e.confirmButtonText,o=e.cancelButtonText,a=e.onCancel,s=e.onConfirm,u=v(e,C);return h.default.createElement(n.Tooltip,b({},u,{placement:"bottom-end",title:h.default.createElement(n.Box,null,h.default.createElement(n.Typography,null,r),h.default.createElement(n.Stack,{direction:"row",justifyContent:"flex-end",sx:y.buttons},h.default.createElement(n.Button,{color:"secondary",onClick:function(e){e.stopPropagation(),a()},sx:y.cancelButton},o),h.default.createElement(n.Button,{color:"error",onClick:function(e){e.stopPropagation(),s()}},i))),PopperProps:{sx:y.popper},arrow:!0}),t)};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 w(e){var n=function(e){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=A(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(n)?n:n+""}function R(e,n,t){return(n=w(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach(function(n){R(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n){if(e){if("string"==typeof e)return E(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?E(e,n):void 0}}function D(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=o.call(t)).done)&&(s.push(r.value),s.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,n)||T(e,n)||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 G(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n.includes(t=o[r])||{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var O=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function M(){return M=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},M.apply(null,arguments)}function k(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V=function(){return!!e})()}function P(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)||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.")}()}const Y=Math.min,W=Math.max,F=Math.round,X=Math.floor,L=e=>({x:e,y:e});function H(){return"undefined"!=typeof window}function Z(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var n;return(null==e||null==(n=e.ownerDocument)?void 0:n.defaultView)||window}function J(e){var n;return null==(n=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:n.documentElement}function z(e){return!!H()&&(e instanceof Node||e instanceof j(e).Node)}function U(e){return!!H()&&(e instanceof Element||e instanceof j(e).Element)}function Q(e){return!!H()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function q(e){return!(!H()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}function K(e){const{overflow:n,overflowX:t,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!["inline","contents"].includes(i)}function $(e){return j(e).getComputedStyle(e)}function ee(e){const n=function(e){if("html"===Z(e))return e;const n=e.assignedSlot||e.parentNode||q(e)&&e.host||J(e);return q(n)?n.host:n}(e);return function(e){return["html","body","#document"].includes(Z(e))}(n)?e.ownerDocument?e.ownerDocument.body:e.body:Q(n)&&K(n)?n:ee(n)}function ne(e,n,t){var r;void 0===n&&(n=[]),void 0===t&&(t=!0);const i=ee(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=j(i);if(o){const e=te(a);return n.concat(a,a.visualViewport||[],K(i)?i:[],e&&t?ne(e):[])}return n.concat(i,ne(i,[],t))}function te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function re(e){return U(e)?e:e.contextElement}function ie(e){const n=re(e);if(!Q(n))return L(1);const t=n.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const n=$(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=Q(e),o=i?e.offsetWidth:t,a=i?e.offsetHeight:r,s=F(t)!==o||F(r)!==a;return s&&(t=o,r=a),{width:t,height:r,$:s}}(n);let a=(o?F(t.width):t.width)/r,s=(o?F(t.height):t.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const oe=/*#__PURE__*/L(0);function ae(e,n,t,r){void 0===n&&(n=!1),void 0===t&&(t=!1);const i=e.getBoundingClientRect(),o=re(e);let a=L(1);n&&(r?U(r)&&(a=ie(r)):a=ie(e));const s=function(e,n,t){return void 0===n&&(n=!1),!(!t||n&&t!==j(e))&&n}(o,t,r)?function(e){const n=j(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:oe}(o):L(0);let u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,d=i.height/a.y;if(o){const e=j(o),n=r&&U(r)?j(r):r;let t=e,i=te(t);for(;i&&r&&n!==t;){const e=ie(i),n=i.getBoundingClientRect(),r=$(i),o=n.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=n.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,d*=e.y,u+=o,c+=a,t=j(i),i=te(t)}}return function(e){const{x:n,y:t,width:r,height:i}=e;return{width:r,height:i,top:t,left:n,right:n+r,bottom:t+i,x:n,y:t}}({width:l,height:d,x:u,y:c})}function se(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}var ue=e.useLayoutEffect,ce=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],le=function(){};function de(e,n){return n?"-"===n[0]?e+n:e+"__"+n:e}function pe(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var o=[].concat(r);if(n&&e)for(var a in n)n.hasOwnProperty(a)&&n[a]&&o.push("".concat(de(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var he=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===A(e)&&null!==e?[e]:[]},fe=function(e){return N({},G(e,ce))},me=function(e,n,t){var r=e.cx,i=e.getClassNames,o=e.className;return{css:(0,e.getStyles)(n,e),className:r(null!=t?t:{},i(n,e),o)}};function ge(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function be(e){return ge(e)?window.pageYOffset:e.scrollTop}function ve(e,n){ge(e)?window.scrollTo(0,n):e.scrollTop=n}function Ie(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:le,i=be(e),o=n-i,a=0;!function n(){var s,u=o*((s=(s=a+=10)/t-1)*s*s+1)+i;ve(e,u),a<t?window.requestAnimationFrame(n):r(e)}()}function ye(e,n){var t=e.getBoundingClientRect(),r=n.getBoundingClientRect(),i=n.offsetHeight/3;r.bottom+i>t.bottom?ve(e,Math.min(n.offsetTop+n.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<t.top&&ve(e,Math.max(n.offsetTop-i,0))}function Ce(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var xe=!1,Ae="undefined"!=typeof window?window:{};Ae.addEventListener&&Ae.removeEventListener&&(Ae.addEventListener("p",le,{get passive(){return xe=!0}}),Ae.removeEventListener("p",le,!1));var we=xe;function Re(e){return null!=e}function Se(e,n,t){return e?n:t}var Ne,Ee,Te,De=["children","innerProps"],Ge=["children","innerProps"],Oe=function(e){return"auto"===e?"bottom":e},Me=/*#__PURE__*/e.createContext(null),ke=function(n){var t=n.children,r=n.minMenuHeight,i=n.maxMenuHeight,o=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme,c=(e.useContext(Me)||{}).setPortalPlacement,l=e.useRef(null),d=D(e.useState(i),2),p=d[0],h=d[1],f=D(e.useState(null),2),m=f[0],g=f[1],b=u.spacing.controlHeight;return ue(function(){var e=l.current;if(e){var n="fixed"===a,t=function(e){var n=e.maxHeight,t=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var n=getComputedStyle(e),t="absolute"===n.position,r=/(auto|scroll)/;if("fixed"===n.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(n=getComputedStyle(i),(!t||"static"!==n.position)&&r.test(n.overflow+n.overflowY+n.overflowX))return i;return document.documentElement}(t),c={placement:"bottom",maxHeight:n};if(!t||!t.offsetParent)return c;var l,d=u.getBoundingClientRect().height,p=t.getBoundingClientRect(),h=p.bottom,f=p.height,m=p.top,g=t.offsetParent.getBoundingClientRect().top,b=a||ge(l=u)?window.innerHeight:l.clientHeight,v=be(u),I=parseInt(getComputedStyle(t).marginBottom,10),y=parseInt(getComputedStyle(t).marginTop,10),C=g-y,x=b-m,A=C+v,w=d-v-m,R=h-b+v+I,S=v+m-y,N=160;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:n};if(w>=f&&!a)return o&&Ie(u,R,N),{placement:"bottom",maxHeight:n};if(!a&&w>=r||a&&x>=r)return o&&Ie(u,R,N),{placement:"bottom",maxHeight:a?x-I:w-I};if("auto"===i||a){var E=n,T=a?C:A;return T>=r&&(E=Math.min(T-I-s,n)),{placement:"top",maxHeight:E}}if("bottom"===i)return o&&ve(u,R),{placement:"bottom",maxHeight:n};break;case"top":if(C>=f)return{placement:"top",maxHeight:n};if(A>=f&&!a)return o&&Ie(u,S,N),{placement:"top",maxHeight:n};if(!a&&A>=r||a&&C>=r){var D=n;return(!a&&A>=r||a&&C>=r)&&(D=a?C-y:A-y),o&&Ie(u,S,N),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!n,isFixedPosition:n,controlHeight:b});h(t.maxHeight),g(t.placement),null==c||c(t.placement)}},[i,o,a,s,r,c,b]),t({ref:l,placerProps:N(N({},n),{},{placement:m||Oe(o),maxHeight:p})})},_e=function(e,n){var t=e.theme,r=t.spacing.baseUnit;return N({textAlign:"center"},n?{}:{color:t.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Be=_e,Ve=_e,Pe=["size"],Ye=["innerProps","isRtl","size"],We="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtle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V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Fe=function(e){var n=e.size,r=G(e,Pe);return t.jsx("svg",M({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:We},r))},Xe=function(e){return t.jsx(Fe,M({size:20},e),t.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Le=function(e){return t.jsx(Fe,M({size:20},e),t.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},He=function(e,n){var t=e.isFocused,r=e.theme,i=r.colors;return N({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:t?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit,":hover":{color:t?i.neutral80:i.neutral40}})},Ze=He,je=He,Je=t.keyframes(Ne||(Ee=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Te||(Te=Ee.slice(0)),Ne=Object.freeze(Object.defineProperties(Ee,{raw:{value:Object.freeze(Te)}})))),ze=function(e){var n=e.delay,r=e.offset;return t.jsx("span",{css:/*#__PURE__*/t.css({animation:"".concat(Je," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiM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LnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},Ue=["data"],Qe=["innerRef","isDisabled","isHidden","inputClassName"],qe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ke={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":N({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},qe)},$e=function(e){return N({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},qe)},en=function(e){return t.jsx("div",e.innerProps,e.children)},nn={ClearIndicator:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||t.jsx(Xe,null))},Control:function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return t.jsx("div",M({ref:e.innerRef},me(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":e.isFocused,"control--menu-is-open":e.menuIsOpen}),i,{"aria-disabled":r||void 0}),n)},DropdownIndicator:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||t.jsx(Le,null))},DownChevron:Le,CrossIcon:Xe,Group:function(e){var n=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,c=e.label,l=e.theme,d=e.selectProps;return t.jsx("div",M({},me(e,"group",{group:!0}),u),t.jsx(a,M({},s,{selectProps:d,theme:l,getStyles:i,getClassNames:o,cx:r}),c),t.jsx("div",null,n))},GroupHeading:function(e){var n=G(fe(e),Ue);return t.jsx("div",M({},me(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"indicatorsContainer",{indicators:!0}),r),n)},IndicatorSeparator:function(e){return t.jsx("span",M({},e.innerProps,me(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var n=e.cx,r=e.value,i=fe(e),o=i.innerRef,a=i.isDisabled,s=i.isHidden,u=i.inputClassName,c=G(i,Qe);return t.jsx("div",M({},me(e,"input",{"input-container":!0}),{"data-value":r||""}),t.jsx("input",M({className:n({input:!0},u),ref:o,style:$e(s),disabled:a},c)))},LoadingIndicator:function(e){var n=e.innerProps,r=e.isRtl,i=e.size,o=void 0===i?4:i,a=G(e,Ye);return t.jsx("div",M({},me(N(N({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),t.jsx(ze,{delay:0,offset:r}),t.jsx(ze,{delay:160,offset:!0}),t.jsx(ze,{delay:320,offset:!r}))},Menu:function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return t.jsx("div",M({},me(e,"menu",{menu:!0}),{ref:r},i),n)},MenuList:function(e){var n=e.children,r=e.innerProps,i=e.innerRef;return t.jsx("div",M({},me(e,"menuList",{"menu-list":!0,"menu-list--is-multi":e.isMulti}),{ref:i},r),n)},MenuPortal:function(n){var i=n.appendTo,o=n.children,a=n.controlElement,s=n.innerProps,u=n.menuPlacement,c=n.menuPosition,l=e.useRef(null),d=e.useRef(null),p=D(e.useState(Oe(u)),2),h=p[0],f=p[1],m=e.useMemo(function(){return{setPortalPlacement:f}},[]),g=D(e.useState(null),2),b=g[0],v=g[1],I=e.useCallback(function(){if(a){var e=function(e){var n=e.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}(a),n="fixed"===c?0:window.pageYOffset,t=e[h]+n;t===(null==b?void 0:b.offset)&&e.left===(null==b?void 0:b.rect.left)&&e.width===(null==b?void 0:b.rect.width)||v({offset:t,rect:e})}},[a,c,h,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);ue(function(){I()},[I]);var y=e.useCallback(function(){"function"==typeof d.current&&(d.current(),d.current=null),a&&l.current&&(d.current=function(e,n,t,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=re(e),l=i||o?[...c?ne(c):[],...ne(n)]:[];l.forEach(e=>{i&&e.addEventListener("scroll",t,{passive:!0}),o&&e.addEventListener("resize",t)});const d=c&&s?function(e,n){let t,r=null;const i=J(e);function o(){var e;clearTimeout(t),null==(e=r)||e.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();const c=e.getBoundingClientRect(),{left:l,top:d,width:p,height:h}=c;if(s||n(),!p||!h)return;const f={rootMargin:-X(d)+"px "+-X(i.clientWidth-(l+p))+"px "+-X(i.clientHeight-(d+h))+"px "+-X(l)+"px",threshold:W(0,Y(1,u))||1};let m=!0;function g(n){const r=n[0].intersectionRatio;if(r!==u){if(!m)return a();r?a(!1,r):t=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||se(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(c,t):null;let p,h=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(n)})),t()}),c&&!u&&f.observe(c),f.observe(n));let m=u?ae(e):null;return u&&function n(){const r=ae(e);m&&!se(m,r)&&t(),m=r,p=requestAnimationFrame(n)}(),t(),()=>{var e;l.forEach(e=>{i&&e.removeEventListener("scroll",t),o&&e.removeEventListener("resize",t)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(p)}}(a,l.current,I,{elementResize:"ResizeObserver"in window}))},[a,I]);ue(function(){y()},[y]);var C=e.useCallback(function(e){l.current=e,y()},[y]);if(!i&&"fixed"!==c||!b)return null;var x=t.jsx("div",M({ref:C},me(N(N({},n),{},{offset:b.offset,position:c,rect:b.rect}),"menuPortal",{"menu-portal":!0}),s),o);return t.jsx(Me.Provider,{value:m},i?/*#__PURE__*/r.createPortal(x,i):x)},LoadingMessage:function(e){var n=e.children,r=void 0===n?"Loading...":n,i=e.innerProps,o=G(e,Ge);return t.jsx("div",M({},me(N(N({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},NoOptionsMessage:function(e){var n=e.children,r=void 0===n?"No options":n,i=e.innerProps,o=G(e,De);return t.jsx("div",M({},me(N(N({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},MultiValue:function(e){var n=e.children,r=e.components,i=e.data,o=e.innerProps,a=e.removeProps,s=e.selectProps,u=r.Label,c=r.Remove;return t.jsx(r.Container,{data:i,innerProps:N(N({},me(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":e.isDisabled})),o),selectProps:s},t.jsx(u,{data:i,innerProps:N({},me(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},n),t.jsx(c,{data:i,innerProps:N(N({},me(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:s}))},MultiValueContainer:en,MultiValueLabel:en,MultiValueRemove:function(e){var n=e.children;return t.jsx("div",M({role:"button"},e.innerProps),n||t.jsx(Xe,{size:14}))},Option:function(e){var n=e.children,r=e.isDisabled,i=e.innerRef,o=e.innerProps;return t.jsx("div",M({},me(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":e.isFocused,"option--is-selected":e.isSelected}),{ref:i,"aria-disabled":r},o),n)},Placeholder:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"placeholder",{placeholder:!0}),r),n)},SelectContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"container",{"--is-disabled":e.isDisabled,"--is-rtl":e.isRtl}),r),n)},SingleValue:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"singleValue",{"single-value":!0,"single-value--is-disabled":e.isDisabled}),r),n)},ValueContainer:function(e){var n=e.children,r=e.innerProps;return t.jsx("div",M({},me(e,"valueContainer",{"value-container":!0,"value-container--is-multi":e.isMulti,"value-container--has-value":e.hasValue}),r),n)}},tn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rn(e,n){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!((r=e[t])===(i=n[t])||tn(r)&&tn(i)))return!1;var r,i;return!0}for(var on="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},an=function(e){return t.jsx("span",M({css:on},e))},sn={guidance:function(e){var n=e.isSearchable,t=e.isMulti,r=e.tabSelectsValue,i=e.isInitialFocus;switch(e.context){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(t?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.label,t=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(e.action){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(t,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(t,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var n=e.context,t=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,n){return e&&e.length?"".concat(e.indexOf(n)+1," of ").concat(e.length):""};if("value"===n&&a)return"value ".concat(o," focused, ").concat(l(a,t),".");if("menu"===n&&c){var d=s?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(o).concat(p,", ").concat(l(r,t),".")}return""},onFilter:function(e){var n=e.inputValue;return"".concat(e.resultsMessage).concat(n?" for search term "+n:"",".")}},un=function(n){var r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.focusableOptions,s=n.isFocused,u=n.selectValue,c=n.selectProps,l=n.id,d=n.isAppleDevice,p=c.ariaLiveMessages,h=c.getOptionLabel,f=c.inputValue,m=c.isMulti,g=c.isOptionDisabled,b=c.isSearchable,v=c.menuIsOpen,I=c.options,y=c.screenReaderStatus,C=c.tabSelectsValue,x=c.isLoading,A=c["aria-label"],w=c["aria-live"],R=e.useMemo(function(){return N(N({},sn),p||{})},[p]),S=e.useMemo(function(){var e,n="";if(r&&R.onChange){var t=r.options,i=r.removedValues,o=r.removedValue||r.option||(e=r.value,Array.isArray(e)?null:e),a=o?h(o):"",s=t||i||void 0,c=s?s.map(h):[],l=N({isDisabled:o&&g(o,u),label:a,labels:c},r);n=R.onChange(l)}return n},[r,R,g,u,h]),E=e.useMemo(function(){var e="",n=i||o,t=!!(i&&u&&u.includes(i));if(n&&R.onFocus){var r={focused:n,label:h(n),isDisabled:g(n,u),isSelected:t,options:a,context:n===i?"menu":"value",selectValue:u,isAppleDevice:d};e=R.onFocus(r)}return e},[i,o,h,g,R,a,u,d]),T=e.useMemo(function(){var e="";if(v&&I.length&&!x&&R.onFilter){var n=y({count:a.length});e=R.onFilter({inputValue:f,resultsMessage:n})}return e},[a,f,v,R,I,y,x]),D="initial-input-focus"===(null==r?void 0:r.action),G=e.useMemo(function(){var e="";return R.guidance&&(e=R.guidance({"aria-label":A,context:o?"value":v?"menu":"input",isDisabled:i&&g(i,u),isMulti:m,isSearchable:b,tabSelectsValue:C,isInitialFocus:D})),e},[A,i,o,m,g,b,v,R,u,C,D]),O=t.jsx(e.Fragment,null,t.jsx("span",{id:"aria-selection"},S),t.jsx("span",{id:"aria-focused"},E),t.jsx("span",{id:"aria-results"},T),t.jsx("span",{id:"aria-guidance"},G));return t.jsx(e.Fragment,null,t.jsx(an,{id:l},D&&O),t.jsx(an,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!D&&O))},cn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ln=new RegExp("["+cn.map(function(e){return e.letters}).join("")+"]","g"),dn={},pn=0;pn<cn.length;pn++)for(var hn=cn[pn],fn=0;fn<hn.letters.length;fn++)dn[hn.letters[fn]]=hn.base;var mn=function(e){return e.replace(ln,function(e){return dn[e]})},gn=function(e,n){void 0===n&&(n=rn);var t=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t&&t.lastThis===this&&n(r,t.lastArgs))return t.lastResult;var o=e.apply(this,r);return t={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){t=null},r}(mn),bn=function(e){return e.replace(/^\s+|\s+$/g,"")},vn=function(e){return"".concat(e.label," ").concat(e.value)},In=["innerRef"];function yn(e){var n=e.innerRef,r=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=Object.entries(e).filter(function(e){var n=D(e,1);return!t.includes(n[0])});return i.reduce(function(e,n){var t=D(n,2);return e[t[0]]=t[1],e},{})}(G(e,In),"onExited","in","enter","exit","appear");return t.jsx("input",M({ref:n},r,{css:/*#__PURE__*/t.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var Cn=["boxSizing","height","overflow","paddingRight","position"],xn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function An(e){e.cancelable&&e.preventDefault()}function wn(e){e.stopPropagation()}function Rn(){var e=this.scrollTop,n=this.scrollHeight,t=e+this.offsetHeight;0===e?this.scrollTop=1:t===n&&(this.scrollTop=e-1)}function Sn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nn=!("undefined"==typeof window||!window.document||!window.document.createElement),En=0,Tn={capture:!1,passive:!1},Dn=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Gn="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50O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nJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function On(n){var r=n.children,i=n.lockEnabled,o=n.captureEnabled,a=function(n){var t=n.isEnabled,r=n.onBottomArrive,i=n.onBottomLeave,o=n.onTopArrive,a=n.onTopLeave,s=e.useRef(!1),u=e.useRef(!1),c=e.useRef(0),l=e.useRef(null),d=e.useCallback(function(e,n){if(null!==l.current){var t=l.current,c=t.scrollTop,d=t.scrollHeight,p=l.current,h=n>0,f=d-t.clientHeight-c,m=!1;f>n&&s.current&&(i&&i(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&n>f?(r&&!s.current&&r(e),p.scrollTop=d,m=!0,s.current=!0):!h&&-n>c&&(o&&!u.current&&o(e),p.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[r,i,o,a]),p=e.useCallback(function(e){d(e,e.deltaY)},[d]),h=e.useCallback(function(e){c.current=e.changedTouches[0].clientY},[]),f=e.useCallback(function(e){d(e,c.current-e.changedTouches[0].clientY)},[d]),m=e.useCallback(function(e){if(e){var n=!!we&&{passive:!1};e.addEventListener("wheel",p,n),e.addEventListener("touchstart",h,n),e.addEventListener("touchmove",f,n)}},[f,h,p]),g=e.useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",f,!1))},[f,h,p]);return e.useEffect(function(){if(t){var e=l.current;return m(e),function(){g(e)}}},[t,m,g]),function(e){l.current=e}}({isEnabled:void 0===o||o,onBottomArrive:n.onBottomArrive,onBottomLeave:n.onBottomLeave,onTopArrive:n.onTopArrive,onTopLeave:n.onTopLeave}),s=function(n){var t=n.isEnabled,r=n.accountForScrollbars,i=void 0===r||r,o=e.useRef({}),a=e.useRef(null),s=e.useCallback(function(e){if(Nn){var n=document.body,t=n&&n.style;if(i&&Cn.forEach(function(e){o.current[e]=t&&t[e]}),i&&En<1){var r=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(xn).forEach(function(e){t&&(t[e]=xn[e])}),t&&(t.paddingRight="".concat(s,"px"))}n&&Sn()&&(n.addEventListener("touchmove",An,Tn),e&&(e.addEventListener("touchstart",Rn,Tn),e.addEventListener("touchmove",wn,Tn))),En+=1}},[i]),u=e.useCallback(function(e){if(Nn){var n=document.body,t=n&&n.style;En=Math.max(En-1,0),i&&En<1&&Cn.forEach(function(e){t&&(t[e]=o.current[e])}),n&&Sn()&&(n.removeEventListener("touchmove",An,Tn),e&&(e.removeEventListener("touchstart",Rn,Tn),e.removeEventListener("touchmove",wn,Tn)))}},[i]);return e.useEffect(function(){if(t){var e=a.current;return s(e),function(){u(e)}}},[t,s,u]),function(e){a.current=e}}({isEnabled:i});return t.jsx(e.Fragment,null,i&&t.jsx("div",{onClick:Dn,css:Gn}),r(function(e){a(e),s(e)}))}var Mn="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},kn=function(e){return t.jsx("input",{required:!0,name:e.name,tabIndex:-1,"aria-hidden":"true",onFocus:e.onFocus,css:Mn,value:"",onChange:function(){}})};function _n(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform)}function Bn(){return _n(/^Mac/i)}var Vn={clearIndicator:je,container:function(e){return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:e.isDisabled?"none":void 0,position:"relative"}},control:function(e,n){var t=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors;return N({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:r?o.primary:o.neutral20,borderRadius:i.borderRadius,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Ze,group:function(e,n){var t=e.theme.spacing;return n?{}:{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e,n){var t=e.theme,r=t.spacing;return N({label:"group",cursor:"default",display:"block"},n?{}:{color:t.colors.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,n){var t=e.theme,r=t.spacing.baseUnit,i=t.colors;return N({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:e.isDisabled?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return N(N({visibility:e.isDisabled?"hidden":"visible",transform:e.value?"translateZ(0)":""},Ke),n?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,n){var t=e.size,r=e.theme,i=r.colors;return N({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:t,lineHeight:1,marginRight:t,textAlign:"center",verticalAlign:"middle"},n?{}:{color:e.isFocused?i.neutral60:i.neutral20,padding:2*r.spacing.baseUnit})},loadingMessage:Ve,menu:function(e,n){var t,r,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return N((R(t={label:"menu"},(r=e.placement)?{bottom:"top",top:"bottom"}[r]:"bottom","100%"),R(t,"position","absolute"),R(t,"width","100%"),R(t,"zIndex",1),t),n?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,n){var t=e.theme.spacing.baseUnit;return N({maxHeight:e.maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:t,paddingTop:t})},menuPortal:function(e){var n=e.rect;return{left:n.left,position:e.position,top:e.offset,width:n.width,zIndex:1}},multiValue:function(e,n){var t=e.theme;return N({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:t.colors.neutral10,borderRadius:t.borderRadius/2,margin:t.spacing.baseUnit/2})},multiValueLabel:function(e,n){var t=e.theme,r=e.cropWithEllipsis;return N({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:t.borderRadius/2,color:t.colors.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return N({alignItems:"center",display:"flex"},n?{}:{borderRadius:t.borderRadius/2,backgroundColor:e.isFocused?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Be,option:function(e,n){var t=e.isDisabled,r=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return N({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:r?a.primary:e.isFocused?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}})},placeholder:function(e,n){var t=e.theme,r=t.spacing;return N({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:t.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,n){var t=e.theme,r=t.spacing,i=t.colors;return N({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:e.isDisabled?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,n){var t=e.theme.spacing;return N({alignItems:"center",display:e.isMulti&&e.hasValue&&e.selectProps.controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px")})}},Pn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Yn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ce(),captureMenuScroll:!Ce(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,n){if(e.data.__isNew__)return!0;var t=N({ignoreCase:!0,ignoreAccents:!0,stringify:vn,trim:!0,matchFrom:"any"},void 0),r=t.ignoreCase,i=t.ignoreAccents,o=t.stringify,a=t.trim,s=t.matchFrom,u=a?bn(n):n,c=a?bn(o(e)):o(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),i&&(u=gn(u),c=mn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(1!==n?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Wn(e,n,t,r){return{type:"option",data:n,isDisabled:zn(e,n,t),isSelected:Un(e,n,t),label:jn(e,n),value:Jn(e,n),index:r}}function Fn(e,n){return e.options.map(function(t,r){if("options"in t){var i=t.options.map(function(t,r){return Wn(e,t,n,r)}).filter(function(n){return Hn(e,n)});return i.length>0?{type:"group",data:t,options:i,index:r}:void 0}var o=Wn(e,t,n,r);return Hn(e,o)?o:void 0}).filter(Re)}function Xn(e){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,P(n.options.map(function(e){return e.data}))):e.push(n.data),e},[])}function Ln(e,n){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,P(t.options.map(function(e){return{data:e.data,id:"".concat(n,"-").concat(t.index,"-").concat(e.index)}}))):e.push({data:t.data,id:"".concat(n,"-").concat(t.index)}),e},[])}function Hn(e,n){var t=e.inputValue,r=void 0===t?"":t,i=n.data,o=n.isSelected,a=n.label,s=n.value;return(!qn(e)||!o)&&Qn(e,{label:a,value:s,data:i},r)}var Zn=function(e,n){var t;return(null===(t=e.find(function(e){return e.data===n}))||void 0===t?void 0:t.id)||null},jn=function(e,n){return e.getOptionLabel(n)},Jn=function(e,n){return e.getOptionValue(n)};function zn(e,n,t){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(n,t)}function Un(e,n,t){if(t.indexOf(n)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(n,t);var r=Jn(e,n);return t.some(function(n){return Jn(e,n)===r})}function Qn(e,n,t){return!e.filterOption||e.filterOption(n,t)}var qn=function(e){var n=e.hideSelectedOptions;return void 0===n?e.isMulti:n},Kn=1,$n=/*#__PURE__*/function(){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}(t,e.Component);var n=function(e){var n=V();return function(){var t,r=B(e);if(n){var i=B(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"==A(n)||"function"==typeof n))return n;if(void 0!==n)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)}(this,t)}}(t);function t(e){var r;if(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),(r=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Bn()||_n(/^iPhone/i)||_n(/^iPad/i)||Bn()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,n){var t=r.props,i=t.onChange;n.name=t.name,r.ariaOnChange(e,n),i(e,n)},r.setValue=function(e,n,t){var i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value",prevInputValue:i.inputValue}),o&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:n,option:t})},r.selectOption=function(e){var n=r.props,t=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=r.state.selectValue,s=i&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(P(a),[e]),"select-option",e):r.setValue(e,"select-option")}t&&r.blurInput()},r.removeValue=function(e){var n=r.props.isMulti,t=r.state.selectValue,i=r.getOptionValue(e),o=t.filter(function(e){return r.getOptionValue(e)!==i}),a=Se(n,o,o[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Se(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,n=r.state.selectValue,t=n[n.length-1],i=n.slice(0,n.length-1),o=Se(e,i,i[0]||null);t&&r.onChange(o,{action:"pop-value",removedValue:t})},r.getFocusedOptionId=function(e){return Zn(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Ln(Fn(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return pe.apply(void 0,[r.props.classNamePrefix].concat(n))},r.getOptionLabel=function(e){return jn(r.props,e)},r.getOptionValue=function(e){return Jn(r.props,e)},r.getStyles=function(e,n){var t=Vn[e](n,r.props.unstyled);t.boxSizing="border-box";var i=r.props.styles[e];return i?i(t,n):t},r.getClassNames=function(e,n){var t,i;return null===(t=(i=r.props.classNames)[e])||void 0===t?void 0:t.call(i,n)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,N(N({},nn),e.components);var e},r.buildCategorizedOptions=function(){return Fn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Xn(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,n){r.setState({ariaSelection:N({value:e},n)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():n&&r.openMenu("first"):(n&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var n=r.props,t=n.isMulti,i=n.menuIsOpen;r.focusInput(),i?(r.setState({inputIsHiddenAfterUpdate:!t}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ge(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var n=e.touches,t=n&&n.item(0);t&&(r.initialTouchX=t.clientX,r.initialTouchY=t.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var n=e.touches,t=n&&n.item(0);if(t){var i=Math.abs(t.clientX-r.initialTouchX),o=Math.abs(t.clientY-r.initialTouchY);r.userIsDragging=i>5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var n=r.props.inputValue,t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change",prevInputValue:n}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var n=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:n}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var n=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:n>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return qn(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var n=r.props,t=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.menuIsOpen,c=n.onKeyDown,l=n.tabSelectsValue,d=n.openMenuOnFocus,p=r.state,h=p.focusedOption,f=p.focusedValue,m=p.selectValue;if(!(n.isDisabled||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!t||a)return;r.focusValue("previous");break;case"ArrowRight":if(!t||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(f)r.removeValue(f);else{if(!i)return;t?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!l||!h||d&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Kn),r.state.selectValue=he(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),a=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[a],r.state.focusedOptionId=Zn(i,o[a])}return r}return function(e,n,t){n&&k(e.prototype,n),t&&k(e,t),Object.defineProperty(e,"prototype",{writable:!1})}(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ye(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var n=this.props,t=n.isDisabled,r=this.state.isFocused;(r&&!t&&e.isDisabled||r&&n.menuIsOpen&&!e.menuIsOpen)&&this.focusInput(),r&&t&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||t||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ye(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,n){this.props.onInputChange(e,n)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var n=this,t=this.state,r=t.selectValue,i=t.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return n.onMenuOpen()})}},{key:"focusValue",value:function(e){var n=this.state,t=n.selectValue,r=n.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=t.indexOf(r);r||(i=-1);var o=t.length-1,a=-1;if(t.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:t[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",n=this.props.pageSize,t=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(t);t||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-n)<0&&(i=0):"pagedown"===e?(i=o+n)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Pn):N(N({},Pn),this.props.theme):Pn}},{key:"getCommonProps",value:function(){var e=this.selectOption,n=this.setValue,t=this.props,r=t.isMulti,i=t.isRtl,o=t.options;return{clearValue:this.clearValue,cx:this.cx,getStyles:this.getStyles,getClassNames:this.getClassNames,getValue:this.getValue,hasValue:this.hasValue(),isMulti:r,isRtl:i,options:o,selectOption:e,selectProps:t,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,n=e.isClearable;return void 0===n?e.isMulti:n}},{key:"isOptionDisabled",value:function(e,n){return zn(this.props,e,n)}},{key:"isOptionSelected",value:function(e,n){return Un(this.props,e,n)}},{key:"filterOption",value:function(e,n){return Qn(this.props,e,n)}},{key:"formatOptionLabel",value:function(e,n){return"function"==typeof this.props.formatOptionLabel?this.props.formatOptionLabel(e,{context:n,inputValue:this.props.inputValue,selectValue:this.state.selectValue}):this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,t=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,l=this.state,d=l.inputIsHidden,p=l.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),g=N(N(N({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!t&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return t?/*#__PURE__*/f.createElement(c,M({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:n,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},g)):/*#__PURE__*/f.createElement(yn,M({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:le,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),t=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,o=n.MultiValueRemove,a=n.SingleValue,s=n.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,I=g.isFocused;if(!this.hasValue()||!l)return h?null:/*#__PURE__*/f.createElement(s,M({},u,{key:"placeholder",isDisabled:d,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return b.map(function(n,a){var s=n===v,c="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));/*#__PURE__*/
2
+ return f.createElement(t,M({},u,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),e.formatOptionLabel(n,"value"))});if(h)return null;var y=b[0];/*#__PURE__*/
3
+ return f.createElement(a,M({},u,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,t=this.props,r=t.isDisabled,i=t.isLoading,o=this.state.isFocused;return this.isClearable()&&e&&!r&&this.hasValue()&&!i?/*#__PURE__*/f.createElement(e,M({},n,{innerProps:{onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"},isFocused:o})):null}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.props;return e&&n.isLoading?/*#__PURE__*/f.createElement(e,M({},this.commonProps,{innerProps:{"aria-hidden":"true"},isDisabled:n.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.IndicatorSeparator;return e.DropdownIndicator&&n?/*#__PURE__*/f.createElement(n,M({},this.commonProps,{isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;return e?/*#__PURE__*/f.createElement(e,M({},this.commonProps,{innerProps:{onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"},isDisabled:this.props.isDisabled,isFocused:this.state.isFocused})):null}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),t=n.Group,r=n.GroupHeading,i=n.Menu,o=n.MenuList,a=n.MenuPortal,s=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,l=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,b=p.loadingMessage,v=p.minMenuHeight,I=p.maxMenuHeight,y=p.menuPlacement,C=p.menuPosition,x=p.menuPortalTarget,A=p.menuShouldBlockScroll,w=p.menuShouldScrollIntoView,R=p.noOptionsMessage,S=p.onMenuScrollToTop,N=p.onMenuScrollToBottom;if(!p.menuIsOpen)return null;var E,T=function(n,t){var r=n.type,i=n.data,o=n.isDisabled,a=n.isSelected,s=n.label,u=n.value,p=d===i,h=o?void 0:function(){return e.onOptionHover(i)},m=o?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(t);/*#__PURE__*/
4
+ return f.createElement(c,M({},l,{innerProps:{id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a},data:i,isDisabled:o,isSelected:a,key:g,label:s,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map(function(n){if("group"===n.type){var i=n.data,o=n.options,a=n.index,s="".concat(e.getElementId("group"),"-").concat(a),u="".concat(s,"-heading");/*#__PURE__*/
5
+ return f.createElement(t,M({},l,{key:s,data:i,options:o,Heading:r,headingProps:{id:u,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map(function(e){return T(e,"".concat(a,"-").concat(e.index))}))}if("option"===n.type)return T(n,"".concat(n.index))});else if(g){var D=b({inputValue:m});if(null===D)return null;E=/*#__PURE__*/f.createElement(s,l,D)}else{var G=R({inputValue:m});if(null===G)return null;E=/*#__PURE__*/f.createElement(u,l,G)}var O={minMenuHeight:v,maxMenuHeight:I,menuPlacement:y,menuPosition:C,menuShouldScrollIntoView:w},k=/*#__PURE__*/f.createElement(ke,M({},l,O),function(n){var t=n.placerProps,r=t.maxHeight;/*#__PURE__*/
6
+ return f.createElement(i,M({},l,O,{innerRef:n.ref,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:t.placement}),/*#__PURE__*/f.createElement(On,{captureEnabled:h,onTopArrive:S,onBottomArrive:N,lockEnabled:A},function(n){/*#__PURE__*/
7
+ return f.createElement(o,M({},l,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:r,focusedOption:d}),E)}))});return x||"fixed"===C?/*#__PURE__*/f.createElement(a,M({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:y,menuPosition:C}),k):k}},{key:"renderFormField",value:function(){var e=this,n=this.props,t=n.delimiter,r=n.isDisabled,i=n.isMulti,o=n.name,a=this.state.selectValue;if(n.required&&!this.hasValue()&&!r)/*#__PURE__*/
8
+ return f.createElement(kn,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(t){var s=a.map(function(n){return e.getOptionValue(n)}).join(t);/*#__PURE__*/
9
9
  return f.createElement("input",{name:o,type:"hidden",value:s})}var u=a.length>0?a.map(function(n,t){/*#__PURE__*/
10
10
  return f.createElement("input",{key:"i-".concat(t),name:o,type:"hidden",value:e.getOptionValue(n)})}):/*#__PURE__*/f.createElement("input",{name:o,type:"hidden",value:""});/*#__PURE__*/
11
11
  return f.createElement("div",null,u)}var c=a[0]?this.getOptionValue(a[0]):"";/*#__PURE__*/
12
12
  return f.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,t=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,o=n.isFocused,a=n.selectValue,s=this.getFocusableOptions();/*#__PURE__*/
13
- return f.createElement(un,k({},e,{id:this.getElementId("live-region"),ariaSelection:t,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,t=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,u=o.isDisabled,c=o.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();/*#__PURE__*/
14
- return f.createElement(r,k({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),/*#__PURE__*/f.createElement(n,k({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),/*#__PURE__*/f.createElement(i,k({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),/*#__PURE__*/f.createElement(t,k({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,r=n.clearFocusValueOnUpdate,i=n.inputIsHiddenAfterUpdate,o=n.ariaSelection,a=n.isFocused,s=n.prevWasFocused,u=n.instancePrefix,c=e.options,l=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=he(l),m={};if(t&&(l!==t.value||c!==t.options||d!==t.menuIsOpen||p!==t.inputValue)){var g=d?function(e,n){return Xn(Fn(e,n))}(e,f):[],b=d?Ln(Fn(e,f),"".concat(u,"-option")):[],v=r?function(e,n){var t=e.focusedValue,r=e.selectValue.indexOf(t);if(r>-1){if(n.indexOf(t)>-1)return t;if(r<n.length)return n[r]}return null}(n,f):null,I=function(e,n){var t=e.focusedOption;return t&&n.indexOf(t)>-1?t:n[0]}(n,g);m={selectValue:f,focusedOption:I,focusedOptionId:Zn(b,I),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==t?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},C=o,x=a&&s;return a&&!x&&(C={value:Se(h,f,f[0]||null),options:f,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(C=null),N(N(N({},m),y),{},{prevProps:e,ariaSelection:C,prevWasFocused:x})}}]),t}();$n.defaultProps=Yn;var et=/*#__PURE__*/e.forwardRef(function(n,t){var r=function(n){var t=n.defaultInputValue,r=void 0===t?"":t,i=n.defaultMenuIsOpen,o=void 0!==i&&i,a=n.defaultValue,s=void 0===a?null:a,u=n.inputValue,c=n.menuIsOpen,l=n.onChange,d=n.onInputChange,p=n.onMenuClose,h=n.onMenuOpen,f=n.value,m=G(n,O),g=D(e.useState(void 0!==u?u:r),2),b=g[0],v=g[1],I=D(e.useState(void 0!==c?c:o),2),y=I[0],C=I[1],x=D(e.useState(void 0!==f?f:s),2),A=x[0],w=x[1],R=e.useCallback(function(e,n){"function"==typeof l&&l(e,n),w(e)},[l]),S=e.useCallback(function(e,n){var t;"function"==typeof d&&(t=d(e,n)),v(void 0!==t?t:e)},[d]),E=e.useCallback(function(){"function"==typeof h&&h(),C(!0)},[h]),T=e.useCallback(function(){"function"==typeof p&&p(),C(!1)},[p]),k=void 0!==u?u:b,M=void 0!==c?c:y,_=void 0!==f?f:A;return N(N({},m),{},{inputValue:k,menuIsOpen:M,onChange:R,onInputChange:S,onMenuClose:T,onMenuOpen:E,value:_})}(n);/*#__PURE__*/
15
- return f.createElement($n,k({ref:t},r))}),nt=et;const tt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function rt(e){const n=Object.prototype.toString.call(e);return"[object Window]"===n||"[object global]"===n}function it(e){return"nodeType"in e}function ot(e){var n,t;return e?rt(e)?e:it(e)&&null!=(n=null==(t=e.ownerDocument)?void 0:t.defaultView)?n:window:window}function at(e){const{Document:n}=ot(e);return e instanceof n}function st(e){return!rt(e)&&e instanceof ot(e).HTMLElement}function ut(e){return e instanceof ot(e).SVGElement}function ct(e){return e?rt(e)?e.document:it(e)?at(e)?e:st(e)||ut(e)?e.ownerDocument:document:document:document}const lt=tt?e.useLayoutEffect:e.useEffect;function dt(n){const t=e.useRef(n);return lt(()=>{t.current=n}),e.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function pt(n,t){void 0===t&&(t=[n]);const r=e.useRef(n);return lt(()=>{r.current!==n&&(r.current=n)},t),r}function ht(n,t){const r=e.useRef();return e.useMemo(()=>{const e=n(r.current);return r.current=e,e},[...t])}function ft(n){const t=dt(n),r=e.useRef(null),i=e.useCallback(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function mt(n){const t=e.useRef();return e.useEffect(()=>{t.current=n},[n]),t.current}let gt={};function bt(n,t){return e.useMemo(()=>{if(t)return t;const e=null==gt[n]?0:gt[n]+1;return gt[n]=e,n+"-"+e},[n,t])}function vt(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return r.reduce((n,t)=>{const r=Object.entries(t);for(const[t,i]of r){const r=n[t];null!=r&&(n[t]=r+e*i)}return n},{...n})}}const It=/*#__PURE__*/vt(1),yt=/*#__PURE__*/vt(-1);function Ct(e){if(!e)return!1;const{KeyboardEvent:n}=ot(e.target);return n&&e instanceof n}function xt(e){if(function(e){if(!e)return!1;const{TouchEvent:n}=ot(e.target);return n&&e instanceof n}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const At=/*#__PURE__*/Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[At.Translate.toString(e),At.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:r}=e;return n+" "+t+"ms "+r}}}),wt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Rt(e){return e.matches(wt)?e:e.querySelector(wt)}const St={display:"none"};function Nt(e){let{id:n,value:t}=e;return h.default.createElement("div",{id:n,style:St},t)}function Et(e){let{id:n,announcement:t,ariaLiveType:r="assertive"}=e;return h.default.createElement("div",{id:n,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},t)}const Tt=/*#__PURE__*/e.createContext(null),Dt={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Gt={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function Ot(n){let{announcements:t=Gt,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=Dt}=n;const{announce:s,announcement:u}=function(){const[n,t]=e.useState("");return{announce:e.useCallback(e=>{null!=e&&t(e)},[]),announcement:n}}(),c=bt("DndLiveRegion"),[l,d]=e.useState(!1);if(e.useEffect(()=>{d(!0)},[]),function(n){const t=e.useContext(Tt);e.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(n)},[n,t])}(e.useMemo(()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&s(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;s(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;s(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;s(t.onDragCancel({active:n,over:r}))}}),[s,t])),!l)return null;const p=h.default.createElement(h.default.Fragment,null,h.default.createElement(Nt,{id:o,value:a.draggable}),h.default.createElement(Et,{id:c,announcement:u}));return i?r.createPortal(p,i):p}var kt;function Mt(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(kt||(kt={}));const _t=/*#__PURE__*/Object.freeze({x:0,y:0});function Bt(e,n){let{data:{value:t}}=e,{data:{value:r}}=n;return r-t}function Vt(e,n){const t=Math.max(n.top,e.top),r=Math.max(n.left,e.left),i=Math.min(n.left+n.width,e.left+e.width),o=Math.min(n.top+n.height,e.top+e.height);if(r<i&&t<o){const a=(i-r)*(o-t);return Number((a/(n.width*n.height+e.width*e.height-a)).toFixed(4))}return 0}const Pt=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=t.get(r);if(o){const t=Vt(o,n);t>0&&i.push({id:r,data:{droppableContainer:e,value:t}})}}return i.sort(Bt)};function Yt(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:_t}function Wt(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return r.reduce((n,t)=>({...n,top:n.top+e*t.y,bottom:n.bottom+e*t.y,left:n.left+e*t.x,right:n.right+e*t.x}),{...n})}}const Ft=/*#__PURE__*/Wt(1),Xt={ignoreTransform:!1};function Lt(e,n){void 0===n&&(n=Xt);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:n,transformOrigin:r}=ot(e).getComputedStyle(e);n&&(t=function(e,n,t){const r=function(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}(n);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,u=e.left-a-(1-i)*parseFloat(t),c=e.top-s-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),l=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:l,height:d,top:c,right:u+l,bottom:c+d,left:u}}(t,n,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:u}=t;return{top:r,left:i,width:o,height:a,bottom:s,right:u}}function Ht(e){return Lt(e,{ignoreTransform:!0})}function Zt(e,n){const t=[];return e?function r(i){if(null!=n&&t.length>=n)return t;if(!i)return t;if(at(i)&&null!=i.scrollingElement&&!t.includes(i.scrollingElement))return t.push(i.scrollingElement),t;if(!st(i)||ut(i))return t;if(t.includes(i))return t;const o=ot(e).getComputedStyle(i);return i!==e&&function(e,n){void 0===n&&(n=ot(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=n[e];return"string"==typeof r&&t.test(r)})}(i,o)&&t.push(i),function(e,n){return void 0===n&&(n=ot(e).getComputedStyle(e)),"fixed"===n.position}(i,o)?t:r(i.parentNode)}(e):t}function jt(e){const[n]=Zt(e,1);return null!=n?n:null}function Jt(e){return tt&&e?rt(e)?e:it(e)?at(e)||e===ct(e).scrollingElement?window:st(e)?e:null:null:null}function zt(e){return rt(e)?e.scrollX:e.scrollLeft}function Ut(e){return rt(e)?e.scrollY:e.scrollTop}function Qt(e){return{x:zt(e),y:Ut(e)}}var qt;function Kt(e){return!(!tt||!e)&&e===document.scrollingElement}function $t(e){const n={x:0,y:0},t=Kt(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height};return{isTop:e.scrollTop<=n.y,isLeft:e.scrollLeft<=n.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:n}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(qt||(qt={}));const er={x:.2,y:.2};function nr(e,n,t,r,i){let{top:o,left:a,right:s,bottom:u}=t;void 0===r&&(r=10),void 0===i&&(i=er);const{isTop:c,isBottom:l,isLeft:d,isRight:p}=$t(e),h={x:0,y:0},f={x:0,y:0},m=n.height*i.y,g=n.width*i.x;return!c&&o<=n.top+m?(h.y=qt.Backward,f.y=r*Math.abs((n.top+m-o)/m)):!l&&u>=n.bottom-m&&(h.y=qt.Forward,f.y=r*Math.abs((n.bottom-m-u)/m)),!p&&s>=n.right-g?(h.x=qt.Forward,f.x=r*Math.abs((n.right-g-s)/g)):!d&&a<=n.left+g&&(h.x=qt.Backward,f.x=r*Math.abs((n.left+g-a)/g)),{direction:h,speed:f}}function tr(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:n}=window;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}const{top:n,left:t,right:r,bottom:i}=e.getBoundingClientRect();return{top:n,left:t,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function rr(e){return e.reduce((e,n)=>It(e,Qt(n)),_t)}const ir=[["x",["left","right"],function(e){return e.reduce((e,n)=>e+zt(n),0)}],["y",["top","bottom"],function(e){return e.reduce((e,n)=>e+Ut(n),0)}]];class or{constructor(e,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const t=Zt(n),r=rr(t);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,n,i]of ir)for(const o of n)Object.defineProperty(this,o,{get:()=>{const n=i(t);return this.rect[o]+(r[e]-n)},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ar{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var n;return null==(n=this.target)?void 0:n.removeEventListener(...e)})},this.target=e}add(e,n,t){var r;null==(r=this.target)||r.addEventListener(e,n,t),this.listeners.push([e,n,t])}}function sr(e,n){const t=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof n?Math.sqrt(t**2+r**2)>n:"x"in n&&"y"in n?t>n.x&&r>n.y:"x"in n?t>n.x:"y"in n&&r>n.y}var ur,cr;function lr(e){e.preventDefault()}function dr(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ur||(ur={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(cr||(cr={}));const pr={start:[cr.Space,cr.Enter],cancel:[cr.Esc],end:[cr.Space,cr.Enter,cr.Tab]},hr=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case cr.Right:return{...t,x:t.x+25};case cr.Left:return{...t,x:t.x-25};case cr.Down:return{...t,y:t.y+25};case cr.Up:return{...t,y:t.y-25}}};class fr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new ar(ct(n)),this.windowListeners=new ar(ot(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ur.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:n}=this.props,t=e.node.current;t&&function(e,n){if(void 0===n&&(n=Lt),!e)return;const{top:t,left:r,bottom:i,right:o}=n(e);jt(e)&&(i<=0||o<=0||t>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(t),n(_t)}handleKeyDown(e){if(Ct(e)){const{active:n,context:t,options:r}=this.props,{keyboardCodes:i=pr,coordinateGetter:o=hr,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:u}=t.current,c=u?{x:u.left,y:u.top}:_t;this.referenceCoordinates||(this.referenceCoordinates=c);const l=o(e,{active:n,context:t.current,currentCoordinates:c});if(l){const n=yt(l,c),r={x:0,y:0},{scrollableAncestors:i}=t.current;for(const t of i){const i=e.code,{isTop:o,isRight:s,isLeft:u,isBottom:c,maxScroll:d,minScroll:p}=$t(t),h=tr(t),f={x:Math.min(i===cr.Right?h.right-h.width/2:h.right,Math.max(i===cr.Right?h.left:h.left+h.width/2,l.x)),y:Math.min(i===cr.Down?h.bottom-h.height/2:h.bottom,Math.max(i===cr.Down?h.top:h.top+h.height/2,l.y))},m=i===cr.Down&&!c||i===cr.Up&&!o;if((i===cr.Right&&!s||i===cr.Left&&!u)&&f.x!==l.x){const e=t.scrollLeft+n.x,o=i===cr.Right&&e<=d.x||i===cr.Left&&e>=p.x;if(o&&!n.y)return void t.scrollTo({left:e,behavior:a});r.x=o?t.scrollLeft-e:i===cr.Right?t.scrollLeft-d.x:t.scrollLeft-p.x,r.x&&t.scrollBy({left:-r.x,behavior:a});break}if(m&&f.y!==l.y){const e=t.scrollTop+n.y,o=i===cr.Down&&e<=d.y||i===cr.Up&&e>=p.y;if(o&&!n.x)return void t.scrollTo({top:e,behavior:a});r.y=o?t.scrollTop-e:i===cr.Down?t.scrollTop-d.y:t.scrollTop-p.y,r.y&&t.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,It(yt(l,this.referenceCoordinates),r))}}}handleMove(e,n){const{onMove:t}=this.props;e.preventDefault(),t(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function mr(e){return Boolean(e&&"distance"in e)}function gr(e){return Boolean(e&&"delay"in e)}fr.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:r=pr,onActivation:i}=n,{active:o}=t;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const n=o.activatorNode.current;return!(n&&e.target!==n||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class br{constructor(e,n,t){var r;void 0===t&&(t=function(e){const{EventTarget:n}=ot(e);return e instanceof n?e:ct(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;const{event:i}=e,{target:o}=i;this.props=e,this.events=n,this.document=ct(o),this.documentListeners=new ar(this.document),this.listeners=new ar(t),this.windowListeners=new ar(ot(o)),this.initialCoordinates=null!=(r=xt(i))?r:_t,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.DragStart,lr),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),this.windowListeners.add(ur.ContextMenu,lr),this.documentListeners.add(ur.Keydown,this.handleKeydown),n){if(null!=t&&t({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gr(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(mr(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,n){const{active:t,onPending:r}=this.props;r(t,e,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(ur.Click,dr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ur.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:t,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(n=xt(e))?n:_t,u=yt(r,s);if(!t&&a){if(mr(a)){if(null!=a.tolerance&&sr(u,a.tolerance))return this.handleCancel();if(sr(u,a.distance))return this.handleStart()}return gr(a)&&sr(u,a.tolerance)?this.handleCancel():void this.handlePending(a,u)}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){const{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===cr.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const vr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ir extends br{constructor(e){const{event:n}=e,t=ct(n.target);super(e,vr,t)}}Ir.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return!(!t.isPrimary||0!==t.button||(null==r||r({event:t}),0))}}];const yr={move:{name:"mousemove"},end:{name:"mouseup"}};var Cr;!function(e){e[e.RightClick=2]="RightClick"}(Cr||(Cr={})),class extends br{constructor(e){super(e,yr,ct(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return t.button!==Cr.RightClick&&(null==r||r({event:t}),!0)}}];const xr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Ar,wr;(class extends br{constructor(e){super(e,xr)}static setup(){return window.addEventListener(xr.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(xr.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;const{touches:i}=t;return!(i.length>1||(null==r||r({event:t}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ar||(Ar={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(wr||(wr={}));const Rr={x:{[qt.Backward]:!1,[qt.Forward]:!1},y:{[qt.Backward]:!1,[qt.Forward]:!1}};var Sr,Nr;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Sr||(Sr={})),function(e){e.Optimized="optimized"}(Nr||(Nr={}));const Er=/*#__PURE__*/new Map;function Tr(e,n){return ht(t=>e?t||("function"==typeof n?n(e):e):null,[n,e])}function Dr(n){let{callback:t,disabled:r}=n;const i=dt(t),o=e.useMemo(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)},[r]);return e.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Gr(e){return new or(Lt(e),e)}function Or(n,t,r){void 0===t&&(t=Gr);const[i,o]=e.useState(null);function a(){o(e=>{if(!n)return null;var i;if(!1===n.isConnected)return null!=(i=null!=e?e:r)?i:null;const o=t(n);return JSON.stringify(e)===JSON.stringify(o)?e:o})}const s=function(n){let{callback:t,disabled:r}=n;const i=dt(t),o=e.useMemo(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)},[i,r]);return e.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(e){if(n)for(const t of e){const{type:e,target:r}=t;if("childList"===e&&r instanceof HTMLElement&&r.contains(n)){a();break}}}}),u=Dr({callback:a});return lt(()=>{a(),n?(null==u||u.observe(n),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==u||u.disconnect(),null==s||s.disconnect())},[n]),i}const kr=[];function Mr(n,t){void 0===t&&(t=[]);const r=e.useRef(null);return e.useEffect(()=>{r.current=null},t),e.useEffect(()=>{const e=n!==_t;e&&!r.current&&(r.current=n),!e&&r.current&&(r.current=null)},[n]),r.current?yt(n,r.current):_t}function _r(n){return e.useMemo(()=>n?function(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}(n):null,[n])}const Br=[],Vr=[{sensor:Ir,options:{}},{sensor:fr,options:{}}],Pr={current:{}},Yr={draggable:{measure:Ht},droppable:{measure:Ht,strategy:Sr.WhileDragging,frequency:Nr.Optimized},dragOverlay:{measure:Lt}};class Wr extends Map{get(e){var n;return null!=e&&null!=(n=super.get(e))?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:n}=e;return!n})}getNodeFor(e){var n,t;return null!=(n=null==(t=this.get(e))?void 0:t.node.current)?n:void 0}}const Fr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:/*#__PURE__*/new Map,droppableRects:/*#__PURE__*/new Map,droppableContainers:/*#__PURE__*/new Wr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Mt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Yr,measureDroppableContainers:Mt,windowRect:null,measuringScheduled:!1},Xr=/*#__PURE__*/e.createContext({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Mt,draggableNodes:/*#__PURE__*/new Map,over:null,measureDroppableContainers:Mt}),Lr=/*#__PURE__*/e.createContext(Fr);function Hr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Wr}}}function Zr(e,n){switch(n.type){case kt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case kt.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case kt.DragEnd:case kt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case kt.RegisterDroppable:{const{element:t}=n,{id:r}=t,i=new Wr(e.droppable.containers);return i.set(r,t),{...e,droppable:{...e.droppable,containers:i}}}case kt.SetDroppableDisabled:{const{id:t,key:r,disabled:i}=n,o=e.droppable.containers.get(t);if(!o||r!==o.key)return e;const a=new Wr(e.droppable.containers);return a.set(t,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case kt.UnregisterDroppable:{const{id:t,key:r}=n,i=e.droppable.containers.get(t);if(!i||r!==i.key)return e;const o=new Wr(e.droppable.containers);return o.delete(t),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function jr(n){let{disabled:t}=n;const{active:r,activatorEvent:i,draggableNodes:o}=e.useContext(Xr),a=mt(i),s=mt(null==r?void 0:r.id);return e.useEffect(()=>{if(!t&&!i&&a&&null!=s){if(!Ct(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:n,node:t}=e;if(!n.current&&!t.current)return;requestAnimationFrame(()=>{for(const e of[n.current,t.current]){if(!e)continue;const n=Rt(e);if(n){n.focus();break}}})}},[i,t,o,s,a]),null}const Jr=/*#__PURE__*/e.createContext({..._t,scaleX:1,scaleY:1});var zr;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(zr||(zr={}));const Ur=/*#__PURE__*/e.memo(function(n){var t,i,o,a;let{id:s,accessibility:u,autoScroll:c=!0,children:l,sensors:d=Vr,collisionDetection:p=Pt,measuring:f,modifiers:m,...g}=n;const b=e.useReducer(Zr,void 0,Hr),[v,I]=b,[y,C]=function(){const[n]=e.useState(()=>new Set),t=e.useCallback(e=>(n.add(e),()=>n.delete(e)),[n]),r=e.useCallback(e=>{let{type:t,event:r}=e;n.forEach(e=>{var n;return null==(n=e[t])?void 0:n.call(e,r)})},[n]);return[r,t]}(),[x,A]=e.useState(zr.Uninitialized),w=x===zr.Initialized,{draggable:{active:R,nodes:S,translate:N},droppable:{containers:E}}=v,T=null!=R?S.get(R):null,D=e.useRef({initial:null,translated:null}),G=e.useMemo(()=>{var e;return null!=R?{id:R,data:null!=(e=null==T?void 0:T.data)?e:Pr,rect:D}:null},[R,T]),O=e.useRef(null),[k,M]=e.useState(null),[_,B]=e.useState(null),V=pt(g,Object.values(g)),P=bt("DndDescribedBy",s),Y=e.useMemo(()=>E.getEnabled(),[E]),W=function(n){return e.useMemo(()=>({draggable:{...Yr.draggable,...null==n?void 0:n.draggable},droppable:{...Yr.droppable,...null==n?void 0:n.droppable},dragOverlay:{...Yr.dragOverlay,...null==n?void 0:n.dragOverlay}}),[null==n?void 0:n.draggable,null==n?void 0:n.droppable,null==n?void 0:n.dragOverlay])}(f),{droppableRects:F,measureDroppableContainers:X,measuringScheduled:L}=function(n,t){let{dragging:r,dependencies:i,config:o}=t;const[a,s]=e.useState(null),{frequency:u,measure:c,strategy:l}=o,d=e.useRef(n),p=function(){switch(l){case Sr.Always:return!1;case Sr.BeforeDragging:return r;default:return!r}}(),h=pt(p),f=e.useCallback(function(e){void 0===e&&(e=[]),h.current||s(n=>null===n?e:n.concat(e.filter(e=>!n.includes(e))))},[h]),m=e.useRef(null),g=ht(e=>{if(p&&!r)return Er;if(!e||e===Er||d.current!==n||null!=a){const e=new Map;for(let t of n){if(!t)continue;if(a&&a.length>0&&!a.includes(t.id)&&t.rect.current){e.set(t.id,t.rect.current);continue}const n=t.node.current,r=n?new or(c(n),n):null;t.rect.current=r,r&&e.set(t.id,r)}return e}return e},[n,a,r,p,c]);return e.useEffect(()=>{d.current=n},[n]),e.useEffect(()=>{p||f()},[r,p]),e.useEffect(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),e.useEffect(()=>{p||"number"!=typeof u||null!==m.current||(m.current=setTimeout(()=>{f(),m.current=null},u))},[u,p,f,...i]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=a}}(Y,{dragging:w,dependencies:[N.x,N.y],config:W.droppable}),H=function(e,n){const t=null!=n?e.get(n):void 0,r=t?t.node.current:null;return ht(e=>{var t;return null==n?null:null!=(t=null!=r?r:e)?t:null},[r,n])}(S,R),Z=e.useMemo(()=>_?xt(_):null,[_]),j=function(){const e=w&&!(!1===(null==k?void 0:k.autoScrollEnabled))&&!("object"==typeof c?!1===c.enabled:!1===c);return"object"==typeof c?{...c,enabled:e}:{enabled:e}}(),J=function(e,n){return Tr(e,n)}(H,W.draggable.measure);!function(n){let{activeNode:t,measure:r,initialRect:i,config:o=!0}=n;const a=e.useRef(!1),{x:s,y:u}="boolean"==typeof o?{x:o,y:o}:o;lt(()=>{if(!s&&!u||!t)return void(a.current=!1);if(a.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=Yt(r(e),i);if(s||(n.x=0),u||(n.y=0),a.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=jt(e);t&&t.scrollBy({top:n.y,left:n.x})}},[t,s,u,i,r])}({activeNode:null!=R?S.get(R):null,config:j.layoutShiftCompensation,initialRect:J,measure:W.draggable.measure});const z=Or(H,W.draggable.measure,J),U=Or(H?H.parentElement:null),Q=e.useRef({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),q=E.getNodeFor(null==(t=Q.current.over)?void 0:t.id),K=function(n){let{measure:t}=n;const[r,i]=e.useState(null),o=e.useCallback(e=>{for(const{target:n}of e)if(st(n)){i(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),a=Dr({callback:o}),s=e.useCallback(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return st(n)?n:e}(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),i(n?t(n):null)},[t,a]),[u,c]=ft(s);return e.useMemo(()=>({nodeRef:u,rect:r,setRef:c}),[r,u,c])}({measure:W.dragOverlay.measure}),$=null!=(i=K.nodeRef.current)?i:H,ee=w?null!=(o=K.rect)?o:z:null,ne=Boolean(K.nodeRef.current&&K.rect),te=Yt(re=ne?null:z,Tr(re));var re;const ie=_r($?ot($):null),oe=function(n){const t=e.useRef(n),r=ht(e=>n?e&&e!==kr&&n&&t.current&&n.parentNode===t.current.parentNode?e:Zt(n):kr,[n]);return e.useEffect(()=>{t.current=n},[n]),r}(w?null!=q?q:H:null),ae=function(n,t){void 0===t&&(t=Lt);const[r]=n,i=_r(r?ot(r):null),[o,a]=e.useState(Br);function s(){a(()=>n.length?n.map(e=>Kt(e)?i:new or(t(e),e)):Br)}const u=Dr({callback:s});return lt(()=>{null==u||u.disconnect(),s(),n.forEach(e=>null==u?void 0:u.observe(e))},[n]),o}(oe),se=function(e,n){let{transform:t,...r}=n;return null!=e&&e.length?e.reduce((e,n)=>n({transform:e,...r}),t):t}(m,{transform:{x:N.x-te.x,y:N.y-te.y,scaleX:1,scaleY:1},activatorEvent:_,active:G,activeNodeRect:z,containerNodeRect:U,draggingNodeRect:ee,over:Q.current.over,overlayNodeRect:K.rect,scrollableAncestors:oe,scrollableAncestorRects:ae,windowRect:ie}),ue=Z?It(Z,N):null,ce=function(n){const[t,r]=e.useState(null),i=e.useRef(n),o=e.useCallback(e=>{const n=Jt(e.target);n&&r(e=>e?(e.set(n,Qt(n)),new Map(e)):null)},[]);return e.useEffect(()=>{const e=i.current;if(n!==e){t(e);const a=n.map(e=>{const n=Jt(e);return n?(n.addEventListener("scroll",o,{passive:!0}),[n,Qt(n)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),i.current=n}return()=>{t(n),t(e)};function t(e){e.forEach(e=>{const n=Jt(e);null==n||n.removeEventListener("scroll",o)})}},[o,n]),e.useMemo(()=>n.length?t?Array.from(t.values()).reduce((e,n)=>It(e,n),_t):rr(n):_t,[n,t])}(oe),le=Mr(ce),de=Mr(ce,[z]),pe=It(se,le),he=ee?Ft(ee,se):null,fe=G&&he?p({active:G,collisionRect:he,droppableRects:F,droppableContainers:Y,pointerCoordinates:ue}):null,me=function(e){if(!e||0===e.length)return null;const[n]=e;return n.id}(fe),[ge,be]=e.useState(null),ve=function(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}(ne?se:It(se,de),null!=(a=null==ge?void 0:ge.rect)?a:null,z),Ie=e.useRef(null),ye=e.useCallback((e,n)=>{let{sensor:t,options:i}=n;if(null==O.current)return;const o=S.get(O.current);if(!o)return;const a=e.nativeEvent,s=new t({active:O.current,activeNode:o,event:a,options:i,context:Q,onAbort(e){if(!S.get(e))return;const{onDragAbort:n}=V.current,t={id:e};null==n||n(t),y({type:"onDragAbort",event:t})},onPending(e,n,t,r){if(!S.get(e))return;const{onDragPending:i}=V.current,o={id:e,constraint:n,initialCoordinates:t,offset:r};null==i||i(o),y({type:"onDragPending",event:o})},onStart(e){const n=O.current;if(null==n)return;const t=S.get(n);if(!t)return;const{onDragStart:i}=V.current,o={activatorEvent:a,active:{id:n,data:t.data,rect:D}};r.unstable_batchedUpdates(()=>{null==i||i(o),A(zr.Initializing),I({type:kt.DragStart,initialCoordinates:e,active:n}),y({type:"onDragStart",event:o}),M(Ie.current),B(a)})},onMove(e){I({type:kt.DragMove,coordinates:e})},onEnd:u(kt.DragEnd),onCancel:u(kt.DragCancel)});function u(e){return async function(){const{active:n,collisions:t,over:i,scrollAdjustedTranslate:o}=Q.current;let s=null;if(n&&o){const{cancelDrop:r}=V.current;s={activatorEvent:a,active:n,collisions:t,delta:o,over:i},e===kt.DragEnd&&"function"==typeof r&&await Promise.resolve(r(s))&&(e=kt.DragCancel)}O.current=null,r.unstable_batchedUpdates(()=>{I({type:e}),A(zr.Uninitialized),be(null),M(null),B(null),Ie.current=null;const n=e===kt.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=V.current[n];null==e||e(s),y({type:n,event:s})}})}}Ie.current=s},[S]),Ce=e.useCallback((e,n)=>(t,r)=>{const i=t.nativeEvent,o=S.get(r);null!==O.current||!o||i.dndKit||i.defaultPrevented||!0===e(t,n.options,{active:o})&&(i.dndKit={capturedBy:n.sensor},O.current=r,ye(t,n))},[S,ye]),xe=function(n,t){return e.useMemo(()=>n.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[n,t])}(d,Ce);!function(n){e.useEffect(()=>{if(!tt)return;const e=n.map(e=>{let{sensor:n}=e;return null==n.setup?void 0:n.setup()});return()=>{for(const n of e)null==n||n()}},n.map(e=>{let{sensor:n}=e;return n}))}(d),lt(()=>{z&&x===zr.Initializing&&A(zr.Initialized)},[z,x]),e.useEffect(()=>{const{onDragMove:e}=V.current,{active:n,activatorEvent:t,collisions:i,over:o}=Q.current;if(!n||!t)return;const a={active:n,activatorEvent:t,collisions:i,delta:{x:pe.x,y:pe.y},over:o};r.unstable_batchedUpdates(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[pe.x,pe.y]),e.useEffect(()=>{const{active:e,activatorEvent:n,collisions:t,droppableContainers:i,scrollAdjustedTranslate:o}=Q.current;if(!e||null==O.current||!n||!o)return;const{onDragOver:a}=V.current,s=i.get(me),u=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:n,collisions:t,delta:{x:o.x,y:o.y},over:u};r.unstable_batchedUpdates(()=>{be(u),null==a||a(c),y({type:"onDragOver",event:c})})},[me]),lt(()=>{Q.current={activatorEvent:_,active:G,activeNode:H,collisionRect:he,collisions:fe,droppableRects:F,draggableNodes:S,draggingNode:$,draggingNodeRect:ee,droppableContainers:E,over:ge,scrollableAncestors:oe,scrollAdjustedTranslate:pe},D.current={initial:ee,translated:he}},[G,H,fe,he,S,$,ee,F,E,ge,oe,pe]),function(n){let{acceleration:t,activator:r=Ar.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:u=wr.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:d,delta:p,threshold:h}=n;const f=function(e){let{delta:n,disabled:t}=e;const r=mt(n);return ht(e=>{if(t||!r||!e)return Rr;const i=Math.sign(n.x-r.x),o=Math.sign(n.y-r.y);return{x:{[qt.Backward]:e.x[qt.Backward]||-1===i,[qt.Forward]:e.x[qt.Forward]||1===i},y:{[qt.Backward]:e.y[qt.Backward]||-1===o,[qt.Forward]:e.y[qt.Forward]||1===o}}},[t,n,r])}({delta:p,disabled:!a}),[m,g]=function(){const n=e.useRef(null);return[e.useCallback((e,t)=>{n.current=setInterval(e,t)},[]),e.useCallback(()=>{null!==n.current&&(clearInterval(n.current),n.current=null)},[])]}(),b=e.useRef({x:0,y:0}),v=e.useRef({x:0,y:0}),I=e.useMemo(()=>{switch(r){case Ar.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ar.DraggableRect:return o}},[r,o,c]),y=e.useRef(null),C=e.useCallback(()=>{const e=y.current;e&&e.scrollBy(b.current.x*v.current.x,b.current.y*v.current.y)},[]),x=e.useMemo(()=>u===wr.TreeOrder?[...l].reverse():l,[u,l]);e.useEffect(()=>{if(a&&l.length&&I){for(const e of x){if(!1===(null==i?void 0:i(e)))continue;const n=l.indexOf(e),r=d[n];if(!r)continue;const{direction:o,speed:a}=nr(e,r,I,t,h);for(const e of["x","y"])f[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return g(),y.current=e,m(C,s),b.current=a,void(v.current=o)}b.current={x:0,y:0},v.current={x:0,y:0},g()}else g()},[t,C,i,g,a,s,JSON.stringify(I),JSON.stringify(f),m,l,x,d,JSON.stringify(h)])}({...j,delta:N,draggingRect:he,pointerCoordinates:ue,scrollableAncestors:oe,scrollableAncestorRects:ae});const Ae=e.useMemo(()=>({active:G,activeNode:H,activeNodeRect:z,activatorEvent:_,collisions:fe,containerNodeRect:U,dragOverlay:K,draggableNodes:S,droppableContainers:E,droppableRects:F,over:ge,measureDroppableContainers:X,scrollableAncestors:oe,scrollableAncestorRects:ae,measuringConfiguration:W,measuringScheduled:L,windowRect:ie}),[G,H,z,_,fe,U,K,S,E,F,ge,X,oe,ae,W,L,ie]),we=e.useMemo(()=>({activatorEvent:_,activators:xe,active:G,activeNodeRect:z,ariaDescribedById:{draggable:P},dispatch:I,draggableNodes:S,over:ge,measureDroppableContainers:X}),[_,xe,G,z,I,P,S,ge,X]);return h.default.createElement(Tt.Provider,{value:C},h.default.createElement(Xr.Provider,{value:we},h.default.createElement(Lr.Provider,{value:Ae},h.default.createElement(Jr.Provider,{value:ve},l)),h.default.createElement(jr,{disabled:!1===(null==u?void 0:u.restoreFocus)})),h.default.createElement(Ot,{...u,hiddenTextDescribedById:P}))}),Qr=/*#__PURE__*/e.createContext(null),qr="button",Kr={timeout:25};function $r(e,n,t){const r=e.slice();return r.splice(t<0?r.length+t:t,0,r.splice(n,1)[0]),r}function ei(e,n){return e.reduce((e,t,r)=>{const i=n.get(t);return i&&(e[r]=i),e},Array(e.length))}function ni(e){return null!==e&&e>=0}const ti=e=>{let{rects:n,activeIndex:t,overIndex:r,index:i}=e;const o=$r(n,r,t),a=n[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},ri="Sortable",ii=/*#__PURE__*/h.default.createContext({activeIndex:-1,containerId:ri,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ti,disabled:{draggable:!1,droppable:!1}});function oi(n){let{children:t,id:r,items:i,strategy:o=ti,disabled:a=!1}=n;const{active:s,dragOverlay:u,droppableRects:c,over:l,measureDroppableContainers:d}=e.useContext(Lr),p=bt(ri,r),f=Boolean(null!==u.rect),m=e.useMemo(()=>i.map(e=>"object"==typeof e&&"id"in e?e.id:e),[i]),g=null!=s,b=s?m.indexOf(s.id):-1,v=l?m.indexOf(l.id):-1,I=e.useRef(m),y=!function(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}(m,I.current),C=-1!==v&&-1===b||y,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);lt(()=>{y&&g&&d(m)},[y,m,g,d]),e.useEffect(()=>{I.current=m},[m]);const A=e.useMemo(()=>({activeIndex:b,containerId:p,disabled:x,disableTransforms:C,items:m,overIndex:v,useDragOverlay:f,sortedRects:ei(m,c),strategy:o}),[b,p,x.draggable,x.droppable,C,m,v,c,f,o]);return h.default.createElement(ii.Provider,{value:A},t)}const ai=e=>{let{id:n,items:t,activeIndex:r,overIndex:i}=e;return $r(t,r,i).indexOf(n)},si=e=>{let{containerId:n,isSorting:t,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:u,transition:c}=e;return!(!c||!r||s!==o&&i===a||!t&&(a===i||n!==u))},ui={duration:200,easing:"ease"},ci="transform",li=/*#__PURE__*/At.Transition.toString({property:ci,duration:0,easing:"linear"}),di={roleDescription:"sortable"};var pi=function(n){var t=function(n){let{animateLayoutChanges:t=si,attributes:r,disabled:i,data:o,getNewIndex:a=ai,id:s,strategy:u,resizeObserverConfig:c,transition:l=ui}=n;const{items:d,containerId:p,activeIndex:h,disabled:f,disableTransforms:m,sortedRects:g,overIndex:b,useDragOverlay:v,strategy:I}=e.useContext(ii),y=function(e,n){var t,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(t=null==e?void 0:e.draggable)?t:n.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:n.droppable}}(i,f),C=d.indexOf(s),x=e.useMemo(()=>({sortable:{containerId:p,index:C,items:d},...o}),[p,o,C,d]),A=e.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:w,node:R,isOver:S,setNodeRef:N}=function(n){let{data:t,disabled:r=!1,id:i,resizeObserverConfig:o}=n;const a=bt("Droppable"),{active:s,dispatch:u,over:c,measureDroppableContainers:l}=e.useContext(Xr),d=e.useRef({disabled:r}),p=e.useRef(!1),h=e.useRef(null),f=e.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:b}={...Kr,...o},v=pt(null!=g?g:i),I=Dr({callback:e.useCallback(()=>{p.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{l(Array.isArray(v.current)?v.current:[v.current]),f.current=null},b)):p.current=!0},[b]),disabled:m||!s}),y=e.useCallback((e,n)=>{I&&(n&&(I.unobserve(n),p.current=!1),e&&I.observe(e))},[I]),[C,x]=ft(y),A=pt(t);return e.useEffect(()=>{I&&C.current&&(I.disconnect(),p.current=!1,I.observe(C.current))},[C,I]),e.useEffect(()=>(u({type:kt.RegisterDroppable,element:{id:i,key:a,disabled:r,node:C,rect:h,data:A}}),()=>u({type:kt.UnregisterDroppable,key:a,id:i})),[i]),e.useEffect(()=>{r!==d.current.disabled&&(u({type:kt.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)},[i,a,r,u]),{active:s,rect:h,isOver:(null==c?void 0:c.id)===i,node:C,over:c,setNodeRef:x}}({id:s,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...c}}),{active:E,activatorEvent:T,activeNodeRect:D,attributes:G,setNodeRef:O,listeners:k,isDragging:M,over:_,setActivatorNodeRef:B,transform:V}=function(n){let{id:t,data:r,disabled:i=!1,attributes:o}=n;const a=bt("Draggable"),{activators:s,activatorEvent:u,active:c,activeNodeRect:l,ariaDescribedById:d,draggableNodes:p,over:h}=e.useContext(Xr),{role:f=qr,roleDescription:m="draggable",tabIndex:g=0}=null!=o?o:{},b=(null==c?void 0:c.id)===t,v=e.useContext(b?Jr:Qr),[I,y]=ft(),[C,x]=ft(),A=function(n,t){return e.useMemo(()=>n.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[n,t])}(s,t),w=pt(r);return lt(()=>(p.set(t,{id:t,key:a,node:I,activatorNode:C,data:w}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)}),[p,t]),{active:c,activatorEvent:u,activeNodeRect:l,attributes:e.useMemo(()=>({role:f,tabIndex:g,"aria-disabled":i,"aria-pressed":!(!b||f!==qr)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable}),[i,f,g,b,m,d.draggable]),isDragging:b,listeners:i?void 0:A,node:I,over:h,setNodeRef:y,setActivatorNodeRef:x,transform:v}}({id:s,data:x,attributes:{...di,...r},disabled:y.draggable}),P=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.useMemo(()=>e=>{t.forEach(n=>n(e))},t)}(N,O),Y=Boolean(E),W=Y&&!m&&ni(h)&&ni(b),F=!v&&M,X=F&&W?V:null,L=W?null!=X?X:(null!=u?u:I)({rects:g,activeNodeRect:D,activeIndex:h,overIndex:b,index:C}):null,H=ni(h)&&ni(b)?a({id:s,items:d,activeIndex:h,overIndex:b}):C,Z=null==E?void 0:E.id,j=e.useRef({activeId:Z,items:d,newIndex:H,containerId:p}),J=d!==j.current.items,z=t({active:E,containerId:p,isDragging:M,isSorting:Y,id:s,index:C,items:d,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:l,wasDragging:null!=j.current.activeId}),U=function(n){let{disabled:t,index:r,node:i,rect:o}=n;const[a,s]=e.useState(null),u=e.useRef(r);return lt(()=>{if(!t&&r!==u.current&&i.current){const e=o.current;if(e){const n=Lt(i.current,{ignoreTransform:!0}),t={x:e.left-n.left,y:e.top-n.top,scaleX:e.width/n.width,scaleY:e.height/n.height};(t.x||t.y)&&s(t)}}r!==u.current&&(u.current=r)},[t,r,i,o]),e.useEffect(()=>{a&&s(null)},[a]),a}({disabled:!z,index:C,node:R,rect:w});return e.useEffect(()=>{Y&&j.current.newIndex!==H&&(j.current.newIndex=H),p!==j.current.containerId&&(j.current.containerId=p),d!==j.current.items&&(j.current.items=d)},[Y,H,p,d]),e.useEffect(()=>{if(Z===j.current.activeId)return;if(null!=Z&&null==j.current.activeId)return void(j.current.activeId=Z);const e=setTimeout(()=>{j.current.activeId=Z},50);return()=>clearTimeout(e)},[Z]),{active:E,activeIndex:h,attributes:G,data:x,rect:w,index:C,newIndex:H,items:d,isOver:S,isSorting:Y,isDragging:M,listeners:k,node:R,overIndex:b,over:_,setNodeRef:P,setActivatorNodeRef:B,setDroppableNodeRef:N,setDraggableNodeRef:O,transform:null!=U?U:L,transition:U||J&&j.current.newIndex===C?li:F&&!Ct(T)||!l?void 0:Y||z?At.Transition.toString({...l,property:ci}):void 0}}({id:n.data.value}),r=t.attributes,i=t.listeners,o=t.setNodeRef,a=t.transition,s={display:"flex",transform:At.Transform.toString(t.transform),transition:a};return h.default.createElement("div",b({ref:o,style:s},r,i),h.default.createElement(nn.MultiValueContainer,b({},n)))},hi=function(e){var n=b({},e.innerProps,{style:{cursor:"grab"},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}});return h.default.createElement(nn.MultiValueLabel,b({},e,{innerProps:n}))},fi={en:{translation:{"Are you sure you want to delete this widget?":"Are you sure you want to delete this widget?",Cancel:"Cancel",Delete:"Delete"}},pl:{translation:{"Are you sure you want to delete this widget?":"Czy na pewno chcesz usunąć ten widżet?",Cancel:"Anuluj",Delete:"Usuń"}}},mi={root:{boxShadow:"none","& .react-resizable-handle":{width:"24px",height:"24px",borderRadius:"4px",background:function(e){return e.palette.primary.main+" url("+m.default+")"},backgroundRepeat:"no-repeat",backgroundSize:"50%",backgroundPosition:"50%","&:hover":{backgroundColor:function(e){return e.palette.primary.dark}}},"& .react-resizable-handle:after":{display:"none"}},header:{height:"40px"},dragIcon:{width:"30px",height:"30px",marginLeft:function(e){return"-"+e.spacing(1)},padding:"8px",borderRadius:"4px",background:function(e){return e.palette.primary.main},"&:hover":{cursor:"move",background:function(e){return e.palette.primary.dark}}},actionButtons:{height:"30px",marginTop:"-7px"},settingsButton:{color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopRightRadius:0,borderBottomRightRadius:0},infoButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:0},deleteButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopLeftRadius:0,borderBottomLeftRadius:0},content:{height:"calc(100% - 40px)",padding:0,background:"transparent",border:"1px solid rgba(255, 255, 255, 0.2)",borderTop:"none",borderRadius:"4px",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.25)","&:last-child":{paddingBottom:0}}},gi=["children","title","Widget","id","url","wsUrl","lang","data","settings","openSettingsModal","onSettingsModalOpened","onSettingsModalClosed","onDelete","editMode","version"],bi=h.default.forwardRef(function(t,r){var s=t.children,u=t.title,c=t.Widget,l=t.id,d=t.url,p=t.wsUrl,f=t.lang,m=t.data,g=t.settings,I=t.openSettingsModal,y=t.onSettingsModalOpened,C=t.onSettingsModalClosed,A=t.onDelete,w=t.editMode,R=t.version,S=v(t,gi),N=e.useState(!1),E=N[0],T=N[1],D=e.useState(!1),G=D[0],O=D[1],k=i.useTranslation(),M=k.i18n,_=k.t;return e.useEffect(function(){for(var e="translation",n=0,t=Object.entries(fi);n<t.length;n++){var r=t[n];M.addResources(r[0],e,r[1][e])}},[M]),h.default.createElement(n.Card,b({ref:r,sx:mi.root},S),h.default.createElement(n.CardHeader,{avatar:w&&h.default.createElement(n.SvgIcon,{component:a.ReactComponent,className:"draggable-handle",sx:mi.dragIcon,inheritViewBox:!0}),title:u,titleTypographyProps:{variant:"subtitle1"},action:w&&h.default.createElement(n.Stack,{direction:"row",sx:mi.actionButtons},h.default.createElement(n.Button,{color:"secondary",sx:mi.settingsButton,onClick:function(){y&&y()}},h.default.createElement(o.Settings,null)),R&&h.default.createElement(h.default.Fragment,null,h.default.createElement(n.Tooltip,{title:R},h.default.createElement(n.Button,{color:"secondary",sx:mi.infoButton},h.default.createElement(o.Info,null)))),h.default.createElement(x,{open:G,confirmMessage:_("Are you sure you want to delete this widget?"),confirmButtonText:_("Delete"),cancelButtonText:_("Cancel"),onCancel:function(){return O(!1)},onConfirm:function(){try{var e=function(){T(!1)};T(!0),O(!1);var n=function(){if(A)return Promise.resolve(A()).then(function(){})}();return Promise.resolve(n&&n.then?n.then(e):e())}catch(e){return Promise.reject(e)}}},h.default.createElement(n.Button,{color:"secondary",sx:mi.deleteButton,onClick:function(e){e.stopPropagation(),O(!0)},disabled:E},h.default.createElement(o.Delete,null)))),sx:mi.header}),h.default.createElement(n.CardContent,{sx:mi.content},h.default.createElement(c,{id:l,url:d,wsUrl:p,lang:f,data:m,settings:g,openSettingsModal:I,onSettingsModalOpened:y,onSettingsModalClosed:C,editMode:w})),w&&s)}),vi=function(){return vi=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},vi.apply(this,arguments)};function Ii(e){return Ii="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},Ii(e)}"function"==typeof SuppressedError&&SuppressedError;var yi="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Ci(e,n){for(var t,r=/\r\n|[\n\r]/g,i=1,o=n+1;(t=r.exec(e.body))&&t.index<n;)i+=1,o=n+1-(t.index+t[0].length);return{line:i,column:o}}function xi(e,n){var t=e.locationOffset.column-1,r=wi(t)+e.body,i=n.line-1,o=n.line+(e.locationOffset.line-1),a=n.column+(1===n.line?t:0),s="".concat(e.name,":").concat(o,":").concat(a,"\n"),u=r.split(/\r\n|[\n\r]/g),c=u[i];if(c.length>120){for(var l=Math.floor(a/80),d=a%80,p=[],h=0;h<c.length;h+=80)p.push(c.slice(h,h+80));return s+Ai([["".concat(o),p[0]]].concat(p.slice(1,l+1).map(function(e){return["",e]}),[[" ",wi(d-1)+"^"],["",p[l+1]]]))}return s+Ai([["".concat(o-1),u[i-1]],["".concat(o),c],["",wi(a-1)+"^"],["".concat(o+1),u[i+1]]])}function Ai(e){var n=e.filter(function(e){return void 0!==e[1]}),t=Math.max.apply(Math,n.map(function(e){return e[0].length}));return n.map(function(e){var n,r=e[1];return wi(t-(n=e[0]).length)+n+(r?" | "+r:" |")}).join("\n")}function wi(e){return Array(e+1).join(" ")}function Ri(e){return Ri="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},Ri(e)}function Si(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function Ni(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ei(e,n){return!n||"object"!==Ri(n)&&"function"!=typeof n?Ti(e):n}function Ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e){var n="function"==typeof Map?new Map:void 0;return Di=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Gi(e,arguments,Mi(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),ki(t,e)},Di(e)}function Gi(e,n,t){return Gi=Oi()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&ki(i,t.prototype),i},Gi.apply(null,arguments)}function Oi(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function ki(e,n){return ki=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},ki(e,n)}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}var _i=/*#__PURE__*/function(){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ki(e,n)}(i,/*#__PURE__*/Di(Error));var e,n,t,r=(e=i,n=Oi(),function(){var t,r=Mi(e);if(n){var i=Mi(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Ei(this,t)});function i(e,n,t,o,a,s,u){var c,l,d,p;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),(p=r.call(this,e)).name="GraphQLError",p.originalError=null!=s?s:void 0,p.nodes=Bi(Array.isArray(n)?n:n?[n]:void 0);for(var h=[],f=0,m=null!==(g=p.nodes)&&void 0!==g?g:[];f<m.length;f++){var g,b=m[f].loc;null!=b&&h.push(b)}h=Bi(h),p.source=null!=t?t:null===(c=h)||void 0===c?void 0:c[0].source,p.positions=null!=o?o:null===(l=h)||void 0===l?void 0:l.map(function(e){return e.start}),p.locations=o&&t?o.map(function(e){return Ci(t,e)}):null===(d=h)||void 0===d?void 0:d.map(function(e){return Ci(e.source,e.start)}),p.path=null!=a?a:void 0;var v,I=null==s?void 0:s.extensions;return p.extensions=null==u&&"object"==Ii(v=I)&&null!==v?function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Si(Object(t),!0).forEach(function(n){Ni(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Si(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},I):null!=u?u:{},Object.defineProperties(Ti(p),{message:{enumerable:!0},locations:{enumerable:null!=p.locations},path:{enumerable:null!=p.path},extensions:{enumerable:null!=p.extensions&&Object.keys(p.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(Ti(p),"stack",{value:s.stack,writable:!0,configurable:!0}),Ei(p)):(Error.captureStackTrace?Error.captureStackTrace(Ti(p),i):Object.defineProperty(Ti(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return(t=[{key:"toString",value:function(){return function(e){var n,t=e.message;if(e.nodes)for(var r=0,i=e.nodes;r<i.length;r++){var o=i[r];o.loc&&(t+="\n\n"+xi((n=o.loc).source,Ci(n.source,n.start)))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++)t+="\n\n"+xi(e.source,s[a]);return t}(this)}},{key:yi,get:function(){return"Object"}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,t),i}();function Bi(e){return void 0===e||0===e.length?void 0:e}function Vi(e,n,t){return new _i("Syntax Error: ".concat(t),void 0,e,[n])}var Pi=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),Yi="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function Wi(e){var n=e.prototype.toJSON;"function"==typeof n||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=n,Yi&&(e.prototype[Yi]=n)}var Fi=/*#__PURE__*/function(){function e(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Wi(Fi);var Xi=/*#__PURE__*/function(){function e(e,n,t,r,i,o,a){this.kind=e,this.start=n,this.end=t,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Wi(Xi);var Li=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Hi(e){return Hi="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},Hi(e)}function Zi(e){return ji(e,[])}function ji(e,n){switch(Hi(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),r=function(e){var n=e[String(Yi)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:ji(i,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),r=e.length-t,i=[],o=0;o<t;++o)i.push(ji(e[o],n));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);return 0===t.length?"{}":n.length>2?"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]":"{ "+t.map(function(t){return t+": "+ji(e[t],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}function Ji(e,n){if(!Boolean(e))throw new Error(n)}function zi(e){return zi="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},zi(e)}var Ui="production"===process.env.NODE_ENV?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if("object"===zi(e)&&null!==e){var t,r=n.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(t=e.constructor)||void 0===t?void 0:t.name)){var i=Zi(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},Qi=/*#__PURE__*/function(){function e(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Ji(0,"Body must be a string. Received: ".concat(Zi(e),".")),this.body=e,this.name=n,this.locationOffset=t,this.locationOffset.line>0||Ji(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ji(0,"column in locationOffset is 1-indexed and must be positive.")}var n;return(n=[{key:yi,get:function(){return"Source"}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,n),e}(),qi=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Ki(e){var n=e.split(/\r\n|[\n\r]/g),t=function(e){for(var n,t=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:t=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!t&&(null===o||i<o)&&(o=i),r=!1}return null!==(n=o)&&void 0!==n?n:0}(e);if(0!==t)for(var r=1;r<n.length;r++)n[r]=n[r].slice(t);for(var i=0;i<n.length&&$i(n[i]);)++i;for(var o=n.length;o>i&&$i(n[o-1]);)--o;return n.slice(i,o).join("\n")}function $i(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}var eo=/*#__PURE__*/function(){function e(e){var n=new Xi(Li.SOF,0,0,0,0,null);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var n=e.prototype;return n.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},n.lookahead=function(){var e=this.token;if(e.kind!==Li.EOF)do{var n;e=null!==(n=e.next)&&void 0!==n?n:e.next=to(this,e)}while(e.kind===Li.COMMENT);return e},e}();function no(e){return isNaN(e)?Li.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function to(e,n){for(var t=e.source,r=t.body,i=r.length,o=n.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new Xi(Li.BANG,o,o+1,s,u,n);case 35:return io(t,o,s,u,n);case 36:return new Xi(Li.DOLLAR,o,o+1,s,u,n);case 38:return new Xi(Li.AMP,o,o+1,s,u,n);case 40:return new Xi(Li.PAREN_L,o,o+1,s,u,n);case 41:return new Xi(Li.PAREN_R,o,o+1,s,u,n);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Xi(Li.SPREAD,o,o+3,s,u,n);break;case 58:return new Xi(Li.COLON,o,o+1,s,u,n);case 61:return new Xi(Li.EQUALS,o,o+1,s,u,n);case 64:return new Xi(Li.AT,o,o+1,s,u,n);case 91:return new Xi(Li.BRACKET_L,o,o+1,s,u,n);case 93:return new Xi(Li.BRACKET_R,o,o+1,s,u,n);case 123:return new Xi(Li.BRACE_L,o,o+1,s,u,n);case 124:return new Xi(Li.PIPE,o,o+1,s,u,n);case 125:return new Xi(Li.BRACE_R,o,o+1,s,u,n);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?uo(t,o,s,u,n,e):so(t,o,s,u,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return oo(t,o,a,s,u,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return lo(t,o,s,u,n)}throw Vi(t,o,ro(a))}return new Xi(Li.EOF,i,i,e.line,1+o-e.lineStart,n)}function ro(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(no(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(no(e),".")}function io(e,n,t,r,i){var o,a=e.body,s=n;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Xi(Li.COMMENT,n,s,t,r,i,a.slice(n+1,s))}function oo(e,n,t,r,i,o){var a=e.body,s=t,u=n,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw Vi(e,u,"Invalid number, unexpected digit after 0: ".concat(no(s),"."))}else u=ao(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=ao(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=ao(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw Vi(e,u,"Invalid number, expected digit but got: ".concat(no(s),"."));return new Xi(c?Li.FLOAT:Li.INT,n,u,r,i,o,a.slice(n,u))}function ao(e,n,t){var r=e.body,i=n,o=t;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw Vi(e,i,"Invalid number, expected digit but got: ".concat(no(o),"."))}function so(e,n,t,r,i){for(var o,a,s,u,c=e.body,l=n+1,d=l,p=0,h="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return h+=c.slice(d,l),new Xi(Li.STRING,n,l+1,t,r,i,h);if(p<32&&9!==p)throw Vi(e,l,"Invalid character within String: ".concat(no(p),"."));if(++l,92===p){switch(h+=c.slice(d,l-1),p=c.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var f=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),co(o)<<12|co(a)<<8|co(s)<<4|co(u));if(f<0){var m=c.slice(l+1,l+5);throw Vi(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}h+=String.fromCharCode(f),l+=4;break;default:throw Vi(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}d=++l}}throw Vi(e,l,"Unterminated string.")}function uo(e,n,t,r,i,o){for(var a=e.body,s=n+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new Xi(Li.BLOCK_STRING,n,s+3,t,r,i,Ki(l));if(c<32&&9!==c&&10!==c&&13!==c)throw Vi(e,s,"Invalid character within String: ".concat(no(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw Vi(e,s,"Unterminated string.")}function co(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function lo(e,n,t,r,i){for(var o=e.body,a=o.length,s=n+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new Xi(Li.NAME,n,s,t,r,i,o.slice(n,s))}var po=/*#__PURE__*/function(){function e(e,n){var t=function(e){return Ui(e,Qi)}(e)?e:new Qi(e);this._lexer=new eo(t),this._options=n}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(Li.NAME);return{kind:Pi.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:Pi.DOCUMENT,definitions:this.many(Li.SOF,this.parseDefinition,Li.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(Li.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Li.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Li.BRACE_L))return{kind:Pi.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(Li.NAME)&&(n=this.parseName()),{kind:Pi.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(Li.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(Li.PAREN_L,this.parseVariableDefinition,Li.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Pi.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Li.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Li.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Li.DOLLAR),{kind:Pi.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Pi.SELECTION_SET,selections:this.many(Li.BRACE_L,this.parseSelection,Li.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(Li.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(Li.COLON)?(e=r,n=this.parseName()):n=r,{kind:Pi.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Li.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(Li.PAREN_L,e?this.parseConstArgument:this.parseArgument,Li.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(Li.COLON),{kind:Pi.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:Pi.ARGUMENT,name:this.parseName(),value:(this.expectToken(Li.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(Li.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(Li.NAME)?{kind:Pi.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Pi.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e,n=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:Pi.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:Pi.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case Li.BRACKET_L:return this.parseList(e);case Li.BRACE_L:return this.parseObject(e);case Li.INT:return this._lexer.advance(),{kind:Pi.INT,value:n.value,loc:this.loc(n)};case Li.FLOAT:return this._lexer.advance(),{kind:Pi.FLOAT,value:n.value,loc:this.loc(n)};case Li.STRING:case Li.BLOCK_STRING:return this.parseStringLiteral();case Li.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:Pi.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:Pi.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:Pi.NULL,loc:this.loc(n)};default:return{kind:Pi.ENUM,value:n.value,loc:this.loc(n)}}case Li.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Pi.STRING,value:e.value,block:e.kind===Li.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:Pi.LIST,values:this.any(Li.BRACKET_L,function(){return n.parseValueLiteral(e)},Li.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:Pi.OBJECT,fields:this.any(Li.BRACE_L,function(){return n.parseObjectField(e)},Li.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(Li.COLON),{kind:Pi.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(Li.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(Li.AT),{kind:Pi.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(Li.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Li.BRACKET_R),e={kind:Pi.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(Li.BANG)?{kind:Pi.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:Pi.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Li.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(Li.STRING)||this.peek(Li.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(Li.BRACE_L,this.parseOperationTypeDefinition,Li.BRACE_R);return{kind:Pi.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:r,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(Li.COLON);var t=this.parseNamedType();return{kind:Pi.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);return{kind:Pi.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Pi.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var n=[];this.expectOptionalToken(Li.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(Li.AMP)||this.peek(Li.NAME));return n}return this.delimitedMany(Li.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Li.BRACE_L)&&this._lexer.lookahead().kind===Li.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Li.BRACE_L,this.parseFieldDefinition,Li.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Li.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Pi.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(Li.PAREN_L,this.parseInputValueDef,Li.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(Li.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(Li.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Pi.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Pi.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Pi.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(Li.EQUALS)?this.delimitedMany(Li.PIPE,this.parseNamedType):[]},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Pi.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(Li.BRACE_L,this.parseEnumValueDefinition,Li.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseDirectives(!0);return{kind:Pi.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Pi.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(Li.BRACE_L,this.parseInputValueDef,Li.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Li.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(Li.BRACE_L,this.parseOperationTypeDefinition,Li.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:Pi.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:Pi.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Pi.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Pi.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Pi.UNION_TYPE_EXTENSION,name:n,directives:t,types:r,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Pi.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Pi.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Li.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Pi.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){return this.delimitedMany(Li.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==qi[n.value])return n;throw this.unexpected(e)},n.loc=function(e){var n;if(!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation))return new Fi(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw Vi(this._lexer.source,n.start,"Expected ".concat(fo(e),", found ").concat(ho(n),"."))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==Li.NAME||n.value!==e)throw Vi(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(ho(n),"."));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===Li.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=null!=e?e:this._lexer.token;return Vi(this._lexer.source,n.start,"Unexpected ".concat(ho(n),"."))},n.any=function(e,n,t){this.expectToken(e);for(var r=[];!this.expectOptionalToken(t);)r.push(n.call(this));return r},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}return[]},n.many=function(e,n,t){this.expectToken(e);var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r},n.delimitedMany=function(e,n){this.expectOptionalToken(e);var t=[];do{t.push(n.call(this))}while(this.expectOptionalToken(e));return t},e}();function ho(e){var n=e.value;return fo(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function fo(e){return function(e){return e===Li.BANG||e===Li.DOLLAR||e===Li.AMP||e===Li.PAREN_L||e===Li.PAREN_R||e===Li.SPREAD||e===Li.COLON||e===Li.EQUALS||e===Li.AT||e===Li.BRACKET_L||e===Li.BRACKET_R||e===Li.BRACE_L||e===Li.PIPE||e===Li.BRACE_R}(e)?'"'.concat(e,'"'):e}var mo=new Map,go=new Map,bo=!0,vo=!1;function Io(e){return e.replace(/[\s,]+/g," ").trim()}function yo(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1]}),function(e){var n,t,r,i=Io(e);if(!mo.has(i)){var o=function(e){return new po(e,{experimentalFragmentVariables:vo,allowLegacyFragmentVariables:vo}).parseDocument()}(e);if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");mo.set(i,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r)})});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=Io((a=e.loc).source.body.substring(a.start,a.end)),o=go.get(n);o&&!o.has(i)?bo&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||go.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a}),vi(vi({},n),{definitions:r}))))}return mo.get(i)}(r)}var Co,xo=yo;(Co=yo||(yo={})).gql=xo,Co.resetCaches=function(){mo.clear(),go.clear()},Co.disableFragmentWarnings=function(){bo=!1},Co.enableExperimentalFragmentVariables=function(){vo=!0},Co.disableExperimentalFragmentVariables=function(){vo=!1},yo.default=yo;var Ao,wo,Ro,So,No,Eo,To,Do,Go,Oo,ko,Mo,_o,Bo,Vo,Po,Yo,Wo,Fo,Xo,Lo,Ho,Zo,jo,Jo,zo,Uo,Qo,qo,Ko,$o,ea,na,ta,ra,ia,oa,aa,sa,ua,ca,la,da,pa,ha,fa,ma,ga,ba,va,Ia,ya,Ca,xa,Aa,wa,Ra,Sa,Na=yo;exports.AndonLightColor=void 0,(ba=exports.AndonLightColor||(exports.AndonLightColor={})).Gray="gray",ba.Green="green",ba.Red="red",ba.Yellow="yellow",exports.CounterKindEnum=void 0,(va=exports.CounterKindEnum||(exports.CounterKindEnum={})).Bad="bad",va.Good="good",exports.MetricTypeEnum=void 0,(Ia=exports.MetricTypeEnum||(exports.MetricTypeEnum={})).Counter="COUNTER",Ia.Empty="EMPTY",Ia.Indicator="INDICATOR",Ia.Kpi="KPI",Ia.Timer="TIMER",exports.MetricUnitEnum=void 0,(ya=exports.MetricUnitEnum||(exports.MetricUnitEnum={})).Duration="DURATION",ya.Percent="PERCENT",ya.Round="ROUND",exports.Period=void 0,(Ca=exports.Period||(exports.Period={})).CurrentShift="CURRENT_SHIFT",Ca.LastShift="LAST_SHIFT",exports.ProductionMode=void 0,(xa=exports.ProductionMode||(exports.ProductionMode={})).Manual="MANUAL",xa.Planned="PLANNED",exports.ScreenEnum=void 0,(Aa=exports.ScreenEnum||(exports.ScreenEnum={})).Counters="COUNTERS",Aa.Statuses="STATUSES",Aa.StatusScreen="STATUS_SCREEN",Aa.Workplaces="WORKPLACES",exports.StatusScreenDisplayBlocksEnum=void 0,(wa=exports.StatusScreenDisplayBlocksEnum||(exports.StatusScreenDisplayBlocksEnum={})).Kpi="KPI",wa.Livetime="LIVETIME",wa.Orders="ORDERS",wa.Presences="PRESENCES",exports.TrainingStatus=void 0,(Ra=exports.TrainingStatus||(exports.TrainingStatus={})).Disabled="DISABLED",Ra.InsufficientData="INSUFFICIENT_DATA",Ra.ServerError="SERVER_ERROR",Ra.Trained="TRAINED",Ra.Training="TRAINING",exports.WorkplaceEvent=void 0,(Sa=exports.WorkplaceEvent||(exports.WorkplaceEvent={})).AllStatusChangeTransitionPermissionsUpdated="ALL_STATUS_CHANGE_TRANSITION_PERMISSIONS_UPDATED",Sa.CounterUpdated="COUNTER_UPDATED",Sa.CurrentShiftChanged="CURRENT_SHIFT_CHANGED",Sa.MetricValueUpdated="METRIC_VALUE_UPDATED",Sa.NotificationCreated="NOTIFICATION_CREATED",Sa.OrderExecutionUpdated="ORDER_EXECUTION_UPDATED",Sa.OrderUpdated="ORDER_UPDATED",Sa.StatusChangeCreated="STATUS_CHANGE_CREATED",Sa.UserPresenceCreated="USER_PRESENCE_CREATED",Sa.UserPresenceUpdated="USER_PRESENCE_UPDATED";var Ea=Na(Ao||(Ao=I(["\n mutation createDashboard($gridLayout: String, $id: ID!, $name: String!) {\n createDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),Ta=Na(wo||(wo=I(["\n mutation createOrder($id: ID!, $number: String!) {\n createOrder(id: $id, number: $number) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n }\n}\n "]))),Da=Na(Ro||(Ro=I(["\n mutation createProduct($id: ID!, $name: String, $number: String!) {\n createProduct(id: $id, name: $name, number: $number) {\n errors {\n field\n messages\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n}\n "]))),Ga=Na(So||(So=I(["\n mutation createStatusChange($id: ID!, $note: String, $reasonId: ID!, $reasonHasBeenRecommended: Boolean, $startedAt: String, $userId: ID, $workplaceId: ID!) {\n createStatusChange(\n id: $id\n note: $note\n reasonId: $reasonId\n reasonHasBeenRecommended: $reasonHasBeenRecommended\n startedAt: $startedAt\n userId: $userId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),Oa=Na(No||(No=I(["\n mutation createUserPresence($id: ID!, $userToken: String!, $workplaceId: ID!) {\n createUserPresence(id: $id, userToken: $userToken, workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n userPresence {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n}\n "]))),ka=Na(Eo||(Eo=I(["\n mutation createWidget($config: String, $id: ID!) {\n createWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),Ma=Na(To||(To=I(["\n mutation pauseOrderExecution($id: ID!, $statusChangeId: ID!) {\n pauseOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),_a=Na(Do||(Do=I(["\n mutation removeDashboard($id: ID!) {\n removeDashboard(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Ba=Na(Go||(Go=I(["\n mutation removeUserPresence($id: ID!) {\n removeUserPresence(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Va=Na(Oo||(Oo=I(["\n mutation removeWidget($id: ID!) {\n removeWidget(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Pa=Na(ko||(ko=I(["\n mutation removeWorkplaceUsersPresences($workplaceId: ID!) {\n removeWorkplaceUsersPresences(workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Ya=Na(Mo||(Mo=I(["\n mutation setCounter($id: ID!, $note: String, $orderExecutionId: ID, $value: Float!) {\n setCounter(\n id: $id\n note: $note\n orderExecutionId: $orderExecutionId\n value: $value\n ) {\n counter {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n position\n value\n workplaceId\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),Wa=Na(_o||(_o=I(["\n mutation startOrderExecution($id: ID!, $order: OrderInput!, $product: ProductInput, $itemCount: Float, $statusChangeId: ID!, $workplaceId: ID!) {\n startOrderExecution(\n id: $id\n order: $order\n product: $product\n itemCount: $itemCount\n statusChangeId: $statusChangeId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),Fa=Na(Bo||(Bo=I(["\n mutation stopOrderExecution($id: ID!, $statusChangeId: ID!) {\n stopOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),Xa=Na(Vo||(Vo=I(["\n mutation updateDashboard($gridLayout: String!, $id: ID!, $name: String) {\n updateDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),La=Na(Po||(Po=I(["\n mutation updateNotification($id: ID!, $status: String!) {\n updateNotification(id: $id, status: $status) {\n errors {\n field\n messages\n }\n notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n }\n}\n "]))),Ha=Na(Yo||(Yo=I(["\n mutation updateOrder($input: UpdateOrderInput!) {\n updateOrder(input: $input) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n }\n}\n "]))),Za=Na(Wo||(Wo=I(["\n mutation updateOrderExecution($id: ID!, $standardRateId: ID!) {\n updateOrderExecution(id: $id, standardRateId: $standardRateId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),ja=Na(Fo||(Fo=I(["\n mutation updateStatusChange($input: UpdateStatusChangeInput!) {\n updateStatusChange(input: $input) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),Ja=Na(Xo||(Xo=I(["\n mutation updateWidget($config: String!, $id: ID!) {\n updateWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),za=Na(Lo||(Lo=I(["\n query applicationInfo {\n applicationInfo {\n apiVersion\n }\n}\n "]))),Ua=Na(Ho||(Ho=I(["\n query companyConfig {\n companyConfig {\n devicesConfigs {\n defaultWorkplaceId\n deviceId\n name\n }\n displayedKpiItems\n reasonsRecommendationsEnabled\n roleConfig {\n historyVisibilityEnabled\n orderCreationAllowed\n }\n statusChangeTransitionPermissionsUpdatedAt\n workplacesConfigs {\n defaultScreen\n menuDisplayItems\n orderConfig {\n alternativeName\n numberPrefix\n numberRegexp\n }\n orderExecutionConfig {\n afterPauseReasonId\n afterStartReasonId\n afterStopReasonId\n featureEnabled\n formOrderFields\n formProductFields\n formQuantityFields\n itemCountUnit\n orderInternalNoteTitle\n orderInternalNoteText\n productInternalNoteTitle\n productInternalNoteText\n quantityInternalNoteTitle\n quantityInternalNoteText\n noPlanNeedVerificationNote\n noPlanCanCreateOrderNote\n stopEnabled\n }\n productConfig {\n alternativeName\n numberPrefix\n numberRegexp\n }\n productionMode\n screenSaverConfig {\n autoSignOut\n displayAfterIdle\n displayAfterOrderCreated\n displayAfterStatusChangeCreated\n enabled\n idleTime\n }\n statusScreenDisplayBlocks\n workplaceId\n }\n }\n}\n "]))),Qa=Na(Zo||(Zo=I(["\n query counterDirectories($filter: CounterDirectoryFilter) {\n counterDirectories(filter: $filter) {\n directoryId\n id\n name\n position\n workplaceId\n }\n}\n "]))),qa=Na(jo||(jo=I(["\n query counters($filter: CounterFilter) {\n counters(filter: $filter) {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n position\n value\n workplaceId\n }\n}\n "]))),Ka=Na(Jo||(Jo=I(["\n query currentUser {\n currentUser {\n id\n login\n name\n }\n}\n "]))),$a=Na(zo||(zo=I(["\n query dashboards($filter: DashboardFilter) {\n dashboards(filter: $filter) {\n gridLayout\n id\n name\n }\n}\n "]))),es=Na(Uo||(Uo=I(["\n query departments($filter: DepartmentFilter) {\n departments(filter: $filter) {\n id\n name\n }\n}\n "]))),ns=Na(Qo||(Qo=I(["\n query floorPlans($filter: FloorPlanFilter) {\n floorPlans(filter: $filter) {\n id\n imageUrl\n name\n }\n}\n "]))),ts=Na(qo||(qo=I(["\n query metricValues($metricIds: [ID!], $workplaceIds: [ID!]) {\n metricValues(metricIds: $metricIds, workplaceIds: $workplaceIds) {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n}\n "]))),rs=Na(Ko||(Ko=I(["\n query metrics {\n metrics {\n id\n name\n }\n}\n "]))),is=Na($o||($o=I(["\n query notifications($filter: NotificationFilter) {\n notifications(filter: $filter) {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n}\n "]))),os=Na(ea||(ea=I(["\n query orders($filter: OrderFilter) {\n orders(filter: $filter) {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n}\n "]))),as=Na(na||(na=I(["\n query ordersExecutions($filter: OrderExecutionFilter) {\n ordersExecutions(filter: $filter) {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n}\n "]))),ss=Na(ta||(ta=I(["\n query products($filter: ProductFilter) {\n products(filter: $filter) {\n assemblyManual\n id\n name\n number\n }\n}\n "]))),us=Na(ra||(ra=I(["\n query reasons($filter: ReasonFilter) {\n reasons(filter: $filter) {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n}\n "]))),cs=Na(ia||(ia=I(["\n query reasonsRecommendation($workplaceId: String!) {\n reasonsRecommendation(workplaceId: $workplaceId) {\n reasons {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n trainingStatus\n }\n}\n "]))),ls=Na(oa||(oa=I(["\n query shifts {\n shifts {\n finishedAt\n id\n name\n startedAt\n }\n}\n "]))),ds=Na(aa||(aa=I(["\n query standardRates($orderExecutionId: ID!) {\n standardRates(orderExecutionId: $orderExecutionId) {\n id\n label\n }\n}\n "]))),ps=Na(sa||(sa=I(["\n query statusChangeTransitionPermissions($filter: StatusChangeTransitionPermissionFilter) {\n statusChangeTransitionPermissions(filter: $filter) {\n fromReasonId\n roleId\n toReasonId\n workplaceId\n }\n}\n "]))),hs=Na(ua||(ua=I(["\n query statusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),fs=Na(ca||(ca=I(["\n query users($filter: UserFilter) {\n users(filter: $filter) {\n id\n login\n name\n }\n}\n "]))),ms=Na(la||(la=I(["\n query usersPresences($filter: UserPresenceFilter) {\n usersPresences(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n}\n "]))),gs=Na(da||(da=I(["\n query widget($id: ID!) {\n widget(id: $id) {\n config\n id\n }\n}\n "]))),bs=Na(pa||(pa=I(["\n query widgets($filter: WidgetFilter) {\n widgets(filter: $filter) {\n config\n id\n }\n}\n "]))),vs=Na(ha||(ha=I(["\n query workplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Is=Na(fa||(fa=I(["\n query listStatusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),ys=Na(ma||(ma=I(["\n query listWorkplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Cs=Na(ga||(ga=I(["\n subscription workplaceEvent($id: ID!) {\n workplaceEvent(id: $id) {\n event\n subject {\n __typename\n ... on Counter {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n counterPosition: position\n value\n workplaceId\n }\n ... on Item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n ... on MetricValue {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n ... on Notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n ... on Shift {\n shiftFinishedAt: finishedAt\n id\n name\n shiftStartedAt: startedAt\n }\n ... on Order {\n executedCount\n id\n items {\n count\n id\n }\n note\n number\n plannedCount\n position\n orderStartedAt: startedAt\n orderFinishedAt: finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n ... on OrderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n standardRateMismatched\n startedAt\n workplaceId\n }\n ... on StatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n ... on UserPresence {\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n }\n}\n "]))),xs=function(e,n,t,r){return e()};function As(e,n){return void 0===n&&(n=xs),{createDashboard:function(t,r){return n(function(n){return e.request(Ea,t,b({},r,n))},"createDashboard","mutation",t)},createOrder:function(t,r){return n(function(n){return e.request(Ta,t,b({},r,n))},"createOrder","mutation",t)},createProduct:function(t,r){return n(function(n){return e.request(Da,t,b({},r,n))},"createProduct","mutation",t)},createStatusChange:function(t,r){return n(function(n){return e.request(Ga,t,b({},r,n))},"createStatusChange","mutation",t)},createUserPresence:function(t,r){return n(function(n){return e.request(Oa,t,b({},r,n))},"createUserPresence","mutation",t)},createWidget:function(t,r){return n(function(n){return e.request(ka,t,b({},r,n))},"createWidget","mutation",t)},pauseOrderExecution:function(t,r){return n(function(n){return e.request(Ma,t,b({},r,n))},"pauseOrderExecution","mutation",t)},removeDashboard:function(t,r){return n(function(n){return e.request(_a,t,b({},r,n))},"removeDashboard","mutation",t)},removeUserPresence:function(t,r){return n(function(n){return e.request(Ba,t,b({},r,n))},"removeUserPresence","mutation",t)},removeWidget:function(t,r){return n(function(n){return e.request(Va,t,b({},r,n))},"removeWidget","mutation",t)},removeWorkplaceUsersPresences:function(t,r){return n(function(n){return e.request(Pa,t,b({},r,n))},"removeWorkplaceUsersPresences","mutation",t)},setCounter:function(t,r){return n(function(n){return e.request(Ya,t,b({},r,n))},"setCounter","mutation",t)},startOrderExecution:function(t,r){return n(function(n){return e.request(Wa,t,b({},r,n))},"startOrderExecution","mutation",t)},stopOrderExecution:function(t,r){return n(function(n){return e.request(Fa,t,b({},r,n))},"stopOrderExecution","mutation",t)},updateDashboard:function(t,r){return n(function(n){return e.request(Xa,t,b({},r,n))},"updateDashboard","mutation",t)},updateNotification:function(t,r){return n(function(n){return e.request(La,t,b({},r,n))},"updateNotification","mutation",t)},updateOrder:function(t,r){return n(function(n){return e.request(Ha,t,b({},r,n))},"updateOrder","mutation",t)},updateOrderExecution:function(t,r){return n(function(n){return e.request(Za,t,b({},r,n))},"updateOrderExecution","mutation",t)},updateStatusChange:function(t,r){return n(function(n){return e.request(ja,t,b({},r,n))},"updateStatusChange","mutation",t)},updateWidget:function(t,r){return n(function(n){return e.request(Ja,t,b({},r,n))},"updateWidget","mutation",t)},applicationInfo:function(t,r){return n(function(n){return e.request(za,t,b({},r,n))},"applicationInfo","query",t)},companyConfig:function(t,r){return n(function(n){return e.request(Ua,t,b({},r,n))},"companyConfig","query",t)},counterDirectories:function(t,r){return n(function(n){return e.request(Qa,t,b({},r,n))},"counterDirectories","query",t)},counters:function(t,r){return n(function(n){return e.request(qa,t,b({},r,n))},"counters","query",t)},currentUser:function(t,r){return n(function(n){return e.request(Ka,t,b({},r,n))},"currentUser","query",t)},dashboards:function(t,r){return n(function(n){return e.request($a,t,b({},r,n))},"dashboards","query",t)},departments:function(t,r){return n(function(n){return e.request(es,t,b({},r,n))},"departments","query",t)},floorPlans:function(t,r){return n(function(n){return e.request(ns,t,b({},r,n))},"floorPlans","query",t)},metricValues:function(t,r){return n(function(n){return e.request(ts,t,b({},r,n))},"metricValues","query",t)},metrics:function(t,r){return n(function(n){return e.request(rs,t,b({},r,n))},"metrics","query",t)},notifications:function(t,r){return n(function(n){return e.request(is,t,b({},r,n))},"notifications","query",t)},orders:function(t,r){return n(function(n){return e.request(os,t,b({},r,n))},"orders","query",t)},ordersExecutions:function(t,r){return n(function(n){return e.request(as,t,b({},r,n))},"ordersExecutions","query",t)},products:function(t,r){return n(function(n){return e.request(ss,t,b({},r,n))},"products","query",t)},reasons:function(t,r){return n(function(n){return e.request(us,t,b({},r,n))},"reasons","query",t)},reasonsRecommendation:function(t,r){return n(function(n){return e.request(cs,t,b({},r,n))},"reasonsRecommendation","query",t)},shifts:function(t,r){return n(function(n){return e.request(ls,t,b({},r,n))},"shifts","query",t)},standardRates:function(t,r){return n(function(n){return e.request(ds,t,b({},r,n))},"standardRates","query",t)},statusChangeTransitionPermissions:function(t,r){return n(function(n){return e.request(ps,t,b({},r,n))},"statusChangeTransitionPermissions","query",t)},statusChanges:function(t,r){return n(function(n){return e.request(hs,t,b({},r,n))},"statusChanges","query",t)},users:function(t,r){return n(function(n){return e.request(fs,t,b({},r,n))},"users","query",t)},usersPresences:function(t,r){return n(function(n){return e.request(ms,t,b({},r,n))},"usersPresences","query",t)},widget:function(t,r){return n(function(n){return e.request(gs,t,b({},r,n))},"widget","query",t)},widgets:function(t,r){return n(function(n){return e.request(bs,t,b({},r,n))},"widgets","query",t)},workplaces:function(t,r){return n(function(n){return e.request(vs,t,b({},r,n))},"workplaces","query",t)},listStatusChanges:function(t,r){return n(function(n){return e.request(Is,t,b({},r,n))},"listStatusChanges","query",t)},listWorkplaces:function(t,r){return n(function(n){return e.request(ys,t,b({},r,n))},"listWorkplaces","query",t)},workplaceEvent:function(t,r){return n(function(n){return e.request(Cs,t,b({},r,n))},"workplaceEvent","subscription",t)}}}var ws="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rs(e){var n={exports:{}};return e(n,n.exports),n.exports}var Ss=Rs(function(e,n){var t,r,i,o="[object Map]",a="[object Promise]",s="[object Set]",u="[object WeakMap]",c="[object DataView]",l=/^\[object .+?Constructor\]$/,d="object"==typeof self&&self&&self.Object===Object&&self,p="object"==typeof ws&&ws&&ws.Object===Object&&ws||d||Function("return this")(),h=n&&!n.nodeType&&n,f=h&&e&&!e.nodeType&&e,m=f&&f.exports===h,g=Function.prototype,b=Object.prototype,v=p["__core-js_shared__"],I=(t=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",y=g.toString,C=b.hasOwnProperty,x=b.toString,A=RegExp("^"+y.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=m?p.Buffer:void 0,R=b.propertyIsEnumerable,S=w?w.isBuffer:void 0,N=(r=Object.keys,i=Object,function(e){return r(i(e))}),E=Y(p,"DataView"),T=Y(p,"Map"),D=Y(p,"Promise"),G=Y(p,"Set"),O=Y(p,"WeakMap"),k=!R.call({valueOf:1},"valueOf"),M=F(E),_=F(T),B=F(D),V=F(G),P=F(O);function Y(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return function(e){if(!j(e)||function(e){return!!I&&I in e}(e))return!1;var n=Z(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?A:l;return n.test(F(e))}(t)?t:void 0}var W=function(e){return x.call(e)};function F(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(E&&W(new E(new ArrayBuffer(1)))!=c||T&&W(new T)!=o||D&&W(D.resolve())!=a||G&&W(new G)!=s||O&&W(new O)!=u)&&(W=function(e){var n=x.call(e),t="[object Object]"==n?e.constructor:void 0,r=t?F(t):void 0;if(r)switch(r){case M:return c;case _:return o;case B:return a;case V:return s;case P:return u}return n});var X=Array.isArray;function L(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Z(e)}var H=S||function(){return!1};function Z(e){var n=j(e)?x.call(e):"";return"[object Function]"==n||"[object GeneratorFunction]"==n}function j(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}e.exports=function(e){if(L(e)&&(X(e)||"string"==typeof e||"function"==typeof e.splice||H(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&L(e)}(e)&&C.call(e,"callee")&&(!R.call(e,"callee")||"[object Arguments]"==x.call(e))}(e)))return!e.length;var n=W(e);if(n==o||n==s)return!e.size;if(k||function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||b)}(e))return!N(e).length;for(var t in e)if(C.call(e,t))return!1;return!0}}),Ns=function(e,n){return Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},Ns(e,n)};function Es(e,n){function t(){this.constructor=e}Ns(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function Ts(e){return"function"==typeof e}var Ds=!1,Gs={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){Ds=e},get useDeprecatedSynchronousErrorHandling(){return Ds}};function Os(e){setTimeout(function(){throw e},0)}var ks={closed:!0,next:function(e){},error:function(e){if(Gs.useDeprecatedSynchronousErrorHandling)throw e;Os(e)},complete:function(){}},Ms=/*@__PURE__*/function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),_s=/*@__PURE__*/function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,n){return n+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=/*@__PURE__*/Object.create(Error.prototype),e}(),Bs=_s,Vs=/*@__PURE__*/function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t,r=this,i=r._parentOrParents,o=r._ctorUnsubscribe,a=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof e)i.remove(this);else if(null!==i)for(var u=0;u<i.length;++u)i[u].remove(this);if(Ts(a)){o&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){n=e instanceof Bs?Ps(e.errors):[e]}}if(Ms(s)){u=-1;for(var c=s.length;++u<c;){var l=s[u];if(null!==(t=l)&&"object"==typeof t)try{l.unsubscribe()}catch(e){n=n||[],e instanceof Bs?n=n.concat(Ps(e.errors)):n.push(e)}}}if(n)throw new Bs(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;(t=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(null===i)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},e.prototype.remove=function(e){var n=this._subscriptions;if(n){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function Ps(e){return e.reduce(function(e,n){return e.concat(n instanceof Bs?n.errors:n)},[])}var Ys=/*@__PURE__*/function(){return"function"==typeof Symbol?/*@__PURE__*/Symbol("rxSubscriber"):"@@rxSubscriber_"+/*@__PURE__*/Math.random()}(),Ws=/*@__PURE__*/function(e){function n(t,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=ks;break;case 1:if(!t){o.destination=ks;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new Fs(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new Fs(o,t,r,i)}return o}return Es(n,e),n.prototype[Ys]=function(){return this},n.create=function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(Vs),Fs=/*@__PURE__*/function(e){function n(n,t,r,i){var o,a=e.call(this)||this;a._parentSubscriber=n;var s=a;return Ts(t)?o=t:t&&(o=t.next,r=t.error,i=t.complete,t!==ks&&(Ts((s=Object.create(t)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return Es(n,e),n.prototype.next=function(e){if(!this.isStopped&&this._next){var n=this._parentSubscriber;Gs.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},n.prototype.error=function(e){if(!this.isStopped){var n=this._parentSubscriber,t=Gs.useDeprecatedSynchronousErrorHandling;if(this._error)t&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)t?(n.syncErrorValue=e,n.syncErrorThrown=!0):Os(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;Os(e)}}},n.prototype.complete=function(){var e=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};Gs.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(e,n){try{e.call(this._context,n)}catch(e){if(this.unsubscribe(),Gs.useDeprecatedSynchronousErrorHandling)throw e;Os(e)}},n.prototype.__tryOrSetError=function(e,n,t){if(!Gs.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,t)}catch(n){return Gs.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(Os(n),!0)}return!1},n.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},n}(Ws),Xs=/*@__PURE__*/function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Ls(e){return e}var Hs=/*@__PURE__*/function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(e,n,t){var r=this.operator,i=function(e,n,t){if(e){if(e instanceof Ws)return e;if(e[Ys])return e[Ys]()}return e||n||t?new Ws(e,n,t):new Ws(ks)}(e,n,t);if(i.add(r?r.call(i,this.source):this.source||Gs.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Gs.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){Gs.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function(e){for(;e;){var n=e.destination;if(e.closed||e.isStopped)return!1;e=n&&n instanceof Ws?n:null}return!0}(e)?e.error(n):console.warn(n)}},e.prototype.forEach=function(e,n){var t=this;return new(n=Zs(n))(function(n,r){var i;i=t.subscribe(function(n){try{e(n)}catch(e){r(e),i&&i.unsubscribe()}},r,n)})},e.prototype._subscribe=function(e){var n=this.source;return n&&n.subscribe(e)},e.prototype[Xs]=function(){return this},e.prototype.pipe=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 0===n.length?this:(0===(e=n).length?Ls:1===e.length?e[0]:function(n){return e.reduce(function(e,n){return n(e)},n)})(this)},e.prototype.toPromise=function(e){var n=this;return new(e=Zs(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},e.create=function(n){return new e(n)},e}();function Zs(e){if(e||(e=Gs.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var js=/*#__PURE__*/function(){function e(e){var n=this;this.wsURL=void 0,this.cable=null,this.subscriptions=new Map,this.addSubscription=function(e,t){n.subscriptions.set(e,t)},this.wsURL=e}var n=e.prototype;return n.connect=function(e,n){this.cable=g.default.createConsumer(this.wsURL+"?token="+e+"&lang="+n)},n.request=function(e){var n,t=this.cable,r=this.subscriptions,i=this.addSubscription;return new Hs(function(o){if(t){var a,s=(null==(a=e.variables)?void 0:a.id)||"company";r.has(s)||(n=t.subscriptions.create({channel:"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{connected:function(){this.perform("execute",e)},received:function(e){e.more?e.result.errors?o.error&&o.error(e.result.errors[0]):e.result.data&&o.next&&(Ss(e.result.data)||o.next(e.result)):o.complete&&o.complete()}}),i(s,n))}})},n.hasSubscription=function(e){return this.subscriptions.has(e)},e}(),Js=/*#__PURE__*/function(){function e(e,n,t){this.actionCableClient=null,this.actionCableClient=new js(e),this.actionCableClient.connect(n,t)}return e.prototype.subscribe=function(e,n,t,r){if(void 0===r&&(r=function(e){throw e}),!this.actionCableClient)throw new Error("No WS client available");var i=this.actionCableClient.request({query:e,variables:n}).subscribe({next:function(e){var n=e.data,i=e.errors;if(i)return r(new Error(JSON.stringify(i)));n&&t&&t(function(e){var n=Object.keys(e);if(1!==n.length)throw new Error("Expected exactly one response key, got: "+n.join(", "));return e[n[0]]}(n))}});return function(){return i.unsubscribe()}},e}(),zs=function(e,n,t){return new Js(e,n,t)},Us=function(e,n){return As(new c.GraphQLClient(e,{fetch:n}))},Qs=Rs(function(e,n){e.exports=function(){var n,t;function r(){return n.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var n;for(n in e)if(a(e,n))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,n){var t,r=[],i=e.length;for(t=0;t<i;++t)r.push(n(e[t],t));return r}function p(e,n){for(var t in n)a(n,t)&&(e[t]=n[t]);return a(n,"toString")&&(e.toString=n.toString),a(n,"valueOf")&&(e.valueOf=n.valueOf),e}function h(e,n,t,r){return kn(e,n,t,r,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var n=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(n=f(e),r=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&r),e._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var n=h(NaN);return null!=e?p(f(n),e):f(n).userInvalidated=!0,n}t=Array.prototype.some?Array.prototype.some:function(e){var n,t=Object(this),r=t.length>>>0;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var b=r.momentProperties=[],v=!1;function I(e,n){var t,r,i,o=b.length;if(u(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),u(n._i)||(e._i=n._i),u(n._f)||(e._f=n._f),u(n._l)||(e._l=n._l),u(n._strict)||(e._strict=n._strict),u(n._tzm)||(e._tzm=n._tzm),u(n._isUTC)||(e._isUTC=n._isUTC),u(n._offset)||(e._offset=n._offset),u(n._pf)||(e._pf=f(n)),u(n._locale)||(e._locale=n._locale),o>0)for(t=0;t<o;t++)u(i=n[r=b[t]])||(e[r]=i);return e}function y(e){I(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function C(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,n){var t=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),t){var i,o,s,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),t=!1}return n.apply(this,arguments)},n)}var w,R={};function S(e,n){null!=r.deprecationHandler&&r.deprecationHandler(e,n),R[e]||(x(n),R[e]=!0)}function N(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,n){var t,r=p({},e);for(t in n)a(n,t)&&(o(e[t])&&o(n[t])?(r[t]={},p(r[t],e[t]),p(r[t],n[t])):null!=n[t]?r[t]=n[t]:delete r[t]);for(t in e)a(e,t)&&!a(n,t)&&o(e[t])&&(r[t]=p({},r[t]));return r}function T(e){null!=e&&this.set(e)}function D(e,n,t){var r=""+Math.abs(e);return(e>=0?t?"+":"":"-")+Math.pow(10,Math.max(0,n-r.length)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,w=Object.keys?Object.keys:function(e){var n,t=[];for(n in e)a(e,n)&&t.push(n);return t};var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,k={},M={};function _(e,n,t,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(M[e]=i),n&&(M[n[0]]=function(){return D(i.apply(this,arguments),n[1],n[2])}),t&&(M[t]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e,n){return e.isValid()?(n=V(n,e.localeData()),k[n]=k[n]||function(e){var n,t,r,i=e.match(G);for(n=0,t=i.length;n<t;n++)i[n]=M[i[n]]?M[i[n]]:(r=i[n]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(n){var r,o="";for(r=0;r<t;r++)o+=N(i[r])?i[r].call(n,e):i[r];return o}}(n),k[n](e)):e.localeData().invalidDate()}function V(e,n){var t=5;function r(e){return n.longDateFormat(e)||e}for(O.lastIndex=0;t>=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,t-=1;return e}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function W(e){var n,t,r={};for(t in e)a(e,t)&&(n=Y(t))&&(r[n]=e[t]);return r}var F,X={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},L=/\d/,H=/\d\d/,Z=/\d{3}/,j=/\d{4}/,J=/[+-]?\d{6}/,z=/\d\d?/,U=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,ee=/\d+/,ne=/[+-]?\d+/,te=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function se(e,n,t){F[e]=N(n)?n:function(e,r){return e&&t?t:n}}function ue(e,n){return a(F,e)?F[e](n._strict,n._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,t,r,i){return n||t||r||i})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var n=+e,t=0;return 0!==n&&isFinite(n)&&(t=le(n)),t}F={};var pe={};function he(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),c(n)&&(i=function(e,t){t[n]=de(e)}),r=e.length,t=0;t<r;t++)pe[e[t]]=i}function fe(e,n){he(e,function(e,t,r,i){r._w=r._w||{},n(e,r._w,r,i)})}function me(e,n,t){null!=n&&a(pe,e)&&pe[e](n,t._a,t,e)}function ge(e){return e%4==0&&e%100!=0||e%400==0}var be=0,ve=1,Ie=2,ye=3,Ce=4,xe=5,Ae=6,we=7,Re=8;function Se(e){return ge(e)?366:365}_("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),se("Y",ne),se("YY",z,H),se("YYYY",K,j),se("YYYYY",$,J),se("YYYYYY",$,J),he(["YYYYY","YYYYYY"],be),he("YYYY",function(e,n){n[be]=2===e.length?r.parseTwoDigitYear(e):de(e)}),he("YY",function(e,n){n[be]=r.parseTwoDigitYear(e)}),he("Y",function(e,n){n[be]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Ne,Ee=Te("FullYear",!0);function Te(e,n){return function(t){return null!=t?(Ge(this,e,t),r.updateOffset(this,n),this):De(this,e)}}function De(e,n){if(!e.isValid())return NaN;var t=e._d,r=e._isUTC;switch(n){case"Milliseconds":return r?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return r?t.getUTCSeconds():t.getSeconds();case"Minutes":return r?t.getUTCMinutes():t.getMinutes();case"Hours":return r?t.getUTCHours():t.getHours();case"Date":return r?t.getUTCDate():t.getDate();case"Day":return r?t.getUTCDay():t.getDay();case"Month":return r?t.getUTCMonth():t.getMonth();case"FullYear":return r?t.getUTCFullYear():t.getFullYear();default:return NaN}}function Ge(e,n,t){var r,i,o,a,s;if(e.isValid()&&!isNaN(t)){switch(r=e._d,i=e._isUTC,n){case"Milliseconds":return void(i?r.setUTCMilliseconds(t):r.setMilliseconds(t));case"Seconds":return void(i?r.setUTCSeconds(t):r.setSeconds(t));case"Minutes":return void(i?r.setUTCMinutes(t):r.setMinutes(t));case"Hours":return void(i?r.setUTCHours(t):r.setHours(t));case"Date":return void(i?r.setUTCDate(t):r.setDate(t));case"FullYear":break;default:return}o=t,a=e.month(),s=29!==(s=e.date())||1!==a||ge(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Oe(e,n){if(isNaN(e)||isNaN(n))return NaN;var t=(n%12+12)%12;return e+=(n-t)/12,1===t?ge(e)?29:28:31-t%7%2}Ne=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1},_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),_("MMMM",0,0,function(e){return this.localeData().months(this,e)}),se("M",z,oe),se("MM",z,H),se("MMM",function(e,n){return n.monthsShortRegex(e)}),se("MMMM",function(e,n){return n.monthsRegex(e)}),he(["M","MM"],function(e,n){n[ve]=de(e)-1}),he(["MMM","MMMM"],function(e,n,t,r){var i=t._locale.monthsParse(e,r,t._strict);null!=i?n[ve]=i:f(t).invalidMonth=e});var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_e=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=ie,Ve=ie;function Pe(e,n,t){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return t?"MMM"===n?-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:"MMM"===n?-1!==(i=Ne.call(this._shortMonthsParse,a))||-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))||-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null}function Ye(e,n){if(!e.isValid())return e;if("string"==typeof n)if(/^\d+$/.test(n))n=de(n);else if(!c(n=e.localeData().monthsParse(n)))return e;var t=n,r=e.date();return r=r<29?r:Math.min(r,Oe(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,r):e._d.setMonth(t,r),e}function We(e){return null!=e?(Ye(this,e),r.updateOffset(this,!0),this):De(this,"Month")}function Fe(){function e(e,n){return n.length-e.length}var n,t,r,i,o=[],a=[],s=[];for(n=0;n<12;n++)t=h([2e3,n]),r=ce(this.monthsShort(t,"")),i=ce(this.months(t,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xe(e,n,t,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,n,t,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,n,t,r,i,o,a),s}function Le(e){var n,t;return e<100&&e>=0?((t=Array.prototype.slice.call(arguments))[0]=e+400,n=new Date(Date.UTC.apply(null,t)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function He(e,n,t){var r=7+n-t;return-(7+Le(e,0,r).getUTCDay()-n)%7+r-1}function Ze(e,n,t,r,i){var o,a,s=1+7*(n-1)+(7+t-r)%7+He(e,r,i);return s<=0?a=Se(o=e-1)+s:s>Se(e)?(o=e+1,a=s-Se(e)):(o=e,a=s),{year:o,dayOfYear:a}}function je(e,n,t){var r,i,o=He(e.year(),n,t),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Je(i=e.year()-1,n,t):a>Je(e.year(),n,t)?(r=a-Je(e.year(),n,t),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Je(e,n,t){var r=He(e,n,t),i=He(e+1,n,t);return(Se(e)-r+i)/7}function ze(e,n){return e.slice(n,7).concat(e.slice(0,n))}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),se("w",z,oe),se("ww",z,H),se("W",z,oe),se("WW",z,H),fe(["w","ww","W","WW"],function(e,n,t,r){n[r.substr(0,1)]=de(e)}),_("d",0,"do","day"),_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),se("d",z),se("e",z),se("E",z),se("dd",function(e,n){return n.weekdaysMinRegex(e)}),se("ddd",function(e,n){return n.weekdaysShortRegex(e)}),se("dddd",function(e,n){return n.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,n,t,r){var i=t._locale.weekdaysParse(e,r,t._strict);null!=i?n.d=i:f(t).invalidWeekday=e}),fe(["d","e","E"],function(e,n,t,r){n[r]=de(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ie,$e=ie,en=ie;function nn(e,n,t){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return t?"dddd"===n?-1!==(i=Ne.call(this._weekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:"dddd"===n?-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null}function tn(){function e(e,n){return n.length-e.length}var n,t,r,i,o,a=[],s=[],u=[],c=[];for(n=0;n<7;n++)t=h([2e3,1]).day(n),r=ce(this.weekdaysMin(t,"")),i=ce(this.weekdaysShort(t,"")),o=ce(this.weekdays(t,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rn(){return this.hours()%12||12}function on(e,n){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function an(e,n){return n._meridiemParse}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,rn),_("k",["kk",2],0,function(){return this.hours()||24}),_("hmm",0,0,function(){return""+rn.apply(this)+D(this.minutes(),2)}),_("hmmss",0,0,function(){return""+rn.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),on("a",!0),on("A",!1),se("a",an),se("A",an),se("H",z,ae),se("h",z,oe),se("k",z,oe),se("HH",z,H),se("hh",z,H),se("kk",z,H),se("hmm",U),se("hmmss",Q),se("Hmm",U),se("Hmmss",Q),he(["H","HH"],ye),he(["k","kk"],function(e,n,t){var r=de(e);n[ye]=24===r?0:r}),he(["a","A"],function(e,n,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),he(["h","hh"],function(e,n,t){n[ye]=de(e),f(t).bigHour=!0}),he("hmm",function(e,n,t){var r=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r)),f(t).bigHour=!0}),he("hmmss",function(e,n,t){var r=e.length-4,i=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r,2)),n[xe]=de(e.substr(i)),f(t).bigHour=!0}),he("Hmm",function(e,n,t){var r=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r))}),he("Hmmss",function(e,n,t){var r=e.length-4,i=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r,2)),n[xe]=de(e.substr(i))});var sn,un=Te("Hours",!0),cn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Me,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:qe,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},ln={},dn={};function pn(e,n){var t,r=Math.min(e.length,n.length);for(t=0;t<r;t+=1)if(e[t]!==n[t])return t;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(n){var t=null;if(void 0===ln[n]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(n))try{t=sn._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}("./locale/"+n),mn(t)}catch(e){ln[n]=null}return ln[n]}function mn(e,n){var t;return e&&((t=u(n)?bn(e):gn(e,n))?sn=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function gn(e,n){if(null!==n){var t,r=cn;if(n.abbr=e,null!=ln[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=n.parentLocale)if(null!=ln[n.parentLocale])r=ln[n.parentLocale]._config;else{if(null==(t=fn(n.parentLocale)))return dn[n.parentLocale]||(dn[n.parentLocale]=[]),dn[n.parentLocale].push({name:e,config:n}),null;r=t._config}return ln[e]=new T(E(r,n)),dn[e]&&dn[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function bn(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(n=fn(e))return n;e=[e]}return function(e){for(var n,t,r,i,o=0;o<e.length;){for(n=(i=hn(e[o]).split("-")).length,t=(t=hn(e[o+1]))?t.split("-"):null;n>0;){if(r=fn(i.slice(0,n).join("-")))return r;if(t&&t.length>=n&&pn(i,t)>=n-1)break;n--}o++}return sn}(e)}function vn(e){var n,t=e._a;return t&&-2===f(e).overflow&&(n=t[ve]<0||t[ve]>11?ve:t[Ie]<1||t[Ie]>Oe(t[be],t[ve])?Ie:t[ye]<0||t[ye]>24||24===t[ye]&&(0!==t[Ce]||0!==t[xe]||0!==t[Ae])?ye:t[Ce]<0||t[Ce]>59?Ce:t[xe]<0||t[xe]>59?xe:t[Ae]<0||t[Ae]>999?Ae:-1,f(e)._overflowDayOfYear&&(n<be||n>Ie)&&(n=Ie),f(e)._overflowWeeks&&-1===n&&(n=we),f(e)._overflowWeekday&&-1===n&&(n=Re),f(e).overflow=n),e}var In=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,xn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],An=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wn=/^\/?Date\((-?\d+)/i,Rn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e){var n,t,r,i,o,a,s=e._i,u=In.exec(s)||yn.exec(s),c=xn.length,l=An.length;if(u){for(f(e).iso=!0,n=0,t=c;n<t;n++)if(xn[n][1].exec(u[1])){i=xn[n][0],r=!1!==xn[n][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(n=0,t=l;n<t;n++)if(An[n][1].exec(u[3])){o=(u[2]||" ")+An[n][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Cn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Gn(e)}else e._isValid=!1}function En(e){var n,t,r,i,o,a,s,u,c,l=Rn.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(t=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[(u=l[4],c=parseInt(u,10),c<=49?2e3+c:c<=999?1900+c:c),Me.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),!function(e,n,t){return!e||Qe.indexOf(e)===new Date(n[0],n[1],n[2]).getDay()||(f(t).weekdayMismatch=!0,t._isValid=!1,!1)}(l[1],n=s,e))return;e._a=n,e._tzm=function(e,n,t){if(e)return Sn[e];if(n)return 0;var r=parseInt(t,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Le.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Tn(e,n,t){return null!=e?e:null!=n?n:t}function Dn(e){var n,t,i,o,a,s=[];if(!e._d){for(i=function(e){var n=new Date(r.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[Ie]&&null==e._a[ve]&&function(e){var n,t,r,i,o,a,s,u,c;null!=(n=e._w).GG||null!=n.W||null!=n.E?(o=1,a=4,t=Tn(n.GG,e._a[be],je(Mn(),1,4).year),r=Tn(n.W,1),((i=Tn(n.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=je(Mn(),o,a),t=Tn(n.gg,e._a[be],c.year),r=Tn(n.w,c.week),null!=n.d?((i=n.d)<0||i>6)&&(u=!0):null!=n.e?(i=n.e+o,(n.e<0||n.e>6)&&(u=!0)):i=o),r<1||r>Je(t,o,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(s=Ze(t,r,i,o,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Tn(e._a[be],i[be]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),t=Le(a,0,e._dayOfYear),e._a[ve]=t.getUTCMonth(),e._a[Ie]=t.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=s[n]=i[n];for(;n<7;n++)e._a[n]=s[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[ye]&&0===e._a[Ce]&&0===e._a[xe]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Le:Xe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}function Gn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var n,t,i,o,a,s,u,c=""+e._i,l=c.length,d=0;for(u=(i=V(e._f,e._locale).match(G)||[]).length,n=0;n<u;n++)(t=(c.match(ue(o=i[n],e))||[])[0])&&((a=c.substr(0,c.indexOf(t))).length>0&&f(e).unusedInput.push(a),c=c.slice(c.indexOf(t)+t.length),d+=t.length),M[o]?(t?f(e).empty=!1:f(e).unusedTokens.push(o),me(o,t,e)):e._strict&&!t&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-d,c.length>0&&f(e).unusedInput.push(c),e._a[ye]<=12&&!0===f(e).bigHour&&e._a[ye]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ye]=function(e,n,t){var r;return null==t?n:null!=e.meridiemHour?e.meridiemHour(n,t):null!=e.isPM?((r=e.isPM(t))&&n<12&&(n+=12),r||12!==n||(n=0),n):n}(e._locale,e._a[ye],e._meridiem),null!==(s=f(e).era)&&(e._a[be]=e._locale.erasConvertYear(s,e._a[be])),Dn(e),vn(e)}else En(e);else Nn(e)}function On(e){var n=e._i,t=e._f;return e._locale=e._locale||bn(e._l),null===n||void 0===t&&""===n?g({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),C(n)?new y(vn(n)):(l(n)?e._d=n:i(t)?function(e){var n,t,r,i,o,a,s=!1,u=e._f.length;if(0===u)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,n=I({},e),null!=e._useUTC&&(n._useUTC=e._useUTC),n._f=e._f[i],Gn(n),m(n)&&(a=!0),o+=f(n).charsLeftOver,o+=10*f(n).unusedTokens.length,f(n).score=o,s?o<r&&(r=o,t=n):(null==r||o<r||a)&&(r=o,t=n,a&&(s=!0));p(e,t||n)}(e):t?Gn(e):function(e){var n=e._i;u(n)?e._d=new Date(r.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(e){var n=wn.exec(e._i);null===n?(Nn(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+n[1])}(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),Dn(e)):o(n)?function(e){if(!e._d){var n=W(e._i);e._a=d([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Dn(e)}}(e):c(n)?e._d=new Date(n):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function kn(e,n,t,r,a){var u={};return!0!==n&&!1!==n||(r=n,n=void 0),!0!==t&&!1!==t||(r=t,t=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=t,u._i=e,u._f=n,u._strict=r,function(e){var n=new y(vn(On(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}(u)}function Mn(e,n,t,r){return kn(e,n,t,r,!1)}r.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var _n=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Bn=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Vn(e,n){var t,r;if(1===n.length&&i(n[0])&&(n=n[0]),!n.length)return Mn();for(t=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][e](t)||(t=n[r]);return t}var Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yn(e){var n=W(e),t=n.year||0,r=n.quarter||0,i=n.month||0,o=n.week||n.isoWeek||0,s=n.day||0,u=n.hour||0,c=n.minute||0,l=n.second||0,d=n.millisecond||0;this._isValid=function(e){var n,t,r=!1,i=Pn.length;for(n in e)if(a(e,n)&&(-1===Ne.call(Pn,n)||null!=e[n]&&isNaN(e[n])))return!1;for(t=0;t<i;++t)if(e[Pn[t]]){if(r)return!1;parseFloat(e[Pn[t]])!==de(e[Pn[t]])&&(r=!0)}return!0}(n),this._milliseconds=+d+1e3*l+6e4*c+1e3*u*60*60,this._days=+s+7*o,this._months=+i+3*r+12*t,this._data={},this._locale=bn(),this._bubble()}function Wn(e){return e instanceof Yn}function Fn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Xn(e,n){_(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+n+D(~~e%60,2)})}Xn("Z",":"),Xn("ZZ",""),se("Z",re),se("ZZ",re),he(["Z","ZZ"],function(e,n,t){t._useUTC=!0,t._tzm=Hn(re,e)});var Ln=/([\+\-]|\d\d)/gi;function Hn(e,n){var t,r,i=(n||"").match(e);return null===i?null:0===(r=60*(t=((i[i.length-1]||[])+"").match(Ln)||["-",0,0])[1]+de(t[2]))?0:"+"===t[0]?r:-r}function Zn(e,n){var t,i;return n._isUTC?(t=n.clone(),i=(C(e)||l(e)?e.valueOf():Mn(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),r.updateOffset(t,!1),t):Mn(e).local()}function jn(e){return-Math.round(e._d.getTimezoneOffset())}function Jn(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var zn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Un=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(e,n){var t,r,i,o,s,u,l=e,d=null;return Wn(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},n?l[n]=+e:l.milliseconds=+e):(d=zn.exec(e))?(t="-"===d[1]?-1:1,l={y:0,d:de(d[Ie])*t,h:de(d[ye])*t,m:de(d[Ce])*t,s:de(d[xe])*t,ms:de(Fn(1e3*d[Ae]))*t}):(d=Un.exec(e))?l={y:qn(d[2],t="-"===d[1]?-1:1),M:qn(d[3],t),w:qn(d[4],t),d:qn(d[5],t),h:qn(d[6],t),m:qn(d[7],t),s:qn(d[8],t)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Mn(l.from),s=Mn(l.to),i=o.isValid()&&s.isValid()?(s=Zn(s,o),o.isBefore(s)?u=Kn(o,s):((u=Kn(s,o)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Yn(l),Wn(e)&&a(e,"_locale")&&(r._locale=e._locale),Wn(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function qn(e,n){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function Kn(e,n){var t={};return t.months=n.month()-e.month()+12*(n.year()-e.year()),e.clone().add(t.months,"M").isAfter(n)&&--t.months,t.milliseconds=+n-+e.clone().add(t.months,"M"),t}function $n(e,n){return function(t,r){var i;return null===r||isNaN(+r)||(S(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),et(this,Qn(t,r),e),this}}function et(e,n,t,i){var o=n._milliseconds,a=Fn(n._days),s=Fn(n._months);e.isValid()&&(i=null==i||i,s&&Ye(e,De(e,"Month")+s*t),a&&Ge(e,"Date",De(e,"Date")+a*t),o&&e._d.setTime(e._d.valueOf()+o*t),i&&r.updateOffset(e,a||s))}Qn.fn=Yn.prototype,Qn.invalid=function(){return Qn(NaN)};var nt=$n(1,"add"),tt=$n(-1,"subtract");function rt(e){return"string"==typeof e||e instanceof String}function it(e,n){if(e.date()<n.date())return-it(n,e);var t=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(t,"months");return-(t+(n-r<0?(n-r)/(r-e.clone().add(t-1,"months")):(n-r)/(e.clone().add(t+1,"months")-r)))||0}function ot(e){var n;return void 0===e?this._locale._abbr:(null!=(n=bn(e))&&(this._locale=n),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var at=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function st(){return this._locale}var ut=1e3,ct=6e4,lt=36e5,dt=126227808e5;function pt(e,n){return(e%n+n)%n}function ht(e,n,t){return e<100&&e>=0?new Date(e+400,n,t)-dt:new Date(e,n,t).valueOf()}function ft(e,n,t){return e<100&&e>=0?Date.UTC(e+400,n,t)-dt:Date.UTC(e,n,t)}function mt(e,n){return n.erasAbbrRegex(e)}function gt(){var e,n,t,r,i,o=[],a=[],s=[],u=[],c=this.eras();for(e=0,n=c.length;e<n;++e)t=ce(c[e].name),r=ce(c[e].abbr),i=ce(c[e].narrow),a.push(t),o.push(r),s.push(i),u.push(t),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function bt(e,n){_(0,[e,e.length],0,n)}function vt(e,n,t,r,i){var o;return null==e?je(this,r,i).year:(n>(o=Je(e,r,i))&&(n=o),It.call(this,e,n,t,r,i))}function It(e,n,t,r,i){var o=Ze(e,n,t,r,i),a=Le(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),se("N",mt),se("NN",mt),se("NNN",mt),se("NNNN",function(e,n){return n.erasNameRegex(e)}),se("NNNNN",function(e,n){return n.erasNarrowRegex(e)}),he(["N","NN","NNN","NNNN","NNNNN"],function(e,n,t,r){var i=t._locale.erasParse(e,r,t._strict);i?f(t).era=i:f(t).invalidEra=e}),se("y",ee),se("yy",ee),se("yyy",ee),se("yyyy",ee),se("yo",function(e,n){return n._eraYearOrdinalRegex||ee}),he(["y","yy","yyy","yyyy"],be),he(["yo"],function(e,n,t,r){var i;t._locale._eraYearOrdinalRegex&&(i=e.match(t._locale._eraYearOrdinalRegex)),n[be]=t._locale.eraYearOrdinalParse?t._locale.eraYearOrdinalParse(e,i):parseInt(e,10)}),_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100}),bt("gggg","weekYear"),bt("ggggg","weekYear"),bt("GGGG","isoWeekYear"),bt("GGGGG","isoWeekYear"),se("G",ne),se("g",ne),se("GG",z,H),se("gg",z,H),se("GGGG",K,j),se("gggg",K,j),se("GGGGG",$,J),se("ggggg",$,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,r){n[r.substr(0,2)]=de(e)}),fe(["gg","GG"],function(e,n,t,i){n[i]=r.parseTwoDigitYear(e)}),_("Q",0,"Qo","quarter"),se("Q",L),he("Q",function(e,n){n[ve]=3*(de(e)-1)}),_("D",["DD",2],"Do","date"),se("D",z,oe),se("DD",z,H),se("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),he(["D","DD"],Ie),he("Do",function(e,n){n[Ie]=de(e.match(z)[0])});var yt=Te("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",q),se("DDDD",Z),he(["DDD","DDDD"],function(e,n,t){t._dayOfYear=de(e)}),_("m",["mm",2],0,"minute"),se("m",z,ae),se("mm",z,H),he(["m","mm"],Ce);var Ct=Te("Minutes",!1);_("s",["ss",2],0,"second"),se("s",z,ae),se("ss",z,H),he(["s","ss"],xe);var xt,At,wt=Te("Seconds",!1);for(_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return 10*this.millisecond()}),_(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),_(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),_(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),_(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),_(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),se("S",q,L),se("SS",q,H),se("SSS",q,Z),xt="SSSS";xt.length<=9;xt+="S")se(xt,ee);function Rt(e,n){n[Ae]=de(1e3*("0."+e))}for(xt="S";xt.length<=9;xt+="S")he(xt,Rt);At=Te("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");var St=y.prototype;function Nt(e){return e}St.add=nt,St.calendar=function(e,n){var t;1===arguments.length&&(arguments[0]?C(t=arguments[0])||l(t)||rt(t)||c(t)||function(e){var n=i(e),t=!1;return n&&(t=0===e.filter(function(n){return!c(n)&&rt(e)}).length),n&&t}(t)||function(e){var n,t=o(e)&&!s(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(n=0;n<u;n+=1)r=r||a(e,i[n]);return t&&r}(t)||null==t?(e=arguments[0],n=void 0):function(e){var n,t=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<i.length;n+=1)r=r||a(e,i[n]);return t&&r}(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var u=e||Mn(),d=Zn(u,this).startOf("day"),p=r.calendarFormat(this,d)||"sameElse",h=n&&(N(n[p])?n[p].call(this,u):n[p]);return this.format(h||this.localeData().calendar(p,this,Mn(u)))},St.clone=function(){return new y(this)},St.diff=function(e,n,t){var r,i,o;if(!this.isValid())return NaN;if(!(r=Zn(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),n=Y(n)){case"year":o=it(this,r)/12;break;case"month":o=it(this,r);break;case"quarter":o=it(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return t?o:le(o)},St.endOf=function(e){var n,t;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?ft:ht,e){case"year":n=t(this.year()+1,0,1)-1;break;case"quarter":n=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=t(this.year(),this.month()+1,1)-1;break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=lt-pt(n+(this._isUTC?0:this.utcOffset()*ct),lt)-1;break;case"minute":n=this._d.valueOf(),n+=ct-pt(n,ct)-1;break;case"second":n=this._d.valueOf(),n+=ut-pt(n,ut)-1}return this._d.setTime(n),r.updateOffset(this,!0),this},St.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var n=B(this,e);return this.localeData().postformat(n)},St.from=function(e,n){return this.isValid()&&(C(e)&&e.isValid()||Mn(e).isValid())?Qn({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},St.fromNow=function(e){return this.from(Mn(),e)},St.to=function(e,n){return this.isValid()&&(C(e)&&e.isValid()||Mn(e).isValid())?Qn({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},St.toNow=function(e){return this.to(Mn(),e)},St.get=function(e){return N(this[e=Y(e)])?this[e]():this},St.invalidAt=function(){return f(this).overflow},St.isAfter=function(e,n){var t=C(e)?e:Mn(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(n).valueOf())},St.isBefore=function(e,n){var t=C(e)?e:Mn(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(n).valueOf()<t.valueOf())},St.isBetween=function(e,n,t,r){var i=C(e)?e:Mn(e),o=C(n)?n:Mn(n);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,t):!this.isBefore(i,t))&&(")"===r[1]?this.isBefore(o,t):!this.isAfter(o,t))},St.isSame=function(e,n){var t,r=C(e)?e:Mn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()===r.valueOf():(t=r.valueOf(),this.clone().startOf(n).valueOf()<=t&&t<=this.clone().endOf(n).valueOf()))},St.isSameOrAfter=function(e,n){return this.isSame(e,n)||this.isAfter(e,n)},St.isSameOrBefore=function(e,n){return this.isSame(e,n)||this.isBefore(e,n)},St.isValid=function(){return m(this)},St.lang=at,St.locale=ot,St.localeData=st,St.max=Bn,St.min=_n,St.parsingFlags=function(){return p({},f(this))},St.set=function(e,n){if("object"==typeof e){var t,r=function(e){var n,t=[];for(n in e)a(e,n)&&t.push({unit:n,priority:X[n]});return t.sort(function(e,n){return e.priority-n.priority}),t}(e=W(e)),i=r.length;for(t=0;t<i;t++)this[r[t].unit](e[r[t].unit])}else if(N(this[e=Y(e)]))return this[e](n);return this},St.startOf=function(e){var n,t;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?ft:ht,e){case"year":n=t(this.year(),0,1);break;case"quarter":n=t(this.year(),this.month()-this.month()%3,1);break;case"month":n=t(this.year(),this.month(),1);break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=t(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=pt(n+(this._isUTC?0:this.utcOffset()*ct),lt);break;case"minute":n=this._d.valueOf(),n-=pt(n,ct);break;case"second":n=this._d.valueOf(),n-=pt(n,ut)}return this._d.setTime(n),r.updateOffset(this,!0),this},St.subtract=tt,St.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},St.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},St.toDate=function(){return new Date(this.valueOf())},St.toISOString=function(e){if(!this.isValid())return null;var n=!0!==e,t=n?this.clone().utc():this;return t.year()<0||t.year()>9999?B(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(t,"Z")):B(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},St.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,n,t="moment",r="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(St[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),St.toJSON=function(){return this.isValid()?this.toISOString():null},St.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},St.unix=function(){return Math.floor(this.valueOf()/1e3)},St.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},St.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},St.eraName=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].name;if(r[e].until<=t&&t<=r[e].since)return r[e].name}return""},St.eraNarrow=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].narrow;if(r[e].until<=t&&t<=r[e].since)return r[e].narrow}return""},St.eraAbbr=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].abbr;if(r[e].until<=t&&t<=r[e].since)return r[e].abbr}return""},St.eraYear=function(){var e,n,t,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*t+o[e].offset;return this.year()},St.year=Ee,St.isLeapYear=function(){return ge(this.year())},St.weekYear=function(e){return vt.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},St.isoWeekYear=function(e){return vt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},St.quarter=St.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},St.month=We,St.daysInMonth=function(){return Oe(this.year(),this.month())},St.week=St.weeks=function(e){var n=this.localeData().week(this);return null==e?n:this.add(7*(e-n),"d")},St.isoWeek=St.isoWeeks=function(e){var n=je(this,1,4).week;return null==e?n:this.add(7*(e-n),"d")},St.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},St.weeksInWeekYear=function(){var e=this.localeData()._week;return Je(this.weekYear(),e.dow,e.doy)},St.isoWeeksInYear=function(){return Je(this.year(),1,4)},St.isoWeeksInISOWeekYear=function(){return Je(this.isoWeekYear(),1,4)},St.date=yt,St.day=St.days=function(e){if(!this.isValid())return null!=e?this:NaN;var n=De(this,"Day");return null!=e?(e=function(e,n){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-n,"d")):n},St.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==e?n:this.add(e-n,"d")},St.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var n=function(e,n){return"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},St.dayOfYear=function(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?n:this.add(e-n,"d")},St.hour=St.hours=un,St.minute=St.minutes=Ct,St.second=St.seconds=wt,St.millisecond=St.milliseconds=At,St.utcOffset=function(e,n,t){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Hn(re,e)))return this}else Math.abs(e)<16&&!t&&(e*=60);return!this._isUTC&&n&&(i=jn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?et(this,Qn(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:jn(this)},St.utc=function(e){return this.utcOffset(0,e)},St.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jn(this),"m")),this},St.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Hn(te,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},St.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mn(e).utcOffset():0,(this.utcOffset()-e)%60==0)},St.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},St.isLocal=function(){return!!this.isValid()&&!this._isUTC},St.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},St.isUtc=Jn,St.isUTC=Jn,St.zoneAbbr=function(){return this._isUTC?"UTC":""},St.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},St.dates=A("dates accessor is deprecated. Use date instead.",yt),St.months=A("months accessor is deprecated. Use month instead",We),St.years=A("years accessor is deprecated. Use year instead",Ee),St.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,n){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}),St.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,n={};return I(n,this),(n=On(n))._a?(e=n._isUTC?h(n._a):Mn(n._a),this._isDSTShifted=this.isValid()&&function(e,n){var t,r=Math.min(e.length,n.length),i=Math.abs(e.length-n.length),o=0;for(t=0;t<r;t++)de(e[t])!==de(n[t])&&o++;return o+i}(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Et=T.prototype;function Tt(e,n,t,r){var i=bn(),o=h().set(r,n);return i[t](o,e)}function Dt(e,n,t){if(c(e)&&(n=e,e=void 0),e=e||"",null!=n)return Tt(e,n,t,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Tt(e,r,t,"month");return i}function Gt(e,n,t,r){"boolean"==typeof e?(c(n)&&(t=n,n=void 0),n=n||""):(t=n=e,e=!1,c(n)&&(t=n,n=void 0),n=n||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=t)return Tt(n,(t+a)%7,r,"day");for(i=0;i<7;i++)s[i]=Tt(n,(i+a)%7,r,"day");return s}Et.calendar=function(e,n,t){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(n,t):r},Et.longDateFormat=function(e){var n=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return n||!t?n:(this._longDateFormat[e]=t.match(G).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Et.invalidDate=function(){return this._invalidDate},Et.ordinal=function(e){return this._ordinal.replace("%d",e)},Et.preparse=Nt,Et.postformat=Nt,Et.relativeTime=function(e,n,t,r){var i=this._relativeTime[t];return N(i)?i(e,n,t,r):i.replace(/%d/i,e)},Et.pastFuture=function(e,n){var t=this._relativeTime[e>0?"future":"past"];return N(t)?t(n):t.replace(/%s/i,n)},Et.set=function(e){var n,t;for(t in e)a(e,t)&&(N(n=e[t])?this[t]=n:this["_"+t]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Et.eras=function(e,n){var t,i,o,a=this._eras||bn("en")._eras;for(t=0,i=a.length;t<i;++t)switch("string"==typeof a[t].since&&(o=r(a[t].since).startOf("day"),a[t].since=o.valueOf()),typeof a[t].until){case"undefined":a[t].until=Infinity;break;case"string":o=r(a[t].until).startOf("day").valueOf(),a[t].until=o.valueOf()}return a},Et.erasParse=function(e,n,t){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),t)switch(n){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]},Et.erasConvertYear=function(e,n){var t=e.since<=e.until?1:-1;return void 0===n?r(e.since).year():r(e.since).year()+(n-e.offset)*t},Et.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||gt.call(this),e?this._erasAbbrRegex:this._erasRegex},Et.erasNameRegex=function(e){return a(this,"_erasNameRegex")||gt.call(this),e?this._erasNameRegex:this._erasRegex},Et.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||gt.call(this),e?this._erasNarrowRegex:this._erasRegex},Et.months=function(e,n){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_e).test(n)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Et.monthsShort=function(e,n){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_e.test(n)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Et.monthsParse=function(e,n,t){var r,i,o;if(this._monthsParseExact)return Pe.call(this,e,n,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),t&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),t||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),t&&"MMMM"===n&&this._longMonthsParse[r].test(e))return r;if(t&&"MMM"===n&&this._shortMonthsParse[r].test(e))return r;if(!t&&this._monthsParse[r].test(e))return r}},Et.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Et.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Et.week=function(e){return je(e,this._week.dow,this._week.doy).week},Et.firstDayOfYear=function(){return this._week.doy},Et.firstDayOfWeek=function(){return this._week.dow},Et.weekdays=function(e,n){var t=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===e?ze(t,this._week.dow):e?t[e.day()]:t},Et.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Et.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Et.weekdaysParse=function(e,n,t){var r,i,o;if(this._weekdaysParseExact)return nn.call(this,e,n,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),t&&"dddd"===n&&this._fullWeekdaysParse[r].test(e))return r;if(t&&"ddd"===n&&this._shortWeekdaysParse[r].test(e))return r;if(t&&"dd"===n&&this._minWeekdaysParse[r].test(e))return r;if(!t&&this._weekdaysParse[r].test(e))return r}},Et.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Et.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Et.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=en),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Et.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Et.meridiem=function(e,n,t){return e>11?t?"pm":"PM":t?"am":"AM"},mn("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10;return e+(1===de(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),r.lang=A("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=A("moment.langData is deprecated. Use moment.localeData instead.",bn);var Ot=Math.abs;function kt(e,n,t,r){var i=Qn(n,t);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Mt(e){return e<0?Math.floor(e):Math.ceil(e)}function _t(e){return 4800*e/146097}function Bt(e){return 146097*e/4800}function Vt(e){return function(){return this.as(e)}}var Pt=Vt("ms"),Yt=Vt("s"),Wt=Vt("m"),Ft=Vt("h"),Xt=Vt("d"),Lt=Vt("w"),Ht=Vt("M"),Zt=Vt("Q"),jt=Vt("y"),Jt=Pt;function zt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ut=zt("milliseconds"),Qt=zt("seconds"),qt=zt("minutes"),Kt=zt("hours"),$t=zt("days"),er=zt("months"),nr=zt("years"),tr=Math.round,rr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ir(e,n,t,r,i){return i.relativeTime(n||1,!!t,e,r)}var or=Math.abs;function ar(e){return(e>0)-(e<0)||+e}function sr(){if(!this.isValid())return this.localeData().invalidDate();var e,n,t,r,i,o,a,s,u=or(this._milliseconds)/1e3,c=or(this._days),l=or(this._months),d=this.asSeconds();return d?(e=le(u/60),n=le(e/60),u%=60,e%=60,t=le(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ar(this._months)!==ar(d)?"-":"",a=ar(this._days)!==ar(d)?"-":"",s=ar(this._milliseconds)!==ar(d)?"-":"",i+"P"+(t?o+t+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(n||e||u?"T":"")+(n?s+n+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ur=Yn.prototype;return ur.isValid=function(){return this._isValid},ur.abs=function(){var e=this._data;return this._milliseconds=Ot(this._milliseconds),this._days=Ot(this._days),this._months=Ot(this._months),e.milliseconds=Ot(e.milliseconds),e.seconds=Ot(e.seconds),e.minutes=Ot(e.minutes),e.hours=Ot(e.hours),e.months=Ot(e.months),e.years=Ot(e.years),this},ur.add=function(e,n){return kt(this,e,n,1)},ur.subtract=function(e,n){return kt(this,e,n,-1)},ur.as=function(e){if(!this.isValid())return NaN;var n,t,r=this._milliseconds;if("month"===(e=Y(e))||"quarter"===e||"year"===e)switch(t=this._months+_t(n=this._days+r/864e5),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(n=this._days+Math.round(Bt(this._months)),e){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return 24*n+r/36e5;case"minute":return 1440*n+r/6e4;case"second":return 86400*n+r/1e3;case"millisecond":return Math.floor(864e5*n)+r;default:throw new Error("Unknown unit "+e)}},ur.asMilliseconds=Pt,ur.asSeconds=Yt,ur.asMinutes=Wt,ur.asHours=Ft,ur.asDays=Xt,ur.asWeeks=Lt,ur.asMonths=Ht,ur.asQuarters=Zt,ur.asYears=jt,ur.valueOf=Jt,ur._bubble=function(){var e,n,t,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Mt(Bt(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,n=le(e/60),u.minutes=n%60,t=le(n/60),u.hours=t%24,a+=le(t/24),s+=i=le(_t(a)),a-=Mt(Bt(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},ur.clone=function(){return Qn(this)},ur.get=function(e){return e=Y(e),this.isValid()?this[e+"s"]():NaN},ur.milliseconds=Ut,ur.seconds=Qt,ur.minutes=qt,ur.hours=Kt,ur.days=$t,ur.weeks=function(){return le(this.days()/7)},ur.months=er,ur.years=nr,ur.humanize=function(e,n){if(!this.isValid())return this.localeData().invalidDate();var t,r,i=!1,o=rr;return"object"==typeof e&&(n=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof n&&(o=Object.assign({},rr,n),null!=n.s&&null==n.ss&&(o.ss=n.s-1)),r=function(e,n,t,r){var i=Qn(e).abs(),o=tr(i.as("s")),a=tr(i.as("m")),s=tr(i.as("h")),u=tr(i.as("d")),c=tr(i.as("M")),l=tr(i.as("w")),d=tr(i.as("y")),p=o<=t.ss&&["s",o]||o<t.s&&["ss",o]||a<=1&&["m"]||a<t.m&&["mm",a]||s<=1&&["h"]||s<t.h&&["hh",s]||u<=1&&["d"]||u<t.d&&["dd",u];return null!=t.w&&(p=p||l<=1&&["w"]||l<t.w&&["ww",l]),(p=p||c<=1&&["M"]||c<t.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=n,p[3]=+e>0,p[4]=r,ir.apply(null,p)}(this,!i,o,t=this.localeData()),i&&(r=t.pastFuture(+this,r)),t.postformat(r)},ur.toISOString=sr,ur.toString=sr,ur.toJSON=sr,ur.locale=ot,ur.localeData=st,ur.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sr),ur.lang=at,_("X",0,0,"unix"),_("x",0,0,"valueOf"),se("x",ne),se("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,n,t){t._d=new Date(1e3*parseFloat(e))}),he("x",function(e,n,t){t._d=new Date(de(e))}),r.version="2.30.1",n=Mn,r.fn=St,r.min=function(){return Vn("isBefore",[].slice.call(arguments,0))},r.max=function(){return Vn("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Mn(1e3*e)},r.months=function(e,n){return Dt(e,n,"months")},r.isDate=l,r.locale=mn,r.invalid=g,r.duration=Qn,r.isMoment=C,r.weekdays=function(e,n,t){return Gt(e,n,t,"weekdays")},r.parseZone=function(){return Mn.apply(null,arguments).parseZone()},r.localeData=bn,r.isDuration=Wn,r.monthsShort=function(e,n){return Dt(e,n,"monthsShort")},r.weekdaysMin=function(e,n,t){return Gt(e,n,t,"weekdaysMin")},r.defineLocale=gn,r.updateLocale=function(e,n){if(null!=n){var t,r,i=cn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(E(ln[e]._config,n)):(null!=(r=fn(e))&&(i=r._config),n=E(i,n),null==r&&(n.abbr=e),(t=new T(n)).parentLocale=ln[e],ln[e]=t),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]},r.locales=function(){return w(ln)},r.weekdaysShort=function(e,n,t){return Gt(e,n,t,"weekdaysShort")},r.normalizeUnits=Y,r.relativeTimeRounding=function(e){return void 0===e?tr:"function"==typeof e&&(tr=e,!0)},r.relativeTimeThreshold=function(e,n){return void 0!==rr[e]&&(void 0===n?rr[e]:(rr[e]=n,"s"===e&&(rr.ss=n-1),!0))},r.calendarFormat=function(e,n){var t=e.diff(n,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},r.prototype=St,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}),qs=function(e,n){n.set("year",e.year()).set("month",e.month()).set("day",e.day())};exports.ApplicationInfoDocument=za,exports.CompanyConfigDocument=Ua,exports.ConfirmTooltip=x,exports.CounterDirectoriesDocument=Qa,exports.CountersDocument=qa,exports.CreateDashboardDocument=Ea,exports.CreateOrderDocument=Ta,exports.CreateProductDocument=Da,exports.CreateStatusChangeDocument=Ga,exports.CreateUserPresenceDocument=Oa,exports.CreateWidgetDocument=ka,exports.CurrentUserDocument=Ka,exports.DashboardsDocument=$a,exports.DepartmentsDocument=es,exports.FloorPlansDocument=ns,exports.GraphqlWsClient=Js,exports.ListStatusChangesDocument=Is,exports.ListWorkplacesDocument=ys,exports.MetricValuesDocument=ts,exports.MetricsDocument=rs,exports.NotificationsDocument=is,exports.OrdersDocument=os,exports.OrdersExecutionsDocument=as,exports.PauseOrderExecutionDocument=Ma,exports.ProductsDocument=ss,exports.ReasonsDocument=us,exports.ReasonsRecommendationDocument=cs,exports.RemoveDashboardDocument=_a,exports.RemoveUserPresenceDocument=Ba,exports.RemoveWidgetDocument=Va,exports.RemoveWorkplaceUsersPresencesDocument=Pa,exports.SetCounterDocument=Ya,exports.ShiftsDocument=ls,exports.SortableSelect=function(e){var n=e.options,t=e.selected,r=e.onChange,i=function(e){var n,i,o,a=e.active,s=e.over;if(a.id!==(null==s?void 0:s.id)){var u=t.findIndex(function(e){return e===a.id}),c=t.findIndex(function(e){return e===(null==s?void 0:s.id)});r((n=t,i=u,o=c,function(e,n,t){const r=n<0?e.length+n:n;if(r>=0&&r<e.length){const r=t<0?e.length+t:t,[i]=e.splice(n,1);e.splice(r,0,i)}}(n=[...n],i,o),n))}};return h.default.createElement(nt,{placeholder:e.placeholder,isMulti:!0,options:n,value:t.map(function(e){return n.find(function(n){return n.value===e})}),onChange:function(e){return r([].concat(e||[]).map(function(e){return e.value}))},closeMenuOnSelect:!1,components:{MultiValueContainer:pi,MultiValueLabel:hi,ValueContainer:function(e){return h.default.createElement(Ur,{onDragEnd:i},h.default.createElement(oi,{items:t},e.children))}}})},exports.StandardRatesDocument=ds,exports.StartOrderExecutionDocument=Wa,exports.StatusChangeTransitionPermissionsDocument=ps,exports.StatusChangesDocument=hs,exports.StopOrderExecutionDocument=Fa,exports.UpdateDashboardDocument=Xa,exports.UpdateNotificationDocument=La,exports.UpdateOrderDocument=Ha,exports.UpdateOrderExecutionDocument=Za,exports.UpdateStatusChangeDocument=ja,exports.UpdateWidgetDocument=Ja,exports.UsersDocument=fs,exports.UsersPresencesDocument=ms,exports.WidgetCard=bi,exports.WidgetDocument=gs,exports.WidgetsDocument=bs,exports.WorkplaceEventDocument=Cs,exports.WorkplacesDocument=vs,exports.getCurrentShift=function(e,n){return n.find(function(n){return e.isBetween(n.startedAt,n.finishedAt)})||null},exports.getGqlWsClient=zs,exports.getGraphqlSdk=Us,exports.getRecentShift=function(e,n){return n.length?n.reduce(function(n,t){return Math.abs(e.diff(t.finishedAt))<Math.abs(e.diff(n.finishedAt))?t:n}):null},exports.getSdk=As,exports.normalizeShifts=function(e,n){var t=[];return e.forEach(function(e){var r=Qs(e.startedAt,"YYYY-MM-DD HH:mm:ss ZZ"),i=Qs(e.finishedAt,"YYYY-MM-DD HH:mm:ss ZZ");if(qs(n,r),qs(n,i),r.isAfter(i)){var o=Qs(r);o.subtract(1,"day");var a=Qs(i);a.add(1,"day"),t.push({name:e.name,startedAt:o,finishedAt:i}),t.push({name:e.name,startedAt:r,finishedAt:a})}else t.push({name:e.name,startedAt:r,finishedAt:i})}),t},exports.useGqlClients=function(n){var t,r=n.url,i=n.wsUrl,o=n.lang,a=l.useStore().sessionStore,s=e.useState(),u=s[0],c=s[1],d=e.useState(),p=d[0],h=d[1],f=i||r.replace("graphql","cable"),m=(null==(t=a.loginStatus.authResponse)?void 0:t.accessToken)||"";return e.useEffect(function(){r&&c(Us(r,l.fetch))},[r]),e.useEffect(function(){r&&m&&h(zs(f||r.replace("graphql","cable"),m,o))},[r,f,m,o]),{graphqlSdk:u,gqlWsClient:p}};
13
+ return f.createElement(un,M({},e,{id:this.getElementId("live-region"),ariaSelection:t,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,t=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,u=o.isDisabled,c=o.menuIsOpen,l=this.state.isFocused,d=this.commonProps=this.getCommonProps();/*#__PURE__*/
14
+ return f.createElement(r,M({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),/*#__PURE__*/f.createElement(n,M({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),/*#__PURE__*/f.createElement(i,M({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),/*#__PURE__*/f.createElement(t,M({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t=n.prevProps,r=n.clearFocusValueOnUpdate,i=n.inputIsHiddenAfterUpdate,o=n.ariaSelection,a=n.isFocused,s=n.prevWasFocused,u=n.instancePrefix,c=e.options,l=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=he(l),m={};if(t&&(l!==t.value||c!==t.options||d!==t.menuIsOpen||p!==t.inputValue)){var g=d?function(e,n){return Xn(Fn(e,n))}(e,f):[],b=d?Ln(Fn(e,f),"".concat(u,"-option")):[],v=r?function(e,n){var t=e.focusedValue,r=e.selectValue.indexOf(t);if(r>-1){if(n.indexOf(t)>-1)return t;if(r<n.length)return n[r]}return null}(n,f):null,I=function(e,n){var t=e.focusedOption;return t&&n.indexOf(t)>-1?t:n[0]}(n,g);m={selectValue:f,focusedOption:I,focusedOptionId:Zn(b,I),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=i&&e!==t?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},C=o,x=a&&s;return a&&!x&&(C={value:Se(h,f,f[0]||null),options:f,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(C=null),N(N(N({},m),y),{},{prevProps:e,ariaSelection:C,prevWasFocused:x})}}]),t}();$n.defaultProps=Yn;var et=/*#__PURE__*/e.forwardRef(function(n,t){var r=function(n){var t=n.defaultInputValue,r=void 0===t?"":t,i=n.defaultMenuIsOpen,o=void 0!==i&&i,a=n.defaultValue,s=void 0===a?null:a,u=n.inputValue,c=n.menuIsOpen,l=n.onChange,d=n.onInputChange,p=n.onMenuClose,h=n.onMenuOpen,f=n.value,m=G(n,O),g=D(e.useState(void 0!==u?u:r),2),b=g[0],v=g[1],I=D(e.useState(void 0!==c?c:o),2),y=I[0],C=I[1],x=D(e.useState(void 0!==f?f:s),2),A=x[0],w=x[1],R=e.useCallback(function(e,n){"function"==typeof l&&l(e,n),w(e)},[l]),S=e.useCallback(function(e,n){var t;"function"==typeof d&&(t=d(e,n)),v(void 0!==t?t:e)},[d]),E=e.useCallback(function(){"function"==typeof h&&h(),C(!0)},[h]),T=e.useCallback(function(){"function"==typeof p&&p(),C(!1)},[p]),M=void 0!==u?u:b,k=void 0!==c?c:y,_=void 0!==f?f:A;return N(N({},m),{},{inputValue:M,menuIsOpen:k,onChange:R,onInputChange:S,onMenuClose:T,onMenuOpen:E,value:_})}(n);/*#__PURE__*/
15
+ return f.createElement($n,M({ref:t},r))}),nt=et;const tt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function rt(e){const n=Object.prototype.toString.call(e);return"[object Window]"===n||"[object global]"===n}function it(e){return"nodeType"in e}function ot(e){var n,t;return e?rt(e)?e:it(e)&&null!=(n=null==(t=e.ownerDocument)?void 0:t.defaultView)?n:window:window}function at(e){const{Document:n}=ot(e);return e instanceof n}function st(e){return!rt(e)&&e instanceof ot(e).HTMLElement}function ut(e){return e instanceof ot(e).SVGElement}function ct(e){return e?rt(e)?e.document:it(e)?at(e)?e:st(e)||ut(e)?e.ownerDocument:document:document:document}const lt=tt?e.useLayoutEffect:e.useEffect;function dt(n){const t=e.useRef(n);return lt(()=>{t.current=n}),e.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function pt(n,t){void 0===t&&(t=[n]);const r=e.useRef(n);return lt(()=>{r.current!==n&&(r.current=n)},t),r}function ht(n,t){const r=e.useRef();return e.useMemo(()=>{const e=n(r.current);return r.current=e,e},[...t])}function ft(n){const t=dt(n),r=e.useRef(null),i=e.useCallback(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function mt(n){const t=e.useRef();return e.useEffect(()=>{t.current=n},[n]),t.current}let gt={};function bt(n,t){return e.useMemo(()=>{if(t)return t;const e=null==gt[n]?0:gt[n]+1;return gt[n]=e,n+"-"+e},[n,t])}function vt(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return r.reduce((n,t)=>{const r=Object.entries(t);for(const[t,i]of r){const r=n[t];null!=r&&(n[t]=r+e*i)}return n},{...n})}}const It=/*#__PURE__*/vt(1),yt=/*#__PURE__*/vt(-1);function Ct(e){if(!e)return!1;const{KeyboardEvent:n}=ot(e.target);return n&&e instanceof n}function xt(e){if(function(e){if(!e)return!1;const{TouchEvent:n}=ot(e.target);return n&&e instanceof n}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const At=/*#__PURE__*/Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[At.Translate.toString(e),At.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:r}=e;return n+" "+t+"ms "+r}}}),wt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Rt(e){return e.matches(wt)?e:e.querySelector(wt)}const St={display:"none"};function Nt(e){let{id:n,value:t}=e;return h.default.createElement("div",{id:n,style:St},t)}function Et(e){let{id:n,announcement:t,ariaLiveType:r="assertive"}=e;return h.default.createElement("div",{id:n,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},t)}const Tt=/*#__PURE__*/e.createContext(null),Dt={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Gt={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function Ot(n){let{announcements:t=Gt,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=Dt}=n;const{announce:s,announcement:u}=function(){const[n,t]=e.useState("");return{announce:e.useCallback(e=>{null!=e&&t(e)},[]),announcement:n}}(),c=bt("DndLiveRegion"),[l,d]=e.useState(!1);if(e.useEffect(()=>{d(!0)},[]),function(n){const t=e.useContext(Tt);e.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(n)},[n,t])}(e.useMemo(()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&s(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;s(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;s(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;s(t.onDragCancel({active:n,over:r}))}}),[s,t])),!l)return null;const p=h.default.createElement(h.default.Fragment,null,h.default.createElement(Nt,{id:o,value:a.draggable}),h.default.createElement(Et,{id:c,announcement:u}));return i?r.createPortal(p,i):p}var Mt;function kt(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Mt||(Mt={}));const _t=/*#__PURE__*/Object.freeze({x:0,y:0});function Bt(e,n){let{data:{value:t}}=e,{data:{value:r}}=n;return r-t}function Vt(e,n){const t=Math.max(n.top,e.top),r=Math.max(n.left,e.left),i=Math.min(n.left+n.width,e.left+e.width),o=Math.min(n.top+n.height,e.top+e.height);if(r<i&&t<o){const a=(i-r)*(o-t);return Number((a/(n.width*n.height+e.width*e.height-a)).toFixed(4))}return 0}const Pt=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=t.get(r);if(o){const t=Vt(o,n);t>0&&i.push({id:r,data:{droppableContainer:e,value:t}})}}return i.sort(Bt)};function Yt(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:_t}function Wt(e){return function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return r.reduce((n,t)=>({...n,top:n.top+e*t.y,bottom:n.bottom+e*t.y,left:n.left+e*t.x,right:n.right+e*t.x}),{...n})}}const Ft=/*#__PURE__*/Wt(1),Xt={ignoreTransform:!1};function Lt(e,n){void 0===n&&(n=Xt);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:n,transformOrigin:r}=ot(e).getComputedStyle(e);n&&(t=function(e,n,t){const r=function(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}(n);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,u=e.left-a-(1-i)*parseFloat(t),c=e.top-s-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),l=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:l,height:d,top:c,right:u+l,bottom:c+d,left:u}}(t,n,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:u}=t;return{top:r,left:i,width:o,height:a,bottom:s,right:u}}function Ht(e){return Lt(e,{ignoreTransform:!0})}function Zt(e,n){const t=[];return e?function r(i){if(null!=n&&t.length>=n)return t;if(!i)return t;if(at(i)&&null!=i.scrollingElement&&!t.includes(i.scrollingElement))return t.push(i.scrollingElement),t;if(!st(i)||ut(i))return t;if(t.includes(i))return t;const o=ot(e).getComputedStyle(i);return i!==e&&function(e,n){void 0===n&&(n=ot(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=n[e];return"string"==typeof r&&t.test(r)})}(i,o)&&t.push(i),function(e,n){return void 0===n&&(n=ot(e).getComputedStyle(e)),"fixed"===n.position}(i,o)?t:r(i.parentNode)}(e):t}function jt(e){const[n]=Zt(e,1);return null!=n?n:null}function Jt(e){return tt&&e?rt(e)?e:it(e)?at(e)||e===ct(e).scrollingElement?window:st(e)?e:null:null:null}function zt(e){return rt(e)?e.scrollX:e.scrollLeft}function Ut(e){return rt(e)?e.scrollY:e.scrollTop}function Qt(e){return{x:zt(e),y:Ut(e)}}var qt;function Kt(e){return!(!tt||!e)&&e===document.scrollingElement}function $t(e){const n={x:0,y:0},t=Kt(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height};return{isTop:e.scrollTop<=n.y,isLeft:e.scrollLeft<=n.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:n}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(qt||(qt={}));const er={x:.2,y:.2};function nr(e,n,t,r,i){let{top:o,left:a,right:s,bottom:u}=t;void 0===r&&(r=10),void 0===i&&(i=er);const{isTop:c,isBottom:l,isLeft:d,isRight:p}=$t(e),h={x:0,y:0},f={x:0,y:0},m=n.height*i.y,g=n.width*i.x;return!c&&o<=n.top+m?(h.y=qt.Backward,f.y=r*Math.abs((n.top+m-o)/m)):!l&&u>=n.bottom-m&&(h.y=qt.Forward,f.y=r*Math.abs((n.bottom-m-u)/m)),!p&&s>=n.right-g?(h.x=qt.Forward,f.x=r*Math.abs((n.right-g-s)/g)):!d&&a<=n.left+g&&(h.x=qt.Backward,f.x=r*Math.abs((n.left+g-a)/g)),{direction:h,speed:f}}function tr(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:n}=window;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}const{top:n,left:t,right:r,bottom:i}=e.getBoundingClientRect();return{top:n,left:t,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function rr(e){return e.reduce((e,n)=>It(e,Qt(n)),_t)}const ir=[["x",["left","right"],function(e){return e.reduce((e,n)=>e+zt(n),0)}],["y",["top","bottom"],function(e){return e.reduce((e,n)=>e+Ut(n),0)}]];class or{constructor(e,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const t=Zt(n),r=rr(t);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,n,i]of ir)for(const o of n)Object.defineProperty(this,o,{get:()=>{const n=i(t);return this.rect[o]+(r[e]-n)},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ar{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var n;return null==(n=this.target)?void 0:n.removeEventListener(...e)})},this.target=e}add(e,n,t){var r;null==(r=this.target)||r.addEventListener(e,n,t),this.listeners.push([e,n,t])}}function sr(e,n){const t=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof n?Math.sqrt(t**2+r**2)>n:"x"in n&&"y"in n?t>n.x&&r>n.y:"x"in n?t>n.x:"y"in n&&r>n.y}var ur,cr;function lr(e){e.preventDefault()}function dr(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ur||(ur={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(cr||(cr={}));const pr={start:[cr.Space,cr.Enter],cancel:[cr.Esc],end:[cr.Space,cr.Enter,cr.Tab]},hr=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case cr.Right:return{...t,x:t.x+25};case cr.Left:return{...t,x:t.x-25};case cr.Down:return{...t,y:t.y+25};case cr.Up:return{...t,y:t.y-25}}};class fr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new ar(ct(n)),this.windowListeners=new ar(ot(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ur.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:n}=this.props,t=e.node.current;t&&function(e,n){if(void 0===n&&(n=Lt),!e)return;const{top:t,left:r,bottom:i,right:o}=n(e);jt(e)&&(i<=0||o<=0||t>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(t),n(_t)}handleKeyDown(e){if(Ct(e)){const{active:n,context:t,options:r}=this.props,{keyboardCodes:i=pr,coordinateGetter:o=hr,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:u}=t.current,c=u?{x:u.left,y:u.top}:_t;this.referenceCoordinates||(this.referenceCoordinates=c);const l=o(e,{active:n,context:t.current,currentCoordinates:c});if(l){const n=yt(l,c),r={x:0,y:0},{scrollableAncestors:i}=t.current;for(const t of i){const i=e.code,{isTop:o,isRight:s,isLeft:u,isBottom:c,maxScroll:d,minScroll:p}=$t(t),h=tr(t),f={x:Math.min(i===cr.Right?h.right-h.width/2:h.right,Math.max(i===cr.Right?h.left:h.left+h.width/2,l.x)),y:Math.min(i===cr.Down?h.bottom-h.height/2:h.bottom,Math.max(i===cr.Down?h.top:h.top+h.height/2,l.y))},m=i===cr.Down&&!c||i===cr.Up&&!o;if((i===cr.Right&&!s||i===cr.Left&&!u)&&f.x!==l.x){const e=t.scrollLeft+n.x,o=i===cr.Right&&e<=d.x||i===cr.Left&&e>=p.x;if(o&&!n.y)return void t.scrollTo({left:e,behavior:a});r.x=o?t.scrollLeft-e:i===cr.Right?t.scrollLeft-d.x:t.scrollLeft-p.x,r.x&&t.scrollBy({left:-r.x,behavior:a});break}if(m&&f.y!==l.y){const e=t.scrollTop+n.y,o=i===cr.Down&&e<=d.y||i===cr.Up&&e>=p.y;if(o&&!n.x)return void t.scrollTo({top:e,behavior:a});r.y=o?t.scrollTop-e:i===cr.Down?t.scrollTop-d.y:t.scrollTop-p.y,r.y&&t.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,It(yt(l,this.referenceCoordinates),r))}}}handleMove(e,n){const{onMove:t}=this.props;e.preventDefault(),t(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function mr(e){return Boolean(e&&"distance"in e)}function gr(e){return Boolean(e&&"delay"in e)}fr.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:r=pr,onActivation:i}=n,{active:o}=t;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const n=o.activatorNode.current;return!(n&&e.target!==n||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class br{constructor(e,n,t){var r;void 0===t&&(t=function(e){const{EventTarget:n}=ot(e);return e instanceof n?e:ct(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;const{event:i}=e,{target:o}=i;this.props=e,this.events=n,this.document=ct(o),this.documentListeners=new ar(this.document),this.listeners=new ar(t),this.windowListeners=new ar(ot(o)),this.initialCoordinates=null!=(r=xt(i))?r:_t,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ur.Resize,this.handleCancel),this.windowListeners.add(ur.DragStart,lr),this.windowListeners.add(ur.VisibilityChange,this.handleCancel),this.windowListeners.add(ur.ContextMenu,lr),this.documentListeners.add(ur.Keydown,this.handleKeydown),n){if(null!=t&&t({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gr(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(mr(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,n){const{active:t,onPending:r}=this.props;r(t,e,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(ur.Click,dr,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ur.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:t,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(n=xt(e))?n:_t,u=yt(r,s);if(!t&&a){if(mr(a)){if(null!=a.tolerance&&sr(u,a.tolerance))return this.handleCancel();if(sr(u,a.distance))return this.handleStart()}return gr(a)&&sr(u,a.tolerance)?this.handleCancel():void this.handlePending(a,u)}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){const{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===cr.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const vr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ir extends br{constructor(e){const{event:n}=e,t=ct(n.target);super(e,vr,t)}}Ir.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return!(!t.isPrimary||0!==t.button||(null==r||r({event:t}),0))}}];const yr={move:{name:"mousemove"},end:{name:"mouseup"}};var Cr;!function(e){e[e.RightClick=2]="RightClick"}(Cr||(Cr={})),class extends br{constructor(e){super(e,yr,ct(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;return t.button!==Cr.RightClick&&(null==r||r({event:t}),!0)}}];const xr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Ar,wr;(class extends br{constructor(e){super(e,xr)}static setup(){return window.addEventListener(xr.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(xr.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:r}=n;const{touches:i}=t;return!(i.length>1||(null==r||r({event:t}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ar||(Ar={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(wr||(wr={}));const Rr={x:{[qt.Backward]:!1,[qt.Forward]:!1},y:{[qt.Backward]:!1,[qt.Forward]:!1}};var Sr,Nr;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Sr||(Sr={})),function(e){e.Optimized="optimized"}(Nr||(Nr={}));const Er=/*#__PURE__*/new Map;function Tr(e,n){return ht(t=>e?t||("function"==typeof n?n(e):e):null,[n,e])}function Dr(n){let{callback:t,disabled:r}=n;const i=dt(t),o=e.useMemo(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)},[r]);return e.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Gr(e){return new or(Lt(e),e)}function Or(n,t,r){void 0===t&&(t=Gr);const[i,o]=e.useState(null);function a(){o(e=>{if(!n)return null;var i;if(!1===n.isConnected)return null!=(i=null!=e?e:r)?i:null;const o=t(n);return JSON.stringify(e)===JSON.stringify(o)?e:o})}const s=function(n){let{callback:t,disabled:r}=n;const i=dt(t),o=e.useMemo(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)},[i,r]);return e.useEffect(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(e){if(n)for(const t of e){const{type:e,target:r}=t;if("childList"===e&&r instanceof HTMLElement&&r.contains(n)){a();break}}}}),u=Dr({callback:a});return lt(()=>{a(),n?(null==u||u.observe(n),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==u||u.disconnect(),null==s||s.disconnect())},[n]),i}const Mr=[];function kr(n,t){void 0===t&&(t=[]);const r=e.useRef(null);return e.useEffect(()=>{r.current=null},t),e.useEffect(()=>{const e=n!==_t;e&&!r.current&&(r.current=n),!e&&r.current&&(r.current=null)},[n]),r.current?yt(n,r.current):_t}function _r(n){return e.useMemo(()=>n?function(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}(n):null,[n])}const Br=[],Vr=[{sensor:Ir,options:{}},{sensor:fr,options:{}}],Pr={current:{}},Yr={draggable:{measure:Ht},droppable:{measure:Ht,strategy:Sr.WhileDragging,frequency:Nr.Optimized},dragOverlay:{measure:Lt}};class Wr extends Map{get(e){var n;return null!=e&&null!=(n=super.get(e))?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:n}=e;return!n})}getNodeFor(e){var n,t;return null!=(n=null==(t=this.get(e))?void 0:t.node.current)?n:void 0}}const Fr={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:/*#__PURE__*/new Map,droppableRects:/*#__PURE__*/new Map,droppableContainers:/*#__PURE__*/new Wr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:kt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Yr,measureDroppableContainers:kt,windowRect:null,measuringScheduled:!1},Xr=/*#__PURE__*/e.createContext({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:kt,draggableNodes:/*#__PURE__*/new Map,over:null,measureDroppableContainers:kt}),Lr=/*#__PURE__*/e.createContext(Fr);function Hr(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Wr}}}function Zr(e,n){switch(n.type){case Mt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case Mt.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case Mt.DragEnd:case Mt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Mt.RegisterDroppable:{const{element:t}=n,{id:r}=t,i=new Wr(e.droppable.containers);return i.set(r,t),{...e,droppable:{...e.droppable,containers:i}}}case Mt.SetDroppableDisabled:{const{id:t,key:r,disabled:i}=n,o=e.droppable.containers.get(t);if(!o||r!==o.key)return e;const a=new Wr(e.droppable.containers);return a.set(t,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Mt.UnregisterDroppable:{const{id:t,key:r}=n,i=e.droppable.containers.get(t);if(!i||r!==i.key)return e;const o=new Wr(e.droppable.containers);return o.delete(t),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function jr(n){let{disabled:t}=n;const{active:r,activatorEvent:i,draggableNodes:o}=e.useContext(Xr),a=mt(i),s=mt(null==r?void 0:r.id);return e.useEffect(()=>{if(!t&&!i&&a&&null!=s){if(!Ct(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:n,node:t}=e;if(!n.current&&!t.current)return;requestAnimationFrame(()=>{for(const e of[n.current,t.current]){if(!e)continue;const n=Rt(e);if(n){n.focus();break}}})}},[i,t,o,s,a]),null}const Jr=/*#__PURE__*/e.createContext({..._t,scaleX:1,scaleY:1});var zr;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(zr||(zr={}));const Ur=/*#__PURE__*/e.memo(function(n){var t,i,o,a;let{id:s,accessibility:u,autoScroll:c=!0,children:l,sensors:d=Vr,collisionDetection:p=Pt,measuring:f,modifiers:m,...g}=n;const b=e.useReducer(Zr,void 0,Hr),[v,I]=b,[y,C]=function(){const[n]=e.useState(()=>new Set),t=e.useCallback(e=>(n.add(e),()=>n.delete(e)),[n]),r=e.useCallback(e=>{let{type:t,event:r}=e;n.forEach(e=>{var n;return null==(n=e[t])?void 0:n.call(e,r)})},[n]);return[r,t]}(),[x,A]=e.useState(zr.Uninitialized),w=x===zr.Initialized,{draggable:{active:R,nodes:S,translate:N},droppable:{containers:E}}=v,T=null!=R?S.get(R):null,D=e.useRef({initial:null,translated:null}),G=e.useMemo(()=>{var e;return null!=R?{id:R,data:null!=(e=null==T?void 0:T.data)?e:Pr,rect:D}:null},[R,T]),O=e.useRef(null),[M,k]=e.useState(null),[_,B]=e.useState(null),V=pt(g,Object.values(g)),P=bt("DndDescribedBy",s),Y=e.useMemo(()=>E.getEnabled(),[E]),W=function(n){return e.useMemo(()=>({draggable:{...Yr.draggable,...null==n?void 0:n.draggable},droppable:{...Yr.droppable,...null==n?void 0:n.droppable},dragOverlay:{...Yr.dragOverlay,...null==n?void 0:n.dragOverlay}}),[null==n?void 0:n.draggable,null==n?void 0:n.droppable,null==n?void 0:n.dragOverlay])}(f),{droppableRects:F,measureDroppableContainers:X,measuringScheduled:L}=function(n,t){let{dragging:r,dependencies:i,config:o}=t;const[a,s]=e.useState(null),{frequency:u,measure:c,strategy:l}=o,d=e.useRef(n),p=function(){switch(l){case Sr.Always:return!1;case Sr.BeforeDragging:return r;default:return!r}}(),h=pt(p),f=e.useCallback(function(e){void 0===e&&(e=[]),h.current||s(n=>null===n?e:n.concat(e.filter(e=>!n.includes(e))))},[h]),m=e.useRef(null),g=ht(e=>{if(p&&!r)return Er;if(!e||e===Er||d.current!==n||null!=a){const e=new Map;for(let t of n){if(!t)continue;if(a&&a.length>0&&!a.includes(t.id)&&t.rect.current){e.set(t.id,t.rect.current);continue}const n=t.node.current,r=n?new or(c(n),n):null;t.rect.current=r,r&&e.set(t.id,r)}return e}return e},[n,a,r,p,c]);return e.useEffect(()=>{d.current=n},[n]),e.useEffect(()=>{p||f()},[r,p]),e.useEffect(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),e.useEffect(()=>{p||"number"!=typeof u||null!==m.current||(m.current=setTimeout(()=>{f(),m.current=null},u))},[u,p,f,...i]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:null!=a}}(Y,{dragging:w,dependencies:[N.x,N.y],config:W.droppable}),H=function(e,n){const t=null!=n?e.get(n):void 0,r=t?t.node.current:null;return ht(e=>{var t;return null==n?null:null!=(t=null!=r?r:e)?t:null},[r,n])}(S,R),Z=e.useMemo(()=>_?xt(_):null,[_]),j=function(){const e=w&&!(!1===(null==M?void 0:M.autoScrollEnabled))&&!("object"==typeof c?!1===c.enabled:!1===c);return"object"==typeof c?{...c,enabled:e}:{enabled:e}}(),J=function(e,n){return Tr(e,n)}(H,W.draggable.measure);!function(n){let{activeNode:t,measure:r,initialRect:i,config:o=!0}=n;const a=e.useRef(!1),{x:s,y:u}="boolean"==typeof o?{x:o,y:o}:o;lt(()=>{if(!s&&!u||!t)return void(a.current=!1);if(a.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=Yt(r(e),i);if(s||(n.x=0),u||(n.y=0),a.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=jt(e);t&&t.scrollBy({top:n.y,left:n.x})}},[t,s,u,i,r])}({activeNode:null!=R?S.get(R):null,config:j.layoutShiftCompensation,initialRect:J,measure:W.draggable.measure});const z=Or(H,W.draggable.measure,J),U=Or(H?H.parentElement:null),Q=e.useRef({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:S,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),q=E.getNodeFor(null==(t=Q.current.over)?void 0:t.id),K=function(n){let{measure:t}=n;const[r,i]=e.useState(null),o=e.useCallback(e=>{for(const{target:n}of e)if(st(n)){i(e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t]),a=Dr({callback:o}),s=e.useCallback(e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return st(n)?n:e}(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),i(n?t(n):null)},[t,a]),[u,c]=ft(s);return e.useMemo(()=>({nodeRef:u,rect:r,setRef:c}),[r,u,c])}({measure:W.dragOverlay.measure}),$=null!=(i=K.nodeRef.current)?i:H,ee=w?null!=(o=K.rect)?o:z:null,ne=Boolean(K.nodeRef.current&&K.rect),te=Yt(re=ne?null:z,Tr(re));var re;const ie=_r($?ot($):null),oe=function(n){const t=e.useRef(n),r=ht(e=>n?e&&e!==Mr&&n&&t.current&&n.parentNode===t.current.parentNode?e:Zt(n):Mr,[n]);return e.useEffect(()=>{t.current=n},[n]),r}(w?null!=q?q:H:null),ae=function(n,t){void 0===t&&(t=Lt);const[r]=n,i=_r(r?ot(r):null),[o,a]=e.useState(Br);function s(){a(()=>n.length?n.map(e=>Kt(e)?i:new or(t(e),e)):Br)}const u=Dr({callback:s});return lt(()=>{null==u||u.disconnect(),s(),n.forEach(e=>null==u?void 0:u.observe(e))},[n]),o}(oe),se=function(e,n){let{transform:t,...r}=n;return null!=e&&e.length?e.reduce((e,n)=>n({transform:e,...r}),t):t}(m,{transform:{x:N.x-te.x,y:N.y-te.y,scaleX:1,scaleY:1},activatorEvent:_,active:G,activeNodeRect:z,containerNodeRect:U,draggingNodeRect:ee,over:Q.current.over,overlayNodeRect:K.rect,scrollableAncestors:oe,scrollableAncestorRects:ae,windowRect:ie}),ue=Z?It(Z,N):null,ce=function(n){const[t,r]=e.useState(null),i=e.useRef(n),o=e.useCallback(e=>{const n=Jt(e.target);n&&r(e=>e?(e.set(n,Qt(n)),new Map(e)):null)},[]);return e.useEffect(()=>{const e=i.current;if(n!==e){t(e);const a=n.map(e=>{const n=Jt(e);return n?(n.addEventListener("scroll",o,{passive:!0}),[n,Qt(n)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),i.current=n}return()=>{t(n),t(e)};function t(e){e.forEach(e=>{const n=Jt(e);null==n||n.removeEventListener("scroll",o)})}},[o,n]),e.useMemo(()=>n.length?t?Array.from(t.values()).reduce((e,n)=>It(e,n),_t):rr(n):_t,[n,t])}(oe),le=kr(ce),de=kr(ce,[z]),pe=It(se,le),he=ee?Ft(ee,se):null,fe=G&&he?p({active:G,collisionRect:he,droppableRects:F,droppableContainers:Y,pointerCoordinates:ue}):null,me=function(e){if(!e||0===e.length)return null;const[n]=e;return n.id}(fe),[ge,be]=e.useState(null),ve=function(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}(ne?se:It(se,de),null!=(a=null==ge?void 0:ge.rect)?a:null,z),Ie=e.useRef(null),ye=e.useCallback((e,n)=>{let{sensor:t,options:i}=n;if(null==O.current)return;const o=S.get(O.current);if(!o)return;const a=e.nativeEvent,s=new t({active:O.current,activeNode:o,event:a,options:i,context:Q,onAbort(e){if(!S.get(e))return;const{onDragAbort:n}=V.current,t={id:e};null==n||n(t),y({type:"onDragAbort",event:t})},onPending(e,n,t,r){if(!S.get(e))return;const{onDragPending:i}=V.current,o={id:e,constraint:n,initialCoordinates:t,offset:r};null==i||i(o),y({type:"onDragPending",event:o})},onStart(e){const n=O.current;if(null==n)return;const t=S.get(n);if(!t)return;const{onDragStart:i}=V.current,o={activatorEvent:a,active:{id:n,data:t.data,rect:D}};r.unstable_batchedUpdates(()=>{null==i||i(o),A(zr.Initializing),I({type:Mt.DragStart,initialCoordinates:e,active:n}),y({type:"onDragStart",event:o}),k(Ie.current),B(a)})},onMove(e){I({type:Mt.DragMove,coordinates:e})},onEnd:u(Mt.DragEnd),onCancel:u(Mt.DragCancel)});function u(e){return async function(){const{active:n,collisions:t,over:i,scrollAdjustedTranslate:o}=Q.current;let s=null;if(n&&o){const{cancelDrop:r}=V.current;s={activatorEvent:a,active:n,collisions:t,delta:o,over:i},e===Mt.DragEnd&&"function"==typeof r&&await Promise.resolve(r(s))&&(e=Mt.DragCancel)}O.current=null,r.unstable_batchedUpdates(()=>{I({type:e}),A(zr.Uninitialized),be(null),k(null),B(null),Ie.current=null;const n=e===Mt.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=V.current[n];null==e||e(s),y({type:n,event:s})}})}}Ie.current=s},[S]),Ce=e.useCallback((e,n)=>(t,r)=>{const i=t.nativeEvent,o=S.get(r);null!==O.current||!o||i.dndKit||i.defaultPrevented||!0===e(t,n.options,{active:o})&&(i.dndKit={capturedBy:n.sensor},O.current=r,ye(t,n))},[S,ye]),xe=function(n,t){return e.useMemo(()=>n.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[n,t])}(d,Ce);!function(n){e.useEffect(()=>{if(!tt)return;const e=n.map(e=>{let{sensor:n}=e;return null==n.setup?void 0:n.setup()});return()=>{for(const n of e)null==n||n()}},n.map(e=>{let{sensor:n}=e;return n}))}(d),lt(()=>{z&&x===zr.Initializing&&A(zr.Initialized)},[z,x]),e.useEffect(()=>{const{onDragMove:e}=V.current,{active:n,activatorEvent:t,collisions:i,over:o}=Q.current;if(!n||!t)return;const a={active:n,activatorEvent:t,collisions:i,delta:{x:pe.x,y:pe.y},over:o};r.unstable_batchedUpdates(()=>{null==e||e(a),y({type:"onDragMove",event:a})})},[pe.x,pe.y]),e.useEffect(()=>{const{active:e,activatorEvent:n,collisions:t,droppableContainers:i,scrollAdjustedTranslate:o}=Q.current;if(!e||null==O.current||!n||!o)return;const{onDragOver:a}=V.current,s=i.get(me),u=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:n,collisions:t,delta:{x:o.x,y:o.y},over:u};r.unstable_batchedUpdates(()=>{be(u),null==a||a(c),y({type:"onDragOver",event:c})})},[me]),lt(()=>{Q.current={activatorEvent:_,active:G,activeNode:H,collisionRect:he,collisions:fe,droppableRects:F,draggableNodes:S,draggingNode:$,draggingNodeRect:ee,droppableContainers:E,over:ge,scrollableAncestors:oe,scrollAdjustedTranslate:pe},D.current={initial:ee,translated:he}},[G,H,fe,he,S,$,ee,F,E,ge,oe,pe]),function(n){let{acceleration:t,activator:r=Ar.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:u=wr.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:d,delta:p,threshold:h}=n;const f=function(e){let{delta:n,disabled:t}=e;const r=mt(n);return ht(e=>{if(t||!r||!e)return Rr;const i=Math.sign(n.x-r.x),o=Math.sign(n.y-r.y);return{x:{[qt.Backward]:e.x[qt.Backward]||-1===i,[qt.Forward]:e.x[qt.Forward]||1===i},y:{[qt.Backward]:e.y[qt.Backward]||-1===o,[qt.Forward]:e.y[qt.Forward]||1===o}}},[t,n,r])}({delta:p,disabled:!a}),[m,g]=function(){const n=e.useRef(null);return[e.useCallback((e,t)=>{n.current=setInterval(e,t)},[]),e.useCallback(()=>{null!==n.current&&(clearInterval(n.current),n.current=null)},[])]}(),b=e.useRef({x:0,y:0}),v=e.useRef({x:0,y:0}),I=e.useMemo(()=>{switch(r){case Ar.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ar.DraggableRect:return o}},[r,o,c]),y=e.useRef(null),C=e.useCallback(()=>{const e=y.current;e&&e.scrollBy(b.current.x*v.current.x,b.current.y*v.current.y)},[]),x=e.useMemo(()=>u===wr.TreeOrder?[...l].reverse():l,[u,l]);e.useEffect(()=>{if(a&&l.length&&I){for(const e of x){if(!1===(null==i?void 0:i(e)))continue;const n=l.indexOf(e),r=d[n];if(!r)continue;const{direction:o,speed:a}=nr(e,r,I,t,h);for(const e of["x","y"])f[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return g(),y.current=e,m(C,s),b.current=a,void(v.current=o)}b.current={x:0,y:0},v.current={x:0,y:0},g()}else g()},[t,C,i,g,a,s,JSON.stringify(I),JSON.stringify(f),m,l,x,d,JSON.stringify(h)])}({...j,delta:N,draggingRect:he,pointerCoordinates:ue,scrollableAncestors:oe,scrollableAncestorRects:ae});const Ae=e.useMemo(()=>({active:G,activeNode:H,activeNodeRect:z,activatorEvent:_,collisions:fe,containerNodeRect:U,dragOverlay:K,draggableNodes:S,droppableContainers:E,droppableRects:F,over:ge,measureDroppableContainers:X,scrollableAncestors:oe,scrollableAncestorRects:ae,measuringConfiguration:W,measuringScheduled:L,windowRect:ie}),[G,H,z,_,fe,U,K,S,E,F,ge,X,oe,ae,W,L,ie]),we=e.useMemo(()=>({activatorEvent:_,activators:xe,active:G,activeNodeRect:z,ariaDescribedById:{draggable:P},dispatch:I,draggableNodes:S,over:ge,measureDroppableContainers:X}),[_,xe,G,z,I,P,S,ge,X]);return h.default.createElement(Tt.Provider,{value:C},h.default.createElement(Xr.Provider,{value:we},h.default.createElement(Lr.Provider,{value:Ae},h.default.createElement(Jr.Provider,{value:ve},l)),h.default.createElement(jr,{disabled:!1===(null==u?void 0:u.restoreFocus)})),h.default.createElement(Ot,{...u,hiddenTextDescribedById:P}))}),Qr=/*#__PURE__*/e.createContext(null),qr="button",Kr={timeout:25};function $r(e,n,t){const r=e.slice();return r.splice(t<0?r.length+t:t,0,r.splice(n,1)[0]),r}function ei(e,n){return e.reduce((e,t,r)=>{const i=n.get(t);return i&&(e[r]=i),e},Array(e.length))}function ni(e){return null!==e&&e>=0}const ti=e=>{let{rects:n,activeIndex:t,overIndex:r,index:i}=e;const o=$r(n,r,t),a=n[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},ri="Sortable",ii=/*#__PURE__*/h.default.createContext({activeIndex:-1,containerId:ri,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ti,disabled:{draggable:!1,droppable:!1}});function oi(n){let{children:t,id:r,items:i,strategy:o=ti,disabled:a=!1}=n;const{active:s,dragOverlay:u,droppableRects:c,over:l,measureDroppableContainers:d}=e.useContext(Lr),p=bt(ri,r),f=Boolean(null!==u.rect),m=e.useMemo(()=>i.map(e=>"object"==typeof e&&"id"in e?e.id:e),[i]),g=null!=s,b=s?m.indexOf(s.id):-1,v=l?m.indexOf(l.id):-1,I=e.useRef(m),y=!function(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}(m,I.current),C=-1!==v&&-1===b||y,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);lt(()=>{y&&g&&d(m)},[y,m,g,d]),e.useEffect(()=>{I.current=m},[m]);const A=e.useMemo(()=>({activeIndex:b,containerId:p,disabled:x,disableTransforms:C,items:m,overIndex:v,useDragOverlay:f,sortedRects:ei(m,c),strategy:o}),[b,p,x.draggable,x.droppable,C,m,v,c,f,o]);return h.default.createElement(ii.Provider,{value:A},t)}const ai=e=>{let{id:n,items:t,activeIndex:r,overIndex:i}=e;return $r(t,r,i).indexOf(n)},si=e=>{let{containerId:n,isSorting:t,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:u,transition:c}=e;return!(!c||!r||s!==o&&i===a||!t&&(a===i||n!==u))},ui={duration:200,easing:"ease"},ci="transform",li=/*#__PURE__*/At.Transition.toString({property:ci,duration:0,easing:"linear"}),di={roleDescription:"sortable"};var pi=function(n){var t=function(n){let{animateLayoutChanges:t=si,attributes:r,disabled:i,data:o,getNewIndex:a=ai,id:s,strategy:u,resizeObserverConfig:c,transition:l=ui}=n;const{items:d,containerId:p,activeIndex:h,disabled:f,disableTransforms:m,sortedRects:g,overIndex:b,useDragOverlay:v,strategy:I}=e.useContext(ii),y=function(e,n){var t,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(t=null==e?void 0:e.draggable)?t:n.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:n.droppable}}(i,f),C=d.indexOf(s),x=e.useMemo(()=>({sortable:{containerId:p,index:C,items:d},...o}),[p,o,C,d]),A=e.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:w,node:R,isOver:S,setNodeRef:N}=function(n){let{data:t,disabled:r=!1,id:i,resizeObserverConfig:o}=n;const a=bt("Droppable"),{active:s,dispatch:u,over:c,measureDroppableContainers:l}=e.useContext(Xr),d=e.useRef({disabled:r}),p=e.useRef(!1),h=e.useRef(null),f=e.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:b}={...Kr,...o},v=pt(null!=g?g:i),I=Dr({callback:e.useCallback(()=>{p.current?(null!=f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{l(Array.isArray(v.current)?v.current:[v.current]),f.current=null},b)):p.current=!0},[b]),disabled:m||!s}),y=e.useCallback((e,n)=>{I&&(n&&(I.unobserve(n),p.current=!1),e&&I.observe(e))},[I]),[C,x]=ft(y),A=pt(t);return e.useEffect(()=>{I&&C.current&&(I.disconnect(),p.current=!1,I.observe(C.current))},[C,I]),e.useEffect(()=>(u({type:Mt.RegisterDroppable,element:{id:i,key:a,disabled:r,node:C,rect:h,data:A}}),()=>u({type:Mt.UnregisterDroppable,key:a,id:i})),[i]),e.useEffect(()=>{r!==d.current.disabled&&(u({type:Mt.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)},[i,a,r,u]),{active:s,rect:h,isOver:(null==c?void 0:c.id)===i,node:C,over:c,setNodeRef:x}}({id:s,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:A,...c}}),{active:E,activatorEvent:T,activeNodeRect:D,attributes:G,setNodeRef:O,listeners:M,isDragging:k,over:_,setActivatorNodeRef:B,transform:V}=function(n){let{id:t,data:r,disabled:i=!1,attributes:o}=n;const a=bt("Draggable"),{activators:s,activatorEvent:u,active:c,activeNodeRect:l,ariaDescribedById:d,draggableNodes:p,over:h}=e.useContext(Xr),{role:f=qr,roleDescription:m="draggable",tabIndex:g=0}=null!=o?o:{},b=(null==c?void 0:c.id)===t,v=e.useContext(b?Jr:Qr),[I,y]=ft(),[C,x]=ft(),A=function(n,t){return e.useMemo(()=>n.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[n,t])}(s,t),w=pt(r);return lt(()=>(p.set(t,{id:t,key:a,node:I,activatorNode:C,data:w}),()=>{const e=p.get(t);e&&e.key===a&&p.delete(t)}),[p,t]),{active:c,activatorEvent:u,activeNodeRect:l,attributes:e.useMemo(()=>({role:f,tabIndex:g,"aria-disabled":i,"aria-pressed":!(!b||f!==qr)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable}),[i,f,g,b,m,d.draggable]),isDragging:b,listeners:i?void 0:A,node:I,over:h,setNodeRef:y,setActivatorNodeRef:x,transform:v}}({id:s,data:x,attributes:{...di,...r},disabled:y.draggable}),P=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.useMemo(()=>e=>{t.forEach(n=>n(e))},t)}(N,O),Y=Boolean(E),W=Y&&!m&&ni(h)&&ni(b),F=!v&&k,X=F&&W?V:null,L=W?null!=X?X:(null!=u?u:I)({rects:g,activeNodeRect:D,activeIndex:h,overIndex:b,index:C}):null,H=ni(h)&&ni(b)?a({id:s,items:d,activeIndex:h,overIndex:b}):C,Z=null==E?void 0:E.id,j=e.useRef({activeId:Z,items:d,newIndex:H,containerId:p}),J=d!==j.current.items,z=t({active:E,containerId:p,isDragging:k,isSorting:Y,id:s,index:C,items:d,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:l,wasDragging:null!=j.current.activeId}),U=function(n){let{disabled:t,index:r,node:i,rect:o}=n;const[a,s]=e.useState(null),u=e.useRef(r);return lt(()=>{if(!t&&r!==u.current&&i.current){const e=o.current;if(e){const n=Lt(i.current,{ignoreTransform:!0}),t={x:e.left-n.left,y:e.top-n.top,scaleX:e.width/n.width,scaleY:e.height/n.height};(t.x||t.y)&&s(t)}}r!==u.current&&(u.current=r)},[t,r,i,o]),e.useEffect(()=>{a&&s(null)},[a]),a}({disabled:!z,index:C,node:R,rect:w});return e.useEffect(()=>{Y&&j.current.newIndex!==H&&(j.current.newIndex=H),p!==j.current.containerId&&(j.current.containerId=p),d!==j.current.items&&(j.current.items=d)},[Y,H,p,d]),e.useEffect(()=>{if(Z===j.current.activeId)return;if(null!=Z&&null==j.current.activeId)return void(j.current.activeId=Z);const e=setTimeout(()=>{j.current.activeId=Z},50);return()=>clearTimeout(e)},[Z]),{active:E,activeIndex:h,attributes:G,data:x,rect:w,index:C,newIndex:H,items:d,isOver:S,isSorting:Y,isDragging:k,listeners:M,node:R,overIndex:b,over:_,setNodeRef:P,setActivatorNodeRef:B,setDroppableNodeRef:N,setDraggableNodeRef:O,transform:null!=U?U:L,transition:U||J&&j.current.newIndex===C?li:F&&!Ct(T)||!l?void 0:Y||z?At.Transition.toString({...l,property:ci}):void 0}}({id:n.data.value}),r=t.attributes,i=t.listeners,o=t.setNodeRef,a=t.transition,s={display:"flex",transform:At.Transform.toString(t.transform),transition:a};return h.default.createElement("div",b({ref:o,style:s},r,i,{onPointerDown:function(e){e.target instanceof HTMLElement&&(["svg","path"].includes(e.target.nodeName)&&(e.preventDefault(),e.stopPropagation()),null==i||i.onPointerDown(e))}}),h.default.createElement(nn.MultiValueContainer,b({},n)))},hi=function(e){var n=b({},e.innerProps,{style:{cursor:"grab"},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}});return h.default.createElement(nn.MultiValueLabel,b({},e,{innerProps:n}))},fi={en:{translation:{"Are you sure you want to delete this widget?":"Are you sure you want to delete this widget?",Cancel:"Cancel",Delete:"Delete"}},pl:{translation:{"Are you sure you want to delete this widget?":"Czy na pewno chcesz usunąć ten widżet?",Cancel:"Anuluj",Delete:"Usuń"}}},mi={root:{boxShadow:"none","& .react-resizable-handle":{width:"24px",height:"24px",borderRadius:"4px",background:function(e){return e.palette.primary.main+" url("+m.default+")"},backgroundRepeat:"no-repeat",backgroundSize:"50%",backgroundPosition:"50%","&:hover":{backgroundColor:function(e){return e.palette.primary.dark}}},"& .react-resizable-handle:after":{display:"none"}},header:{height:"40px"},dragIcon:{width:"30px",height:"30px",marginLeft:function(e){return"-"+e.spacing(1)},padding:"8px",borderRadius:"4px",background:function(e){return e.palette.primary.main},"&:hover":{cursor:"move",background:function(e){return e.palette.primary.dark}}},actionButtons:{height:"30px",marginTop:"-7px"},settingsButton:{color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopRightRadius:0,borderBottomRightRadius:0},infoButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:0},deleteButton:{marginLeft:"1px",color:"rgba(255, 255, 255, 0.45)",borderRadius:"4px",borderTopLeftRadius:0,borderBottomLeftRadius:0},content:{height:"calc(100% - 40px)",padding:0,background:"transparent",border:"1px solid rgba(255, 255, 255, 0.2)",borderTop:"none",borderRadius:"4px",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.25)","&:last-child":{paddingBottom:0}}},gi=["children","title","Widget","id","url","wsUrl","lang","data","settings","openSettingsModal","onSettingsModalOpened","onSettingsModalClosed","onDelete","editMode","version"],bi=h.default.forwardRef(function(t,r){var s=t.children,u=t.title,c=t.Widget,l=t.id,d=t.url,p=t.wsUrl,f=t.lang,m=t.data,g=t.settings,I=t.openSettingsModal,y=t.onSettingsModalOpened,C=t.onSettingsModalClosed,A=t.onDelete,w=t.editMode,R=t.version,S=v(t,gi),N=e.useState(!1),E=N[0],T=N[1],D=e.useState(!1),G=D[0],O=D[1],M=i.useTranslation(),k=M.i18n,_=M.t;return e.useEffect(function(){for(var e="translation",n=0,t=Object.entries(fi);n<t.length;n++){var r=t[n];k.addResources(r[0],e,r[1][e])}},[k]),h.default.createElement(n.Card,b({ref:r,sx:mi.root},S),h.default.createElement(n.CardHeader,{avatar:w&&h.default.createElement(n.SvgIcon,{component:a.ReactComponent,className:"draggable-handle",sx:mi.dragIcon,inheritViewBox:!0}),title:u,titleTypographyProps:{variant:"subtitle1"},action:w&&h.default.createElement(n.Stack,{direction:"row",sx:mi.actionButtons},h.default.createElement(n.Button,{color:"secondary",sx:mi.settingsButton,onClick:function(){y&&y()}},h.default.createElement(o.Settings,null)),R&&h.default.createElement(h.default.Fragment,null,h.default.createElement(n.Tooltip,{title:R},h.default.createElement(n.Button,{color:"secondary",sx:mi.infoButton},h.default.createElement(o.Info,null)))),h.default.createElement(x,{open:G,confirmMessage:_("Are you sure you want to delete this widget?"),confirmButtonText:_("Delete"),cancelButtonText:_("Cancel"),onCancel:function(){return O(!1)},onConfirm:function(){try{var e=function(){T(!1)};T(!0),O(!1);var n=function(){if(A)return Promise.resolve(A()).then(function(){})}();return Promise.resolve(n&&n.then?n.then(e):e())}catch(e){return Promise.reject(e)}}},h.default.createElement(n.Button,{color:"secondary",sx:mi.deleteButton,onClick:function(e){e.stopPropagation(),O(!0)},disabled:E},h.default.createElement(o.Delete,null)))),sx:mi.header}),h.default.createElement(n.CardContent,{sx:mi.content},h.default.createElement(c,{id:l,url:d,wsUrl:p,lang:f,data:m,settings:g,openSettingsModal:I,onSettingsModalOpened:y,onSettingsModalClosed:C,editMode:w})),w&&s)}),vi=function(){return vi=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},vi.apply(this,arguments)};function Ii(e){return Ii="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},Ii(e)}"function"==typeof SuppressedError&&SuppressedError;var yi="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Ci(e,n){for(var t,r=/\r\n|[\n\r]/g,i=1,o=n+1;(t=r.exec(e.body))&&t.index<n;)i+=1,o=n+1-(t.index+t[0].length);return{line:i,column:o}}function xi(e,n){var t=e.locationOffset.column-1,r=wi(t)+e.body,i=n.line-1,o=n.line+(e.locationOffset.line-1),a=n.column+(1===n.line?t:0),s="".concat(e.name,":").concat(o,":").concat(a,"\n"),u=r.split(/\r\n|[\n\r]/g),c=u[i];if(c.length>120){for(var l=Math.floor(a/80),d=a%80,p=[],h=0;h<c.length;h+=80)p.push(c.slice(h,h+80));return s+Ai([["".concat(o),p[0]]].concat(p.slice(1,l+1).map(function(e){return["",e]}),[[" ",wi(d-1)+"^"],["",p[l+1]]]))}return s+Ai([["".concat(o-1),u[i-1]],["".concat(o),c],["",wi(a-1)+"^"],["".concat(o+1),u[i+1]]])}function Ai(e){var n=e.filter(function(e){return void 0!==e[1]}),t=Math.max.apply(Math,n.map(function(e){return e[0].length}));return n.map(function(e){var n,r=e[1];return wi(t-(n=e[0]).length)+n+(r?" | "+r:" |")}).join("\n")}function wi(e){return Array(e+1).join(" ")}function Ri(e){return Ri="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},Ri(e)}function Si(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function Ni(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ei(e,n){return!n||"object"!==Ri(n)&&"function"!=typeof n?Ti(e):n}function Ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Di(e){var n="function"==typeof Map?new Map:void 0;return Di=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Gi(e,arguments,ki(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Mi(t,e)},Di(e)}function Gi(e,n,t){return Gi=Oi()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&Mi(i,t.prototype),i},Gi.apply(null,arguments)}function Oi(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Mi(e,n){return Mi=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},Mi(e,n)}function ki(e){return ki=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ki(e)}var _i=/*#__PURE__*/function(){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Mi(e,n)}(i,/*#__PURE__*/Di(Error));var e,n,t,r=(e=i,n=Oi(),function(){var t,r=ki(e);if(n){var i=ki(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Ei(this,t)});function i(e,n,t,o,a,s,u){var c,l,d,p;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),(p=r.call(this,e)).name="GraphQLError",p.originalError=null!=s?s:void 0,p.nodes=Bi(Array.isArray(n)?n:n?[n]:void 0);for(var h=[],f=0,m=null!==(g=p.nodes)&&void 0!==g?g:[];f<m.length;f++){var g,b=m[f].loc;null!=b&&h.push(b)}h=Bi(h),p.source=null!=t?t:null===(c=h)||void 0===c?void 0:c[0].source,p.positions=null!=o?o:null===(l=h)||void 0===l?void 0:l.map(function(e){return e.start}),p.locations=o&&t?o.map(function(e){return Ci(t,e)}):null===(d=h)||void 0===d?void 0:d.map(function(e){return Ci(e.source,e.start)}),p.path=null!=a?a:void 0;var v,I=null==s?void 0:s.extensions;return p.extensions=null==u&&"object"==Ii(v=I)&&null!==v?function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Si(Object(t),!0).forEach(function(n){Ni(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Si(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},I):null!=u?u:{},Object.defineProperties(Ti(p),{message:{enumerable:!0},locations:{enumerable:null!=p.locations},path:{enumerable:null!=p.path},extensions:{enumerable:null!=p.extensions&&Object.keys(p.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(Ti(p),"stack",{value:s.stack,writable:!0,configurable:!0}),Ei(p)):(Error.captureStackTrace?Error.captureStackTrace(Ti(p),i):Object.defineProperty(Ti(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return(t=[{key:"toString",value:function(){return function(e){var n,t=e.message;if(e.nodes)for(var r=0,i=e.nodes;r<i.length;r++){var o=i[r];o.loc&&(t+="\n\n"+xi((n=o.loc).source,Ci(n.source,n.start)))}else if(e.source&&e.locations)for(var a=0,s=e.locations;a<s.length;a++)t+="\n\n"+xi(e.source,s[a]);return t}(this)}},{key:yi,get:function(){return"Object"}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,t),i}();function Bi(e){return void 0===e||0===e.length?void 0:e}function Vi(e,n,t){return new _i("Syntax Error: ".concat(t),void 0,e,[n])}var Pi=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),Yi="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function Wi(e){var n=e.prototype.toJSON;"function"==typeof n||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),e.prototype.inspect=n,Yi&&(e.prototype[Yi]=n)}var Fi=/*#__PURE__*/function(){function e(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Wi(Fi);var Xi=/*#__PURE__*/function(){function e(e,n,t,r,i,o,a){this.kind=e,this.start=n,this.end=t,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Wi(Xi);var Li=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Hi(e){return Hi="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},Hi(e)}function Zi(e){return ji(e,[])}function ji(e,n){switch(Hi(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),r=function(e){var n=e[String(Yi)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:ji(i,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),r=e.length-t,i=[],o=0;o<t;++o)i.push(ji(e[o],n));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);return 0===t.length?"{}":n.length>2?"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]":"{ "+t.map(function(t){return t+": "+ji(e[t],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}function Ji(e,n){if(!Boolean(e))throw new Error(n)}function zi(e){return zi="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},zi(e)}var Ui="production"===process.env.NODE_ENV?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if("object"===zi(e)&&null!==e){var t,r=n.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(t=e.constructor)||void 0===t?void 0:t.name)){var i=Zi(e);throw new Error("Cannot use ".concat(r,' "').concat(i,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},Qi=/*#__PURE__*/function(){function e(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Ji(0,"Body must be a string. Received: ".concat(Zi(e),".")),this.body=e,this.name=n,this.locationOffset=t,this.locationOffset.line>0||Ji(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ji(0,"column in locationOffset is 1-indexed and must be positive.")}var n;return(n=[{key:yi,get:function(){return"Source"}}])&&function(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,n),e}(),qi=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Ki(e){var n=e.split(/\r\n|[\n\r]/g),t=function(e){for(var n,t=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:t=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!t&&(null===o||i<o)&&(o=i),r=!1}return null!==(n=o)&&void 0!==n?n:0}(e);if(0!==t)for(var r=1;r<n.length;r++)n[r]=n[r].slice(t);for(var i=0;i<n.length&&$i(n[i]);)++i;for(var o=n.length;o>i&&$i(n[o-1]);)--o;return n.slice(i,o).join("\n")}function $i(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}var eo=/*#__PURE__*/function(){function e(e){var n=new Xi(Li.SOF,0,0,0,0,null);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var n=e.prototype;return n.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},n.lookahead=function(){var e=this.token;if(e.kind!==Li.EOF)do{var n;e=null!==(n=e.next)&&void 0!==n?n:e.next=to(this,e)}while(e.kind===Li.COMMENT);return e},e}();function no(e){return isNaN(e)?Li.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function to(e,n){for(var t=e.source,r=t.body,i=r.length,o=n.end;o<i;){var a=r.charCodeAt(o),s=e.line,u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new Xi(Li.BANG,o,o+1,s,u,n);case 35:return io(t,o,s,u,n);case 36:return new Xi(Li.DOLLAR,o,o+1,s,u,n);case 38:return new Xi(Li.AMP,o,o+1,s,u,n);case 40:return new Xi(Li.PAREN_L,o,o+1,s,u,n);case 41:return new Xi(Li.PAREN_R,o,o+1,s,u,n);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Xi(Li.SPREAD,o,o+3,s,u,n);break;case 58:return new Xi(Li.COLON,o,o+1,s,u,n);case 61:return new Xi(Li.EQUALS,o,o+1,s,u,n);case 64:return new Xi(Li.AT,o,o+1,s,u,n);case 91:return new Xi(Li.BRACKET_L,o,o+1,s,u,n);case 93:return new Xi(Li.BRACKET_R,o,o+1,s,u,n);case 123:return new Xi(Li.BRACE_L,o,o+1,s,u,n);case 124:return new Xi(Li.PIPE,o,o+1,s,u,n);case 125:return new Xi(Li.BRACE_R,o,o+1,s,u,n);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?uo(t,o,s,u,n,e):so(t,o,s,u,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return oo(t,o,a,s,u,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return lo(t,o,s,u,n)}throw Vi(t,o,ro(a))}return new Xi(Li.EOF,i,i,e.line,1+o-e.lineStart,n)}function ro(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(no(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(no(e),".")}function io(e,n,t,r,i){var o,a=e.body,s=n;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Xi(Li.COMMENT,n,s,t,r,i,a.slice(n+1,s))}function oo(e,n,t,r,i,o){var a=e.body,s=t,u=n,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw Vi(e,u,"Invalid number, unexpected digit after 0: ".concat(no(s),"."))}else u=ao(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=ao(e,u,s),s=a.charCodeAt(u)),69!==s&&101!==s||(c=!0,43!==(s=a.charCodeAt(++u))&&45!==s||(s=a.charCodeAt(++u)),u=ao(e,u,s),s=a.charCodeAt(u)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw Vi(e,u,"Invalid number, expected digit but got: ".concat(no(s),"."));return new Xi(c?Li.FLOAT:Li.INT,n,u,r,i,o,a.slice(n,u))}function ao(e,n,t){var r=e.body,i=n,o=t;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw Vi(e,i,"Invalid number, expected digit but got: ".concat(no(o),"."))}function so(e,n,t,r,i){for(var o,a,s,u,c=e.body,l=n+1,d=l,p=0,h="";l<c.length&&!isNaN(p=c.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return h+=c.slice(d,l),new Xi(Li.STRING,n,l+1,t,r,i,h);if(p<32&&9!==p)throw Vi(e,l,"Invalid character within String: ".concat(no(p),"."));if(++l,92===p){switch(h+=c.slice(d,l-1),p=c.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var f=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),s=c.charCodeAt(l+3),u=c.charCodeAt(l+4),co(o)<<12|co(a)<<8|co(s)<<4|co(u));if(f<0){var m=c.slice(l+1,l+5);throw Vi(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}h+=String.fromCharCode(f),l+=4;break;default:throw Vi(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}d=++l}}throw Vi(e,l,"Unterminated string.")}function uo(e,n,t,r,i,o){for(var a=e.body,s=n+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(34===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(u,s),new Xi(Li.BLOCK_STRING,n,s+3,t,r,i,Ki(l));if(c<32&&9!==c&&10!==c&&13!==c)throw Vi(e,s,"Invalid character within String: ".concat(no(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(u,s)+'"""',u=s+=4):++s}throw Vi(e,s,"Unterminated string.")}function co(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function lo(e,n,t,r,i){for(var o=e.body,a=o.length,s=n+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new Xi(Li.NAME,n,s,t,r,i,o.slice(n,s))}var po=/*#__PURE__*/function(){function e(e,n){var t=function(e){return Ui(e,Qi)}(e)?e:new Qi(e);this._lexer=new eo(t),this._options=n}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(Li.NAME);return{kind:Pi.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:Pi.DOCUMENT,definitions:this.many(Li.SOF,this.parseDefinition,Li.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(Li.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Li.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Li.BRACE_L))return{kind:Pi.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(Li.NAME)&&(n=this.parseName()),{kind:Pi.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(Li.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(Li.PAREN_L,this.parseVariableDefinition,Li.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Pi.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Li.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Li.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Li.DOLLAR),{kind:Pi.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Pi.SELECTION_SET,selections:this.many(Li.BRACE_L,this.parseSelection,Li.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(Li.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(Li.COLON)?(e=r,n=this.parseName()):n=r,{kind:Pi.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Li.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(Li.PAREN_L,e?this.parseConstArgument:this.parseArgument,Li.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(Li.COLON),{kind:Pi.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:Pi.ARGUMENT,name:this.parseName(),value:(this.expectToken(Li.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(Li.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(Li.NAME)?{kind:Pi.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Pi.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e,n=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:Pi.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:Pi.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case Li.BRACKET_L:return this.parseList(e);case Li.BRACE_L:return this.parseObject(e);case Li.INT:return this._lexer.advance(),{kind:Pi.INT,value:n.value,loc:this.loc(n)};case Li.FLOAT:return this._lexer.advance(),{kind:Pi.FLOAT,value:n.value,loc:this.loc(n)};case Li.STRING:case Li.BLOCK_STRING:return this.parseStringLiteral();case Li.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:Pi.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:Pi.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:Pi.NULL,loc:this.loc(n)};default:return{kind:Pi.ENUM,value:n.value,loc:this.loc(n)}}case Li.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Pi.STRING,value:e.value,block:e.kind===Li.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:Pi.LIST,values:this.any(Li.BRACKET_L,function(){return n.parseValueLiteral(e)},Li.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:Pi.OBJECT,fields:this.any(Li.BRACE_L,function(){return n.parseObjectField(e)},Li.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(Li.COLON),{kind:Pi.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(Li.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(Li.AT),{kind:Pi.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(Li.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Li.BRACKET_R),e={kind:Pi.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(Li.BANG)?{kind:Pi.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:Pi.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Li.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(Li.STRING)||this.peek(Li.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(Li.BRACE_L,this.parseOperationTypeDefinition,Li.BRACE_R);return{kind:Pi.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:r,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(Li.COLON);var t=this.parseNamedType();return{kind:Pi.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);return{kind:Pi.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Pi.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var n=[];this.expectOptionalToken(Li.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(Li.AMP)||this.peek(Li.NAME));return n}return this.delimitedMany(Li.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Li.BRACE_L)&&this._lexer.lookahead().kind===Li.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Li.BRACE_L,this.parseFieldDefinition,Li.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Li.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Pi.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(Li.PAREN_L,this.parseInputValueDef,Li.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(Li.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(Li.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Pi.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Pi.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Pi.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(Li.EQUALS)?this.delimitedMany(Li.PIPE,this.parseNamedType):[]},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Pi.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(Li.BRACE_L,this.parseEnumValueDefinition,Li.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseDirectives(!0);return{kind:Pi.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Pi.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(Li.BRACE_L,this.parseInputValueDef,Li.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Li.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(Li.BRACE_L,this.parseOperationTypeDefinition,Li.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:Pi.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:Pi.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Pi.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Pi.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Pi.UNION_TYPE_EXTENSION,name:n,directives:t,types:r,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Pi.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:Pi.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Li.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Pi.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){return this.delimitedMany(Li.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==qi[n.value])return n;throw this.unexpected(e)},n.loc=function(e){var n;if(!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation))return new Fi(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw Vi(this._lexer.source,n.start,"Expected ".concat(fo(e),", found ").concat(ho(n),"."))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==Li.NAME||n.value!==e)throw Vi(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(ho(n),"."));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===Li.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=null!=e?e:this._lexer.token;return Vi(this._lexer.source,n.start,"Unexpected ".concat(ho(n),"."))},n.any=function(e,n,t){this.expectToken(e);for(var r=[];!this.expectOptionalToken(t);)r.push(n.call(this));return r},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}return[]},n.many=function(e,n,t){this.expectToken(e);var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r},n.delimitedMany=function(e,n){this.expectOptionalToken(e);var t=[];do{t.push(n.call(this))}while(this.expectOptionalToken(e));return t},e}();function ho(e){var n=e.value;return fo(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function fo(e){return function(e){return e===Li.BANG||e===Li.DOLLAR||e===Li.AMP||e===Li.PAREN_L||e===Li.PAREN_R||e===Li.SPREAD||e===Li.COLON||e===Li.EQUALS||e===Li.AT||e===Li.BRACKET_L||e===Li.BRACKET_R||e===Li.BRACE_L||e===Li.PIPE||e===Li.BRACE_R}(e)?'"'.concat(e,'"'):e}var mo=new Map,go=new Map,bo=!0,vo=!1;function Io(e){return e.replace(/[\s,]+/g," ").trim()}function yo(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1]}),function(e){var n,t,r,i=Io(e);if(!mo.has(i)){var o=function(e){return new po(e,{experimentalFragmentVariables:vo,allowLegacyFragmentVariables:vo}).parseDocument()}(e);if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");mo.set(i,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r)})});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=Io((a=e.loc).source.body.substring(a.start,a.end)),o=go.get(n);o&&!o.has(i)?bo&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||go.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a}),vi(vi({},n),{definitions:r}))))}return mo.get(i)}(r)}var Co,xo=yo;(Co=yo||(yo={})).gql=xo,Co.resetCaches=function(){mo.clear(),go.clear()},Co.disableFragmentWarnings=function(){bo=!1},Co.enableExperimentalFragmentVariables=function(){vo=!0},Co.disableExperimentalFragmentVariables=function(){vo=!1},yo.default=yo;var Ao,wo,Ro,So,No,Eo,To,Do,Go,Oo,Mo,ko,_o,Bo,Vo,Po,Yo,Wo,Fo,Xo,Lo,Ho,Zo,jo,Jo,zo,Uo,Qo,qo,Ko,$o,ea,na,ta,ra,ia,oa,aa,sa,ua,ca,la,da,pa,ha,fa,ma,ga,ba,va,Ia,ya,Ca,xa,Aa,wa,Ra,Sa,Na=yo;exports.AndonLightColor=void 0,(ba=exports.AndonLightColor||(exports.AndonLightColor={})).Gray="gray",ba.Green="green",ba.Red="red",ba.Yellow="yellow",exports.CounterKindEnum=void 0,(va=exports.CounterKindEnum||(exports.CounterKindEnum={})).Bad="bad",va.Good="good",exports.MetricTypeEnum=void 0,(Ia=exports.MetricTypeEnum||(exports.MetricTypeEnum={})).Counter="COUNTER",Ia.Empty="EMPTY",Ia.Indicator="INDICATOR",Ia.Kpi="KPI",Ia.Timer="TIMER",exports.MetricUnitEnum=void 0,(ya=exports.MetricUnitEnum||(exports.MetricUnitEnum={})).Duration="DURATION",ya.Percent="PERCENT",ya.Round="ROUND",exports.Period=void 0,(Ca=exports.Period||(exports.Period={})).CurrentShift="CURRENT_SHIFT",Ca.LastShift="LAST_SHIFT",exports.ProductionMode=void 0,(xa=exports.ProductionMode||(exports.ProductionMode={})).Manual="MANUAL",xa.Planned="PLANNED",exports.ScreenEnum=void 0,(Aa=exports.ScreenEnum||(exports.ScreenEnum={})).Counters="COUNTERS",Aa.Statuses="STATUSES",Aa.StatusScreen="STATUS_SCREEN",Aa.Workplaces="WORKPLACES",exports.StatusScreenDisplayBlocksEnum=void 0,(wa=exports.StatusScreenDisplayBlocksEnum||(exports.StatusScreenDisplayBlocksEnum={})).Kpi="KPI",wa.Livetime="LIVETIME",wa.Orders="ORDERS",wa.Presences="PRESENCES",exports.TrainingStatus=void 0,(Ra=exports.TrainingStatus||(exports.TrainingStatus={})).Disabled="DISABLED",Ra.InsufficientData="INSUFFICIENT_DATA",Ra.ServerError="SERVER_ERROR",Ra.Trained="TRAINED",Ra.Training="TRAINING",exports.WorkplaceEvent=void 0,(Sa=exports.WorkplaceEvent||(exports.WorkplaceEvent={})).AllStatusChangeTransitionPermissionsUpdated="ALL_STATUS_CHANGE_TRANSITION_PERMISSIONS_UPDATED",Sa.CounterUpdated="COUNTER_UPDATED",Sa.CurrentShiftChanged="CURRENT_SHIFT_CHANGED",Sa.MetricValueUpdated="METRIC_VALUE_UPDATED",Sa.NotificationCreated="NOTIFICATION_CREATED",Sa.OrderExecutionUpdated="ORDER_EXECUTION_UPDATED",Sa.OrderUpdated="ORDER_UPDATED",Sa.StatusChangeCreated="STATUS_CHANGE_CREATED",Sa.UserPresenceCreated="USER_PRESENCE_CREATED",Sa.UserPresenceUpdated="USER_PRESENCE_UPDATED";var Ea=Na(Ao||(Ao=I(["\n mutation createDashboard($gridLayout: String, $id: ID!, $name: String!) {\n createDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),Ta=Na(wo||(wo=I(["\n mutation createOrder($id: ID!, $number: String!) {\n createOrder(id: $id, number: $number) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n }\n}\n "]))),Da=Na(Ro||(Ro=I(["\n mutation createProduct($id: ID!, $name: String, $number: String!) {\n createProduct(id: $id, name: $name, number: $number) {\n errors {\n field\n messages\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n}\n "]))),Ga=Na(So||(So=I(["\n mutation createStatusChange($id: ID!, $note: String, $reasonId: ID!, $reasonHasBeenRecommended: Boolean, $startedAt: String, $userId: ID, $workplaceId: ID!) {\n createStatusChange(\n id: $id\n note: $note\n reasonId: $reasonId\n reasonHasBeenRecommended: $reasonHasBeenRecommended\n startedAt: $startedAt\n userId: $userId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),Oa=Na(No||(No=I(["\n mutation createUserPresence($id: ID!, $userToken: String!, $workplaceId: ID!) {\n createUserPresence(id: $id, userToken: $userToken, workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n userPresence {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n}\n "]))),Ma=Na(Eo||(Eo=I(["\n mutation createWidget($config: String, $id: ID!) {\n createWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),ka=Na(To||(To=I(["\n mutation pauseOrderExecution($id: ID!, $statusChangeId: ID!) {\n pauseOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),_a=Na(Do||(Do=I(["\n mutation removeDashboard($id: ID!) {\n removeDashboard(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Ba=Na(Go||(Go=I(["\n mutation removeUserPresence($id: ID!) {\n removeUserPresence(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Va=Na(Oo||(Oo=I(["\n mutation removeWidget($id: ID!) {\n removeWidget(id: $id) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Pa=Na(Mo||(Mo=I(["\n mutation removeWorkplaceUsersPresences($workplaceId: ID!) {\n removeWorkplaceUsersPresences(workplaceId: $workplaceId) {\n errors {\n field\n messages\n }\n }\n}\n "]))),Ya=Na(ko||(ko=I(["\n mutation setCounter($id: ID!, $note: String, $orderExecutionId: ID, $value: Float!) {\n setCounter(\n id: $id\n note: $note\n orderExecutionId: $orderExecutionId\n value: $value\n ) {\n counter {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n position\n value\n workplaceId\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),Wa=Na(_o||(_o=I(["\n mutation startOrderExecution($id: ID!, $order: OrderInput!, $product: ProductInput, $itemCount: Float, $statusChangeId: ID!, $workplaceId: ID!) {\n startOrderExecution(\n id: $id\n order: $order\n product: $product\n itemCount: $itemCount\n statusChangeId: $statusChangeId\n workplaceId: $workplaceId\n ) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),Fa=Na(Bo||(Bo=I(["\n mutation stopOrderExecution($id: ID!, $statusChangeId: ID!) {\n stopOrderExecution(id: $id, statusChangeId: $statusChangeId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),Xa=Na(Vo||(Vo=I(["\n mutation updateDashboard($gridLayout: String!, $id: ID!, $name: String) {\n updateDashboard(gridLayout: $gridLayout, id: $id, name: $name) {\n dashboard {\n gridLayout\n id\n name\n }\n errors {\n field\n messages\n }\n }\n}\n "]))),La=Na(Po||(Po=I(["\n mutation updateNotification($id: ID!, $status: String!) {\n updateNotification(id: $id, status: $status) {\n errors {\n field\n messages\n }\n notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n }\n}\n "]))),Ha=Na(Yo||(Yo=I(["\n mutation updateOrder($input: UpdateOrderInput!) {\n updateOrder(input: $input) {\n errors {\n field\n messages\n }\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n }\n}\n "]))),Za=Na(Wo||(Wo=I(["\n mutation updateOrderExecution($id: ID!, $standardRateId: ID!) {\n updateOrderExecution(id: $id, standardRateId: $standardRateId) {\n errors {\n field\n messages\n }\n orderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n }\n}\n "]))),ja=Na(Fo||(Fo=I(["\n mutation updateStatusChange($input: UpdateStatusChangeInput!) {\n updateStatusChange(input: $input) {\n errors {\n field\n messages\n }\n statusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n }\n}\n "]))),Ja=Na(Xo||(Xo=I(["\n mutation updateWidget($config: String!, $id: ID!) {\n updateWidget(config: $config, id: $id) {\n errors {\n field\n messages\n }\n widget {\n config\n id\n }\n }\n}\n "]))),za=Na(Lo||(Lo=I(["\n query applicationInfo {\n applicationInfo {\n apiVersion\n }\n}\n "]))),Ua=Na(Ho||(Ho=I(["\n query companyConfig {\n companyConfig {\n devicesConfigs {\n defaultWorkplaceId\n deviceId\n name\n }\n displayedKpiItems\n reasonsRecommendationsEnabled\n roleConfig {\n historyVisibilityEnabled\n orderCreationAllowed\n }\n statusChangeTransitionPermissionsUpdatedAt\n workplacesConfigs {\n defaultScreen\n menuDisplayItems\n orderConfig {\n alternativeName\n numberPrefix\n numberRegexp\n }\n orderExecutionConfig {\n afterPauseReasonId\n afterStartReasonId\n afterStopReasonId\n featureEnabled\n formOrderFields\n formProductFields\n formQuantityFields\n itemCountUnit\n orderInternalNoteTitle\n orderInternalNoteText\n productInternalNoteTitle\n productInternalNoteText\n quantityInternalNoteTitle\n quantityInternalNoteText\n noPlanNeedVerificationNote\n noPlanCanCreateOrderNote\n stopEnabled\n }\n productConfig {\n alternativeName\n numberPrefix\n numberRegexp\n }\n productionMode\n screenSaverConfig {\n autoSignOut\n displayAfterIdle\n displayAfterOrderCreated\n displayAfterStatusChangeCreated\n enabled\n idleTime\n }\n statusScreenDisplayBlocks\n workplaceId\n }\n }\n}\n "]))),Qa=Na(Zo||(Zo=I(["\n query counterDirectories($filter: CounterDirectoryFilter) {\n counterDirectories(filter: $filter) {\n directoryId\n id\n name\n position\n workplaceId\n }\n}\n "]))),qa=Na(jo||(jo=I(["\n query counters($filter: CounterFilter) {\n counters(filter: $filter) {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n position\n value\n workplaceId\n }\n}\n "]))),Ka=Na(Jo||(Jo=I(["\n query currentUser {\n currentUser {\n id\n login\n name\n }\n}\n "]))),$a=Na(zo||(zo=I(["\n query dashboards($filter: DashboardFilter) {\n dashboards(filter: $filter) {\n gridLayout\n id\n name\n }\n}\n "]))),es=Na(Uo||(Uo=I(["\n query departments($filter: DepartmentFilter) {\n departments(filter: $filter) {\n id\n name\n }\n}\n "]))),ns=Na(Qo||(Qo=I(["\n query floorPlans($filter: FloorPlanFilter) {\n floorPlans(filter: $filter) {\n id\n imageUrl\n name\n }\n}\n "]))),ts=Na(qo||(qo=I(["\n query metricValues($metricIds: [ID!], $workplaceIds: [ID!]) {\n metricValues(metricIds: $metricIds, workplaceIds: $workplaceIds) {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n}\n "]))),rs=Na(Ko||(Ko=I(["\n query metrics {\n metrics {\n id\n name\n }\n}\n "]))),is=Na($o||($o=I(["\n query notifications($filter: NotificationFilter) {\n notifications(filter: $filter) {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n}\n "]))),os=Na(ea||(ea=I(["\n query orders($filter: OrderFilter) {\n orders(filter: $filter) {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n}\n "]))),as=Na(na||(na=I(["\n query ordersExecutions($filter: OrderExecutionFilter) {\n ordersExecutions(filter: $filter) {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n standardRateMismatched\n startedAt\n workplaceId\n }\n}\n "]))),ss=Na(ta||(ta=I(["\n query products($filter: ProductFilter) {\n products(filter: $filter) {\n assemblyManual\n id\n name\n number\n }\n}\n "]))),us=Na(ra||(ra=I(["\n query reasons($filter: ReasonFilter) {\n reasons(filter: $filter) {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n}\n "]))),cs=Na(ia||(ia=I(["\n query reasonsRecommendation($workplaceId: String!) {\n reasonsRecommendation(workplaceId: $workplaceId) {\n reasons {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n trainingStatus\n }\n}\n "]))),ls=Na(oa||(oa=I(["\n query shifts {\n shifts {\n finishedAt\n id\n name\n startedAt\n }\n}\n "]))),ds=Na(aa||(aa=I(["\n query standardRates($orderExecutionId: ID!) {\n standardRates(orderExecutionId: $orderExecutionId) {\n id\n label\n }\n}\n "]))),ps=Na(sa||(sa=I(["\n query statusChangeTransitionPermissions($filter: StatusChangeTransitionPermissionFilter) {\n statusChangeTransitionPermissions(filter: $filter) {\n fromReasonId\n roleId\n toReasonId\n workplaceId\n }\n}\n "]))),hs=Na(ua||(ua=I(["\n query statusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),fs=Na(ca||(ca=I(["\n query users($filter: UserFilter) {\n users(filter: $filter) {\n id\n login\n name\n }\n}\n "]))),ms=Na(la||(la=I(["\n query usersPresences($filter: UserPresenceFilter) {\n usersPresences(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n}\n "]))),gs=Na(da||(da=I(["\n query widget($id: ID!) {\n widget(id: $id) {\n config\n id\n }\n}\n "]))),bs=Na(pa||(pa=I(["\n query widgets($filter: WidgetFilter) {\n widgets(filter: $filter) {\n config\n id\n }\n}\n "]))),vs=Na(ha||(ha=I(["\n query workplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Is=Na(fa||(fa=I(["\n query listStatusChanges($filter: StatusChangeFilter) {\n statusChanges(filter: $filter) {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n temporary\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n}\n "]))),ys=Na(ma||(ma=I(["\n query listWorkplaces($filter: WorkplaceFilter) {\n workplaces(filter: $filter) {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n}\n "]))),Cs=Na(ga||(ga=I(["\n subscription workplaceEvent($id: ID!) {\n workplaceEvent(id: $id) {\n event\n subject {\n __typename\n ... on Counter {\n directoryId\n hasNote\n id\n isDisabled\n kind\n name\n counterPosition: position\n value\n workplaceId\n }\n ... on Item {\n count\n id\n order {\n executedCount\n id\n items {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n workplaces {\n currentStatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n ... on MetricValue {\n active\n id\n metricId\n statusColor\n textValue\n timer\n type\n unit\n workplaceId\n }\n ... on Notification {\n channel\n details\n emitterId\n emitterType\n id\n message\n receiverId\n receiverType\n status\n }\n ... on Shift {\n shiftFinishedAt: finishedAt\n id\n name\n shiftStartedAt: startedAt\n }\n ... on Order {\n executedCount\n id\n items {\n count\n id\n }\n note\n number\n plannedCount\n position\n orderStartedAt: startedAt\n orderFinishedAt: finishedAt\n workplaces {\n deactivated\n departmentId\n id\n minOperators\n name\n reasonGroupId\n reasonsRecommendationsEnabled\n }\n }\n ... on OrderExecution {\n finishedAt\n id\n item {\n count\n id\n order {\n executedCount\n id\n note\n number\n plannedCount\n position\n startedAt\n finishedAt\n }\n product {\n assemblyManual\n id\n name\n number\n }\n }\n itemCount\n note\n standardRateMismatched\n startedAt\n workplaceId\n }\n ... on StatusChange {\n author {\n id\n login\n name\n }\n finishedAt\n id\n note\n reason {\n acceptanceMonit\n canBeRecommended\n hasNote\n id\n isNoteRequired\n leaf\n name\n parentId\n position\n reasonGroupId\n statusColor\n }\n reasonHasBeenRecommended\n startedAt\n workplaceId\n }\n ... on UserPresence {\n finishedAt\n id\n startedAt\n user {\n id\n login\n name\n }\n workplaceId\n }\n }\n }\n}\n "]))),xs=function(e,n,t,r){return e()};function As(e,n){return void 0===n&&(n=xs),{createDashboard:function(t,r){return n(function(n){return e.request(Ea,t,b({},r,n))},"createDashboard","mutation",t)},createOrder:function(t,r){return n(function(n){return e.request(Ta,t,b({},r,n))},"createOrder","mutation",t)},createProduct:function(t,r){return n(function(n){return e.request(Da,t,b({},r,n))},"createProduct","mutation",t)},createStatusChange:function(t,r){return n(function(n){return e.request(Ga,t,b({},r,n))},"createStatusChange","mutation",t)},createUserPresence:function(t,r){return n(function(n){return e.request(Oa,t,b({},r,n))},"createUserPresence","mutation",t)},createWidget:function(t,r){return n(function(n){return e.request(Ma,t,b({},r,n))},"createWidget","mutation",t)},pauseOrderExecution:function(t,r){return n(function(n){return e.request(ka,t,b({},r,n))},"pauseOrderExecution","mutation",t)},removeDashboard:function(t,r){return n(function(n){return e.request(_a,t,b({},r,n))},"removeDashboard","mutation",t)},removeUserPresence:function(t,r){return n(function(n){return e.request(Ba,t,b({},r,n))},"removeUserPresence","mutation",t)},removeWidget:function(t,r){return n(function(n){return e.request(Va,t,b({},r,n))},"removeWidget","mutation",t)},removeWorkplaceUsersPresences:function(t,r){return n(function(n){return e.request(Pa,t,b({},r,n))},"removeWorkplaceUsersPresences","mutation",t)},setCounter:function(t,r){return n(function(n){return e.request(Ya,t,b({},r,n))},"setCounter","mutation",t)},startOrderExecution:function(t,r){return n(function(n){return e.request(Wa,t,b({},r,n))},"startOrderExecution","mutation",t)},stopOrderExecution:function(t,r){return n(function(n){return e.request(Fa,t,b({},r,n))},"stopOrderExecution","mutation",t)},updateDashboard:function(t,r){return n(function(n){return e.request(Xa,t,b({},r,n))},"updateDashboard","mutation",t)},updateNotification:function(t,r){return n(function(n){return e.request(La,t,b({},r,n))},"updateNotification","mutation",t)},updateOrder:function(t,r){return n(function(n){return e.request(Ha,t,b({},r,n))},"updateOrder","mutation",t)},updateOrderExecution:function(t,r){return n(function(n){return e.request(Za,t,b({},r,n))},"updateOrderExecution","mutation",t)},updateStatusChange:function(t,r){return n(function(n){return e.request(ja,t,b({},r,n))},"updateStatusChange","mutation",t)},updateWidget:function(t,r){return n(function(n){return e.request(Ja,t,b({},r,n))},"updateWidget","mutation",t)},applicationInfo:function(t,r){return n(function(n){return e.request(za,t,b({},r,n))},"applicationInfo","query",t)},companyConfig:function(t,r){return n(function(n){return e.request(Ua,t,b({},r,n))},"companyConfig","query",t)},counterDirectories:function(t,r){return n(function(n){return e.request(Qa,t,b({},r,n))},"counterDirectories","query",t)},counters:function(t,r){return n(function(n){return e.request(qa,t,b({},r,n))},"counters","query",t)},currentUser:function(t,r){return n(function(n){return e.request(Ka,t,b({},r,n))},"currentUser","query",t)},dashboards:function(t,r){return n(function(n){return e.request($a,t,b({},r,n))},"dashboards","query",t)},departments:function(t,r){return n(function(n){return e.request(es,t,b({},r,n))},"departments","query",t)},floorPlans:function(t,r){return n(function(n){return e.request(ns,t,b({},r,n))},"floorPlans","query",t)},metricValues:function(t,r){return n(function(n){return e.request(ts,t,b({},r,n))},"metricValues","query",t)},metrics:function(t,r){return n(function(n){return e.request(rs,t,b({},r,n))},"metrics","query",t)},notifications:function(t,r){return n(function(n){return e.request(is,t,b({},r,n))},"notifications","query",t)},orders:function(t,r){return n(function(n){return e.request(os,t,b({},r,n))},"orders","query",t)},ordersExecutions:function(t,r){return n(function(n){return e.request(as,t,b({},r,n))},"ordersExecutions","query",t)},products:function(t,r){return n(function(n){return e.request(ss,t,b({},r,n))},"products","query",t)},reasons:function(t,r){return n(function(n){return e.request(us,t,b({},r,n))},"reasons","query",t)},reasonsRecommendation:function(t,r){return n(function(n){return e.request(cs,t,b({},r,n))},"reasonsRecommendation","query",t)},shifts:function(t,r){return n(function(n){return e.request(ls,t,b({},r,n))},"shifts","query",t)},standardRates:function(t,r){return n(function(n){return e.request(ds,t,b({},r,n))},"standardRates","query",t)},statusChangeTransitionPermissions:function(t,r){return n(function(n){return e.request(ps,t,b({},r,n))},"statusChangeTransitionPermissions","query",t)},statusChanges:function(t,r){return n(function(n){return e.request(hs,t,b({},r,n))},"statusChanges","query",t)},users:function(t,r){return n(function(n){return e.request(fs,t,b({},r,n))},"users","query",t)},usersPresences:function(t,r){return n(function(n){return e.request(ms,t,b({},r,n))},"usersPresences","query",t)},widget:function(t,r){return n(function(n){return e.request(gs,t,b({},r,n))},"widget","query",t)},widgets:function(t,r){return n(function(n){return e.request(bs,t,b({},r,n))},"widgets","query",t)},workplaces:function(t,r){return n(function(n){return e.request(vs,t,b({},r,n))},"workplaces","query",t)},listStatusChanges:function(t,r){return n(function(n){return e.request(Is,t,b({},r,n))},"listStatusChanges","query",t)},listWorkplaces:function(t,r){return n(function(n){return e.request(ys,t,b({},r,n))},"listWorkplaces","query",t)},workplaceEvent:function(t,r){return n(function(n){return e.request(Cs,t,b({},r,n))},"workplaceEvent","subscription",t)}}}var ws="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rs(e){var n={exports:{}};return e(n,n.exports),n.exports}var Ss=Rs(function(e,n){var t,r,i,o="[object Map]",a="[object Promise]",s="[object Set]",u="[object WeakMap]",c="[object DataView]",l=/^\[object .+?Constructor\]$/,d="object"==typeof self&&self&&self.Object===Object&&self,p="object"==typeof ws&&ws&&ws.Object===Object&&ws||d||Function("return this")(),h=n&&!n.nodeType&&n,f=h&&e&&!e.nodeType&&e,m=f&&f.exports===h,g=Function.prototype,b=Object.prototype,v=p["__core-js_shared__"],I=(t=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",y=g.toString,C=b.hasOwnProperty,x=b.toString,A=RegExp("^"+y.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=m?p.Buffer:void 0,R=b.propertyIsEnumerable,S=w?w.isBuffer:void 0,N=(r=Object.keys,i=Object,function(e){return r(i(e))}),E=Y(p,"DataView"),T=Y(p,"Map"),D=Y(p,"Promise"),G=Y(p,"Set"),O=Y(p,"WeakMap"),M=!R.call({valueOf:1},"valueOf"),k=F(E),_=F(T),B=F(D),V=F(G),P=F(O);function Y(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return function(e){if(!j(e)||function(e){return!!I&&I in e}(e))return!1;var n=Z(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?A:l;return n.test(F(e))}(t)?t:void 0}var W=function(e){return x.call(e)};function F(e){if(null!=e){try{return y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(E&&W(new E(new ArrayBuffer(1)))!=c||T&&W(new T)!=o||D&&W(D.resolve())!=a||G&&W(new G)!=s||O&&W(new O)!=u)&&(W=function(e){var n=x.call(e),t="[object Object]"==n?e.constructor:void 0,r=t?F(t):void 0;if(r)switch(r){case k:return c;case _:return o;case B:return a;case V:return s;case P:return u}return n});var X=Array.isArray;function L(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Z(e)}var H=S||function(){return!1};function Z(e){var n=j(e)?x.call(e):"";return"[object Function]"==n||"[object GeneratorFunction]"==n}function j(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}e.exports=function(e){if(L(e)&&(X(e)||"string"==typeof e||"function"==typeof e.splice||H(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&L(e)}(e)&&C.call(e,"callee")&&(!R.call(e,"callee")||"[object Arguments]"==x.call(e))}(e)))return!e.length;var n=W(e);if(n==o||n==s)return!e.size;if(M||function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||b)}(e))return!N(e).length;for(var t in e)if(C.call(e,t))return!1;return!0}}),Ns=function(e,n){return Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},Ns(e,n)};function Es(e,n){function t(){this.constructor=e}Ns(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function Ts(e){return"function"==typeof e}var Ds=!1,Gs={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){Ds=e},get useDeprecatedSynchronousErrorHandling(){return Ds}};function Os(e){setTimeout(function(){throw e},0)}var Ms={closed:!0,next:function(e){},error:function(e){if(Gs.useDeprecatedSynchronousErrorHandling)throw e;Os(e)},complete:function(){}},ks=/*@__PURE__*/function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}(),_s=/*@__PURE__*/function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,n){return n+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=/*@__PURE__*/Object.create(Error.prototype),e}(),Bs=_s,Vs=/*@__PURE__*/function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t,r=this,i=r._parentOrParents,o=r._ctorUnsubscribe,a=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof e)i.remove(this);else if(null!==i)for(var u=0;u<i.length;++u)i[u].remove(this);if(Ts(a)){o&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){n=e instanceof Bs?Ps(e.errors):[e]}}if(ks(s)){u=-1;for(var c=s.length;++u<c;){var l=s[u];if(null!==(t=l)&&"object"==typeof t)try{l.unsubscribe()}catch(e){n=n||[],e instanceof Bs?n=n.concat(Ps(e.errors)):n.push(e)}}}if(n)throw new Bs(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;(t=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(null===i)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},e.prototype.remove=function(e){var n=this._subscriptions;if(n){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function Ps(e){return e.reduce(function(e,n){return e.concat(n instanceof Bs?n.errors:n)},[])}var Ys=/*@__PURE__*/function(){return"function"==typeof Symbol?/*@__PURE__*/Symbol("rxSubscriber"):"@@rxSubscriber_"+/*@__PURE__*/Math.random()}(),Ws=/*@__PURE__*/function(e){function n(t,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=Ms;break;case 1:if(!t){o.destination=Ms;break}if("object"==typeof t){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new Fs(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new Fs(o,t,r,i)}return o}return Es(n,e),n.prototype[Ys]=function(){return this},n.create=function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(Vs),Fs=/*@__PURE__*/function(e){function n(n,t,r,i){var o,a=e.call(this)||this;a._parentSubscriber=n;var s=a;return Ts(t)?o=t:t&&(o=t.next,r=t.error,i=t.complete,t!==Ms&&(Ts((s=Object.create(t)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return Es(n,e),n.prototype.next=function(e){if(!this.isStopped&&this._next){var n=this._parentSubscriber;Gs.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},n.prototype.error=function(e){if(!this.isStopped){var n=this._parentSubscriber,t=Gs.useDeprecatedSynchronousErrorHandling;if(this._error)t&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)t?(n.syncErrorValue=e,n.syncErrorThrown=!0):Os(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;Os(e)}}},n.prototype.complete=function(){var e=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};Gs.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(e,n){try{e.call(this._context,n)}catch(e){if(this.unsubscribe(),Gs.useDeprecatedSynchronousErrorHandling)throw e;Os(e)}},n.prototype.__tryOrSetError=function(e,n,t){if(!Gs.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,t)}catch(n){return Gs.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(Os(n),!0)}return!1},n.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},n}(Ws),Xs=/*@__PURE__*/function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Ls(e){return e}var Hs=/*@__PURE__*/function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(e,n,t){var r=this.operator,i=function(e,n,t){if(e){if(e instanceof Ws)return e;if(e[Ys])return e[Ys]()}return e||n||t?new Ws(e,n,t):new Ws(Ms)}(e,n,t);if(i.add(r?r.call(i,this.source):this.source||Gs.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Gs.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){Gs.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function(e){for(;e;){var n=e.destination;if(e.closed||e.isStopped)return!1;e=n&&n instanceof Ws?n:null}return!0}(e)?e.error(n):console.warn(n)}},e.prototype.forEach=function(e,n){var t=this;return new(n=Zs(n))(function(n,r){var i;i=t.subscribe(function(n){try{e(n)}catch(e){r(e),i&&i.unsubscribe()}},r,n)})},e.prototype._subscribe=function(e){var n=this.source;return n&&n.subscribe(e)},e.prototype[Xs]=function(){return this},e.prototype.pipe=function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 0===n.length?this:(0===(e=n).length?Ls:1===e.length?e[0]:function(n){return e.reduce(function(e,n){return n(e)},n)})(this)},e.prototype.toPromise=function(e){var n=this;return new(e=Zs(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},e.create=function(n){return new e(n)},e}();function Zs(e){if(e||(e=Gs.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var js=/*#__PURE__*/function(){function e(e){var n=this;this.wsURL=void 0,this.cable=null,this.subscriptions=new Map,this.addSubscription=function(e,t){n.subscriptions.set(e,t)},this.wsURL=e}var n=e.prototype;return n.connect=function(e,n){this.cable=g.default.createConsumer(this.wsURL+"?token="+e+"&lang="+n)},n.request=function(e){var n,t=this.cable,r=this.subscriptions,i=this.addSubscription;return new Hs(function(o){if(t){var a,s=(null==(a=e.variables)?void 0:a.id)||"company";r.has(s)||(n=t.subscriptions.create({channel:"GraphqlChannel",channelId:Math.round(Date.now()+1e5*Math.random()).toString(16)},{connected:function(){this.perform("execute",e)},received:function(e){e.more?e.result.errors?o.error&&o.error(e.result.errors[0]):e.result.data&&o.next&&(Ss(e.result.data)||o.next(e.result)):o.complete&&o.complete()}}),i(s,n))}})},n.hasSubscription=function(e){return this.subscriptions.has(e)},e}(),Js=/*#__PURE__*/function(){function e(e,n,t){this.actionCableClient=null,this.actionCableClient=new js(e),this.actionCableClient.connect(n,t)}return e.prototype.subscribe=function(e,n,t,r){if(void 0===r&&(r=function(e){throw e}),!this.actionCableClient)throw new Error("No WS client available");var i=this.actionCableClient.request({query:e,variables:n}).subscribe({next:function(e){var n=e.data,i=e.errors;if(i)return r(new Error(JSON.stringify(i)));n&&t&&t(function(e){var n=Object.keys(e);if(1!==n.length)throw new Error("Expected exactly one response key, got: "+n.join(", "));return e[n[0]]}(n))}});return function(){return i.unsubscribe()}},e}(),zs=function(e,n,t){return new Js(e,n,t)},Us=function(e,n){return As(new c.GraphQLClient(e,{fetch:n}))},Qs=Rs(function(e,n){e.exports=function(){var n,t;function r(){return n.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var n;for(n in e)if(a(e,n))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,n){var t,r=[],i=e.length;for(t=0;t<i;++t)r.push(n(e[t],t));return r}function p(e,n){for(var t in n)a(n,t)&&(e[t]=n[t]);return a(n,"toString")&&(e.toString=n.toString),a(n,"valueOf")&&(e.valueOf=n.valueOf),e}function h(e,n,t,r){return Mn(e,n,t,r,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var n=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(n=f(e),r=t.call(n.parsedDateParts,function(e){return null!=e}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&r),e._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function g(e){var n=h(NaN);return null!=e?p(f(n),e):f(n).userInvalidated=!0,n}t=Array.prototype.some?Array.prototype.some:function(e){var n,t=Object(this),r=t.length>>>0;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var b=r.momentProperties=[],v=!1;function I(e,n){var t,r,i,o=b.length;if(u(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),u(n._i)||(e._i=n._i),u(n._f)||(e._f=n._f),u(n._l)||(e._l=n._l),u(n._strict)||(e._strict=n._strict),u(n._tzm)||(e._tzm=n._tzm),u(n._isUTC)||(e._isUTC=n._isUTC),u(n._offset)||(e._offset=n._offset),u(n._pf)||(e._pf=f(n)),u(n._locale)||(e._locale=n._locale),o>0)for(t=0;t<o;t++)u(i=n[r=b[t]])||(e[r]=i);return e}function y(e){I(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function C(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,n){var t=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),t){var i,o,s,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),t=!1}return n.apply(this,arguments)},n)}var w,R={};function S(e,n){null!=r.deprecationHandler&&r.deprecationHandler(e,n),R[e]||(x(n),R[e]=!0)}function N(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,n){var t,r=p({},e);for(t in n)a(n,t)&&(o(e[t])&&o(n[t])?(r[t]={},p(r[t],e[t]),p(r[t],n[t])):null!=n[t]?r[t]=n[t]:delete r[t]);for(t in e)a(e,t)&&!a(n,t)&&o(e[t])&&(r[t]=p({},r[t]));return r}function T(e){null!=e&&this.set(e)}function D(e,n,t){var r=""+Math.abs(e);return(e>=0?t?"+":"":"-")+Math.pow(10,Math.max(0,n-r.length)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,w=Object.keys?Object.keys:function(e){var n,t=[];for(n in e)a(e,n)&&t.push(n);return t};var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},k={};function _(e,n,t,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(k[e]=i),n&&(k[n[0]]=function(){return D(i.apply(this,arguments),n[1],n[2])}),t&&(k[t]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e,n){return e.isValid()?(n=V(n,e.localeData()),M[n]=M[n]||function(e){var n,t,r,i=e.match(G);for(n=0,t=i.length;n<t;n++)i[n]=k[i[n]]?k[i[n]]:(r=i[n]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(n){var r,o="";for(r=0;r<t;r++)o+=N(i[r])?i[r].call(n,e):i[r];return o}}(n),M[n](e)):e.localeData().invalidDate()}function V(e,n){var t=5;function r(e){return n.longDateFormat(e)||e}for(O.lastIndex=0;t>=0&&O.test(e);)e=e.replace(O,r),O.lastIndex=0,t-=1;return e}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function W(e){var n,t,r={};for(t in e)a(e,t)&&(n=Y(t))&&(r[n]=e[t]);return r}var F,X={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},L=/\d/,H=/\d\d/,Z=/\d{3}/,j=/\d{4}/,J=/[+-]?\d{6}/,z=/\d\d?/,U=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,ee=/\d+/,ne=/[+-]?\d+/,te=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function se(e,n,t){F[e]=N(n)?n:function(e,r){return e&&t?t:n}}function ue(e,n){return a(F,e)?F[e](n._strict,n._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,t,r,i){return n||t||r||i})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var n=+e,t=0;return 0!==n&&isFinite(n)&&(t=le(n)),t}F={};var pe={};function he(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),c(n)&&(i=function(e,t){t[n]=de(e)}),r=e.length,t=0;t<r;t++)pe[e[t]]=i}function fe(e,n){he(e,function(e,t,r,i){r._w=r._w||{},n(e,r._w,r,i)})}function me(e,n,t){null!=n&&a(pe,e)&&pe[e](n,t._a,t,e)}function ge(e){return e%4==0&&e%100!=0||e%400==0}var be=0,ve=1,Ie=2,ye=3,Ce=4,xe=5,Ae=6,we=7,Re=8;function Se(e){return ge(e)?366:365}_("Y",0,0,function(){var e=this.year();return e<=9999?D(e,4):"+"+e}),_(0,["YY",2],0,function(){return this.year()%100}),_(0,["YYYY",4],0,"year"),_(0,["YYYYY",5],0,"year"),_(0,["YYYYYY",6,!0],0,"year"),se("Y",ne),se("YY",z,H),se("YYYY",K,j),se("YYYYY",$,J),se("YYYYYY",$,J),he(["YYYYY","YYYYYY"],be),he("YYYY",function(e,n){n[be]=2===e.length?r.parseTwoDigitYear(e):de(e)}),he("YY",function(e,n){n[be]=r.parseTwoDigitYear(e)}),he("Y",function(e,n){n[be]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var Ne,Ee=Te("FullYear",!0);function Te(e,n){return function(t){return null!=t?(Ge(this,e,t),r.updateOffset(this,n),this):De(this,e)}}function De(e,n){if(!e.isValid())return NaN;var t=e._d,r=e._isUTC;switch(n){case"Milliseconds":return r?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return r?t.getUTCSeconds():t.getSeconds();case"Minutes":return r?t.getUTCMinutes():t.getMinutes();case"Hours":return r?t.getUTCHours():t.getHours();case"Date":return r?t.getUTCDate():t.getDate();case"Day":return r?t.getUTCDay():t.getDay();case"Month":return r?t.getUTCMonth():t.getMonth();case"FullYear":return r?t.getUTCFullYear():t.getFullYear();default:return NaN}}function Ge(e,n,t){var r,i,o,a,s;if(e.isValid()&&!isNaN(t)){switch(r=e._d,i=e._isUTC,n){case"Milliseconds":return void(i?r.setUTCMilliseconds(t):r.setMilliseconds(t));case"Seconds":return void(i?r.setUTCSeconds(t):r.setSeconds(t));case"Minutes":return void(i?r.setUTCMinutes(t):r.setMinutes(t));case"Hours":return void(i?r.setUTCHours(t):r.setHours(t));case"Date":return void(i?r.setUTCDate(t):r.setDate(t));case"FullYear":break;default:return}o=t,a=e.month(),s=29!==(s=e.date())||1!==a||ge(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Oe(e,n){if(isNaN(e)||isNaN(n))return NaN;var t=(n%12+12)%12;return e+=(n-t)/12,1===t?ge(e)?29:28:31-t%7%2}Ne=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1},_("M",["MM",2],"Mo",function(){return this.month()+1}),_("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),_("MMMM",0,0,function(e){return this.localeData().months(this,e)}),se("M",z,oe),se("MM",z,H),se("MMM",function(e,n){return n.monthsShortRegex(e)}),se("MMMM",function(e,n){return n.monthsRegex(e)}),he(["M","MM"],function(e,n){n[ve]=de(e)-1}),he(["MMM","MMMM"],function(e,n,t,r){var i=t._locale.monthsParse(e,r,t._strict);null!=i?n[ve]=i:f(t).invalidMonth=e});var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ke="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_e=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Be=ie,Ve=ie;function Pe(e,n,t){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return t?"MMM"===n?-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:"MMM"===n?-1!==(i=Ne.call(this._shortMonthsParse,a))||-1!==(i=Ne.call(this._longMonthsParse,a))?i:null:-1!==(i=Ne.call(this._longMonthsParse,a))||-1!==(i=Ne.call(this._shortMonthsParse,a))?i:null}function Ye(e,n){if(!e.isValid())return e;if("string"==typeof n)if(/^\d+$/.test(n))n=de(n);else if(!c(n=e.localeData().monthsParse(n)))return e;var t=n,r=e.date();return r=r<29?r:Math.min(r,Oe(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,r):e._d.setMonth(t,r),e}function We(e){return null!=e?(Ye(this,e),r.updateOffset(this,!0),this):De(this,"Month")}function Fe(){function e(e,n){return n.length-e.length}var n,t,r,i,o=[],a=[],s=[];for(n=0;n<12;n++)t=h([2e3,n]),r=ce(this.monthsShort(t,"")),i=ce(this.months(t,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xe(e,n,t,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,n,t,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,n,t,r,i,o,a),s}function Le(e){var n,t;return e<100&&e>=0?((t=Array.prototype.slice.call(arguments))[0]=e+400,n=new Date(Date.UTC.apply(null,t)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function He(e,n,t){var r=7+n-t;return-(7+Le(e,0,r).getUTCDay()-n)%7+r-1}function Ze(e,n,t,r,i){var o,a,s=1+7*(n-1)+(7+t-r)%7+He(e,r,i);return s<=0?a=Se(o=e-1)+s:s>Se(e)?(o=e+1,a=s-Se(e)):(o=e,a=s),{year:o,dayOfYear:a}}function je(e,n,t){var r,i,o=He(e.year(),n,t),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Je(i=e.year()-1,n,t):a>Je(e.year(),n,t)?(r=a-Je(e.year(),n,t),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Je(e,n,t){var r=He(e,n,t),i=He(e+1,n,t);return(Se(e)-r+i)/7}function ze(e,n){return e.slice(n,7).concat(e.slice(0,n))}_("w",["ww",2],"wo","week"),_("W",["WW",2],"Wo","isoWeek"),se("w",z,oe),se("ww",z,H),se("W",z,oe),se("WW",z,H),fe(["w","ww","W","WW"],function(e,n,t,r){n[r.substr(0,1)]=de(e)}),_("d",0,"do","day"),_("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_("e",0,0,"weekday"),_("E",0,0,"isoWeekday"),se("d",z),se("e",z),se("E",z),se("dd",function(e,n){return n.weekdaysMinRegex(e)}),se("ddd",function(e,n){return n.weekdaysShortRegex(e)}),se("dddd",function(e,n){return n.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,n,t,r){var i=t._locale.weekdaysParse(e,r,t._strict);null!=i?n.d=i:f(t).invalidWeekday=e}),fe(["d","e","E"],function(e,n,t,r){n[r]=de(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ie,$e=ie,en=ie;function nn(e,n,t){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return t?"dddd"===n?-1!==(i=Ne.call(this._weekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:"dddd"===n?-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:"ddd"===n?-1!==(i=Ne.call(this._shortWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ne.call(this._minWeekdaysParse,a))||-1!==(i=Ne.call(this._weekdaysParse,a))||-1!==(i=Ne.call(this._shortWeekdaysParse,a))?i:null}function tn(){function e(e,n){return n.length-e.length}var n,t,r,i,o,a=[],s=[],u=[],c=[];for(n=0;n<7;n++)t=h([2e3,1]).day(n),r=ce(this.weekdaysMin(t,"")),i=ce(this.weekdaysShort(t,"")),o=ce(this.weekdays(t,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function rn(){return this.hours()%12||12}function on(e,n){_(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function an(e,n){return n._meridiemParse}_("H",["HH",2],0,"hour"),_("h",["hh",2],0,rn),_("k",["kk",2],0,function(){return this.hours()||24}),_("hmm",0,0,function(){return""+rn.apply(this)+D(this.minutes(),2)}),_("hmmss",0,0,function(){return""+rn.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)}),_("Hmm",0,0,function(){return""+this.hours()+D(this.minutes(),2)}),_("Hmmss",0,0,function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)}),on("a",!0),on("A",!1),se("a",an),se("A",an),se("H",z,ae),se("h",z,oe),se("k",z,oe),se("HH",z,H),se("hh",z,H),se("kk",z,H),se("hmm",U),se("hmmss",Q),se("Hmm",U),se("Hmmss",Q),he(["H","HH"],ye),he(["k","kk"],function(e,n,t){var r=de(e);n[ye]=24===r?0:r}),he(["a","A"],function(e,n,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),he(["h","hh"],function(e,n,t){n[ye]=de(e),f(t).bigHour=!0}),he("hmm",function(e,n,t){var r=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r)),f(t).bigHour=!0}),he("hmmss",function(e,n,t){var r=e.length-4,i=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r,2)),n[xe]=de(e.substr(i)),f(t).bigHour=!0}),he("Hmm",function(e,n,t){var r=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r))}),he("Hmmss",function(e,n,t){var r=e.length-4,i=e.length-2;n[ye]=de(e.substr(0,r)),n[Ce]=de(e.substr(r,2)),n[xe]=de(e.substr(i))});var sn,un=Te("Hours",!0),cn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:ke,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:qe,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},ln={},dn={};function pn(e,n){var t,r=Math.min(e.length,n.length);for(t=0;t<r;t+=1)if(e[t]!==n[t])return t;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(n){var t=null;if(void 0===ln[n]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(n))try{t=sn._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}("./locale/"+n),mn(t)}catch(e){ln[n]=null}return ln[n]}function mn(e,n){var t;return e&&((t=u(n)?bn(e):gn(e,n))?sn=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function gn(e,n){if(null!==n){var t,r=cn;if(n.abbr=e,null!=ln[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=n.parentLocale)if(null!=ln[n.parentLocale])r=ln[n.parentLocale]._config;else{if(null==(t=fn(n.parentLocale)))return dn[n.parentLocale]||(dn[n.parentLocale]=[]),dn[n.parentLocale].push({name:e,config:n}),null;r=t._config}return ln[e]=new T(E(r,n)),dn[e]&&dn[e].forEach(function(e){gn(e.name,e.config)}),mn(e),ln[e]}return delete ln[e],null}function bn(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(n=fn(e))return n;e=[e]}return function(e){for(var n,t,r,i,o=0;o<e.length;){for(n=(i=hn(e[o]).split("-")).length,t=(t=hn(e[o+1]))?t.split("-"):null;n>0;){if(r=fn(i.slice(0,n).join("-")))return r;if(t&&t.length>=n&&pn(i,t)>=n-1)break;n--}o++}return sn}(e)}function vn(e){var n,t=e._a;return t&&-2===f(e).overflow&&(n=t[ve]<0||t[ve]>11?ve:t[Ie]<1||t[Ie]>Oe(t[be],t[ve])?Ie:t[ye]<0||t[ye]>24||24===t[ye]&&(0!==t[Ce]||0!==t[xe]||0!==t[Ae])?ye:t[Ce]<0||t[Ce]>59?Ce:t[xe]<0||t[xe]>59?xe:t[Ae]<0||t[Ae]>999?Ae:-1,f(e)._overflowDayOfYear&&(n<be||n>Ie)&&(n=Ie),f(e)._overflowWeeks&&-1===n&&(n=we),f(e)._overflowWeekday&&-1===n&&(n=Re),f(e).overflow=n),e}var In=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,xn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],An=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wn=/^\/?Date\((-?\d+)/i,Rn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e){var n,t,r,i,o,a,s=e._i,u=In.exec(s)||yn.exec(s),c=xn.length,l=An.length;if(u){for(f(e).iso=!0,n=0,t=c;n<t;n++)if(xn[n][1].exec(u[1])){i=xn[n][0],r=!1!==xn[n][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(n=0,t=l;n<t;n++)if(An[n][1].exec(u[3])){o=(u[2]||" ")+An[n][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Cn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Gn(e)}else e._isValid=!1}function En(e){var n,t,r,i,o,a,s,u,c,l=Rn.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(t=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[(u=l[4],c=parseInt(u,10),c<=49?2e3+c:c<=999?1900+c:c),ke.indexOf(t),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),!function(e,n,t){return!e||Qe.indexOf(e)===new Date(n[0],n[1],n[2]).getDay()||(f(t).weekdayMismatch=!0,t._isValid=!1,!1)}(l[1],n=s,e))return;e._a=n,e._tzm=function(e,n,t){if(e)return Sn[e];if(n)return 0;var r=parseInt(t,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),e._d=Le.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Tn(e,n,t){return null!=e?e:null!=n?n:t}function Dn(e){var n,t,i,o,a,s=[];if(!e._d){for(i=function(e){var n=new Date(r.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[Ie]&&null==e._a[ve]&&function(e){var n,t,r,i,o,a,s,u,c;null!=(n=e._w).GG||null!=n.W||null!=n.E?(o=1,a=4,t=Tn(n.GG,e._a[be],je(kn(),1,4).year),r=Tn(n.W,1),((i=Tn(n.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=je(kn(),o,a),t=Tn(n.gg,e._a[be],c.year),r=Tn(n.w,c.week),null!=n.d?((i=n.d)<0||i>6)&&(u=!0):null!=n.e?(i=n.e+o,(n.e<0||n.e>6)&&(u=!0)):i=o),r<1||r>Je(t,o,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(s=Ze(t,r,i,o,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Tn(e._a[be],i[be]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),t=Le(a,0,e._dayOfYear),e._a[ve]=t.getUTCMonth(),e._a[Ie]=t.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=s[n]=i[n];for(;n<7;n++)e._a[n]=s[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[ye]&&0===e._a[Ce]&&0===e._a[xe]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?Le:Xe).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(f(e).weekdayMismatch=!0)}}function Gn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var n,t,i,o,a,s,u,c=""+e._i,l=c.length,d=0;for(u=(i=V(e._f,e._locale).match(G)||[]).length,n=0;n<u;n++)(t=(c.match(ue(o=i[n],e))||[])[0])&&((a=c.substr(0,c.indexOf(t))).length>0&&f(e).unusedInput.push(a),c=c.slice(c.indexOf(t)+t.length),d+=t.length),k[o]?(t?f(e).empty=!1:f(e).unusedTokens.push(o),me(o,t,e)):e._strict&&!t&&f(e).unusedTokens.push(o);f(e).charsLeftOver=l-d,c.length>0&&f(e).unusedInput.push(c),e._a[ye]<=12&&!0===f(e).bigHour&&e._a[ye]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ye]=function(e,n,t){var r;return null==t?n:null!=e.meridiemHour?e.meridiemHour(n,t):null!=e.isPM?((r=e.isPM(t))&&n<12&&(n+=12),r||12!==n||(n=0),n):n}(e._locale,e._a[ye],e._meridiem),null!==(s=f(e).era)&&(e._a[be]=e._locale.erasConvertYear(s,e._a[be])),Dn(e),vn(e)}else En(e);else Nn(e)}function On(e){var n=e._i,t=e._f;return e._locale=e._locale||bn(e._l),null===n||void 0===t&&""===n?g({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),C(n)?new y(vn(n)):(l(n)?e._d=n:i(t)?function(e){var n,t,r,i,o,a,s=!1,u=e._f.length;if(0===u)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,n=I({},e),null!=e._useUTC&&(n._useUTC=e._useUTC),n._f=e._f[i],Gn(n),m(n)&&(a=!0),o+=f(n).charsLeftOver,o+=10*f(n).unusedTokens.length,f(n).score=o,s?o<r&&(r=o,t=n):(null==r||o<r||a)&&(r=o,t=n,a&&(s=!0));p(e,t||n)}(e):t?Gn(e):function(e){var n=e._i;u(n)?e._d=new Date(r.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(e){var n=wn.exec(e._i);null===n?(Nn(e),!1===e._isValid&&(delete e._isValid,En(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+n[1])}(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),Dn(e)):o(n)?function(e){if(!e._d){var n=W(e._i);e._a=d([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),Dn(e)}}(e):c(n)?e._d=new Date(n):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Mn(e,n,t,r,a){var u={};return!0!==n&&!1!==n||(r=n,n=void 0),!0!==t&&!1!==t||(r=t,t=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=t,u._i=e,u._f=n,u._strict=r,function(e){var n=new y(vn(On(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}(u)}function kn(e,n,t,r){return Mn(e,n,t,r,!1)}r.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var _n=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Bn=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Vn(e,n){var t,r;if(1===n.length&&i(n[0])&&(n=n[0]),!n.length)return kn();for(t=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][e](t)||(t=n[r]);return t}var Pn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yn(e){var n=W(e),t=n.year||0,r=n.quarter||0,i=n.month||0,o=n.week||n.isoWeek||0,s=n.day||0,u=n.hour||0,c=n.minute||0,l=n.second||0,d=n.millisecond||0;this._isValid=function(e){var n,t,r=!1,i=Pn.length;for(n in e)if(a(e,n)&&(-1===Ne.call(Pn,n)||null!=e[n]&&isNaN(e[n])))return!1;for(t=0;t<i;++t)if(e[Pn[t]]){if(r)return!1;parseFloat(e[Pn[t]])!==de(e[Pn[t]])&&(r=!0)}return!0}(n),this._milliseconds=+d+1e3*l+6e4*c+1e3*u*60*60,this._days=+s+7*o,this._months=+i+3*r+12*t,this._data={},this._locale=bn(),this._bubble()}function Wn(e){return e instanceof Yn}function Fn(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Xn(e,n){_(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+D(~~(e/60),2)+n+D(~~e%60,2)})}Xn("Z",":"),Xn("ZZ",""),se("Z",re),se("ZZ",re),he(["Z","ZZ"],function(e,n,t){t._useUTC=!0,t._tzm=Hn(re,e)});var Ln=/([\+\-]|\d\d)/gi;function Hn(e,n){var t,r,i=(n||"").match(e);return null===i?null:0===(r=60*(t=((i[i.length-1]||[])+"").match(Ln)||["-",0,0])[1]+de(t[2]))?0:"+"===t[0]?r:-r}function Zn(e,n){var t,i;return n._isUTC?(t=n.clone(),i=(C(e)||l(e)?e.valueOf():kn(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+i),r.updateOffset(t,!1),t):kn(e).local()}function jn(e){return-Math.round(e._d.getTimezoneOffset())}function Jn(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var zn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Un=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qn(e,n){var t,r,i,o,s,u,l=e,d=null;return Wn(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(l={},n?l[n]=+e:l.milliseconds=+e):(d=zn.exec(e))?(t="-"===d[1]?-1:1,l={y:0,d:de(d[Ie])*t,h:de(d[ye])*t,m:de(d[Ce])*t,s:de(d[xe])*t,ms:de(Fn(1e3*d[Ae]))*t}):(d=Un.exec(e))?l={y:qn(d[2],t="-"===d[1]?-1:1),M:qn(d[3],t),w:qn(d[4],t),d:qn(d[5],t),h:qn(d[6],t),m:qn(d[7],t),s:qn(d[8],t)}:null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=kn(l.from),s=kn(l.to),i=o.isValid()&&s.isValid()?(s=Zn(s,o),o.isBefore(s)?u=Kn(o,s):((u=Kn(s,o)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new Yn(l),Wn(e)&&a(e,"_locale")&&(r._locale=e._locale),Wn(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function qn(e,n){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function Kn(e,n){var t={};return t.months=n.month()-e.month()+12*(n.year()-e.year()),e.clone().add(t.months,"M").isAfter(n)&&--t.months,t.milliseconds=+n-+e.clone().add(t.months,"M"),t}function $n(e,n){return function(t,r){var i;return null===r||isNaN(+r)||(S(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),et(this,Qn(t,r),e),this}}function et(e,n,t,i){var o=n._milliseconds,a=Fn(n._days),s=Fn(n._months);e.isValid()&&(i=null==i||i,s&&Ye(e,De(e,"Month")+s*t),a&&Ge(e,"Date",De(e,"Date")+a*t),o&&e._d.setTime(e._d.valueOf()+o*t),i&&r.updateOffset(e,a||s))}Qn.fn=Yn.prototype,Qn.invalid=function(){return Qn(NaN)};var nt=$n(1,"add"),tt=$n(-1,"subtract");function rt(e){return"string"==typeof e||e instanceof String}function it(e,n){if(e.date()<n.date())return-it(n,e);var t=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(t,"months");return-(t+(n-r<0?(n-r)/(r-e.clone().add(t-1,"months")):(n-r)/(e.clone().add(t+1,"months")-r)))||0}function ot(e){var n;return void 0===e?this._locale._abbr:(null!=(n=bn(e))&&(this._locale=n),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var at=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function st(){return this._locale}var ut=1e3,ct=6e4,lt=36e5,dt=126227808e5;function pt(e,n){return(e%n+n)%n}function ht(e,n,t){return e<100&&e>=0?new Date(e+400,n,t)-dt:new Date(e,n,t).valueOf()}function ft(e,n,t){return e<100&&e>=0?Date.UTC(e+400,n,t)-dt:Date.UTC(e,n,t)}function mt(e,n){return n.erasAbbrRegex(e)}function gt(){var e,n,t,r,i,o=[],a=[],s=[],u=[],c=this.eras();for(e=0,n=c.length;e<n;++e)t=ce(c[e].name),r=ce(c[e].abbr),i=ce(c[e].narrow),a.push(t),o.push(r),s.push(i),u.push(t),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function bt(e,n){_(0,[e,e.length],0,n)}function vt(e,n,t,r,i){var o;return null==e?je(this,r,i).year:(n>(o=Je(e,r,i))&&(n=o),It.call(this,e,n,t,r,i))}function It(e,n,t,r,i){var o=Ze(e,n,t,r,i),a=Le(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}_("N",0,0,"eraAbbr"),_("NN",0,0,"eraAbbr"),_("NNN",0,0,"eraAbbr"),_("NNNN",0,0,"eraName"),_("NNNNN",0,0,"eraNarrow"),_("y",["y",1],"yo","eraYear"),_("y",["yy",2],0,"eraYear"),_("y",["yyy",3],0,"eraYear"),_("y",["yyyy",4],0,"eraYear"),se("N",mt),se("NN",mt),se("NNN",mt),se("NNNN",function(e,n){return n.erasNameRegex(e)}),se("NNNNN",function(e,n){return n.erasNarrowRegex(e)}),he(["N","NN","NNN","NNNN","NNNNN"],function(e,n,t,r){var i=t._locale.erasParse(e,r,t._strict);i?f(t).era=i:f(t).invalidEra=e}),se("y",ee),se("yy",ee),se("yyy",ee),se("yyyy",ee),se("yo",function(e,n){return n._eraYearOrdinalRegex||ee}),he(["y","yy","yyy","yyyy"],be),he(["yo"],function(e,n,t,r){var i;t._locale._eraYearOrdinalRegex&&(i=e.match(t._locale._eraYearOrdinalRegex)),n[be]=t._locale.eraYearOrdinalParse?t._locale.eraYearOrdinalParse(e,i):parseInt(e,10)}),_(0,["gg",2],0,function(){return this.weekYear()%100}),_(0,["GG",2],0,function(){return this.isoWeekYear()%100}),bt("gggg","weekYear"),bt("ggggg","weekYear"),bt("GGGG","isoWeekYear"),bt("GGGGG","isoWeekYear"),se("G",ne),se("g",ne),se("GG",z,H),se("gg",z,H),se("GGGG",K,j),se("gggg",K,j),se("GGGGG",$,J),se("ggggg",$,J),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,r){n[r.substr(0,2)]=de(e)}),fe(["gg","GG"],function(e,n,t,i){n[i]=r.parseTwoDigitYear(e)}),_("Q",0,"Qo","quarter"),se("Q",L),he("Q",function(e,n){n[ve]=3*(de(e)-1)}),_("D",["DD",2],"Do","date"),se("D",z,oe),se("DD",z,H),se("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),he(["D","DD"],Ie),he("Do",function(e,n){n[Ie]=de(e.match(z)[0])});var yt=Te("Date",!0);_("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",q),se("DDDD",Z),he(["DDD","DDDD"],function(e,n,t){t._dayOfYear=de(e)}),_("m",["mm",2],0,"minute"),se("m",z,ae),se("mm",z,H),he(["m","mm"],Ce);var Ct=Te("Minutes",!1);_("s",["ss",2],0,"second"),se("s",z,ae),se("ss",z,H),he(["s","ss"],xe);var xt,At,wt=Te("Seconds",!1);for(_("S",0,0,function(){return~~(this.millisecond()/100)}),_(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_(0,["SSS",3],0,"millisecond"),_(0,["SSSS",4],0,function(){return 10*this.millisecond()}),_(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),_(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),_(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),_(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),_(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),se("S",q,L),se("SS",q,H),se("SSS",q,Z),xt="SSSS";xt.length<=9;xt+="S")se(xt,ee);function Rt(e,n){n[Ae]=de(1e3*("0."+e))}for(xt="S";xt.length<=9;xt+="S")he(xt,Rt);At=Te("Milliseconds",!1),_("z",0,0,"zoneAbbr"),_("zz",0,0,"zoneName");var St=y.prototype;function Nt(e){return e}St.add=nt,St.calendar=function(e,n){var t;1===arguments.length&&(arguments[0]?C(t=arguments[0])||l(t)||rt(t)||c(t)||function(e){var n=i(e),t=!1;return n&&(t=0===e.filter(function(n){return!c(n)&&rt(e)}).length),n&&t}(t)||function(e){var n,t=o(e)&&!s(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(n=0;n<u;n+=1)r=r||a(e,i[n]);return t&&r}(t)||null==t?(e=arguments[0],n=void 0):function(e){var n,t=o(e)&&!s(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<i.length;n+=1)r=r||a(e,i[n]);return t&&r}(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var u=e||kn(),d=Zn(u,this).startOf("day"),p=r.calendarFormat(this,d)||"sameElse",h=n&&(N(n[p])?n[p].call(this,u):n[p]);return this.format(h||this.localeData().calendar(p,this,kn(u)))},St.clone=function(){return new y(this)},St.diff=function(e,n,t){var r,i,o;if(!this.isValid())return NaN;if(!(r=Zn(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),n=Y(n)){case"year":o=it(this,r)/12;break;case"month":o=it(this,r);break;case"quarter":o=it(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return t?o:le(o)},St.endOf=function(e){var n,t;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?ft:ht,e){case"year":n=t(this.year()+1,0,1)-1;break;case"quarter":n=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=t(this.year(),this.month()+1,1)-1;break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=lt-pt(n+(this._isUTC?0:this.utcOffset()*ct),lt)-1;break;case"minute":n=this._d.valueOf(),n+=ct-pt(n,ct)-1;break;case"second":n=this._d.valueOf(),n+=ut-pt(n,ut)-1}return this._d.setTime(n),r.updateOffset(this,!0),this},St.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var n=B(this,e);return this.localeData().postformat(n)},St.from=function(e,n){return this.isValid()&&(C(e)&&e.isValid()||kn(e).isValid())?Qn({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},St.fromNow=function(e){return this.from(kn(),e)},St.to=function(e,n){return this.isValid()&&(C(e)&&e.isValid()||kn(e).isValid())?Qn({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},St.toNow=function(e){return this.to(kn(),e)},St.get=function(e){return N(this[e=Y(e)])?this[e]():this},St.invalidAt=function(){return f(this).overflow},St.isAfter=function(e,n){var t=C(e)?e:kn(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(n).valueOf())},St.isBefore=function(e,n){var t=C(e)?e:kn(e);return!(!this.isValid()||!t.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()<t.valueOf():this.clone().endOf(n).valueOf()<t.valueOf())},St.isBetween=function(e,n,t,r){var i=C(e)?e:kn(e),o=C(n)?n:kn(n);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,t):!this.isBefore(i,t))&&(")"===r[1]?this.isBefore(o,t):!this.isAfter(o,t))},St.isSame=function(e,n){var t,r=C(e)?e:kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(n=Y(n)||"millisecond")?this.valueOf()===r.valueOf():(t=r.valueOf(),this.clone().startOf(n).valueOf()<=t&&t<=this.clone().endOf(n).valueOf()))},St.isSameOrAfter=function(e,n){return this.isSame(e,n)||this.isAfter(e,n)},St.isSameOrBefore=function(e,n){return this.isSame(e,n)||this.isBefore(e,n)},St.isValid=function(){return m(this)},St.lang=at,St.locale=ot,St.localeData=st,St.max=Bn,St.min=_n,St.parsingFlags=function(){return p({},f(this))},St.set=function(e,n){if("object"==typeof e){var t,r=function(e){var n,t=[];for(n in e)a(e,n)&&t.push({unit:n,priority:X[n]});return t.sort(function(e,n){return e.priority-n.priority}),t}(e=W(e)),i=r.length;for(t=0;t<i;t++)this[r[t].unit](e[r[t].unit])}else if(N(this[e=Y(e)]))return this[e](n);return this},St.startOf=function(e){var n,t;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(t=this._isUTC?ft:ht,e){case"year":n=t(this.year(),0,1);break;case"quarter":n=t(this.year(),this.month()-this.month()%3,1);break;case"month":n=t(this.year(),this.month(),1);break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=t(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=pt(n+(this._isUTC?0:this.utcOffset()*ct),lt);break;case"minute":n=this._d.valueOf(),n-=pt(n,ct);break;case"second":n=this._d.valueOf(),n-=pt(n,ut)}return this._d.setTime(n),r.updateOffset(this,!0),this},St.subtract=tt,St.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},St.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},St.toDate=function(){return new Date(this.valueOf())},St.toISOString=function(e){if(!this.isValid())return null;var n=!0!==e,t=n?this.clone().utc():this;return t.year()<0||t.year()>9999?B(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(t,"Z")):B(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},St.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,n,t="moment",r="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+n+"-MM-DD[T]HH:mm:ss.SSS"+r+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(St[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),St.toJSON=function(){return this.isValid()?this.toISOString():null},St.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},St.unix=function(){return Math.floor(this.valueOf()/1e3)},St.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},St.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},St.eraName=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].name;if(r[e].until<=t&&t<=r[e].since)return r[e].name}return""},St.eraNarrow=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].narrow;if(r[e].until<=t&&t<=r[e].since)return r[e].narrow}return""},St.eraAbbr=function(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e){if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until)return r[e].abbr;if(r[e].until<=t&&t<=r[e].since)return r[e].abbr}return""},St.eraYear=function(){var e,n,t,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*t+o[e].offset;return this.year()},St.year=Ee,St.isLeapYear=function(){return ge(this.year())},St.weekYear=function(e){return vt.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},St.isoWeekYear=function(e){return vt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},St.quarter=St.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},St.month=We,St.daysInMonth=function(){return Oe(this.year(),this.month())},St.week=St.weeks=function(e){var n=this.localeData().week(this);return null==e?n:this.add(7*(e-n),"d")},St.isoWeek=St.isoWeeks=function(e){var n=je(this,1,4).week;return null==e?n:this.add(7*(e-n),"d")},St.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},St.weeksInWeekYear=function(){var e=this.localeData()._week;return Je(this.weekYear(),e.dow,e.doy)},St.isoWeeksInYear=function(){return Je(this.year(),1,4)},St.isoWeeksInISOWeekYear=function(){return Je(this.isoWeekYear(),1,4)},St.date=yt,St.day=St.days=function(e){if(!this.isValid())return null!=e?this:NaN;var n=De(this,"Day");return null!=e?(e=function(e,n){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-n,"d")):n},St.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==e?n:this.add(e-n,"d")},St.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var n=function(e,n){return"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},St.dayOfYear=function(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?n:this.add(e-n,"d")},St.hour=St.hours=un,St.minute=St.minutes=Ct,St.second=St.seconds=wt,St.millisecond=St.milliseconds=At,St.utcOffset=function(e,n,t){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Hn(re,e)))return this}else Math.abs(e)<16&&!t&&(e*=60);return!this._isUTC&&n&&(i=jn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!n||this._changeInProgress?et(this,Qn(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:jn(this)},St.utc=function(e){return this.utcOffset(0,e)},St.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jn(this),"m")),this},St.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Hn(te,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},St.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)},St.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},St.isLocal=function(){return!!this.isValid()&&!this._isUTC},St.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},St.isUtc=Jn,St.isUTC=Jn,St.zoneAbbr=function(){return this._isUTC?"UTC":""},St.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},St.dates=A("dates accessor is deprecated. Use date instead.",yt),St.months=A("months accessor is deprecated. Use month instead",We),St.years=A("years accessor is deprecated. Use year instead",Ee),St.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,n){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}),St.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,n={};return I(n,this),(n=On(n))._a?(e=n._isUTC?h(n._a):kn(n._a),this._isDSTShifted=this.isValid()&&function(e,n){var t,r=Math.min(e.length,n.length),i=Math.abs(e.length-n.length),o=0;for(t=0;t<r;t++)de(e[t])!==de(n[t])&&o++;return o+i}(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Et=T.prototype;function Tt(e,n,t,r){var i=bn(),o=h().set(r,n);return i[t](o,e)}function Dt(e,n,t){if(c(e)&&(n=e,e=void 0),e=e||"",null!=n)return Tt(e,n,t,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Tt(e,r,t,"month");return i}function Gt(e,n,t,r){"boolean"==typeof e?(c(n)&&(t=n,n=void 0),n=n||""):(t=n=e,e=!1,c(n)&&(t=n,n=void 0),n=n||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=t)return Tt(n,(t+a)%7,r,"day");for(i=0;i<7;i++)s[i]=Tt(n,(i+a)%7,r,"day");return s}Et.calendar=function(e,n,t){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(n,t):r},Et.longDateFormat=function(e){var n=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return n||!t?n:(this._longDateFormat[e]=t.match(G).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Et.invalidDate=function(){return this._invalidDate},Et.ordinal=function(e){return this._ordinal.replace("%d",e)},Et.preparse=Nt,Et.postformat=Nt,Et.relativeTime=function(e,n,t,r){var i=this._relativeTime[t];return N(i)?i(e,n,t,r):i.replace(/%d/i,e)},Et.pastFuture=function(e,n){var t=this._relativeTime[e>0?"future":"past"];return N(t)?t(n):t.replace(/%s/i,n)},Et.set=function(e){var n,t;for(t in e)a(e,t)&&(N(n=e[t])?this[t]=n:this["_"+t]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Et.eras=function(e,n){var t,i,o,a=this._eras||bn("en")._eras;for(t=0,i=a.length;t<i;++t)switch("string"==typeof a[t].since&&(o=r(a[t].since).startOf("day"),a[t].since=o.valueOf()),typeof a[t].until){case"undefined":a[t].until=Infinity;break;case"string":o=r(a[t].until).startOf("day").valueOf(),a[t].until=o.valueOf()}return a},Et.erasParse=function(e,n,t){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),t)switch(n){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]},Et.erasConvertYear=function(e,n){var t=e.since<=e.until?1:-1;return void 0===n?r(e.since).year():r(e.since).year()+(n-e.offset)*t},Et.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||gt.call(this),e?this._erasAbbrRegex:this._erasRegex},Et.erasNameRegex=function(e){return a(this,"_erasNameRegex")||gt.call(this),e?this._erasNameRegex:this._erasRegex},Et.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||gt.call(this),e?this._erasNarrowRegex:this._erasRegex},Et.months=function(e,n){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_e).test(n)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Et.monthsShort=function(e,n){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_e.test(n)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Et.monthsParse=function(e,n,t){var r,i,o;if(this._monthsParseExact)return Pe.call(this,e,n,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),t&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),t||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),t&&"MMMM"===n&&this._longMonthsParse[r].test(e))return r;if(t&&"MMM"===n&&this._shortMonthsParse[r].test(e))return r;if(!t&&this._monthsParse[r].test(e))return r}},Et.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Et.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Et.week=function(e){return je(e,this._week.dow,this._week.doy).week},Et.firstDayOfYear=function(){return this._week.doy},Et.firstDayOfWeek=function(){return this._week.dow},Et.weekdays=function(e,n){var t=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===e?ze(t,this._week.dow):e?t[e.day()]:t},Et.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Et.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Et.weekdaysParse=function(e,n,t){var r,i,o;if(this._weekdaysParseExact)return nn.call(this,e,n,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),t&&"dddd"===n&&this._fullWeekdaysParse[r].test(e))return r;if(t&&"ddd"===n&&this._shortWeekdaysParse[r].test(e))return r;if(t&&"dd"===n&&this._minWeekdaysParse[r].test(e))return r;if(!t&&this._weekdaysParse[r].test(e))return r}},Et.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Et.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Et.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||tn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=en),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Et.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Et.meridiem=function(e,n,t){return e>11?t?"pm":"PM":t?"am":"AM"},mn("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10;return e+(1===de(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),r.lang=A("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=A("moment.langData is deprecated. Use moment.localeData instead.",bn);var Ot=Math.abs;function Mt(e,n,t,r){var i=Qn(n,t);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function kt(e){return e<0?Math.floor(e):Math.ceil(e)}function _t(e){return 4800*e/146097}function Bt(e){return 146097*e/4800}function Vt(e){return function(){return this.as(e)}}var Pt=Vt("ms"),Yt=Vt("s"),Wt=Vt("m"),Ft=Vt("h"),Xt=Vt("d"),Lt=Vt("w"),Ht=Vt("M"),Zt=Vt("Q"),jt=Vt("y"),Jt=Pt;function zt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ut=zt("milliseconds"),Qt=zt("seconds"),qt=zt("minutes"),Kt=zt("hours"),$t=zt("days"),er=zt("months"),nr=zt("years"),tr=Math.round,rr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ir(e,n,t,r,i){return i.relativeTime(n||1,!!t,e,r)}var or=Math.abs;function ar(e){return(e>0)-(e<0)||+e}function sr(){if(!this.isValid())return this.localeData().invalidDate();var e,n,t,r,i,o,a,s,u=or(this._milliseconds)/1e3,c=or(this._days),l=or(this._months),d=this.asSeconds();return d?(e=le(u/60),n=le(e/60),u%=60,e%=60,t=le(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ar(this._months)!==ar(d)?"-":"",a=ar(this._days)!==ar(d)?"-":"",s=ar(this._milliseconds)!==ar(d)?"-":"",i+"P"+(t?o+t+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(n||e||u?"T":"")+(n?s+n+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ur=Yn.prototype;return ur.isValid=function(){return this._isValid},ur.abs=function(){var e=this._data;return this._milliseconds=Ot(this._milliseconds),this._days=Ot(this._days),this._months=Ot(this._months),e.milliseconds=Ot(e.milliseconds),e.seconds=Ot(e.seconds),e.minutes=Ot(e.minutes),e.hours=Ot(e.hours),e.months=Ot(e.months),e.years=Ot(e.years),this},ur.add=function(e,n){return Mt(this,e,n,1)},ur.subtract=function(e,n){return Mt(this,e,n,-1)},ur.as=function(e){if(!this.isValid())return NaN;var n,t,r=this._milliseconds;if("month"===(e=Y(e))||"quarter"===e||"year"===e)switch(t=this._months+_t(n=this._days+r/864e5),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(n=this._days+Math.round(Bt(this._months)),e){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return 24*n+r/36e5;case"minute":return 1440*n+r/6e4;case"second":return 86400*n+r/1e3;case"millisecond":return Math.floor(864e5*n)+r;default:throw new Error("Unknown unit "+e)}},ur.asMilliseconds=Pt,ur.asSeconds=Yt,ur.asMinutes=Wt,ur.asHours=Ft,ur.asDays=Xt,ur.asWeeks=Lt,ur.asMonths=Ht,ur.asQuarters=Zt,ur.asYears=jt,ur.valueOf=Jt,ur._bubble=function(){var e,n,t,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*kt(Bt(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,n=le(e/60),u.minutes=n%60,t=le(n/60),u.hours=t%24,a+=le(t/24),s+=i=le(_t(a)),a-=kt(Bt(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},ur.clone=function(){return Qn(this)},ur.get=function(e){return e=Y(e),this.isValid()?this[e+"s"]():NaN},ur.milliseconds=Ut,ur.seconds=Qt,ur.minutes=qt,ur.hours=Kt,ur.days=$t,ur.weeks=function(){return le(this.days()/7)},ur.months=er,ur.years=nr,ur.humanize=function(e,n){if(!this.isValid())return this.localeData().invalidDate();var t,r,i=!1,o=rr;return"object"==typeof e&&(n=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof n&&(o=Object.assign({},rr,n),null!=n.s&&null==n.ss&&(o.ss=n.s-1)),r=function(e,n,t,r){var i=Qn(e).abs(),o=tr(i.as("s")),a=tr(i.as("m")),s=tr(i.as("h")),u=tr(i.as("d")),c=tr(i.as("M")),l=tr(i.as("w")),d=tr(i.as("y")),p=o<=t.ss&&["s",o]||o<t.s&&["ss",o]||a<=1&&["m"]||a<t.m&&["mm",a]||s<=1&&["h"]||s<t.h&&["hh",s]||u<=1&&["d"]||u<t.d&&["dd",u];return null!=t.w&&(p=p||l<=1&&["w"]||l<t.w&&["ww",l]),(p=p||c<=1&&["M"]||c<t.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=n,p[3]=+e>0,p[4]=r,ir.apply(null,p)}(this,!i,o,t=this.localeData()),i&&(r=t.pastFuture(+this,r)),t.postformat(r)},ur.toISOString=sr,ur.toString=sr,ur.toJSON=sr,ur.locale=ot,ur.localeData=st,ur.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sr),ur.lang=at,_("X",0,0,"unix"),_("x",0,0,"valueOf"),se("x",ne),se("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,n,t){t._d=new Date(1e3*parseFloat(e))}),he("x",function(e,n,t){t._d=new Date(de(e))}),r.version="2.30.1",n=kn,r.fn=St,r.min=function(){return Vn("isBefore",[].slice.call(arguments,0))},r.max=function(){return Vn("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return kn(1e3*e)},r.months=function(e,n){return Dt(e,n,"months")},r.isDate=l,r.locale=mn,r.invalid=g,r.duration=Qn,r.isMoment=C,r.weekdays=function(e,n,t){return Gt(e,n,t,"weekdays")},r.parseZone=function(){return kn.apply(null,arguments).parseZone()},r.localeData=bn,r.isDuration=Wn,r.monthsShort=function(e,n){return Dt(e,n,"monthsShort")},r.weekdaysMin=function(e,n,t){return Gt(e,n,t,"weekdaysMin")},r.defineLocale=gn,r.updateLocale=function(e,n){if(null!=n){var t,r,i=cn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(E(ln[e]._config,n)):(null!=(r=fn(e))&&(i=r._config),n=E(i,n),null==r&&(n.abbr=e),(t=new T(n)).parentLocale=ln[e],ln[e]=t),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]},r.locales=function(){return w(ln)},r.weekdaysShort=function(e,n,t){return Gt(e,n,t,"weekdaysShort")},r.normalizeUnits=Y,r.relativeTimeRounding=function(e){return void 0===e?tr:"function"==typeof e&&(tr=e,!0)},r.relativeTimeThreshold=function(e,n){return void 0!==rr[e]&&(void 0===n?rr[e]:(rr[e]=n,"s"===e&&(rr.ss=n-1),!0))},r.calendarFormat=function(e,n){var t=e.diff(n,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"},r.prototype=St,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}),qs=function(e,n){n.set("year",e.year()).set("month",e.month()).set("day",e.day())};exports.ApplicationInfoDocument=za,exports.CompanyConfigDocument=Ua,exports.ConfirmTooltip=x,exports.CounterDirectoriesDocument=Qa,exports.CountersDocument=qa,exports.CreateDashboardDocument=Ea,exports.CreateOrderDocument=Ta,exports.CreateProductDocument=Da,exports.CreateStatusChangeDocument=Ga,exports.CreateUserPresenceDocument=Oa,exports.CreateWidgetDocument=Ma,exports.CurrentUserDocument=Ka,exports.DashboardsDocument=$a,exports.DepartmentsDocument=es,exports.FloorPlansDocument=ns,exports.GraphqlWsClient=Js,exports.ListStatusChangesDocument=Is,exports.ListWorkplacesDocument=ys,exports.MetricValuesDocument=ts,exports.MetricsDocument=rs,exports.NotificationsDocument=is,exports.OrdersDocument=os,exports.OrdersExecutionsDocument=as,exports.PauseOrderExecutionDocument=ka,exports.ProductsDocument=ss,exports.ReasonsDocument=us,exports.ReasonsRecommendationDocument=cs,exports.RemoveDashboardDocument=_a,exports.RemoveUserPresenceDocument=Ba,exports.RemoveWidgetDocument=Va,exports.RemoveWorkplaceUsersPresencesDocument=Pa,exports.SetCounterDocument=Ya,exports.ShiftsDocument=ls,exports.SortableSelect=function(e){var n=e.options,t=e.selected,r=e.onChange,i=function(e){var n,i,o,a=e.active,s=e.over;if(a.id!==(null==s?void 0:s.id)){var u=t.findIndex(function(e){return e===a.id}),c=t.findIndex(function(e){return e===(null==s?void 0:s.id)});r((n=t,i=u,o=c,function(e,n,t){const r=n<0?e.length+n:n;if(r>=0&&r<e.length){const r=t<0?e.length+t:t,[i]=e.splice(n,1);e.splice(r,0,i)}}(n=[...n],i,o),n))}};return h.default.createElement(nt,{placeholder:e.placeholder,isMulti:!0,options:n,value:t.map(function(e){return n.find(function(n){return n.value===e})}),onChange:function(e){return r([].concat(e||[]).map(function(e){return e.value}))},closeMenuOnSelect:!1,components:{MultiValueContainer:pi,MultiValueLabel:hi,ValueContainer:function(e){return h.default.createElement(Ur,{onDragEnd:i},h.default.createElement(oi,{items:t},e.children))}}})},exports.StandardRatesDocument=ds,exports.StartOrderExecutionDocument=Wa,exports.StatusChangeTransitionPermissionsDocument=ps,exports.StatusChangesDocument=hs,exports.StopOrderExecutionDocument=Fa,exports.UpdateDashboardDocument=Xa,exports.UpdateNotificationDocument=La,exports.UpdateOrderDocument=Ha,exports.UpdateOrderExecutionDocument=Za,exports.UpdateStatusChangeDocument=ja,exports.UpdateWidgetDocument=Ja,exports.UsersDocument=fs,exports.UsersPresencesDocument=ms,exports.WidgetCard=bi,exports.WidgetDocument=gs,exports.WidgetsDocument=bs,exports.WorkplaceEventDocument=Cs,exports.WorkplacesDocument=vs,exports.getCurrentShift=function(e,n){return n.find(function(n){return e.isBetween(n.startedAt,n.finishedAt)})||null},exports.getGqlWsClient=zs,exports.getGraphqlSdk=Us,exports.getRecentShift=function(e,n){return n.length?n.reduce(function(n,t){return Math.abs(e.diff(t.finishedAt))<Math.abs(e.diff(n.finishedAt))?t:n}):null},exports.getSdk=As,exports.normalizeShifts=function(e,n){var t=[];return e.forEach(function(e){var r=Qs(e.startedAt,"YYYY-MM-DD HH:mm:ss ZZ"),i=Qs(e.finishedAt,"YYYY-MM-DD HH:mm:ss ZZ");if(qs(n,r),qs(n,i),r.isAfter(i)){var o=Qs(r);o.subtract(1,"day");var a=Qs(i);a.add(1,"day"),t.push({name:e.name,startedAt:o,finishedAt:i}),t.push({name:e.name,startedAt:r,finishedAt:a})}else t.push({name:e.name,startedAt:r,finishedAt:i})}),t},exports.useGqlClients=function(n){var t,r=n.url,i=n.wsUrl,o=n.lang,a=l.useStore().sessionStore,s=e.useState(),u=s[0],c=s[1],d=e.useState(),p=d[0],h=d[1],f=i||r.replace("graphql","cable"),m=(null==(t=a.loginStatus.authResponse)?void 0:t.accessToken)||"";return e.useEffect(function(){r&&c(Us(r,l.fetch))},[r]),e.useEffect(function(){r&&m&&h(zs(f||r.replace("graphql","cable"),m,o))},[r,f,m,o]),{graphqlSdk:u,gqlWsClient:p}};
16
16
  //# sourceMappingURL=index.js.map