@withgraphite/graphite-cli 1.5.2 → 1.6.0

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see main.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GraphiteInteractive=t():e.GraphiteInteractive=t()}(self,(function(){return function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},2858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3269:function(e,t,n){var r=n(379);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},3038:function(e,t,n){var r=n(2858),i=n(3884),o=n(379),a=n(521);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(3646),i=n(6860),o=n(379),a=n(8206);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},7757:function(e,t,n){e.exports=n(9727)},6815:function(e,t,n){"use strict";n.d(t,{S:function(){return f},W:function(){return d}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(885),u=n(184),l=n(2791),c=n(51);function d(e){var t,n=e.title,r=e.description,i=e.error,o=e.buttons,a=e.hideExpand,d=(0,l.useState)(!1),f=(0,s.Z)(d,2),h=f[0],p=f[1],v=null!=r?r:null==i?void 0:i.message;return(0,u.jsxs)("div",Object.assign({className:"error-notice",onClick:function(){return!a&&p((function(e){return!e}))}},{children:[(0,u.jsxs)("div",Object.assign({className:"error-notice-left"},{children:[a?null:(0,u.jsx)("div",Object.assign({className:"error-notice-arrow"},{children:(0,u.jsx)(c.J,{icon:h?"triangle-down":"triangle-right"})})),(0,u.jsxs)("div",Object.assign({className:"error-notice-content"},{children:[(0,u.jsx)("span",Object.assign({className:"error-notice-title"},{children:n})),v?(0,u.jsx)("span",Object.assign({className:"error-notice-byline"},{children:v})):null,h&&i?(0,u.jsx)("span",Object.assign({className:"error-notice-stack-trace"},{children:null!==(t=i.stack)&&void 0!==t?t:i.message})):null]}))]})),o?(0,u.jsx)("div",Object.assign({className:"error-notice-buttons"},{children:o})):null]}))}var f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).state={error:null},i}return(0,i.Z)(n,[{key:"render",value:function(){return null!=this.state.error?(0,u.jsx)(d,{title:"Something went wrong",error:this.state.error}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),n}(l.Component)},51:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(184),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e){var t=e.icon,n=e.size,o=e.slot,a=i(e,["icon","size","slot"]);return(0,r.jsx)("div",Object.assign({slot:o,className:"codicon codicon-".concat(t," icon-size-").concat(null!=n?n:"S")},a))}},8122:function(e,t,n){"use strict";n.d(t,{s:function(){return f},X:function(){return d}});var r,i,o,a=n(184),s=n(32),u=n(1485),l=n(4447),c="gti-color-theme",d=(0,u.u)({default:null!==(o=null!==(i=null===(r=l.J.theme)||void 0===r?void 0:r.getTheme())&&void 0!==i?i:localStorage.getItem(c))&&void 0!==o?o:"dark",setter:function(e){localStorage.setItem(c,e)},effects:[function(e){var t,n=e.setSelf,r=null===(t=l.J.theme)||void 0===t?void 0:t.onDidChangeTheme((function(e){n(e)}));return function(){return null==r?void 0:r.dispose()}}]}),f=(0,s.Pi)((function(e){var t=e.children,n=d.get();return(0,a.jsx)("div",Object.assign({className:"gti-root ".concat(n,"-theme")},{children:t}))}))},3336:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=console},7338:function(e,t,n){"use strict";function r(e){var t=e.genKey,n=e.genValue,r={};return function(e){var i=t(e);return i in r||(r[i]=n(e)),r[i]}}n.d(t,{N:function(){return r}})},1485:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(5671),i=n(3144),o=n(7762),a=n(4098);function s(e){var t=new u(e.default,e.setter);if(e.effects){var n,r=(0,o.Z)(e.effects);try{for(r.s();!(n=r.n()).done;)(0,n.value)({setSelf:t.set})}catch(e){r.e(e)}finally{r.f()}}return t}var u=function(){function e(t,n){(0,r.Z)(this,e),this.setter=n,this.value=t,(0,a.rC)(this,{value:a.LO.ref,set:a.aD.bound})}return(0,i.Z)(e,[{key:"get",value:function(){return this.value}},{key:"set",value:function(e){this.value="function"==typeof e?e(this.get()):e,this.setter&&this.setter(this.value)}}]),e}()},4447:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});var r,i=n(1828),o={platformName:"browser",confirm:function(e,t){var n=window.confirm(e+"\n"+(null!=t?t:""));return Promise.resolve(n)},openFile:function(e,t){i.H.postMessage({type:"platform/openFile",path:e,options:t})},openExternalLink:function(e){window.open(e,"_blank")},clipboardCopy:function(e){navigator.clipboard.writeText(e)}},a=null!==(r=window.gtiPlatform)&&void 0!==r?r:o;window.gtiPlatform=a},5288:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(88),i=n(4098).LO.box({comparison:{type:r.ComparisonType.UncommittedChanges},visible:!1},{deep:!1})},1828:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(5671),i=n(3144),o=n(88),a=n(4975),s=new(function(){function e(){var t=this;(0,r.Z)(this,e),this.listenersByType=new Map,this.incomingListener=a.j.onMessage((function(e){var n=(0,o.deserializeFromString)(e.data),r=n.type,i=t.listenersByType.get(r);i&&i.forEach((function(e){return e(n)}))})),this.cwdChangeHandlers=[]}return(0,i.Z)(e,[{key:"dispose",value:function(){this.incomingListener.dispose()}},{key:"onMessageOfType",value:function(e,t){var n=this,r=this.listenersByType.get(e);return null==r&&(r=new Set,this.listenersByType.set(e,r)),null==r||r.add(t),{dispose:function(){var r=n.listenersByType.get(e);r&&r.delete(t)}}}},{key:"nextMessageMatching",value:function(e,t){var n=(0,o.defer)(),r=this.onMessageOfType(e,(function(e){t(e)&&(null==r||r.dispose(),r=null,n.resolve(e))}));return n.promise}},{key:"postMessage",value:function(e){a.j.postMessage((0,o.serializeToString)(e))}},{key:"postMessageWithPayload",value:function(e,t){a.j.postMessage((0,o.serializeToString)(Object.assign(Object.assign({},e),{hasBinaryPayload:!0}))),a.j.postMessage(t)}},{key:"onConnectOrReconnect",value:function(e){var t=!0,n=void 0,r=a.j.onChangeStatus((function(r){"reconnecting"===r.type?t=!0:"open"===r.type&&(t&&(n=e()),t=!1)}));return function(){r.dispose(),"function"==typeof n&&(null==n||n())}}},{key:"onCwdChanged",value:function(e){var t=this;return this.cwdChangeHandlers.push(e),function(){t.cwdChangeHandlers.splice(t.cwdChangeHandlers.indexOf(e),1)}}},{key:"cwdChanged",value:function(){this.cwdChangeHandlers.forEach((function(e){return e()}))}},{key:"onSetup",value:function(e){var t=this.onConnectOrReconnect(e),n=this.onCwdChanged(e);return function(){t(),n()}}}]),e}());window.clientToServerAPI=s},4975:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var r=n(7762),i=n(5671),o=n(3144),a=n(88),s=n(3336),u=n(1155),l="undefined"!=typeof acquireVsCodeApi?acquireVsCodeApi():null,c=function(){function e(t){(0,i.Z)(this,e),this.vscode=t}return(0,o.Z)(e,[{key:"onMessage",value:function(e){return window.addEventListener("message",e),{dispose:function(){return window.removeEventListener("message",e)}}}},{key:"onChangeStatus",value:function(e){return e({type:"open"}),{dispose:function(){}}}},{key:"postMessage",value:function(e){this.vscode.postMessage(e)}}]),e}(),d=function(){function e(t,n){(0,i.Z)(this,e),this.host=t,this.WebSocketType=n,this.status={type:"initializing"},this.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,this.queuedMessages=[],this.handlers=[],this.statusChangeHandlers=[],this.disposed=!1,this.websocket=this.startConnection()}return(0,o.Z)(e,[{key:"dispose",value:function(){this.disposed||(this.disposed=!0,this.websocket.close())}},{key:"startConnection",value:function(){var t,n=this,i=new URL("ws://".concat(this.host,"/ws")),o=u.l.get("token");o&&i.searchParams.append("token",o);var l=u.l.get("cwd");if(l){var c=decodeURIComponent(l);i.searchParams.append("cwd",c)}var d=null===(t=window.gtiPlatform)||void 0===t?void 0:t.platformName;return d&&i.searchParams.append("platform",d),this.websocket=new this.WebSocketType(i.href),this.websocket.addEventListener("open",(function(t){for(s.k.info("websocket open",t),n.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,n.websocket.addEventListener("message",(function(e){var t,i=(0,r.Z)(n.handlers);try{for(i.s();!(t=i.n()).done;)(0,t.value)(e)}catch(e){i.e(e)}finally{i.f()}}));n.queuedMessages.length>0;){var i=n.queuedMessages[0];n.websocket.send(i),n.queuedMessages.shift()}n.setStatus({type:"open"})})),this.websocket.addEventListener("close",(function(e){e.code!==a.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE?n.disposed||n.scheduleReconnect():n.setStatus({type:"error",error:e.reason})})),this.websocket}},{key:"setStatus",value:function(e){this.status=e,this.statusChangeHandlers.forEach((function(t){return t(e)}))}},{key:"scheduleReconnect",value:function(){var t=this;this.setStatus({type:"reconnecting"}),s.k.info("websocket connecion closed. Retrying in ".concat(this.exponentialReconnectDelay,"ms")),setTimeout((function(){t.startConnection()}),this.exponentialReconnectDelay),this.exponentialReconnectDelay=Math.min(2*this.exponentialReconnectDelay,e.MAX_RECONNECT_CHECK_TIME_MS)}},{key:"onMessage",value:function(e){var t=this;return this.handlers.push(e),{dispose:function(){var n=t.handlers.indexOf(e);-1!==n&&t.handlers.splice(n,1)}}}},{key:"postMessage",value:function(e){"open"===this.status.type?this.websocket.send(e):this.queuedMessages.push(e)}},{key:"onChangeStatus",value:function(e){var t=this;return this.statusChangeHandlers.push(e),e(this.status),{dispose:function(){var n=t.statusChangeHandlers.indexOf(e);-1!==n&&t.statusChangeHandlers.splice(n,1)}}}}]),e}();d.MAX_RECONNECT_CHECK_TIME_MS=6e4,d.DEFAULT_RECONNECT_CHECK_TIME_MS=100;var f=null!=l?new c(l):new d(location.host,WebSocket)},8194:function(e,t,n){"use strict";n.d(t,{R:function(){return a},X:function(){return o}});var r=n(1485),i=n(1828),o=function(e){var t=e.config,n=e.default,o=e.defaultAfterNetworkReturn,a=!1;return(0,r.u)({default:n,setter:function(e){i.H.postMessage({type:"setConfig",name:t,value:JSON.stringify(e)})},effects:[function(e){var n=e.setSelf,r=i.H.onMessageOfType("gotConfig",(function(e){e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===a&&void 0!==o&&n(o),a=!0)}));return function(){return r.dispose()}},function(){var e=i.H.onConnectOrReconnect((function(){i.H.postMessage({type:"getConfig",name:t})}));return function(){return e()}}]})},a=function(e){var t=e.config,n=e.default,o=e.defaultAfterNetworkReturn,a=!1;return(0,r.u)({default:n,setter:function(e){i.H.postMessage({type:"setPersistentViewState",name:t,value:JSON.stringify(e)})},effects:[function(e){var n=e.setSelf,r=i.H.onMessageOfType("gotPersistentViewState",(function(e){e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===a&&void 0!==o&&n(o),a=!0)}));return function(){return r.dispose()}},function(){var e=i.H.onConnectOrReconnect((function(){i.H.postMessage({type:"getPersistentViewState",name:t})}));return function(){return e()}}]})}},5729:function(e,t,n){"use strict";n.d(t,{SG:function(){return f},XI:function(){return d},t9:function(){return c}});var r=n(7762),i=n(2982),o=n(885),a=n(7757),s=n.n(a),u=s().mark(d),l=function(e,t){return new Date(t.date).getTime()-new Date(e.date).getTime()};function c(e){var t=new Map;return e.forEach((function(e){var n=(0,o.Z)(e.parents,1)[0];if(n){var r=t.get(n);r||(r=new Set,t.set(n,r)),r.add(e)}})),e.filter((function(e){return e.partOfTrunk||0===e.parents.length})).sort(l).map((function e(n){var r,o=n.branch,a=null!==(r=t.get(o))&&void 0!==r?r:[],s=(0,i.Z)(a).sort(l);return{info:n,children:null==s?[]:s.filter((function(e){return!e.partOfTrunk})).map(e)}}))}function d(e){var t,n,i;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,r.Z)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=11;break}if(!((i=n.value).children.length>0)){o.next=7;break}return o.delegateYield(d(i.children),"t0",7);case 7:return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),t.e(o.t1);case 16:return o.prev=16,t.f(),o.finish(16);case 19:case"end":return o.stop()}}),u,null,[[1,13,16,19]])}function f(e,t){var n,i=(0,r.Z)(d([t]));try{for(i.s();!(n=i.n()).done;)if(n.value.info.branch===e)return!0}catch(e){i.e(e)}finally{i.f()}return!1}},2104:function(e,t,n){"use strict";n.d(t,{Mh:function(){return y},OR:function(){return w},R0:function(){return D},S7:function(){return H},SC:function(){return x},Tq:function(){return E},U8:function(){return B},WK:function(){return P},ZB:function(){return S},b8:function(){return V},cC:function(){return _},cM:function(){return m},gi:function(){return C},il:function(){return M},ip:function(){return g},lp:function(){return T},p7:function(){return k},qC:function(){return O},ql:function(){return A},tD:function(){return z},uB:function(){return R},ui:function(){return b},wf:function(){return I},xn:function(){return F},zV:function(){return Z}});var r=n(2982),i=n(7762),o=n(88),a=n(4098),s=n(2791),u=n(1485),l=n(1828),c=n(8194),d=n(5729),f=n(4975),h=n(1155),p={smartlogCommits:"",uncommittedChanges:"",mergeConflicts:""},v=(0,u.u)({default:{info:void 0,cwd:void 0},effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("repoInfo",(function(e){t({info:e.info,cwd:e.cwd})}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestRepoInfo"})}))}]}),g=(0,a.Fl)((function(){var e=v.get();return null==e?void 0:e.info}),{set:function(e){v.set((function(t){return Object.assign(Object.assign({},t),{info:e})}))}}),m=(0,u.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("applicationInfo",(function(e){t(e)}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestApplicationInfo"})}))}]}),y=(0,u.u)({default:{type:"initializing"},effects:[function(e){var t=e.setSelf,n=f.j.onChangeStatus(t);return function(){return n.dispose()}}]}),b=(0,a.Fl)((function(){var e,t,n=v.get();return null!==(t=null!==(e=null==n?void 0:n.cwd)&&void 0!==e?e:h.l.get("cwd"))&&void 0!==t?t:""})),_=(0,u.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,files:[]},effects:[j("uncommittedChanges",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{files:null!==(r=null!==(n=e.files.value)&&void 0!==n?n:t.files)&&void 0!==r?r:[],error:e.files.error})}))}))]}),w=(0,a.Fl)((function(){return _.get().files})),k=(0,a.Fl)((function(){return _.get().error})),x=(0,u.u)({default:void 0,effects:[j("mergeConflicts",(function(e,t){(0,t.setSelf)(e)}))]}),C=(0,u.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,commits:[]},effects:[j("smartlogCommits",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{commits:null!==(r=null!==(n=e.commits.value)&&void 0!==n?n:t.commits)&&void 0!==r?r:[],error:e.commits.error})}))}))]}),O=(0,a.Fl)((function(){return C.get().commits})),S=(0,a.Fl)((function(){return C.get().error})),E=(0,a.Fl)((function(){var e=new Map;return O.get().forEach((function(t){e.set(t.branch,t)})),e}));function j(e,t){return function(n){var r=(0,o.randomId)();p[e]=r;var i=l.H.onMessageOfType("subscriptionResult",(function(i){i.subscriptionID===r&&i.kind===e&&t(i.data,n)})),a=l.H.onSetup((function(){return l.H.postMessage({type:"subscribe",kind:e,subscriptionID:r}),function(){return l.H.postMessage({type:"unsubscribe",kind:e,subscriptionID:r})}}));return function(){i.dispose(),a()}}}(0,c.X)({config:"gti.experimental-features",default:null}),(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(){t(!1)})),l.H.onMessageOfType("beganFetchingSmartlogCommitsEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"smartlogCommits"===e.kind&&t(!1)})),l.H.onMessageOfType("beganLoadingMoreCommits",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"uncommittedChanges"===e.kind&&t(!1)})),l.H.onMessageOfType("beganFetchingUncommittedChangesEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),(0,u.u)({default:o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD)}))},function(e){var t=e.setSelf,n=[l.H.onMessageOfType("commitsShownRange",(function(e){t(e.rangeInDays)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]});var T=(0,a.Fl)((function(){var e=O.get();return(0,d.t9)(e)})),A=(0,a.Fl)((function(){return O.get().find((function(e){return e.isHead}))})),R=(0,a.Fl)((function(){var e,t=T.get(),n=new Map,r=(0,i.Z)((0,d.XI)(t));try{for(r.s();!(e=r.n()).done;){var o=e.value;n.set(o.info.branch,o)}}catch(e){r.e(e)}finally{r.f()}return n})),D=(0,a.Fl)((function(){return O.get().length>0})),I=(0,u.u)({default:void 0,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(void 0)}))}]}),P=(0,a.Fl)((function(){var e=g.get();return"success"===(null==e?void 0:e.type)&&"none"!==e.codeReviewSystem.type}));function N(e,t){var n;if((null===(n=t.currentOperation)||void 0===n?void 0:n.operation.id)===e.id)return Object.assign({},t);var i=(0,r.Z)(t.operationHistory);null!=t.currentOperation&&i.push(t.currentOperation);var o={operation:e,startTime:new Date};return Object.assign(Object.assign({},t),{operationHistory:i,currentOperation:o})}var M=(0,u.u)({default:{currentOperation:void 0,operationHistory:[]},effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t({currentOperation:void 0,operationHistory:[]})}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"spawn":t((function(t){var n=t,r=L.get(e.id);return null==r?t:N(r,n)}));break;case"stdout":case"stderr":t((function(t){var n;if(null==t)return t;var i=t.currentOperation;return i?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},i),{commandOutput:[].concat((0,r.Z)(null!==(n=null==i?void 0:i.commandOutput)&&void 0!==n?n:[]),[e.message])})}):t}));break;case"exit":t((function(t){if(null==t)return t;var n=t.currentOperation;return n?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},n),{exitCode:e.exitCode,endTime:new Date(e.timestamp)})}):t}))}}));return function(){return n.dispose()}}]}),L=new Map,Z=(0,u.u)({default:[],effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t([])}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"queue":case"spawn":t((function(){return e.queue.map((function(e){return L.get(e)})).filter((function(e){return null!=e}))}));break;case"error":t((function(){return[]}));break;case"exit":t((function(t){return L.delete(e.id),null!=e.exitCode&&0!==e.exitCode?[]:t}))}}));return function(){return n.dispose()}}]});function z(e){l.H.postMessage({type:"runOperation",operation:{args:e.getArgs(),id:e.id,stdin:e.getStdin(),runner:e.runner,trackEventName:e.trackEventName}}),L.set(e.id,e);var t=M.get();if(null!=(null==t?void 0:t.currentOperation)&&null==t.currentOperation.exitCode){var n=Z.get();Z.set([].concat((0,r.Z)(n||[]),[e]))}else M.set((function(t){return N(e,t)}))}function F(){return(0,s.useCallback)((function(e){var t,n;l.H.postMessage({type:"abortRunningOperation",operationId:e});var r=M.get();(null===(n=null===(t=null==r?void 0:r.currentOperation)||void 0===t?void 0:t.operation)||void 0===n?void 0:n.id)===e&&M.set((function(e){var t=e.currentOperation;return null!=t?Object.assign(Object.assign({},e),{currentOperation:Object.assign({aborting:!0},t)}):e}))}),[])}var B=(0,a.aD)((function(){I.set(void 0)})),H=(0,a.aD)((function(){var e=I.get();I.set(void 0),e&&z(e)}));function V(){return(0,s.useCallback)((function(){M.set((function(e){for(var t=(0,r.Z)(e.operationHistory),n=0;n<t.length;n++)null!=t[n].exitCode&&(t[n].hasCompletedOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedOptimisticState:!0})),t[n].hasCompletedUncommittedChangesOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedUncommittedChangesOptimisticState:!0})),t[n].hasCompletedMergeConflictsOptimisticState||(t[n]=Object.assign(Object.assign({},t[n]),{hasCompletedMergeConflictsOptimisticState:!0})));var i=null==e.currentOperation?void 0:Object.assign({},e.currentOperation);return null!=(null==i?void 0:i.exitCode)&&(i.hasCompletedOptimisticState=!0,i.hasCompletedUncommittedChangesOptimisticState=!0,i.hasCompletedMergeConflictsOptimisticState=!0),{currentOperation:i,operationHistory:t}}))}),[])}},1155:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(2982),i=n(3336),o=n(3793),a="GTIInitialParams",s=function(){var e;if(window.location.search&&(e=new Map((0,r.Z)(new URLSearchParams(window.location.search).entries())),i.k.log("Loaded initial params from URL: ",e),"browser"===(0,o.i)())){try{localStorage.setItem(a,JSON.stringify((0,r.Z)(e.entries())))}catch(e){i.k.log("Failed to save initial params to local storage",e)}window.history.replaceState({},document.title,window.location.pathname),i.k.log("Saved initial params to local storage")}if(!e)try{var t=localStorage.getItem(a);e=new Map(t?JSON.parse(t):[]),i.k.log("Loaded initial params from local storage: ",e)}catch(e){i.k.log("Failed to load initial params from local storage",e)}return null!=e?e:new Map}()},3793:function(e,t,n){"use strict";function r(){var e,t;return null!==(t=null===(e=window.gtiPlatform)||void 0===e?void 0:e.platformName)&&void 0!==t?t:"browser"}n.d(t,{i:function(){return r}})},8262:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},32:function(e,t,n){"use strict";n.d(t,{Pi:function(){return x}});var r=n(4098),i=n(2791);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.rC)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(4164);function a(e){return(0,r.Gf)(e)}var s="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function u(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+l}}var l=1e4,c=s?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=u(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(s):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=u(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),d=c.addReactionToTrack,f=c.recordReactionAsCommitted,h=(c.resetCleanupScheduleForTests,c.forceCleanupTimerToRunNowForTests,!1);function p(){return h}var v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function g(e){return"observer".concat(e)}var m=function(){};function y(){return new m}function b(e,t){if(void 0===t&&(t="observed"),p())return e();var n=v(i.useState(y),1)[0],o=v(i.useState(),2)[1],s=function(){return o([])},u=i.useRef(null);if(!u.current)var l=new r.le(g(t),(function(){c.mounted?s():c.changedBeforeMount=!0})),c=d(u,l,n);var h,m,b=u.current.reaction;if(i.useDebugValue(b,a),i.useEffect((function(){return f(u),u.current?(u.current.mounted=!0,u.current.changedBeforeMount&&(u.current.changedBeforeMount=!1,s())):(u.current={reaction:new r.le(g(t),(function(){s()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},s()),function(){u.current.reaction.dispose(),u.current=null}}),[]),b.track((function(){try{h=e()}catch(e){m=e}})),m)throw m;return h}var _="function"==typeof Symbol&&Symbol.for,w=_?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,k=_?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function x(e,t){var n;if(k&&e.$$typeof===k)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(p())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(w&&e.$$typeof===w&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,u,l=function(e,t){return b((function(){return o(e,t)}),a)};return""!==a&&(l.displayName=a),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,i.forwardRef)(l)),l=(0,i.memo)(l),s=e,u=l,Object.keys(s).forEach((function(e){O[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))})),l}var C,O={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};(C=o.unstable_batchedUpdates)||(C=function(e){e()}),(0,r.jQ)({reactionScheduler:C})},4098:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{Ei:function(){return Dn},Fl:function(){return Re},Gf:function(){return Kt},LJ:function(){return zn},LO:function(){return Ee},M5:function(){return tn},N7:function(){return an},PS:function(){return sn},Pb:function(){return Wn},U5:function(){return Nt},XP:function(){return on},aD:function(){return Tt},dw:function(){return Ut},eJ:function(){return nn},jQ:function(){return Vt},kS:function(){return ur},ky:function(){return yn},le:function(){return gt},rC:function(){return gn},so:function(){return V},vP:function(){return Zn},z:function(){return Rt}});var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,u=Object.defineProperty,l=Object.prototype,c=[];Object.freeze(c);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,h=Object.toString();function p(){f||r("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var g=function(){};function m(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"==typeof e}function _(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===h}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function k(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function x(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function C(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return b(e)&&!0===e[n]}}function O(e){return e instanceof Map}function S(e){return e instanceof Set}var E=void 0!==Object.getOwnPropertySymbols,j="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function T(e){return null===e?null:"object"==typeof e?""+e:e}function A(e,t){return l.hasOwnProperty.call(e,t)}var R=Object.getOwnPropertyDescriptors||function(e){var t={};return j(e).forEach((function(n){t[n]=s(e,n)})),t};function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(){return P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M(e,t)}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var F=Symbol("mobx-stored-annotations");function B(e){return Object.assign((function(t,n){H(t,n,e)}),e)}function H(e,t,n){A(e,F)||k(e,F,P({},e[F])),function(e){return e.annotationType_===G}(n)||(e[F][t]=n)}var V=Symbol("mobx administration"),U=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ue.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return pt(this)},t.reportChanged=function(){ft(),vt(this),ht()},t.toString=function(){return this.name_},e}(),K=C("Atom",U);function q(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var r=new U(e);return t!==g&&zt(Mt,r,t,void 0),n!==g&&Zt(r,n),r}var $={identity:function(e,t){return e===t},structural:function(e,t){return dr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return dr(e,t,1)}};function Y(e,t,n){return rn(e)?e:Array.isArray(e)?Ee.array(e,{name:n}):_(e)?Ee.object(e,void 0,{name:n}):O(e)?Ee.map(e,{name:n}):S(e)?Ee.set(e,{name:n}):"function"!=typeof e||Dt(e)||Xt(e)?e:w(e)?Jt(e):At(n,e)}function W(e){return e}var G="override";function J(e,t){return{annotationType_:e,options_:t,make_:Q,extend_:X}}function Q(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Dt(n.value))return 1;var o=ee(e,this,t,n,!1);return u(r,t,o),2}function X(e,t,n,r){var i=ee(e,this,t,n);return e.defineProperty_(t,i,r)}function ee(e,t,n,r,i){var o,a,s,u,l,c,d,f;void 0===i&&(i=ut.safeDescriptors),f=r,t.annotationType_,f.value;var h,p=r.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_)),{value:Le(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),p,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re}}function ne(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!A(e.target_,t)||!Xt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Xt(n.value))return 1;var o=ie(e,this,0,n,!1,!1);return u(r,t,o),2}function re(e,t,n,r){var i,o=ie(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ie(e,t,n,r,i,o){var a;void 0===o&&(o=ut.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return Xt(u)||(u=Jt(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function se(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get}(0,this,0,n),e.defineComputedProperty_(t,P({},this.options_,{get:n.get,set:n.set}),r)}function ue(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ce}}function le(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ce(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Y,r)}var de="true",fe=he();function he(e){return{annotationType_:de,options_:e,make_:pe,extend_:ve}}function pe(e,t,n,r){var i,o,a,s;if(n.get)return Re.make_(e,t,n,r);if(n.set){var l=Le(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ut.safeDescriptors||e.isPlainObject_,set:l})?0:2:(u(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Jt.bound:Jt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?At.bound:At).make_(e,t,n,r);var c,d=!1===(null==(i=this.options_)?void 0:i.deep)?Ee.ref:Ee;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),d.make_(e,t,n,r)}function ve(e,t,n,r){var i,o,a;return n.get?Re.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ut.safeDescriptors||e.isPlainObject_,set:Le(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Ee.ref:Ee).extend_(e,t,n,r))}var ge={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function me(e){return e||ge}Object.freeze(ge);var ye=ue("observable"),be=ue("observable.ref",{enhancer:W}),_e=ue("observable.shallow",{enhancer:function(e,t,n){return null==e||Wn(e)||Dn(e)||zn(e)||Hn(e)?e:Array.isArray(e)?Ee.array(e,{name:n,deep:!1}):_(e)?Ee.object(e,void 0,{name:n,deep:!1}):O(e)?Ee.map(e,{name:n,deep:!1}):S(e)?Ee.set(e,{name:n,deep:!1}):void 0}}),we=ue("observable.struct",{enhancer:function(e,t){return dr(e,t)?t:e}}),ke=B(ye);function xe(e){return!0===e.deep?Y:!1===e.deep?W:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Y}(e.defaultDecorator)}function Ce(e,t,n){if(!y(t))return rn(e)?e:_(e)?Ee.object(e,t,n):Array.isArray(e)?Ee.array(e,t):O(e)?Ee.map(e,t):S(e)?Ee.set(e,t):"object"==typeof e&&null!==e?e:Ee.box(e,t);H(e,t,ye)}Object.assign(Ce,ke);var Oe,Se,Ee=a(Ce,{box:function(e,t){var n=me(t);return new Ve(e,xe(n),n.name,!0,n.equals)},array:function(e,t){var n=me(t);return(!1===ut.useProxies||!1===n.proxy?ar:xn)(e,xe(n),n.name)},map:function(e,t){var n=me(t);return new Zn(e,xe(n),n.name)},set:function(e,t){var n=me(t);return new Bn(e,xe(n),n.name)},object:function(e,t,n){return Ut(!1===ut.useProxies||!1===(null==n?void 0:n.proxy)?qn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=qn(e,t))[V]).proxy_)?r:n.proxy_=new Proxy(e,ln)}({},n),e,t)},ref:B(be),shallow:B(_e),deep:ke,struct:B(we)}),je="computed",Te=oe(je),Ae=oe("computed.struct",{equals:$.structural}),Re=function(e,t){if(y(t))return H(e,t,Te);if(_(e))return B(oe(je,e));var n=_(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new qe(n)};Object.assign(Re,Te),Re.struct=B(Ae);var De,Ie=0,Pe=1,Ne=null!=(Oe=null==(Se=s((function(){}),"name"))?void 0:Se.configurable)&&Oe,Me={value:"action",configurable:!0,writable:!1,enumerable:!1};function Le(e,t,n,r){function i(){return Ze(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Ne&&(Me.value=e,Object.defineProperty(i,"name",Me)),i}function Ze(e,t,n,i,o){var a=function(e,t,n,r){var i=ut.trackingDerivation,o=!t||!i;ft();var a=ut.allowStateChanges;o&&(et(),a=Fe(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:nt(!0),notifySpy_:!1,startTime_:0,actionId_:Pe++,parentActionId_:Ie};return Ie=s.actionId_,s}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ie!==e.actionId_&&r(30),Ie=e.parentActionId_,void 0!==e.error_&&(ut.suppressReactionErrors=!0),Be(e.prevAllowStateChanges_),rt(e.prevAllowStateReads_),ht(),e.runAsAction_&&tt(e.prevDerivation_),ut.suppressReactionErrors=!1}(a)}}function ze(e,t){var n=Fe(e);try{return t()}finally{Be(n)}}function Fe(e){var t=ut.allowStateChanges;return ut.allowStateChanges=e,t}function Be(e){ut.allowStateChanges=e}De=Symbol.toPrimitive;var He,Ve=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=$.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}N(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ut.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(cn(this)){var t=fn(this,{object:this,type:_n,newValue:e});if(!t)return ut.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ut.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),hn(this)&&vn(this,{type:_n,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return dn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:_n,newValue:this.value_,oldValue:void 0}),pn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return T(this.get())},n[De]=function(){return this.valueOf()},t}(U);He=Symbol.toPrimitive;var Ue,Ke,qe=function(){function e(e){this.dependenciesState_=Ue.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ue.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ye(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ke.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Le("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?$.structural:$.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Ue.UP_TO_DATE_&&(e.lowestObserverState_=Ue.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ue.UP_TO_DATE_&&(e.dependenciesState_=Ue.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==ut.inBatch||0!==this.observers_.size||this.keepAlive_){if(pt(this),Ge(this)){var e=ut.trackingContext;this.keepAlive_&&!e&&(ut.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Ue.STALE_&&(e.lowestObserverState_=Ue.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ue.POSSIBLY_STALE_?t.dependenciesState_=Ue.STALE_:t.dependenciesState_===Ue.UP_TO_DATE_&&(e.lowestObserverState_=Ue.UP_TO_DATE_)})))}(this),ut.trackingContext=e}}else Ge(this)&&(this.warnAboutUntrackedRead_(),ft(),this.value_=this.computeValue_(!1),ht());var t=this.value_;if(We(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ue.NOT_TRACKING_,n=this.computeValue_(!0),r=t||We(e)||We(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Fe(!1);if(e)t=Je(this,this.derivation,this.scope_);else if(!0===ut.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Ye(e)}return Be(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Qe(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return function(e,t){var n,r;void 0===t&&(t=d);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=Pt(t),s=!1;i=new gt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new gt(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e()}return i.schedule_(),i.getDisposer_()}((function(){var o=n.get();if(!r||t){var a=et();e({observableKind:"computed",debugObjectName:n.name_,type:_n,object:n,newValue:o,oldValue:i}),tt(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return T(this.get())},t[He]=function(){return this.valueOf()},e}(),$e=C("ComputedValue",qe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ue||(Ue={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ke||(Ke={}));var Ye=function(e){this.cause=void 0,this.cause=e};function We(e){return e instanceof Ye}function Ge(e){switch(e.dependenciesState_){case Ue.UP_TO_DATE_:return!1;case Ue.NOT_TRACKING_:case Ue.STALE_:return!0;case Ue.POSSIBLY_STALE_:for(var t=nt(!0),n=et(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if($e(a)){if(ut.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return tt(n),rt(t),!0}if(e.dependenciesState_===Ue.STALE_)return tt(n),rt(t),!0}}return it(e),tt(n),rt(t),!1}}function Je(e,t,n){var r=nt(!0);it(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++ut.runId;var i,o=ut.trackingDerivation;if(ut.trackingDerivation=e,ut.inBatch++,!0===ut.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new Ye(e)}return ut.inBatch--,ut.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ue.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&ct(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,lt(l,e))}r!==Ue.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),rt(r),i}function Qe(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)ct(t[n],e);e.dependenciesState_=Ue.NOT_TRACKING_}function Xe(e){var t=et();try{return e()}finally{tt(t)}}function et(){var e=ut.trackingDerivation;return ut.trackingDerivation=null,e}function tt(e){ut.trackingDerivation=e}function nt(e){var t=ut.allowStateReads;return ut.allowStateReads=e,t}function rt(e){ut.allowStateReads=e}function it(e){if(e.dependenciesState_!==Ue.UP_TO_DATE_){e.dependenciesState_=Ue.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ue.UP_TO_DATE_}}var ot=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},at=!0,st=!1,ut=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(at=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ot).version&&(at=!1),at?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ot):(setTimeout((function(){st||r(35)}),1),new ot)}();function lt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ct(e,t){e.observers_.delete(t),0===e.observers_.size&&dt(e)}function dt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,ut.pendingUnobservations.push(e))}function ft(){ut.inBatch++}function ht(){if(0==--ut.inBatch){bt();for(var e=ut.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof qe&&n.suspend_())}ut.pendingUnobservations=[]}}function pt(e){var t=ut.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&ut.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&ut.inBatch>0&&dt(e),!1)}function vt(e){e.lowestObserverState_!==Ue.STALE_&&(e.lowestObserverState_=Ue.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ue.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ue.STALE_})))}var gt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ue.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ke.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,ut.pendingReactions.push(this),bt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){ft(),this.isScheduled_=!1;var e=ut.trackingContext;if(ut.trackingContext=this,Ge(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ut.trackingContext=e,ht()}},t.track=function(e){if(!this.isDisposed_){ft(),this.isRunning_=!0;var t=ut.trackingContext;ut.trackingContext=this;var n=Je(this,e,void 0);ut.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Qe(this),We(n)&&this.reportExceptionInDerivation_(n.cause),ht()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ut.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ut.suppressReactionErrors||console.error(n,e),ut.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(ft(),Qe(this),ht()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[V]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return ut.trackingDerivation;case 1:return sr(e[0]);case 2:return sr(e[0],e[1])}}(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Ke.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Ke.BREAK:Ke.LOG}(this,e)},e}(),mt=100,yt=function(e){return e()};function bt(){ut.inBatch>0||ut.isRunningReactions||yt(_t)}function _t(){ut.isRunningReactions=!0;for(var e=ut.pendingReactions,t=0;e.length>0;){++t===mt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}ut.isRunningReactions=!1}var wt=C("Reaction",gt),kt="action",xt="autoAction",Ct=J(kt),Ot=J("action.bound",{bound:!0}),St=J(xt,{autoAction:!0}),Et=J("autoAction.bound",{autoAction:!0,bound:!0});function jt(e){return function(t,n){return m(t)?Le(t.name||"<unnamed action>",t,e):m(n)?Le(t,n,e):y(n)?H(t,n,e?St:Ct):y(t)?B(J(e?xt:kt,{name:t,autoAction:e})):void 0}}var Tt=jt(!1);Object.assign(Tt,Ct);var At=jt(!0);function Rt(e){return Ze(e.name,!1,e,this,void 0)}function Dt(e){return m(e)&&!0===e.isMobxAction}Object.assign(At,St),Tt.bound=B(Ot),At.bound=B(Et);var It=function(e){return e()};function Pt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:It}function Nt(e,t,n){var r;void 0===n&&(n=d);var i,o,a,s,u=null!=(r=n.name)?r:"Reaction",l=Tt(u,n.onError?(i=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){i.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=Pt(n),h=!0,p=!1,v=n.compareStructural?$.structural:n.equals||$.default,g=new gt(u,(function(){h||c?m():p||(p=!0,f(m))}),n.onError,n.requiresObservable);function m(){if(p=!1,!g.isDisposed_){var t=!1;g.track((function(){var n=ze(!1,(function(){return e(g)}));t=h||!v(a,n),s=a,a=n})),(h&&n.fireImmediately||!h&&t)&&l(a,s,g),h=!1}}return g.schedule_(),g.getDisposer_()}var Mt="onBO",Lt="onBUO";function Zt(e,t,n){return zt(Lt,e,t,n)}function zt(e,t,n,r){var i="function"==typeof r?sr(t,n):sr(t),o=m(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Ft="never",Bt="always",Ht="observed";function Vt(e){!0===e.isolateGlobalState&&function(){if((ut.pendingReactions.length||ut.inBatch||ut.isRunningReactions)&&r(36),st=!0,at){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ut=new ot}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(ut.useProxies=t===Bt||t!==Ft&&"undefined"!=typeof Proxy),"ifavailable"===t&&(ut.verifyProxies=!0),void 0!==n){var i=n===Bt?Bt:n===Ht;ut.enforceActions=i,ut.allowStateChanges=!0!==i&&i!==Bt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ut[t]=!!e[t])})),ut.allowStateReads=!ut.observableRequiresReaction,e.reactionScheduler&&function(e){var t=yt;yt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Ut(e,t,n,r){var i=R(t),o=qn(e,r)[V];ft();try{j(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{ht()}return e}function Kt(e,t){return qt(sr(e,t))}function qt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(qt)),n}var $t=0;function Yt(){this.message="FLOW_CANCELLED"}Yt.prototype=Object.create(Error.prototype);var Wt=te("flow"),Gt=te("flow.bound",{bound:!0}),Jt=Object.assign((function(e,t){if(y(t))return H(e,t,Wt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++$t,o=Tt(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function u(e){var t;a=void 0;try{t=Tt(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function l(e){var t;a=void 0;try{t=Tt(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!m(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)}));return s.cancel=Tt(r+" - runid: "+i+" - cancel",(function(){try{a&&Qt(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(g,g),Qt(n),e(new Yt)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),Wt);function Qt(e){m(e.cancel)&&e.cancel()}function Xt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e,t){if(void 0===t)return $e(e);if(!1===Wn(e))return!1;if(!e[V].values_.has(t))return!1;var n=sr(e,t);return $e(n)}function tn(e){return en(e)}function nn(e,t){return en(e,t)}function rn(e){return function(e,t){return!!e&&(Wn(e)||!!e[V]||K(e)||wt(e)||$e(e))}(e)}function on(e){return Wn(e)?e[V].keys_():zn(e)||Hn(e)?Array.from(e.keys()):Dn(e)?e.map((function(e,t){return t})):void r(5)}function an(e,t,n,r){return m(n)?function(e,t,n,r){return ur(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return ur(e).observe_(t,n)}(e,t,n)}function sn(e,t){void 0===t&&(t=void 0),ft();try{return e.apply(t)}finally{ht()}}function un(e){return e[V]}Jt.bound=B(Gt);var ln={has:function(e,t){return un(e).has_(t)},get:function(e,t){return un(e).get_(t)},set:function(e,t,n){var r;return!!y(t)&&(null==(r=un(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(t)&&(null==(n=un(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=un(e).defineProperty_(t,n))||r},ownKeys:function(e){return un(e).ownKeys_()},preventExtensions:function(e){r(13)}};function cn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function dn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function fn(e,t){var n=et();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{tt(n)}}function hn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function pn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function vn(e,t){var n=et(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);tt(n)}}function gn(e,t,n){var r=qn(e,n)[V];ft();try{null!=t||(t=function(e){return A(e,F)||k(e,F,P({},e[F])),e[F]}(e)),j(t).forEach((function(e){return r.make_(e,t[e])}))}finally{ht()}return e}var mn=Symbol("mobx-keys");function yn(e,t,n){if(_(e))return Ut(e,e,t,n);var r=qn(e,n)[V];if(!e[mn]){var i=Object.getPrototypeOf(e),o=new Set([].concat(j(e),j(i)));o.delete("constructor"),o.delete(V),k(i,mn,o)}ft();try{e[mn].forEach((function(e){return r.make_(e,!t||!(e in t)||t[e])}))}finally{ht()}return e}var bn="splice",_n="update",wn={get:function(e,t){var n=e[V];return t===V?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?A(Cn,t)?Cn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[V];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},kn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new U(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return dn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),pn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&or(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),cn(this)){var o=fn(this,{object:this.proxy_,type:bn,index:e,removedCount:t,added:n});if(!o)return c;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=hn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:_n,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&vn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=hn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:bn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&vn(this,o)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var i=n[e];if(cn(this)){var o=fn(this,{type:_n,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function xn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),p();var i=new kn(n,t,r,!1);x(i.values_,V,i);var o=new Proxy(i.values_,wn);if(i.proxy_=o,e&&e.length){var a=Fe(!0);i.spliceWithArray_(0,0,e),Be(a)}return o}var Cn={clear:function(){return this.splice(0)},replace:function(e){var t=this[V];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[V];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[V].spliceWithArray_(e,t,n)},push:function(){for(var e=this[V],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[V],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ut.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ut.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[V],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function On(e,t){"function"==typeof Array.prototype[e]&&(Cn[e]=t(e))}function Sn(e){return function(){var t=this[V];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function En(e){return function(t,n){var r=this,i=this[V];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function jn(e){return function(){var t=this,n=this[V];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}On("concat",Sn),On("flat",Sn),On("includes",Sn),On("indexOf",Sn),On("join",Sn),On("lastIndexOf",Sn),On("slice",Sn),On("toString",Sn),On("toLocaleString",Sn),On("every",En),On("filter",En),On("find",En),On("findIndex",En),On("flatMap",En),On("forEach",En),On("map",En),On("some",En),On("reduce",jn),On("reduceRight",jn);var Tn,An,Rn=C("ObservableArrayAdministration",kn);function Dn(e){return b(e)&&Rn(e[V])}var In={},Pn="add",Nn="delete";Tn=Symbol.iterator,An=Symbol.toStringTag;var Mn,Ln,Zn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Y),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[V]=In,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,m(Map)||r(18),this.keysAtom_=q("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,ze(!0,(function(){i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ut.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ve(this.has_(e),W,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Zt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(cn(this)){var r=fn(this,{type:n?_n:Pn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,cn(this)&&!fn(this,{type:Nn,object:this,name:e}))return!1;if(this.has_(e)){var n=hn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Nn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return sn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&vn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ut.UNCHANGED){var r=hn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:_n,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&vn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,sn((function(){var r,i=new Ve(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=hn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Pn,object:this,name:e,newValue:t}:null;r&&vn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return pr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return pr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Tn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=z(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return zn(e)&&(e=new Map(e)),sn((function(){_(e)?function(e){var t=Object.keys(e);if(!E)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):O(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;sn((function(){Xe((function(){for(var t,n=z(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return sn((function(){for(var n,i=function(e){if(O(e)||zn(e))return e;if(Array.isArray(e))return new Map(e);if(_(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=z(t.data_.keys());!(n=s()).done;){var u=n.value;if(!i.has(u))if(t.delete(u))a=!0;else{var l=t.data_.get(u);o.set(u,l)}}for(var c,d=z(i.entries());!(c=d()).done;){var f=c.value,h=f[0],p=f[1],v=t.data_.has(h);if(t.set(h,p),t.data_.has(h)){var g=t.data_.get(h);o.set(h,g),v||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var m=t.data_.keys(),y=o.keys(),b=m.next(),w=y.next();!b.done;){if(b.value!==w.value){t.keysAtom_.reportChanged();break}b=m.next(),w=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return pn(this,e)},t.intercept_=function(e){return dn(this,e)},I(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:An,get:function(){return"Map"}}]),e}(),zn=C("ObservableMap",Zn),Fn={};Mn=Symbol.iterator,Ln=Symbol.toStringTag;var Bn=function(){function e(e,t,n){void 0===t&&(t=Y),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[V]=Fn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,m(Set)||r(22),this.atom_=q(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;sn((function(){Xe((function(){for(var t,n=z(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=z(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,cn(this)&&!fn(this,{type:Pn,object:this,newValue:e}))return this;if(!this.has(e)){sn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=hn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Pn,object:this,newValue:e}:null;n&&vn(this,r)}return this},t.delete=function(e){var t=this;if(cn(this)&&!fn(this,{type:Nn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=hn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Nn,object:this,oldValue:e}:null;return sn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&vn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return pr({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return pr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Hn(e)&&(e=new Set(e)),sn((function(){Array.isArray(e)||S(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return pn(this,e)},t.intercept_=function(e){return dn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Mn]=function(){return this.values()},I(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Ln,get:function(){return"Set"}}]),e}(),Hn=C("ObservableSet",Bn),Vn=Object.create(null),Un="remove",Kn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=fe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new U("ObservableObject.keys"),this.isPlainObject_=_(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof qe)return n.set(t),!0;if(cn(this)){var r=fn(this,{type:_n,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ut.UNCHANGED){var i=hn(this),o=i?{type:_n,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&vn(this,o)}return!0},t.get_=function(e){return ut.trackingDerivation&&!A(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),A(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ut.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ve(e in this.target_,W,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[F])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}Gn(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Gn(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{ft();var r=this.delete_(e);if(!r)return r;if(cn(this)){var i=fn(this,{object:this.proxy_||this.target_,name:e,type:Pn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=P({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ht()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{ft();var i=this.delete_(e);if(!i)return i;if(cn(this)){var o=fn(this,{object:this.proxy_||this.target_,name:e,type:Pn,newValue:t});if(!o)return null;t=o.newValue}var a=Yn(e),s={configurable:!ut.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else u(this.target_,e,s);var l=new Ve(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{ht()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{ft();var r=this.delete_(e);if(!r)return r;if(cn(this)&&!fn(this,{object:this.proxy_||this.target_,name:e,type:Pn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Yn(e),o={configurable:!ut.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else u(this.target_,e,o);this.values_.set(e,new qe(t)),this.notifyPropertyAddition_(e,void 0)}finally{ht()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!A(this.target_,e))return!0;if(cn(this)&&!fn(this,{object:this.proxy_||this.target_,name:e,type:Un}))return null;try{var n,r;ft();var i,o=hn(this),a=this.values_.get(e),u=void 0;if(!a&&o&&(u=null==(i=s(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Ve&&(u=a.value_),vt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var l={type:Un,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:u,name:e};o&&vn(this,l)}}finally{ht()}return!0},t.observe_=function(e,t){return pn(this,e)},t.intercept_=function(e){return dn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=hn(this);if(i){var o=i?{type:Pn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&vn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),j(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qn(e,t){var n;if(A(e,V))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Kn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:he(e):void 0}(t));return k(e,V,i),e}var $n=C("ObservableObjectAdministration",Kn);function Yn(e){return Vn[e]||(Vn[e]={get:function(){return this[V].getObservablePropValue_(e)},set:function(t){return this[V].setObservablePropValue_(e,t)}})}function Wn(e){return!!b(e)&&$n(e[V])}function Gn(e,t,n){var r;null==(r=e.target_[F])||delete r[n]}var Jn,Qn,Xn=rr(0),er=0,tr=function(){};Jn=tr,Qn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Jn.prototype,Qn):void 0!==Jn.prototype.__proto__?Jn.prototype.__proto__=Qn:Jn.prototype=Qn;var nr=function(e,t,n){function r(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new kn(r,n,i,!0);if(a.proxy_=L(o),x(L(o),V,a),t&&t.length){var s=Fe(!0);o.spliceWithArray(0,0,t),Be(s)}return Object.defineProperty(L(o),"0",Xn),o}N(r,e);var i=r.prototype;return i.concat=function(){this[V].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Dn(e)?e.slice():e})))},i[n]=function(){var e=this,t=0;return pr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},I(r,[{key:"length",get:function(){return this[V].getArrayLength_()},set:function(e){this[V].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(tr,Symbol.toStringTag,Symbol.iterator);function rr(e){return{enumerable:!1,configurable:!0,get:function(){return this[V].get_(e)},set:function(t){this[V].set_(e,t)}}}function ir(e){u(nr.prototype,""+e,rr(e))}function or(e){if(e>er){for(var t=er;t<e+100;t++)ir(t);er=e}}function ar(e,t,n){return new nr(e,t,n)}function sr(e,t){if("object"==typeof e&&null!==e){if(Dn(e))return void 0!==t&&r(23),e[V].atom_;if(Hn(e))return e[V];if(zn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,lr(e)),n}if(Wn(e)){if(!t)return r(26);var i=e[V].values_.get(t);return i||r(27,t,lr(e)),i}if(K(e)||$e(e)||wt(e))return e}else if(m(e)&&wt(e[V]))return e[V];r(28)}function ur(e,t){return e||r(29),void 0!==t?ur(sr(e,t)):K(e)||$e(e)||wt(e)||zn(e)||Hn(e)?e:e[V]?e[V]:void r(24,e)}function lr(e,t){var n;if(void 0!==t)n=sr(e,t);else{if(Dt(e))return e.name;n=Wn(e)||zn(e)||Hn(e)?ur(e):sr(e)}return n.name_}Object.entries(Cn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&k(nr.prototype,t,n)})),or(1e3);var cr=l.toString;function dr(e,t,n){return void 0===n&&(n=-1),fr(e,t,n)}function fr(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=cr.call(e);if(a!==cr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=hr(e),t=hr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(m(u)&&u instanceof u&&m(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!fr(e[c],t[c],n-1,r,i))return!1}else{var d,f=Object.keys(e);if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!A(t,d=f[c])||!fr(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function hr(e){return Dn(e)?e.slice():O(e)||zn(e)||S(e)||Hn(e)?Array.from(e.entries()):e}function pr(e){return e[Symbol.iterator]=vr,e}function vr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:lr},$mobx:V})},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var M,L=Object.assign;function Z(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function F(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Z(e):""}function B(e){switch(e.tag){case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case O:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function W(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){J(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var me=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Ce=null;function Oe(e){if(e=bi(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Se(e){xe?Ce?Ce.push(e):Ce=[e]:xe=e}function Ee(){if(xe){var e=xe,t=Ce;if(Ce=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function je(e,t){return e(t)}function Te(){}var Ae=!1;function Re(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return je(e,t,n)}finally{Ae=!1,(null!==xe||null!==Ce)&&(Te(),Ee())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(c)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ce){Ie=!1}function Ne(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ze=!1,ze=null,Fe={onError:function(e){Me=!0,Le=e}};function Be(e,t,n,r,i,o,a,s,u){Me=!1,Le=null,Ne.apply(Fe,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(He(e)!==e)throw Error(o(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var $e=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,We=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2,lt=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,xt,Ct,Ot,St=!1,Et=[],jt=null,Tt=null,At=null,Rt=new Map,Dt=new Map,It=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Zt(e)&&n.delete(t)}function Ft(){St=!1,null!==jt&&Zt(jt)&&(jt=null),null!==Tt&&Zt(Tt)&&(Tt=null),null!==At&&Zt(At)&&(At=null),Rt.forEach(zt),Dt.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Ht(e){function t(t){return Bt(t,e)}if(0<Et.length){Bt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Bt(jt,e),null!==Tt&&Bt(Tt,e),null!==At&&Bt(At,e),Rt.forEach(t),Dt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Lt(n),null===n.blockedOn&&It.shift()}var Vt=_.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=i,Vt.transition=o}}function qt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=i,Vt.transition=o}}function $t(e,t,n,r){if(Ut){var i=Wt(e,t,n,r);if(null===i)Ur(e,t,r,Yt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return jt=Mt(jt,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,i),!0;case"mouseover":return At=Mt(At,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Rt.set(o,Mt(Rt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Dt.set(o,Mt(Dt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Wt(e,t,n,r))&&Ur(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function Wt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),dn=L({},ln,{view:0,detail:0}),fn=on(dn),hn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),vn=on(L({},hn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),mn=on(L({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(L({},ln,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return Cn}var Sn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=on(Sn),jn=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),An=on(L({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=on(Rn),In=[9,13,27,32],Pn=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Nn,Ln=c&&(!Pn||Nn&&8<Nn&&11>=Nn),Zn=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Kn(e,t,n,r){Se(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Yn(e){Zr(e,0)}function Wn(e){if($(_i(e)))return e}function Gn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Qn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Qn=Xn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),$n=qn=null)}function nr(e){if("value"===e.propertyName&&Wn($n)){var t=[];Kn(t,$n,e,we(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn($n)}function or(e,t){if("click"===e)return Wn(t)}function ar(e,t){if("input"===e||"change"===e)return Wn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=qr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Cr={};function Or(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Sr=Or("animationend"),Er=Or("animationiteration"),jr=Or("animationstart"),Tr=Or("transitionend"),Ar=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Ar.set(e,t),u(t,[e])}for(var Ir=0;Ir<Rr.length;Ir++){var Pr=Rr[Ir];Dr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Dr(Sr,"onAnimationEnd"),Dr(Er,"onAnimationIteration"),Dr(jr,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Tr,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Le;Me=!1,Le=null,Ze||(Ze=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Zr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}}}if(Ze)throw e=ze,Ze=!1,ze=null,e}function zr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Fr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Gt(t)){case 1:var i=Kt;break;case 4:i=qt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Re((function(){var r=o,i=we(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=En;break;case"focusin":l="focus",u=gn;break;case"focusout":l="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tn;break;case Sr:case Er:case jr:u=mn;break;case Tr:u=An;break;case"scroll":u=fn;break;case"wheel":u=Dn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==f&&null!=(v=De(p,f))&&c.push(Kr(p,v,h))),d)break;p=p.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(l=n.relatedTarget||n.fromElement)||!yi(l)&&!l[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?yi(l):null)&&(l!==(d=He(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=pn,v="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=jn,v="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==u?s:_i(u),h=null==l?s:_i(l),(s=new c(v,p+"leave",u,n,i)).target=d,s.relatedTarget=h,v=null,yi(i)===r&&((c=new c(f,p+"enter",l,n,i)).target=h,c.relatedTarget=d,v=c),d=v,u&&l)e:{for(f=l,p=0,h=c=u;h;h=$r(h))p++;for(h=0,v=f;v;v=$r(v))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)f=$r(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==u&&Yr(a,s,u,c,!1),null!==l&&null!==d&&Yr(a,d,l,c,!0)}if("select"===(u=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=Gn;else if(Un(s))if(Jn)g=ar;else{g=ir;var m=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?Kn(a,g,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?_i(r):window,e){case"focusin":(Un(m)||"true"===m.contentEditable)&&(gr=m,mr=r,yr=null);break;case"focusout":yr=mr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,Hn=!0)),0<(m=qr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:m}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Zn);case"textInput":return(e=t.data)===Zn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Pn&&Fn(e,t)?(e=en(),Xt=Qt=Jt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Zr(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Kr(e,o,i)),null!=(o=De(e,t))&&r.push(Kr(e,o,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=De(n,o))&&a.unshift(Kr(n,u,s)):i||null!=(u=De(n,o))&&a.push(Kr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Gr,"")}function Qr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ht(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,gi="__reactListeners$"+di,mi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var ki=[],xi=-1;function Ci(e){return{current:e}}function Oi(e){0>xi||(e.current=ki[xi],ki[xi]=null,xi--)}function Si(e,t){xi++,ki[xi]=e.current,e.current=t}var Ei={},ji=Ci(Ei),Ti=Ci(!1),Ai=Ei;function Ri(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Di(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Oi(Ti),Oi(ji)}function Pi(e,t,n){if(ji.current!==Ei)throw Error(o(168));Si(ji,t),Si(Ti,n)}function Ni(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ai=ji.current,Si(ji,e),Si(Ti,Ti.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ni(e,t,Ai),r.__reactInternalMemoizedMergedChildContext=e,Oi(Ti),Oi(ji),Si(ji,e)):Oi(Ti),Si(Ti,n)}var Zi=null,zi=!1,Fi=!1;function Bi(e){null===Zi?Zi=[e]:Zi.push(e)}function Hi(){if(!Fi&&null!==Zi){Fi=!0;var e=0,t=bt;try{var n=Zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Zi=null,zi=!1}catch(t){throw null!==Zi&&(Zi=Zi.slice(e+1)),$e(Xe,Hi),t}finally{bt=t,Fi=!1}}return null}var Vi=[],Ui=0,Ki=null,qi=0,$i=[],Yi=0,Wi=null,Gi=1,Ji="";function Qi(e,t){Vi[Ui++]=qi,Vi[Ui++]=Ki,Ki=e,qi=t}function Xi(e,t,n){$i[Yi++]=Gi,$i[Yi++]=Ji,$i[Yi++]=Wi,Wi=e;var r=Gi;e=Ji;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gi=1<<32-at(t)+i|n<<i|r,Ji=o+e}else Gi=1<<o|n<<i|r,Ji=e}function eo(e){null!==e.return&&(Qi(e,1),Xi(e,1,0))}function to(e){for(;e===Ki;)Ki=Vi[--Ui],Vi[Ui]=null,qi=Vi[--Ui],Vi[Ui]=null;for(;e===Wi;)Wi=$i[--Yi],$i[Yi]=null,Ji=$i[--Yi],$i[Yi]=null,Gi=$i[--Yi],$i[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Dl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Wi?{id:Gi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Dl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=li(e.nextSibling)}function po(){ro=no=null,io=!1}function vo(e){null===oo?oo=[e]:oo.push(e)}var go=_.ReactCurrentBatchConfig;function mo(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ci(null),bo=null,_o=null,wo=null;function ko(){wo=_o=bo=null}function xo(e){var t=yo.current;Oi(yo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t){bo=e,wo=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_s=!0),e.firstContext=null)}function So(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===bo)throw Error(o(308));_o=e,bo.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Eo=null;function jo(e){null===Eo?Eo=[e]:Eo.push(e)}function To(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,jo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ao(e,r)}function Ao(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function Do(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function No(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Tu)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ao(e,n)}return null===(i=r.interleaved)?(t.next=t,jo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ao(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,r){var i=e.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u)}if(null!==o){var d=i.baseState;for(a=0,c=l=u=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(f=t,h=n,v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"==typeof(p=v.payload)?p.call(h,d,f):p)||void 0===f)break e;d=L({},d,f);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=h,u=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Lu|=a,e.lanes=a,e.memoizedState=d}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Fo=(new r.Component).refs;function Bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),o=Po(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=No(e,o,i))&&(rl(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),o=Po(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=No(e,o,i))&&(rl(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),i=Po(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=No(e,i,r))&&(rl(t,e,r,n),Mo(t,e,r))}};function Vo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(i,o))}function Uo(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"==typeof o&&null!==o?o=So(o):(i=Di(t)?Ai:ji.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ri(e,i):Ei),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ko(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fo,Do(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=So(o):(o=Di(t)?Ai:ji.current,i.context=Ri(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Ho.enqueueReplaceState(i,i.state,null),Zo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function $o(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Fo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wo(e){return(0,e._init)(e._payload)}function Go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Zl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===D&&Wo(o)===t.type)?((r=i(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ml(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Zl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case k:return(t=zl(t,e.mode,n)).return=e,t;case D:return f(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Ml(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case D:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||N(n))return null!==i?null:d(e,t,n,r,null);Yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case D:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||N(r))return d(t,e=e.get(n)||null,r,i,null);Yo(t,r)}return null}function v(i,o,s,u){for(var l=null,c=null,d=o,v=o=0,g=null;null!==d&&v<s.length;v++){d.index>v?(g=d,d=null):g=d.sibling;var m=h(i,d,s[v],u);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(i,d),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m,d=g}if(v===s.length)return n(i,d),io&&Qi(i,v),l;if(null===d){for(;v<s.length;v++)null!==(d=f(i,s[v],u))&&(o=a(d,o,v),null===c?l=d:c.sibling=d,c=d);return io&&Qi(i,v),l}for(d=r(i,d);v<s.length;v++)null!==(g=p(d,i,v,s[v],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,v),l}function g(i,s,u,l){var c=N(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var d=c=null,v=s,g=s=0,m=null,y=u.next();null!==v&&!y.done;g++,y=u.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(i,v,y.value,l);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,v=m}if(y.done)return n(i,v),io&&Qi(i,g),c;if(null===v){for(;!y.done;g++,y=u.next())null!==(y=f(i,y.value,l))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(v=r(i,v);!y.done;g++,y=u.next())null!==(y=p(v,i,g,y.value,l))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),io&&Qi(i,g),c}return function e(r,o,a,u){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===D&&Wo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=$o(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Ml(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Nl(a.type,a.key,a.props,null,r.mode,u)).ref=$o(r,o,a),u.return=r,r=u)}return s(r);case k:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zl(a,r.mode,u)).return=r,r=o}return s(r);case D:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return v(r,o,a,u);if(N(a))return g(r,o,a,u);Yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Zl(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var Jo=Go(!0),Qo=Go(!1),Xo={},ea=Ci(Xo),ta=Ci(Xo),na=Ci(Xo);function ra(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(Si(na,t),Si(ta,e),Si(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oi(ea),Si(ea,t)}function oa(){Oi(ea),Oi(ta),Oi(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(Si(ta,e),Si(ea,n))}function sa(e){ta.current===e&&(Oi(ea),Oi(ta))}var ua=Ci(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=_.ReactCurrentDispatcher,ha=_.ReactCurrentBatchConfig,pa=0,va=null,ga=null,ma=null,ya=!1,ba=!1,_a=0,wa=0;function ka(){throw Error(o(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,i,a){if(pa=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),ba){a=0;do{if(ba=!1,_a=0,25<=a)throw Error(o(301));a+=1,ma=ga=null,t.updateQueue=null,fa.current=ls,e=n(r,i)}while(ba)}if(fa.current=as,t=null!==ga&&null!==ga.next,pa=0,ma=ga=va=null,ya=!1,t)throw Error(o(300));return e}function Oa(){var e=0!==_a;return _a=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?va.memoizedState=ma=e:ma=ma.next=e,ma}function Ea(){if(null===ga){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ma?va.memoizedState:ma.next;if(null!==t)ma=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ma?va.memoizedState=ma=e:ma=ma.next=e}return ma}function ja(e,t){return"function"==typeof t?t(e):t}function Ta(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=f,s=r):l=l.next=f,va.lanes|=d,Lu|=d}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(_s=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,va.lanes|=a,Lu|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Aa(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(_s=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(){}function Da(e,t){var n=va,r=Ea(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,_s=!0),r=r.queue,Ua(Na.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(n.flags|=2048,za(9,Pa.bind(null,n,r,i,t),void 0,null),null===Au)throw Error(o(349));0!=(30&pa)||Ia(n,t,i)}return i}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pa(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Na(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Ao(e,1);null!==t&&rl(t,e,1,-1)}function Za(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,va,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return Ea().memoizedState}function Ba(e,t,n,r){var i=Sa();va.flags|=e,i.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var i=Ea();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&xa(r,a.deps))return void(i.memoizedState=za(t,n,o,r))}va.flags|=e,i.memoizedState=za(1|t,n,o,r)}function Va(e,t){return Ba(8390656,8,e,t)}function Ua(e,t){return Ha(2048,8,e,t)}function Ka(e,t){return Ha(4,2,e,t)}function qa(e,t){return Ha(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,n){return n=null!=n?n.concat([e]):null,Ha(4,4,$a.bind(null,t,e),n)}function Wa(){}function Ga(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),va.lanes|=n,Lu|=n,e.baseState=!0),t)}function Xa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return Ea().memoizedState}function ts(e,t,n){var r=nl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?is(t,n):null!==(n=To(e,t,n,r))&&(rl(n,e,r,tl()),os(n,t,r))}function ns(e,t,n){var r=nl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,jo(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=To(e,t,i,r))&&(rl(n,e,r,i=tl()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===va||null!==t&&t===va}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:So,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:So,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:Va,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Za,useDebugValue:Wa,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Xa.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=Sa();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Au)throw Error(o(349));0!=(30&pa)||Ia(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Va(Na.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Pa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Sa(),t=Au.identifierPrefix;if(io){var n=Ji;t=":"+t+"R"+(n=(Gi&~(1<<32-at(Gi)-1)).toString(32)+n),0<(n=_a++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:So,useCallback:Ga,useContext:So,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Ja,useReducer:Ta,useRef:Fa,useState:function(){return Ta(ja)},useDebugValue:Wa,useDeferredValue:function(e){return Qa(Ea(),ga.memoizedState,e)},useTransition:function(){return[Ta(ja)[0],Ea().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Da,useId:es,unstable_isNewReconciler:!1},ls={readContext:So,useCallback:Ga,useContext:So,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Ja,useReducer:Aa,useRef:Fa,useState:function(){return Aa(ja)},useDebugValue:Wa,useDeferredValue:function(e){var t=Ea();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Aa(ja)[0],Ea().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Da,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Po(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ku||(Ku=!0,qu=r),fs(0,t)},n}function vs(e,t,n){(n=Po(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===$u?$u=new Set([this]):$u.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Po(-1,1)).tag=2,No(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=_.ReactCurrentOwner,_s=!1;function ws(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Jo(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return Oo(t,i),r=Ca(e,t,n,r,o,i),n=Oa(),null===e||_s?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ks(e,t,i))}function xs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Il(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Ks(e,t,i)}return t.flags|=1,(e=Pl(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Ks(e,t,i);0!=(131072&e.flags)&&(_s=!0)}}return Es(e,t,n,r,i)}function Os(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Pu,Iu),Iu|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Pu,Iu),Iu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Pu,Iu),Iu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Pu,Iu),Iu|=r;return ws(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=Di(n)?Ai:ji.current;return o=Ri(t,o),Oo(t,i),n=Ca(e,t,n,r,o,i),r=Oa(),null===e||_s?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ks(e,t,i))}function js(e,t,n,r,i){if(Di(n)){var o=!0;Mi(t)}else o=!1;if(Oo(t,i),null===t.stateNode)Us(e,t),Uo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;l="object"==typeof l&&null!==l?So(l):Ri(t,l=Di(n)?Ai:ji.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Ko(t,a,r,l),Ro=!1;var f=t.memoizedState;a.state=f,Zo(t,r,a,i),u=t.memoizedState,s!==r||f!==u||Ti.current||Ro?("function"==typeof c&&(Bo(t,n,c,r),u=t.memoizedState),(s=Ro||Vo(t,n,s,r,f,u,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:mo(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u="object"==typeof(u=n.contextType)&&null!==u?So(u):Ri(t,u=Di(n)?Ai:ji.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==u)&&Ko(t,a,r,u),Ro=!1,f=t.memoizedState,a.state=f,Zo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ti.current||Ro?("function"==typeof h&&(Bo(t,n,h,r),p=t.memoizedState),(l=Ro||Vo(t,n,l,r,f,p,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,i)}function Ts(e,t,n,r,i,o){Ss(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Ks(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Jo(t,e.child,null,o),t.child=Jo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),ia(e,t.containerInfo)}function Rs(e,t,n,r,i){return po(),vo(i),t.flags|=256,ws(e,t,n,r),t.child}var Ds,Is,Ps,Ns,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zs(e,t,n){var r,i=t.pendingProps,a=ua.current,s=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(ua,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Ll(u,i,0,null),e=Ml(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ms,e):zs(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Ll({mode:"visible",children:r.children},i,0,null),(a=Ml(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Jo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Fs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(u=0!=(s&e.childLanes),_s||u){if(null!==(r=Au)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ao(e,i),rl(r,e,i,-1))}return gl(),Fs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=jl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&($i[Yi++]=Gi,$i[Yi++]=Ji,$i[Yi++]=Wi,Gi=e.id,Ji=e.overflow,Wi=t),(t=zs(t,r.children)).flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Pl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Pl(r,s):(s=Ml(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ls(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Pl(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Ll({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&vo(r),Jo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Hs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(ua,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hs(t,!0,n,null,o);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Us(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ks(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $s(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:case 17:return Di(t.type)&&Ii(),$s(t),null;case 3:return r=t.stateNode,oa(),Oi(Ti),Oi(ji),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Is(e,t),$s(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return $s(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":G(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var u in ye(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,l,e),i=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":q(r),X(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[fi]=t,e[hi]=r,Ds(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":G(e,r),i=W(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":q(e),X(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return $s(t),null;case 13:if(Oi(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==oo&&(sl(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ua.current)?0===Nu&&(Nu=3):gl())),null!==t.updateQueue&&(t.flags|=4),$s(t),null);case 4:return oa(),Is(e,t),null===e&&Hr(t.stateNode.containerInfo),$s(t),null;case 10:return xo(t.type._context),$s(t),null;case 19:if(Oi(ua),null===(a=t.memoizedState))return $s(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)qs(a,!1);else{if(0!==Nu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=la(e))){for(t.flags|=128,qs(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Si(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Vu&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=la(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return $s(t),null}else 2*Je()-a.renderingStartTime>Vu&&1073741824!==n&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ua.current,Si(ua,r?1&n|2:1&n),t):($s(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Iu)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ws(e,t){switch(to(t),t.tag){case 1:return Di(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Oi(Ti),Oi(ji),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Oi(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oi(ua),null;case 4:return oa(),null;case 10:return xo(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}Ds=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=W(e,i),r=W(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&zr("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ol(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Ol(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tu(t,n,o)}i=i.next}while(i!==r)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[vi],delete t[gi],delete t[mi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var du=null,fu=!1;function hu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Js||eu(n,t);case 6:var r=du,i=fu;du=null,hu(e,t,n),fu=i,null!==(du=r)&&(fu?(e=du,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):du.removeChild(n.stateNode));break;case 18:null!==du&&(fu?(e=du,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Ht(e)):ui(du,n.stateNode));break;case 4:r=du,i=fu,du=n.stateNode.containerInfo,fu=!0,hu(e,t,n),du=r,fu=i;break;case 0:case 11:case 14:case 15:if(!Js&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&tu(n,t,a),i=i.next}while(i!==r)}hu(e,t,n);break;case 1:if(!Js&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ol(n,t,e)}hu(e,t,n);break;case 21:hu(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,hu(e,t,n),Js=r):hu(e,t,n);break;default:hu(e,t,n)}}function vu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:du=u.stateNode,fu=!1;break e;case 3:case 4:du=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===du)throw Error(o(160));pu(a,s,i),du=null,fu=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Ol(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),yu(e),4&r){try{ru(3,e,e.return),iu(3,e)}catch(t){Ol(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Ol(e,e.return,t)}}break;case 1:gu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(gu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Ol(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&J(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(u){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){Ol(e,e.return,t)}}break;case 6:if(gu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Ol(e,e.return,t)}}break;case 3:if(gu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Ol(e,e.return,t)}break;case 4:default:gu(t,e),yu(e);break;case 13:gu(t,e),yu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Hu=Je())),4&r&&vu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Js=(c=Js)||d,gu(t,e),Js=c):gu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:ru(4,h,h.return);break;case 1:eu(h,h.return);var v=h.stateNode;if("function"==typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Ol(r,n,e)}}break;case 5:eu(h,h.return);break;case 22:if(null!==h.memoizedState){ku(f);continue}}null!==p?(p.return=h,Xs=p):ku(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,s=void 0!==(l=f.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ve("display",s))}catch(t){Ol(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Ol(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gu(t,e),yu(e),4&r&&vu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(su(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cu(e,uu(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;lu(e,uu(e),a);break;default:throw Error(o(161))}}catch(t){Ol(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Xs=e,_u(e,t,n)}function _u(e,t,n){for(var r=0!=(1&e.mode);null!==Xs;){var i=Xs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Gs;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Js;s=Gs;var l=Js;if(Gs=a,(Js=u)&&!l)for(Xs=i;null!==Xs;)u=(a=Xs).child,22===a.tag&&null!==a.memoizedState?xu(i):null!==u?(u.return=a,Xs=u):xu(i);for(;null!==o;)Xs=o,_u(o,t,n),o=o.sibling;Xs=i,Gs=s,Js=l}wu(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Xs=o):wu(e)}}function wu(e){for(;null!==Xs;){var t=Xs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Js||iu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Js)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(o(163))}Js||512&t.flags&&ou(t)}catch(e){Ol(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function ku(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function xu(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iu(4,t)}catch(e){Ol(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Ol(t,i,e)}}var o=t.return;try{ou(t)}catch(e){Ol(t,o,e)}break;case 5:var a=t.return;try{ou(t)}catch(e){Ol(t,a,e)}}}catch(e){Ol(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Cu,Ou=Math.ceil,Su=_.ReactCurrentDispatcher,Eu=_.ReactCurrentOwner,ju=_.ReactCurrentBatchConfig,Tu=0,Au=null,Ru=null,Du=0,Iu=0,Pu=Ci(0),Nu=0,Mu=null,Lu=0,Zu=0,zu=0,Fu=null,Bu=null,Hu=0,Vu=1/0,Uu=null,Ku=!1,qu=null,$u=null,Yu=!1,Wu=null,Gu=0,Ju=0,Qu=null,Xu=-1,el=0;function tl(){return 0!=(6&Tu)?Je():-1!==Xu?Xu:Xu=Je()}function nl(e){return 0==(1&e.mode)?1:0!=(2&Tu)&&0!==Du?Du&-Du:null!==go.transition?(0===el&&(el=vt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function rl(e,t,n,r){if(50<Ju)throw Ju=0,Qu=null,Error(o(185));mt(e,n,r),0!=(2&Tu)&&e===Au||(e===Au&&(0==(2&Tu)&&(Zu|=n),4===Nu&&ul(e,Du)),il(e,r),1===n&&0===Tu&&0==(1&t.mode)&&(Vu=Je()+500,zi&&Hi()))}function il(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!=(s&n)&&0==(s&r)||(i[a]=ht(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Au?Du:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zi=!0,Bi(e)}(ll.bind(null,e)):Bi(ll.bind(null,e)),ai((function(){0==(6&Tu)&&Hi()})),n=null;else{switch(_t(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Al(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Xu=-1,el=0,0!=(6&Tu))throw Error(o(327));var n=e.callbackNode;if(xl()&&e.callbackNode!==n)return null;var r=ft(e,e===Au?Du:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=ml(e,r);else{t=r;var i=Tu;Tu|=2;var a=vl();for(Au===e&&Du===t||(Uu=null,Vu=Je()+500,hl(e,t));;)try{bl();break}catch(t){pl(e,t)}ko(),Su.current=a,Tu=i,null!==Ru?t=0:(Au=null,Du=0,t=Nu)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=al(e,i)),1===t)throw n=Mu,hl(e,0),ul(e,r),il(e,Je()),n;if(6===t)ul(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=ml(e,r))&&0!==(a=pt(e))&&(r=a,t=al(e,a)),1===t))throw n=Mu,hl(e,0),ul(e,r),il(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kl(e,Bu,Uu);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=Hu+500-Je())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kl.bind(null,e,Bu,Uu),t);break}kl(e,Bu,Uu);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ou(r/1960))-r)){e.timeoutHandle=ri(kl.bind(null,e,Bu,Uu),r);break}kl(e,Bu,Uu);break;default:throw Error(o(329))}}}return il(e,Je()),e.callbackNode===n?ol.bind(null,e):null}function al(e,t){var n=Fu;return e.current.memoizedState.isDehydrated&&(hl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Bu,Bu=n,null!==t&&sl(t)),e}function sl(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function ul(e,t){for(t&=~zu,t&=~Zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(0!=(6&Tu))throw Error(o(327));xl();var t=ft(e,0);if(0==(1&t))return il(e,Je()),null;var n=ml(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=al(e,r))}if(1===n)throw n=Mu,hl(e,0),ul(e,t),il(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kl(e,Bu,Uu),il(e,Je()),null}function cl(e,t){var n=Tu;Tu|=1;try{return e(t)}finally{0===(Tu=n)&&(Vu=Je()+500,zi&&Hi())}}function dl(e){null!==Wu&&0===Wu.tag&&0==(6&Tu)&&xl();var t=Tu;Tu|=1;var n=ju.transition,r=bt;try{if(ju.transition=null,bt=1,e)return e()}finally{bt=r,ju.transition=n,0==(6&(Tu=t))&&Hi()}}function fl(){Iu=Pu.current,Oi(Pu)}function hl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Ru)for(n=Ru.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:oa(),Oi(Ti),Oi(ji),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Oi(ua);break;case 10:xo(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Au=e,Ru=e=Pl(e.current,null),Du=Iu=t,Nu=0,Mu=null,zu=Zu=Lu=0,Bu=Fu=null,null!==Eo){for(t=0;t<Eo.length;t++)if(null!==(r=(n=Eo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Eo=null}return e}function pl(e,t){for(;;){var n=Ru;try{if(ko(),fa.current=as,ya){for(var r=va.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(pa=0,ma=ga=va=null,ba=!1,_a=0,Eu.current=null,null===n||null===n.return){Nu=1,Mu=t,Ru=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=Du,u.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,d=u,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,u,0,t),1&p.mode&&gs(a,c,t),l=c;var v=(t=p).updateQueue;if(null===v){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}if(0==(1&t)){gs(a,c,t),gl();break e}l=Error(o(426))}else if(io&&1&u.mode){var m=ms(s);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),ys(m,s,u,0,t),vo(cs(l,u));break e}}a=l=cs(l,u),4!==Nu&&(Nu=2),null===Fu?Fu=[a]:Fu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ps(0,l,t));break e;case 1:u=l;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===$u||!$u.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,vs(a,u,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(e){t=e,Ru===n&&null!==n&&(Ru=n=n.return);continue}break}}function vl(){var e=Su.current;return Su.current=as,null===e?as:e}function gl(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Au||0==(268435455&Lu)&&0==(268435455&Zu)||ul(Au,Du)}function ml(e,t){var n=Tu;Tu|=2;var r=vl();for(Au===e&&Du===t||(Uu=null,hl(e,t));;)try{yl();break}catch(t){pl(e,t)}if(ko(),Tu=n,Su.current=r,null!==Ru)throw Error(o(261));return Au=null,Du=0,Nu}function yl(){for(;null!==Ru;)_l(Ru)}function bl(){for(;null!==Ru&&!We();)_l(Ru)}function _l(e){var t=Cu(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,null===t?wl(e):Ru=t,Eu.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ys(n,t,Iu)))return void(Ru=n)}else{if(null!==(n=Ws(n,t)))return n.flags&=32767,void(Ru=n);if(null===e)return Nu=6,void(Ru=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ru=t);Ru=t=e}while(null!==t);0===Nu&&(Nu=5)}function kl(e,t,n){var r=bt,i=ju.transition;try{ju.transition=null,bt=1,function(e,t,n,r){do{xl()}while(null!==Wu);if(0!=(6&Tu))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Au&&(Ru=Au=null,Du=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Yu||(Yu=!0,Al(tt,(function(){return xl(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=ju.transition,ju.transition=null;var s=bt;bt=1;var u=Tu;Tu|=4,Eu.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,u=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(u=s+i),f!==a||0!==r&&3!==f.nodeType||(l=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(u=s),h===a&&++d===r&&(l=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:mo(t.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){Ol(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}v=nu,nu=!1}(e,n),mu(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,bu(n,e,i),Ge(),Tu=u,bt=s,ju.transition=a}else e.current=n;if(Yu&&(Yu=!1,Wu=e,Gu=i),0===(a=e.pendingLanes)&&($u=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),il(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ku)throw Ku=!1,e=qu,qu=null,e;0!=(1&Gu)&&0!==e.tag&&xl(),0!=(1&(a=e.pendingLanes))?e===Qu?Ju++:(Ju=0,Qu=e):Ju=0,Hi()}(e,t,n,r)}finally{ju.transition=i,bt=r}return null}function xl(){if(null!==Wu){var e=_t(Gu),t=ju.transition,n=bt;try{if(ju.transition=null,bt=16>e?16:e,null===Wu)var r=!1;else{if(e=Wu,Wu=null,Gu=0,0!=(6&Tu))throw Error(o(331));var i=Tu;for(Tu|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!=(16&Xs.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:ru(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var h=(d=Xs).sibling,p=d.return;if(au(d),d===c){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Xs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!=(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var _=(s=Xs).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,Xs=_;else e:for(s=b;null!==Xs;){if(0!=(2048&(u=Xs).flags))try{switch(u.tag){case 0:case 11:case 15:iu(9,u)}}catch(e){Ol(u,u.return,e)}if(u===s){Xs=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Xs=w;break e}Xs=u.return}}if(Tu=i,Hi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,ju.transition=t}}return!1}function Cl(e,t,n){e=No(e,t=ps(0,t=cs(n,t),1),1),t=tl(),null!==e&&(mt(e,1,t),il(e,t))}function Ol(e,t,n){if(3===e.tag)Cl(e,e,n);else for(;null!==t;){if(3===t.tag){Cl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$u||!$u.has(r))){t=No(t,e=vs(t,e=cs(n,e),1),1),e=tl(),null!==t&&(mt(t,1,e),il(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Au===e&&(Du&n)===n&&(4===Nu||3===Nu&&(130023424&Du)===Du&&500>Je()-Hu?hl(e,0):zu|=n),il(e,t)}function El(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tl();null!==(e=Ao(e,t))&&(mt(e,t,n),il(e,n))}function jl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function Tl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),El(e,n)}function Al(e,t){return $e(e,t)}function Rl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dl(e,t,n,r){return new Rl(e,t,n,r)}function Il(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=Dl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Il(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Ml(n.children,i,a,t);case C:s=8,i|=8;break;case O:return(e=Dl(12,n,t,2|i)).elementType=O,e.lanes=a,e;case T:return(e=Dl(13,n,t,i)).elementType=T,e.lanes=a,e;case A:return(e=Dl(19,n,t,i)).elementType=A,e.lanes=a,e;case I:return Ll(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case j:s=11;break e;case R:s=14;break e;case D:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Dl(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Ml(e,t,n,r){return(e=Dl(7,e,r,t)).lanes=n,e}function Ll(e,t,n,r){return(e=Dl(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return(e=Dl(6,e,null,t)).lanes=n,e}function zl(e,t,n){return(t=Dl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,r,i,o,a,s,u){return e=new Fl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Dl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Do(o),e}function Hl(e){if(!e)return Ei;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Di(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Di(n))return Ni(e,n,t)}return t}function Vl(e,t,n,r,i,o,a,s,u){return(e=Bl(n,r,!0,e,0,o,0,s,u)).context=Hl(null),n=e.current,(o=Po(r=tl(),i=nl(n))).callback=null!=t?t:null,No(n,o,i),e.current.lanes=i,mt(e,i,r),il(e,r),e}function Ul(e,t,n,r){var i=t.current,o=tl(),a=nl(i);return n=Hl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Po(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=No(i,t,a))&&(rl(e,i,a,o),Mo(e,i,a)),a}function Kl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $l(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}Cu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)_s=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:As(t),po();break;case 5:aa(t);break;case 1:Di(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(ua,1&ua.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Zs(e,t,n):(Si(ua,1&ua.current),null!==(e=Ks(e,t,n))?e.sibling:null);Si(ua,1&ua.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Vs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Os(e,t,n)}return Ks(e,t,n)}(e,t,n);_s=0!=(131072&e.flags)}else _s=!1,io&&0!=(1048576&t.flags)&&Xi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var i=Ri(t,ji.current);Oo(t,n),i=Ca(null,t,r,e,i,n);var a=Oa();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Di(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Do(t),i.updater=Ho,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Il(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===R)return 14}return 2}(r),e=mo(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=js(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=xs(null,t,r,mo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 1:return r=t.type,i=t.pendingProps,js(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 3:e:{if(As(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Io(e,t),Zo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rs(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Rs(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Ks(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Zs(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Jo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:mo(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Si(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ti.current){t=Ks(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Po(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Co(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Co(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oo(t,n),r=r(i=So(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=mo(r=t.type,t.pendingProps),xs(e,t,r,i=mo(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mo(r,i),Us(e,t),t.tag=1,Di(r)?(e=!0,Mi(t)):e=!1,Oo(t,n),Uo(t,r,i),qo(t,r,i,n),Ts(null,t,r,!0,e,n);case 19:return Vs(e,t,n);case 22:return Os(e,t,n)}throw Error(o(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}function Gl(e){this._internalRoot=e}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xl(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Kl(a);s.call(e)}}Ul(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Kl(a);o.call(e)}}var a=Vl(t,r,e,0,null,!1,0,"",Xl);return e._reactRootContainer=a,e[pi]=a.current,Hr(8===e.nodeType?e.parentNode:e),dl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Kl(u);s.call(e)}}var u=Bl(e,0,!1,null,0,!1,0,"",Xl);return e._reactRootContainer=u,e[pi]=u.current,Hr(8===e.nodeType?e.parentNode:e),dl((function(){Ul(t,u,n,r)})),u}(n,t,e,i,r);return Kl(a)}Gl.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Ul(e,t,null,null)},Gl.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl((function(){Ul(null,e,null,null)})),t[pi]=null}},Gl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),il(t,Je()),0==(6&Tu)&&(Vu=Je()+500,Hi()))}break;case 13:dl((function(){var t=Ao(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}})),$l(e,1)}},kt=function(e){if(13===e.tag){var t=Ao(e,134217728);null!==t&&rl(t,e,134217728,tl()),$l(e,134217728)}},xt=function(e){if(13===e.tag){var t=nl(e),n=Ao(e,t);null!==n&&rl(n,e,t,tl()),$l(e,t)}},Ct=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));$(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=cl,Te=dl;var tc={usingClientEntryPoint:!1,Events:[bi,_i,wi,Se,Ee,cl]},nc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),ot=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Jl(e))throw Error(o(299));var n=!1,r="",i=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bl(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Wl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Jl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Vl(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Hr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gl(t)},t.render=function(e,t,n){if(!Ql(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(o(40));return!!e._reactRootContainer&&(dl((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ql(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4463)},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var _=b.prototype=new y;_.constructor=b,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+j(u,0):o,w(a)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),T(a,t,i,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",w(e))for(var l=0;l<e.length;l++){var c=o+j(s=e[l],l);u+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=T(s=s.value,t,i,c=o+j(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function A(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},I={transition:null},P={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:I,ReactCurrentOwner:x};t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)k.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new j(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(T([])));w&&w!==n&&r.call(w,o)&&(b=w);var k=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return m.prototype=y,u(k,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],d=1,f=null,h=3,p=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function w(e){if(g=!1,_(e),!v)if(null!==r(l))v=!0,I(k);else{var t=r(c);null!==t&&P(w,t.startTime-e)}}function k(e,n){v=!1,g&&(g=!1,y(S),S=-1),p=!0;var o=h;try{for(_(n),f=r(l);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(l)&&i(l),_(n)}else i(l);f=r(l)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&P(w,d.startTime-n),u=!1}return u}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,O=null,S=-1,E=5,j=-1;function T(){return!(t.unstable_now()-j<E)}function A(){if(null!==O){var e=t.unstable_now();j=e;var n=!0;try{n=O(!0,e)}finally{n?x():(C=!1,O=null)}}else C=!1}if("function"==typeof b)x=function(){b(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,D=R.port2;R.port1.onmessage=A,x=function(){D.postMessage(null)}}else x=function(){m(A,0)};function I(e){O=e,C||(C=!0,x())}function P(e,n){S=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(g?(y(S),S=-1):g=!0,P(w,o-a))):(e.sortIndex=s,n(l,e),v||p||(v=!0,I(k))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5940:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.labelForComparison=t.ComparisonType=void 0,function(e){e.UncommittedChanges="UNCOMMITTED",e.HeadChanges="HEAD",e.StackChanges="STACK",e.Committed="InCommit",e.Commit="Commit",e.Range="Range"}(n=t.ComparisonType||(t.ComparisonType={})),t.labelForComparison=function(e){switch(e.type){case n.UncommittedChanges:return"Uncommitted changes";case n.HeadChanges:return"Changes in current commit";case n.StackChanges:return"Changes in current branch";case n.Committed:return"Changes in ".concat(e.hash);case n.Commit:return"In ".concat(e.sha);case n.Range:return"From ".concat(e.fromSha," to ").concat(e.toSha)}}},1243:function(e,t,n){"use strict";var r=n(319).default,i=n(3038).default,o=n(3269).default,a=n(4575).default,s=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cached=t.LRU=void 0;var u=n(4299),l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;a(this,e),this.maxItems=t,this.maxHashCollision=n,this.cache=new Map}return s(e,[{key:"get",value:function(e){var t=void 0,n=c(e),r=this.cache.get(n);if(void 0!==r){var a=r.get(e);if(void 0!==a)t=a;else{var s,l=o(r);try{for(l.s();!(s=l.n()).done;){var d=i(s.value,2),f=d[0],h=d[1];if((0,u.is)(e,f)){t=h;break}}}catch(e){l.e(e)}finally{l.f()}}this.cache.delete(n),this.cache.set(n,r)}return t}},{key:"set",value:function(e,t){var n=c(e),r=this.cache.get(n);if(void 0===r||r.size>=this.maxHashCollision?r=new Map([[e,t]]):r.set(e,t),this.cache.delete(n),void 0!==t&&(this.cache.set(n,r),this.cache.size>this.maxItems)){var i=this.cache.keys().next();i.done||this.cache.delete(i.value)}}},{key:"delete",value:function(e){var t=c(e);this.cache.delete(t)}},{key:"clear",value:function(){this.cache.clear()}}]),e}();function c(e){var t=null==e?void 0:e.hashCode;return void 0!==t?t.apply(e):e}function d(e,t){var n,i,o=null!==(n=null==t?void 0:t.cache)&&void 0!==n?n:new l(null!==(i=null==t?void 0:t.cacheSize)&&void 0!==i?i:10),a=null==t?void 0:t.getExtraKeys,s=function(){for(var t,n,i,s=o.stats,l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];if(!c.every(h))return null!=s&&(s.skip=(null!==(t=s.skip)&&void 0!==t?t:0)+1),e.apply(this,c);var f=(0,u.List)(a?[].concat(r(a.apply(this)),c):c),p=o.get(f);if(void 0!==p)return null!=s&&(s.hit=(null!==(n=s.hit)&&void 0!==n?n:0)+1),p;null!=s&&(s.miss=(null!==(i=s.miss)&&void 0!==i?i:0)+1);var v=e.apply(this,c);return o.set(f,v),v};return s.cache=o,s}t.LRU=l,t.cached=function(e,t){return"function"==typeof e?d(e,t):function(e){var t,n=null!==(t=null==e?void 0:e.getExtraKeys)&&void 0!==t?t:function(){return(0,u.isValueObject)(this)?[this]:null!=this&&"object"==typeof this?Object.values(this).filter(h):[]};return function(t,r,i){var o=i.value;i.value=d(o,Object.assign(Object.assign({},e),{getExtraKeys:n}))}}(e)};var f=new Set(["number","string","boolean","symbol","bigint","undefined","null"]);function h(e){if(null==e)return!0;var t=typeof e;return!!f.has(t)||!("object"!==t||!(0,u.isValueObject)(e))}},1641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5935:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1641),t),i(n(9772),t),i(n(8613),t),i(n(4999),t)},9772:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8613:function(e,t,n){"use strict";var r=n(4575).default,i=n(3913).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var o=n(6537),a=function(){function e(t,n){r(this,e),this.sendData=t,this.context=n}return i(e,[{key:"error",value:function(e,t,n,r){var i=n instanceof Error?n.message||String(n):n;return this.track(e,Object.assign(Object.assign({},null!=r?r:{}),{errorMessage:i,errorName:t}))}},{key:"operation",value:function(e,t,n,r){var i,a=this,s=Date.now(),u=null!==(i=null==n?void 0:n.id)&&void 0!==i?i:(0,o.randomId)();try{var l=r({parentId:u});if((0,o.isPromise)(l))return l.then((function(t){var r=Date.now()-s;return a.track(e,Object.assign(Object.assign({},null!=n?n:{}),{duration:r,id:u})),t})).catch((function(r){var i=Date.now()-s;return a.error(e,t,r,Object.assign(Object.assign({},null!=n?n:{}),{duration:i,id:u})),Promise.reject(r)}));var c=Date.now()-s;return this.track(e,Object.assign(Object.assign({},null!=n?n:{}),{duration:c,id:u})),l}catch(r){var d=Date.now()-s;throw this.error(e,t,r,Object.assign(Object.assign({},null!=n?n:{}),{duration:d,id:u})),r}}},{key:"trackAsParent",value:function(t,n){var r,i=this,a=null!==(r=null==n?void 0:n.id)&&void 0!==r?r:(0,o.randomId)();return this.trackData(Object.assign(Object.assign({},n),{eventName:t,id:a})),new e((function(e,t){return i.trackData(Object.assign(Object.assign({},e),t))}),{parentId:a})}},{key:"track",value:function(e,t){return this.trackData(Object.assign(Object.assign({},t),{eventName:e}))}},{key:"trackData",value:function(e){var t,n,r=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:(0,o.randomId)(),i=null!==(n=null==e?void 0:e.timestamp)&&void 0!==n?n:Date.now(),a=Object.assign({timestamp:i,id:r},null!=e?e:{});this.sendData(a,this.context)}}]),e}();t.Tracker=a},4999:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!0;function a(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var c;if(i){if(c=function(){o=!0,n=void 0},!o)return clearTimeout(n),void(n=setTimeout(c,t));o=!1,e.apply(r,u)}else a.reset(),c=function(){n=void 0,e.apply(r,u)};n=setTimeout(c,t)}return a.reset=function(){clearTimeout(n),n=void 0,o=!0},a.isPending=function(){return null!=n},a}},88:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5935),t),i(n(5940),t),i(n(7233),t),i(n(1243),t),i(n(2508),t),i(n(7805),t),i(n(8407),t),i(n(7660),t),i(n(1296),t),i(n(6537),t)},2508:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=t.DiffType=void 0,function(e){e.Modified="Modified",e.Added="Added",e.Removed="Removed",e.Renamed="Renamed",e.Copied="Copied"}(n=t.DiffType||(t.DiffType={}));var r=/^diff --git (.*) (.*)$/,i=/^rename from (.*)$/,o=/^rename to (.*)$/,a=/^copy from (.*)$/,s=/^copy to (.*)$/,u=/^new file mode (\d{6})$/,l=/^deleted file mode (\d{6})$/,c=/^old mode (\d{6})$/,d=/^new mode (\d{6})$/,f=/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,h=/^--- (.*)$/,p=/^\+\+\+ (.*)$/,v=/\r\n|[\n\v\f\r\x85]/g;function g(e,t){if(!1===e)throw new Error(t)}t.parsePatch=function(e){var t=e.split(v),m=e.match(v)||[],y=[],b=0;function _(){var e={hunks:[]};for(y.push(e),function(e){for(;b<t.length;){var n=t[b],i=r.exec(n);if(i){e.oldFileName=i[1],e.newFileName=i[2],b++;break}b++}}(e);b<t.length;){var n=t[b];if(/^old mode/.test(n))w(e);else if(/^new mode/.test(n))k(e);else if(/^deleted file mode/.test(n))x(e);else if(/^new file mode/.test(n))C(e);else if(/^copy /.test(n))O(e);else if(/^rename /.test(n))S(e);else{if(/^--- /.test(n)){E(e);break}if(/^diff --git/.test(n))break;b++}}!function(e){for(;b<t.length;){var n=t[b];if(r.test(n))break;/^@@/.test(n)?e.hunks.push(j()):b++}}(e)}function w(e){var r=c.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.oldMode=r[1],e.type=n.Modified,b++}function k(e){var r=d.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Modified,b++}function x(e){var r=l.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Removed,b++}function C(e){var r=u.exec(t[b]);g(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Added,b++}function O(e){g(a.test(t[b]),"invalid format '".concat(t[b],"'")),g(s.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Copied,b+=2}function S(e){g(i.test(t[b]),"invalid format '".concat(t[b],"'")),g(o.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Renamed,b+=2}function E(e){g(h.test(t[b]),"invalid format '".concat(t[b],"'")),g(p.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),void 0===e.type&&(e.type=n.Modified),b+=2}function j(){var e=t[b++].split(f),n={oldStart:+e[1],oldLines:void 0===e[2]?1:+e[2],newStart:+e[3],newLines:void 0===e[4]?1:+e[4],lines:[],linedelimiters:[]};0===n.oldLines&&(n.oldStart+=1),0===n.newLines&&(n.newStart+=1);for(var r=0,i=0;b<t.length&&!(0===t[b].indexOf("--- ")&&b+2<t.length&&0===t[b+1].indexOf("+++ ")&&0===t[b+2].indexOf("@@"));b++){var o=0==t[b].length&&b!=t.length-1?" ":t[b][0];if("+"!==o&&"-"!==o&&" "!==o&&"\\"!==o)break;n.lines.push(t[b]),n.linedelimiters.push(m[b]||"\n"),"+"===o?r++:"-"===o?i++:" "===o&&(r++,i++)}return r||1!==n.newLines||(n.newLines=0),i||1!==n.oldLines||(n.oldLines=0),n}for(;b<t.length;)_();return y}},7805:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeFromString=t.deserialize=t.serializeToString=t.serialize=void 0;var i={__rpcType:"undefined"};function o(e){if(void 0===e)return i;if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null===e)return e;if(e instanceof Map)return{__rpcType:"Map",data:Array.from(e.entries()).map((function(e){var t=r(e,2),n=t[0],i=t[1];return[o(n),o(i)]}))};if(e instanceof Set)return{__rpcType:"Set",data:Array.from(e.values()).map(o)};if(e instanceof Error)return{__rpcType:"Error",data:{message:e.message,stack:e.stack}};if(e instanceof Date)return{__rpcType:"Date",data:e.valueOf()};if(Array.isArray(e))return e.map((function(e){return o(e)}));if("object"==typeof e){for(var t={__rpcType:"object"},n=0,a=Object.entries(e);n<a.length;n++){var s=r(a[n],2),u=s[0],l=s[1];t[u]=o(l)}return t}throw new Error("cannot serialize argument ".concat(e))}function a(e){if("object"!=typeof e||null==e)return e;if(Array.isArray(e))return e.map((function(e){return a(e)}));var t=e;switch(t.__rpcType){case"undefined":return;case"Map":return new Map(t.data.map((function(e){var t=r(e,2),n=t[0],i=t[1];return[a(n),a(i)]})));case"Set":return new Set(t.data.map(a));case"Error":var n=new Error;return n.stack=t.data.stack,n.message=t.data.message,n;case"Date":return new Date(t.data);case"object":for(var i=e,o={},s=0,u=Object.entries(i);s<u.length;s++){var l=r(u[s],2),c=l[0],d=l[1];"__rpcType"!==c&&(o[c]=a(d))}return o;default:throw new Error("cannot deserialize unknown type ".concat(t))}}t.serialize=o,t.serializeToString=function(e){return JSON.stringify(o(e))},t.deserialize=a,t.deserializeFromString=function(e){return a(JSON.parse(e))}},8407:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1296:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1523:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SucceedableRevset=t.CommandRunner=void 0,function(e){e.Graphite="gt",e.CodeReviewProvider="codeReviewProvider"}(t.CommandRunner||(t.CommandRunner={})),t.SucceedableRevset=function(e){return{type:"succeedable-revset",revset:e}}},1606:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3064:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorShortMessages=t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=t.ONE_MINUTE_MS=t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=void 0,t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=4100,t.ONE_MINUTE_MS=6e4,t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=void 0,function(e){e.NoCommitsFetched="No commits found"}(t.ErrorShortMessages||(t.ErrorShortMessages={}))},519:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7660:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1523),t),i(n(1606),t),i(n(6233),t),i(n(3064),t),i(n(519),t),i(n(2687),t)},2687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6537:function(e,t,n){"use strict";var r=n(7757),i=n(3269).default,o=r.mark(a);function a(e,t){var n,i,a,s;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=e[Symbol.iterator](),i=t[Symbol.iterator]();case 2:if(a=n.next(),s=i.next(),!a.done&&!s.done){r.next=7;break}return r.abrupt("break",11);case 7:return r.next=9,[a.value,s.value];case 9:r.next=2;break;case 11:case"end":return r.stop()}}),o)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=t.truncate=t.zip=t.generatorContains=t.mapObject=t.findParentWithClassName=t.basename=t.defer=t.randomId=t.unwrap=t.notEmpty=void 0,t.notEmpty=function(e){return null!=e},t.unwrap=function(e){if(null==e)throw new Error("expected value not to be ".concat(e));return e},t.randomId=function(){return Date.now().toString(36)+Math.random().toString(36)},t.defer=function(){var e={promise:void 0,resolve:void 0,reject:void 0};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},t.basename=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=e.lastIndexOf(t);return-1===n?e:e.slice(n+1)},t.findParentWithClassName=function(e,t){for(var n,r=e;r;){if(null===(n=r.classList)||void 0===n?void 0:n.contains(t))return r;r=r.parentElement}},t.mapObject=function(e,t){return Object.fromEntries(Object.entries(e).map(t))},t.generatorContains=function(e,t){var n,r="function"==typeof t?t:function(e){return e===t},o=i(e);try{for(o.s();!(n=o.n()).done;)if(r(n.value))return!0}catch(e){o.e(e)}finally{o.f()}return!1},t.zip=a,t.truncate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.substring(0,Math.max(0,t-1))+"…":e},t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},4299:function(e,t,n){"use strict";n.r(t),n.d(t,{Collection:function(){return O},Iterable:function(){return Tr},List:function(){return ln},Map:function(){return Zt},OrderedMap:function(){return xn},OrderedSet:function(){return cr},PairSorting:function(){return vr},Range:function(){return $n},Record:function(){return gr},Repeat:function(){return xr},Seq:function(){return J},Set:function(){return Fn},Stack:function(){return Tn},fromJS:function(){return Cr},get:function(){return ut},getIn:function(){return Yn},has:function(){return st},hasIn:function(){return Gn},hash:function(){return me},is:function(){return he},isAssociative:function(){return C},isCollection:function(){return b},isImmutable:function(){return I},isIndexed:function(){return x},isKeyed:function(){return w},isList:function(){return un},isMap:function(){return ce},isOrdered:function(){return N},isOrderedMap:function(){return de},isOrderedSet:function(){return Mn},isPlainObject:function(){return it},isRecord:function(){return D},isSeq:function(){return A},isSet:function(){return Nn},isStack:function(){return jn},isValueObject:function(){return fe},merge:function(){return Ct},mergeDeep:function(){return St},mergeDeepWith:function(){return Et},mergeWith:function(){return Ot},remove:function(){return ct},removeIn:function(){return gt},set:function(){return dt},setIn:function(){return pt},update:function(){return yt},updateIn:function(){return ft},version:function(){return Er}});var r="delete",i=5,o=1<<i,a=o-1,s={};function u(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(f)),e.size}function d(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function f(){return!0}function h(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return g(e,t,0)}function v(e,t){return g(e,t,t)}function g(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[y])}var _="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[_])}var k="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[k])}function C(e){return w(e)||x(e)}var O=function(e){return b(e)?e:J(e)},S=function(e){function t(e){return w(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(O),E=function(e){function t(e){return x(e)?e:X(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(O),j=function(e){function t(e){return b(e)&&!C(e)?e:ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(O);O.Keyed=S,O.Indexed=E,O.Set=j;var T="@@__IMMUTABLE_SEQ__@@";function A(e){return Boolean(e&&e[T])}var R="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[R])}function I(e){return b(e)||D(e)}var P="@@__IMMUTABLE_ORDERED__@@";function N(e){return Boolean(e&&e[P])}var M=0,L=1,Z=2,z="function"==typeof Symbol&&Symbol.iterator,F="@@iterator",B=z||F,H=function(e){this.next=e};function V(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function U(){return{value:void 0,done:!0}}function K(e){return!!Array.isArray(e)||!!Y(e)}function q(e){return e&&"function"==typeof e.next}function $(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(z&&e[z]||e[F]);if("function"==typeof t)return t}H.prototype.toString=function(){return"[Iterator]"},H.KEYS=M,H.VALUES=L,H.ENTRIES=Z,H.prototype.inspect=H.prototype.toSource=function(){return this.toString()},H.prototype[B]=function(){return this};var W=Object.prototype.hasOwnProperty;function G(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var J=function(e){function t(e){return null==e?oe():I(e)?e.toSeq():function(e){var t=ue(e);if(t)return function(e){var t=Y(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=Y(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"==typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new H((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return V(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(O),Q=function(e){function t(e){return null==e?oe().toKeyedSeq():b(e)?w(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():ae(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(J),X=function(e){function t(e){return null==e?oe():b(e)?w(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():se(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(J),ee=function(e){function t(e){return(b(e)&&!C(e)?e:X(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(J);J.isSeq=A,J.Keyed=Q,J.Set=ee,J.Indexed=X,J.prototype[T]=!0;var te=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[d(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new H((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return V(e,o,n[o])}))},t}(X),ne=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return W.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new H((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return V(e,a,n[a])}))},t}(Q);ne.prototype[P]=!0;var re,ie=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._collection),r=0;if(q(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._collection);if(!q(n))return new H(U);var r=0;return new H((function(){var t=n.next();return t.done?t:V(e,r++,t.value)}))},t}(X);function oe(){return re||(re=new te([]))}function ae(e){var t=ue(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function se(e){var t=ue(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ue(e){return G(e)?new te(e):K(e)?new ie(e):void 0}var le="@@__IMMUTABLE_MAP__@@";function ce(e){return Boolean(e&&e[le])}function de(e){return ce(e)&&N(e)}function fe(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function he(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(fe(e)&&fe(t)&&e.equals(t))}var pe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ve(e){return e>>>1&1073741824|3221225471&e}var ge=Object.prototype.valueOf;function me(e){if(null==e)return ye(e);if("function"==typeof e.hashCode)return ve(e.hashCode(e));var t,n=(t=e).valueOf!==ge&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return ye(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return ve(t)}(n);case"string":return n.length>je?function(e){var t=Re[e];return void 0===t&&(t=be(e),Ae===Te&&(Ae=0,Re={}),Ae++,Re[e]=t),t}(n):be(n);case"object":case"function":return function(e){var t;if(Ce&&void 0!==(t=xe.get(e)))return t;if(void 0!==(t=e[Ee]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ee]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ke(),Ce)xe.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Ee,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ee]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ee]=t}}return t}(n);case"symbol":return function(e){var t=Oe[e];return void 0!==t||(t=ke(),Oe[e]=t),t}(n);default:if("function"==typeof n.toString)return be(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ye(e){return null===e?1108378658:1108378659}function be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ve(t)}var _e=Object.isExtensible,we=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ke(){var e=++Se;return 1073741824&Se&&(Se=0),e}var xe,Ce="function"==typeof WeakMap;Ce&&(xe=new WeakMap);var Oe=Object.create(null),Se=0,Ee="__immutablehash__";"function"==typeof Symbol&&(Ee=Symbol(Ee));var je=16,Te=255,Ae=0,Re={},De=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Le(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Q);De.prototype[P]=!0;var Ie=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&c(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(L,t),i=0;return t&&c(this),new H((function(){var o=r.next();return o.done?o:V(e,t?n.size-++i:i++,o.value,o)}))},t}(X),Pe=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new H((function(){var t=n.next();return t.done?t:V(e,t.value,t.value,t)}))},t}(ee),Ne=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ye(t);var r=b(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new H((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ye(r);var i=b(r);return V(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(Q);function Me(e){var t=Ge(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Je,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===Z){var r=e.__iterator(t,n);return new H((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?M:L,n)},t}function Le(e,t,n){var r=Ge(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,s);return o===s?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(Z,i);return new H((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return V(r,s,t.call(n,a[1],s,e),i)}))},r}function Ze(e,t){var n=this,r=Ge(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Me(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Je,r.__iterate=function(n,r){var i=this,o=0;return r&&c(e),e.__iterate((function(e,a){return n(e,t?a:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&c(e);var a=e.__iterator(Z,!i);return new H((function(){var e=a.next();if(e.done)return e;var s=e.value;return V(r,t?s[0]:i?n.size-++o:o++,s[1],e)}))},r}function ze(e,t,n,r){var i=Ge(e);return r&&(i.has=function(r){var i=e.get(r,s);return i!==s&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,s);return o!==s&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(Z,o),s=0;return new H((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return V(i,r?l:s++,c,o)}}))},i}function Fe(e,t,n,r){var i=e.size;if(h(t,n,i))return e;var o=p(t,i),a=v(n,i);if(o!=o||a!=a)return Fe(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=Ge(e);return l.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(l.get=function(t,n){return(t=d(this,t))>=0&&t<s?e.get(t+o,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<o))return l++,!1!==t(e,r?n:l-1,i)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new H(U);var i=e.__iterator(t,n),a=0,u=0;return new H((function(){for(;a++<o;)i.next();if(++u>s)return{value:void 0,done:!0};var e=i.next();return r||t===L||e.done?e:V(t,u-1,t===M?void 0:e.value[1],e)}))},l}function Be(e,t,n,r){var i=Ge(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(Z,o),u=!0,l=0;return new H((function(){var e,o,c;do{if((e=s.next()).done)return r||i===L?e:V(i,l++,i===M?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],u&&(u=t.call(n,c,o,a))}while(u);return i===Z?e:V(i,o,c,e)}))},i}function He(e,t,n){var r=Ge(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(u,l){u.__iterate((function(o,u){return(!t||l<t)&&b(o)?e(o,l+1):(a++,!1===i(o,n?u:a-1,r)&&(s=!0)),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new H((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(r===Z&&(u=u[1]),t&&!(a.length<t)||!b(u))return n?e:V(r,s++,u,e);a.push(o),o=u.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}}))},r}function Ve(e,t,n){t||(t=Qe);var r=w(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?Q(o):x(e)?X(o):ee(o)}function Ue(e,t,n){if(t||(t=Qe),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Ke(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Ke(t,e,n)?n:e}))}function Ke(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function qe(e,t,n,r){var i=Ge(e),o=new te(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=O(e),$(i?e.reverse():e)})),a=0,s=!1;return new H((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:V(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function $e(e,t){return e===t?e:A(e)?t:e.constructor(t)}function Ye(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function We(e){return w(e)?S:x(e)?E:j}function Ge(e){return Object.create((w(e)?Q:x(e)?X:ee).prototype)}function Je(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):J.prototype.cacheResult.call(this)}function Qe(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Xe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function et(e,t){if(!e)throw new Error(t)}function tt(e){et(e!==1/0,"Cannot perform this action with an infinite size.")}function nt(e){if(G(e)&&"string"!=typeof e)return e;if(N(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ie.prototype.cacheResult=De.prototype.cacheResult=Pe.prototype.cacheResult=Ne.prototype.cacheResult=Je;var rt=Object.prototype.toString;function it(e){if(!e||"object"!=typeof e||"[object Object]"!==rt.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function ot(e){return"object"==typeof e&&(I(e)||Array.isArray(e)||it(e))}function at(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function st(e,t){return I(e)?e.has(t):ot(e)&&W.call(e,t)}function ut(e,t,n){return I(e)?e.get(t,n):st(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function lt(e){if(Array.isArray(e))return Xe(e);var t={};for(var n in e)W.call(e,n)&&(t[n]=e[n]);return t}function ct(e,t){if(!ot(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!W.call(e,t))return e;var n=lt(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function dt(e,t,n){if(!ot(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(W.call(e,t)&&n===e[t])return e;var r=lt(e);return r[t]=n,r}function ft(e,t,n,r){r||(r=n,n=void 0);var i=ht(I(e),e,nt(t),0,n,r);return i===s?n:i}function ht(e,t,n,r,i,o){var a=t===s;if(r===n.length){var u=a?i:t,l=o(u);return l===u?t:l}if(!a&&!ot(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(at)+"]: "+t);var c=n[r],d=a?s:ut(t,c,s),f=ht(d===s?e:I(d),d,n,r+1,i,o);return f===d?t:f===s?ct(t,c):dt(a?e?Gt():{}:t,c,f)}function pt(e,t,n){return ft(e,t,s,(function(){return n}))}function vt(e,t){return pt(this,e,t)}function gt(e,t){return ft(e,t,(function(){return s}))}function mt(e){return gt(this,e)}function yt(e,t,n,r){return ft(e,[t],n,r)}function bt(e,t,n){return 1===arguments.length?e(this):yt(this,e,t,n)}function _t(e,t,n){return ft(this,e,t,n)}function wt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return xt(this,e)}function kt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return xt(this,t,e)}function xt(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=S(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){yt(e,r,s,(function(e){return e===s?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function Ct(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Tt(e,t)}function Ot(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Tt(t,n,e)}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return jt(e,t)}function Et(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return jt(t,n,e)}function jt(e,t,n){return Tt(e,t,function(e){return function t(n,r,i){return ot(n)&&ot(r)&&function(e,t){var n=J(e),r=J(t);return x(n)===x(r)&&w(n)===w(r)}(n,r)?Tt(n,[r],t):e?e(n,r,i):r}}(n))}function Tt(e,t,n){if(!ot(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(I(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?E:S,a=r?function(t){i===e&&(i=lt(i)),i.push(t)}:function(t,r){var o=W.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=lt(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function At(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return jt(this,e)}function Rt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return jt(this,t,e)}function Dt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ft(this,e,Gt(),(function(e){return Tt(e,t)}))}function It(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ft(this,e,Gt(),(function(e){return jt(e,t)}))}function Pt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Nt(){return this.__ownerID?this:this.__ensureOwner(new l)}function Mt(){return this.__ensureOwner()}function Lt(){return this.__altered}var Zt=function(e){function t(t){return null==t?Gt():ce(t)&&!N(t)?t:Gt().withMutations((function(n){var r=e(t);tt(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Gt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Jt(this,e,t)},t.prototype.remove=function(e){return Jt(this,e,s)},t.prototype.deleteAll=function(e){var t=O(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},t.prototype.sort=function(e){return xn(Ve(this,e))},t.prototype.sortBy=function(e,t){return xn(Ve(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new qt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Wt(this.size,this._root,e,this.__hash):0===this.size?Gt():(this.__ownerID=e,this.__altered=!1,this)},t}(S);Zt.isMap=ce;var zt=Zt.prototype;zt[le]=!0,zt[r]=zt.remove,zt.removeAll=zt.deleteAll,zt.setIn=vt,zt.removeIn=zt.deleteIn=mt,zt.update=bt,zt.updateIn=_t,zt.merge=zt.concat=wt,zt.mergeWith=kt,zt.mergeDeep=At,zt.mergeDeepWith=Rt,zt.mergeIn=Dt,zt.mergeDeepIn=It,zt.withMutations=Pt,zt.wasAltered=Lt,zt.asImmutable=Mt,zt["@@transducer/init"]=zt.asMutable=Nt,zt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},zt["@@transducer/result"]=function(e){return e.asImmutable()};var Ft=function(e,t){this.ownerID=e,this.entries=t};Ft.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(he(n,i[o][0]))return i[o][1];return r},Ft.prototype.update=function(e,t,n,r,i,o,a){for(var c=i===s,d=this.entries,f=0,h=d.length;f<h&&!he(r,d[f][0]);f++);var p=f<h;if(p?d[f][1]===i:c)return this;if(u(a),(c||!p)&&u(o),!c||1!==d.length){if(!p&&!c&&d.length>=rn)return function(e,t,n,r){e||(e=new l);for(var i=new Ut(e,me(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,d,r,i);var v=e&&e===this.ownerID,g=v?d:Xe(d);return p?c?f===h-1?g.pop():g[f]=g.pop():g[f]=[r,i]:g.push([r,i]),v?(this.entries=g,this):new Ft(e,g)}};var Bt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Bt.prototype.get=function(e,t,n,r){void 0===t&&(t=me(n));var o=1<<((0===e?t:t>>>e)&a),s=this.bitmap;return 0==(s&o)?r:this.nodes[tn(s&o-1)].get(e+i,t,n,r)},Bt.prototype.update=function(e,t,n,r,u,l,c){void 0===n&&(n=me(r));var d=(0===t?n:n>>>t)&a,f=1<<d,h=this.bitmap,p=0!=(h&f);if(!p&&u===s)return this;var v=tn(h&f-1),g=this.nodes,m=p?g[v]:void 0,y=Qt(m,e,t+i,n,r,u,l,c);if(y===m)return this;if(!p&&y&&g.length>=on)return function(e,t,n,r,i){for(var a=0,s=new Array(o),u=0;0!==n;u++,n>>>=1)s[u]=1&n?t[a++]:void 0;return s[r]=i,new Ht(e,a+1,s)}(e,g,h,d,y);if(p&&!y&&2===g.length&&Xt(g[1^v]))return g[1^v];if(p&&y&&1===g.length&&Xt(y))return y;var b=e&&e===this.ownerID,_=p?y?h:h^f:h|f,w=p?y?nn(g,v,y,b):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(g,v,b):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(g,v,y,b);return b?(this.bitmap=_,this.nodes=w,this):new Bt(e,_,w)};var Ht=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Ht.prototype.get=function(e,t,n,r){void 0===t&&(t=me(n));var o=(0===e?t:t>>>e)&a,s=this.nodes[o];return s?s.get(e+i,t,n,r):r},Ht.prototype.update=function(e,t,n,r,o,u,l){void 0===n&&(n=me(r));var c=(0===t?n:n>>>t)&a,d=o===s,f=this.nodes,h=f[c];if(d&&!h)return this;var p=Qt(h,e,t+i,n,r,o,u,l);if(p===h)return this;var v=this.count;if(h){if(!p&&--v<an)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new Bt(e,i,a)}(e,f,v,c)}else v++;var g=e&&e===this.ownerID,m=nn(f,c,p,g);return g?(this.count=v,this.nodes=m,this):new Ht(e,v,m)};var Vt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Vt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(he(n,i[o][0]))return i[o][1];return r},Vt.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=me(r));var l=i===s;if(n!==this.keyHash)return l?this:(u(a),u(o),en(this,e,t,n,[r,i]));for(var c=this.entries,d=0,f=c.length;d<f&&!he(r,c[d][0]);d++);var h=d<f;if(h?c[d][1]===i:l)return this;if(u(a),(l||!h)&&u(o),l&&2===f)return new Ut(e,this.keyHash,c[1^d]);var p=e&&e===this.ownerID,v=p?c:Xe(c);return h?l?d===f-1?v.pop():v[d]=v.pop():v[d]=[r,i]:v.push([r,i]),p?(this.entries=v,this):new Vt(e,this.keyHash,v)};var Ut=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Ut.prototype.get=function(e,t,n,r){return he(n,this.entry[0])?this.entry[1]:r},Ut.prototype.update=function(e,t,n,r,i,o,a){var l=i===s,c=he(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(u(a),l?void u(o):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Ut(e,this.keyHash,[r,i]):(u(o),en(this,e,t,me(r),[r,i])))},Ft.prototype.iterate=Vt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Bt.prototype.iterate=Ht.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Ut.prototype.iterate=function(e,t){return e(this.entry)};var Kt,qt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Yt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return $t(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return $t(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return $t(e,o.entry);t=this._stack=Yt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(H);function $t(e,t){return V(e,t[0],t[1])}function Yt(e,t){return{node:e,index:0,__prev:t}}function Wt(e,t,n,r){var i=Object.create(zt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Gt(){return Kt||(Kt=Wt(0))}function Jt(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=Qt(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===s?-1:1:0)}else{if(n===s)return e;i=1,r=new Ft(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Wt(i,r):Gt()}function Qt(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===s?e:(u(l),u(a),new Ut(t,r,[i,o]))}function Xt(e){return e.constructor===Ut||e.constructor===Vt}function en(e,t,n,r,o){if(e.keyHash===r)return new Vt(t,r,[e.entry,o]);var s,u=(0===n?e.keyHash:e.keyHash>>>n)&a,l=(0===n?r:r>>>n)&a,c=u===l?[en(e,t,n+i,r,o)]:(s=new Ut(t,r,o),u<l?[e,s]:[s,e]);return new Bt(t,1<<u|1<<l,c)}function tn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function nn(e,t,n,r){var i=r?e:Xe(e);return i[t]=n,i}var rn=o/4,on=o/2,an=o/4,sn="@@__IMMUTABLE_LIST__@@";function un(e){return Boolean(e&&e[sn])}var ln=function(e){function t(t){var n=gn();if(null==t)return n;if(un(t))return t;var r=e(t),a=r.size;return 0===a?n:(tt(a),a>0&&a<o?vn(0,a,i,null,new dn(r.toArray())):n.withMutations((function(e){e.setSize(a),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=d(this,e))>=0&&e<this.size){var n=bn(this,e+=this._origin);return n&&n.array[e&a]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=d(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?_n(e,t).set(0,n):_n(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=wn(e._capacity)?r=mn(r,e.__ownerID,0,t,n,o):i=mn(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):vn(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=i,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):gn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){_n(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return _n(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){_n(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return _n(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&K(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return _n(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))}))},t.prototype.slice=function(e,t){var n=this.size;return h(e,t,n)?this:_n(this,p(e,n),v(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=pn(this,t);return new H((function(){var i=r();return i===hn?{value:void 0,done:!0}:V(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=pn(this,t);(n=i())!==hn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?gn():(this.__ownerID=e,this.__altered=!1,this)},t}(E);ln.isList=un;var cn=ln.prototype;cn[sn]=!0,cn[r]=cn.remove,cn.merge=cn.concat,cn.setIn=vt,cn.deleteIn=cn.removeIn=mt,cn.update=bt,cn.updateIn=_t,cn.mergeIn=Dt,cn.mergeDeepIn=It,cn.withMutations=Pt,cn.wasAltered=Lt,cn.asImmutable=Mt,cn["@@transducer/init"]=cn.asMutable=Nt,cn["@@transducer/step"]=function(e,t){return e.push(t)},cn["@@transducer/result"]=function(e){return e.asImmutable()};var dn=function(e,t){this.array=e,this.ownerID=t};dn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&a;if(r>=this.array.length)return new dn([],e);var o,s=0===r;if(t>0){var u=this.array[r];if((o=u&&u.removeBefore(e,t-i,n))===u&&s)return this}if(s&&!o)return this;var l=yn(this,e);if(!s)for(var c=0;c<r;c++)l.array[c]=void 0;return o&&(l.array[r]=o),l},dn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&a;if(o>=this.array.length)return this;if(t>0){var s=this.array[o];if((r=s&&s.removeAfter(e,t-i,n))===s&&o===this.array.length-1)return this}var u=yn(this,e);return u.array.splice(o+1),r&&(u.array[o]=r),u};var fn,hn={};function pn(e,t){var n=e._origin,r=e._capacity,a=wn(r),s=e._tail;return function e(u,l,c){return 0===l?function(e,i){var u=i===a?s&&s.array:e&&e.array,l=i>n?0:n-i,c=r-i;return c>o&&(c=o),function(){if(l===c)return hn;var e=t?--c:l++;return u&&u[e]}}(u,c):function(a,s,u){var l,c=a&&a.array,d=u>n?0:n-u>>s,f=1+(r-u>>s);return f>o&&(f=o),function(){for(;;){if(l){var n=l();if(n!==hn)return n;l=null}if(d===f)return hn;var r=t?--f:d++;l=e(c&&c[r],s-i,u+(r<<s))}}}(u,l,c)}(e._root,e._level,0)}function vn(e,t,n,r,i,o,a){var s=Object.create(cn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function gn(){return fn||(fn=vn(0,0,i))}function mn(e,t,n,r,o,s){var l,c=r>>>n&a,d=e&&c<e.array.length;if(!d&&void 0===o)return e;if(n>0){var f=e&&e.array[c],h=mn(f,t,n-i,r,o,s);return h===f?e:((l=yn(e,t)).array[c]=h,l)}return d&&e.array[c]===o?e:(s&&u(s),l=yn(e,t),void 0===o&&c===l.array.length-1?l.array.pop():l.array[c]=o,l)}function yn(e,t){return t&&e&&t===e.ownerID?e:new dn(e?e.array.slice():[],t)}function bn(e,t){if(t>=wn(e._capacity))return e._tail;if(t<1<<e._level+i){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&a],r-=i;return n}}function _n(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,o=e._origin,s=e._capacity,u=o+t,c=void 0===n?s:n<0?s+n:o+n;if(u===o&&c===s)return e;if(u>=c)return e.clear();for(var d=e._level,f=e._root,h=0;u+h<0;)f=new dn(f&&f.array.length?[void 0,f]:[],r),h+=1<<(d+=i);h&&(u+=h,o+=h,c+=h,s+=h);for(var p=wn(s),v=wn(c);v>=1<<d+i;)f=new dn(f&&f.array.length?[f]:[],r),d+=i;var g=e._tail,m=v<p?bn(e,c-1):v>p?new dn([],r):g;if(g&&v>p&&u<s&&g.array.length){for(var y=f=yn(f,r),b=d;b>i;b-=i){var _=p>>>b&a;y=y.array[_]=yn(y.array[_],r)}y.array[p>>>i&a]=g}if(c<s&&(m=m&&m.removeAfter(r,0,c)),u>=v)u-=v,c-=v,d=i,f=null,m=m&&m.removeBefore(r,0,u);else if(u>o||v<p){for(h=0;f;){var w=u>>>d&a;if(w!==v>>>d&a)break;w&&(h+=(1<<d)*w),d-=i,f=f.array[w]}f&&u>o&&(f=f.removeBefore(r,d,u-h)),f&&v<p&&(f=f.removeAfter(r,d,v-h)),h&&(u-=h,c-=h)}return e.__ownerID?(e.size=c-u,e._origin=u,e._capacity=c,e._level=d,e._root=f,e._tail=m,e.__hash=void 0,e.__altered=!0,e):vn(u,c,d,f,m)}function wn(e){return e<o?0:e-1>>>i<<i}var kn,xn=function(e){function t(e){return null==e?On():de(e)?e:On().withMutations((function(t){var n=S(e);tt(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):On()},t.prototype.set=function(e,t){return Sn(this,e,t)},t.prototype.remove=function(e){return Sn(this,e,s)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Cn(t,n,e,this.__hash):0===this.size?On():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Zt);function Cn(e,t,n,r){var i=Object.create(xn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function On(){return kn||(kn=Cn(Gt(),gn()))}function Sn(e,t,n){var r,i,a=e._map,u=e._list,l=a.get(t),c=void 0!==l;if(n===s){if(!c)return e;u.size>=o&&u.size>=2*a.size?(r=(i=u.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=a.remove(t),i=l===u.size-1?u.pop():u.set(l,void 0))}else if(c){if(n===u.get(l)[1])return e;r=a,i=u.set(l,[t,n])}else r=a.set(t,u.size),i=u.set(u.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):Cn(r,i)}xn.isOrderedMap=de,xn.prototype[P]=!0,xn.prototype[r]=xn.prototype.remove;var En="@@__IMMUTABLE_STACK__@@";function jn(e){return Boolean(e&&e[En])}var Tn=function(e){function t(e){return null==e?In():jn(e)?e:In().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=d(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Dn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&jn(t))return t;tt(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Dn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):In()},t.prototype.slice=function(t,n){if(h(t,n,this.size))return this;var r=p(t,this.size);if(v(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Dn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dn(this.size,this._head,e,this.__hash):0===this.size?In():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new te(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new te(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new H((function(){if(r){var t=r.value;return r=r.next,V(e,n++,t)}return{value:void 0,done:!0}}))},t}(E);Tn.isStack=jn;var An,Rn=Tn.prototype;function Dn(e,t,n,r){var i=Object.create(Rn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function In(){return An||(An=Dn(0))}Rn[En]=!0,Rn.shift=Rn.pop,Rn.unshift=Rn.push,Rn.unshiftAll=Rn.pushAll,Rn.withMutations=Pt,Rn.wasAltered=Lt,Rn.asImmutable=Mt,Rn["@@transducer/init"]=Rn.asMutable=Nt,Rn["@@transducer/step"]=function(e,t){return e.unshift(t)},Rn["@@transducer/result"]=function(e){return e.asImmutable()};var Pn="@@__IMMUTABLE_SET__@@";function Nn(e){return Boolean(e&&e[Pn])}function Mn(e){return Nn(e)&&N(e)}function Ln(e,t){if(e===t)return!0;if(!b(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||w(e)!==w(t)||x(e)!==x(t)||N(e)!==N(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!C(e);if(N(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&he(i[1],e)&&(n||he(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,u=t.__iterate((function(t,r){if(n?!e.has(t):i?!he(t,e.get(r,s)):!he(e.get(r,s),t))return a=!1,!1}));return a&&e.size===u}function Zn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function zn(e){if(!e||"object"!=typeof e)return e;if(!b(e)){if(!ot(e))return e;e=J(e)}if(w(e)){var t={};return e.__iterate((function(e,n){t[n]=zn(e)})),t}var n=[];return e.__iterate((function(e){n.push(zn(e))})),n}var Fn=function(e){function t(t){return null==t?Kn():Nn(t)&&!N(t)?t:Kn().withMutations((function(n){var r=e(t);tt(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.intersect=function(e){return(e=O(e).toArray()).length?Hn.intersect.apply(t(e.pop()),e):Kn()},t.union=function(e){return(e=O(e).toArray()).length?Hn.union.apply(t(e.pop()),e):Kn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Vn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Vn(this,this._map.remove(e))},t.prototype.clear=function(){return Vn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Vn(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return cr(Ve(this,e))},t.prototype.sortBy=function(e,t){return cr(Ve(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(j);Fn.isSet=Nn;var Bn,Hn=Fn.prototype;function Vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Un(e,t){var n=Object.create(Hn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return Bn||(Bn=Un(Gt()))}Hn[Pn]=!0,Hn[r]=Hn.remove,Hn.merge=Hn.concat=Hn.union,Hn.withMutations=Pt,Hn.asImmutable=Mt,Hn["@@transducer/init"]=Hn.asMutable=Nt,Hn["@@transducer/step"]=function(e,t){return e.add(t)},Hn["@@transducer/result"]=function(e){return e.asImmutable()},Hn.__empty=Kn,Hn.__make=Un;var qn,$n=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(et(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(qn)return qn;qn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+d(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return h(e,n,this.size)?this:(e=p(e,this.size),(n=v(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new H((function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,V(e,t?n-++o:o++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Ln(this,e)},t}(X);function Yn(e,t,n){for(var r=nt(t),i=0;i!==r.length;)if((e=ut(e,r[i++],s))===s)return n;return e}function Wn(e,t){return Yn(this,e,t)}function Gn(e,t){return Yn(e,t,s)!==s}function Jn(){tt(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}O.isIterable=b,O.isKeyed=w,O.isIndexed=x,O.isAssociative=C,O.isOrdered=N,O.Iterator=H,Zn(O,{toArray:function(){tt(this.size);var e=new Array(this.size||0),t=w(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Ie(this)},toJS:function(){return zn(this)},toKeyedSeq:function(){return new De(this,!0)},toMap:function(){return Zt(this.toKeyedSeq())},toObject:Jn,toOrderedMap:function(){return xn(this.toKeyedSeq())},toOrderedSet:function(){return cr(w(this)?this.valueSeq():this)},toSet:function(){return Fn(w(this)?this.valueSeq():this)},toSetSeq:function(){return new Pe(this)},toSeq:function(){return x(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Tn(w(this)?this.valueSeq():this)},toList:function(){return ln(w(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return $e(this,function(e,t){var n=w(e),r=[e].concat(t).map((function(e){return b(e)?n&&(e=S(e)):e=n?ae(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&w(i)||x(e)&&x(i))return i}var o=new te(r);return n?o=o.toKeyedSeq():x(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}(this,e))},includes:function(e){return this.some((function(t){return he(t,e)}))},entries:function(){return this.__iterator(Z)},every:function(e,t){tt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return $e(this,ze(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=w(e),i=[[],[]];e.__iterate((function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)}));var o=We(e);return i.map((function(t){return $e(e,o(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return tt(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){tt(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(M)},map:function(e,t){return $e(this,Le(this,e,t))},reduce:function(e,t,n){return nr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return nr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return $e(this,Ze(this,!0))},slice:function(e,t){return $e(this,Fe(this,e,t,!0))},some:function(e,t){tt(this.size);var n=!1;return this.__iterate((function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1})),n},sort:function(e){return $e(this,Ve(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return c(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Zt().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Ln(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ir).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(or(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(f,null,e)},flatMap:function(e,t){return $e(this,function(e,t,n){var r=We(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return $e(this,He(this,e,!0))},fromEntrySeq:function(){return new Ne(this)},get:function(e,t){return this.find((function(t,n){return he(n,e)}),void 0,t)},getIn:Wn,groupBy:function(e,t){return function(e,t,n){var r=w(e),i=(N(e)?xn():Zt()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=We(e);return i.map((function(t){return $e(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,s)!==s},hasIn:function(e){return Gn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:O(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:O(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return he(t,e)}))},keySeq:function(){return this.toSeq().map(rr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ue(this,e)},maxBy:function(e,t){return Ue(this,t,e)},min:function(e){return Ue(this,e?ar(e):ur)},minBy:function(e,t){return Ue(this,t?ar(t):ur,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return $e(this,Be(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(or(e),t)},sortBy:function(e,t){return $e(this,Ve(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return $e(this,function(e,t,n){var r=Ge(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(Z,i),s=!0;return new H((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===Z?e:V(r,u,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(or(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=N(e),n=w(e),r=t?1:0;return function(e,t){return t=pe(t,3432918353),t=pe(t<<15|t>>>-15,461845907),t=pe(t<<13|t>>>-13,5),t=pe((t=(t+3864292196|0)^e)^t>>>16,2246822507),ve((t=pe(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+lr(me(e),me(t))|0}:function(e,t){r=r+lr(me(e),me(t))|0}:t?function(e){r=31*r+me(e)|0}:function(e){r=r+me(e)|0}),r)}(this))}});var Qn=O.prototype;Qn[y]=!0,Qn[B]=Qn.values,Qn.toJSON=Qn.toArray,Qn.__toStringMapper=at,Qn.inspect=Qn.toSource=function(){return this.toString()},Qn.chain=Qn.flatMap,Qn.contains=Qn.includes,Zn(S,{flip:function(){return $e(this,Me(this))},mapEntries:function(e,t){var n=this,r=0;return $e(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return $e(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Xn=S.prototype;Xn[_]=!0,Xn[B]=Qn.entries,Xn.toJSON=Jn,Xn.__toStringMapper=function(e,t){return at(t)+": "+at(e)},Zn(E,{toKeyedSeq:function(){return new De(this,!1)},filter:function(e,t){return $e(this,ze(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return $e(this,Ze(this,!1))},slice:function(e,t){return $e(this,Fe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return $e(this,1===n?r:r.concat(Xe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return $e(this,He(this,e,!1))},get:function(e,t){return(e=d(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=d(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return $e(this,function(e,t){var n=Ge(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(L,r),a=0;return new H((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?V(n,a++,t):V(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(Xe(arguments)),t=qe(this.toSeq(),X.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),$e(this,n)},keySeq:function(){return $n(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return $e(this,Be(this,e,t,!1))},zip:function(){return $e(this,qe(this,sr,[this].concat(Xe(arguments))))},zipAll:function(){return $e(this,qe(this,sr,[this].concat(Xe(arguments)),!0))},zipWith:function(e){var t=Xe(arguments);return t[0]=this,$e(this,qe(this,e,t))}});var er=E.prototype;er[k]=!0,er[P]=!0,Zn(j,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var tr=j.prototype;function nr(e,t,n,r,i,o){return tt(e.size),e.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),o),n}function rr(e,t){return t}function ir(e,t){return[t,e]}function or(e){return function(){return!e.apply(this,arguments)}}function ar(e){return function(){return-e.apply(this,arguments)}}function sr(){return Xe(arguments)}function ur(e,t){return e<t?1:e>t?-1:0}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}tr.has=Qn.includes,tr.contains=tr.includes,tr.keys=tr.values,Zn(Q,Xn),Zn(X,er),Zn(ee,tr);var cr=function(e){function t(e){return null==e?pr():Mn(e)?e:pr().withMutations((function(t){var n=j(e);tt(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Fn);cr.isOrderedSet=Mn;var dr,fr=cr.prototype;function hr(e,t){var n=Object.create(fr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function pr(){return dr||(dr=hr(On()))}fr[P]=!0,fr.zip=er.zip,fr.zipWith=er.zipWith,fr.zipAll=er.zipAll,fr.__empty=pr,fr.__make=hr;var vr={LeftThenRight:-1,RightThenLeft:1},gr=function(e,t){var n;!function(e){if(D(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),u=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var c=s[l];u[c]=l,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+br(this)+' with property "'+c+'" since that property name is part of the Record API.'):wr(i,c)}}return this.__ownerID=void 0,this._values=ln().withMutations((function(e){e.setSize(a._keys.length),S(o).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},i=r.prototype=Object.create(mr);return i.constructor=r,t&&(r.displayName=t),r};gr.prototype.toString=function(){for(var e,t=br(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+at(this.get(e));return t+" }"},gr.prototype.equals=function(e){return this===e||D(e)&&_r(this).equals(_r(e))},gr.prototype.hashCode=function(){return _r(this).hashCode()},gr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},gr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},gr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return yr(this,n)}return this},gr.prototype.remove=function(e){return this.set(e)},gr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:yr(this,e)},gr.prototype.wasAltered=function(){return this._values.wasAltered()},gr.prototype.toSeq=function(){return _r(this)},gr.prototype.toJS=function(){return zn(this)},gr.prototype.entries=function(){return this.__iterator(Z)},gr.prototype.__iterator=function(e,t){return _r(this).__iterator(e,t)},gr.prototype.__iterate=function(e,t){return _r(this).__iterate(e,t)},gr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?yr(this,t,e):(this.__ownerID=e,this._values=t,this)},gr.isRecord=D,gr.getDescriptiveName=br;var mr=gr.prototype;function yr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function br(e){return e.constructor.displayName||e.constructor.name||"Record"}function _r(e){return ae(e._keys.map((function(t){return[t,e.get(t)]})))}function wr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){et(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}mr[R]=!0,mr[r]=mr.remove,mr.deleteIn=mr.removeIn=mt,mr.getIn=Wn,mr.hasIn=Qn.hasIn,mr.merge=wt,mr.mergeWith=kt,mr.mergeIn=Dt,mr.mergeDeep=At,mr.mergeDeepWith=Rt,mr.mergeDeepIn=It,mr.setIn=vt,mr.update=bt,mr.updateIn=_t,mr.withMutations=Pt,mr.asMutable=Nt,mr.asImmutable=Mt,mr[B]=mr.entries,mr.toJSON=mr.toObject=Qn.toObject,mr.inspect=mr.toSource=function(){return this.toString()};var kr,xr=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(kr)return kr;kr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return he(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return h(e,n,r)?this:new t(this._value,v(n,r)-p(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return he(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return he(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new H((function(){return i===r?{value:void 0,done:!0}:V(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?he(this._value,e._value):Ln(e)},t}(X);function Cr(e,t){return Or([],t||Sr,e,"",t&&t.length>2?[]:void 0,{"":e})}function Or(e,t,n,r,i,o){if("string"!=typeof n&&!I(n)&&(G(n)||K(n)||it(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,J(n).map((function(r,o){return Or(e,t,r,o,i,n)})),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function Sr(e,t){return x(t)?t.toList():w(t)?t.toMap():t.toSet()}var Er="4.3.1",jr={version:Er,Collection:O,Iterable:O,Seq:J,Map:Zt,OrderedMap:xn,List:ln,Stack:Tn,Set:Fn,OrderedSet:cr,PairSorting:vr,Record:gr,Range:$n,Repeat:xr,is:he,fromJS:Cr,hash:me,isImmutable:I,isCollection:b,isKeyed:w,isIndexed:x,isAssociative:C,isOrdered:N,isValueObject:fe,isPlainObject:it,isSeq:A,isList:un,isMap:ce,isOrderedMap:de,isStack:jn,isSet:Nn,isOrderedSet:Mn,isRecord:D,get:ut,getIn:Yn,has:st,hasIn:Gn,merge:Ct,mergeDeep:St,mergeWith:Ot,mergeDeepWith:Et,remove:ct,removeIn:gt,set:dt,setIn:pt,update:yt,updateIn:ft},Tr=O;t.default=jr},5297:function(){},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},3668:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1120),i=n(8814);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=n(7326);function s(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var s=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}(this,n)}}},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},168:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907),i=n(181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(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.")}()}},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},1072:function(e,t,n){"use strict";n.d(t,{vD:function(){return is},QJ:function(){return os},y9:function(){return as},Yb:function(){return ss},Np:function(){return us},nH:function(){return ls},VK:function(){return cs},dm:function(){return ds},OG:function(){return fs}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(7762),u=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===u.trustedTypes&&(u.trustedTypes={createPolicy:function(e,t){return t}});var l={configurable:!1,enumerable:!1,writable:!1};void 0===u.FAST&&Reflect.defineProperty(u,"FAST",Object.assign({value:Object.create(null)},l));var c=u.FAST;if(void 0===c.getById){var d=Object.create(null);Reflect.defineProperty(c,"getById",Object.assign({value:function(e,t){var n=d[e];return void 0===n&&(n=t?d[e]=t():null),n}},l))}var f=Object.freeze([]);function h(){var e=new WeakMap;return function(t){var n=e.get(t);if(void 0===n){for(var r=Reflect.getPrototypeOf(t);void 0===n&&null!==r;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=void 0===n?[]:n.slice(0),e.set(t,n)}return n}}var p=n(4942),v=n(7326),g=u.FAST.getById(1,(function(){var e=[],t=[];function n(){if(t.length)throw t.shift()}function r(e){try{e.call()}catch(e){t.push(e),setTimeout(n,0)}}function i(){for(var t=0;t<e.length;)if(r(e[t]),++t>1024){for(var n=0,i=e.length-t;n<i;n++)e[n]=e[n+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&u.requestAnimationFrame(i),e.push(t)},process:i})})),m=u.trustedTypes.createPolicy("fast-html",{createHTML:function(e){return e}}),y=m,b="fast-".concat(Math.random().toString(36).substring(2,8)),_="".concat(b,"{"),w="}".concat(b),k=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy:function(e){if(y!==m)throw new Error("The HTML policy can only be set once.");y=e},createHTML:function(e){return y.createHTML(e)},isMarker:function(e){return e&&8===e.nodeType&&e.data.startsWith(b)},extractDirectiveIndexFromMarker:function(e){return parseInt(e.data.replace("".concat(b,":"),""))},createInterpolationPlaceholder:function(e){return"".concat(_).concat(e).concat(w)},createCustomAttributePlaceholder:function(e,t){return"".concat(e,'="').concat(this.createInterpolationPlaceholder(t),'"')},createBlockPlaceholder:function(e){return"\x3c!--".concat(b,":").concat(e,"--\x3e")},queueUpdate:g.enqueue,processUpdates:g.process,nextUpdate:function(){return new Promise(g.enqueue)},setAttribute:function(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute:function(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes:function(e){for(var t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:function(e){return document.createTreeWalker(e,133,null,!1)}}),x=function(){function e(t,n){(0,r.Z)(this,e),this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}return(0,i.Z)(e,[{key:"has",value:function(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}},{key:"subscribe",value:function(e){var t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else-1===t.indexOf(e)&&t.push(e)}},{key:"unsubscribe",value:function(e){var t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}},{key:"notify",value:function(e){var t=this.spillover,n=this.source;if(void 0===t){var r=this.sub1,i=this.sub2;void 0!==r&&r.handleChange(n,e),void 0!==i&&i.handleChange(n,e)}else for(var o=0,a=t.length;o<a;++o)t[o].handleChange(n,e)}}]),e}(),C=function(){function e(t){(0,r.Z)(this,e),this.subscribers={},this.sourceSubscribers=null,this.source=t}return(0,i.Z)(e,[{key:"notify",value:function(e){var t,n=this.subscribers[e];void 0!==n&&n.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}},{key:"subscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0===r&&(this.subscribers[t]=r=new x(this.source)),r.subscribe(e)}else this.sourceSubscribers=null!==(n=this.sourceSubscribers)&&void 0!==n?n:new x(this.source),this.sourceSubscribers.subscribe(e)}},{key:"unsubscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0!==r&&r.unsubscribe(e)}else null===(n=this.sourceSubscribers)||void 0===n||n.unsubscribe(e)}}]),e}(),O=c.getById(2,(function(){var e=/(:|&&|\|\||if)/,t=new WeakMap,n=k.queueUpdate,s=void 0,u=function(e){throw new Error("Must call enableArrayObservation before observing arrays.")};function l(e){var n=e.$fastController||t.get(e);return void 0===n&&(Array.isArray(e)?n=u(e):t.set(e,n=new C(e))),n}var c=h(),d=function(){function e(t){(0,r.Z)(this,e),this.name=t,this.field="_".concat(t),this.callback="".concat(t,"Changed")}return(0,i.Z)(e,[{key:"getValue",value:function(e){return void 0!==s&&s.watch(e,this.name),e[this.field]}},{key:"setValue",value:function(e,t){var n=this.field,r=e[n];if(r!==t){e[n]=t;var i=e[this.callback];"function"==typeof i&&i.call(e,r,t),l(e).notify(this.name)}}}]),e}(),f=function(e){(0,o.Z)(u,e);var t=(0,a.Z)(u);function u(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.Z)(this,u),(i=t.call(this,e,n)).binding=e,i.isVolatileBinding=o,i.needsRefresh=!0,i.needsQueue=!0,i.first=(0,v.Z)(i),i.last=null,i.propertySource=void 0,i.propertyName=void 0,i.notifier=void 0,i.next=void 0,i}return(0,i.Z)(u,[{key:"observe",value:function(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();var n=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;var r=this.binding(e,t);return s=n,r}},{key:"disconnect",value:function(){if(null!==this.last){for(var e=this.first;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}},{key:"watch",value:function(e,t){var n,r=this.last,i=l(e),o=null===r?this.first:{};o.propertySource=e,o.propertyName=t,o.notifier=i,i.subscribe(this,t),null!==r&&(this.needsRefresh||(s=void 0,n=r.propertySource[r.propertyName],s=this,e===n&&(this.needsRefresh=!0)),r.next=o),this.last=o}},{key:"handleChange",value:function(){this.needsQueue&&(this.needsQueue=!1,n(this))}},{key:"call",value:function(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}},{key:"records",value:function(){var e=this.first;return(0,p.Z)({next:function(){var t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})}},Symbol.iterator,(function(){return this}))}}]),u}(x);return Object.freeze({setArrayObserverFactory:function(e){u=e},getNotifier:l,track:function(e,t){void 0!==s&&s.watch(e,t)},trackVolatile:function(){void 0!==s&&(s.needsRefresh=!0)},notify:function(e,t){l(e).notify(t)},defineProperty:function(e,t){"string"==typeof t&&(t=new d(t)),c(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:c,binding:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.isVolatileBinding(e);return new f(e,t,n)},isVolatileBinding:function(t){return e.test(t.toString())}})}));function S(e,t){O.defineProperty(e,t)}var E=c.getById(3,(function(){var e=null;return{get:function(){return e},set:function(t){e=t}}})),j=function(){function e(){(0,r.Z)(this,e),this.index=0,this.length=0,this.parent=null,this.parentContext=null}return(0,i.Z)(e,[{key:"event",get:function(){return E.get()}},{key:"isEven",get:function(){return this.index%2==0}},{key:"isOdd",get:function(){return this.index%2!=0}},{key:"isFirst",get:function(){return 0===this.index}},{key:"isInMiddle",get:function(){return!this.isFirst&&!this.isLast}},{key:"isLast",get:function(){return this.index===this.length-1}}],[{key:"setEvent",value:function(e){E.set(e)}}]),e}();O.defineProperty(j.prototype,"index"),O.defineProperty(j.prototype,"length");var T=Object.seal(new j),A=n(1120);function R(){return R="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,A.Z)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},R.apply(this,arguments)}var D=n(2982),I=function(){function e(){(0,r.Z)(this,e),this.targets=new WeakSet}return(0,i.Z)(e,[{key:"addStylesTo",value:function(e){this.targets.add(e)}},{key:"removeStylesFrom",value:function(e){this.targets.delete(e)}},{key:"isAttachedTo",value:function(e){return this.targets.has(e)}},{key:"withBehaviors",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}]),e}();function P(e){return e.map((function(e){return e instanceof I?P(e.styles):[e]})).reduce((function(e,t){return e.concat(t)}),[])}function N(e){return e.map((function(e){return e instanceof I?e.behaviors:null})).reduce((function(e,t){return null===t?e:(null===e&&(e=[]),e.concat(t))}),null)}I.create=function(){if(k.supportsAdoptedStyleSheets){var e=new Map;return function(t){return new Z(t,e)}}return function(e){return new F(e)}}();var M=function(e,t){e.adoptedStyleSheets=[].concat((0,D.Z)(e.adoptedStyleSheets),(0,D.Z)(t))},L=function(e,t){e.adoptedStyleSheets=e.adoptedStyleSheets.filter((function(e){return-1===t.indexOf(e)}))};if(k.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),M=function(e,t){var n;(n=e.adoptedStyleSheets).push.apply(n,(0,D.Z)(t))},L=function(e,t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.adoptedStyleSheets.indexOf(i);-1!==o&&e.adoptedStyleSheets.splice(o,1)}}catch(e){r.e(e)}finally{r.f()}}}catch(e){}var Z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).styles=e,o.styleSheetCache=i,o._styleSheets=void 0,o.behaviors=N(e),o}return(0,i.Z)(n,[{key:"styleSheets",get:function(){if(void 0===this._styleSheets){var e=this.styles,t=this.styleSheetCache;this._styleSheets=P(e).map((function(e){if(e instanceof CSSStyleSheet)return e;var n=t.get(e);return void 0===n&&((n=new CSSStyleSheet).replaceSync(e),t.set(e,n)),n}))}return this._styleSheets}},{key:"addStylesTo",value:function(e){M(e,this.styleSheets),R((0,A.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){L(e,this.styleSheets),R((0,A.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}}]),n}(I),z=0,F=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).styles=e,i.behaviors=null,i.behaviors=N(e),i.styleSheets=P(e),i.styleClass="fast-style-class-".concat(++z),i}return(0,i.Z)(n,[{key:"addStylesTo",value:function(e){var t=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(var i=0;i<t.length;i++){var o=document.createElement("style");o.innerHTML=t[i],o.className=r,e.append(o)}R((0,A.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){for(var t=(e=this.normalizeTarget(e)).querySelectorAll(".".concat(this.styleClass)),r=0,i=t.length;r<i;++r)e.removeChild(t[r]);R((0,A.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}},{key:"isAttachedTo",value:function(e){return R((0,A.Z)(n.prototype),"isAttachedTo",this).call(this,this.normalizeTarget(e))}},{key:"normalizeTarget",value:function(e){return e===document?document.body:e}}]),n}(I),B=Object.freeze({locate:h()}),H={toView:function(e){return e?"true":"false"},fromView:function(e){return null!=e&&"false"!==e&&!1!==e&&0!==e}},V={toView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t.toString()},fromView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t}},U=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.toLowerCase(),o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"reflect",a=arguments.length>4?arguments[4]:void 0;(0,r.Z)(this,e),this.guards=new Set,this.Owner=t,this.name=n,this.attribute=i,this.mode=o,this.converter=a,this.fieldName="_".concat(n),this.callbackName="".concat(n,"Changed"),this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===a&&(this.converter=H)}return(0,i.Z)(e,[{key:"setValue",value:function(e,t){var n=e[this.fieldName],r=this.converter;void 0!==r&&(t=r.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}},{key:"getValue",value:function(e){return O.track(e,this.name),e[this.fieldName]}},{key:"onAttributeChangedCallback",value:function(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}},{key:"tryReflectToAttribute",value:function(e){var t=this,n=this.mode,r=this.guards;r.has(e)||"fromView"===n||k.queueUpdate((function(){r.add(e);var i=e[t.fieldName];switch(n){case"reflect":var o=t.converter;k.setAttribute(e,t.attribute,void 0!==o?o.toView(i):i);break;case"boolean":k.setBooleanAttribute(e,t.attribute,i)}r.delete(e)}))}}],[{key:"collect",value:function(t){for(var n=[],r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];i.push(B.locate(t));for(var a=0,s=i.length;a<s;++a){var u=i[a];if(void 0!==u)for(var l=0,c=u.length;l<c;++l){var d=u[l];"string"==typeof d?n.push(new e(t,d)):n.push(new e(t,d.property,d.attribute,d.mode,d.converter))}}return n}}]),e}();function K(e,t){var n;function r(e,t){arguments.length>1&&(n.property=t),B.locate(e.constructor).push(n)}return arguments.length>1?(n={},void r(e,t)):(n=void 0===e?{}:e,r)}var q={mode:"open"},$={},Y=c.getById(4,(function(){var e=new Map;return Object.freeze({register:function(t){return!e.has(t.type)&&(e.set(t.type,t),!0)},getByType:function(t){return e.get(t)}})})),W=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.definition;(0,r.Z)(this,e),"string"==typeof n&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;for(var i=U.collect(t,n.attributes),o=new Array(i.length),a={},s={},u=0,l=i.length;u<l;++u){var c=i[u];o[u]=c.attribute,a[c.name]=c,s[c.attribute]=c}this.attributes=i,this.observedAttributes=o,this.propertyLookup=a,this.attributeLookup=s,this.shadowOptions=void 0===n.shadowOptions?q:null===n.shadowOptions?void 0:Object.assign(Object.assign({},q),n.shadowOptions),this.elementOptions=void 0===n.elementOptions?$:Object.assign(Object.assign({},$),n.elementOptions),this.styles=void 0===n.styles?void 0:Array.isArray(n.styles)?I.create(n.styles):n.styles instanceof I?n.styles:I.create([n.styles])}return(0,i.Z)(e,[{key:"isDefined",get:function(){return!!Y.getByType(this.type)}},{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:customElements,t=this.type;if(Y.register(this)){for(var n=this.attributes,r=t.prototype,i=0,o=n.length;i<o;++i)O.defineProperty(r,n[i]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}]),e}();function G(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}W.forType=Y.getByType;var J=n(885),Q=new WeakMap,X={bubbles:!0,composed:!0,cancelable:!0};function ee(e){return e.shadowRoot||Q.get(e)||null}var te=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;(0,r.Z)(this,n),(o=t.call(this,e)).boundObservables=null,o.behaviors=null,o.needsInitialization=!0,o._template=null,o._styles=null,o._isConnected=!1,o.$fastController=(0,v.Z)(o),o.view=null,o.element=e,o.definition=i;var a=i.shadowOptions;if(void 0!==a){var s=e.attachShadow(a);"closed"===a.mode&&Q.set(e,s)}var u=O.getAccessors(e);if(u.length>0)for(var l=o.boundObservables=Object.create(null),c=0,d=u.length;c<d;++c){var f=u[c].name,h=e[f];void 0!==h&&(delete e[f],l[f]=h)}return o}return(0,i.Z)(n,[{key:"isConnected",get:function(){return O.track(this,"isConnected"),this._isConnected}},{key:"setIsConnected",value:function(e){this._isConnected=e,O.notify(this,"isConnected")}},{key:"template",get:function(){return this._template},set:function(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}},{key:"styles",get:function(){return this._styles},set:function(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}},{key:"addStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){var n=e.behaviors;e.addStylesTo(t),null!==n&&this.addBehaviors(n)}}},{key:"removeStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){var n=e.behaviors;e.removeStylesFrom(t),null!==n&&this.removeBehaviors(n)}}},{key:"addBehaviors",value:function(e){for(var t=this.behaviors||(this.behaviors=new Map),n=e.length,r=[],i=0;i<n;++i){var o=e[i];t.has(o)?t.set(o,t.get(o)+1):(t.set(o,1),r.push(o))}if(this._isConnected)for(var a=this.element,s=0;s<r.length;++s)r[s].bind(a,T)}},{key:"removeBehaviors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.behaviors;if(null!==n){for(var r=e.length,i=[],o=0;o<r;++o){var a=e[o];if(n.has(a)){var s=n.get(a)-1;0===s||t?n.delete(a)&&i.push(a):n.set(a,s)}}if(this._isConnected)for(var u=this.element,l=0;l<i.length;++l)i[l].unbind(u)}}},{key:"onConnectedCallback",value:function(){if(!this._isConnected){var e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,T);var t=this.behaviors;if(null!==t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;)(0,J.Z)(n.value,1)[0].bind(e,T)}catch(e){r.e(e)}finally{r.f()}}this.setIsConnected(!0)}}},{key:"onDisconnectedCallback",value:function(){if(this._isConnected){this.setIsConnected(!1);var e=this.view;null!==e&&e.unbind();var t=this.behaviors;if(null!==t){var n,r=this.element,i=(0,s.Z)(t);try{for(i.s();!(n=i.n()).done;)(0,J.Z)(n.value,1)[0].unbind(r)}catch(e){i.e(e)}finally{i.f()}}}}},{key:"onAttributeChangedCallback",value:function(e,t,n){var r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.element,n)}},{key:"emit",value:function(e,t,n){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},X),n)))}},{key:"finishInitialization",value:function(){var e=this.element,t=this.boundObservables;if(null!==t){for(var n=Object.keys(t),r=0,i=n.length;r<i;++r){var o=n[r];e[o]=t[o]}this.boundObservables=null}var a=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():a.template&&(this._template=a.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():a.styles&&(this._styles=a.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}},{key:"renderTemplate",value:function(e){var t=this.element,n=ee(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||k.removeChildNodes(n),e&&(this.view=e.render(t,n,t))}}],[{key:"forCustomElement",value:function(e){var t=e.$fastController;if(void 0!==t)return t;var r=W.forType(e.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return e.$fastController=new n(e,r)}}]),n}(C);function ne(e){return function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),e=t.call(this),te.forCustomElement((0,v.Z)(e)),e}return(0,i.Z)(n,[{key:"$emit",value:function(e,t,n){return this.$fastController.emit(e,t,n)}},{key:"connectedCallback",value:function(){this.$fastController.onConnectedCallback()}},{key:"disconnectedCallback",value:function(){this.$fastController.onDisconnectedCallback()}},{key:"attributeChangedCallback",value:function(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}}]),n}(e)}var re=Object.assign(ne(HTMLElement),{from:function(e){return ne(e)},define:function(e,t){return new W(e,t).define().type}}),ie=n(9611),oe=n(8814);function ae(e,t,n){return ae=(0,oe.Z)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,ie.Z)(i,n.prototype),i},ae.apply(null,arguments)}var se=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){var r=se.get(n);void 0===r&&se.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){var n=se.get(t);if(void 0!==n)return n.get(e)});var ue=function(){function e(t,n){(0,r.Z)(this,e),this.container=t,this.key=n}return(0,i.Z)(e,[{key:"instance",value:function(e){return this.registerResolver(0,e)}},{key:"singleton",value:function(e){return this.registerResolver(1,e)}},{key:"transient",value:function(e){return this.registerResolver(2,e)}},{key:"callback",value:function(e){return this.registerResolver(3,e)}},{key:"cachedCallback",value:function(e){return this.registerResolver(3,Ie(e))}},{key:"aliasTo",value:function(e){return this.registerResolver(5,e)}},{key:"registerResolver",value:function(e,t){var n=this.container,r=this.key;return this.container=this.key=void 0,n.registerResolver(r,new we(r,e,t))}}]),e}();function le(e){for(var t,n=e.slice(),r=Object.keys(e),i=r.length,o=0;o<i;++o)Be(t=r[o])||(n[t]=e[t]);return n}var ce=Object.freeze({none:function(e){throw Error("".concat(e.toString()," not registered, did you forget to add @singleton()?"))},singleton:function(e){return new we(e,1,e)},transient:function(e){return new we(e,2,e)}}),de=Object.freeze({default:Object.freeze({parentLocator:function(){return null},responsibleForOwnerRequests:!1,defaultResolver:ce.singleton})}),fe=new Map;function he(e){return function(t){return Reflect.getOwnMetadata(e,t)}}var pe=null,ve=Object.freeze({createContainer:function(e){return new Re(null,Object.assign({},de.default,e))},findResponsibleContainer:function(e){var t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ve.findParentContainer(e)},findParentContainer:function(e){var t=new CustomEvent(Te,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ve.getOrCreateDOMContainer()},getOrCreateDOMContainer:function(e,t){return e?e.$$container$$||new Re(e,Object.assign({},de.default,t,{parentLocator:ve.findParentContainer})):pe||(pe=new Re(null,Object.assign({},de.default,t,{parentLocator:function(){return null}})))},getDesignParamtypes:he("design:paramtypes"),getAnnotationParamtypes:he("di:paramtypes"),getOrCreateAnnotationParamTypes:function(e){var t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies:function(e){var t=fe.get(e);if(void 0===t){var n=e.inject;if(void 0===n){var r=ve.getDesignParamtypes(e),i=ve.getAnnotationParamtypes(e);if(void 0===r)if(void 0===i){var o=Object.getPrototypeOf(e);t="function"==typeof o&&o!==Function.prototype?le(ve.getDependencies(o)):[]}else t=le(i);else if(void 0===i)t=le(r);else{t=le(r);for(var a,s=i.length,u=0;u<s;++u)void 0!==(a=i[u])&&(t[u]=a);var l,c=Object.keys(i);s=c.length;for(var d=0;d<s;++d)Be(l=c[d])||(t[l]=i[l])}}else t=le(n);fe.set(e,t)}return t},defineProperty:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="$di_".concat(t);Reflect.defineProperty(e,t,{get:function(){var e=this,o=this[i];if(void 0===o){var a=this instanceof HTMLElement?ve.findResponsibleContainer(this):ve.getOrCreateDOMContainer();if(o=a.get(n),this[i]=o,r&&this instanceof re){var s=this.$fastController;s.subscribe({handleChange:function(){ve.findResponsibleContainer(e).get(n)!==e[i]&&(e[i]=o,s.notify(t))}},"isConnected")}}return o}})},createInterface:function(e,t){var n="function"==typeof e?e:t,r="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||Le,i="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),o=function e(t,n,r){if(null==t||void 0!==(this instanceof e?this.constructor:void 0))throw new Error("No registration for interface: '".concat(o.friendlyName,"'"));n?ve.defineProperty(t,n,o,i):ve.getOrCreateAnnotationParamTypes(t)[r]=o};return o.$isInterface=!0,o.friendlyName=null==r?"(anonymous)":r,null!=n&&(o.register=function(e,t){return n(new ue(e,null!=t?t:o))}),o.toString=function(){return"InterfaceSymbol<".concat(o.friendlyName,">")},o},inject:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){if("number"==typeof r){var i=ve.getOrCreateAnnotationParamTypes(e),o=t[0];void 0!==o&&(i[r]=o)}else if(n)ve.defineProperty(e,n,t[0]);else for(var a,s=r?ve.getOrCreateAnnotationParamTypes(r.value):ve.getOrCreateAnnotationParamTypes(e),u=0;u<t.length;++u)void 0!==(a=t[u])&&(s[u]=a)}},transient:function(e){return e.register=function(t){return Pe.transient(e,e).register(t)},e.registerInRequestor=!1,e},singleton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye;return e.register=function(t){return Pe.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e}}),ge=ve.createInterface("Container");function me(e){return function(t){var n=function e(t,n,r){ve.inject(e)(t,n,r)};return n.$isResolver=!0,n.resolve=function(n,r){return e(t,n,r)},n}}ve.inject;var ye={scoped:!1};function be(e,t,n){ve.inject(be)(e,t,n)}function _e(e,t){return t.getFactory(e).construct(t)}me((function(e,t,n){return function(){return n.get(e)}})),me((function(e,t,n){return n.has(e,!0)?n.get(e):void 0})),be.$isResolver=!0,be.resolve=function(){},me((function(e,t,n){var r=_e(e,t),i=new we(e,0,r);return n.registerResolver(e,i),r})),me((function(e,t,n){return _e(e,t)}));var we=function(){function e(t,n,i){(0,r.Z)(this,e),this.key=t,this.strategy=n,this.state=i,this.resolving=!1}return(0,i.Z)(e,[{key:"$isResolver",get:function(){return!0}},{key:"register",value:function(e){return e.registerResolver(this.key,this)}},{key:"resolve",value:function(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: ".concat(this.state.name));return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:var n=e.getFactory(this.state);if(null===n)throw new Error("Resolver for ".concat(String(this.key)," returned a null factory"));return n.construct(t);case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error("Invalid resolver strategy specified: ".concat(this.strategy,"."))}}},{key:"getFactory",value:function(e){var t,n,r;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(r=null===(n=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:null;default:return null}}}]),e}();function ke(e){return this.get(e)}function xe(e,t){return t(e)}var Ce=function(){function e(t,n){(0,r.Z)(this,e),this.Type=t,this.dependencies=n,this.transformers=null}return(0,i.Z)(e,[{key:"construct",value:function(e,t){var n;return n=ae(this.Type,void 0===t?(0,D.Z)(this.dependencies.map(ke,e)):(0,D.Z)(this.dependencies.map(ke,e)).concat((0,D.Z)(t))),null==this.transformers?n:this.transformers.reduce(xe,n)}},{key:"registerTransformer",value:function(e){(this.transformers||(this.transformers=[])).push(e)}}]),e}(),Oe={$isResolver:!0,resolve:function(e,t){return t}};function Se(e){return"function"==typeof e.register}function Ee(e){return function(e){return Se(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}var je=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Te="__DI_LOCATE_PARENT__",Ae=new Map,Re=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this.owner=t,this.config=n,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(ge,Oe),t instanceof Node&&t.addEventListener(Te,(function(e){e.composedPath()[0]!==i.owner&&(e.detail.container=i,e.stopImmediatePropagation())}))}return(0,i.Z)(e,[{key:"parent",get:function(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}},{key:"depth",get:function(){return null===this.parent?0:this.parent.depth+1}},{key:"responsibleForOwnerRequests",get:function(){return this.config.responsibleForOwnerRequests}},{key:"registerWithContext",value:function(e){this.context=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.register.apply(this,n),this.context=null,this}},{key:"register",value:function(){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");for(var e,t,n,r,i,o=this.context,a=0,s=arguments.length;a<s;++a)if(Ze(e=a<0||arguments.length<=a?void 0:arguments[a]))if(Se(e))e.register(this,o);else if(void 0!==e.prototype)Pe.singleton(e,e).register(this);else for(r=0,i=(t=Object.keys(e)).length;r<i;++r)Ze(n=e[t[r]])&&(Se(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}},{key:"registerResolver",value:function(e,t){Ne(e);var n=this.resolvers,r=n.get(e);return null==r?n.set(e,t):r instanceof we&&4===r.strategy?r.state.push(t):n.set(e,new we(e,4,[r,t])),t}},{key:"registerTransformer",value:function(e,t){var n=this.getResolver(e);if(null==n)return!1;if(n.getFactory){var r=n.getFactory(this);return null!=r&&(r.registerTransformer(t),!0)}return!1}},{key:"getResolver",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Ne(e),void 0!==e.resolve)return e;for(var n,r=this;null!=r;){if(null!=(n=r.resolvers.get(e)))return n;if(null==r.parent){var i=Ee(e)?this:r;return t?this.jitRegister(e,i):null}r=r.parent}return null}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}},{key:"get",value:function(e){if(Ne(e),e.$isResolver)return e.resolve(this,this);for(var t,n=this;null!=n;){if(null!=(t=n.resolvers.get(e)))return t.resolve(n,this);if(null==n.parent){var r=Ee(e)?this:n;return(t=this.jitRegister(e,r)).resolve(n,this)}n=n.parent}throw new Error("Unable to resolve key: ".concat(e))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ne(e);var n,r=this,i=r;if(t){for(var o=f;null!=i;)null!=(n=i.resolvers.get(e))&&(o=o.concat(Me(n,i,r))),i=i.parent;return o}for(;null!=i;){if(null!=(n=i.resolvers.get(e)))return Me(n,i,r);if(null==(i=i.parent))return f}return f}},{key:"getFactory",value:function(e){var t=Ae.get(e);if(void 0===t){if(ze(e))throw new Error("".concat(e.name," is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver."));Ae.set(e,t=new Ce(e,ve.getDependencies(e)))}return t}},{key:"registerFactory",value:function(e,t){Ae.set(e,t)}},{key:"createChild",value:function(t){var n=this;return new e(null,Object.assign({},this.config,t,{parentLocator:function(){return n}}))}},{key:"jitRegister",value:function(e,t){if("function"!=typeof e)throw new Error("Attempted to jitRegister something that is not a constructor: '".concat(e,"'. Did you forget to register this dependency?"));if(je.has(e.name))throw new Error("Attempted to jitRegister an intrinsic type: ".concat(e.name,". Did you forget to add @inject(Key)"));if(Se(e)){var n=e.register(t);if(!(n instanceof Object)||null==n.resolve){var r=t.resolvers.get(e);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return n}if(e.$isInterface)throw new Error("Attempted to jitRegister an interface: ".concat(e.friendlyName));var i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}]),e}(),De=new WeakMap;function Ie(e){return function(t,n,r){if(De.has(r))return De.get(r);var i=e(t,n,r);return De.set(r,i),i}}var Pe=Object.freeze({instance:function(e,t){return new we(e,0,t)},singleton:function(e,t){return new we(e,1,t)},transient:function(e,t){return new we(e,2,t)},callback:function(e,t){return new we(e,3,t)},cachedCallback:function(e,t){return new we(e,3,Ie(t))},aliasTo:function(e,t){return new we(t,5,e)}});function Ne(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Me(e,t,n){if(e instanceof we&&4===e.strategy){for(var r=e.state,i=r.length,o=new Array(i);i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}var Le="(anonymous)";function Ze(e){return"object"==typeof e&&null!==e||"function"==typeof e}var ze=function(){var e=new WeakMap,t=!1,n="",r=0;return function(i){return void 0===(t=e.get(i))&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&125===n.charCodeAt(r-1)&&n.charCodeAt(r-2)<=32&&93===n.charCodeAt(r-3)&&101===n.charCodeAt(r-4)&&100===n.charCodeAt(r-5)&&111===n.charCodeAt(r-6)&&99===n.charCodeAt(r-7)&&32===n.charCodeAt(r-8)&&101===n.charCodeAt(r-9)&&118===n.charCodeAt(r-10)&&105===n.charCodeAt(r-11)&&116===n.charCodeAt(r-12)&&97===n.charCodeAt(r-13)&&110===n.charCodeAt(r-14)&&88===n.charCodeAt(r-15),e.set(i,t)),t}}(),Fe={};function Be(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":var t=Fe[e];if(void 0!==t)return t;var n=e.length;if(0===n)return Fe[e]=!1;for(var r=0,i=0;i<n;++i)if(r=e.charCodeAt(i),0===i&&48===r&&n>1||r<48||r>57)return Fe[e]=!1;return Fe[e]=!0;default:return!1}}function He(e){return"".concat(e.toLowerCase(),":presentation")}var Ve=new Map,Ue=Object.freeze({define:function(e,t,n){var r=He(e);void 0===Ve.get(r)?Ve.set(r,t):Ve.set(r,!1),n.register(Pe.instance(r,t))},forTag:function(e,t){var n=He(e),r=Ve.get(n);return!1===r?ve.findResponsibleContainer(t).get(n):r||null}}),Ke=function(){function e(t,n){(0,r.Z)(this,e),this.template=t||null,this.styles=void 0===n?null:Array.isArray(n)?I.create(n):n instanceof I?n:I.create([n])}return(0,i.Z)(e,[{key:"applyTo",value:function(e){var t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}]),e}(),qe=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._presentation=void 0,e}return(0,i.Z)(n,[{key:"$presentation",get:function(){return void 0===this._presentation&&(this._presentation=Ue.forTag(this.tagName,this)),this._presentation}},{key:"templateChanged",value:function(){void 0!==this.template&&(this.$fastController.template=this.template)}},{key:"stylesChanged",value:function(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}},{key:"connectedCallback",value:function(){null!==this.$presentation&&this.$presentation.applyTo(this),R((0,A.Z)(n.prototype),"connectedCallback",this).call(this)}}],[{key:"compose",value:function(e){var t=this;return function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Ye(t===n?function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(n):t,e,s)}}}]),n}(re);function $e(e,t,n){return"function"==typeof e?e(t,n):e}G([S],qe.prototype,"template",void 0),G([S],qe.prototype,"styles",void 0);var Ye=function(){function e(t,n,i){(0,r.Z)(this,e),this.type=t,this.elementDefinition=n,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}return(0,i.Z)(e,[{key:"register",value:function(e,t){var n=this.definition,r=this.overrideDefinition,i=n.prefix||t.elementPrefix,o="".concat(i,"-").concat(n.baseName);t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:function(e){var t=new Ke($e(n.template,e,n),$e(n.styles,e,n));e.definePresentation(t);var i=$e(n.shadowOptions,e,n);e.shadowRootMode&&(i?r.shadowOptions||(i.mode=e.shadowRootMode):null!==i&&(i={mode:e.shadowRootMode})),e.defineElement({elementOptions:$e(n.elementOptions,e,n),shadowOptions:i,attributes:$e(n.attributes,e,n)})}})}}]),e}(),We=new Set(["children","localName","ref","style","className"]),Ge=Object.freeze(Object.create(null)),Je="_default",Qe=new Map;function Xe(e,t){if(!t.name){var n=W.forType(e);if(!n)throw new Error("React wrappers must wrap a FASTElement or be configured with a name.");t.name=n.name}return t.name}function et(e){return e.events||(e.events={})}function tt(e,t,n){return!We.has(n)||(console.warn("".concat(Xe(e,t)," contains property ").concat(n," which is a React ")+"reserved property. It will be used by React and not set on the element."),!1)}var nt=n(2791),rt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).generateBadgeStyle=function(){if(e.fill||e.color){var t="background-color: var(--badge-fill-".concat(e.fill,");"),n="color: var(--badge-color-".concat(e.color,");");return e.fill&&!e.color?t:e.color&&!e.fill?n:"".concat(n," ").concat(t)}},e}return(0,i.Z)(n)}(qe);G([K({attribute:"fill"})],rt.prototype,"fill",void 0),G([K({attribute:"color"})],rt.prototype,"color",void 0),G([K({mode:"boolean"})],rt.prototype,"circular",void 0);var it=n(168),ot=(0,i.Z)((function e(){(0,r.Z)(this,e),this.targetIndex=0})),at=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).createPlaceholder=k.createInterpolationPlaceholder,e}return(0,i.Z)(n)}(ot),st=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).name=e,a.behavior=i,a.options=o,a}return(0,i.Z)(n,[{key:"createPlaceholder",value:function(e){return k.createCustomAttributePlaceholder(this.name,e)}},{key:"createBehavior",value:function(e){return new this.behavior(e,this.options)}}]),n}(ot);function ut(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=O.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function lt(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function ct(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function dt(){this.bindingObserver.disconnect(),this.source=null,this.context=null;var e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function ft(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function ht(e){k.setAttribute(this.target,this.targetName,e)}function pt(e){k.setBooleanAttribute(this.target,this.targetName,e)}function vt(e){if(null!=e||(e=""),e.create){this.target.textContent="";var t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{var n=this.target.$fastView;void 0!==n&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),this.target.textContent=e}}function gt(e){this.target[this.targetName]=e}function mt(e){var t=this.classVersions||Object.create(null),n=this.target,r=this.version||0;if(null!=e&&e.length)for(var i=e.split(/\s+/),o=0,a=i.length;o<a;++o){var s=i[o];""!==s&&(t[s]=r,n.classList.add(s))}if(this.classVersions=t,this.version=r+1,0!==r)for(var u in r-=1,t)t[u]===r&&n.classList.remove(u)}var yt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).binding=e,i.bind=ut,i.unbind=ct,i.updateTarget=ht,i.isBindingVolatile=O.isVolatileBinding(i.binding),i}return(0,i.Z)(n,[{key:"targetName",get:function(){return this.originalTargetName},set:function(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=gt,"innerHTML"===this.cleanedTargetName){var t=this.binding;this.binding=function(e,n){return k.createHTML(t(e,n))}}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=pt;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=lt,this.unbind=ft;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=mt)}}},{key:"targetAtContent",value:function(){this.updateTarget=vt,this.unbind=dt}},{key:"createBehavior",value:function(e){return new bt(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}]),n}(at),bt=function(){function e(t,n,i,o,a,s,u){(0,r.Z)(this,e),this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=i,this.bind=o,this.unbind=a,this.updateTarget=s,this.targetName=u}return(0,i.Z)(e,[{key:"handleChange",value:function(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}},{key:"handleEvent",value:function(e){j.setEvent(e);var t=this.binding(this.source,this.context);j.setEvent(null),!0!==t&&e.preventDefault()}}]),e}(),_t=null,wt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"addFactory",value:function(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}},{key:"captureContentBinding",value:function(e){e.targetAtContent(),this.addFactory(e)}},{key:"reset",value:function(){this.behaviorFactories=[],this.targetIndex=-1}},{key:"release",value:function(){_t=this}}],[{key:"borrow",value:function(t){var n=_t||new e;return n.directives=t,n.reset(),_t=null,n}}]),e}(),kt=w.length;function xt(e,t){var n=t.split(_);if(1===n.length)return null;for(var r=[],i=0,o=n.length;i<o;++i){var a=n[i],s=a.indexOf(w),u=void 0;if(-1===s)u=a;else{var l=parseInt(a.substring(0,s));r.push(e.directives[l]),u=a.substring(s+kt)}""!==u&&r.push(u)}return r}function Ct(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.attributes,i=function(i,s){var u=r[i],l=u.value,c=xt(e,l),d=null;null===c?n&&((d=new yt((function(){return l}))).targetName=u.name):d=function(e){if(1===e.length)return e[0];var t,n=e.length,r=e.map((function(e){return"string"==typeof e?function(){return e}:(t=e.targetName||t,e.binding)})),i=new yt((function(e,t){for(var i="",o=0;o<n;++o)i+=r[o](e,t);return i}));return i.targetName=t,i}(c),null!==d&&(t.removeAttributeNode(u),i--,s--,e.addFactory(d)),o=i,a=s},o=0,a=r.length;o<a;++o)i(o,a)}function Ot(e,t,n){var r=xt(e,t.textContent);if(null!==r){for(var i=t,o=0,a=r.length;o<a;++o){var s=r[o],u=0===o?t:i.parentNode.insertBefore(document.createTextNode(""),i.nextSibling);"string"==typeof s?u.textContent=s:(u.textContent=" ",e.captureContentBinding(s)),i=u,e.targetIndex++,u!==t&&n.nextNode()}e.targetIndex--}}var St,Et=document.createRange(),jt=function(){function e(t,n){(0,r.Z)(this,e),this.fragment=t,this.behaviors=n,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}return(0,i.Z)(e,[{key:"appendTo",value:function(e){e.appendChild(this.fragment)}},{key:"insertBefore",value:function(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{var t=this.lastChild;if(e.previousSibling===t)return;for(var n,r=e.parentNode,i=this.firstChild;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}},{key:"remove",value:function(){for(var e,t=this.fragment,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.appendChild(r),r=e;t.appendChild(n)}},{key:"dispose",value:function(){for(var e,t=this.firstChild.parentNode,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.removeChild(r),r=e;t.removeChild(n);for(var i=this.behaviors,o=this.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}},{key:"bind",value:function(e,t){var n=this.behaviors;if(this.source!==e)if(null!==this.source){var r=this.source;this.source=e,this.context=t;for(var i=0,o=n.length;i<o;++i){var a=n[i];a.unbind(r),a.bind(e,t)}}else{this.source=e,this.context=t;for(var s=0,u=n.length;s<u;++s)n[s].bind(e,t)}}},{key:"unbind",value:function(){if(null!==this.source){for(var e=this.behaviors,t=this.source,n=0,r=e.length;n<r;++n)e[n].unbind(t);this.source=null}}}],[{key:"disposeContiguousBatch",value:function(e){if(0!==e.length){Et.setStartBefore(e[0].firstChild),Et.setEndAfter(e[e.length-1].lastChild),Et.deleteContents();for(var t=0,n=e.length;t<n;++t)for(var r=e[t],i=r.behaviors,o=r.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}}}]),e}(),Tt=function(){function e(t,n){(0,r.Z)(this,e),this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=n}return(0,i.Z)(e,[{key:"create",value:function(e){if(null===this.fragment){var t,n=this.html;if("string"==typeof n){(t=document.createElement("template")).innerHTML=k.createHTML(n);var r=t.content.firstElementChild;null!==r&&"TEMPLATE"===r.tagName&&(t=r)}else t=n;var i=function(e,t){var n=e.content;document.adoptNode(n);var r=wt.borrow(t);Ct(r,e,!0);var i=r.behaviorFactories;r.reset();for(var o,a=k.createTemplateWalker(n);o=a.nextNode();)switch(r.targetIndex++,o.nodeType){case 1:Ct(r,o);break;case 3:Ot(r,o,a);break;case 8:k.isMarker(o)&&r.addFactory(t[k.extractDirectiveIndexFromMarker(o)])}var s=0;(k.isMarker(n.firstChild)||1===n.childNodes.length&&t.length)&&(n.insertBefore(document.createComment(""),n.firstChild),s=-1);var u=r.behaviorFactories;return r.release(),{fragment:n,viewBehaviorFactories:u,hostBehaviorFactories:i,targetOffset:s}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}for(var o=this.fragment.cloneNode(!0),a=this.viewBehaviorFactories,s=new Array(this.behaviorCount),u=k.createTemplateWalker(o),l=0,c=this.targetOffset,d=u.nextNode(),f=a.length;l<f;++l)for(var h=a[l],p=h.targetIndex;null!==d;){if(c===p){s[l]=h.createBehavior(d);break}d=u.nextNode(),c++}if(this.hasHostBehaviors)for(var v=this.hostBehaviorFactories,g=0,m=v.length;g<m;++g,++l)s[l]=v[g].createBehavior(e);return new jt(o,s)}},{key:"render",value:function(e,t,n){"string"==typeof t&&(t=document.getElementById(t)),void 0===n&&(n=t);var r=this.create(n);return r.bind(e,T),r.appendTo(t),r}}]),e}(),At=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Rt(e){for(var t=[],n="",r=0,i=e.length-1;r<i;++r){var o=e[r],a=r+1<1||arguments.length<=r+1?void 0:arguments[r+1];if(n+=o,a instanceof Tt&&function(){var e=a;a=function(){return e}}(),"function"==typeof a&&(a=new yt(a)),a instanceof at){var s=At.exec(o);null!==s&&(a.targetName=s[2])}a instanceof ot?(n+=a.createPlaceholder(t.length),t.push(a)):n+=a}return n+=e[e.length-1],new Tt(n,t)}var Dt=function(e,t){return Rt(St||(St=(0,it.Z)(['\n <template class="','">\n <div class="control" part="control" style="','">\n <slot></slot>\n </div>\n </template>\n'])),(function(e){return e.circular?"circular":""}),(function(e){return e.generateBadgeStyle()}))},It=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"createCSS",value:function(){return""}},{key:"createBehavior",value:function(){}}]),e}();function Pt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(e,t){for(var n=[],r="",i=[],o=0,a=e.length-1;o<a;++o){r+=e[o];var s=t[o];if(s instanceof It){var u=s.createBehavior();s=s.createCSS(),u&&i.push(u)}s instanceof I||s instanceof CSSStyleSheet?(""!==r.trim()&&(n.push(r),r=""),n.push(s)):r+=s}return""!==(r+=e[e.length-1]).trim()&&n.push(r),{styles:n,behaviors:i}}(e,n),o=i.styles,a=i.behaviors,s=I.create(o);return a.length&&s.withBehaviors.apply(s,(0,D.Z)(a)),s}function Nt(e){return"".concat(":host([hidden]){display:none}",":host{display:").concat(e,"}")}function Mt(e){var t=e.parentElement;if(t)return t;var n=e.getRootNode();return n.host instanceof HTMLElement?n.host:null}var Lt=document.createElement("div"),Zt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;k.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;k.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),zt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;(0,r.Z)(this,n),i=t.call(this);var o=new CSSStyleSheet;return i.target=o.cssRules[o.insertRule(":host{}")].style,e.$fastController.addStyles(I.create([o])),i}return(0,i.Z)(n)}(Zt),Ft=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),e=t.call(this);var i=new CSSStyleSheet;return e.target=i.cssRules[i.insertRule(":root{}")].style,document.adoptedStyleSheets=[].concat((0,D.Z)(document.adoptedStyleSheets),[i]),e}return(0,i.Z)(n)}(Zt),Bt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),(e=t.call(this)).style=document.createElement("style"),document.head.appendChild(e.style);var i=e.style.sheet;if(i){var o=i.insertRule(":root{}",i.cssRules.length);e.target=i.cssRules[o].style}return e}return(0,i.Z)(n)}(Zt),Ht=function(){function e(t){(0,r.Z)(this,e),this.store=new Map,this.target=null;var n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),O.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}return(0,i.Z)(e,[{key:"targetChanged",value:function(){if(null!==this.target){var e,t=(0,s.Z)(this.store.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,J.Z)(e.value,2),r=n[0],i=n[1];this.target.setProperty(r,i)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"setProperty",value:function(e,t){var n=this;this.store.set(e,t),k.queueUpdate((function(){null!==n.target&&n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;this.store.delete(e),k.queueUpdate((function(){null!==t.target&&t.target.removeProperty(e)}))}},{key:"handleChange",value:function(e,t){var n=this.style.sheet;if(n){var r=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[r].style}else this.target=null}}]),e}();G([S],Ht.prototype,"target",void 0);var Vt=function(){function e(t){(0,r.Z)(this,e),this.target=t.style}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;k.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;k.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),Ut=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(t,n){e.properties[t]=n;var r,i=(0,s.Z)(e.roots.values());try{for(i.s();!(r=i.n()).done;){var o=r.value;$t.getOrCreate(e.normalizeRoot(o)).setProperty(t,n)}}catch(e){i.e(e)}finally{i.f()}}},{key:"removeProperty",value:function(t){delete e.properties[t];var n,r=(0,s.Z)(e.roots.values());try{for(r.s();!(n=r.n()).done;){var i=n.value;$t.getOrCreate(e.normalizeRoot(i)).removeProperty(t)}}catch(e){r.e(e)}finally{r.f()}}}],[{key:"registerRoot",value:function(t){var n=e.roots;if(!n.has(t)){n.add(t);var r=$t.getOrCreate(this.normalizeRoot(t));for(var i in e.properties)r.setProperty(i,e.properties[i])}}},{key:"unregisterRoot",value:function(t){var n=e.roots;if(n.has(t)){n.delete(t);var r=$t.getOrCreate(e.normalizeRoot(t));for(var i in e.properties)r.removeProperty(i)}}},{key:"normalizeRoot",value:function(e){return e===Lt?document:e}}]),e}();Ut.roots=new Set,Ut.properties={};var Kt=new WeakMap,qt=k.supportsAdoptedStyleSheets?zt:Ht,$t=Object.freeze({getOrCreate:function(e){return Kt.has(e)?Kt.get(e):(t=e===Lt?new Ut:e instanceof Document?k.supportsAdoptedStyleSheets?new Ft:new Bt:e instanceof re?new qt(e):new Vt(e),Kt.set(e,t),t);var t}}),Yt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).subscribers=new WeakMap,i._appliedTo=new Set,i.name=e.name,null!==e.cssCustomPropertyName&&(i.cssCustomProperty="--".concat(e.cssCustomPropertyName),i.cssVar="var(".concat(i.cssCustomProperty,")")),i.id=n.uniqueId(),n.tokensById.set(i.id,(0,v.Z)(i)),i}return(0,i.Z)(n,[{key:"appliedTo",get:function(){return(0,D.Z)(this._appliedTo)}},{key:"getOrCreateSubscriberSet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}},{key:"createCSS",value:function(){return this.cssVar||""}},{key:"getValueFor",value:function(e){var t=en.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error('Value could not be retrieved for token named "'.concat(this.name,'". Ensure the value is set for ').concat(e," or an ancestor of ").concat(e,"."))}},{key:"setValueFor",value:function(e,t){return this._appliedTo.add(e),t instanceof n&&(t=this.alias(t)),en.getOrCreate(e).set(this,t),this}},{key:"deleteValueFor",value:function(e){return this._appliedTo.delete(e),en.existsFor(e)&&en.getOrCreate(e).delete(this),this}},{key:"withDefault",value:function(e){return this.setValueFor(Lt,e),this}},{key:"subscribe",value:function(e,t){var n=this.getOrCreateSubscriberSet(t);t&&!en.existsFor(t)&&en.getOrCreate(t),n.has(e)||n.add(e)}},{key:"unsubscribe",value:function(e,t){var n=this.subscribers.get(t||this);n&&n.has(e)&&n.delete(e)}},{key:"notify",value:function(e){var t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((function(e){return e.handleChange(t)})),this.subscribers.has(e)&&this.subscribers.get(e).forEach((function(e){return e.handleChange(t)}))}},{key:"alias",value:function(e){return function(t){return e.getValueFor(t)}}}],[{key:"from",value:function(e){return new n({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}},{key:"isCSSDesignToken",value:function(e){return"string"==typeof e.cssCustomProperty}},{key:"isDerivedDesignTokenValue",value:function(e){return"function"==typeof e}},{key:"getTokenById",value:function(e){return n.tokensById.get(e)}}]),n}(It);Yt.uniqueId=function(){var e=0;return function(){return(++e).toString(16)}}(),Yt.tokensById=new Map;var Wt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"startReflection",value:function(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}},{key:"stopReflection",value:function(e,t){e.unsubscribe(this,t),this.remove(e,t)}},{key:"handleChange",value:function(e){var t=e.token,n=e.target;this.add(t,n)}},{key:"add",value:function(e,t){$t.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(en.getOrCreate(t).get(e)))}},{key:"remove",value:function(e,t){$t.getOrCreate(t).removeProperty(e.cssCustomProperty)}},{key:"resolveCSSValue",value:function(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}}]),e}(),Gt=function(){function e(t,n,i){(0,r.Z)(this,e),this.source=t,this.token=n,this.node=i,this.dependencies=new Set,this.observer=O.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}return(0,i.Z)(e,[{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"handleChange",value:function(){this.node.store.set(this.token,this.observer.observe(this.node.target,T))}}]),e}(),Jt=function(){function e(){(0,r.Z)(this,e),this.values=new Map}return(0,i.Z)(e,[{key:"set",value:function(e,t){this.values.get(e)!==t&&(this.values.set(e,t),O.getNotifier(this).notify(e.id))}},{key:"get",value:function(e){return O.track(this,e.id),this.values.get(e)}},{key:"delete",value:function(e){this.values.delete(e)}},{key:"all",value:function(){return this.values.entries()}}]),e}(),Qt=new WeakMap,Xt=new WeakMap,en=function(){function e(t){var n=this;(0,r.Z)(this,e),this.target=t,this.store=new Jt,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:function(e,t){var r=Yt.getTokenById(t);if(r&&(r.notify(n.target),Yt.isCSSDesignToken(r))){var i=n.parent,o=n.isReflecting(r);if(i){var a=i.get(r),s=e.get(r);a===s||o?a===s&&o&&n.stopReflectToCSS(r):n.reflectToCSS(r)}else o||n.reflectToCSS(r)}}},Qt.set(t,this),O.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof re?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}return(0,i.Z)(e,[{key:"parent",get:function(){return Xt.get(this)||null}},{key:"has",value:function(e){return this.assignedValues.has(e)}},{key:"get",value:function(e){var t=this.store.get(e);if(void 0!==t)return t;var n=this.getRaw(e);return void 0!==n?(this.hydrate(e,n),this.get(e)):void 0}},{key:"getRaw",value:function(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(n=e.findClosestAssignedNode(t,this))||void 0===n?void 0:n.getRaw(t)}},{key:"set",value:function(e,t){Yt.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Yt.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}},{key:"delete",value:function(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);var t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}},{key:"bind",value:function(){var t=e.findParent(this);t&&t.appendChild(this);var n,r=(0,s.Z)(this.assignedValues.keys());try{for(r.s();!(n=r.n()).done;)n.value.notify(this.target)}catch(e){r.e(e)}finally{r.f()}}},{key:"unbind",value:function(){this.parent&&Xt.get(this).removeChild(this)}},{key:"appendChild",value:function(e){e.parent&&Xt.get(e).removeChild(e);var t=this.children.filter((function(t){return e.contains(t)}));Xt.set(e,this),this.children.push(e),t.forEach((function(t){return e.appendChild(t)})),O.getNotifier(this.store).subscribe(e);var n,r=(0,s.Z)(this.store.all());try{for(r.s();!(n=r.n()).done;){var i=(0,J.Z)(n.value,2),o=i[0],a=i[1];e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),O.getNotifier(this.store).unsubscribe(e),e.parent===this&&Xt.delete(e)}},{key:"contains",value:function(e){return function(e,t){for(var n=t;null!==n;){if(n===e)return!0;n=Mt(n)}return!1}(this.target,e.target)}},{key:"reflectToCSS",value:function(t){this.isReflecting(t)||(this.reflecting.add(t),e.cssCustomPropertyReflector.startReflection(t,this.target))}},{key:"stopReflectToCSS",value:function(t){this.isReflecting(t)&&(this.reflecting.delete(t),e.cssCustomPropertyReflector.stopReflection(t,this.target))}},{key:"isReflecting",value:function(e){return this.reflecting.has(e)}},{key:"handleChange",value:function(e,t){var n=Yt.getTokenById(t);n&&this.hydrate(n,this.getRaw(n))}},{key:"hydrate",value:function(e,t){if(!this.has(e)){var n=this.bindingObservers.get(e);Yt.isDerivedDesignTokenValue(t)?n?n.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(n&&this.tearDownBindingObserver(e),this.store.set(e,t))}}},{key:"setupBindingObserver",value:function(e,t){var n=new Gt(t,e,this);return this.bindingObservers.set(e,n),n}},{key:"tearDownBindingObserver",value:function(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}],[{key:"getOrCreate",value:function(t){return Qt.get(t)||new e(t)}},{key:"existsFor",value:function(e){return Qt.has(e)}},{key:"findParent",value:function(t){if(Lt!==t.target){for(var n=Mt(t.target);null!==n;){if(Qt.has(n))return Qt.get(n);n=Mt(n)}return e.getOrCreate(Lt)}return null}},{key:"findClosestAssignedNode",value:function(t,n){var r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Lt?e.getOrCreate(Lt):null}while(null!==r);return null}}]),e}();en.cssCustomPropertyReflector=new Wt,G([S],en.prototype,"children",void 0);var tn=Object.freeze({create:function(e){return Yt.from(e)},notifyConnection:function(e){return!(!e.isConnected||!en.existsFor(e)||(en.getOrCreate(e).bind(),0))},notifyDisconnection:function(e){return!(e.isConnected||!en.existsFor(e)||(en.getOrCreate(e).unbind(),0))},registerRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt;Ut.registerRoot(e)},unregisterRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt;Ut.unregisterRoot(e)}});function nn(e){var t=getComputedStyle(document.body),n=document.querySelector("body");if(n){var r,i=n.getAttribute("data-vscode-theme-kind"),o=(0,s.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=(0,J.Z)(r.value,2),u=a[0],l=a[1],c=t.getPropertyValue(u).toString();if("vscode-high-contrast"===i)0===c.length&&l.name.includes("background")&&(c="transparent"),"button-icon-hover-background"===l.name&&(c="transparent");else if("vscode-high-contrast-light"===i){if(0===c.length&&l.name.includes("background"))switch(l.name){case"button-primary-hover-background":c="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":c="transparent"}}else"contrast-active-border"===l.name&&(c="transparent");l.setValueFor(n,c)}}catch(e){o.e(e)}finally{o.f()}}}var rn=new Map,on=!1;function an(e,t){var n=tn.create(e);if(t){if(t.includes("--fake-vscode-token")){var r="id"+Math.random().toString(16).slice(2);t="".concat(t,"-").concat(r)}rn.set(t,n)}return on||(function(e){window.addEventListener("load",(function(){new MutationObserver((function(){nn(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),nn(e)}))}(rn),on=!0),n}var sn,un=an("background","--vscode-editor-background").withDefault("#1e1e1e"),ln=an("border-width").withDefault(1),cn=an("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),dn=(an("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),an("corner-radius").withDefault(0)),fn=an("design-unit").withDefault(4),hn=an("disabled-opacity").withDefault(.4),pn=an("focus-border","--vscode-focusBorder").withDefault("#007fd4"),vn=an("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),gn=(an("font-weight","--vscode-font-weight").withDefault("400"),an("foreground","--vscode-foreground").withDefault("#cccccc")),mn=an("input-height").withDefault("26"),yn=an("input-min-width").withDefault("100px"),bn=an("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),_n=an("type-ramp-base-line-height").withDefault("normal"),wn=an("type-ramp-minus1-font-size").withDefault("11px"),kn=an("type-ramp-minus1-line-height").withDefault("16px"),xn=(an("type-ramp-minus2-font-size").withDefault("9px"),an("type-ramp-minus2-line-height").withDefault("16px"),an("type-ramp-plus1-font-size").withDefault("16px"),an("type-ramp-plus1-line-height").withDefault("24px"),an("scrollbarWidth").withDefault("10px")),Cn=an("scrollbarHeight").withDefault("10px"),On=an("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Sn=an("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),En=an("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),jn=an("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Tn=an("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),An=an("button-border","--vscode-button-border").withDefault("transparent"),Rn=an("button-icon-background").withDefault("transparent"),Dn=an("button-icon-corner-radius").withDefault("5px"),In=an("button-icon-outline-offset").withDefault(0),Pn=an("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),Nn=an("button-icon-padding").withDefault("3px"),Mn=an("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Ln=an("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Zn=an("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),zn=an("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Fn=an("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Bn=an("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Hn=an("button-padding-horizontal").withDefault("11px"),Vn=an("button-padding-vertical").withDefault("4px"),Un=an("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Kn=an("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),qn=an("checkbox-corner-radius").withDefault(3),$n=(an("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),an("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771")),Yn=an("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Wn=an("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Gn=an("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Jn=an("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Qn=an("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),Xn=(an("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),an("dropdown-list-max-height").withDefault("200px")),er=an("input-background","--vscode-input-background").withDefault("#3c3c3c"),tr=an("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),nr=(an("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),an("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff")),rr=an("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),ir=an("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),or=an("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),ar=an("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),sr=an("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),ur=(an("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),an("panel-view-border","--vscode-panel-border").withDefault("#80808059"),an("tag-corner-radius").withDefault("2px")),lr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.circular||(this.circular=!0)}}]),n}(rt),cr=lr.compose({baseName:"badge",template:Dt,styles:function(e,t){return Pt(sn||(sn=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\ttext-align: center;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: 11px;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tdisplay: flex;\n\t\theight: calc("," * 4px);\n\t\tjustify-content: center;\n\t\tmin-width: calc("," * 4px + 2px);\n\t\tmin-height: calc("," * 4px + 2px);\n\t\tpadding: 3px 6px;\n\t}\n"])),Nt("inline-block"),vn,wn,kn,jn,ln,An,Tn,fn,fn,fn)}});Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var dr=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([K({attribute:"aria-atomic"})],dr.prototype,"ariaAtomic",void 0),G([K({attribute:"aria-busy"})],dr.prototype,"ariaBusy",void 0),G([K({attribute:"aria-controls"})],dr.prototype,"ariaControls",void 0),G([K({attribute:"aria-current"})],dr.prototype,"ariaCurrent",void 0),G([K({attribute:"aria-describedby"})],dr.prototype,"ariaDescribedby",void 0),G([K({attribute:"aria-details"})],dr.prototype,"ariaDetails",void 0),G([K({attribute:"aria-disabled"})],dr.prototype,"ariaDisabled",void 0),G([K({attribute:"aria-errormessage"})],dr.prototype,"ariaErrormessage",void 0),G([K({attribute:"aria-flowto"})],dr.prototype,"ariaFlowto",void 0),G([K({attribute:"aria-haspopup"})],dr.prototype,"ariaHaspopup",void 0),G([K({attribute:"aria-hidden"})],dr.prototype,"ariaHidden",void 0),G([K({attribute:"aria-invalid"})],dr.prototype,"ariaInvalid",void 0),G([K({attribute:"aria-keyshortcuts"})],dr.prototype,"ariaKeyshortcuts",void 0),G([K({attribute:"aria-label"})],dr.prototype,"ariaLabel",void 0),G([K({attribute:"aria-labelledby"})],dr.prototype,"ariaLabelledby",void 0),G([K({attribute:"aria-live"})],dr.prototype,"ariaLive",void 0),G([K({attribute:"aria-owns"})],dr.prototype,"ariaOwns",void 0),G([K({attribute:"aria-relevant"})],dr.prototype,"ariaRelevant",void 0),G([K({attribute:"aria-roledescription"})],dr.prototype,"ariaRoledescription",void 0);var fr,hr,pr,vr,gr=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.propertyName=n}return(0,i.Z)(e,[{key:"bind",value:function(e){e[this.propertyName]=this.target}},{key:"unbind",value:function(){}}]),e}();function mr(e){return new st("fast-ref",gr,e)}var yr,br=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"handleStartContentChange",value:function(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}},{key:"handleEndContentChange",value:function(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}]),e}(),_r=function(e,t){return Rt(fr||(fr=(0,it.Z)(['\n <span\n part="end"\n ',"\n class=",'\n >\n <slot name="end" ',' @slotchange="','">\n ',"\n </slot>\n </span>\n"])),mr("endContainer"),(function(e){return t.end?"end":void 0}),mr("end"),(function(e){return e.handleEndContentChange()}),t.end||"")},wr=function(e,t){return Rt(hr||(hr=(0,it.Z)(['\n <span\n part="start"\n ','\n class="','"\n >\n <slot\n name="start"\n ','\n @slotchange="','"\n >\n ',"\n </slot>\n </span>\n"])),mr("startContainer"),(function(e){return t.start?"start":void 0}),mr("start"),(function(e){return e.handleStartContentChange()}),t.start||"")};function kr(e){for(var t=B.locate(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((function(n){Object.getOwnPropertyNames(n.prototype).forEach((function(t){"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(n.prototype,t))})),B.locate(n).forEach((function(e){return t.push(e)}))}))}Rt(pr||(pr=(0,it.Z)(['\n <span part="end" ','>\n <slot\n name="end"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),mr("endContainer"),mr("end"),(function(e){return e.handleEndContentChange()})),Rt(vr||(vr=(0,it.Z)(['\n <span part="start" ','>\n <slot\n name="start"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),mr("startContainer"),mr("start"),(function(e){return e.handleStartContentChange()})),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(yr||(yr={}));var xr="ArrowDown",Cr="ArrowLeft",Or="ArrowRight",Sr="ArrowUp",Er="Enter",jr="Escape",Tr="Home",Ar="End",Rr=" ",Dr="Tab",Ir={ArrowDown:xr,ArrowLeft:Cr,ArrowRight:Or,ArrowUp:Sr},Pr="form-associated-proxy",Nr="ElementInternals",Mr=Nr in window&&"setFormValue"in window[Nr].prototype,Lr=new WeakMap;function Zr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).dirtyValue=!1,e.disabled=!1,e.proxyEventsToBlock=["change","click"],e.proxyInitialized=!1,e.required=!1,e.initialValue=e.initialValue||"",e.elementInternals||(e.formResetCallback=e.formResetCallback.bind((0,v.Z)(e))),e}return(0,i.Z)(n,[{key:"validity",get:function(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}},{key:"form",get:function(){return this.elementInternals?this.elementInternals.form:this.proxy.form}},{key:"validationMessage",get:function(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}},{key:"willValidate",get:function(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}},{key:"labels",get:function(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){var e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll("[for='".concat(this.id,"']"))),n=e?t.concat(Array.from(e)):t;return Object.freeze(n)}return f}},{key:"valueChanged",value:function(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}},{key:"currentValueChanged",value:function(){this.value=this.currentValue}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"disabledChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),k.queueUpdate((function(){return n.classList.toggle("disabled",n.disabled)}))}},{key:"nameChanged",value:function(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}},{key:"requiredChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),k.queueUpdate((function(){return n.classList.toggle("required",n.required)})),this.validate()}},{key:"elementInternals",get:function(){if(!Mr)return null;var e=Lr.get(this);return e||(e=this.attachInternals(),Lr.set(this,e)),e}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}},{key:"disconnectedCallback",value:function(){var e=this;this.proxyEventsToBlock.forEach((function(t){return e.proxy.removeEventListener(t,e.stopPropagation)})),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}},{key:"checkValidity",value:function(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}},{key:"reportValidity",value:function(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}},{key:"setValidity",value:function(e,t,n){this.elementInternals?this.elementInternals.setValidity(e,t,n):"string"==typeof t&&this.proxy.setCustomValidity(t)}},{key:"formDisabledCallback",value:function(e){this.disabled=e}},{key:"formResetCallback",value:function(){this.value=this.initialValue,this.dirtyValue=!1}},{key:"attachProxy",value:function(){var e,t=this;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((function(e){return t.proxy.addEventListener(e,t.stopPropagation)})),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Pr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Pr)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}},{key:"detachProxy",value:function(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}},{key:"validate",value:function(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}},{key:"setFormValue",value:function(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}},{key:"_keypressHandler",value:function(e){if(e.key===Er&&this.form instanceof HTMLFormElement){var t=this.form.querySelector("[type=submit]");null==t||t.click()}}},{key:"stopPropagation",value:function(e){e.stopPropagation()}}],[{key:"formAssociated",get:function(){return Mr}}]),n}(e);return K({mode:"boolean"})(t.prototype,"disabled"),K({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),K({attribute:"current-value"})(t.prototype,"currentValue"),K(t.prototype,"name"),K({mode:"boolean"})(t.prototype,"required"),S(t.prototype,"value"),t}function zr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Zr(e)),n=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call(this,o)).dirtyChecked=!1,e.checkedAttribute=!1,e.checked=!1,e.dirtyChecked=!1,e}return(0,i.Z)(n,[{key:"checkedAttributeChanged",value:function(){this.defaultChecked=this.checkedAttribute}},{key:"defaultCheckedChanged",value:function(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}},{key:"checkedChanged",value:function(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}},{key:"currentCheckedChanged",value:function(e,t){this.checked=this.currentChecked}},{key:"updateForm",value:function(){var e=this.checked?this.value:null;this.setFormValue(e,e)}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.updateForm()}},{key:"formResetCallback",value:function(){R((0,A.Z)(n.prototype),"formResetCallback",this).call(this),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}]),n}(t);return K({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),K({attribute:"current-checked",converter:H})(n.prototype,"currentChecked"),S(n.prototype,"defaultChecked"),S(n.prototype,"checked"),n}var Fr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),Br=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Zr(Fr)),Hr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleClick=function(t){var n;e.disabled&&(null===(n=e.defaultSlottedContent)||void 0===n?void 0:n.length)<=1&&t.stopPropagation()},e.handleSubmission=function(){if(e.form){var t=e.proxy.isConnected;t||e.attachProxy(),"function"==typeof e.form.requestSubmit?e.form.requestSubmit(e.proxy):e.proxy.click(),t||e.detachProxy()}},e.handleFormReset=function(){var t;null===(t=e.form)||void 0===t||t.reset()},e.handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){e.control.focus()})},e}return(0,i.Z)(n,[{key:"formactionChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}},{key:"formenctypeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}},{key:"formmethodChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}},{key:"formnovalidateChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}},{key:"formtargetChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}},{key:"typeChanged",value:function(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}},{key:"validate",value:function(){R((0,A.Z)(n.prototype),"validate",this).call(this,this.control)}},{key:"connectedCallback",value:function(){var e,t=this;R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.addEventListener("click",t.handleClick)}))}},{key:"disconnectedCallback",value:function(){var e,t=this;R((0,A.Z)(n.prototype),"disconnectedCallback",this).call(this);var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.removeEventListener("click",t.handleClick)}))}}]),n}(Br);G([K({mode:"boolean"})],Hr.prototype,"autofocus",void 0),G([K({attribute:"form"})],Hr.prototype,"formId",void 0),G([K],Hr.prototype,"formaction",void 0),G([K],Hr.prototype,"formenctype",void 0),G([K],Hr.prototype,"formmethod",void 0),G([K({mode:"boolean"})],Hr.prototype,"formnovalidate",void 0),G([K],Hr.prototype,"formtarget",void 0),G([K],Hr.prototype,"type",void 0),G([S],Hr.prototype,"defaultSlottedContent",void 0);var Vr=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function Ur(e){return e?function(t,n,r){return 1===t.nodeType&&t.matches(e)}:function(e,t,n){return 1===e.nodeType}}G([K({attribute:"aria-expanded"})],Vr.prototype,"ariaExpanded",void 0),G([K({attribute:"aria-pressed"})],Vr.prototype,"ariaPressed",void 0),kr(Vr,dr),kr(Hr,br,Vr);var Kr,qr,$r=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.options=n,this.source=null}return(0,i.Z)(e,[{key:"bind",value:function(e){var t=this.options.property;this.shouldUpdate=O.getAccessors(e).some((function(e){return e.name===t})),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}},{key:"unbind",value:function(){this.updateTarget(f),this.source=null,this.shouldUpdate&&this.disconnect()}},{key:"handleEvent",value:function(){this.updateTarget(this.computeNodes())}},{key:"computeNodes",value:function(){var e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}},{key:"updateTarget",value:function(e){this.source[this.options.property]=e}}]),e}(),Yr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){return(0,r.Z)(this,n),t.call(this,e,i)}return(0,i.Z)(n,[{key:"observe",value:function(){this.target.addEventListener("slotchange",this)}},{key:"disconnect",value:function(){this.target.removeEventListener("slotchange",this)}},{key:"getNodes",value:function(){return this.target.assignedNodes(this.options)}}]),n}($r);function Wr(e){return"string"==typeof e&&(e={property:e}),new st("fast-slotted",Yr,e)}var Gr,Jr,Qr,Xr,ei,ti=function(){if("boolean"==typeof qr)return qr;if("undefined"==typeof window||!window.document||!window.document.createElement)return qr=!1;var e=document.createElement("style"),t=function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),qr=!0}catch(e){qr=!1}finally{document.head.removeChild(e)}return qr}()?"focus-visible":"focus",ni="not-allowed",ri=Pt(Gr||(Gr=(0,it.Z)(["\n\t"," :host {\n\t\toutline: none;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: 2px;\n\t\tfill: currentColor;\n\t\tcursor: pointer;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\theight: inherit;\n\t\tflex-grow: 1;\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: "," ",";\n\t\twhite-space: wrap;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: inherit;\n\t\tborder-radius: inherit;\n\t\tfill: inherit;\n\t\tcursor: inherit;\n\t\tfont-family: inherit;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t}\n\t.control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t\tbackground: ",";\n\t\tcursor: ",";\n\t}\n\t.content {\n\t\tdisplay: flex;\n\t}\n\t.start {\n\t\tdisplay: flex;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-end: 8px;\n\t}\n"])),Nt("inline-flex"),vn,bn,_n,Ln,Mn,Vn,Hn,ln,An,Zn,Mn,ti,ln,pn,ln,hn,Mn,ni,fn,fn),ii=Pt(Jr||(Jr=(0,it.Z)(["\n\t:host([appearance='primary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='primary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='primary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Mn,Ln,Zn,Mn,ti,ln,pn,ln,Mn),oi=Pt(Qr||(Qr=(0,it.Z)(["\n\t:host([appearance='secondary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='secondary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='secondary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),zn,Fn,Bn,zn,ti,ln,pn,ln,zn),ai=Pt(Xr||(Xr=(0,it.Z)(["\n\t:host([appearance='icon']) {\n\t\tbackground: ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='icon']:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n\t:host([appearance='icon']) .control {\n\t\tpadding: ",";\n\t\tborder: none;\n\t}\n\t:host([appearance='icon']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='icon']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: ",";\n\t}\n\t:host([appearance='icon'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Rn,Dn,gn,Pn,cn,Nn,Pn,ti,ln,pn,In,Rn),si=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){if(R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),!this.appearance){var e=this.getAttribute("appearance");this.appearance=e}}},{key:"attributeChangedCallback",value:function(e,t,n){"appearance"===e&&"icon"===n&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),"aria-label"===e&&(this.ariaLabel=n),"disabled"===e&&(this.disabled=null!==n)}}]),n}(Hr);!function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([K],si.prototype,"appearance",void 0);var ui,li=si.compose({baseName:"button",template:function(e,t){return Rt(Kr||(Kr=(0,it.Z)(['\n <button\n class="control"\n part="control"\n ?autofocus="','"\n ?disabled="','"\n form="','"\n formaction="','"\n formenctype="','"\n formmethod="','"\n formnovalidate="','"\n formtarget="','"\n name="','"\n type="','"\n value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-pressed="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </button>\n"])),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.formId}),(function(e){return e.formaction}),(function(e){return e.formenctype}),(function(e){return e.formmethod}),(function(e){return e.formnovalidate}),(function(e){return e.formtarget}),(function(e){return e.name}),(function(e){return e.type}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaPressed}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),mr("control"),wr(0,t),Wr("defaultSlottedContent"),_r(0,t))},styles:function(e,t){return Pt(ei||(ei=(0,it.Z)(["\n\t","\n\t","\n\t","\n\t","\n"])),ri,ii,oi,ai)},shadowOptions:{delegatesFocus:!0}}),ci=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),di=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(ci)),fi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.indeterminate=!1,e.keypressHandler=function(t){e.readOnly||t.key!==Rr||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.clickHandler=function(t){e.disabled||e.readOnly||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.proxy.setAttribute("type","checkbox"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}]),n}(di);G([K({attribute:"readonly",mode:"boolean"})],fi.prototype,"readOnly",void 0),G([S],fi.prototype,"defaultSlottedNodes",void 0),G([S],fi.prototype,"indeterminate",void 0);var hi,pi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}]),n}(fi),vi=pi.compose({baseName:"checkbox",template:function(e,t){return Rt(ui||(ui=(0,it.Z)(['\n <template\n role="checkbox"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n tabindex="','"\n @keypress="','"\n @click="','"\n class="'," "," ",'"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n <slot name="indeterminate-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e){return e.disabled?null:0}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked?"checked":""}),(function(e){return e.indeterminate?"indeterminate":""}),t.checkedIndicator||"",t.indeterminateIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr("defaultSlottedNodes"))},styles:function(e,t){return Pt(hi||(hi=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\tmargin: calc("," * 1px) 0;\n\t\tuser-select: none;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tposition: relative;\n\t\twidth: calc("," * 4px + 2px);\n\t\theight: calc("," * 4px + 2px);\n\t\tbox-sizing: border-box;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbackground: ",";\n\t\toutline: none;\n\t\tcursor: pointer;\n\t}\n\t.label {\n\t\tfont-family: ",";\n\t\tcolor: ",";\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tcursor: pointer;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.checked-indicator {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tfill: ",";\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t}\n\t.indeterminate-indicator {\n\t\tborder-radius: 2px;\n\t\tbackground: ",";\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\twidth: 50%;\n\t\theight: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\topacity: 0;\n\t}\n\t:host(:enabled) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:enabled) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host(.disabled) .label,\n\t:host(.readonly) .label,\n\t:host(.readonly) .control,\n\t:host(.disabled) .control {\n\t\tcursor: ",";\n\t}\n\t:host(.checked:not(.indeterminate)) .checked-indicator,\n\t:host(.indeterminate) .indeterminate-indicator {\n\t\topacity: 1;\n\t}\n\t:host(.disabled) {\n\t\topacity: ",";\n\t}\n"])),Nt("inline-flex"),fn,bn,_n,fn,fn,qn,ln,Kn,Un,vn,gn,fn,fn,gn,gn,Un,Kn,Un,pn,ti,ln,pn,ni,hn)},checkedIndicator:'\n\t\t<svg \n\t\t\tpart="checked-indicator"\n\t\t\tclass="checked-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"\n\t\t\t/>\n\t\t</svg>\n\t',indeterminateIndicator:'\n\t\t<div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n\t'});function gi(e,t,n){return{index:e,removed:t,addedCount:n}}function mi(e,t,n,r,i,o){var a=0,s=0,u=Math.min(n-t,o-i);if(0===t&&0===i&&(a=function(e,t,n){for(var r=0;r<n;++r)if(e[r]!==t[r])return r;return n}(e,r,u)),n===e.length&&o===r.length&&(s=function(e,t,n){for(var r=e.length,i=t.length,o=0;o<n&&e[--r]===t[--i];)o++;return o}(e,r,u-a)),i+=a,o-=s,(n-=s)-(t+=a)==0&&o-i==0)return f;if(t===n){for(var l=gi(t,[],0);i<o;)l.removed.push(r[i++]);return[l]}if(i===o)return[gi(t,[],n-t)];for(var c=function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!==t)if(0!==n){var o,a=e[t-1][n-1],s=e[t-1][n],u=e[t][n-1];(o=s<u?s<a?s:a:u<a?u:a)===a?(a===r?i.push(0):(i.push(1),r=a),t--,n--):o===s?(i.push(3),t--,r=s):(i.push(2),n--,r=u)}else i.push(3),t--;else i.push(2),n--;return i.reverse(),i}(function(e,t,n,r,i,o){for(var a,s,u=o-i+1,l=n-t+1,c=new Array(u),d=0;d<u;++d)c[d]=new Array(l),c[d][0]=d;for(var f=0;f<l;++f)c[0][f]=f;for(var h=1;h<u;++h)for(var p=1;p<l;++p)e[t+p-1]===r[i+h-1]?c[h][p]=c[h-1][p-1]:(a=c[h-1][p]+1,s=c[h][p-1]+1,c[h][p]=a<s?a:s);return c}(e,t,n,r,i,o)),d=[],h=void 0,p=t,v=i,g=0;g<c.length;++g)switch(c[g]){case 0:void 0!==h&&(d.push(h),h=void 0),p++,v++;break;case 1:void 0===h&&(h=gi(p,[],0)),h.addedCount++,p++,h.removed.push(r[v]),v++;break;case 2:void 0===h&&(h=gi(p,[],0)),h.addedCount++,p++;break;case 3:void 0===h&&(h=gi(p,[],0)),h.removed.push(r[v]),v++}return void 0!==h&&d.push(h),d}var yi=Array.prototype.push;function bi(e,t,n,r){for(var i,o,a,s,u=gi(t,n,r),l=!1,c=0,d=0;d<e.length;d++){var f=e[d];if(f.index+=c,!l){var h=(i=u.index,o=u.index+u.removed.length,a=f.index,s=f.index+f.addedCount,o<a||s<i?-1:o===a||s===i?0:i<a?o<s?o-a:s-a:s<o?s-i:o-i);if(h>=0){e.splice(d,1),d--,c-=f.addedCount-f.removed.length,u.addedCount+=f.addedCount-h;var p=u.removed.length+f.removed.length-h;if(u.addedCount||p){var v=f.removed;if(u.index<f.index){var g=u.removed.slice(0,f.index-u.index);yi.apply(g,v),v=g}if(u.index+u.removed.length>f.index+f.addedCount){var m=u.removed.slice(f.index+f.addedCount-u.index);yi.apply(v,m)}u.removed=v,f.index<u.index&&(u.index=f.index)}else l=!0}else if(u.index<f.index){l=!0,e.splice(d,0,u),d++;var y=u.addedCount-u.removed.length;f.index+=y,c+=y}}}l||e.push(u)}var _i=!1;function wi(e,t){var n=e.index,r=t.length;return n>r?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}var ki=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).oldCollection=void 0,i.splices=void 0,i.needsQueue=!0,i.call=i.flush,Reflect.defineProperty(e,"$fastController",{value:(0,v.Z)(i),enumerable:!1}),i}return(0,i.Z)(n,[{key:"subscribe",value:function(e){this.flush(),R((0,A.Z)(n.prototype),"subscribe",this).call(this,e)}},{key:"addSplice",value:function(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,k.queueUpdate(this))}},{key:"reset",value:function(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,k.queueUpdate(this))}},{key:"flush",value:function(){var e=this.splices,t=this.oldCollection;if(void 0!==e||void 0!==t){this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;var n=void 0===t?function(e,t){for(var n=[],r=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];bi(t,i.index,i.removed,i.addedCount)}return t}(t),i=0,o=r.length;i<o;++i){var a=r[i];1!==a.addedCount||1!==a.removed.length?n=n.concat(mi(e,a.index,a.index+a.addedCount,a.removed,0,a.removed.length)):a.removed[0]!==e[a.index]&&n.push(a)}return n}(this.source,e):mi(this.source,0,this.source.length,t,0,t.length);this.notify(n)}}}]),n}(x);function xi(e,t,n,r){e.bind(t[n],r)}function Ci(e,t,n,r){var i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}Object.freeze({positioning:!1,recycle:!0});var Oi=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.location=t,this.itemsBinding=n,this.templateBinding=o,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=xi,this.itemsBindingObserver=O.binding(n,this,i),this.templateBindingObserver=O.binding(o,this,a),s.positioning&&(this.bindView=Ci)}return(0,i.Z)(e,[{key:"bind",value:function(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}},{key:"unbind",value:function(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}},{key:"handleChange",value:function(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}},{key:"observeItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.items){var t=this.itemsObserver,n=this.itemsObserver=O.getNotifier(this.items),r=t!==n;r&&null!==t&&t.unsubscribe(this),(r||e)&&n.subscribe(this)}else this.items=f}},{key:"updateViews",value:function(e){for(var t=this.childContext,n=this.views,r=this.bindView,i=this.items,o=this.template,a=this.options.recycle,s=[],u=0,l=0,c=0,d=e.length;c<d;++c){for(var f=e[c],h=f.removed,p=0,v=f.index,g=v+f.addedCount,m=n.splice(f.index,h.length),y=l=s.length+m.length;v<g;++v){var b=n[v],_=b?b.firstChild:this.location,w=void 0;a&&l>0?(p<=y&&m.length>0?(w=m[p],p++):(w=s[u],u++),l--):w=o.create(),n.splice(v,0,w),r(w,i,v,t),w.insertBefore(_)}m[p]&&s.push.apply(s,(0,D.Z)(m.slice(p)))}for(var k=u,x=s.length;k<x;++k)s[k].dispose();if(this.options.positioning)for(var C=0,O=n.length;C<O;++C){var S=n[C].context;S.length=O,S.index=C}}},{key:"refreshAllViews",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.items,n=this.childContext,r=this.template,i=this.location,o=this.bindView,a=t.length,s=this.views,u=s.length;if(0!==a&&!e&&this.options.recycle||(jt.disposeContiguousBatch(s),u=0),0===u){this.views=s=new Array(a);for(var l=0;l<a;++l){var c=r.create();o(c,t,l,n),s[l]=c,c.insertBefore(i)}}else{for(var d=0;d<a;++d)if(d<u)o(s[d],t,d,n);else{var f=r.create();o(f,t,d,n),s.push(f),f.insertBefore(i)}var h=s.splice(d,u-d);for(d=0,a=h.length;d<a;++d)h[d].dispose()}}},{key:"unbindAllViews",value:function(){for(var e=this.views,t=0,n=e.length;t<n;++t)e[t].unbind()}}]),e}(),Si=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).itemsBinding=e,a.templateBinding=i,a.options=o,a.createPlaceholder=k.createBlockPlaceholder,function(){if(!_i){_i=!0,O.setArrayObserverFactory((function(e){return new ki(e)}));var e=Array.prototype;if(!e.$fastPatch){Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});var t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,a=e.splice,s=e.unshift;e.pop=function(){var e=this.length>0,n=t.apply(this,arguments),r=this.$fastController;return void 0!==r&&e&&r.addSplice(gi(this.length,[n],0)),n},e.push=function(){var e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(wi(gi(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=r.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.shift=function(){var e=this.length>0,t=i.apply(this,arguments),n=this.$fastController;return void 0!==n&&e&&n.addSplice(gi(0,[t],0)),t},e.sort=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=o.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.splice=function(){var e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(wi(gi(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){var e=s.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(wi(gi(0,[],arguments.length),this)),e}}}}(),a.isItemsBindingVolatile=O.isVolatileBinding(e),a.isTemplateBindingVolatile=O.isVolatileBinding(i),a}return(0,i.Z)(n,[{key:"createBehavior",value:function(e){return new Oi(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}]),n}(ot),Ei="focus",ji="focusin",Ti="focusout",Ai="keydown",Ri="sticky",Di="default",Ii="columnheader",Pi="default",Ni=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).noTabbing=!1,e.generateHeader="default",e.rowsData=[],e.columnDefinitions=null,e.focusRowIndex=0,e.focusColumnIndex=0,e.rowsPlaceholder=null,e.generatedHeader=null,e.isUpdatingFocus=!1,e.pendingFocusUpdate=!1,e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!0,e.generatedGridTemplateColumns="",e.focusOnCell=function(t,n,r){if(0===e.rowElements.length)return e.focusRowIndex=0,void(e.focusColumnIndex=0);var i=Math.max(0,Math.min(e.rowElements.length-1,t)),o=e.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),a=o[Math.max(0,Math.min(o.length-1,n))];r&&e.scrollHeight!==e.clientHeight&&(i<e.focusRowIndex&&e.scrollTop>0||i>e.focusRowIndex&&e.scrollTop<e.scrollHeight-e.clientHeight)&&a.scrollIntoView({block:"center",inline:"center"}),a.focus()},e.onChildListChange=function(t,n){t&&t.length&&(t.forEach((function(t){t.addedNodes.forEach((function(t){1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=e.columnDefinitions)}))})),e.queueRowIndexUpdate())},e.queueRowIndexUpdate=function(){e.rowindexUpdateQueued||(e.rowindexUpdateQueued=!0,k.queueUpdate(e.updateRowIndexes))},e.updateRowIndexes=function(){var t=e.gridTemplateColumns;if(void 0===t){if(""===e.generatedGridTemplateColumns&&e.rowElements.length>0){var n=e.rowElements[0];e.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=e.generatedGridTemplateColumns}e.rowElements.forEach((function(n,r){var i=n;i.rowIndex=r,i.gridTemplateColumns=t,e.columnDefinitionsStale&&(i.columnDefinitions=e.columnDefinitions)})),e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!1},e}return(0,i.Z)(n,[{key:"noTabbingChanged",value:function(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}},{key:"generateHeaderChanged",value:function(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowIndexes()}},{key:"rowsDataChanged",value:function(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=n.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"columnDefinitionsChanged",value:function(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=n.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}},{key:"headerCellItemTemplateChanged",value:function(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}},{key:"focusRowIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"focusColumnIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Si((function(e){return e.rowsData}),(function(e){return e.rowItemTemplate}),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Ei,this.handleFocus),this.addEventListener(Ai,this.handleKeydown),this.addEventListener(Ti,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),k.queueUpdate(this.queueRowIndexUpdate)}},{key:"disconnectedCallback",value:function(){R((0,A.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Ei,this.handleFocus),this.removeEventListener(Ai,this.handleKeydown),this.removeEventListener(Ti,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}},{key:"handleRowFocus",value:function(e){this.isUpdatingFocus=!0;var t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}},{key:"handleFocus",value:function(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"handleFocusOut",value:function(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t,n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case Sr:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case xr:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){var o=this.rowElements[t];if(o.offsetTop<this.scrollTop){this.scrollTop=o.offsetTop+o.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"PageDown":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=n||i.offsetTop+i.offsetHeight<=r)return void this.focusOnCell(n,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=n;t++){var a=this.rowElements[t];if(a.offsetTop+a.offsetHeight>r){var s=0;this.generateHeader===Ri&&null!==this.generatedHeader&&(s=this.generatedHeader.clientHeight),this.scrollTop=a.offsetTop-s;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Tr:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Ar:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}}},{key:"queueFocusUpdate",value:function(){var e=this;this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,k.queueUpdate((function(){return e.updateFocus()})))}},{key:"updateFocus",value:function(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"toggleGeneratedHeader",value:function(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),"none"!==this.generateHeader&&this.rowsData.length>0){var e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Ri?"sticky-header":"header",void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}],[{key:"generateTemplateColumns",value:function(e){var t="";return e.forEach((function(e){t="".concat(t).concat(""===t?"":" ","1fr")})),t}}]),n}(qe);Ni.generateColumns=function(e){return Object.getOwnPropertyNames(e).map((function(e,t){return{columnDataKey:e,gridColumn:"".concat(t)}}))},G([K({attribute:"no-tabbing",mode:"boolean"})],Ni.prototype,"noTabbing",void 0),G([K({attribute:"generate-header"})],Ni.prototype,"generateHeader",void 0),G([K({attribute:"grid-template-columns"})],Ni.prototype,"gridTemplateColumns",void 0),G([S],Ni.prototype,"rowsData",void 0),G([S],Ni.prototype,"columnDefinitions",void 0),G([S],Ni.prototype,"rowItemTemplate",void 0),G([S],Ni.prototype,"cellItemTemplate",void 0),G([S],Ni.prototype,"headerCellItemTemplate",void 0),G([S],Ni.prototype,"focusRowIndex",void 0),G([S],Ni.prototype,"focusColumnIndex",void 0),G([S],Ni.prototype,"defaultRowItemTemplate",void 0),G([S],Ni.prototype,"rowElementTag",void 0),G([S],Ni.prototype,"rowElements",void 0);var Mi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e,i)).observer=null,i.childList=!0,o}return(0,i.Z)(n,[{key:"observe",value:function(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}},{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"getNodes",value:function(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}]),n}($r);function Li(e){return"string"==typeof e&&(e={property:e}),new st("fast-children",Mi,e)}var Zi,zi,Fi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).rowType=Pi,e.rowData=null,e.columnDefinitions=null,e.isActiveRow=!1,e.cellsRepeatBehavior=null,e.cellsPlaceholder=null,e.focusColumnIndex=0,e.refocusOnLoad=!1,e.updateRowStyle=function(){e.style.gridTemplateColumns=e.gridTemplateColumns},e}return(0,i.Z)(n,[{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowStyle()}},{key:"rowTypeChanged",value:function(){this.$fastController.isConnected&&this.updateItemTemplate()}},{key:"rowDataChanged",value:function(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}},{key:"cellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"headerCellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Si((function(e){return e.columnDefinitions}),(function(e){return e.activeCellItemTemplate}),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Ti,this.handleFocusout),this.addEventListener(Ai,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}},{key:"disconnectedCallback",value:function(){R((0,A.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Ti,this.handleFocusout),this.removeEventListener(Ai,this.handleKeydown)}},{key:"handleFocusout",value:function(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}},{key:"handleCellFocus",value:function(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t=0;switch(e.key){case Cr:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case Or:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Tr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Ar:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}}},{key:"updateItemTemplate",value:function(){this.activeCellItemTemplate=this.rowType===Pi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Pi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}]),n}(qe);G([K({attribute:"grid-template-columns"})],Fi.prototype,"gridTemplateColumns",void 0),G([K({attribute:"row-type"})],Fi.prototype,"rowType",void 0),G([S],Fi.prototype,"rowData",void 0),G([S],Fi.prototype,"columnDefinitions",void 0),G([S],Fi.prototype,"cellItemTemplate",void 0),G([S],Fi.prototype,"headerCellItemTemplate",void 0),G([S],Fi.prototype,"rowIndex",void 0),G([S],Fi.prototype,"isActiveRow",void 0),G([S],Fi.prototype,"activeCellItemTemplate",void 0),G([S],Fi.prototype,"defaultCellItemTemplate",void 0),G([S],Fi.prototype,"defaultHeaderCellItemTemplate",void 0),G([S],Fi.prototype,"cellElements",void 0);var Bi,Hi,Vi,Ui,Ki,qi=Rt(Bi||(Bi=(0,it.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey]})),$i=Rt(Hi||(Hi=(0,it.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title})),Yi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).cellType=Di,e.rowData=null,e.columnDefinition=null,e.isActiveCell=!1,e.customCellView=null,e.updateCellStyle=function(){e.style.gridColumn=e.gridColumn},e}return(0,i.Z)(n,[{key:"cellTypeChanged",value:function(){this.$fastController.isConnected&&this.updateCellView()}},{key:"gridColumnChanged",value:function(){this.$fastController.isConnected&&this.updateCellStyle()}},{key:"columnDefinitionChanged",value:function(e,t){this.$fastController.isConnected&&this.updateCellView()}},{key:"connectedCallback",value:function(){var e;R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener(ji,this.handleFocusin),this.addEventListener(Ti,this.handleFocusout),this.addEventListener(Ai,this.handleKeydown),this.style.gridColumn="".concat(void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}},{key:"disconnectedCallback",value:function(){R((0,A.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener(ji,this.handleFocusin),this.removeEventListener(Ti,this.handleFocusout),this.removeEventListener(Ai,this.handleKeydown),this.disconnectCellView()}},{key:"handleFocusin",value:function(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===Ii){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus()}this.$emit("cell-focused",this)}}},{key:"handleFocusout",value:function(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}},{key:"handleKeydown",value:function(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===Di&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ii&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case Er:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===Ii){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus(),e.preventDefault()}break;case jr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}},{key:"updateCellView",value:function(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ii:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=$i.render(this,this);break;case void 0:case"rowheader":case Di:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=qi.render(this,this)}}},{key:"disconnectCellView",value:function(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}]),n}(qe);G([K({attribute:"cell-type"})],Yi.prototype,"cellType",void 0),G([K({attribute:"grid-column"})],Yi.prototype,"gridColumn",void 0),G([S],Yi.prototype,"rowData",void 0),G([S],Yi.prototype,"columnDefinition",void 0);var Wi,Gi,Ji,Qi,Xi,eo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}]),n}(Ni),to=eo.compose({baseName:"data-grid",baseClass:Ni,template:function(e,t){var n=function(e){var t=e.tagFor(Fi);return Rt(Zi||(Zi=(0,it.Z)(["\n <",'\n :rowData="','"\n :cellItemTemplate="','"\n :headerCellItemTemplate="','"\n ></',">\n"])),t,(function(e){return e}),(function(e,t){return t.parent.cellItemTemplate}),(function(e,t){return t.parent.headerCellItemTemplate}),t)}(e),r=e.tagFor(Fi);return Rt(zi||(zi=(0,it.Z)(['\n <template\n role="grid"\n tabindex="0"\n :rowElementTag="','"\n :defaultRowItemTemplate="','"\n ',"\n >\n <slot></slot>\n </template>\n "])),(function(){return r}),n,Li({property:"rowElements",filter:Ur("[role=row]")}))},styles:function(e,t){return Pt(Gi||(Gi=(0,it.Z)(["\n\t:host {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t}\n"])))}}),no=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Fi),ro=no.compose({baseName:"data-grid-row",baseClass:Fi,template:function(e,t){var n=function(e){var t=e.tagFor(Yi);return Rt(Vi||(Vi=(0,it.Z)(["\n <",'\n cell-type="','"\n grid-column="','"\n :rowData="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e){return e.isRowHeader?"rowheader":void 0}),(function(e,t){return t.index+1}),(function(e,t){return t.parent.rowData}),(function(e){return e}),t)}(e),r=function(e){var t=e.tagFor(Yi);return Rt(Ui||(Ui=(0,it.Z)(["\n <",'\n cell-type="columnheader"\n grid-column="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e,t){return t.index+1}),(function(e){return e}),t)}(e);return Rt(Ki||(Ki=(0,it.Z)(['\n <template\n role="row"\n class="','"\n :defaultCellItemTemplate="','"\n :defaultHeaderCellItemTemplate="','"\n ',"\n >\n <slot ","></slot>\n </template>\n "])),(function(e){return"default"!==e.rowType?e.rowType:""}),n,r,Li({property:"cellElements",filter:Ur('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')}),Wr("slottedCellElements"))},styles:function(e,t){return Pt(Ji||(Ji=(0,it.Z)(["\n\t:host {\n\t\tdisplay: grid;\n\t\tpadding: calc(("," / 4) * 1px) 0;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tbackground: transparent;\n\t}\n\t:host(.header) {\n\t}\n\t:host(.sticky-header) {\n\t\tbackground: ",";\n\t\tposition: sticky;\n\t\ttop: 0;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n"])),fn,un,Wn,cn)}}),io=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Yi),oo=io.compose({baseName:"data-grid-cell",baseClass:Yi,template:function(e,t){return Rt(Wi||(Wi=(0,it.Z)(['\n <template\n tabindex="-1"\n role="','"\n class="\n ','\n "\n >\n <slot></slot>\n </template>\n '])),(function(e){return e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"}),(function(e){return"columnheader"===e.cellType?"column-header":"rowheader"===e.cellType?"row-header":""}))},styles:function(e,t){return Pt(Qi||(Qi=(0,it.Z)(["\n\t:host {\n\t\tpadding: calc("," * 1px) calc("," * 3px);\n\t\tcolor: ",";\n\t\topacity: 1;\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tfont-weight: 400;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\twhite-space: wrap;\n\t\toverflow-wrap: anywhere;\n\t}\n\t:host(.column-header) {\n\t\tfont-weight: 600;\n\t}\n\t:host(:","),\n\t:host(:focus),\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tborder: solid calc("," * 1px) ",";\n\t\tcolor: ",";\n\t\toutline: none;\n\t}\n\t:host(:",") ::slotted(*),\n\t:host(:focus) ::slotted(*),\n\t:host(:active) ::slotted(*) {\n\t\tcolor: "," !important;\n\t}\n"])),fn,fn,gn,vn,bn,_n,ln,dn,ti,$n,ln,pn,Yn,ti,Yn)}}),ao="horizontal",so=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).role="separator",e.orientation=ao,e}return(0,i.Z)(n)}(qe);G([K],so.prototype,"role",void 0),G([K],so.prototype,"orientation",void 0);var uo,lo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(so),co=lo.compose({baseName:"divider",template:function(e,t){return Rt(Xi||(Xi=(0,it.Z)(['\n <template role="','" aria-orientation="','"></template>\n'])),(function(e){return e.role}),(function(e){return e.orientation}))},styles:function(e,t){return Pt(uo||(uo=(0,it.Z)(["\n\t"," :host {\n\t\tborder: none;\n\t\tborder-top: calc("," * 1px) solid ",";\n\t\tbox-sizing: content-box;\n\t\theight: 0;\n\t\tmargin: calc("," * 1px) 0;\n\t\twidth: 100%;\n\t}\n"])),Nt("block"),ln,Gn,fn)}}),fo=0;function ho(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(fo++)}function po(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return e instanceof HTMLElement}))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}var vo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this)).defaultSelected=!1,s.dirtySelected=!1,s.selected=s.defaultSelected,s.dirtyValue=!1,e&&(s.textContent=e),i&&(s.initialValue=i),o&&(s.defaultSelected=o),a&&(s.selected=a),s.proxy=new Option("".concat(s.textContent),s.initialValue,s.defaultSelected,s.selected),s.proxy.disabled=s.disabled,s}return(0,i.Z)(n,[{key:"checkedChanged",value:function(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}},{key:"contentChanged",value:function(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}},{key:"defaultSelectedChanged",value:function(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}},{key:"disabledChanged",value:function(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}},{key:"selectedAttributeChanged",value:function(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}},{key:"selectedChanged",value:function(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"label",get:function(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}},{key:"text",get:function(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}},{key:"value",get:function(){var e;return O.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text},set:function(e){var t="".concat(null!=e?e:"");this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),O.notify(this,"value")}},{key:"form",get:function(){return this.proxy?this.proxy.form:null}}]),n}(qe);G([S],vo.prototype,"checked",void 0),G([S],vo.prototype,"content",void 0),G([S],vo.prototype,"defaultSelected",void 0),G([K({mode:"boolean"})],vo.prototype,"disabled",void 0),G([K({attribute:"selected",mode:"boolean"})],vo.prototype,"selectedAttribute",void 0),G([S],vo.prototype,"selected",void 0),G([K({attribute:"value",mode:"fromView"})],vo.prototype,"initialValue",void 0);var go=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([S],go.prototype,"ariaChecked",void 0),G([S],go.prototype,"ariaPosInSet",void 0),G([S],go.prototype,"ariaSelected",void 0),G([S],go.prototype,"ariaSetSize",void 0),kr(go,dr),kr(vo,br,go);var mo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._options=[],e.selectedIndex=-1,e.selectedOptions=[],e.shouldSkipFocus=!1,e.typeaheadBuffer="",e.typeaheadExpired=!0,e.typeaheadTimeout=-1,e}return(0,i.Z)(n,[{key:"firstSelectedOption",get:function(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}},{key:"hasSelectableOptions",get:function(){return this.options.length>0&&!this.options.every((function(e){return e.disabled}))}},{key:"length",get:function(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}},{key:"options",get:function(){return O.track(this,"options"),this._options},set:function(e){this._options=e,O.notify(this,"options")}},{key:"typeAheadExpired",get:function(){return this.typeaheadExpired},set:function(e){this.typeaheadExpired=e}},{key:"clickHandler",value:function(e){var t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}},{key:"focusAndScrollOptionIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.firstSelectedOption;this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((function(){e.scrollIntoView({block:"nearest"})})))}},{key:"focusinHandler",value:function(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"getTypeaheadMatches",value:function(){var e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp("^".concat(e),"gi");return this.options.filter((function(e){return e.text.trim().match(t)}))}},{key:"getSelectableIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedIndex,t=arguments.length>1?arguments[1]:void 0,n=e>t?-1:e<t?1:0,r=e+n,i=null;switch(n){case-1:i=this.options.reduceRight((function(e,t,n){return!e&&!t.disabled&&n<r?t:e}),i);break;case 1:i=this.options.reduce((function(e,t,n){return!e&&!t.disabled&&n>r?t:e}),i)}return this.options.indexOf(i)}},{key:"handleChange",value:function(e,t){"selected"===t&&(n.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions())}},{key:"handleTypeAhead",value:function(e){var t=this;this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((function(){return t.typeaheadExpired=!0}),n.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer="".concat(this.typeaheadExpired?"":this.typeaheadBuffer).concat(e))}},{key:"keydownHandler",value:function(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;var t=e.key;switch(t){case Tr:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case xr:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case Sr:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case Ar:e.preventDefault(),this.selectLastOption();break;case Dr:return this.focusAndScrollOptionIntoView(),!0;case Er:case jr:return!0;case Rr:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}},{key:"multipleChanged",value:function(e,t){this.ariaMultiSelectable=t?"true":null}},{key:"selectedIndexChanged",value:function(e,t){var n;if(this.hasSelectableOptions){if((null===(n=this.options[this.selectedIndex])||void 0===n?void 0:n.disabled)&&"number"==typeof e){var r=this.getSelectableIndex(e,t),i=r>-1?r:e;return this.selectedIndex=i,void(t===i&&this.selectedIndexChanged(t,i))}this.setSelectedOptions()}else this.selectedIndex=-1}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this,o=t.filter(n.slottedOptionFilter);null===(r=this.options)||void 0===r||r.forEach((function(e){var t=O.getNotifier(e);t.unsubscribe(i,"selected"),e.selected=o.includes(e),t.subscribe(i,"selected")}))}},{key:"selectFirstOption",value:function(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return!e.disabled})))&&void 0!==t?t:-1)}},{key:"selectLastOption",value:function(){this.disabled||(this.selectedIndex=function(e,t){for(var n=e.length;n--;)if(t(e[n]))return n;return-1}(this.options,(function(e){return!e.disabled})))}},{key:"selectNextOption",value:function(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}},{key:"selectPreviousOption",value:function(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}},{key:"setDefaultSelectedOption",value:function(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return e.defaultSelected})))&&void 0!==t?t:-1}},{key:"setSelectedOptions",value:function(){var e,t,n;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==n?n:"",this.focusAndScrollOptionIntoView())}},{key:"slottedOptionsChanged",value:function(e,t){this.options=t.reduce((function(e,t){return po(t)&&e.push(t),e}),[]);var n="".concat(this.options.length);this.options.forEach((function(e,t){e.id||(e.id=ho("option-")),e.ariaPosInSet="".concat(t+1),e.ariaSetSize=n})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.$fastController.isConnected){var n=this.getTypeaheadMatches();if(n.length){var r=this.options.indexOf(n[0]);r>-1&&(this.selectedIndex=r)}this.typeaheadExpired=!1}}}]),n}(qe);mo.slottedOptionFilter=function(e){return po(e)&&!e.hidden},mo.TYPE_AHEAD_TIMEOUT_MS=1e3,G([K({mode:"boolean"})],mo.prototype,"disabled",void 0),G([S],mo.prototype,"selectedIndex",void 0),G([S],mo.prototype,"selectedOptions",void 0),G([S],mo.prototype,"slottedOptions",void 0),G([S],mo.prototype,"typeaheadBuffer",void 0);var yo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[t,n].sort((function(e,t){return e-t})),i=(0,J.Z)(r,2);return t=i[0],n=i[1],t<=e&&e<n}G([S],yo.prototype,"ariaActiveDescendant",void 0),G([S],yo.prototype,"ariaDisabled",void 0),G([S],yo.prototype,"ariaExpanded",void 0),G([S],yo.prototype,"ariaMultiSelectable",void 0),kr(yo,dr),kr(mo,yo);var _o=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).activeIndex=-1,e.rangeStartIndex=-1,e}return(0,i.Z)(n,[{key:"activeOption",get:function(){return this.options[this.activeIndex]}},{key:"checkedOptions",get:function(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((function(e){return e.checked}))}},{key:"firstSelectedOptionIndex",get:function(){return this.options.indexOf(this.firstSelectedOption)}},{key:"activeIndexChanged",value:function(e,t){var n,r;this.ariaActiveDescendant=null!==(r=null===(n=this.options[t])||void 0===n?void 0:n.id)&&void 0!==r?r:"",this.focusAndScrollOptionIntoView()}},{key:"checkActiveIndex",value:function(){if(this.multiple){var e=this.activeOption;e&&(e.checked=!0)}}},{key:"checkFirstOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((function(t,n){t.checked=bo(n,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}},{key:"checkLastOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=bo(n,e.rangeStartIndex,e.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("focusout",this.focusoutHandler)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("focusout",this.focusoutHandler),R((0,A.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"checkNextOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=bo(n,e.rangeStartIndex,e.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}},{key:"checkPreviousOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((function(t,n){t.checked=bo(n,e.activeIndex,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}},{key:"clickHandler",value:function(e){var t;if(!this.multiple)return R((0,A.Z)(n.prototype),"clickHandler",this).call(this,e);var r=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return r&&!r.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}},{key:"focusAndScrollOptionIntoView",value:function(){R((0,A.Z)(n.prototype),"focusAndScrollOptionIntoView",this).call(this,this.activeOption)}},{key:"focusinHandler",value:function(e){if(!this.multiple)return R((0,A.Z)(n.prototype),"focusinHandler",this).call(this,e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"focusoutHandler",value:function(e){this.multiple&&this.uncheckAllOptions()}},{key:"keydownHandler",value:function(e){if(!this.multiple)return R((0,A.Z)(n.prototype),"keydownHandler",this).call(this,e);if(this.disabled)return!0;var t=e.key,r=e.shiftKey;switch(this.shouldSkipFocus=!1,t){case Tr:return void this.checkFirstOption(r);case xr:return void this.checkNextOption(r);case Sr:return void this.checkPreviousOption(r);case Ar:return void this.checkLastOption(r);case Dr:return this.focusAndScrollOptionIntoView(),!0;case jr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Rr:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return R((0,A.Z)(n.prototype),"mousedownHandler",this).call(this,e)}},{key:"multipleChanged",value:function(e,t){var n;this.ariaMultiSelectable=t?"true":null,null===(n=this.options)||void 0===n||n.forEach((function(e){e.checked=!t&&void 0})),this.setSelectedOptions()}},{key:"setSelectedOptions",value:function(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((function(e){return e.selected})),this.focusAndScrollOptionIntoView()):R((0,A.Z)(n.prototype),"setSelectedOptions",this).call(this)}},{key:"sizeChanged",value:function(e,t){var n,r=this,i=Math.max(0,parseInt(null!==(n=null==t?void 0:t.toFixed())&&void 0!==n?n:"",10));i!==t&&k.queueUpdate((function(){r.size=i}))}},{key:"toggleSelectedForAllCheckedOptions",value:function(){var e=this.checkedOptions.filter((function(e){return!e.disabled})),t=!e.every((function(e){return e.selected}));e.forEach((function(e){return e.selected=t})),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.multiple){if(this.$fastController.isConnected){var r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else R((0,A.Z)(n.prototype),"typeaheadBufferChanged",this).call(this,e,t)}},{key:"uncheckAllOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.options.forEach((function(t){return t.checked=!e.multiple&&void 0})),t||(this.rangeStartIndex=-1)}}]),n}(mo);G([S],_o.prototype,"activeIndex",void 0),G([K({mode:"boolean"})],_o.prototype,"multiple",void 0),G([K({converter:V})],_o.prototype,"size",void 0);var wo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(_o),ko=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("select"),e}return(0,i.Z)(n)}(Zr(wo)),xo="above",Co=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).open=!1,e.forcedPosition=!1,e.listboxId=ho("listbox-"),e.maxHeight=0,e}return(0,i.Z)(n,[{key:"openChanged",value:function(e,t){var n=this;if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void k.queueUpdate((function(){return n.focus()}));this.ariaControls="",this.ariaExpanded="false"}}},{key:"collapsible",get:function(){return!(this.multiple||"number"==typeof this.size)}},{key:"value",get:function(){return O.track(this,"value"),this._value},set:function(e){var t,r,i,o,a,s,u,l="".concat(this._value);if(null===(t=this._options)||void 0===t?void 0:t.length){var c=this._options.findIndex((function(t){return t.value===e})),d=null!==(i=null===(r=this._options[this.selectedIndex])||void 0===r?void 0:r.value)&&void 0!==i?i:null,f=null!==(a=null===(o=this._options[c])||void 0===o?void 0:o.value)&&void 0!==a?a:null;-1!==c&&d===f||(e="",this.selectedIndex=c),e=null!==(u=null===(s=this.firstSelectedOption)||void 0===s?void 0:s.value)&&void 0!==u?u:e}l!==e&&(this._value=e,R((0,A.Z)(n.prototype),"valueChanged",this).call(this,l,e),O.notify(this,"value"),this.updateDisplayValue())}},{key:"updateValue",value:function(e){var t,n;this.$fastController.isConnected&&(this.value=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==n?n:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}},{key:"selectedIndexChanged",value:function(e,t){R((0,A.Z)(n.prototype),"selectedIndexChanged",this).call(this,e,t),this.updateValue()}},{key:"positionChanged",value:function(e,t){this.positionAttribute=t,this.setPositioning()}},{key:"setPositioning",value:function(){var e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?xo:"below",this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===xo?~~e.top:~~t}},{key:"displayValue",get:function(){var e,t;return O.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}},{key:"disabledChanged",value:function(e,t){R((0,A.Z)(n.prototype),"disabledChanged",this)&&R((0,A.Z)(n.prototype),"disabledChanged",this).call(this,e,t),this.ariaDisabled=this.disabled?"true":"false"}},{key:"formResetCallback",value:function(){this.setProxyOptions(),R((0,A.Z)(n.prototype),"setDefaultSelectedOption",this).call(this),-1===this.selectedIndex&&(this.selectedIndex=0)}},{key:"clickHandler",value:function(e){if(!this.disabled){if(this.open){var t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return R((0,A.Z)(n.prototype),"clickHandler",this).call(this,e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}},{key:"focusoutHandler",value:function(e){var t;if(R((0,A.Z)(n.prototype),"focusoutHandler",this).call(this,e),!this.open)return!0;var r=e.relatedTarget;this.isSameNode(r)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(r))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}},{key:"handleChange",value:function(e,t){R((0,A.Z)(n.prototype),"handleChange",this).call(this,e,t),"value"===t&&this.updateValue()}},{key:"slottedOptionsChanged",value:function(e,t){var r=this;this.options.forEach((function(e){O.getNotifier(e).unsubscribe(r,"value")})),R((0,A.Z)(n.prototype),"slottedOptionsChanged",this).call(this,e,t),this.options.forEach((function(e){O.getNotifier(e).subscribe(r,"value")})),this.setProxyOptions(),this.updateValue()}},{key:"mousedownHandler",value:function(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?R((0,A.Z)(n.prototype),"mousedownHandler",this).call(this,e):this.collapsible}},{key:"multipleChanged",value:function(e,t){R((0,A.Z)(n.prototype),"multipleChanged",this).call(this,e,t),this.proxy&&(this.proxy.multiple=t)}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this;R((0,A.Z)(n.prototype),"selectedOptionsChanged",this).call(this,e,t),null===(r=this.options)||void 0===r||r.forEach((function(e,t){var n,r=null===(n=i.proxy)||void 0===n?void 0:n.options.item(t);r&&(r.selected=e.selected)}))}},{key:"setDefaultSelectedOption",value:function(){var e,t=this,n=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(mo.slottedOptionFilter),r=null==n?void 0:n.findIndex((function(e){return e.hasAttribute("selected")||e.selected||e.value===t.value}));this.selectedIndex=-1===r?0:r}},{key:"setProxyOptions",value:function(){var e=this;this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((function(t){var n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&e.proxy.options.add(n)})))}},{key:"keydownHandler",value:function(e){R((0,A.Z)(n.prototype),"keydownHandler",this).call(this,e);var t=e.key||e.key.charCodeAt(0);switch(t){case Rr:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Tr:case Ar:e.preventDefault();break;case Er:e.preventDefault(),this.open=!this.open;break;case jr:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case Dr:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===xr||t===Sr)}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("contentchange",this.updateDisplayValue),R((0,A.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"sizeChanged",value:function(e,t){R((0,A.Z)(n.prototype),"sizeChanged",this).call(this,e,t),this.proxy&&(this.proxy.size=t)}},{key:"updateDisplayValue",value:function(){this.collapsible&&O.notify(this,"displayValue")}}]),n}(ko);G([K({attribute:"open",mode:"boolean"})],Co.prototype,"open",void 0),G([function(e,t,n){return Object.assign({},n,{get:function(){return O.trackVolatile(),n.get.apply(this)}})}],Co.prototype,"collapsible",null),G([S],Co.prototype,"control",void 0),G([K({attribute:"position"})],Co.prototype,"positionAttribute",void 0),G([S],Co.prototype,"position",void 0),G([S],Co.prototype,"maxHeight",void 0);var Oo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([S],Oo.prototype,"ariaControls",void 0),kr(Oo,yo),kr(Co,br,Oo);var So,Eo,jo=function(e){return"function"==typeof e},To=function(){return null};function Ao(e){return void 0===e?To:jo(e)?e:function(){return e}}function Ro(e,t,n){var r=jo(e)?e:function(){return e},i=Ao(t),o=Ao(n);return function(e,t){return r(e,t)?i(e,t):o(e,t)}}var Do,Io=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Co),Po=Io.compose({baseName:"dropdown",template:function(e,t){return Rt(So||(So=(0,it.Z)(['\n <template\n class="','"\n aria-activedescendant="','"\n aria-controls="','"\n aria-disabled="','"\n aria-expanded="','"\n aria-haspopup="','"\n aria-multiselectable="','"\n ?open="','"\n role="combobox"\n tabindex="','"\n @click="','"\n @focusin="','"\n @focusout="','"\n @keydown="','"\n @mousedown="','"\n >\n ','\n <div\n class="listbox"\n id="','"\n part="listbox"\n role="listbox"\n ?disabled="','"\n ?hidden="','"\n ',"\n >\n <slot\n ","\n ></slot>\n </div>\n </template>\n"])),(function(e){return[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}),(function(e){return e.ariaActiveDescendant}),(function(e){return e.ariaControls}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaExpanded}),(function(e){return e.collapsible?"listbox":null}),(function(e){return e.ariaMultiSelectable}),(function(e){return e.open}),(function(e){return e.disabled?null:"0"}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.focusinHandler(t.event)}),(function(e,t){return e.focusoutHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.mousedownHandler(t.event)}),Ro((function(e){return e.collapsible}),Rt(Eo||(Eo=(0,it.Z)(['\n <div\n class="control"\n part="control"\n ?disabled="','"\n ',"\n >\n ",'\n <slot name="button-container">\n <div class="selected-value" part="selected-value">\n <slot name="selected-value">','</slot>\n </div>\n <div aria-hidden="true" class="indicator" part="indicator">\n <slot name="indicator">\n ',"\n </slot>\n </div>\n </slot>\n ","\n </div>\n "])),(function(e){return e.disabled}),mr("control"),wr(0,t),(function(e){return e.displayValue}),t.indicator||"",_r(0,t))),(function(e){return e.listboxId}),(function(e){return e.disabled}),(function(e){return!!e.collapsible&&!e.open}),mr("listbox"),Wr({filter:mo.slottedOptionFilter,flatten:!0,property:"slottedOptions"}))},styles:function(e,t){return Pt(Do||(Do=(0,it.Z)(["\n\t"," :host {\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcontain: contents;\n\t\tfont-family: ",";\n\t\theight: calc("," * 1px);\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tmin-width: ",";\n\t\toutline: none;\n\t\tvertical-align: top;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbox-sizing: border-box;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tfont-family: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmin-height: 100%;\n\t\tpadding: 2px 6px 2px 8px;\n\t\twidth: 100%;\n\t}\n\t.listbox {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\t\tleft: 0;\n\t\tmax-height: ",";\n\t\tpadding: 0 0 calc("," * 1px) 0;\n\t\toverflow-y: auto;\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\tz-index: 1;\n\t}\n\t.listbox[hidden] {\n\t\tdisplay: none;\n\t}\n\t:host(:",") .control {\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled]):hover) {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",') ::slotted([aria-selected="true"][role="option"]:not([disabled])) {\n\t\tbackground: ',";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t\tuser-select: none;\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tborder-color: ",";\n\t}\n\t:host(:empty) .listbox {\n\t\tdisplay: none;\n\t}\n\t:host([open]) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([open][position='above']) .listbox,\n\t:host([open][position='below']) .control {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\t}\n\t:host([open][position='above']) .control,\n\t:host([open][position='below']) .listbox {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\t:host([open][position='above']) .listbox {\n\t\tbottom: calc("," * 1px);\n\t}\n\t:host([open][position='below']) .listbox {\n\t\ttop: calc("," * 1px);\n\t}\n\t.selected-value {\n\t\tflex: 1 1 auto;\n\t\tfont-family: inherit;\n\t\toverflow: hidden;\n\t\ttext-align: start;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\t.indicator {\n\t\tflex: 0 0 auto;\n\t\tmargin-inline-start: 1em;\n\t}\n\tslot[name='listbox'] {\n\t\tdisplay: none;\n\t\twidth: 100%;\n\t}\n\t:host([open]) slot[name='listbox'] {\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t}\n\t.end {\n\t\tmargin-inline-start: auto;\n\t}\n\t.start,\n\t.end,\n\t.indicator,\n\t.select-indicator,\n\t::slotted(svg),\n\t::slotted(span) {\n\t\tfill: currentcolor;\n\t\theight: 1em;\n\t\tmin-height: calc("," * 4px);\n\t\tmin-width: calc("," * 4px);\n\t\twidth: 1em;\n\t}\n\t::slotted([role='option']),\n\t::slotted(option) {\n\t\tflex: 0 0 auto;\n\t}\n"])),Nt("inline-flex"),Jn,gn,vn,mn,yn,ln,Qn,dn,bn,_n,Jn,ln,pn,dn,Xn,fn,ti,pn,Jn,Qn,ti,$n,ln,pn,Yn,ni,hn,ni,Jn,gn,pn,pn,mn,mn,fn,fn)},indicator:'\n\t\t<svg \n\t\t\tclass="select-indicator"\n\t\t\tpart="select-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"\n\t\t\t/>\n\t\t</svg>\n\t'}),No=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){var t;null===(t=e.control)||void 0===t||t.focus()})},e}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.handleUnsupportedDelegatesFocus()}}]),n}(qe);G([K],No.prototype,"download",void 0),G([K],No.prototype,"href",void 0),G([K],No.prototype,"hreflang",void 0),G([K],No.prototype,"ping",void 0),G([K],No.prototype,"referrerpolicy",void 0),G([K],No.prototype,"rel",void 0),G([K],No.prototype,"target",void 0),G([K],No.prototype,"type",void 0),G([S],No.prototype,"defaultSlottedContent",void 0);var Mo,Lo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([K({attribute:"aria-expanded"})],Lo.prototype,"ariaExpanded",void 0),kr(Lo,dr),kr(No,br,Lo);var Zo,zo,Fo,Bo,Ho,Vo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(No),Uo=Vo.compose({baseName:"link",template:function(e,t){return Rt(Mo||(Mo=(0,it.Z)(['\n <a\n class="control"\n part="control"\n download="','"\n href="','"\n hreflang="','"\n ping="','"\n referrerpolicy="','"\n rel="','"\n target="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </a>\n"])),(function(e){return e.download}),(function(e){return e.href}),(function(e){return e.hreflang}),(function(e){return e.ping}),(function(e){return e.referrerpolicy}),(function(e){return e.rel}),(function(e){return e.target}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),mr("control"),wr(0,t),Wr("defaultSlottedContent"),_r(0,t))},styles:function(e,t){return Pt(Zo||(Zo=(0,it.Z)(["\n\t"," :host {\n\t\tbackground: transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\toutline: none;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\t\tfill: inherit;\n\t\tfont-family: inherit;\n\t\theight: inherit;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tword-break: break-word;\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t}\n\t:host(:hover) .content {\n\t\ttext-decoration: underline;\n\t}\n\t:host(:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t}\n\t:host(:",") .control,\n\t:host(:focus) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n"])),Nt("inline-flex"),rr,vn,bn,_n,ln,dn,nr,nr,ti,ln,pn)},shadowOptions:{delegatesFocus:!0}}),Ko=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}]),n}(vo),qo=Ko.compose({baseName:"option",template:function(e,t){return Rt(zo||(zo=(0,it.Z)(['\n <template\n aria-checked="','"\n aria-disabled="','"\n aria-posinset="','"\n aria-selected="','"\n aria-setsize="','"\n class="','"\n role="option"\n >\n ','\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </template>\n"])),(function(e){return e.ariaChecked}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaPosInSet}),(function(e){return e.ariaSelected}),(function(e){return e.ariaSetSize}),(function(e){return[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")}),wr(0,t),Wr("content"),_r(0,t))},styles:function(e,t){return Pt(Fo||(Fo=(0,it.Z)(["\n\t"," :host {\n\t\tfont-family: var(--body-font);\n\t\tborder-radius: ",";\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: 0;\n\t\toutline: none;\n\t\toverflow: hidden;\n\t\tpadding: 0 calc(("," / 2) * 1px)\n\t\t\tcalc(("," / 4) * 1px);\n\t\tuser-select: none;\n\t\twhite-space: nowrap;\n\t}\n\t:host(:",") {\n\t\tborder-color: ",";\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):hover) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground-color: inherit;\n\t}\n\t.content {\n\t\tgrid-column-start: 2;\n\t\tjustify-self: start;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n"])),Nt("inline-flex"),dn,ln,gn,bn,_n,fn,fn,ti,pn,$n,gn,$n,ln,pn,Yn,$n,Yn,$n,ln,pn,Yn,$n,gn,ni,hn)}}),$o="horizontal",Yo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=$o,e.activeindicator=!0,e.showActiveIndicator=!0,e.prevActiveTabIndex=0,e.activeTabIndex=0,e.ticking=!1,e.change=function(){e.$emit("change",e.activetab)},e.isDisabledElement=function(e){return"true"===e.getAttribute("aria-disabled")},e.isFocusableElement=function(t){return!e.isDisabledElement(t)},e.setTabs=function(){var t="gridColumn",n="gridRow",r=e.isHorizontal()?t:n;e.activeTabIndex=e.getActiveIndex(),e.showActiveIndicator=!1,e.tabs.forEach((function(i,o){if("tab"===i.slot){var a=e.activeTabIndex===o&&e.isFocusableElement(i);e.activeindicator&&e.isFocusableElement(i)&&(e.showActiveIndicator=!0);var s=e.tabIds[o],u=e.tabpanelIds[o];i.setAttribute("id",s),i.setAttribute("aria-selected",a?"true":"false"),i.setAttribute("aria-controls",u),i.addEventListener("click",e.handleTabClick),i.addEventListener("keydown",e.handleTabKeyDown),i.setAttribute("tabindex",a?"0":"-1"),a&&(e.activetab=i)}i.style[t]="",i.style[n]="",i.style[r]="".concat(o+1),e.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}))},e.setTabPanels=function(){e.tabpanels.forEach((function(t,n){var r=e.tabIds[n],i=e.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),e.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},e.handleTabClick=function(t){var n=t.currentTarget;1===n.nodeType&&e.isFocusableElement(n)&&(e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=e.tabs.indexOf(n),e.setComponent())},e.handleTabKeyDown=function(t){if(e.isHorizontal())switch(t.key){case Cr:t.preventDefault(),e.adjustBackward(t);break;case Or:t.preventDefault(),e.adjustForward(t)}else switch(t.key){case Sr:t.preventDefault(),e.adjustBackward(t);break;case xr:t.preventDefault(),e.adjustForward(t)}switch(t.key){case Tr:t.preventDefault(),e.adjust(-e.activeTabIndex);break;case Ar:t.preventDefault(),e.adjust(e.tabs.length-e.activeTabIndex-1)}},e.adjustForward=function(t){var n=e.tabs,r=0;for((r=e.activetab?n.indexOf(e.activetab)+1:1)===n.length&&(r=0);r<n.length&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}if(e.activetab&&r===n.indexOf(e.activetab))break;r+1>=n.length?r=0:r+=1}},e.adjustBackward=function(t){var n=e.tabs,r=0;for(r=(r=e.activetab?n.indexOf(e.activetab)-1:0)<0?n.length-1:r;r>=0&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}r-1<0?r=n.length-1:r-=1}},e.moveToTabByIndex=function(t,n){var r=t[n];e.activetab=r,e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=n,r.focus(),e.setComponent()},e}return(0,i.Z)(n,[{key:"orientationChanged",value:function(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"activeidChanged",value:function(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((function(t){return t.id===e})),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabsChanged",value:function(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabpanelsChanged",value:function(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"getActiveIndex",value:function(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}},{key:"getTabIds",value:function(){return this.tabs.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"tab-".concat(ho())}))}},{key:"getTabPanelIds",value:function(){return this.tabpanels.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"panel-".concat(ho())}))}},{key:"setComponent",value:function(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}},{key:"isHorizontal",value:function(){return this.orientation===$o}},{key:"handleActiveIndicatorPosition",value:function(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}},{key:"animateActiveIndicator",value:function(){var e=this;this.ticking=!0;var t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.activeTabIndex+1);var o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.prevActiveTabIndex+1);var a=o-i;this.activeIndicatorRef.style.transform="".concat(n,"(").concat(a,"px)"),this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(function(){e.ticking=!1,e.activeIndicatorRef.style[t]="".concat(e.activeTabIndex+1),e.activeIndicatorRef.style.transform="".concat(n,"(0px)"),e.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}},{key:"adjust",value:function(e){var t,n;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(t=this.tabs.length-1,(n=this.activeTabIndex+e)<0?t:n>t?0:n),this.setComponent()}},{key:"focusTab",value:function(){this.tabs[this.activeTabIndex].focus()}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}]),n}(qe);G([K],Yo.prototype,"orientation",void 0),G([K],Yo.prototype,"activeid",void 0),G([S],Yo.prototype,"tabs",void 0),G([S],Yo.prototype,"tabpanels",void 0),G([K({mode:"boolean"})],Yo.prototype,"activeindicator",void 0),G([S],Yo.prototype,"activeIndicatorRef",void 0),G([S],Yo.prototype,"showActiveIndicator",void 0),kr(Yo,br);var Wo,Go=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe);G([K({mode:"boolean"})],Go.prototype,"disabled",void 0);var Jo,Qo,Xo,ea,ta,na,ra,ia=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),oa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.orientation&&(this.orientation=$o),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}]),n}(Yo),aa=oa.compose({baseName:"panels",template:function(e,t){return Rt(Bo||(Bo=(0,it.Z)(['\n <template class="','">\n ','\n <div class="tablist" part="tablist" role="tablist">\n <slot class="tab" name="tab" part="tab" ',"></slot>\n\n ","\n </div>\n ",'\n <div class="tabpanel" part="tabpanel">\n <slot name="tabpanel" ',"></slot>\n </div>\n </template>\n"])),(function(e){return e.orientation}),wr(0,t),Wr("tabs"),Ro((function(e){return e.showActiveIndicator}),Rt(Ho||(Ho=(0,it.Z)(["\n <div\n ",'\n class="activeIndicator"\n part="activeIndicator"\n ></div>\n '])),mr("activeIndicatorRef"))),_r(0,t),Wr("tabpanels"))},styles:function(e,t){return Pt(Qo||(Qo=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tgrid-template-columns: auto 1fr auto;\n\t\tgrid-template-rows: auto 1fr;\n\t\toverflow-x: auto;\n\t}\n\t.tablist {\n\t\tdisplay: grid;\n\t\tgrid-template-rows: auto auto;\n\t\tgrid-template-columns: auto;\n\t\tcolumn-gap: calc("," * 8px);\n\t\tposition: relative;\n\t\twidth: max-content;\n\t\talign-self: end;\n\t\tpadding: calc("," * 1px) calc("," * 1px) 0;\n\t\tbox-sizing: border-box;\n\t}\n\t.start,\n\t.end {\n\t\talign-self: center;\n\t}\n\t.activeIndicator {\n\t\tgrid-row: 2;\n\t\tgrid-column: 1;\n\t\twidth: 100%;\n\t\theight: calc(("," / 4) * 1px);\n\t\tjustify-self: center;\n\t\tbackground: ",";\n\t\tmargin: 0;\n\t\tborder-radius: calc("," * 1px);\n\t}\n\t.activeIndicatorTransition {\n\t\ttransition: transform 0.01s linear;\n\t}\n\t.tabpanel {\n\t\tgrid-row: 2;\n\t\tgrid-column-start: 1;\n\t\tgrid-column-end: 4;\n\t\tposition: relative;\n\t}\n"])),Nt("grid"),vn,bn,_n,gn,fn,fn,fn,fn,ar,dn)}}),sa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}]),n}(Go),ua=sa.compose({baseName:"panel-tab",template:function(e,t){return Rt(Wo||(Wo=(0,it.Z)(['\n <template slot="tab" role="tab" aria-disabled="','">\n <slot></slot>\n </template>\n'])),(function(e){return e.disabled}))},styles:function(e,t){return Pt(Xo||(Xo=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\theight: calc("," * 7px);\n\t\tpadding: calc("," * 1px) 0;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: solid calc("," * 1px) transparent;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tgrid-row: 1;\n\t\tcursor: pointer;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:active) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:hover) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:",") {\n\t\toutline: none;\n\t\tborder: solid calc("," * 1px) ",";\n\t}\n\t:host(:focus) {\n\t\toutline: none;\n\t}\n\t::slotted(vscode-badge) {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n"])),Nt("inline-flex"),vn,bn,_n,fn,fn,sr,dn,ln,ar,ar,ar,ar,ar,ti,ln,or,fn)}}),la=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(ia),ca=la.compose({baseName:"panel-view",template:function(e,t){return Rt(Jo||(Jo=(0,it.Z)(['\n <template slot="tabpanel" role="tabpanel">\n <slot></slot>\n </template>\n'])))},styles:function(e,t){return Pt(ea||(ea=(0,it.Z)(["\n\t"," :host {\n\t\tcolor: inherit;\n\t\tbackground-color: transparent;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tbox-sizing: border-box;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: 10px calc(("," + 2) * 1px);\n\t}\n"])),Nt("flex"),ln,bn,_n,fn)}}),da=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).percentComplete=0,e}return(0,i.Z)(n,[{key:"valueChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"minChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"maxChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.updatePercentComplete()}},{key:"updatePercentComplete",value:function(){var e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,n="number"==typeof this.value?this.value:0,r=t-e;this.percentComplete=0===r?0:Math.fround((n-e)/r*100)}}]),n}(qe);G([K({converter:V})],da.prototype,"value",void 0),G([K({converter:V})],da.prototype,"min",void 0),G([K({converter:V})],da.prototype,"max",void 0),G([K({mode:"boolean"})],da.prototype,"paused",void 0),G([S],da.prototype,"percentComplete",void 0);var fa,ha,pa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}},{key:"attributeChangedCallback",value:function(e,t,n){"value"===e&&this.removeAttribute("value")}}]),n}(da),va=pa.compose({baseName:"progress-ring",template:function(e,t){return Rt(ta||(ta=(0,it.Z)(['\n <template\n role="progressbar"\n aria-valuenow="','"\n aria-valuemin="','"\n aria-valuemax="','"\n class="','"\n >\n ',"\n </template>\n"])),(function(e){return e.value}),(function(e){return e.min}),(function(e){return e.max}),(function(e){return e.paused?"paused":""}),Ro((function(e){return"number"==typeof e.value}),Rt(na||(na=(0,it.Z)(['\n <svg\n class="progress"\n part="progress"\n viewBox="0 0 16 16"\n slot="determinate"\n >\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="determinate"\n part="determinate"\n style="stroke-dasharray: ',"px ",'px"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '])),(function(e){return 44*e.percentComplete/100}),44),Rt(ra||(ra=(0,it.Z)(['\n <slot name="indeterminate" slot="indeterminate">\n ',"\n </slot>\n "])),t.indeterminateIndicator||"")))},styles:function(e,t){return Pt(fa||(fa=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\theight: calc("," * 7px);\n\t\twidth: calc("," * 7px);\n\t\tmargin: 0;\n\t}\n\t.progress {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.background {\n\t\tfill: none;\n\t\tstroke: transparent;\n\t\tstroke-width: calc("," / 2 * 1px);\n\t}\n\t.indeterminate-indicator-1 {\n\t\tfill: none;\n\t\tstroke: ",";\n\t\tstroke-width: calc("," / 2 * 1px);\n\t\tstroke-linecap: square;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: all 0.2s ease-in-out;\n\t\tanimation: spin-infinite 2s linear infinite;\n\t}\n\t@keyframes spin-infinite {\n\t\t0% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\t50% {\n\t\t\tstroke-dasharray: 21.99px 21.99px;\n\t\t\ttransform: rotate(450deg);\n\t\t}\n\t\t100% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(1080deg);\n\t\t}\n\t}\n"])),Nt("flex"),fn,fn,fn,ir,fn)},indeterminateIndicator:'\n\t\t<svg class="progress" part="progress" viewBox="0 0 16 16">\n\t\t\t<circle\n\t\t\t\tclass="background"\n\t\t\t\tpart="background"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t\t<circle\n\t\t\t\tclass="indeterminate-indicator-1"\n\t\t\t\tpart="indeterminate-indicator-1"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t</svg>\n\t'}),ga=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),ma=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(ga)),ya=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.keypressHandler=function(t){if(t.key!==Rr)return!0;e.checked||e.readOnly||(e.checked=!0)},e.proxy.setAttribute("type","radio"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}},{key:"defaultCheckedChanged",value:function(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}},{key:"connectedCallback",value:function(){var e,t;R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}},{key:"isInsideRadioGroup",value:function(){return null!==this.closest("[role=radiogroup]")}},{key:"clickHandler",value:function(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}]),n}(ma);G([K({attribute:"readonly",mode:"boolean"})],ya.prototype,"readOnly",void 0),G([S],ya.prototype,"name",void 0),G([S],ya.prototype,"defaultSlottedNodes",void 0);var ba,_a,wa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}]),n}(ya),ka=wa.compose({baseName:"radio",template:function(e,t){return Rt(ha||(ha=(0,it.Z)(['\n <template\n role="radio"\n class="'," ",'"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n @keypress="','"\n @click="','"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked?"checked":""}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),t.checkedIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr("defaultSlottedNodes"))},styles:function(e,t){return Pt(ba||(ba=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\tflex-direction: row;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t\toutline: none;\n\t\tposition: relative;\n\t\ttransition: all 0.2s ease-in-out;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbox-sizing: border-box;\n\t\tcursor: pointer;\n\t\theight: calc("," * 4px);\n\t\tposition: relative;\n\t\toutline: none;\n\t\twidth: calc("," * 4px);\n\t}\n\t.label {\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-family: ",";\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.control,\n\t.checked-indicator {\n\t\tflex-shrink: 0;\n\t}\n\t.checked-indicator {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tdisplay: inline-block;\n\t\tinset: calc("," * 1px);\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t}\n\t:host(:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']) .control {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",';\n\t}\n\t:host([aria-checked="true"]:',":not([disabled])) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([aria-checked='true']) .checked-indicator {\n\t\topacity: 1;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n"])),Nt("inline-flex"),bn,_n,fn,Un,ln,Kn,fn,fn,gn,vn,fn,fn,gn,fn,Un,Kn,Un,pn,ti,ln,pn,Un,ln,Kn,Un,ln,Kn,Un,ln,pn,ti,ln,pn,ni,hn)},checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});!function(e){e.ltr="ltr",e.rtl="rtl"}(_a||(_a={}));var xa,Ca=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=ao,e.radioChangeHandler=function(t){var n=t.target;n.checked&&(e.slottedRadioButtons.forEach((function(t){t!==n&&(t.checked=!1,e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))})),e.selectedRadio=n,e.value=n.value,n.setAttribute("tabindex","0"),e.focusedRadio=n),t.stopPropagation()},e.moveToRadioByIndex=function(t,n){var r=t[n];e.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?e.slottedRadioButtons.forEach((function(e){e!==r&&e.setAttribute("tabindex","-1")})):(r.checked=!0,e.selectedRadio=r)),e.focusedRadio=r,r.focus()},e.moveRightOffGroup=function(){var t;null===(t=e.nextElementSibling)||void 0===t||t.focus()},e.moveLeftOffGroup=function(){var t;null===(t=e.previousElementSibling)||void 0===t||t.focus()},e.focusOutHandler=function(t){var n=e.slottedRadioButtons,r=t.target,i=null!==r?n.indexOf(r):0,o=e.focusedRadio?n.indexOf(e.focusedRadio):-1;return(0===o&&i===o||o===n.length-1&&o===i)&&(e.selectedRadio?(e.focusedRadio=e.selectedRadio,e.isInsideFoundationToolbar||(e.selectedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.selectedRadio&&t.setAttribute("tabindex","-1")})))):(e.focusedRadio=n[0],e.focusedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.focusedRadio&&t.setAttribute("tabindex","-1")})))),!0},e.clickHandler=function(t){var n=t.target;if(n){var r=e.slottedRadioButtons;n.checked||0===r.indexOf(n)?(n.setAttribute("tabindex","0"),e.selectedRadio=n):(n.setAttribute("tabindex","-1"),e.selectedRadio=null),e.focusedRadio=n}t.preventDefault()},e.shouldMoveOffGroupToTheRight=function(t,n,r){return t===n.length&&e.isInsideToolbar&&r===Or},e.shouldMoveOffGroupToTheLeft=function(t,n){return(e.focusedRadio?t.indexOf(e.focusedRadio)-1:0)<0&&e.isInsideToolbar&&n===Cr},e.checkFocusedRadio=function(){null===e.focusedRadio||e.focusedRadio.readOnly||e.focusedRadio.checked||(e.focusedRadio.checked=!0,e.focusedRadio.setAttribute("tabindex","0"),e.focusedRadio.focus(),e.selectedRadio=e.focusedRadio)},e.moveRight=function(t){var n=e.slottedRadioButtons,r=0;if(r=e.focusedRadio?n.indexOf(e.focusedRadio)+1:1,e.shouldMoveOffGroupToTheRight(r,n,t.key))e.moveRightOffGroup();else for(r===n.length&&(r=0);r<n.length&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;if(r+1>=n.length){if(e.isInsideToolbar)break;r=0}else r+=1}},e.moveLeft=function(t){var n=e.slottedRadioButtons,r=0;if(r=(r=e.focusedRadio?n.indexOf(e.focusedRadio)-1:0)<0?n.length-1:r,e.shouldMoveOffGroupToTheLeft(n,t.key))e.moveLeftOffGroup();else for(;r>=0&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;r-1<0?r=n.length-1:r-=1}},e.keydownHandler=function(t){var n=t.key;if(n in Ir&&e.isInsideFoundationToolbar)return!0;switch(n){case Er:e.checkFocusedRadio();break;case Or:case xr:e.direction===_a.ltr?e.moveRight(t):e.moveLeft(t);break;case Cr:case Sr:e.direction===_a.ltr?e.moveLeft(t):e.moveRight(t);break;default:return!0}},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.readOnly?t.readOnly=!0:t.readOnly=!1}))}},{key:"disabledChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.disabled?t.disabled=!0:t.disabled=!1}))}},{key:"nameChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.setAttribute("name",e.name)}))}},{key:"valueChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.value===e.value&&(t.checked=!0,e.selectedRadio=t)})),this.$emit("change")}},{key:"slottedRadioButtonsChanged",value:function(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}},{key:"parentToolbar",get:function(){return this.closest('[role="toolbar"]')}},{key:"isInsideToolbar",get:function(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}},{key:"isInsideFoundationToolbar",get:function(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}},{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.direction=function(e){var t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?_a.rtl:_a.ltr}(this),this.setupRadioButtons()}},{key:"disconnectedCallback",value:function(){var e=this;this.slottedRadioButtons.forEach((function(t){t.removeEventListener("change",e.radioChangeHandler)}))}},{key:"setupRadioButtons",value:function(){var e=this,t=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),n=t?t.length:0;n>1&&(t[n-1].checked=!0);var r=!1;if(this.slottedRadioButtons.forEach((function(t){void 0!==e.name&&t.setAttribute("name",e.name),e.disabled&&(t.disabled=!0),e.readOnly&&(t.readOnly=!0),e.value&&e.value===t.value?(e.selectedRadio=t,e.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),r=!0):(e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",e.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){var i=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),o=null!==i?i.length:0;if(o>0&&!r){var a=i[o-1];a.checked=!0,this.focusedRadio=a,a.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}]),n}(qe);G([K({attribute:"readonly",mode:"boolean"})],Ca.prototype,"readOnly",void 0),G([K({attribute:"disabled",mode:"boolean"})],Ca.prototype,"disabled",void 0),G([K],Ca.prototype,"name",void 0),G([K],Ca.prototype,"value",void 0),G([K],Ca.prototype,"orientation",void 0),G([S],Ca.prototype,"childItems",void 0),G([S],Ca.prototype,"slottedRadioButtons",void 0);var Oa,Sa,Ea=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector("label");if(e){var t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}]),n}(Ca),ja=Ea.compose({baseName:"radio-group",template:function(e,t){return Rt(xa||(xa=(0,it.Z)(['\n <template\n role="radiogroup"\n aria-disabled="','"\n aria-readonly="','"\n @click="','"\n @keydown="','"\n @focusout="','"\n >\n <slot name="label"></slot>\n <div\n class="positioning-region ','"\n part="positioning-region"\n >\n <slot\n ',"\n ></slot>\n </div>\n </template>\n"])),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.focusOutHandler(t.event)}),(function(e){return e.orientation===ao?"horizontal":"vertical"}),Wr({property:"slottedRadioButtons",filter:Ur("[role=radio]")}))},styles:function(e,t){return Pt(Oa||(Oa=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: flex-start;\n\t\tmargin: calc("," * 1px) 0;\n\t\tflex-direction: column;\n\t}\n\t.positioning-region {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\t:host([orientation='vertical']) .positioning-region {\n\t\tflex-direction: column;\n\t}\n\t:host([orientation='horizontal']) .positioning-region {\n\t\tflex-direction: row;\n\t}\n\t::slotted([slot='label']) {\n\t\tcolor: ",";\n\t\tfont-size: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t}\n"])),Nt("flex"),fn,gn,bn,fn)}}),Ta=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.circular&&(this.circular=!1)}}]),n}(rt),Aa=Ta.compose({baseName:"tag",template:Dt,styles:function(e,t){return Pt(Sa||(Sa=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t\tpadding: calc("," * 0.5px) calc("," * 1px);\n\t\ttext-transform: uppercase;\n\t}\n"])),Nt("inline-block"),vn,wn,kn,jn,ln,An,ur,Tn,fn,fn)}}),Ra=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),Da=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Zr(Ra)),Ia=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).type="text",e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}},{key:"placeholderChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}},{key:"typeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}},{key:"listChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}},{key:"patternChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}},{key:"sizeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"connectedCallback",value:function(){var e=this;R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&k.queueUpdate((function(){e.focus()}))}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleTextInput",value:function(){this.value=this.control.value}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){R((0,A.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(Da);G([K({attribute:"readonly",mode:"boolean"})],Ia.prototype,"readOnly",void 0),G([K({mode:"boolean"})],Ia.prototype,"autofocus",void 0),G([K],Ia.prototype,"placeholder",void 0),G([K],Ia.prototype,"type",void 0),G([K],Ia.prototype,"list",void 0),G([K({converter:V})],Ia.prototype,"maxlength",void 0),G([K({converter:V})],Ia.prototype,"minlength",void 0),G([K],Ia.prototype,"pattern",void 0),G([K({converter:V})],Ia.prototype,"size",void 0),G([K({mode:"boolean"})],Ia.prototype,"spellcheck",void 0),G([S],Ia.prototype,"defaultSlottedNodes",void 0);var Pa=(0,i.Z)((function e(){(0,r.Z)(this,e)}));kr(Pa,dr),kr(Ia,br,Pa);var Na,Ma=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),La=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("textarea"),e}return(0,i.Z)(n)}(Zr(Ma)),Za="none",za=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).resize=Za,e.cols=20,e.handleTextInput=function(){e.value=e.control.value},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}},{key:"listChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){R((0,A.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(La);G([K({mode:"boolean"})],za.prototype,"readOnly",void 0),G([K],za.prototype,"resize",void 0),G([K({mode:"boolean"})],za.prototype,"autofocus",void 0),G([K({attribute:"form"})],za.prototype,"formId",void 0),G([K],za.prototype,"list",void 0),G([K({converter:V})],za.prototype,"maxlength",void 0),G([K({converter:V})],za.prototype,"minlength",void 0),G([K],za.prototype,"name",void 0),G([K],za.prototype,"placeholder",void 0),G([K({converter:V,mode:"fromView"})],za.prototype,"cols",void 0),G([K({converter:V,mode:"fromView"})],za.prototype,"rows",void 0),G([K({mode:"boolean"})],za.prototype,"spellcheck",void 0),G([S],za.prototype,"defaultSlottedNodes",void 0),kr(za,Pa);var Fa,Ba,Ha=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}]),n}(za),Va=Ha.compose({baseName:"text-area",template:function(e,t){return Rt(Na||(Na=(0,it.Z)(['\n <template\n class="\n ',"\n ",'"\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot ','></slot>\n </label>\n <textarea\n part="control"\n class="control"\n id="control"\n ?autofocus="','"\n cols="','"\n ?disabled="','"\n form="','"\n list="','"\n maxlength="','"\n minlength="','"\n name="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n rows="','"\n ?spellcheck="','"\n :value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n @input="','"\n @change="','"\n ',"\n ></textarea>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.resize!==Za?"resize-".concat(e.resize):""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr("defaultSlottedNodes"),(function(e){return e.autofocus}),(function(e){return e.cols}),(function(e){return e.disabled}),(function(e){return e.form}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.name}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.rows}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),(function(e,t){return e.handleTextInput()}),(function(e){return e.handleChange()}),mr("control"))},styles:function(e,t){return Pt(Fa||(Fa=(0,it.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tfont: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: calc("," * 2px + 1px);\n\t\twidth: 100%;\n\t\tmin-width: ",";\n\t\tresize: none;\n\t}\n\t.control:hover:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:active:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.control::-webkit-scrollbar {\n\t\twidth: ",";\n\t\theight: ",";\n\t}\n\t.control::-webkit-scrollbar-corner {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:hover {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:active {\n\t\tbackground: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([resize='both']) .control {\n\t\tresize: both;\n\t}\n\t:host([resize='horizontal']) .control {\n\t\tresize: horizontal;\n\t}\n\t:host([resize='vertical']) .control {\n\t\tresize: vertical;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Nt("inline-block"),vn,tr,er,dn,ln,Qn,bn,_n,fn,yn,er,Qn,er,pn,ti,xn,Cn,er,On,Sn,En,pn,gn,bn,_n,ni,hn,Qn)},shadowOptions:{delegatesFocus:!0}});function Ua(e,t,n){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}var Ka,qa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){R((0,A.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}]),n}(Ia),$a=qa.compose({baseName:"text-field",template:function(e,t){return Rt(Ba||(Ba=(0,it.Z)(['\n <template\n class="\n ','\n "\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot\n ','\n ></slot>\n </label>\n <div class="root" part="root">\n ','\n <input\n class="control"\n part="control"\n id="control"\n @input="','"\n @change="','"\n ?autofocus="','"\n ?disabled="','"\n list="','"\n maxlength="','"\n minlength="','"\n pattern="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n size="','"\n ?spellcheck="','"\n :value="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n />\n ","\n </div>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr({property:"defaultSlottedNodes",filter:Ua}),wr(0,t),(function(e){return e.handleTextInput()}),(function(e){return e.handleChange()}),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.pattern}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.size}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),mr("control"),_r(0,t))},styles:function(e,t){return Pt(Ka||(Ka=(0,it.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.root {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\theight: calc("," * 1px);\n\t\tmin-width: ",";\n\t}\n\t.control {\n\t\t-webkit-appearance: none;\n\t\tfont: inherit;\n\t\tbackground: transparent;\n\t\tborder: 0;\n\t\tcolor: inherit;\n\t\theight: calc(100% - ("," * 1px));\n\t\twidth: 100%;\n\t\tmargin-top: auto;\n\t\tmargin-bottom: auto;\n\t\tborder: none;\n\t\tpadding: 0 calc("," * 2px + 1px);\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.start,\n\t.end {\n\t\tdisplay: flex;\n\t\tmargin: auto;\n\t\tfill: currentcolor;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n\t.end {\n\t\tmargin-inline-end: calc("," * 2px);\n\t}\n\t:host(:hover:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:active:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .root {\n\t\tborder-color: ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Nt("inline-block"),vn,tr,er,dn,ln,Qn,mn,yn,fn,fn,bn,_n,ti,gn,bn,_n,fn,fn,fn,fn,er,Qn,er,pn,pn,ni,hn,Qn)},shadowOptions:{delegatesFocus:!0}}),Ya=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Wa=new Map,Ga=new Map,Ja=null,Qa=ve.createInterface((function(e){return e.cachedCallback((function(e){return null===Ja&&(Ja=new es(null,e)),Ja}))})),Xa=Object.freeze({tagFor:function(e){return Ga.get(e)},responsibleFor:function(e){return e.$$designSystem$$||ve.findResponsibleContainer(e).get(Qa)},getOrCreate:function(e){if(!e)return null===Ja&&(Ja=ve.getOrCreateDOMContainer().get(Qa)),Ja;var t=e.$$designSystem$$;if(t)return t;var n=ve.getOrCreateDOMContainer(e);if(n.has(Qa,!1))return n.get(Qa);var r=new es(e,n);return n.register(Pe.instance(Qa,r)),r}}),es=function(){function e(t,n){(0,r.Z)(this,e),this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=function(){return Ya.definitionCallbackOnly},null!==t&&(t.$$designSystem$$=this)}return(0,i.Z)(e,[{key:"withPrefix",value:function(e){return this.prefix=e,this}},{key:"withShadowRootMode",value:function(e){return this.shadowRootMode=e,this}},{key:"withElementDisambiguation",value:function(e){return this.disambiguate=e,this}},{key:"withDesignTokenRoot",value:function(e){return this.designTokenRoot=e,this}},{key:"register",value:function(){var e=this.container,t=[],n=this.disambiguate,s=this.shadowRootMode,u={elementPrefix:this.prefix,tryDefineElement:function(u,l,c){for(var d=function(e,t,n){return"string"==typeof e?{name:e,type:t,callback:n}:e}(u,l,c),f=d.name,h=d.callback,p=d.baseClass,v=d.type,g=f,m=Wa.get(g),y=!0;m;){var b=n(g,v,m);switch(b){case Ya.ignoreDuplicate:return;case Ya.definitionCallbackOnly:y=!1,m=void 0;break;default:g=b,m=Wa.get(g)}}y&&((Ga.has(v)||v===qe)&&(v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(v)),Wa.set(g,v),Ga.set(v,g),p&&Ga.set(p,g)),t.push(new ts(e,g,v,s,h,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&tn.registerRoot(this.designTokenRoot));for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];e.registerWithContext.apply(e,[u].concat(c));for(var f=0,h=t;f<h.length;f++){var p=h[f];p.callback(p),p.willDefine&&null!==p.definition&&p.definition.define()}return this}}]),e}(),ts=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.container=t,this.name=n,this.type=i,this.shadowRootMode=o,this.callback=a,this.willDefine=s,this.definition=null}return(0,i.Z)(e,[{key:"definePresentation",value:function(e){Ue.define(this.name,e,this.container)}},{key:"defineElement",value:function(e){this.definition=new W(this.type,Object.assign(Object.assign({},e),{name:this.name}))}},{key:"tagFor",value:function(e){return Xa.tagFor(e)}}]),e}(),ns=function(e,t){var n=[],u={register:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.forEach((function(t){return t.register.apply(t,[e].concat(r))})),n=[]}};return{wrap:function(u){var l,c,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u instanceof Ye&&(t?t.register(u):n.push(u),u=u.type);var f=Qe.get(u);if(f){var h=f.get(null!==(l=d.name)&&void 0!==l?l:Je);if(h)return h}var p=function(t){(0,o.Z)(l,t);var n=(0,a.Z)(l);function l(){var e;return(0,r.Z)(this,l),(e=n.apply(this,arguments))._element=null,e}return(0,i.Z)(l,[{key:"_updateElement",value:function(e){var t=this._element;if(null!==t){var n=this.props,r=e||Ge,i=et(d);for(var o in this._elementProps){var a=n[o],s=i[o];if(void 0===s)t[o]=a;else{var u=r[o];if(a===u)continue;void 0!==u&&t.removeEventListener(s,u),void 0!==a&&t.addEventListener(s,a)}}}}},{key:"componentDidMount",value:function(){this._updateElement()}},{key:"componentDidUpdate",value:function(e){this._updateElement(e)}},{key:"render",value:function(){var t=this,n=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===n||(this._ref=function(e){null===t._element&&(t._element=e),null!==n&&function(e,t){"function"==typeof e?e(t):e.current=t}(n,e),t._userRef=n});var r={ref:this._ref},i=this._elementProps={},o=function(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(et(t))));else{var n=new Set(Object.keys(et(t))),r=O.getAccessors(e.prototype);if(r.length>0){var i,o=(0,s.Z)(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;tt(e,t,a.name)&&n.add(a.name)}}catch(e){o.e(e)}finally{o.f()}}else for(var u in e.prototype)!(u in HTMLElement.prototype)&&tt(e,t,u)&&n.add(u);t.keys=n}return t.keys}(u,d),a=this.props;for(var l in a){var c=a[l];o.has(l)?i[l]=c:r["className"===l?"class":l]=c}return e.createElement(Xe(u,d),r)}}]),l}(e.Component),v=e.forwardRef((function(t,n){return e.createElement(p,Object.assign(Object.assign({},t),{__forwardedRef:n}),null==t?void 0:t.children)}));return Qe.has(u)||Qe.set(u,new Map),Qe.get(u).set(null!==(c=d.name)&&void 0!==c?c:Je,v),v},registry:u}}(nt,Xa.getOrCreate(void 0).withPrefix("vscode")),rs=ns.wrap,is=(rs(cr(),{name:"vscode-badge"}),rs(li(),{name:"vscode-button"})),os=rs(vi(),{name:"vscode-checkbox",events:{onChange:"change"}}),as=(rs(to(),{name:"vscode-data-grid"}),rs(oo(),{name:"vscode-data-grid-cell"}),rs(ro(),{name:"vscode-data-grid-row"}),rs(co(),{name:"vscode-divider"})),ss=rs(Po(),{name:"vscode-dropdown",events:{onChange:"change"}}),us=rs(Uo(),{name:"vscode-link"}),ls=rs(qo(),{name:"vscode-option"}),cs=(rs(aa(),{name:"vscode-panels",events:{onChange:"change"}}),rs(ua(),{name:"vscode-panel-tab"}),rs(ca(),{name:"vscode-panel-view"}),rs(va(),{name:"vscode-progress-ring"}),rs(ka(),{name:"vscode-radio",events:{onChange:"change"}})),ds=rs(ja(),{name:"vscode-radio-group",events:{onChange:"change"}}),fs=(rs(Aa(),{name:"vscode-tag"}),rs(Va(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}}),rs($a(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{274:"d7df68a1",697:"e9243bfd"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+".74a3708d.chunk.css"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="GraphiteInteractive:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e=function(e){return new Promise((function(t,r){var i=n.miniCssF(e),o=n.p+i;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}}(i,o))return t();!function(e,t,n,r){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=function(o){if(i.onerror=i.onload=null,"load"===o.type)n();else{var a=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=a,u.request=s,i.parentNode.removeChild(i),r(u)}},i.href=t,document.head.appendChild(i)}(e,o,t,r)}))},t={179:0};n.f.miniCss=function(n,r){t[n]?r.push(t[n]):0!==t[n]&&{274:1}[n]&&r.push(t[n]=e(n).then((function(){t[n]=0}),(function(e){throw delete t[n],e})))}}(),function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);u&&u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkGraphiteInteractive=self.webpackChunkGraphiteInteractive||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),n.nc=void 0;var r={};return function(){"use strict";n.r(r);var e=n(184),t=n(2791),i=n(1250),o=n(1072),a=n(32),s=n(88),u=n(1828),l=new s.Tracker((function(e){u.H.postMessage({type:"track",data:e})}),{});function c(t){var n=t.title,r=t.description,i=t.buttons;return(0,e.jsxs)("div",Object.assign({className:"banner-notice"},{children:[(0,e.jsx)("div",Object.assign({className:"banner-notice-left"},{children:(0,e.jsxs)("div",Object.assign({className:"banner-notice-content"},{children:[(0,e.jsx)("span",Object.assign({className:"banner-notice-title"},{children:n})),(0,e.jsx)("span",Object.assign({className:"banner-notice-byline"},{children:r}))]}))})),i?(0,e.jsx)("div",Object.assign({className:"error-notice-buttons"},{children:i})):null]}))}window.globalGtiClientTracker=l;var d=n(885),f=n(4098);function h(e){return function(t){g.set({x:t.clientX,y:t.clientY,items:e()}),t.preventDefault(),t.stopPropagation()}}var p,v,g=f.LO.box(null,{deep:!1}),m=(0,a.Pi)((function(){var n=g.get(),r=(0,t.useState)(null),i=(0,d.Z)(r,2),o=i[0],a=i[1],u=(0,t.useRef)(null);if((0,t.useEffect)((function(){if(null!=n){var e=function(e){"keyup"!==e.type?"click"===e.type&&(0,s.findParentWithClassName)(e.target,"context-menu-container")||g.set(null):"Escape"===e.key&&g.set(null)};return window.addEventListener("click",e,!0),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("click",e,!0),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[n]),null==n)return null;var l,c=n.y>window.innerHeight/2?"bottom":"top",f=n.x>window.innerWidth/2?"right":"left";return l="top"===c?"left"===f?{top:n.y+10,left:n.x+-5}:{top:n.y+10,right:window.innerWidth-(n.x+-5)}:"left"===f?{bottom:window.innerHeight-(n.y-10),left:n.x+-5}:{bottom:window.innerHeight-(n.y-10),right:window.innerWidth-(n.x+-5)},(0,e.jsxs)("div",Object.assign({ref:u,className:"context-menu-container"+(null!=o?" context-menu-fadeout":""),"data-testid":"context-menu-container",style:l},{children:["top"===c?(0,e.jsx)("div",{className:"context-menu-arrow-top context-menu-arrow-".concat(f)}):null,(0,e.jsx)("div",Object.assign({className:"context-menu"},{children:n.items.map((function(t,n){return"divider"===t.type?(0,e.jsx)("div",{className:"context-menu-divider"},n):(0,e.jsx)("div",Object.assign({onClick:null!=o?void 0:function(){var e;null===(e=t.onClick)||void 0===e||e.call(t),a(n),setTimeout((function(){g.set(null),a(null)}),300)},className:"context-menu-item"+(null!=o&&o===n?" context-menu-item-selected":"")},{children:t.label}),n)}))})),"bottom"===c?(0,e.jsx)("div",{className:"context-menu-arrow-bottom context-menu-arrow-".concat(f)}):null]}))})),y=n(6815),b=f.LO.box(500),_=n(8122),w=n(3144),k=n(5671),x=n(136),C=n(3668);!function(e){e[e.NONE=0]="NONE",e[e.SHIFT=1]="SHIFT",e[e.CTRL=2]="CTRL",e[e.ALT=4]="ALT",e[e.CMD=8]="CMD"}(p||(p={})),function(e){e[e.Escape=27]="Escape",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.A=65]="A",e[e.C=67]="C",e[e.D=68]="D",e[e.N=78]="N",e[e.P=80]="P",e[e.R=82]="R",e[e.Period=190]="Period",e[e.SingleQuote=222]="SingleQuote",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow"}(v||(v={}));var O=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;(0,k.Z)(this,n),r=t.call(this);for(var i=new Set,o=0,a=Object.values(e);o<a.length;o++){var s=a[o],u=(0,d.Z)(s,2)[1];i.add(u)}return r.keydownListener=function(t){if(i.has(t.keyCode)&&!function(e){return null!=e.target&&/(vscode-text-area|vscode-text-field|textarea|input)/i.test(e.target.tagName)}(t))for(var n=(t.shiftKey?p.SHIFT:0)|(t.ctrlKey?p.CTRL:0)|(t.altKey?p.ALT:0)|(t.metaKey?p.CMD:0),o=0,a=Object.entries(e);o<a.length;o++){var s=(0,d.Z)(a[o],2),u=s[0],l=s[1],c=(0,d.Z)(l,2),f=c[0];if(c[1]===t.keyCode&&f===n){r.dispatchEvent(new Event(u));break}}},document.body.addEventListener("keydown",r.keydownListener),r}return(0,w.Z)(n)}(window.EventTarget),S=function(n){var r=new O(n),i=(0,t.createContext)(r);return[function(t){var n=t.children;return(0,e.jsx)(i.Provider,Object.assign({value:r},{children:n}))},function(e,n){var r=(0,t.useContext)(i);(0,t.useEffect)((function(){return r.addEventListener(e,n),function(){return r.removeEventListener(e,n)}}),[e,n,r])},function(e){return r.dispatchEvent(new Event(e))}]}({ToggleSidebar:[p.CMD,v.Period],OpenUncommittedChangesComparisonView:[p.CMD,v.SingleQuote],OpenHeadChangesComparisonView:[p.CMD|p.SHIFT,v.SingleQuote],Escape:[p.NONE,v.Escape],SelectUpwards:[p.NONE,v.UpArrow],SelectDownwards:[p.NONE,v.DownArrow],ContinueSelectionUpwards:[p.SHIFT,v.UpArrow],ContinueSelectionDownwards:[p.SHIFT,v.DownArrow]}),E=(0,d.Z)(S,3),j=E[0],T=E[1],A=(E[2],n(51));function R(t){var n=t.className,r=t.children,i=t.width,a=t.height,s=t["aria-labelledby"],u=t["aria-describedby"],l=t.dismiss;return(0,e.jsx)("div",Object.assign({className:"modal",role:"dialog","aria-modal":!0,"aria-labelledby":s,"aria-describedby":u},{children:(0,e.jsxs)("div",Object.assign({className:"modal-contents ".concat(null!=n?n:""),style:{width:i,height:a}},{children:[null!=l?(0,e.jsx)("div",Object.assign({className:"dismiss-modal"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:l},{children:(0,e.jsx)(A.J,{icon:"x"})}))})):null,r]}))}))}var D=f.LO.box(null,{deep:!1}),I=(0,a.Pi)((function(){var n,r=D.get(),i=(0,t.useRef)(null),a=function(){(null==r?void 0:r.visible)&&(r.deferred.resolve(void 0),D.set(Object.assign(Object.assign({},r),{visible:!1})))};if(T("Escape",a),(0,t.useEffect)((function(){(null==r?void 0:r.visible)&&null!=i.current&&i.current.focus()}),[i,null==r?void 0:r.visible]),!0!==(null==r?void 0:r.visible))return null;if("confirm"===r.config.type){var s=r.config;n=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",Object.assign({id:"use-modal-message"},{children:s.message})),(0,e.jsx)("div",Object.assign({className:"use-modal-buttons"},{children:s.buttons.map((function(t,n){var a="object"==typeof t?t.label:t,s="object"==typeof t&&null!=t.primary;return(0,e.jsx)(o.vD,Object.assign({appearance:s?"primary":"secondary",onClick:function(){r.deferred.resolve(t),D.set(Object.assign(Object.assign({},r),{visible:!1}))},ref:s?i:void 0},{children:a}),n)}))}))]})}else if("custom"===r.config.type){var u=r.config.component;n=(0,e.jsx)(u,{returnResultAndDismiss:function(e){r.deferred.resolve(e),D.set(Object.assign(Object.assign({},r),{visible:!1}))}})}return(0,e.jsxs)(R,Object.assign({height:"fit-content",className:"use-modal","aria-labelledby":"use-modal-title","aria-describedby":"use-modal-message",dismiss:a},{children:[(0,e.jsxs)("div",Object.assign({id:"use-modal-title"},{children:[null!=r.config.icon?(0,e.jsx)(A.J,{icon:r.config.icon,size:"M"}):null,"string"==typeof r.config.title?(0,e.jsx)("span",{children:r.config.title}):r.config.title]})),n]}))})),P=n(8262),N=n.n(P);function M(e,n,r){var i=(0,t.useCallback)((0,s.debounce)(e,n,void 0,!0),[n]);return(0,t.useEffect)((function(){return i.apply(void 0,arguments)}),r)}function L(e,n){var r=(0,t.useRef)([]);N()(n,r.current)||(r.current=n);var i=r.current;return(0,t.useMemo)(e,i)}var Z=n(4447),z=function(){function e(t){(0,k.Z)(this,e),this.trackEventName=t,this.id=(0,s.randomId)(),this.runner=s.CommandRunner.Graphite}return(0,w.Z)(e,[{key:"getStdin",value:function(){}},{key:"getDescriptionForDisplay",value:function(){}}]),e}(),F=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,k.Z)(this,n),t.call(this,"AddAllOperation")}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["add","--all"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:B(e.status)}}))}}}]),n}(z);function B(e){return["UNTRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"TRACKED_ADD":["UNTRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"TRACKED_REMOVE":["UNTRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"TRACKED_MODIFY":["UNTRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"TRACKED_COPY":["UNTRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"TRACKED_RENAME":e}F.opName="AddAll";var H=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,k.Z)(this,n),t.call(this,"DiscardOperation")}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["reset","-q","--hard"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["TRACKED_MODIFY","TRACKED_ADD","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME","UNTRACKED_REMOVE"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(z);H.opName="Discard";var V=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,k.Z)(this,n),t.call(this,"PurgeOperation")}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["clean","--force"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["UNTRACKED_ADD"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(z);V.opName="Purge";var U=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,k.Z)(this,n),t.call(this,"SoftResetAllOperation")}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["reset","-q"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:K(e.status)}}))}}}]),n}(z);function K(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}U.opName="SoftResetAll";var q=n(2104),$=f.LO.box(void 0),Y=(0,f.Fl)((function(){var e=$.get();return e?q.Tq.get().get(e):void 0})),W=f.LO.box("all");(0,f.U5)((function(){return $.get()}),(function(){W.set("all")}));var G,J=n(8194),Q=(0,J.R)({config:"gti.bottom-panel-height",default:null}),X=n(2982),ee=n(7762);function te(){return window.globalGtiClientTracker}!function(e){e.REBASE_ROOT="rebase-root",e.REBASE_DESCENDANT="rebase-descendant",e.REBASE_OLD="rebase-old",e.REBASE_OPTIMISTIC_ROOT="rebase-optimistic-root",e.REBASE_OPTIMISTIC_DESCENDANT="rebase-optimistic-descendant",e.GOTO_DESTINATION="goto-destination",e.GOTO_PREVIOUS_LOCATION="goto-previous-location",e.HIDDEN_DESCENDANT="hidden-descendant",e.STACK_EDIT_ROOT="stack-edit-root",e.STACK_EDIT_DESCENDANT="stack-edit-descendant",e.NON_ACTIONABLE_COMMIT="non-actionable-commit"}(G||(G={}));var ne=(0,f.Fl)((function(){var e=q.il.get(),t=q.zV.get();return function(e,t,n){var r,i=t.currentOperation,o=[],a=(0,ee.Z)(t.operationHistory);try{for(a.s();!(r=a.n()).done;){var s=r.value;null==s||s.hasCompletedUncommittedChangesOptimisticState||null!=s.operation.makeOptimisticUncommittedChangesApplier&&o.push(s.operation.makeOptimisticUncommittedChangesApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==i||i.hasCompletedUncommittedChangesOptimisticState||null!=i.exitCode&&0!==i.exitCode||null!=i.operation.makeOptimisticUncommittedChangesApplier&&o.push(i.operation.makeOptimisticUncommittedChangesApplier.bind(i.operation));var u,l=(0,ee.Z)(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;null!=c&&null!=c.makeOptimisticUncommittedChangesApplier&&o.push(c.makeOptimisticUncommittedChangesApplier.bind(c))}}catch(e){l.e(e)}finally{l.f()}if(o.length){var d,f=e,h=(0,ee.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({uncommittedChanges:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(q.OR.get(),e,t)})),re=(0,f.Fl)((function(){var e=q.il.get(),t=q.zV.get(),n=q.SC.get();return null==(null==n?void 0:n.files)?n:function(e,t,n){var r=t.currentOperation;if("loaded"!==e.state)return e;var i,o=[],a=(0,ee.Z)(t.operationHistory);try{for(a.s();!(i=a.n()).done;){var s=i.value;null==s||s.hasCompletedMergeConflictsOptimisticState||null!=s.operation.makeOptimisticMergeConflictsApplier&&o.push(s.operation.makeOptimisticMergeConflictsApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==r||r.hasCompletedMergeConflictsOptimisticState||null!=r.exitCode&&0!==r.exitCode||null!=r.operation.makeOptimisticMergeConflictsApplier&&o.push(r.operation.makeOptimisticMergeConflictsApplier.bind(r.operation));var u,l=(0,ee.Z)(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;null!=c&&null!=c.makeOptimisticMergeConflictsApplier&&o.push(c.makeOptimisticMergeConflictsApplier.bind(c))}}catch(e){l.e(e)}finally{l.f()}if(o.length){var d,f=e,h=(0,ee.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({conflicts:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(n,e,t)})),ie=(0,f.Fl)((function(){var e,t=q.lp.get(),n=[],r=q.wf.get(),i=q.il.get(),o=q.zV.get(),a=i.currentOperation,u=(0,ee.Z)(i.operationHistory);try{for(u.s();!(e=u.n()).done;){var l=e.value;null==l||l.hasCompletedOptimisticState||null!=l.operation.makeOptimisticApplier&&n.push(l.operation.makeOptimisticApplier.bind(l.operation))}}catch(e){u.e(e)}finally{u.f()}null==a||a.hasCompletedOptimisticState||null!=a.exitCode&&0!==a.exitCode||null!=a.operation.makeOptimisticApplier&&n.push(a.operation.makeOptimisticApplier.bind(a.operation));var c,d=(0,ee.Z)(o);try{for(d.s();!(c=d.n()).done;){var f=c.value;null!=f&&null!=f.makeOptimisticApplier&&n.push(f.makeOptimisticApplier.bind(f))}}catch(e){d.e(e)}finally{d.f()}null!=(null==r?void 0:r.makePreviewApplier)&&n.push(r.makePreviewApplier.bind(r));var h=q.ql.get(),p=q.uB.get();if(n.length){var v,g=t,m=(0,ee.Z)(n);try{var y=function(){var e=v.value,t={trees:g,headCommit:h,treeMap:p},n=h,r=new Map,i=e(t);if(null==i)return"continue";var o=function e(t,o){var a=i(t,o);if(null!=(null==a?void 0:a.info)){a.info.isHead&&(n=a.info);var s=a.info,u=a.children,l=a.previewType,c=a.childPreviewType,d={info:s,previewType:l,children:u.map((function(t){return e(t,c)})).filter((function(e){return null!=e}))};return r.set(d.info.branch,a),d}};g=g.map((function(e){return o(e)})).filter(s.notEmpty),h=n,p=r};for(m.s();!(v=m.n()).done;)y()}catch(e){m.e(e)}finally{m.f()}return{trees:g,treeMap:p,headCommit:h}}return{trees:t,treeMap:p,headCommit:h}}));function oe(e){var t,n,r=q.il.get(),i=q.zV.get();return(null===(t=r.currentOperation)||void 0===t?void 0:t.operation)instanceof e&&null==(null===(n=r.currentOperation)||void 0===n?void 0:n.exitCode)?"running":i.some((function(t){return t instanceof e}))?"queued":void 0}var ae=n(5288),se=(0,J.X)({config:"gti.changedFilesDisplayType",default:"short"}),ue={short:"Short file names",fullPaths:"Full file paths",tree:"Tree",fish:"One-letter directories"},le=Object.entries(ue),ce=(0,a.Pi)((function(){var t,n,r=se.get(),i=re.get(),a=!Z.J.openDiff;return(0,e.jsxs)(o.vD,Object.assign({appearance:"icon",className:"changed-file-display-type-picker","data-testid":"changed-file-display-type-picker"},{children:[(0,e.jsx)(A.J,{icon:"ellipsis"}),(0,e.jsxs)("select",Object.assign({value:r,className:"changed-file-display-type-picker-select",onClick:function(e){e.stopPropagation()},onChange:function(e){var t=e.currentTarget.value;(function(e){return Object.keys(ue).includes(e)})(t)&&se.set(t),"view-changes"===t&&ae._.set({comparison:{type:s.ComparisonType.UncommittedChanges},visible:!0}),"all-changes"===t&&W.set("all"),"changes-by-commit"===t&&W.set("commit"),"changes-by-version"===t&&W.set("version"),"view-branch"===t&&(null==i?void 0:i.branchName)&&$.set(i.branchName)}},{children:[le.map((function(t){var n=(0,d.Z)(t,2),r=n[0],i=n[1];return(0,e.jsx)("option",Object.assign({value:r},{children:i}),r)})),(i||a)&&(0,e.jsx)("option",Object.assign({disabled:!0},{children:"──────────"})),i&&(0,e.jsx)("option",Object.assign({value:"view-branch"},{children:"View branch"}),"view-branch"),a&&(0,e.jsx)("option",Object.assign({value:"view-changes"},{children:"View changes"}),"view-changes"),$.get()&&!(null===(t=Y.get())||void 0===t?void 0:t.partOfTrunk)&&(0,e.jsxs)(e.Fragment,{children:["all"!==W.get()&&(0,e.jsx)("option",Object.assign({value:"all-changes"},{children:"View all changes"}),"all-changes"),"commit"!==W.get()&&(0,e.jsx)("option",Object.assign({value:"changes-by-commit"},{children:"View changes by commit"}),"changes-by-commit"),"version"!==W.get()&&(null===(n=Y.get())||void 0===n?void 0:n.versions)&&(0,e.jsx)("option",Object.assign({value:"changes-by-version"},{children:"View changes by version"}),"changes-by-version")]})]}))]}))})),de=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"GotoOperation")).destination=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["checkout",this.destination]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this,r=null===(t=e.headCommit)||void 0===t?void 0:t.branch;if(r!==this.destination)return function(e,t){return e.info.branch===n.destination?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children,previewType:G.GOTO_DESTINATION}:e.info.branch===r?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:e.children,previewType:G.GOTO_PREVIOUS_LOCATION}:{info:e.info,children:e.children}}}}]),n}(z);de.opName="Goto";var fe=n(7338),he=n(1485),pe=function(){function t(n){var r=this;(0,k.Z)(this,t),this.system=n,this.RepoInfo=function(){return(0,e.jsxs)("span",{children:["github.com"!==r.system.hostname?r.system.hostname:""," ",r.system.owner,"/",r.system.repo]})}}return(0,w.Z)(t,[{key:"DiffBadgeContent",value:function(t){var n=t.diff,r=t.children;return(0,e.jsxs)("div",Object.assign({className:"github-diff-status"+((null==n?void 0:n.state)?" github-diff-status-".concat(n.state):"")},{children:[n&&(0,e.jsx)(A.J,{title:"Open PR #".concat(null==n?void 0:n.number," in Graphite"),icon:ve(n.state)}),r]}))}},{key:"formatDiffNumber",value:function(e){return"#".concat(e)}},{key:"isDiffClosed",value:function(e){return"CLOSED"===e.state}}]),t}();function ve(e){switch(e){case"ERROR":return"error";case"OPEN":case"DRAFT":default:return"git-pull-request";case"MERGED":return"git-merge";case"CLOSED":return"git-pull-request-closed"}}var ge=(0,f.Fl)((function(){var e=q.ip.get();return"success"!==(null==e?void 0:e.type)?null:"github"===e.codeReviewSystem.type?new pe(e.codeReviewSystem):null})),me=(0,fe.N)({genKey:function(e){return e||"__UNDEFINED__"},genValue:function(e){return(0,f.Fl)((function(){var t,n=be.get();return null==n?{value:void 0}:n.error?{error:n.error}:null==e?{value:void 0}:{value:null===(t=n.value)||void 0===t?void 0:t.get(e)}}))}}),ye=(0,he.u)({default:{value:null},effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedDiffSummaries",(function(e){t(e.summaries)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchDiffSummaries"})}))}]}),be=((0,f.Fl)((function(){var e=ye.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.branchName,e]})))}})),(0,f.Fl)((function(){var e=ye.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.number,e]})))}})));function _e(e){var t;if(!e)return[];var n=q.uB.get().get(e);if(!n)return[];var r=n.info,i=me(null===(t=r.pr)||void 0===t?void 0:t.number).get();return r.partOfTrunk||!r.needsSubmit&&r.pr||i.value&&"OPEN"!==i.value.state?[]:[].concat((0,X.Z)(_e(n.info.parents[0])),[n.info])}function we(e){if(!e)return[];var t=q.uB.get().get(e);return t?[].concat((0,X.Z)(we(t.info.parents[0])),[t.info]):[]}function ke(e){return we(e).some((function(e){var t,n=me(null===(t=e.pr)||void 0===t?void 0:t.number).get();return n.value&&"OPEN"!==n.value.state}))}function xe(e){return we(e).some((function(e){return e.needsRestack&&!e.parents.some((function(e){var t;return null===(t=q.uB.get().get(e))||void 0===t?void 0:t.info.partOfTrunk}))}))}(0,he.u)({default:document.hasFocus()?"focused":document.visibilityState,setter:(0,s.debounce)((function(e){u.H.postMessage({type:"pageVisibility",state:e})}),50),effects:[function(e){var t=e.setSelf,n=function(){t(document.hasFocus()?"focused":document.visibilityState)};return window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),function(){document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n),window.removeEventListener("blur",n)}}]});var Ce=(0,he.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedAuthStatus",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchAuthStatus"})}))}]}),Oe=(0,f.Fl)((function(){var e;return"ok"===(null===(e=Ce.get())||void 0===e?void 0:e.status)})),Se=(0,fe.N)({genKey:function(e){return e},genValue:function(e){return(0,he.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestCommitsInBranch",branch:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestCommitsInBranch",branch:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("commitsInBranch",(function(t){t.branch===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),Ee=(0,fe.N)({genKey:function(e){return e},genValue:function(e){return(0,he.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestChangedFilesInCommit",commitSha:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestChangedFilesInCommit",commitSha:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFilesInCommit",(function(t){t.commitSha===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),je=(0,fe.N)({genKey:function(e){return e},genValue:function(e){return(0,he.u)({default:{isLoading:!0,data:null},setter:function(t){if(t.isLoading){var n=e.split(".."),r=(0,d.Z)(n,2),i=r[0],o=r[1];u.H.postMessage({type:"requestChangedFilesInRange",fromSha:i,toSha:o})}},effects:[function(){return u.H.onConnectOrReconnect((function(){var t=e.split(".."),n=(0,d.Z)(t,2),r=n[0],i=n[1];u.H.postMessage({type:"requestChangedFilesInRange",fromSha:r,toSha:i})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFilesInRange",(function(t){var r=e.split(".."),i=(0,d.Z)(r,2),o=i[0],a=i[1];t.fromSha===o&&t.toSha===a&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),Te=(0,fe.N)({genKey:function(e){return e},genValue:function(e){return(0,he.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestChangedFiles",branch:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestChangedFiles",branch:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFiles",(function(t){t.branch===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),Ae=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var i;return(0,k.Z)(this,n),(i=t.call(this,"DownstackSubmitOperation")).branch=e,i.options=r,i}return(0,w.Z)(n,[{key:"getArgs",value:function(){var e,t,n,r=["submit","--branch",this.branch];return(null===(e=this.options)||void 0===e?void 0:e.draft)&&r.push("--draft"),(null===(t=this.options)||void 0===t?void 0:t.publish)&&r.push("--publish"),(null===(n=this.options)||void 0===n?void 0:n.web)&&r.push("--web"),r}}]),n}(z);Ae.opName="downstack submit";var Re=(0,J.X)({config:"gti.submit-as-draft",default:"draft"}),De=(0,J.X)({config:"gti.submit-with-web",default:"no-web"}),Ie=function(e){var t;(0,q.tD)(new Ae(e,{publish:"publish"===Re.get(),draft:"draft"===Re.get(),web:"web"===De.get()&&(t=e,!_e(t).every((function(e){return e.pr})))}))},Pe=f.LO.set();function Ne(n){var r=n.disabled,i=n.toHighlight,o=n.children,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["disabled","toHighlight","children"]),s=(0,t.useRef)(null),u=(0,t.useState)(!1),l=(0,d.Z)(u,2),c=l[0],h=l[1];return(0,t.useLayoutEffect)((function(){if(!r){var e=function(){setTimeout((function(){(0,f.z)((function(){Pe.clear(),i.map((function(e){return Pe.add(e.branch)}))})),h(!0)}),0)},t=function(){Pe.clear(),h(!1)},n=s.current;return null==n||n.addEventListener("mouseenter",e),null==n||n.addEventListener("mouseleave",t),function(){null==n||n.removeEventListener("mouseenter",e),null==n||n.removeEventListener("mouseleave",t)}}}),[i,r]),(0,t.useEffect)((function(){return function(){c&&Pe.clear()}}),[c]),(0,e.jsx)("div",Object.assign({},a,{ref:s},{children:o}))}var Me=n(7757),Le=n.n(Me);function Ze(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.map((function(e){var t=function(e){return e.replace(/[^\\]/g,"").length>e.replace(/[^/]/g,"").length?"\\":"/"}(e),n=/^(\w:).*/.exec(e),r=null!=n?n[1]:"";return{depth:null,parts:e.split(t).reverse().filter((function(e){return""!==e&&e!==r})),rootPrefix:r,separator:t,hadLeadingSeparator:e.startsWith(t)||r.length>0&&e.startsWith(r)}})),r=null==t.maxDepth?Math.max.apply(Math,(0,X.Z)(n.map((function(e){return e.parts.length})))):t.maxDepth,i=new Set(n),o=new Map,a=1;a<=r;a++){o.clear();var s,u=(0,ee.Z)(i);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=l.parts.slice(0,a).join(l.separator);o.has(c)||o.set(c,new Set),o.get(c).add(l)}}catch(e){u.e(e)}finally{u.f()}var d,f=(0,ee.Z)(o.values());try{for(f.s();!(d=f.n()).done;){var h=d.value;if(1===h.size){var p=Array.from(h)[0];p.depth=a,i.delete(p)}}}catch(e){f.e(e)}finally{f.f()}}return n.map((function(e){var n,i=e.depth,o=e.parts,a=e.rootPrefix,s=e.separator,u=e.hadLeadingSeparator,l=o.slice(0,null==i?r:i).reverse();return 0===l.length?"".concat(a).concat(s):((1===l.length&&""===l[0]||l.length>1&&""!==l[0])&&(l=l.length===o.length?u?[a].concat((0,X.Z)(l)):l:(null!==(n=t.alwaysShowLeadingSeparator)&&void 0!==n?n:u)?[""].concat((0,X.Z)(l)):l),l.join(s))}))}var ze,Fe=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"AddOperation")).filePath=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["add",{type:"repo-relative-file",path:this.filePath}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:B(e.status)}:e}))}}}]),n}(z);Fe.opName="Add",function(e){e.theirs="theirs",e.ours="ours"}(ze||(ze={}));var Be,He=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var i;return(0,k.Z)(this,n),(i=t.call(this,"AutoResolveOperation")).filePath=e,i.tool=r,i}return(0,w.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case ze.theirs:return["restore","--theirs","--",{type:"repo-relative-file",path:this.filePath}];case ze.ours:return["restore","--ours","--",{type:"repo-relative-file",path:this.filePath}]}}}]),n}(z);He.opName="AutoResolve",function(e){e.mark="mark",e.unmark="unmark"}(Be||(Be={}));var Ve=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var i;return(0,k.Z)(this,n),(i=t.call(this,"ResolveOperation")).filePath=e,i.tool=r,i}return(0,w.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case Be.mark:return["add",{type:"repo-relative-file",path:this.filePath}];case Be.unmark:return["restore","--merge","--",{type:"repo-relative-file",path:this.filePath}]}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&"UNRESOLVED"!==e.status})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:"RESOLVED"}:e}))}}},{key:"makeOptimisticMergeConflictsApplier",value:function(e){var t,n,r=this;if(!0!==(null===(n=null===(t=e.conflicts)||void 0===t?void 0:t.files)||void 0===n?void 0:n.some((function(e){return e.path===r.filePath&&"UNRESOLVED"!==e.status}))))return function(e){var t,n;return"loaded"!==(null==e?void 0:e.state)?e:Object.assign(Object.assign({},e),{files:null!==(n=null===(t=null==e?void 0:e.files)||void 0===t?void 0:t.map((function(e){return e.path===r.filePath?{path:e.path,status:"RESOLVED"}:e})))&&void 0!==n?n:[]})}}}]),n}(z);Ve.opName="Resolve";var Ue=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"RevertOperation")).file=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["restore","-SW",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=new Set(this.file);if(!e.uncommittedChanges.every((function(e){return!t.has(e.path)})))return function(e){return e.filter((function(e){return!t.has(e.path)}))}}}]),n}(z);Ue.opName="Revert";var Ke=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"SoftResetOperation")).file=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["reset","--",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.file&&!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.file?{path:e.path,status:qe(e.status)}:e}))}}}]),n}(z);function qe(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}Ke.opName="SoftReset";var $e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ye={TRACKED_ADD:"Added (tracked)",TRACKED_MODIFY:"Modified (staged)",TRACKED_REMOVE:"Removed (staged)",PARTIALLY_TRACKED_ADD:"Added (partially tracked)",PARTIALLY_TRACKED_MODIFY:"Modified (partially staged)",PARTIALLY_TRACKED_REMOVE:"Removed (partially staged)",UNTRACKED_MODIFY:"Modified (unstaged)",UNTRACKED_ADD:"Added (untracked)",UNTRACKED_REMOVE:"Removed (unstaged)",UNRESOLVED:"Unresolved",RESOLVED:"Resolved",TRACKED_RENAME:"Renamed (staged)",PARTIALLY_TRACKED_RENAME:"Renamed and modified (partially staged)",UNTRACKED_RENAME:"Renamed (unstaged)",TRACKED_COPY:"Copied (tracked)",PARTIALLY_TRACKED_COPY:"Copied and modified (tracked and partially staged)",UNTRACKED_COPY:"Copied (untracked)"},We={TRACKED_ADD:["added","diff-added","full"],TRACKED_MODIFY:["modified","diff-modified","full"],TRACKED_REMOVE:["removed","diff-removed","full"],PARTIALLY_TRACKED_ADD:["added","diff-added","partial"],PARTIALLY_TRACKED_MODIFY:["modified","diff-modified","partial"],PARTIALLY_TRACKED_REMOVE:["removed","diff-removed","partial"],UNTRACKED_MODIFY:["modified","diff-modified","empty"],UNTRACKED_ADD:["added","diff-added","empty"],UNTRACKED_REMOVE:["removed","diff-removed","empty"],UNRESOLVED:["unresolved","diff-ignored","empty"],RESOLVED:["resolved","pass","full"],TRACKED_RENAME:["modified","diff-renamed","full"],PARTIALLY_TRACKED_RENAME:["modified","diff-renamed","partial"],UNTRACKED_RENAME:["modified","diff-renamed","empty"],TRACKED_COPY:["added","diff-added","full"],PARTIALLY_TRACKED_COPY:["added","diff-added","partial"],UNTRACKED_COPY:["added","diff-added","empty"]},Ge={TRACKED_MODIFY:0,PARTIALLY_TRACKED_MODIFY:1,TRACKED_RENAME:2,PARTIALLY_TRACKED_RENAME:3,TRACKED_ADD:4,PARTIALLY_TRACKED_ADD:5,TRACKED_COPY:6,PARTIALLY_TRACKED_COPY:7,TRACKED_REMOVE:8,PARTIALLY_TRACKED_REMOVE:9,UNTRACKED_MODIFY:10,UNTRACKED_REMOVE:11,UNTRACKED_ADD:11,UNTRACKED_RENAME:12,UNTRACKED_COPY:13,UNRESOLVED:-1,RESOLVED:-2},Je=(0,a.Pi)((function(t){var n=se.get(),r=t.files,i=$e(t,["files"]),o=L((function(){return function(e){var t=Ze(e.map((function(e){return e.path}))),n=new Set(e.map((function(e){return e.copy})).filter(s.notEmpty));return e.map((function(e,n){var r,i,o=t[n],a="".concat(e.path,"\n\n").concat(Ye[e.status]),s=e.status;if(null!=e.copy){var u=Ze([e.copy,e.path]),l=(0,d.Z)(u,2),c=l[0],f=l[1];o="".concat(c," → ").concat(f),["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME","UNTRACKED_RENAME"].includes(e.status)?(i=e.copy,a="".concat(a,"\n\nThis file was renamed from ").concat(e.copy),s=e.status):["TRACKED_COPY","PARTIALLY_TRACKED_COPY","UNTRACKED_COPY"].includes(e.status)&&(r=e.copy,a="".concat(a,"\n\nThis file was copied from ").concat(e.copy),s=e.status)}return{path:e.path,label:o,status:e.status,visualStatus:s,copiedFrom:r,renamedFrom:i,tooltip:a}})).filter((function(e){return!("TRACKED_REMOVE"===e.status&&n.has(e.path))})).sort((function(e,t){return e.visualStatus===t.visualStatus?e.path.localeCompare(t.path):Ge[e.visualStatus]-Ge[t.visualStatus]}))}(r)}),[r]);return(0,e.jsx)("div",Object.assign({className:"changed-files"},{children:"tree"===n?(0,e.jsx)(et,Object.assign({},i,{files:o,displayType:n})):(0,e.jsx)(Qe,Object.assign({},i,{files:o,displayType:n}))}))}));function Qe(t){var n=t.files,r=$e(t,["files"]);return(0,e.jsx)(e.Fragment,{children:n.map((function(t){return(0,e.jsx)(tt,Object.assign({},r,{file:t}),t.path)}))})}var Xe=function(){return(0,e.jsx)("div",{className:"file-indent"})},et=(0,a.Pi)((function(n){var r=n.files,i=n.comparison,o=n.displayType,a=L((function(){return e=Object.fromEntries(r.map((function(e){return[e.path,e]}))),function e(t){var n,r=new Map,i=new Map,o=(0,ee.Z)(t.entries());try{for(o.s();!(n=o.n()).done;){var a=(0,d.Z)(n.value,2),s=a[0],u=a[1],l=s.split("/",1),c=(0,d.Z)(l,1)[0],f=s.slice(c.length+1);if(""===f)i.set(c,u);else if(r.has(c)){var h=r.get(c);null==h||h.set(f,u)}else r.set(c,new Map([[f,u]]))}}catch(e){o.e(e)}finally{o.f()}var p,v=new Map,g=(0,ee.Z)(r.entries());try{for(g.s();!(p=g.n()).done;){var m=(0,d.Z)(p.value,2),y=m[0],b=e(m[1]);if(1===b.size){var _=(0,d.Z)(b.entries().next().value,2),w=_[0],k=_[1];k instanceof Map?v.set(y+"/"+w,k):v.set(y,b)}else v.set(y,b)}}catch(e){g.e(e)}finally{g.f()}var x,C=(0,ee.Z)(i.entries());try{for(C.s();!(x=C.n()).done;){var O=(0,d.Z)(x.value,2),S=O[0],E=O[1];v.set(S,E)}}catch(e){C.e(e)}finally{C.f()}return v}(new Map(Object.entries(e)));var e}),[r]),s=(0,t.useState)(new Set),u=(0,d.Z)(s,2),l=u[0],c=u[1];return function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,e.jsx)(e.Fragment,{children:(0,X.Z)(r.entries()).map((function(r){var u=(0,d.Z)(r,2),f=u[0],h=u[1],p="".concat(a,"/").concat(f),v=l.has(p);return h instanceof Map?(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)("div",Object.assign({className:"file-tree-folder-path",onClick:function(){c((function(e){return v?new Set((0,X.Z)(e).filter((function(e){return e!==p}))):new Set([].concat((0,X.Z)(e),[p]))}))}},{children:[Array.from({length:s},(function(t,n){return(0,e.jsx)(Xe,{},n)})),(0,e.jsx)(A.J,{icon:v?"chevron-right":"chevron-down"}),(0,e.jsx)(A.J,{icon:v?"folder":"folder-opened"}),f]})),v?null:n(h,p,s+1)]},f):(0,e.jsx)(tt,{indentLevel:s,comparison:i,displayType:o,file:h},f)}))})}(a)})),tt=(0,a.Pi)((function(n){var r=n.file,i=n.displayType,a=n.comparison,u=n.indentLevel,l=void 0===u?0:u,c=(0,d.Z)(We[r.visualStatus],3),f=c[0],h=c[1],p=c[2],v=function(e){switch(e.status){case"UNTRACKED_ADD":case"UNTRACKED_MODIFY":case"UNTRACKED_REMOVE":case"UNTRACKED_COPY":case"UNTRACKED_RENAME":return{tooltip:"Stage changes",operation:function(){return new Fe(e.path)}};case"PARTIALLY_TRACKED_ADD":case"PARTIALLY_TRACKED_MODIFY":case"PARTIALLY_TRACKED_REMOVE":case"PARTIALLY_TRACKED_COPY":case"PARTIALLY_TRACKED_RENAME":return{tooltip:"Stage all changes",operation:function(){return new Fe(e.path)}};case"TRACKED_MODIFY":case"TRACKED_COPY":case"TRACKED_RENAME":return{tooltip:"Unstage changes",operation:function(){return new Ke(e.path)}};case"TRACKED_ADD":return{tooltip:"Unstage addition",operation:function(){return new Ke(e.path)}};case"TRACKED_REMOVE":return{tooltip:"Unstage removal",operation:function(){return new Ke(e.path)}};case"RESOLVED":return{tooltip:"Mark as unresolved",operation:function(){return new Ve(e.path,Be.unmark)}};case"UNRESOLVED":return{tooltip:"This file needs to be resolved",operation:null}}}(r),g=v.operation,m=v.tooltip,y=(0,t.useCallback)((function(e){if(e)return"full"===p?(e.indeterminate=!1,void(e.checked=!0)):void("partial"!==p?(e.indeterminate=!1,e.checked=!1):e.indeterminate=!0)}),[p]);return(0,e.jsxs)("div",Object.assign({className:"changed-file file-".concat(f),"data-testid":"changed-file-".concat(r.path),tabIndex:0,onKeyPress:function(e){var t;if("Enter"===e.key){if(a.type===s.ComparisonType.UncommittedChanges)return void Z.J.openFile(r.path);null===(t=Z.J.openDiff)||void 0===t||t.call(Z.J,r.path,a)}},onClick:function(){var e;a.type!==s.ComparisonType.UncommittedChanges?null===(e=Z.J.openDiff)||void 0===e||e.call(Z.J,r.path,a):Z.J.openFile(r.path)}},{children:[Array.from({length:l},(function(t,n){return(0,e.jsx)(Xe,{},n)})),a.type===s.ComparisonType.UncommittedChanges&&(0,e.jsx)(o.QJ,{ref:y,title:m,className:"changed-file-checkbox"+(g?" changed-file-checkbox-clickable":""),readOnly:!0,disabled:!g,onClick:function(e){e.stopPropagation();var t=null==g?void 0:g();t&&(0,q.tD)(t)}}),(0,e.jsxs)("span",Object.assign({className:"changed-file-path",title:r.tooltip},{children:[(0,e.jsx)(A.J,{icon:h}),(0,e.jsx)("span",Object.assign({className:"changed-file-path-text"},{children:"fish"===i?r.path.split("/").map((function(e,t,n){return t===n.length-1?e:e[0]})).join("/"):"fullPaths"===i?r.path:"short"===i?r.label:r.path.endsWith("/")?r.path:r.path.slice(r.path.lastIndexOf("/")+1)}))]})),(0,e.jsx)(it,{file:r,comparison:a})]}),r.path)})),nt=new Set(["TRACKED_MODIFY","UNTRACKED_MODIFY","TRACKED_REMOVE","UNTRACKED_REMOVE"]),rt=new Set(["UNRESOLVED","RESOLVED"]),it=(0,a.Pi)((function(t){var n=this,r=t.comparison,i=t.file,a=[];return null!=Z.J.openFile&&r.type!==s.ComparisonType.UncommittedChanges&&a.push((0,e.jsx)(o.vD,Object.assign({title:"Open file",className:"file-show-on-hover",appearance:"icon",onClick:function(e){var t;e.stopPropagation(),null===(t=Z.J.openFile)||void 0===t||t.call(Z.J,i.path)}},{children:(0,e.jsx)(A.J,{icon:"go-to-file"})}),"open-file")),r.type!==s.ComparisonType.UncommittedChanges||null==Z.J.openDiff||rt.has(i.status)||a.push((0,e.jsx)(o.vD,Object.assign({title:"Open diff view",className:"file-show-on-hover",appearance:"icon",onClick:function(e){var t;e.stopPropagation(),null===(t=Z.J.openDiff)||void 0===t||t.call(Z.J,i.path,r)}},{children:(0,e.jsx)(A.J,{icon:"git-pull-request-go-to-changes"})}),"open-diff")),nt.has(i.status)&&r.type===s.ComparisonType.UncommittedChanges&&a.push((0,e.jsx)(o.vD,Object.assign({title:"Discard changes",className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:function(e){e.stopPropagation(),Z.J.confirm("Are you sure you want to discard changes to ".concat(i.path,"?")).then((function(e){e&&(0,q.tD)(new Ue(i.path))}))}},{children:(0,e.jsx)(A.J,{icon:"discard"})}),"discard")),r.type===s.ComparisonType.UncommittedChanges&&("UNTRACKED_ADD"===i.status||"TRACKED_ADD"===i.status?a.push((0,e.jsx)(o.vD,Object.assign({title:"Delete",className:"file-show-on-hover",appearance:"icon",onClick:function(e){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(n,0,void 0,Le().mark((function t(){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.stopPropagation(),t.next=3,Z.J.confirm("Are you sure you want to delete ".concat(i.path,"?"));case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:u.H.postMessage({type:"deleteFile",filePath:i.path});case 7:case"end":return t.stop()}}),t)})))}},{children:(0,e.jsx)(A.J,{icon:"trash"})}),"delete")):"RESOLVED"===i.status?a.push((0,e.jsx)(o.vD,Object.assign({title:"Mark as unresolved",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,q.tD)(new Ve(i.path,Be.unmark))}},{children:(0,e.jsx)(A.J,{icon:"circle-slash"})}),"unresolve")):"UNRESOLVED"===i.status&&a.push((0,e.jsx)(o.vD,Object.assign({title:"Mark as resolved","data-testid":"file-action-resolve",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,q.tD)(new Ve(i.path,Be.mark))}},{children:(0,e.jsx)(A.J,{icon:"check"})}),"resolve"),(0,e.jsx)(o.vD,Object.assign({title:"Take local version",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,q.tD)(new He(i.path,ze.ours))}},{children:(0,e.jsx)(A.J,{icon:"fold-up"})}),"take-ours"),(0,e.jsx)(o.vD,Object.assign({title:"Take incoming version",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,q.tD)(new He(i.path,ze.theirs))}},{children:(0,e.jsx)(A.J,{icon:"fold-down"})}),"take-theirs"))),(0,e.jsx)("div",Object.assign({className:"file-actions","data-testid":"file-actions"},{children:a}))})),ot=(0,a.Pi)((function(){var t=W.get();return(0,e.jsx)("div",Object.assign({className:"selected-branch"},{children:"all"===t?(0,e.jsx)(at,{}):"commit"===t?(0,e.jsx)(st,{}):(0,e.jsx)(ut,{})}))})),at=(0,a.Pi)((function(){var t,n,r=null===(t=Y.get())||void 0===t?void 0:t.branch;if(!r)return null;var i=Te(r).get().data,a=_e(r),u=r===(null===(n=ie.get().headCommit)||void 0===n?void 0:n.branch),l=r===ie.get().trees[0].info.branch;return(0,e.jsxs)(e.Fragment,{children:[l||!(null==i?void 0:i.files)?null:(0,e.jsx)(Je,{files:i.files,comparison:{type:s.ComparisonType.Committed,hash:r}}),(0,e.jsxs)("div",Object.assign({className:"branch-actions"},{children:[Oe.get()&&a.length>0&&!ke(r)&&(0,e.jsx)(Ne,Object.assign({toHighlight:a,className:"branch-action-button"},{children:(0,e.jsxs)(o.vD,Object.assign({className:"branch-action-button-inner-fill",appearance:u?"primary":"secondary",onClick:function(e){e.stopPropagation(),Ie(r)}},{children:["Submit",a.length>1?" ".concat(a.length," PRs"):""]}))})),(0,e.jsx)(o.vD,Object.assign({className:"branch-action-button",appearance:u?"secondary":"primary",disabled:u,onClick:function(e){(0,q.tD)(new de(r)),e.stopPropagation()}},{children:u?"Checked out":"Check out"}))]}))]})})),st=(0,a.Pi)((function(){var n,r,i,o=(0,t.useState)(void 0),a=(0,d.Z)(o,2),u=a[0],l=a[1],c=null===(n=Y.get())||void 0===n?void 0:n.branch;if(!c)return null;var f=null===(r=Se(c).get().data)||void 0===r?void 0:r.commits;if(!f)return null;var h=u&&(null===(i=Ee(u).get().data)||void 0===i?void 0:i.files);return(0,e.jsxs)("div",Object.assign({className:"selected-branch-divided"},{children:[(0,e.jsx)("div",Object.assign({className:"selected-branch-divided-selector"},{children:f.map((function(t){return(0,e.jsx)("div",Object.assign({className:"selected-branch-divided-selector-item"+(u===t.sha?" selected-branch-divided-selector-item-selected":""),onClick:function(){return l(t.sha)}},{children:t.message}))}))})),(0,e.jsx)("div",Object.assign({className:"selected-branch-divided-content"},{children:h&&(0,e.jsx)(Je,{files:h,comparison:{type:s.ComparisonType.Commit,sha:u}})}))]}))})),ut=(0,a.Pi)((function(){var n,r,i,o=(0,t.useState)(void 0),a=(0,d.Z)(o,2),u=a[0],l=a[1],c=null===(n=Y.get())||void 0===n?void 0:n.branch;if(!c)return null;var f=null===(r=q.qC.get().find((function(e){return e.branch===c})))||void 0===r?void 0:r.versions;if(!f)return null;var h=u&&f[u-1],p=h&&h.baseSha&&h.headSha&&(null===(i=je("".concat(h.baseSha,"..").concat(h.headSha)).get().data)||void 0===i?void 0:i.files);return(0,e.jsxs)("div",Object.assign({className:"selected-branch-divided"},{children:[(0,e.jsx)("div",Object.assign({className:"selected-branch-divided-selector"},{children:f.map((function(t,n){return(0,e.jsxs)("div",Object.assign({className:"selected-branch-divided-selector-item"+(n+1===u?" selected-branch-divided-selector-item-selected":""),onClick:function(){return l(n+1)}},{children:["V",n+1]}))}))})),(0,e.jsx)("div",Object.assign({className:"selected-branch-divided-content"},{children:p&&h.baseSha&&h.headSha&&(0,e.jsx)(Je,{files:p,comparison:{type:s.ComparisonType.Range,fromSha:h.baseSha,toSha:h.headSha}})}))]}))})),lt=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"AbortMergeOperation")).conflicts=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["rebase","--abort"]}}]),n}(z);lt.opName="Abort";var ct=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var i;return(0,k.Z)(this,n),(i=t.call(this,"AmendOperation")).method=e,i.message=r,i}return(0,w.Z)(n,[{key:"getArgs",value:function(){var e,t;if("commit"===this.method)return["modify","--commit","--message",(null===(e=this.message)||void 0===e?void 0:e.title)||"Untitled commit"];var n=null===(t=this.message)||void 0===t?void 0:t.title;return["modify"].concat((0,X.Z)(n?["--message",n]:[]))}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.headCommit;if(null!=this.message){var r=this.message,i=r.title,o=r.description;if((null==n?void 0:n.title)!==i||(null==n?void 0:n.description)!==o)return function(e,n){if(e.info.isHead){if(!t.message)throw new Error("Missing message");return{info:Object.assign(Object.assign({},e.info),{title:i,description:null!=o?o:""}),children:e.children}}return{info:e.info,children:e.children}}}}}]),n}(z);ct.opName="Amend";var dt=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r,i){var o;return(0,k.Z)(this,n),(o=t.call(this,"CommitOperation")).message=e,o.branchName=r,o.originalHeadHash=i,o}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["create"].concat((0,X.Z)(null!==this.branchName?[this.branchName]:[]),["--message","".concat(this.message.title.split(/\n+/,1))])}},{key:"makeOptimisticApplier",value:function(e){var t,n,r,i=this,o=e.headCommit;if((null==o?void 0:o.branch)===this.originalHeadHash){var a=this.message.title,s=this.message.description,u=null!==(t=this.branchName)&&void 0!==t?t:a.toLocaleLowerCase(),l={children:[],info:{author:null!==(n=null==o?void 0:o.author)&&void 0!==n?n:"",description:s,title:a,isHead:!0,parents:[null!==(r=null==o?void 0:o.branch)&&void 0!==r?r:""],branch:u,partOfTrunk:!1,date:(new Date).toISOString(),needsRestack:!1,needsSubmit:!0}};return function(e,t){return e.info.branch===i.originalHeadHash?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:[].concat((0,X.Z)(e.children),[l])}:{info:e.info,children:e.children}}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}}]),n}(z);dt.opName="Commit";var ft=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,k.Z)(this,n),t.call(this,"ContinueMergeOperation")}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["continue"]}}]),n}(z);ft.opName="Continue";var ht=(0,J.X)({config:"gti.new-branch-name",default:"infer"}),pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function vt(t){var n=t.title,r=t.icon,i=t.children,a=t.className,s=pt(t,["title","icon","children","className"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-fields"+(null!=a?" ".concat(a):"")},s,{children:[(0,e.jsxs)("div",Object.assign({className:"dropdown-fields-header"},{children:[(0,e.jsx)(A.J,{icon:r,size:"M"}),(0,e.jsx)("strong",Object.assign({role:"heading"},{children:n}))]})),(0,e.jsx)(o.y9,{}),(0,e.jsx)("div",Object.assign({className:"dropdown-fields-content"},{children:i}))]}))}function gt(t){var n=t.title,r=t.children,i=pt(t,["title","children"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-field"},{children:[(0,e.jsx)("strong",{children:n}),(0,e.jsx)("div",Object.assign({},i,{children:r}))]}))}var mt,yt=n(4164);function bt(n){var r=n.children,i=n.component,o=n.placement,a=n.delayMs,s=n.inline,u=n.className,l=null!=o?o:"top",c=(0,t.useState)(!1),f=(0,d.Z)(c,2),h=f[0],p=f[1],v=(0,t.useRef)(null);(0,t.useEffect)((function(){if(h){var e=function(e){_t(e)||p(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}}),[h,p]),(0,t.useEffect)((function(){if(h){var e=function(e){"keyup"===e.type?"Escape"===e.key&&p(!1):"resize"!==e.type&&_t(e)||p(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[h,p]);var g=!0===h?0:a;return(0,e.jsxs)("div",Object.assign({className:"tooltip-creator ".concat(s?"tooltip-creator-inline":"").concat(u?" ".concat(u):""),ref:v,onClick:function(e){!0===h&&_t(e)||(p((function(e){return!0!==e})),e.stopPropagation())}},{children:[h&&v.current&&(0,e.jsx)(wt,Object.assign({delayMs:g,element:v.current,placement:l},{children:i((function(){return p(!1)}))})),r]}))}function _t(e){return null!=(0,s.findParentWithClassName)(e.target,"tooltip")}function wt(n){var r,i,o=n.element,a=n.placement,s=n.children,u=n.delayMs,l=o.getBoundingClientRect(),c=(0,t.useRef)(null),f=function(e,n){var r=(0,t.useState)({width:0,height:0}),i=(0,d.Z)(r,2),o=i[0],a=i[1];return(0,t.useLayoutEffect)((function(){var t=e.current;if(null!=t){var n=function(){a({width:t.offsetWidth,height:t.offsetHeight})};n();var r=new ResizeObserver((function(e){e.forEach((function(e){e.target===t&&n()}))}));return r.observe(t),function(){return r.disconnect()}}}),[e,n]),o}(c,s),h=function(e,t,n){switch(e){case"top":var r=t.top-5-n.height,i=t.left+t.width/2-n.width/2;return r<0?{top:t.top+t.height+5,left:i,autoPlacement:"bottom"}:{top:r,left:i};case"bottom":return{top:t.top+t.height+5,left:t.left+t.width/2-n.width/2};case"left":return{top:t.top+t.height/2-n.height/2,left:t.left-n.width-5};case"right":return{top:t.top+t.height/2-n.height/2,left:t.right+5}}}(a,l,f),p=function(e,t,n){var r={top:0,left:0},i=document.body.getBoundingClientRect();if("right"===e||"left"===e){var o=t.top-5,a=t.top+5+n.height;o<i.top?r.top=i.top-o:a>i.top+i.height&&(r.top=i.top+i.height-a)}else{var s=t.left-5,u=t.left+5+n.width;s<i.left?r.left=i.left-s:u>i.right&&(r.left=i.left+i.width-u)}return r}(i=null!==(r=h.autoPlacement)&&void 0!==r?r:a,h,f),v=document.body.getBoundingClientRect(),g={animationDelay:u?"".concat(u,"ms"):void 0};return h.left>v.width/2?g.right=v.width-(h.left+p.left+f.width):g.left=h.left+p.left,h.top>v.height/2?g.bottom=v.height-(h.top+p.top+f.height):g.top=h.top+p.top,yt.createPortal((0,e.jsxs)("div",Object.assign({ref:c,role:"tooltip",className:"tooltip tooltip-".concat(i)+("string"==typeof s?" simple-text-tooltip":""),style:g},{children:[(0,e.jsx)("div",{className:"tooltip-arrow tooltip-arrow-".concat(i),style:{transform:"translate(".concat(-p.left,"px, ").concat(-p.top,"px)")}}),s]})),kt(o))}var kt=function(e){if(mt)return mt;var t=(0,s.unwrap)((0,s.findParentWithClassName)(e,"gti-root"));return mt=(0,s.unwrap)(t.querySelector(".tooltip-root-container"))},xt=(0,J.X)({config:"gti.branch-display-choice",default:"pr-title"}),Ct=(0,J.X)({config:"gti.branch-name-wrapping",default:"wrap"}),Ot=(0,he.u)({default:[],effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("platform/availableCwds",(function(e){t(e.options)}));return function(){return n.dispose()}},function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"platform/subscribeToAvailableCwds"})}))}]}),St=((0,a.Pi)((function(){var t=q.ip.get();if("success"!==(null==t?void 0:t.type))return null;var n=(0,s.basename)(t.repoRoot);return(0,e.jsx)(bt,Object.assign({component:function(){return(0,e.jsx)(St,{})},placement:"bottom"},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"icon","data-testid":"cwd-dropdown-button"},{children:[(0,e.jsx)(A.J,{icon:"folder",slot:"start"}),n]}))}))})),(0,a.Pi)((function(){var t=q.ip.get(),n="success"===(null==t?void 0:t.type)?t.repoRoot:null,r=ge.get(),i=q.ui.get();return(0,e.jsxs)(vt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository Info"}),icon:"folder","data-testid":"cwd-details-dropdown"},{children:[(0,e.jsx)(Et,{}),(0,e.jsx)(gt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Active repository"})},{children:(0,e.jsx)("code",{children:i})})),(0,e.jsx)(gt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository Root"})},{children:(0,e.jsx)("code",{children:n})})),null!=r?(0,e.jsx)(gt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Remote"})},{children:(0,e.jsxs)("div",Object.assign({style:{display:"flex",alignItems:"center"}},{children:[(0,e.jsx)(A.J,{style:{marginRight:"4px"},icon:"github"})," ",(0,e.jsx)(r.RepoInfo,{})]}))})):null]}))}))),Et=(0,a.Pi)((function(){var t=q.ui.get(),n=Ot.get();if(n.length<2)return null;var r=Ze(n);return(0,e.jsxs)(gt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Change active repository"})},{children:[(0,e.jsx)(o.dm,Object.assign({orientation:"vertical",value:t,onChange:function(e){var n=e.target.value;n!==t&&(u.H.postMessage({type:"changeCwd",cwd:n}),u.H.cwdChanged())}},{children:r.map((function(r,i){var a=n[i];return(0,e.jsx)(o.VK,Object.assign({value:a,checked:a===t,tabIndex:0},{children:(0,e.jsx)("span",Object.assign({title:a},{children:r}),r)}),r)}))})),(0,e.jsx)(o.y9,{})]}))}));function jt(){return(0,e.jsx)(bt,Object.assign({component:function(){return(0,e.jsx)("div",Object.assign({className:"settings-dropdown"},{children:(0,e.jsx)(At,{})}))},placement:"bottom"},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon","data-testid":"settings-gear-button"},{children:(0,e.jsx)(A.J,{icon:"gear"})}))}))}var Tt=(0,J.X)({config:"gti.modify-behavior",default:"amend"}),At=(0,a.Pi)((function(){var t=_.X.get(),n=q.ip.get(),r=q.cM.get(),i=Ce.get(),a=q.ui.get(),s=Ot.get(),l=s.length>1,c=Ze(s);return(0,e.jsxs)(e.Fragment,{children:[l&&(0,e.jsx)(Rt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Repository"})},{children:(0,e.jsx)(o.Yb,Object.assign({value:a,onChange:function(e){var t=e.currentTarget.value;t!==a&&(u.H.postMessage({type:"changeCwd",cwd:t}),u.H.cwdChanged())}},{children:c.map((function(t,n){var r=s[n];return(0,e.jsx)(o.nH,Object.assign({value:r},{children:(0,e.jsx)("span",Object.assign({title:r},{children:t}))}),t)}))}))})),null!=Z.J.theme?null:(0,e.jsx)(Rt,Object.assign({title:(0,e.jsx)(e.Fragment,{children:"Theme"})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:t,onChange:function(e){return _.X.set(e.currentTarget.value)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"dark"},{children:(0,e.jsx)(e.Fragment,{children:"Dark"})})),(0,e.jsx)(o.nH,Object.assign({value:"light"},{children:(0,e.jsx)(e.Fragment,{children:"Light"})}))]}))})),"success"!==(null==n?void 0:n.type)?(0,e.jsx)(A.J,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Rt,Object.assign({title:"Branch display format",subtitle:"Branch name or PR title",description:(0,e.jsx)(e.Fragment,{children:"Configure how branches are displayed in the tree view. If a branch does not yet have a PR open, its branch name will always be shown."})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:xt.get(),onChange:function(e){var t=e.currentTarget.value;xt.set(t)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"branch-name"},{children:"Branch name"})),(0,e.jsx)(o.nH,Object.assign({value:"pr-title"},{children:"PR title (default)"}))]}))})),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,Object.assign({title:"Preferred modify behavior",subtitle:"Amend vs Commit",description:(0,e.jsxs)(e.Fragment,{children:["Configure how changes are applied to a branch."," ",(0,e.jsx)(o.Np,Object.assign({href:"https://graphite.dev/docs/updating-mid-stack-branches",target:"_blank"},{children:(0,e.jsx)(e.Fragment,{children:"Learn More"})}))]})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:Tt.get(),onChange:function(e){var t=e.currentTarget.value;Tt.set(t)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"commit"},{children:"Commit"})),(0,e.jsx)(o.nH,Object.assign({value:"amend"},{children:"Amend (default)"}))]}))})),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,Object.assign({title:"Preferred submit state",subtitle:"Draft vs Published",description:(0,e.jsx)(e.Fragment,{children:"Configure how new PRs should be submitted. Note that GitHub does not allow draft PRs in free private repositories."})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:Re.get(),onChange:function(e){var t=e.currentTarget.value;Re.set(t)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"draft"},{children:"Draft (default)"})),(0,e.jsx)(o.nH,Object.assign({value:"published"},{children:"Published"}))]}))})),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,Object.assign({title:"New branch names",subtitle:"Inferred vs Manual",description:(0,e.jsx)(e.Fragment,{children:"Would you rather Graphite infer names for new branches or require you to manually specify them."})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:ht.get(),onChange:function(e){var t=e.currentTarget.value;ht.set(t)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"infer"},{children:"Infer (default)"})),(0,e.jsx)(o.nH,Object.assign({value:"manual"},{children:"Manual"}))]}))})),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,Object.assign({title:"Branch name wrapping",description:(0,e.jsx)(e.Fragment,{children:"Configure text wrapping for branch names."})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:Ct.get(),onChange:function(e){var t=e.currentTarget.value;Ct.set(t)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"wrap"},{children:"Wrap (default)"})),(0,e.jsx)(o.nH,Object.assign({value:"nowrap"},{children:"Don't wrap"}))]}))})),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,Object.assign({title:"Open Stack Edit on submit",subtitle:"BETA",description:(0,e.jsx)(e.Fragment,{children:"If enabled, submit PRs via Stack Edit in your browser. Visually edit your stack's PRs, and apply labels & reviewers across multiple PRs. Must be in the Stack Edit beta (otherwise it will no-op)."})},{children:(0,e.jsxs)(o.Yb,Object.assign({value:De.get(),onChange:function(e){var t=e.currentTarget.value;De.set(t)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"web"},{children:"Enabled (default)"})),(0,e.jsx)(o.nH,Object.assign({value:"no-web"},{children:"Disabled"}))]}))}))]}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",Object.assign({className:"bug-dropdown-version"},{children:[null==r?(0,e.jsx)(A.J,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:["GTI version ",r.version," (",r.platformName,")"]}),(0,e.jsx)("br",{}),null==i?(0,e.jsx)(A.J,{icon:"loading"}):"ok"!==i.status?null:(0,e.jsxs)(e.Fragment,{children:["Ready to submit PRs as ",i.githubLogin]})]})),(0,e.jsxs)("div",Object.assign({className:"bug-dropdown-actions"},{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){Z.J.openExternalLink("https://graphite.dev/docs/gti")}},{children:"View documentation"})),(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){Z.J.openExternalLink("https://community.graphite.dev")}},{children:"Help and feedback"}))]}))]})]})}));function Rt(t){var n=t.children,r=t.title,i=t.subtitle,o=t.description;return(0,e.jsxs)(gt,Object.assign({title:r},{children:[i&&(0,e.jsx)("div",Object.assign({className:"setting-subtitle"},{children:i})),o&&(0,e.jsx)("div",Object.assign({className:"setting-description"},{children:o})),n]}))}var Dt=["UNTRACKED_ADD","UNTRACKED_REMOVE","UNTRACKED_MODIFY","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"],It=["TRACKED_ADD","TRACKED_REMOVE","TRACKED_MODIFY","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"],Pt=(0,a.Pi)((function(){var n,r,i=ne.get(),a=q.p7.get(),u=q.ql.get(),l=re.get(),c=(0,t.useRef)(null),f=(0,t.useRef)(null),h=(0,t.useState)(""),p=(0,d.Z)(h,2),v=p[0],g=p[1],m=(0,t.useState)(""),b=(0,d.Z)(m,2),_=b[0],w=b[1];if(a)return(0,e.jsx)(y.W,{title:"Failed to fetch uncommitted changes",error:a});if(0===i.length&&!l)return null;var k=null!==(r=null===(n=null==l?void 0:l.files)||void 0===n?void 0:n.every((function(e){return"RESOLVED"===e.status})))&&void 0!==r&&r,x=i.filter((function(e){return It.includes(e.status)})).length>0,C=!l&&x,O=!(null==u?void 0:u.partOfTrunk),S=Tt.get(),E="manual"===ht.get();(0,t.useEffect)((function(){E||w("")}),[E]);var j=x?"amend"===S||v?"amend"===S&&v?"Title not supported on amends":_?"Branch name not supported on modify":void 0:"Title required":"No changes staged",T=v?!_&&E?"Branch name required":void 0:"Title required";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Je,{files:i,comparison:{type:s.ComparisonType.UncommittedChanges}}),l?(0,e.jsx)(Nt,{allConflictsResolved:k,conflicts:l}):C?(0,e.jsxs)("div",Object.assign({className:"uncommitted-changes-actions"},{children:[E&&(0,e.jsx)(o.OG,{placeholder:"Branch name",value:_,onKeyUp:function(e){var t,n,r;"Enter"!==e.key?w(null!==(r=null===(n=e.target)||void 0===n?void 0:n.value)&&void 0!==r?r:""):null===(t=f.current)||void 0===t||t.focus()}}),(0,e.jsx)(o.OG,{placeholder:"Title",ref:f,value:v,onKeyUp:function(e){var t,n,r;"Enter"!==e.key?g(null!==(r=null===(n=e.target)||void 0===n?void 0:n.value)&&void 0!==r?r:""):null===(t=c.current)||void 0===t||t.click()}}),(0,e.jsxs)("div",Object.assign({className:"uncommitted-changes-buttons"},{children:[O?(0,e.jsx)(o.vD,Object.assign({className:"commit-modify-button",appearance:"secondary",disabled:!!j,title:j,onClick:function(){(0,q.tD)(new ct(S,"commit"===S?Object.assign(Object.assign({},{title:"",description:""}),{title:null!=v?v:""}):void 0))}},{children:"commit"===S?"Commit to the current branch":"Modify the current branch"})):null,(0,e.jsx)(o.vD,Object.assign({className:"commit-modify-button",ref:c,disabled:!!T,title:T,onClick:function(){var e;(0,q.tD)(new dt(Object.assign(Object.assign({},{title:"",description:""}),{title:null!=v?v:""}),E?_:null,null!==(e=null==u?void 0:u.branch)&&void 0!==e?e:""))}},{children:"Create a new branch"}))]}))]})):null]})})),Nt=(0,a.Pi)((function(t){var n=t.conflicts,r=t.allConflictsResolved,i=q.il.get().currentOperation,a=(null==i?void 0:i.operation)instanceof ft&&0===i.exitCode,s=(null==i?void 0:i.operation)instanceof lt&&0===i.exitCode,u=!!oe(ft),l=!!oe(lt),c=u||l||a||s;return(0,e.jsxs)("div",Object.assign({className:"conflict-resolution-buttons"},{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",disabled:c,onClick:function(){(0,q.tD)(new lt(n))}},{children:"Abort"}),"abort"),(0,e.jsx)(o.vD,Object.assign({appearance:"primary",disabled:!r||c,"data-testid":"conflict-continue-button",onClick:function(){(0,q.tD)(new ft)}},{children:"Continue"}),"continue")]}))})),Mt=(0,a.Pi)((function(){var n,r,i=ne.get(),a=$.get(),s=function(){var e=3*document.body.clientHeight/4,n=(0,t.useState)(!1),r=(0,d.Z)(n,2),i=r[0],o=r[1],a=(0,t.useRef)(null),s=Q.get(),u=(0,t.useState)(null),l=(0,d.Z)(u,2),c=l[0],f=l[1],h=c||s||Lt,p=(0,t.useRef)();(0,t.useEffect)((function(){null!==c&&(null!==p.current&&clearTimeout(p.current),p.current=setTimeout((function(){Q.set(c),p.current=null}),500))}),[c]);var v=(0,t.useState)(!1),g=(0,d.Z)(v,2),m=g[0],y=g[1],b=(0,t.useState)(void 0),_=(0,d.Z)(b,2),w=_[0],k=_[1],x=(0,t.useState)(0),C=(0,d.Z)(x,2),O=C[0],S=C[1],E=(0,t.useCallback)((function(e){e.preventDefault(),k(e.clientY),a.current&&S(a.current.getBoundingClientRect().top-e.clientY),y(!0)}),[]),j=function(t){if(!i&&m&&w&&void 0!==h&&a.current){var n=a.current.getBoundingClientRect();if(!i&&n){var r=n.bottom-t.clientY-O;f(Math.min(Math.max(Lt,r),e))}}},T=function(){y(!1)};return(0,t.useEffect)((function(){return document.addEventListener("mousemove",j),document.addEventListener("mouseup",T),document.addEventListener("mouseleave",T),function(){document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",T),document.removeEventListener("mouseleave",T)}})),(0,t.useMemo)((function(){return{resizerOnMouseDown:E,containerRef:a,isCollapsed:i,setIsCollapsed:o,height:h}}),[h,a,E,i,o])}(),u=s.height,l=s.isCollapsed,c=s.setIsCollapsed,h=s.containerRef,p=s.resizerOnMouseDown;if((0,t.useEffect)((function(){return(0,f.U5)((function(){return $.get()}),(function(){return c(!1)}))}),[$]),(0,t.useEffect)((function(){return(0,f.U5)((function(){return re.get()}),(function(){return $.set(void 0)}))}),[re,$]),!a&&0===i.length&&!re.get())return null;var v=!a&&i.length>0&&!re.get(),g=i.some((function(e){return Dt.includes(e.status)})),m=i.filter((function(e){return It.includes(e.status)})),y=m.length>0,b=a?null:(0,f.Fl)((function(){var e,t,n;return re.get()?{num:null!==(n=null===(t=null===(e=re.get())||void 0===e?void 0:e.files)||void 0===t?void 0:t.length)&&void 0!==n?n:0,title:" conflicting files"}:i.length>0?{num:m.length,title:" staged files"}:null})).get();return(0,e.jsxs)("div",Object.assign({className:"bottom-panel-parent"},{children:[!l&&(0,e.jsx)("div",{className:"bottom-panel-resizer",onMouseDown:p}),(0,e.jsxs)("div",Object.assign({className:"bottom-panel-title",onClick:function(){return c((function(e){return!e}))}},{children:[(0,e.jsx)(A.J,{icon:l?"chevron-right":"chevron-down",slot:"start"}),(0,e.jsx)("span",Object.assign({className:"bottom-panel-title-text"},{children:null!==(r=null===(n=Y.get())||void 0===n?void 0:n.branch)&&void 0!==r?r:re.get()?"UNRESOLVED CONFLICTS":"UNCOMMITTED CHANGES"})),b&&(0,e.jsx)("span",Object.assign({className:"bottom-panel-num-files",title:"".concat(b.num).concat(b.title)},{children:b.num})),(0,e.jsx)("div",Object.assign({className:"bottom-panel-right"},{children:v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({disabled:!g,appearance:"icon",onClick:function(e){e.stopPropagation(),(0,q.tD)(new F)}},{children:(0,e.jsx)(A.J,{icon:"add"})}),"allall"),(0,e.jsx)(o.vD,Object.assign({disabled:!y,appearance:"icon",onClick:function(e){e.stopPropagation(),(0,q.tD)(new U)}},{children:(0,e.jsx)(A.J,{icon:"remove"})}),"reset"),(0,e.jsx)(o.vD,Object.assign({title:"Discard all changes",appearance:"icon",onClick:function(e){e.stopPropagation();var t=i.map((function(e){return e.path}));Z.J.confirm("Are you sure you want to discard your ".concat(t.length," selected change").concat(1===t.length?"":"s","? Discarded changes cannot be recovered.")).then((function(e){e&&((0,q.tD)(new H),(0,q.tD)(new V))}))}},{children:(0,e.jsx)(A.J,{icon:"trashcan"})}))]})})),(0,e.jsx)(ce,{})]})),l?null:(0,e.jsx)("div",Object.assign({style:{height:"".concat(u,"px")},ref:h,className:"bottom-panel-content"},{children:a?(0,e.jsx)(ot,{}):(0,e.jsx)(Pt,{})}))]}))})),Lt=120;function Zt(e){var n=e.children,r=e.hideUntil,i=(0,t.useState)(!1),o=(0,d.Z)(i,2),a=o[0],s=o[1];return(0,t.useEffect)((function(){var e=r.getTime()-Date.now();if(e>0){s(!1);var t=setTimeout((function(){s(!0)}),e);return function(){return clearTimeout(t)}}s(!0)}),[r,s]),a?n:null}function zt(t){var n=t.operation,r=t.className,i=n.getDescriptionForDisplay();return(null==i?void 0:i.description)?(0,e.jsx)("span",Object.assign({className:r},{children:i.description})):(0,e.jsx)("code",Object.assign({className:r},{children:"gt "+n.getArgs().map((function(e){if("object"==typeof e)switch(e.type){case"repo-relative-file":return e.path;case"succeedable-revset":return e.revset}return e})).join(" ")}))}var Ft=(0,a.Pi)((function(){var t,n=q.il.get(),r=q.zV.get(),i=(0,q.xn)(),a=q.ip.get();if("success"!==(null==a?void 0:a.type))return null;var s=n.currentOperation;if(null==s)return(0,e.jsx)("div",{className:"progress-container","data-testid":"progress-container"});var u,l=s.operation.getDescriptionForDisplay(),c=(0,e.jsx)(zt,{operation:s.operation,className:"progress-container-command"}),d=null;if(null==s.exitCode){u=(0,e.jsx)(A.J,{icon:"loading"});var f=new Date(((null===(t=s.startTime)||void 0===t?void 0:t.getTime())||0)+1e4);d=(0,e.jsx)(Zt,Object.assign({hideUntil:f},{children:(0,e.jsxs)(o.vD,Object.assign({appearance:"secondary","data-testid":"abort-button",disabled:s.aborting,onClick:function(){i(s.operation.id)}},{children:[(0,e.jsx)(A.J,{slot:"start",icon:s.aborting?"loading":"stop-circle"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]}))}))}else u=0===s.exitCode?(0,e.jsx)(A.J,{icon:"pass","aria-label":"Command exited successfully"}):s.aborting?(0,e.jsx)(A.J,{icon:"stop-circle","aria-label":"Command aborted"}):(0,e.jsx)(A.J,{icon:"error","aria-label":"Command exited unsuccessfully"});return(0,e.jsxs)("div",Object.assign({className:"progress-container","data-testid":"progress-container"},{children:[(0,e.jsxs)("div",Object.assign({className:"progress-container-row"},{children:[u,c,(0,e.jsx)(bt,Object.assign({className:"progress-command-tooltip",component:function(){var t;return(0,e.jsx)("div",Object.assign({className:"progress-command-tooltip"},{children:(null==l?void 0:l.tooltip)||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",Object.assign({className:"progress-command-tooltip-command"},{children:[(0,e.jsx)("strong",{children:"Command: "}),(0,e.jsx)(zt,{operation:s.operation,long:!0})]})),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Command output:"}),(0,e.jsx)("br",{}),(0,e.jsx)("pre",{children:(null===(t=s.commandOutput)||void 0===t?void 0:t.join(""))||"No output"}),r.length>0?(0,e.jsxs)("div",Object.assign({className:"queued-operations-container","data-testid":"queued-commands"},{children:[(0,e.jsx)("strong",{children:"Next to run"}),r.map((function(t){return(0,e.jsx)("div",Object.assign({id:t.id,className:"queued-operation"},{children:(0,e.jsx)(zt,{operation:t})}),t.id)}))]})):null]})}))}},{children:(0,e.jsx)(A.J,{title:"View command output",icon:"info"})}))]})),d]}))}));function Bt(){return(0,e.jsx)("div",Object.assign({"data-testid":"loading-spinner"},{children:(0,e.jsx)(A.J,{icon:"loading",size:"L"})}))}function Ht(t){var n=t.children;return(0,e.jsx)("div",Object.assign({className:"center-container"},{children:n}))}var Vt=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,k.Z)(this,n),t.call(this,"CreateEmptyInitialCommit")}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["internal-only","init"]}}]),n}(z);Vt.opName="CreateEmptyInitialCommit";var Ut=(0,a.Pi)((function(){var n,r=(0,t.useState)(void 0),i=(0,d.Z)(r,2),a=i[0],s=i[1],u=q.il.get().currentOperation;return null==u||null==u.exitCode||0===u.exitCode||u.aborting||u===a?null:(0,e.jsx)(y.W,{hideExpand:!0,title:"Command failed",description:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",Object.assign({className:"progress-command-tooltip-command"},{children:(0,e.jsx)(zt,{operation:u.operation,long:!0})})),(0,e.jsx)("pre",{children:(null===(n=u.commandOutput)||void 0===n?void 0:n.join(""))||"No output"})]}),buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){s(u),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Dismiss"})}))]})})),Kt=6e4,qt=36e5,$t=24*qt,Yt=7*$t,Wt=365*$t,Gt=Wt/12,Jt=[[42e3,"now"],[9e4,"1m"],[36e5,"m",Kt],[54e5,"1h"],[$t,"h",qt],[2*$t,"1d"],[7*$t,"d",$t],[1.5*Yt,"1w"],[Gt,"w",Yt],[1.5*Gt,"1mo"],[Wt,"mo",Gt],[1.5*Wt,"1y"],[Number.MAX_VALUE,"y",Wt]],Qt=[[42e3,"less than a minute"],[9e4,"one minute"],[36e5,"minutes",Kt],[54e5,"one hour"],[$t,"hours",qt],[2*$t,"one day"],[7*$t,"days",$t],[1.5*Yt,"one week"],[Gt,"weeks",Yt],[1.5*Gt,"one month"],[Wt,"months",Gt],[1.5*Wt,"one year"],[Number.MAX_VALUE,"years",Wt]],Xt=[[42e3,"just now"],[9e4,"a minute ago"],[36e5,"minutes ago",Kt],[54e5,"an hour ago"],[$t,"hours ago",qt],[2*$t,"yesterday"],[7*$t,"days ago",$t],[1.5*Yt,"a week ago"],[Gt,"weeks ago",Yt],[1.5*Gt,"a month ago"],[Wt,"months ago",Gt],[1.5*Wt,"a year ago"],[Number.MAX_VALUE,"years ago",Wt]],en=[[42e3,"just now"],[9e4,"1 minute ago"],[36e5,"minutes ago",Kt],[54e5,"1 hour ago"],[$t,"hours ago",qt],[2*$t,"yesterday"],[7*$t,"days ago",$t],[1.5*Yt,"1 week ago"],[Gt,"weeks ago",Yt],[1.5*Gt,"1 month ago"],[Wt,"months ago",Gt],[1.5*Wt,"1 year ago"],[Number.MAX_VALUE,"years ago",Wt]];function tn(e,t){var n=e,r=t.reference;n instanceof Date&&(n=n.getTime()),r||(r=(new Date).getTime()),r instanceof Date&&(r=r.getTime());var i,o=r-n,a=t.useRelativeForm?Qt:t.useShortVariant?Jt:t.useNumbersOnly?en:Xt,s=(0,ee.Z)(a);try{for(s.s();!(i=s.n()).done;){var u=(0,d.Z)(i.value,3),l=u[0],c=u[1],f=u[2];if(o<l)return"number"==typeof f?Math.round(o/f)+(t.useShortVariant?"":" ")+c:c}}catch(e){s.e(e)}finally{s.f()}throw new Error("This should never be reached.")}function nn(t){var n=t.date,r=t.reference,i=t.useShortVariant,o=t.useNumbersOnly,a=t.useRelativeForm;return(0,e.jsx)(e.Fragment,{children:tn(n,{reference:r,useShortVariant:i,useNumbersOnly:o,useRelativeForm:a})})}var rn=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"DeleteBranchOperation")).branch=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["delete",this.branch,"--force"]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n,r){return e.info.branch===t.branch?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(z);rn.opName="DeleteBranch";var on=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"HideOperation")).source=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["untrack","--force",this.source]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.source))return function(e,n,r){return e.info.branch===t.source?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(z);on.opName="Hide";var an=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var i;return(0,k.Z)(this,n),(i=t.call(this,"PopOperation")).originalHeadCommit=e,i.files=r,i}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["pop"]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this;if((null===(t=e.headCommit)||void 0===t?void 0:t.branch)===this.originalHeadCommit.branch)return function(e,t){return e.info.branch===n.originalHeadCommit.branch?{info:null}:n.originalHeadCommit.parents[0]===e.info.branch?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children}:{info:e.info,children:e.children,previewType:t}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this.files,n=new Set(e.uncommittedChanges.map((function(e){return e.path})));if(!t.every((function(e){return n.has(e.path)})))return function(e){var r=t.filter((function(e){return!n.has(e.path)}));return[].concat((0,X.Z)(e),(0,X.Z)(r))}}}]),n}(z);an.opName="Pop";var sn=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var i;return(0,k.Z)(this,n),(i=t.call(this,"RebaseOperation")).source=e,i.destination=r,i}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["move","--onto",this.destination,"--source",this.source]}},{key:"makePreviewApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:G.REBASE_ROOT,childPreviewType:G.REBASE_DESCENDANT}:{info:e.info,children:e.children,previewType:G.REBASE_OLD,childPreviewType:G.REBASE_OLD}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,X.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n,o){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:G.REBASE_OPTIMISTIC_ROOT,childPreviewType:G.REBASE_OPTIMISTIC_DESCENDANT}:{info:null}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,X.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:o}}}}}]),n}(z);sn.opName="Rebase";var un=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"RestackOperation")).branch=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["restack","--branch",this.branch]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n){return e.info.branch===t.branch?{info:Object.assign(Object.assign({},e.info),{needsRestack:!1}),children:e.children}:{info:e.info,children:e.children}}}}]),n}(z);un.opName="restack";var ln=n(5729),cn=(0,a.Pi)((function(t){var n=t.diffId,r=ge.get();return null==r?null:(0,e.jsx)(hn,Object.assign({provider:r,diffId:n},{children:(0,e.jsx)(fn,{diffId:n,provider:r})}))})),dn=(0,a.Pi)((function(t){var n=t.diff,r=t.children,i=t.url,o=t.provider,a=h((function(){return[{label:(0,e.jsxs)(e.Fragment,{children:['Copy PR number "',null==n?void 0:n.number,'"']}),onClick:function(){var e;return Z.J.clipboardCopy(null!==(e=null==n?void 0:n.number)&&void 0!==e?e:"")}}]}));return(0,e.jsx)("a",Object.assign({href:i,className:"diff-badge github-diff-badge",onContextMenu:n?a:void 0},{children:(0,e.jsx)(o.DiffBadgeContent,{diff:n,children:r})}))})),fn=(0,a.Pi)((function(t){var n=t.diffId,r=t.provider,i=q.ip.get(),o=me(n).get();if(o.error||null!=i&&"success"!==(null==i?void 0:i.type))return(0,e.jsx)(pn,{number:r.formatDiffNumber(n),provider:r});if(null==(null==o?void 0:o.value)||null==i||"none"===i.codeReviewSystem.type)return null;var a=o.value;return(0,e.jsx)("div",Object.assign({className:"diff-info github-diff-info","data-testid":"github-diff-info"},{children:(0,e.jsx)(dn,{provider:r,diff:a,url:"".concat(i.profile.appUrl,"/github/pr/").concat(i.codeReviewSystem.owner,"/").concat(i.codeReviewSystem.repo,"/").concat(a.number)})}))})),hn=function(t){(0,x.Z)(r,t);var n=(0,C.Z)(r);function r(){var e;return(0,k.Z)(this,r),(e=n.apply(this,arguments)).state={error:null},e}return(0,w.Z)(r,[{key:"render",value:function(){return null!=this.state.error?(0,e.jsx)(pn,{provider:this.props.provider,number:this.props.provider.formatDiffNumber(this.props.diffId)}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),r}(t.Component);function pn(t){var n=t.number,r=t.provider;return(0,e.jsxs)("span",Object.assign({className:"diff-error diff-info","data-testid":"github-error"},{children:[(0,e.jsx)(dn,Object.assign({provider:r},{children:(0,e.jsx)(A.J,{icon:"error"})}))," ",n]}))}var vn=function(t){var n=t.depth,r=t.isCurved,i=t.dashedLevels,o=t.branchless,a=t.child,s=t.highlighted,u=t.checkedOut;return(0,e.jsx)("div",Object.assign({className:"branch-indicator-container"},{children:Array.from({length:n+1},(function(t,l){var c=i.includes(l);return l!==n?(0,e.jsx)(yn,{dashed:c},l):r?(0,e.jsx)(mn,{dashed:c,highlighted:s,end:o?"no-circle":"".concat(a,"-child"),filled:u},l):o?(0,e.jsx)(yn,{dashed:c,isLast:!0},l):(0,e.jsx)(gn,{dashed:c,highlighted:s,child:a,filled:u},l)}))}))},gn=function(t){var n=t.dashed,r=t.child,i=t.highlighted,o=t.filled;return(0,e.jsxs)("div",Object.assign({className:"branch-indicator-flex-grow"},{children:[(0,e.jsxs)("svg",Object.assign({width:"22",height:"34",viewBox:"0 0 22 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:"0"}},{children:["no"!==r&&(0,e.jsx)("path",{d:"M11 14V0",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"dashed"===r?"2.2":void 0}),(0,e.jsx)("defs",{}),(0,e.jsx)("circle",{className:"circle"+(i?" highlighted":""),r:i?"4":"3",cx:"11",cy:"17",transform:"rotate(180 11 17)",stroke:"currentColor",strokeWidth:"2",fill:o?"currentColor":void 0}),(0,e.jsx)("path",{d:"M11 20V34",stroke:"currentColor",strokeWidth:"2",strokeDasharray:n?"2.2":void 0})]})),(0,e.jsx)(yn,{dashed:n})]}))},mn=function(t){var n=t.dashed,r=t.end,i=t.highlighted,o=t.filled;return(0,e.jsxs)("svg",Object.assign({className:"curve",width:"22",height:"34",viewBox:"0 0 22 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:"0"}},{children:["no-circle"===r?(0,e.jsx)("path",{d:"M14 0V17",stroke:"currentColor",strokeWidth:"2",strokeDasharray:n?"2.2":void 0}):(0,e.jsxs)(e.Fragment,{children:["no-child"!==r&&(0,e.jsx)("path",{d:"M14 0V14",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"dashed-child"===r?"2.2":void 0}),(0,e.jsx)("circle",{className:"circle"+(i?" highlighted":""),r:i?"4":"3",cx:"14",cy:"17",transform:"rotate(180 14 17)",stroke:"currentColor",strokeWidth:"2",fill:o?"currentColor":void 0})]}),(0,e.jsx)("path",{d:"M14 20C14 25 11 27 8 27C5 27 2 29 2 34",stroke:"currentColor",strokeWidth:"2",strokeDasharray:n?"2.2":void 0})]}))},yn=function(t){var n=t.isLast,r=t.dashed,i=n?22:12;return(0,e.jsx)("div",Object.assign({className:"branch-indicator-flex-grow"},{children:(0,e.jsx)("svg",Object.assign({width:i,height:"34",style:{height:"0",flexShrink:"1",flexGrow:"1"},viewBox:"0 0 ".concat(i," 34"),fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,e.jsx)("path",{d:"M 11 0 V34",stroke:"currentColor",vectorEffect:"non-scaling-stroke",strokeWidth:"2",strokeDasharray:r?"2.2":void 0})}))}))},bn=(0,t.memo)((0,a.Pi)((function(n){var r,i,a=n.depth,u=n.tree,l=n.firstChildNeedsRestack,c=n.isIndicatorCurved,d=n.dashedLevels,f=u.info,p=u.previewType,v=u.children.length>0,g=f.partOfTrunk,m=re.get(),y=Pe.has(f.branch),b=function(e){switch(e){case G.REBASE_OLD:case G.REBASE_DESCENDANT:case G.REBASE_ROOT:case G.HIDDEN_DESCENDANT:case G.NON_ACTIONABLE_COMMIT:return!0;default:return!1}}(p),_=(0,t.useCallback)((function(){ae._.set({comparison:{type:s.ComparisonType.Committed,hash:f.branch},visible:!0})}),[f,ae._]),w=p===G.REBASE_ROOT||p===G.REBASE_DESCENDANT,k=(0,t.useCallback)((function(){w||(0,q.tD)(new de(f.branch))}),[w,f.branch]),x=(0,t.useCallback)((function(){Ie(f.branch)}),[]),C=_e(f.branch),O="Submit ".concat(C.length>1?"".concat(C.length," PRs"):"PR"),S=me(null===(r=f.pr)||void 0===r?void 0:r.number).get(),E=S.value&&"OPEN"!==S.value.state,j=h((function(){var t=[{label:(0,e.jsx)(e.Fragment,{children:"Copy branch name"}),onClick:function(){return Z.J.clipboardCopy(f.branch)}}];if(b||f.isHead||t.push({label:(0,e.jsx)(e.Fragment,{children:"Checkout branch"}),onClick:k}),!g&&f.isHead&&!v&&!f.pr){var n=Te(f.branch).get();t.push({label:(0,e.jsx)(e.Fragment,{children:"Pop branch"}),onClick:function(){var e;return(0,q.tD)(new an(f,(null===(e=n.data)||void 0===e?void 0:e.files)||[]))}})}return g||Z.J.openDiff||t.push({label:(0,e.jsx)(e.Fragment,{children:"View changes in branch"}),onClick:_}),g||b||t.push({label:(0,e.jsx)(e.Fragment,{children:"Untrack"}),onClick:function(){Z.J.confirm("Are you sure you want to untrack ".concat(f.branch,"?").concat(v?" This will also untrack upstack branches.":"")).then((function(e){return e&&(0,q.tD)(new on(f.branch))}))}}),g||b||E||t.push({label:(0,e.jsx)(e.Fragment,{children:"Delete branch"}),onClick:function(){Z.J.confirm("Are you sure you want to delete ".concat(f.branch,"? Deleted branches cannot be recovered.")).then((function(e){return e&&(0,q.tD)(new rn(f.branch))}))}}),t})),T=f.isHead||(null==m?void 0:m.branchName)===f.branch,R=xn.commitBeingDragged,D=R&&q.uB.get().get(R.branch),I=D&&(0,ln.SG)(f.branch,D),P=q.ip.get(),N="success"===(null==P?void 0:P.type)&&P.trunkBranch,M=N&&f.branch!==N&&!f.parents.includes(N)&&we(i=u.info.branch).every((function(e){var t;if(e.partOfTrunk)return!0;var n=me(null===(t=e.pr)||void 0===t?void 0:t.number).get(),r=n.value&&"OPEN"!==n.value.state;return e.branch!==i===r})),L=ne.get().length>0,z=M?(0,e.jsx)(Ne,Object.assign({disabled:b,toHighlight:kn(u)},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(){(0,q.tD)(new sn(u.info.branch,N))},disabled:b,title:"Move to ".concat(N)},{children:(0,e.jsx)("div",Object.assign({className:"restack-button"},{children:(0,e.jsx)(A.J,{size:"SM",icon:"newline"})}))}))})):f.needsRestack?(0,e.jsx)(Ne,Object.assign({disabled:b,title:"The parent branch has been updated, and children branches need to be restacked to incorporate those changes.",toHighlight:kn(u)},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",title:"Restack",onClick:function(){(0,q.tD)(new un(u.info.branch))},disabled:b},{children:(0,e.jsx)(A.J,{size:"SM",icon:"fold-up"})}))})):null,F=re.get(),B=T&&L&&!F,H="pr-title"===xt.get()&&f.title,V=!g&&function(e){switch(e){case G.REBASE_DESCENDANT:case G.REBASE_OLD:case G.HIDDEN_DESCENDANT:return!1;case G.REBASE_ROOT:case G.REBASE_OPTIMISTIC_DESCENDANT:case G.REBASE_OPTIMISTIC_ROOT:default:return!0}}(p),U=V&&0===q.OR.get().length;return(0,e.jsxs)(e.Fragment,{children:[B&&(0,e.jsx)(wn,{depth:a+(v?1:0),isIndicatorCurved:v,dashedLevels:d}),!p&&xn.branchBeingDraggedOver===f.branch&&(0,e.jsx)("div",{className:"branch-drag-over"}),(0,e.jsxs)(Sn,Object.assign({className:"branch"+((F&&T&&void 0===$.get()||$.get()===f.branch)&&!w?" branch-focused":"")+(T?" branch-checked-out":"")+(I?" branch-in-stack-being-dragged":"")+(null!=p?" branch-preview-".concat(p):""),commit:f,draggable:V,onClick:function(){w||$.set(T&&F?void 0:f.branch)},onDoubleClick:k,onContextMenu:j},{children:[(0,e.jsx)(vn,{child:v||B?l?"dashed":"solid":"no",depth:a,isCurved:c,dashedLevels:[].concat((0,X.Z)(d),(0,X.Z)(f.needsRestack?[a]:[])),highlighted:y,checkedOut:T}),T&&p!==G.REBASE_ROOT&&p!==G.REBASE_DESCENDANT&&(0,e.jsx)("div",{className:"branch-checkout-triangle"}),(0,e.jsxs)("span",Object.assign({title:H?f.branch:f.title,className:"branch-name"+("wrap"===Ct.get()?" branch-name-wrap":" branch-name-nowrap")+(T&&F?" unresolved-conflicts":"")},{children:[u.previewType===G.REBASE_ROOT?"Move ":"",H?f.title:(0,e.jsx)("code",{children:f.branch}),u.previewType===G.REBASE_ROOT?"?":"",T&&F?" (unresolved conflicts)":""]})),T&&F||u.previewType===G.REBASE_DESCENDANT?null:(0,e.jsx)("div",Object.assign({className:"branch-end"},{children:u.previewType===G.REBASE_ROOT?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:q.U8},{children:(0,e.jsx)(A.J,{size:"SM",icon:"close"})})),(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:q.S7},{children:(0,e.jsx)(A.J,{size:"SM",icon:"check"})}))]}):(0,e.jsxs)(e.Fragment,{children:[z,E&&(0,e.jsx)(o.vD,Object.assign({appearance:"icon",title:"Delete branch",onClick:function(){Z.J.confirm("Are you sure you want to delete ".concat(f.branch,"? Deleted branches cannot be recovered.")).then((function(e){return e&&(0,q.tD)(new rn(f.branch))}))}},{children:(0,e.jsx)(A.J,{size:"SM",icon:"trashcan"})})),Oe.get()&&!b&&!ke(f.branch)&&C.length>0&&!xe(f.branch)&&(0,e.jsx)(Ne,Object.assign({toHighlight:C,title:O},{children:(0,e.jsx)(o.vD,Object.assign({appearance:"icon",onClick:function(e){e.stopPropagation(),x()}},{children:(0,e.jsx)(A.J,{size:"SM",icon:"cloud-upload"})}))})),(0,e.jsx)("div",Object.assign({className:"pr-badge-container"},{children:f.pr&&(0,e.jsx)(cn,{diffId:f.pr.number})})),(0,e.jsx)(_n,{date:new Date(f.date)}),(0,e.jsx)("div",Object.assign({className:"branch-gripper"+(U?"":" branch-gripper-disabled"),title:U?"Drag and drop to move onto another branch":"Cannot move a branch while you have uncommitted changes"},{children:(0,e.jsx)(A.J,{size:"SM",icon:"gripper"})}))]})}))]}))]})})));function _n(t){var n=t.date;return(0,e.jsx)("span",Object.assign({className:"branch-date"},{children:(0,e.jsx)(nn,{date:n,useShortVariant:!0})}))}var wn=(0,a.Pi)((function(t){var n=t.depth,r=t.isIndicatorCurved,i=t.dashedLevels,o=re.get(),a=ne.get();return o||0!==a.length?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",Object.assign({className:"branch"+(void 0===$.get()?" branch-focused":""),onClick:(0,f.aD)((function(){$.set(void 0)}))},{children:[(0,e.jsx)(vn,{child:"no",depth:n,isCurved:r,dashedLevels:i}),(0,e.jsx)("span",Object.assign({className:"branch-name "+(o?"unresolved-conflicts":"uncommitted-changes")},{children:o?"Unresolved conflicts":"Uncommitted changes"}))]}))}):null}));function kn(e){return[e.info].concat((0,X.Z)(e.children.flatMap((function(e){return kn(e)}))))}var xn=(0,f.LO)({commitBeingDragged:void 0,branchBeingDraggedOver:void 0}),Cn=(0,f.aD)((function(e){if(xn.commitBeingDragged&&e.branch!==xn.commitBeingDragged.branch){var t=q.uB.get().get(xn.commitBeingDragged.branch);!t||(0,ln.SG)(e.branch,t)||xn.commitBeingDragged.parents.includes(e.branch)?xn.branchBeingDraggedOver=void 0:xn.branchBeingDraggedOver=e.branch}else xn.branchBeingDraggedOver=void 0})),On=(0,f.aD)((function(){var e=xn.commitBeingDragged,t=xn.branchBeingDraggedOver;e&&t&&q.wf.set(new sn(e.branch,t)),xn.commitBeingDragged=void 0,xn.branchBeingDraggedOver=void 0})),Sn=(0,a.Pi)((function(n){var r=n.commit,i=n.children,o=n.className,a=n.draggable,s=n.onClick,u=n.onDoubleClick,l=n.onContextMenu,c=(0,t.useRef)(null),d=(0,t.useCallback)((function(e){var t=c.current;if(q.OR.get().length>0||!t)e.preventDefault();else{var n=t.cloneNode(!0);n.style.opacity="0",document.body.appendChild(n),e.dataTransfer.setDragImage(n,0,0),(0,f.z)((function(){xn.commitBeingDragged=r})),e.target.addEventListener("dragend",On)}}),[r]),h=(0,t.useCallback)((function(){return Cn(r)}),[r]);return(0,e.jsx)("div",Object.assign({ref:c,className:o,onDragStart:d,onDragEnter:h,draggable:a,onClick:s,onDoubleClick:u,onKeyPress:function(e){"Enter"===e.key&&(null==s||s(e))},onContextMenu:l,tabIndex:0,"data-testid":"draggable-commit"},{children:i}))})),En=(0,he.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedRepoMessage",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchRepoMessage"})}))},function(e){var t=e.setSelf;return u.H.onCwdChanged((function(){return t("")}))}]}),jn=(0,a.Pi)((function(){var t=En.get();return t?(0,e.jsx)(c,{title:t}):null})),Tn=(0,f.Fl)((function(){return ie.get().trees.map((function(e){return In({tree:e})}))})),An=(0,a.Pi)((function(){!function(){var e=q.gi.get(),n=q.lp.get(),r=q.ql.get(),i=q.uB.get(),o=q.cC.get(),a=q.SC.get(),u=q.il.get();(0,t.useEffect)((function(){for(var t,l,c,d,f=[],h={trees:n,headCommit:r,treeMap:i},p={uncommittedChanges:null!==(t=o.files)&&void 0!==t?t:[]},v={conflicts:a},g=u.currentOperation,m=0,y=[].concat((0,X.Z)(u.operationHistory),[g]);m<y.length;m++){var b=y[m];b&&f.push(C(b,h,p,v))}if(f.some(s.notEmpty)){for(var _=(0,X.Z)(u.operationHistory),w=null==u.currentOperation?void 0:Object.assign({},u.currentOperation),k=0;k<f.length-1;k++)(null===(l=f[k])||void 0===l?void 0:l.commits)&&(_[k]=Object.assign(Object.assign({},_[k]),{hasCompletedOptimisticState:!0})),(null===(c=f[k])||void 0===c?void 0:c.files)&&(_[k]=Object.assign(Object.assign({},_[k]),{hasCompletedUncommittedChangesOptimisticState:!0})),(null===(d=f[k])||void 0===d?void 0:d.conflicts)&&(_[k]=Object.assign(Object.assign({},_[k]),{hasCompletedMergeConflictsOptimisticState:!0}));var x=f[f.length-1];x&&null!=w&&(x.commits&&(w.hasCompletedOptimisticState=!0),x.files&&(w.hasCompletedUncommittedChangesOptimisticState=!0),x.conflicts&&(w.hasCompletedMergeConflictsOptimisticState=!0)),q.il.set({operationHistory:_,currentOperation:w})}function C(t,n,r,i){var a,u,l,c,d,f,h=!1,p=!1,v=!1;if(null!=t&&!t.hasCompletedUncommittedChangesOptimisticState)if(null!=t.operation.makeOptimisticUncommittedChangesApplier){var g=t.operation.makeOptimisticUncommittedChangesApplier(r);null!=t.exitCode&&(null==g||0!==t.exitCode?h=!0:o.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(a=te())||void 0===a||a.track("OptimisticFilesStateForceResolved",{extras:{}}),h=!0))}else null!=t.exitCode&&(h=!0);if(null!=t&&!t.hasCompletedMergeConflictsOptimisticState)if(null!=t.operation.makeOptimisticMergeConflictsApplier){var m=t.operation.makeOptimisticMergeConflictsApplier(i);null!=t.exitCode&&(null==m||0!==t.exitCode?v=!0:(null!==(l=null===(u=i.conflicts)||void 0===u?void 0:u.fetchStartTimestamp)&&void 0!==l?l:0)>(0,s.unwrap)(t.endTime).valueOf()&&(null===(c=te())||void 0===c||c.track("OptimisticConflictsStateForceResolved",{extras:{operation:(f=t.operation,f.constructor.opName)}}),v=!0))}else null!=t.exitCode&&(v=!0);if(null!=t&&!t.hasCompletedOptimisticState)if(null!=t.operation.makeOptimisticApplier){var y=t.operation.makeOptimisticApplier(n);null!=t.exitCode&&(null==y||0!==t.exitCode?p=!0:e.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(d=te())||void 0===d||d.track("OptimisticCommitsStateForceResolved",{extras:{}}),p=!0))}else null!=t.exitCode&&(p=!0);if(p||h||v)return{commits:p,files:h,conflicts:v}}}),[u,r,n,i,o,a,e])}();var n=q.ZB.get();return null==n&&0===Tn.get().length?(0,e.jsx)(Ht,{children:(0,e.jsx)(Bt,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(jn,{}),(0,e.jsx)(Ut,{}),n?(0,e.jsx)(Rn,{error:n}):null,(0,e.jsx)(e.Fragment,{children:Tn.get().map((function(t){var n,r;return(0,e.jsx)(Dn,{branchTreeModel:t},null!==(r=null===(n=t.at(-1))||void 0===n?void 0:n.tree.info.branch)&&void 0!==r?r:"should-not-happen")}))}),(0,e.jsx)("div",{onClick:(0,f.aD)((function(){return $.set(void 0)})),className:"tree-line-extend"})]})})),Rn=(0,a.Pi)((function(t){var n=t.error;return n.message===s.ErrorShortMessages.NoCommitsFetched?(0,e.jsx)(y.W,{title:"No commits found",description:"If this is a new repository, try adding an initial commit first.",error:n,buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(){(0,q.tD)(new Vt)}},{children:"Create empty initial commit"}))]}):(0,e.jsx)(y.W,{title:"Failed to fetch commits",error:n})})),Dn=(0,a.Pi)((function(t){var n=t.branchTreeModel;return(0,e.jsx)(e.Fragment,{children:n.map((function(t){var n=t.tree,r=t.depth,i=t.isFirstChild,o=t.dashedLevels,a=t.firstChildNeedsRestack;return(0,e.jsx)(bn,{depth:r,tree:n,firstChildNeedsRestack:a,isIndicatorCurved:!i,dashedLevels:o},n.info.branch+(n.previewType?"/"+n.previewType:""))}))})}));function In(e){var t,n,r=e.tree,i=e.depth,o=void 0===i?0:i,a=e.isFirstChild,u=void 0===a||a,l=e.dashedLevels,c=void 0===l?[]:l,d=r.children.reduce((function(e,t){return e.find((function(e){return e.info.branch===t.info.branch&&e.previewType===t.previewType}))?e:[].concat((0,X.Z)(e),[t])}),[]),f=null!==(n=null===(t=d[0])||void 0===t?void 0:t.info.needsRestack)&&void 0!==n&&n,h=d.sort((function(e,t){var n=new Date(t.info.date).getTime()-new Date(e.info.date).getTime();return 0!==n?n:e.info.branch.localeCompare(t.info.branch)})).map((function(e,t){var n=0===t,r=o+(n?0:1),i=[].concat((0,X.Z)(n?c.filter((function(e){return e!==r})):c),(0,X.Z)(!n&&f?[o]:[]));return In({tree:e,isFirstChild:n,depth:r,dashedLevels:i})})).flat().filter(s.notEmpty);return[].concat((0,X.Z)(h),[{tree:r,depth:o,isFirstChild:u,firstChildNeedsRestack:f,dashedLevels:c}])}n(5297);var Pn=(0,t.lazy)((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{a(r.next(e))}catch(e){t(e)}}function o(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}a((r=r.apply(undefined,[])).next())}))}(0,0,void 0,Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([n.e(697),n.e(274)]).then(n.bind(n,3274)).then((function(e){return{default:e.ComparisonView}})));case 1:case"end":return e.stop()}}),e)})))})),Nn=(0,a.Pi)((function(){var n=ae._.get();function r(e){(0,f.z)((function(){var t=ae._.get();ae._.set(t.comparison===e?{visible:!n.visible,comparison:e}:{visible:!0,comparison:e})}))}return T("Escape",(function(){(0,f.z)((function(){var e=ae._.get();ae._.set(Object.assign(Object.assign({},e),{visible:!1}))}))})),T("OpenUncommittedChangesComparisonView",(function(){r({type:s.ComparisonType.UncommittedChanges})})),T("OpenHeadChangesComparisonView",(function(){r({type:s.ComparisonType.HeadChanges})})),n.visible?(0,e.jsx)(R,Object.assign({className:"comparison-view-modal"},{children:(0,e.jsx)(t.Suspense,Object.assign({fallback:(0,e.jsx)(A.J,{icon:"loading"})},{children:(0,e.jsx)(Pn,{comparison:n.comparison})}))})):null})),Mn=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"DownstackGetOperation")).branchName=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["get",this.branchName]}}]),n}(z);Mn.opName="DownstackGet";var Ln=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"TrackOperation")).options=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["track",this.options.branchToTrack,"--parent",this.options.parent]}}]),n}(z);Ln.opName="Track";var Zn=(0,he.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedAllBranches",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchAllBranches"})}))}]}),zn=(0,a.Pi)((function(){var t=q.OR.get().length>0;return(0,e.jsx)(bt,Object.assign({component:function(t){return(0,e.jsx)(Hn,{dismiss:t})},placement:"bottom"},{children:(0,e.jsx)(o.vD,Object.assign({title:t?"You have uncommitted changes.":"Get branch",disabled:t,appearance:"icon","data-testid":"download-commits-tooltip-button"},{children:(0,e.jsx)(A.J,{icon:"cloud-download"})}))}))})),Fn=(0,f.Fl)((function(){var e;return null===(e=Zn.get())||void 0===e?void 0:e.branches.filter((function(e){return!q.qC.get().some((function(t){return t.branch===e}))}))})),Bn=(0,f.ky)({selectedBranchToTrack:void 0,setSelectedBranchToTrack:function(e){this.selectedBranchToTrack=e},trackParent:void 0,setTrackParent:function(e){this.trackParent=e},potentialParents:void 0,fetchPotentialParentsDisposable:void 0});(0,f.U5)((function(){return Bn.selectedBranchToTrack}),(function(e){var t;null===(t=Bn.fetchPotentialParentsDisposable)||void 0===t||t.dispose(),Bn.fetchPotentialParentsDisposable=void 0,e&&(u.H.postMessage({type:"fetchPotentialParents",branchToTrack:e}),Bn.fetchPotentialParentsDisposable=u.H.onMessageOfType("fetchedPotentialParents",(function(e){Bn.potentialParents=e.message.potentialParents.filter((function(e){return q.qC.get().some((function(t){return t.branch===e}))}))})))}));var Hn=(0,a.Pi)((function(n){var r,i,a,s,u=n.dismiss,l=q.OR.get().length>0,c=(0,t.useState)(""),f=(0,d.Z)(c,2),h=f[0],p=f[1],v=(0,t.useRef)(null);(0,t.useEffect)((function(){v.current&&v.current.focus()}),[v]);var g=null===(r=Fn.get())||void 0===r?void 0:r.map((function(t){return(0,e.jsx)(o.nH,Object.assign({value:t},{children:t}),t)})),m=null===(i=Bn.potentialParents)||void 0===i?void 0:i.map((function(t){return(0,e.jsx)(o.nH,Object.assign({value:t},{children:t}),t)}));return(0,e.jsxs)("div",Object.assign({className:"get-menu"},{children:[(0,e.jsx)("div",Object.assign({className:"get-title"},{children:"Track a local branch"})),(0,e.jsxs)("div",Object.assign({className:"get-description"},{children:["Add an existing local branch to Graphite by selecting its parent branch."," ",(0,e.jsx)(o.Np,Object.assign({href:"https://graphite.dev/docs/track-branches",target:"_blank"},{children:(0,e.jsx)(e.Fragment,{children:"Learn More"})}))]})),(0,e.jsxs)(o.Yb,Object.assign({value:null!==(a=Bn.selectedBranchToTrack)&&void 0!==a?a:"",onChange:function(e){Bn.setSelectedBranchToTrack(e.currentTarget.value),Bn.setTrackParent(void 0)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"",disabled:!!Bn.selectedBranchToTrack},{children:"Select a branch to track"})),g]})),(0,e.jsxs)(o.Yb,Object.assign({className:"track-select",value:null!==(s=Bn.trackParent)&&void 0!==s?s:"",disabled:!Bn.potentialParents,onChange:function(e){Bn.setTrackParent(e.currentTarget.value)}},{children:[(0,e.jsx)(o.nH,Object.assign({value:"",disabled:!!Bn.trackParent},{children:"Select a parent"})),m]})),(0,e.jsx)(o.vD,Object.assign({title:l?"Cannot track with uncommitted changes":"",appearance:"primary",disabled:!Bn.selectedBranchToTrack||!Bn.trackParent,onClick:function(){Bn.selectedBranchToTrack&&Bn.trackParent&&((0,q.tD)(new Ln({branchToTrack:Bn.selectedBranchToTrack,parent:Bn.trackParent})),u())}},{children:(0,e.jsx)(e.Fragment,{children:"Track branch"})})),(0,e.jsx)("hr",{className:"get-hr"}),(0,e.jsx)("div",Object.assign({className:"get-title"},{children:"Get a remote branch"})),(0,e.jsxs)("div",Object.assign({className:"get-description"},{children:["Collaborate on a remote Graphite branch by pulling it and its ancestors into your repository. Checks out the branch after fetching."," ",(0,e.jsx)(o.Np,Object.assign({href:"https://graphite.dev/docs/collaborate-on-a-stack",target:"_blank"},{children:(0,e.jsx)(e.Fragment,{children:"Learn More"})}))]})),(0,e.jsx)(o.OG,{placeholder:"Branch name or PR number...",value:h,onKeyUp:function(e){var t,n;"Enter"!==e.key?p(null!==(n=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:""):h.trim().length>0&&((0,q.tD)(new Mn(h)),u())},ref:v}),(0,e.jsx)(o.vD,Object.assign({title:l?"Cannot get with uncommitted changes":"",appearance:"primary",onClick:function(){(0,q.tD)(new Mn(h)),u()}},{children:(0,e.jsx)(e.Fragment,{children:"Get branch"})}))]}))}));function Vn(t){var n,r=t.options,i=t.appearance,a=t.onClick,s=t.selected,u=t.onChangeSelected,l=t.buttonDisabled,c=t.pickerDisabled,d=t.icon,f=null!==(n=r.find((function(e){return e.id===s.id})))&&void 0!==n?n:r[0];return(0,e.jsxs)("div",Object.assign({className:"vscode-button-dropdown"},{children:[(0,e.jsxs)(o.vD,Object.assign({appearance:i,onClick:l?void 0:function(){return a(s)},disabled:l},{children:[null!=d?d:null," ",f.label]})),(0,e.jsx)("select",Object.assign({disabled:c,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=r.find((function(t){return t.id===e.target.value}));null!=t&&u(t)},value:s.id},{children:r.map((function(t){return(0,e.jsx)("option",Object.assign({value:t.id},{children:t.label}),t.id)}))}))]}))}var Un=function(e){(0,x.Z)(n,e);var t=(0,C.Z)(n);function n(e){var r;return(0,k.Z)(this,n),(r=t.call(this,"PullOperation")).options=e,r}return(0,w.Z)(n,[{key:"getArgs",value:function(){return["sync",this.options.deleteBranches?"-f":"--no-delete"]}}]),n}(z);Un.opName="Pull";var Kn=[{id:"pull",label:(0,e.jsx)(e.Fragment,{children:"Sync"}),getOperation:function(){return new Un({deleteBranches:!0})},isRunning:function(e){return e instanceof Un},tooltip:"Pull trunk, clean up merged branches, and restack branches that don't have conflicts to resolve."},{id:"pnd",label:(0,e.jsx)(e.Fragment,{children:"Sync (skip cleanup)"}),getOperation:function(){return new Un({deleteBranches:!1})},isRunning:function(e){return e instanceof Un},tooltip:"Pull trunk and restack branches that don't have conflicts to resolve."}],qn=(0,J.X)({config:"gti.pull-button-choice",default:Kn[0].id}),$n=(0,a.Pi)((function(){var t,n=null!==(t=Kn.find((function(e){return e.id===qn.get()})))&&void 0!==t?t:Kn[0],r=function(){var e,t,n=q.il.get(),r=q.zV.get();return r.length>0?r.at(-1):null==(null===(e=n.currentOperation)||void 0===e?void 0:e.exitCode)?null===(t=n.currentOperation)||void 0===t?void 0:t.operation:void 0}(),i=null!=r&&n.isRunning(r);return(0,e.jsx)("div",Object.assign({className:"pull-info",title:i?"Pull is already running.":n.tooltip},{children:(0,e.jsx)(Vn,{appearance:"secondary",buttonDisabled:!!i,options:Kn,onClick:function(){return(0,q.tD)(n.getOperation())},onChangeSelected:function(e){return qn.set(e.id)},selected:n,icon:(0,e.jsx)(A.J,{slot:"start",icon:i?"loading":"repo"})})}))})),Yn=(0,a.Pi)((function(){var t=q.R0.get(),n=q.WK.get();return t?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",Object.assign({className:"top-bar-buttons"},{children:[(0,e.jsx)("span",Object.assign({className:"button-group"},{children:n&&(0,e.jsx)($n,{})})),(0,e.jsxs)("span",Object.assign({className:"button-group"},{children:[(0,e.jsx)(Wn,{}),(0,e.jsx)(Gn,{}),(0,e.jsx)(zn,{}),(0,e.jsx)(jt,{})]}))]}))}):null})),Wn=(0,a.Pi)((function(){var t=Ce.get();return"ok"===(null==t?void 0:t.status)?null:(0,e.jsx)(o.vD,Object.assign({title:t?"no_token"===t.status?"You have not authenticated the Graphite CLI. Click to authenticate.":"invalid_token"===t.status?"Your Graphite CLI authentication is not valid. Click to authenticate.":"no_repo_access"===t.status?"Graphite does not have permissions to submit PRs in this repository. Click to update your GitHub access settings":"Unknown authentication error. Click to retry.":"Unable to connect to Graphite servers. Click to retry.",onClick:function(){t?"no_token"!==t.status&&"invalid_token"!==t.status?"no_repo_access"!==t.status||Z.J.openExternalLink("https://app.graphite.dev/settings"):Z.J.openExternalLink("https://app.graphite.dev/settings/cli"):u.H.postMessage({type:"fetchAuthStatus"})},appearance:"icon"},{children:(0,e.jsx)("div",Object.assign({className:"auth-warning-icon"},{children:(0,e.jsx)(A.J,{icon:"warning"})}))}))}));function Gn(){var t=(0,q.b8)();return(0,e.jsx)(o.vD,Object.assign({title:"Refresh",appearance:"icon",onClick:function(){l.track("ClickedRefresh"),t(),u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},"data-testid":"refresh-button"},{children:(0,e.jsx)(A.J,{icon:"refresh"})}))}var Jn=n(3793),Qn=(0,a.Pi)((function(t){var n=t.children;return(0,e.jsxs)("div",Object.assign({className:"welcome"},{children:[(0,e.jsxs)("span",Object.assign({className:"welcome-title"},{children:["Welcome to Graphite"," ","vscode"===(0,Jn.i)()?"for VS Code":"Interactive!"]})),(0,e.jsx)(e.Fragment,{children:n})]}))})),Xn=(0,J.X)({config:"gti.is-onboarded",default:"loading",defaultAfterNetworkReturn:!1}),er=(0,a.Pi)((function(){return(0,e.jsx)(Qn,{children:(0,e.jsx)(tr,{})})})),tr=(0,a.Pi)((function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",Object.assign({className:"welcome-text"},{children:"The magic of the Graphite CLI, right in your editor."})),(0,e.jsx)(o.vD,Object.assign({appearance:"primary",onClick:function(){return Xn.set(!0)}},{children:"Let's go!"})),(0,e.jsx)("a",Object.assign({href:"https://graphite.dev/docs/vs-code-extension-quick-start",target:"_blank",className:"welcome-text-small"},{children:"Learn more"}))]})})),nr=(0,a.Pi)((function(t){var n=t.cwd;return(0,e.jsx)(Qn,{children:(0,e.jsx)(ir,{cwd:n})})})),rr=["main","master","dev","develop","next"],ir=(0,a.Pi)((function(n){var r,i=n.cwd,a=i.split(i.includes("/")?"/":"\\").pop(),s=null===(r=Zn.get())||void 0===r?void 0:r.branches.sort((function(e,t){return!rr.includes(e)&&!rr.includes(t)||rr.includes(e)&&rr.includes(t)?e.localeCompare(t):rr.includes(e)?-1:1})),l=(0,t.useState)(),c=(0,d.Z)(l,2),f=c[0],h=c[1],p=(0,t.useState)(!1),v=(0,d.Z)(p,2),g=v[0],m=v[1];return(0,t.useEffect)((function(){return u.H.onMessageOfType("initializedRepository",(function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()})).dispose}),[]),(0,t.useEffect)((function(){return u.H.onMessageOfType("failedToInitializeRepository",(function(){m(!0)})).dispose}),[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("span",Object.assign({className:"welcome-text"},{children:["Initialize Graphite in ",(0,e.jsx)("strong",{children:a})," to get started."]})),(0,e.jsx)("span",Object.assign({className:"welcome-text-small"},{children:"Select a trunk branch, which you will open pull requests against."})),s&&s.length>0?(0,e.jsxs)("select",Object.assign({value:f,onChange:function(e){h(e.currentTarget.value)}},{children:[(0,e.jsx)("option",Object.assign({value:"",disabled:!0,selected:!0,hidden:!0},{children:"Select a trunk branch"})),s.map((function(t){return(0,e.jsx)("option",Object.assign({value:t},{children:t}),t)}))]})):null,(0,e.jsx)(o.vD,Object.assign({appearance:"primary",disabled:!f,title:f?void 0:"Must select a trunk branch to continue",onClick:function(){f&&u.H.postMessage({type:"initializeRepository",trunkBranch:f})}},{children:"Initialize"})),g&&(0,e.jsx)("span",Object.assign({className:"welcome-text-small welcome-error"},{children:"Failed to initialize"})),(0,e.jsx)("a",Object.assign({href:"https://graphite.dev/docs/initialize-in-a-repository",target:"_blank",className:"welcome-text-small"},{children:"Learn more"}))]})})),or=(0,f.LO)({isInstalling:!1,errorMessage:void 0}),ar=function(e){(0,f.z)((function(){return or.isInstalling=!0})),u.H.postMessage({type:"installCli",method:e});var t=u.H.onMessageOfType("installCliResult",(function(e){t.dispose(),(0,f.z)((function(){return or.isInstalling=!1})),"error"!==e.result?lr():(0,f.z)((function(){return or.errorMessage=e.error}))}))},sr=function(){return ar("brew")},ur=function(){return ar("npm")},lr=function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},cr=(0,a.Pi)((function(){var t="vscode"===Z.J.platformName;return(0,e.jsx)(Qn,{children:t?(0,e.jsx)(dr,{}):(0,e.jsx)("span",Object.assign({className:"welcome-text"},{children:"Graphite Interactive cannot find your Graphite CLI installation."}))})})),dr=(0,a.Pi)((function(){return or.errorMessage?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",Object.assign({className:"welcome-text"},{children:"Installation failed"})),(0,e.jsx)("span",Object.assign({className:"welcome-text-small welcome-error"},{children:or.errorMessage})),(0,e.jsx)(o.vD,Object.assign({appearance:"primary",onClick:(0,f.aD)((function(){return or.errorMessage=void 0}))},{children:"Back"}))]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("span",Object.assign({className:"welcome-text"},{children:["Install the Graphite CLI to get started."," ",(0,e.jsx)("a",Object.assign({href:"https://graphite.dev/docs/installing-the-cli",target:"_blank"},{children:"Learn more"}))]})),or.isInstalling?(0,e.jsx)(Ht,{children:(0,e.jsx)(Bt,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({disabled:or.isInstalling,appearance:"primary",onClick:sr},{children:"Run brew installation"})),(0,e.jsx)(o.vD,Object.assign({disabled:or.isInstalling,appearance:"primary",onClick:ur},{children:"Run npm installation"})),(0,e.jsx)(o.vD,Object.assign({disabled:or.isInstalling,appearance:"secondary",onClick:lr},{children:"Refresh"})),(0,e.jsxs)("span",Object.assign({className:"welcome-text-small"},{children:["If you have already installed the Graphite CLI, you may need to reload the extension. If you still see this screen, try manually specifying ",(0,e.jsx)("strong",{children:"Graphite: Command Path"})," in your VS Code settings."]}))," "]})]})})),fr=(0,f.LO)({isUpdating:!1,errorMessage:void 0}),hr=function(){(0,f.z)((function(){return fr.isUpdating=!0})),u.H.postMessage({type:"updateCli"});var e=u.H.onMessageOfType("updateCliResult",(function(t){e.dispose(),(0,f.z)((function(){return fr.isUpdating=!1})),"error"!==t.result?pr():(0,f.z)((function(){return fr.errorMessage=t.error}))}))},pr=function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},vr=(0,a.Pi)((function(){return(0,e.jsx)(Qn,{children:(0,e.jsx)(gr,{})})})),gr=(0,a.Pi)((function(){return fr.errorMessage?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",Object.assign({className:"welcome-text"},{children:"Installation failed"})),(0,e.jsx)("span",Object.assign({className:"welcome-text-small welcome-error"},{children:fr.errorMessage})),(0,e.jsx)(o.vD,Object.assign({appearance:"primary",onClick:(0,f.aD)((function(){return fr.errorMessage=void 0}))},{children:"Back"}))]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",Object.assign({className:"welcome-text"},{children:"You must update the Graphite CLI to continue."})),fr.isUpdating?(0,e.jsx)(Ht,{children:(0,e.jsx)(Bt,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,Object.assign({disabled:fr.isUpdating,appearance:"primary",onClick:hr},{children:"Update"})),(0,e.jsx)(o.vD,Object.assign({disabled:fr.isUpdating,appearance:"secondary",onClick:pr},{children:"Reload"})),(0,e.jsxs)("span",Object.assign({className:"welcome-text-small"},{children:["The update button will detect how you installed Graphite and update it accordingly."," ",(0,e.jsx)("a",Object.assign({className:"welcome-text-small",href:"https://graphite.dev/docs/update-cli",target:"_blank"},{children:"Learn more"}))]}))]})]})})),mr=(0,he.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedUpgradePrompt",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchUpgradePrompt"})}))}]}),yr=(0,a.Pi)((function(){var t=q.Mh.get(),n=function(t,n,r){if("reconnecting"===n.type)return{title:(0,e.jsx)(e.Fragment,{children:"Connection to server was lost"}),error:new Error("Attempting to reconnect...")};if("error"===n.type)return"Invalid token"===n.error?{title:(0,e.jsx)(e.Fragment,{children:"Unable to connect to server. Try closing this window and accessing GTI with a fresh link."}),error:new Error("Invalid connection token. For security, you need to open a new GTI window when the server is restarted.")}:{title:(0,e.jsx)(e.Fragment,{children:"Error connecting to server"}),error:new Error(n.error)};if(r){if("success"===(null==t?void 0:t.type)&&"github"===t.codeReviewSystem.type){var i=(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){Z.J.openExternalLink("https://graphite.dev/docs/graphite-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Learn more"})}));if(r.message.startsWith("NotAuthenticatedError")){var a=new Error("Log in to gh CLI with `gh auth login` to allow requests to GitHub");return a.stack=r.stack,{title:(0,e.jsx)(e.Fragment,{children:"Not Authenticated to GitHub with `gh` CLI"}),error:a,buttons:[i],trackErrorName:"GhCliNotAuthenticated"}}if(r.message.startsWith("GhNotInstalledError")){var s=new Error("Install the `gh` CLI to make requests to GitHub");return s.stack=r.stack,{title:(0,e.jsx)(e.Fragment,{children:"Unable to fetch data from GitHub"}),error:s,buttons:[i],trackErrorName:"GhCliNotInstalled"}}}return{title:(0,e.jsx)(e.Fragment,{children:"Failed to fetch Diffs"}),error:r,trackErrorName:"DiffFetchFailed"}}}(q.ip.get(),t,be.get().error);return null==n?null:(0,e.jsx)(br,{info:n})})),br=(0,a.Pi)((function(t){var n=t.info;return M((function(){null!=n.trackErrorName&&l.error("TopLevelErrorShown",n.trackErrorName,n.error)}),1e3,[n.trackErrorName,n.error]),(0,e.jsx)(y.W,{title:n.title,error:n.error,buttons:n.buttons})})),_r=(0,a.Pi)((function(){var n=q.ip.get(),r=mr.get(),i=r.indexOf(":")+1,a=function(){var e=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=e.current;if(null!=t){var n=new ResizeObserver((function(e){var t=(0,d.Z)(e,1)[0];b.set(t.contentRect.width)}));return n.observe(t),function(){return n.unobserve(t)}}}),[e]),e}(),s=Xn.get();return(0,e.jsxs)("div",Object.assign({className:"main-content-area",ref:a},{children:[(0,e.jsx)(yr,{}),r?(0,e.jsx)(c,{title:r.substring(0,i||void 0),buttons:[(0,e.jsx)(o.vD,Object.assign({appearance:"secondary",onClick:function(e){Z.J.openExternalLink("https://graphite.dev/docs/installing-the-cli"),e.preventDefault(),e.stopPropagation()}},{children:(0,e.jsx)(e.Fragment,{children:"Upgrade docs"})}),"help-button")]}):null,null!=n&&"success"!==n.type||!s?(0,e.jsx)(wr,{repoError:n&&"success"!==n.type?n:void 0}):(0,e.jsx)(An,{})]}))})),wr=(0,a.Pi)((function(t){var n=t.repoError;return M((function(){if(n)switch(n.type){case"cwdNotARepository":l.track("UIEmptyState",{extras:{cwd:n.cwd},errorName:"InvalidCwd"});break;case"invalidCommand":l.track("UIEmptyState",{extras:{command:n.command},errorName:"InvalidCommand"});break;case"unknownError":l.error("UIEmptyState","RepositoryError",n.error)}}),1e3,[n]),n?"cwdNotARepository"===n.type?(0,e.jsx)(nr,{cwd:n.cwd}):"invalidCommand"===n.type?(0,e.jsx)(cr,{}):"invalidVersion"===n.type?(0,e.jsx)(vr,{}):(0,e.jsx)(y.W,{title:(0,e.jsx)(e.Fragment,{children:"Something went wrong"}),error:n.error}):(0,e.jsx)(er,{})}));i.createRoot(document.getElementById("root")).render((0,e.jsx)((function(){return(0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(_.s,{children:(0,e.jsx)(j,{children:(0,e.jsxs)(y.S,{children:[(0,e.jsx)(Yn,{}),(0,e.jsx)(_r,{}),(0,e.jsx)(Mt,{}),(0,e.jsx)(Ft,{}),(0,e.jsx)("div",{className:"tooltip-root-container","data-testid":"tooltip-root-container"}),(0,e.jsx)(Nn,{}),(0,e.jsx)(I,{}),(0,e.jsx)(m,{})]})})})})}),{}))}(),r}()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GraphiteInteractive=t():e.GraphiteInteractive=t()}(self,(function(){return function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},2858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3269:function(e,t,n){var r=n(379);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},9713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},6860:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},8206:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},1109:function(e,t,n){var r=n(9713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},3038:function(e,t,n){var r=n(2858),i=n(3884),o=n(379),a=n(521);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(3646),i=n(6860),o=n(379),a=n(8206);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},7757:function(e,t,n){e.exports=n(9727)},6815:function(e,t,n){"use strict";n.d(t,{S:function(){return f},W:function(){return d}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(885),u=n(184),l=n(2791),c=n(51);function d(e){var t,n=e.title,r=e.description,i=e.error,o=e.buttons,a=e.hideExpand,d=(0,l.useState)(!1),f=(0,s.Z)(d,2),h=f[0],p=f[1],v=null!=r?r:null==i?void 0:i.message;return(0,u.jsxs)("div",{className:"error-notice",onClick:function(){return!a&&p((function(e){return!e}))},children:[(0,u.jsxs)("div",{className:"error-notice-left",children:[a?null:(0,u.jsx)("div",{className:"error-notice-arrow",children:(0,u.jsx)(c.J,{icon:h?"triangle-down":"triangle-right"})}),(0,u.jsxs)("div",{className:"error-notice-content",children:[(0,u.jsx)("span",{className:"error-notice-title",children:n}),v?(0,u.jsx)("span",{className:"error-notice-byline",children:v}):null,h&&i?(0,u.jsx)("span",{className:"error-notice-stack-trace",children:null!==(t=i.stack)&&void 0!==t?t:i.message}):null]})]}),o?(0,u.jsx)("div",{className:"error-notice-buttons",children:o}):null]})}var f=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).state={error:null},i}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=this.state;return null!=t.error?(0,u.jsx)(d,{title:"Something went wrong",error:t.error}):e.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),n}(l.Component)},51:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(184),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function o(e){var t=e.icon,n=e.size,o=e.slot,a=i(e,["icon","size","slot"]);return(0,r.jsx)("div",Object.assign({slot:o,className:"codicon codicon-".concat(t," icon-size-").concat(null!=n?n:"S")},a))}},3336:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=console},7338:function(e,t,n){"use strict";function r(e){var t=e.genKey,n=e.genValue,r={};return function(e){var i=t(e);if(i in r){var o=r[i];if(void 0!==o)return o}var a=n(e);return r[i]=a,a}}n.d(t,{N:function(){return r}})},1485:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(5671),i=n(3144),o=n(7762),a=n(4098);function s(e){var t=new u(e.default,e.setter);if(e.effects){var n,r=(0,o.Z)(e.effects);try{for(r.s();!(n=r.n()).done;)(0,n.value)({setSelf:t.set})}catch(e){r.e(e)}finally{r.f()}}return t}var u=function(){function e(t,n){(0,r.Z)(this,e),this.setter=n,this.value=t,(0,a.rC)(this,{value:a.LO.ref,set:a.aD.bound})}return(0,i.Z)(e,[{key:"get",value:function(){return this.value}},{key:"set",value:function(e){this.value="function"==typeof e?e(this.get()):e,this.setter&&this.setter(this.value)}}]),e}()},6635:function(e,t,n){"use strict";n.d(t,{F:function(){return u},P:function(){return s}});var r=n(184),i=n(32),o=n(2791),a=(0,o.createContext)(void 0),s=(0,i.Pi)((function(e){var t=e.children;return(0,o.useEffect)((function(){var e;return null===(e=window.gtiPlatform)||void 0===e||e.subscribe(),function(){var e;return null===(e=window.gtiPlatform)||void 0===e?void 0:e.unsubscribe()}}),[]),(0,r.jsx)(a.Provider,{value:window.gtiPlatform,children:t})}));function u(){var e=(0,o.useContext)(a);if(!e)throw new Error("No platform provided");return e}},5288:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(88),i=n(4098).LO.box({comparison:{type:r.ComparisonType.UncommittedChanges},visible:!1},{deep:!1})},1828:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(5671),i=n(3144),o=n(88),a=n(4975),s=new(function(){function e(){var t=this;(0,r.Z)(this,e),this.listenersByType=new Map,this.incomingListener=a.j.onMessage((function(e){var n=(0,o.deserializeFromString)(e.data),r=n.type,i=t.listenersByType.get(r);i&&i.forEach((function(e){return e(n)}))})),this.cwdChangeHandlers=[]}return(0,i.Z)(e,[{key:"dispose",value:function(){this.incomingListener.dispose()}},{key:"onMessageOfType",value:function(e,t){var n=this,r=this.listenersByType.get(e);return null==r&&(r=new Set,this.listenersByType.set(e,r)),null==r||r.add(t),{dispose:function(){var r=n.listenersByType.get(e);r&&r.delete(t)}}}},{key:"nextMessageMatching",value:function(e,t){var n=(0,o.defer)(),r=this.onMessageOfType(e,(function(e){t(e)&&(null==r||r.dispose(),r=null,n.resolve(e))}));return n.promise}},{key:"postMessage",value:function(e){a.j.postMessage((0,o.serializeToString)(e))}},{key:"postMessageWithPayload",value:function(e,t){a.j.postMessage((0,o.serializeToString)(Object.assign(Object.assign({},e),{hasBinaryPayload:!0}))),a.j.postMessage(t)}},{key:"onConnectOrReconnect",value:function(e){var t=!0,n=void 0,r=a.j.onChangeStatus((function(r){"reconnecting"===r.type?t=!0:"open"===r.type&&(t&&(n=e()),t=!1)}));return function(){r.dispose(),"function"==typeof n&&n()}}},{key:"onCwdChanged",value:function(e){var t=this;return this.cwdChangeHandlers.push(e),function(){t.cwdChangeHandlers.splice(t.cwdChangeHandlers.indexOf(e),1)}}},{key:"cwdChanged",value:function(){this.cwdChangeHandlers.forEach((function(e){return e()}))}},{key:"onSetup",value:function(e){var t=this.onConnectOrReconnect(e),n=this.onCwdChanged(e);return function(){t(),n()}}}]),e}());window.clientToServerAPI=s},4975:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var r=n(7762),i=n(5671),o=n(3144),a=n(88),s=n(3336),u=n(8433),l="undefined"!=typeof acquireVsCodeApi?acquireVsCodeApi():null,c=function(){function e(t){(0,i.Z)(this,e),this.vscode=t}return(0,o.Z)(e,[{key:"onMessage",value:function(e){return window.addEventListener("message",e),{dispose:function(){return window.removeEventListener("message",e)}}}},{key:"onChangeStatus",value:function(e){return e({type:"open"}),{dispose:function(){}}}},{key:"postMessage",value:function(e){this.vscode.postMessage(e)}}]),e}(),d=function(){function e(t,n){(0,i.Z)(this,e),this.host=t,this.WebSocketType=n,this.status={type:"initializing"},this.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,this.queuedMessages=[],this.handlers=[],this.statusChangeHandlers=[],this.disposed=!1,this.websocket=this.startConnection()}return(0,o.Z)(e,[{key:"dispose",value:function(){this.disposed||(this.disposed=!0,this.websocket.close())}},{key:"startConnection",value:function(){var t,n=this,i=new URL("ws://".concat(this.host,"/ws")),o=u.l.get("token");o&&i.searchParams.append("token",o);var l=u.l.get("cwd");if(l){var c=decodeURIComponent(l);i.searchParams.append("cwd",c)}var d=null===(t=window.gtiPlatform)||void 0===t?void 0:t.platformName;return d&&i.searchParams.append("platform",d),this.websocket=new this.WebSocketType(i.href),this.websocket.addEventListener("open",(function(t){for(s.k.info("websocket open",t),n.exponentialReconnectDelay=e.DEFAULT_RECONNECT_CHECK_TIME_MS,n.websocket.addEventListener("message",(function(e){var t,i=(0,r.Z)(n.handlers);try{for(i.s();!(t=i.n()).done;)(0,t.value)(e)}catch(e){i.e(e)}finally{i.f()}}));n.queuedMessages.length>0;){var i=n.queuedMessages[0];i&&n.websocket.send(i),n.queuedMessages.shift()}n.setStatus({type:"open"})})),this.websocket.addEventListener("close",(function(e){e.code!==a.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE?n.disposed||n.scheduleReconnect():n.setStatus({type:"error",error:e.reason})})),this.websocket}},{key:"setStatus",value:function(e){this.status=e,this.statusChangeHandlers.forEach((function(t){return t(e)}))}},{key:"scheduleReconnect",value:function(){var t=this;this.setStatus({type:"reconnecting"}),s.k.info("websocket connecion closed. Retrying in ".concat(this.exponentialReconnectDelay,"ms")),setTimeout((function(){t.startConnection()}),this.exponentialReconnectDelay),this.exponentialReconnectDelay=Math.min(2*this.exponentialReconnectDelay,e.MAX_RECONNECT_CHECK_TIME_MS)}},{key:"onMessage",value:function(e){var t=this;return this.handlers.push(e),{dispose:function(){var n=t.handlers.indexOf(e);-1!==n&&t.handlers.splice(n,1)}}}},{key:"postMessage",value:function(e){"open"===this.status.type?this.websocket.send(e):this.queuedMessages.push(e)}},{key:"onChangeStatus",value:function(e){var t=this;return this.statusChangeHandlers.push(e),e(this.status),{dispose:function(){var n=t.statusChangeHandlers.indexOf(e);-1!==n&&t.statusChangeHandlers.splice(n,1)}}}}]),e}();d.MAX_RECONNECT_CHECK_TIME_MS=6e4,d.DEFAULT_RECONNECT_CHECK_TIME_MS=100;var f=null!=l?new c(l):new d(location.host,WebSocket)},8194:function(e,t,n){"use strict";n.d(t,{R:function(){return a},X:function(){return o}});var r=n(1485),i=n(1828),o=function(e){var t=e.config,n=e.default,o=e.defaultAfterNetworkReturn,a=!1;return(0,r.u)({default:n,setter:function(e){i.H.postMessage({type:"setConfig",name:t,value:JSON.stringify(e)})},effects:[function(e){var n=e.setSelf,r=i.H.onMessageOfType("gotConfig",(function(e){e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===a&&void 0!==o&&n(o),a=!0)}));return function(){return r.dispose()}},function(){var e=i.H.onConnectOrReconnect((function(){i.H.postMessage({type:"getConfig",name:t})}));return function(){return e()}}]})},a=function(e){var t=e.config,n=e.default,o=e.defaultAfterNetworkReturn,a=!1;return(0,r.u)({default:n,setter:function(e){i.H.postMessage({type:"setPersistentViewState",name:t,value:JSON.stringify(e)})},effects:[function(e){var n=e.setSelf,r=i.H.onMessageOfType("gotPersistentViewState",(function(e){e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===a&&void 0!==o&&n(o),a=!0)}));return function(){return r.dispose()}},function(){var e=i.H.onConnectOrReconnect((function(){i.H.postMessage({type:"getPersistentViewState",name:t})}));return function(){return e()}}]})}},5729:function(e,t,n){"use strict";n.d(t,{SG:function(){return f},XI:function(){return d},t9:function(){return c}});var r=n(7762),i=n(2982),o=n(885),a=n(7757),s=n.n(a),u=s().mark(d),l=function(e,t){return new Date(t.date).getTime()-new Date(e.date).getTime()};function c(e){var t=new Map;return e.forEach((function(e){var n=(0,o.Z)(e.parents,1)[0];if(n){var r=t.get(n);r||(r=new Set,t.set(n,r)),r.add(e)}})),e.filter((function(e){return e.partOfTrunk||0===e.parents.length})).sort(l).map((function e(n){var r,o=n.branch,a=null!==(r=t.get(o))&&void 0!==r?r:[],s=(0,i.Z)(a).sort(l);return{info:n,children:null==s?[]:s.filter((function(e){return!e.partOfTrunk})).map(e)}}))}function d(e){var t,n,i;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,r.Z)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=11;break}if(!((i=n.value).children.length>0)){o.next=7;break}return o.delegateYield(d(i.children),"t0",7);case 7:return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),t.e(o.t1);case 16:return o.prev=16,t.f(),o.finish(16);case 19:case"end":return o.stop()}}),u,null,[[1,13,16,19]])}function f(e,t){var n,i=(0,r.Z)(d([t]));try{for(i.s();!(n=i.n()).done;)if(n.value.info.branch===e)return!0}catch(e){i.e(e)}finally{i.f()}return!1}},2104:function(e,t,n){"use strict";n.d(t,{Mh:function(){return y},OR:function(){return w},R0:function(){return j},S7:function(){return V},SC:function(){return x},Tq:function(){return E},U8:function(){return B},WK:function(){return P},ZB:function(){return S},b8:function(){return H},cC:function(){return _},cM:function(){return g},gi:function(){return C},il:function(){return M},ip:function(){return m},lp:function(){return A},p7:function(){return k},qC:function(){return O},ql:function(){return R},tD:function(){return z},uB:function(){return D},ui:function(){return b},wf:function(){return I},xn:function(){return F},zV:function(){return Z}});var r=n(2982),i=n(7762),o=n(88),a=n(4098),s=n(2791),u=n(1485),l=n(1828),c=n(8194),d=n(5729),f=n(4975),h=n(8433),p={smartlogCommits:"",uncommittedChanges:"",mergeConflicts:""},v=(0,u.u)({default:{info:void 0,cwd:void 0},effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("repoInfo",(function(e){t({info:e.info,cwd:e.cwd})}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestRepoInfo"})}))}]}),m=(0,a.Fl)((function(){var e=v.get();return null==e?void 0:e.info}),{set:function(e){v.set((function(t){return Object.assign(Object.assign({},t),{info:e})}))}}),g=(0,u.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=l.H.onMessageOfType("applicationInfo",(function(e){t(e)}));return function(){return n.dispose()}},function(){return l.H.onSetup((function(){return l.H.postMessage({type:"requestApplicationInfo"})}))}]}),y=(0,u.u)({default:{type:"initializing"},effects:[function(e){var t=e.setSelf,n=f.j.onChangeStatus(t);return function(){return n.dispose()}}]}),b=(0,a.Fl)((function(){var e,t,n=v.get();return null!==(t=null!==(e=null==n?void 0:n.cwd)&&void 0!==e?e:h.l.get("cwd"))&&void 0!==t?t:""})),_=(0,u.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,files:[]},effects:[T("uncommittedChanges",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{files:null!==(r=null!==(n=e.files.value)&&void 0!==n?n:t.files)&&void 0!==r?r:[],error:e.files.error})}))}))]}),w=(0,a.Fl)((function(){return _.get().files})),k=(0,a.Fl)((function(){return _.get().error})),x=(0,u.u)({default:void 0,effects:[T("mergeConflicts",(function(e,t){(0,t.setSelf)(e)}))]}),C=(0,u.u)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,commits:[]},effects:[T("smartlogCommits",(function(e,t){(0,t.setSelf)((function(t){var n,r;return Object.assign(Object.assign({},e),{commits:null!==(r=null!==(n=e.commits.value)&&void 0!==n?n:t.commits)&&void 0!==r?r:[],error:e.commits.error})}))}))]}),O=(0,a.Fl)((function(){return C.get().commits})),S=(0,a.Fl)((function(){return C.get().error})),E=(0,a.Fl)((function(){var e=new Map;return O.get().forEach((function(t){e.set(t.branch,t)})),e}));function T(e,t){return function(n){var r=(0,o.randomId)();p[e]=r;var i=l.H.onMessageOfType("subscriptionResult",(function(i){i.subscriptionID===r&&i.kind===e&&t(i.data,n)})),a=l.H.onSetup((function(){return l.H.postMessage({type:"subscribe",kind:e,subscriptionID:r}),function(){return l.H.postMessage({type:"unsubscribe",kind:e,subscriptionID:r})}}));return function(){i.dispose(),a()}}}(0,c.X)({config:"gti.experimental-features",default:null}),(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(){t(!1)})),l.H.onMessageOfType("beganFetchingSmartlogCommitsEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"smartlogCommits"===e.kind&&t(!1)})),l.H.onMessageOfType("beganLoadingMoreCommits",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),(0,u.u)({default:!1,effects:[function(e){var t=e.setSelf,n=[l.H.onMessageOfType("subscriptionResult",(function(e){"uncommittedChanges"===e.kind&&t(!1)})),l.H.onMessageOfType("beganFetchingUncommittedChangesEvent",(function(){t(!0)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]}),(0,u.u)({default:o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(o.DEFAULT_DAYS_OF_COMMITS_TO_LOAD)}))},function(e){var t=e.setSelf,n=[l.H.onMessageOfType("commitsShownRange",(function(e){t(e.rangeInDays)}))];return function(){n.forEach((function(e){return e.dispose()}))}}]});var A=(0,a.Fl)((function(){var e=O.get();return(0,d.t9)(e)})),R=(0,a.Fl)((function(){return O.get().find((function(e){return e.isHead}))})),D=(0,a.Fl)((function(){var e,t=A.get(),n=new Map,r=(0,i.Z)((0,d.XI)(t));try{for(r.s();!(e=r.n()).done;){var o=e.value;n.set(o.info.branch,o)}}catch(e){r.e(e)}finally{r.f()}return n})),j=(0,a.Fl)((function(){return O.get().length>0})),I=(0,u.u)({default:void 0,effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t(void 0)}))}]}),P=(0,a.Fl)((function(){var e=m.get();return"success"===(null==e?void 0:e.type)&&"none"!==e.codeReviewSystem.type}));function N(e,t){var n;if((null===(n=t.currentOperation)||void 0===n?void 0:n.operation.id)===e.id)return Object.assign({},t);var i=(0,r.Z)(t.operationHistory);null!=t.currentOperation&&i.push(t.currentOperation);var o={operation:e,startTime:new Date};return Object.assign(Object.assign({},t),{operationHistory:i,currentOperation:o})}var M=(0,u.u)({default:{currentOperation:void 0,operationHistory:[]},effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t({currentOperation:void 0,operationHistory:[]})}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"spawn":t((function(t){var n=t,r=L.get(e.id);return null==r?t:N(r,n)}));break;case"stdout":case"stderr":t((function(t){var n;if(null==t)return t;var i=t.currentOperation;return i?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},i),{commandOutput:[].concat((0,r.Z)(null!==(n=null==i?void 0:i.commandOutput)&&void 0!==n?n:[]),[e.message])})}):t}));break;case"exit":t((function(t){if(null==t)return t;var n=t.currentOperation;return n?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},n),{exitCode:e.exitCode,endTime:new Date(e.timestamp)})}):t}))}}));return function(){return n.dispose()}}]}),L=new Map,Z=(0,u.u)({default:[],effects:[function(e){var t=e.setSelf;return l.H.onCwdChanged((function(){return t([])}))},function(e){var t=e.setSelf,n=l.H.onMessageOfType("operationProgress",(function(e){switch(e.kind){case"queue":case"spawn":t((function(){return e.queue.map((function(e){return L.get(e)})).filter((function(e){return null!=e}))}));break;case"error":t((function(){return[]}));break;case"exit":t((function(t){return L.delete(e.id),null!=e.exitCode&&0!==e.exitCode?[]:t}))}}));return function(){return n.dispose()}}]});function z(e){l.H.postMessage({type:"runOperation",operation:{args:e.getArgs(),id:e.id,stdin:e.getStdin(),runner:e.runner,trackEventName:e.trackEventName}}),L.set(e.id,e);var t=M.get();if(null!=(null==t?void 0:t.currentOperation)&&null==t.currentOperation.exitCode){var n=Z.get();Z.set([].concat((0,r.Z)(n||[]),[e]))}else M.set((function(t){return N(e,t)}))}function F(){return(0,s.useCallback)((function(e){var t,n;l.H.postMessage({type:"abortRunningOperation",operationId:e});var r=M.get();(null===(n=null===(t=null==r?void 0:r.currentOperation)||void 0===t?void 0:t.operation)||void 0===n?void 0:n.id)===e&&M.set((function(e){var t=e.currentOperation;return null!=t?Object.assign(Object.assign({},e),{currentOperation:Object.assign({aborting:!0},t)}):e}))}),[])}var B=(0,a.aD)((function(){I.set(void 0)})),V=(0,a.aD)((function(){var e=I.get();I.set(void 0),e&&z(e)}));function H(){return(0,s.useCallback)((function(){M.set((function(e){for(var t,n,i,o,a=(0,r.Z)(e.operationHistory),s=0;s<a.length;s++)if(null!=(null===(t=a[s])||void 0===t?void 0:t.exitCode)){if(!(null===(n=a[s])||void 0===n?void 0:n.hasCompletedOptimisticState)){var u=a[s];u&&(a[s]=Object.assign(Object.assign({},u),{hasCompletedOptimisticState:!0}))}if(!(null===(i=a[s])||void 0===i?void 0:i.hasCompletedUncommittedChangesOptimisticState)){var l=a[s];l&&(a[s]=Object.assign(Object.assign({},l),{hasCompletedUncommittedChangesOptimisticState:!0}))}if(!(null===(o=a[s])||void 0===o?void 0:o.hasCompletedMergeConflictsOptimisticState)){var c=a[s];c&&(a[s]=Object.assign(Object.assign({},c),{hasCompletedMergeConflictsOptimisticState:!0}))}}var d=null==e.currentOperation?void 0:Object.assign({},e.currentOperation);return null!=(null==d?void 0:d.exitCode)&&(d.hasCompletedOptimisticState=!0,d.hasCompletedUncommittedChangesOptimisticState=!0,d.hasCompletedMergeConflictsOptimisticState=!0),{currentOperation:d,operationHistory:a}}))}),[])}},8433:function(e,t,n){"use strict";n.d(t,{l:function(){return v}});var r,i=n(2982),o=n(3336),a=n(5671),s=n(3144),u=n(7757),l=n.n(u),c=n(4098),d=n(1828),f=function(){function e(){(0,a.Z)(this,e),this.platformName="browser",this.mediaMatcher=window.matchMedia("(prefers-color-scheme: dark)"),this.colorScheme=this.mediaMatcher.matches?"dark":"light",(0,c.ky)(this,void 0,{autoBind:!0,deep:!1})}return(0,s.Z)(e,[{key:"confirm",value:function(e,t){var n=window.confirm(e+"\n"+(null!=t?t:""));return Promise.resolve(n)}},{key:"openFile",value:function(e,t){d.H.postMessage({type:"platform/openFile",path:e,options:t})}},{key:"openExternalLink",value:function(e){window.open(e,"_blank")}},{key:"copyToClipboard",value:function(e){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(this,0,void 0,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,navigator.clipboard.writeText(e);case 2:case"end":return t.stop()}}),t)})))}},{key:"subscribe",value:function(){this.mediaMatcher.addEventListener("change",this.onColorSchemeChange)}},{key:"unsubscribe",value:function(){this.mediaMatcher.removeEventListener("change",this.onColorSchemeChange)}},{key:"onColorSchemeChange",value:function(e){this.colorScheme=e.matches?"dark":"light"}}]),e}(),h=null!==(r=window.gtiPlatform)&&void 0!==r?r:new f;window.gtiPlatform=h;var p="GTIInitialParams",v=function(){var e;if(window.location.search&&(e=new Map((0,i.Z)(new URLSearchParams(window.location.search).entries())),o.k.log("Loaded initial params from URL: ",e),"browser"===h.platformName)){try{localStorage.setItem(p,JSON.stringify((0,i.Z)(e.entries())))}catch(e){o.k.log("Failed to save initial params to local storage",e)}window.history.replaceState({},document.title,window.location.pathname),o.k.log("Saved initial params to local storage")}if(!e)try{var t=localStorage.getItem(p);e=new Map(t?JSON.parse(t):[]),o.k.log("Loaded initial params from local storage: ",e)}catch(e){o.k.log("Failed to load initial params from local storage",e)}return null!=e?e:new Map}()},8262:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},32:function(e,t,n){"use strict";n.d(t,{Pi:function(){return x}});var r=n(4098),i=n(2791);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.rC)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(4164);function a(e){return(0,r.Gf)(e)}var s="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function u(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+l}}var l=1e4,c=s?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=u(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(s):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=u(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),d=c.addReactionToTrack,f=c.recordReactionAsCommitted,h=(c.resetCleanupScheduleForTests,c.forceCleanupTimerToRunNowForTests,!1);function p(){return h}var v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function m(e){return"observer".concat(e)}var g=function(){};function y(){return new g}function b(e,t){if(void 0===t&&(t="observed"),p())return e();var n=v(i.useState(y),1)[0],o=v(i.useState(),2)[1],s=function(){return o([])},u=i.useRef(null);if(!u.current)var l=new r.le(m(t),(function(){c.mounted?s():c.changedBeforeMount=!0})),c=d(u,l,n);var h,g,b=u.current.reaction;if(i.useDebugValue(b,a),i.useEffect((function(){return f(u),u.current?(u.current.mounted=!0,u.current.changedBeforeMount&&(u.current.changedBeforeMount=!1,s())):(u.current={reaction:new r.le(m(t),(function(){s()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},s()),function(){u.current.reaction.dispose(),u.current=null}}),[]),b.track((function(){try{h=e()}catch(e){g=e}})),g)throw g;return h}var _="function"==typeof Symbol&&Symbol.for,w=_?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,k=_?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function x(e,t){var n;if(k&&e.$$typeof===k)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");if(p())return e;var r=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(w&&e.$$typeof===w&&(r=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s,u,l=function(e,t){return b((function(){return o(e,t)}),a)};return""!==a&&(l.displayName=a),e.contextTypes&&(l.contextTypes=e.contextTypes),r&&(l=(0,i.forwardRef)(l)),l=(0,i.memo)(l),s=e,u=l,Object.keys(s).forEach((function(e){O[e]||Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(s,e))})),l}var C,O={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};(C=o.unstable_batchedUpdates)||(C=function(e){e()}),(0,r.jQ)({reactionScheduler:C})},4098:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}n.d(t,{Ei:function(){return jn},Fl:function(){return De},Gf:function(){return Kt},LJ:function(){return zn},LO:function(){return Ee},M5:function(){return tn},N7:function(){return an},PS:function(){return sn},Pb:function(){return Wn},U5:function(){return Nt},XP:function(){return on},aD:function(){return At},dw:function(){return Ut},eJ:function(){return nn},jQ:function(){return Ht},kS:function(){return ur},ky:function(){return yn},le:function(){return mt},rC:function(){return mn},so:function(){return H},vP:function(){return Zn},z:function(){return Dt}});var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,u=Object.defineProperty,l=Object.prototype,c=[];Object.freeze(c);var d={};Object.freeze(d);var f="undefined"!=typeof Proxy,h=Object.toString();function p(){f||r("Proxy not available")}function v(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var m=function(){};function g(e){return"function"==typeof e}function y(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function b(e){return null!==e&&"object"==typeof e}function _(e){if(!b(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===h}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function k(e,t,n){u(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function x(e,t,n){u(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function C(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return b(e)&&!0===e[n]}}function O(e){return e instanceof Map}function S(e){return e instanceof Set}var E=void 0!==Object.getOwnPropertySymbols,T="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function A(e){return null===e?null:"object"==typeof e?""+e:e}function R(e,t){return l.hasOwnProperty.call(e,t)}var D=Object.getOwnPropertyDescriptors||function(e){var t={};return T(e).forEach((function(n){t[n]=s(e,n)})),t};function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(){return P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M(e,t)}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var F=Symbol("mobx-stored-annotations");function B(e){return Object.assign((function(t,n){V(t,n,e)}),e)}function V(e,t,n){R(e,F)||k(e,F,P({},e[F])),function(e){return e.annotationType_===G}(n)||(e[F][t]=n)}var H=Symbol("mobx administration"),U=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ue.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return pt(this)},t.reportChanged=function(){ft(),vt(this),ht()},t.toString=function(){return this.name_},e}(),K=C("Atom",U);function q(e,t,n){void 0===t&&(t=m),void 0===n&&(n=m);var r=new U(e);return t!==m&&zt(Mt,r,t,void 0),n!==m&&Zt(r,n),r}var $={identity:function(e,t){return e===t},structural:function(e,t){return dr(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e==1/t:e!=e&&t!=t},shallow:function(e,t){return dr(e,t,1)}};function Y(e,t,n){return rn(e)?e:Array.isArray(e)?Ee.array(e,{name:n}):_(e)?Ee.object(e,void 0,{name:n}):O(e)?Ee.map(e,{name:n}):S(e)?Ee.set(e,{name:n}):"function"!=typeof e||jt(e)||Xt(e)?e:w(e)?Qt(e):Rt(n,e)}function W(e){return e}var G="override";function Q(e,t){return{annotationType_:e,options_:t,make_:J,extend_:X}}function J(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(jt(n.value))return 1;var o=ee(e,this,t,n,!1);return u(r,t,o),2}function X(e,t,n,r){var i=ee(e,this,t,n);return e.defineProperty_(t,i,r)}function ee(e,t,n,r,i){var o,a,s,u,l,c,d,f;void 0===i&&(i=ut.safeDescriptors),f=r,t.annotationType_,f.value;var h,p=r.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(h=e.proxy_)?h:e.target_)),{value:Le(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),p,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:re}}function ne(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!R(e.target_,t)||!Xt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Xt(n.value))return 1;var o=ie(e,this,0,n,!1,!1);return u(r,t,o),2}function re(e,t,n,r){var i,o=ie(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ie(e,t,n,r,i,o){var a;void 0===o&&(o=ut.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return Xt(u)||(u=Qt(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function oe(e,t){return{annotationType_:e,options_:t,make_:ae,extend_:se}}function ae(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function se(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get}(0,this,0,n),e.defineComputedProperty_(t,P({},this.options_,{get:n.get,set:n.set}),r)}function ue(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ce}}function le(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ce(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Y,r)}var de="true",fe=he();function he(e){return{annotationType_:de,options_:e,make_:pe,extend_:ve}}function pe(e,t,n,r){var i,o,a,s;if(n.get)return De.make_(e,t,n,r);if(n.set){var l=Le(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ut.safeDescriptors||e.isPlainObject_,set:l})?0:2:(u(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(s=this.options_)&&s.autoBind?Qt.bound:Qt).make_(e,t,n,r):(null!=(a=this.options_)&&a.autoBind?Rt.bound:Rt).make_(e,t,n,r);var c,d=!1===(null==(i=this.options_)?void 0:i.deep)?Ee.ref:Ee;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),d.make_(e,t,n,r)}function ve(e,t,n,r){var i,o,a;return n.get?De.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!ut.safeDescriptors||e.isPlainObject_,set:Le(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Ee.ref:Ee).extend_(e,t,n,r))}var me={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(e){return e||me}Object.freeze(me);var ye=ue("observable"),be=ue("observable.ref",{enhancer:W}),_e=ue("observable.shallow",{enhancer:function(e,t,n){return null==e||Wn(e)||jn(e)||zn(e)||Vn(e)?e:Array.isArray(e)?Ee.array(e,{name:n,deep:!1}):_(e)?Ee.object(e,void 0,{name:n,deep:!1}):O(e)?Ee.map(e,{name:n,deep:!1}):S(e)?Ee.set(e,{name:n,deep:!1}):void 0}}),we=ue("observable.struct",{enhancer:function(e,t){return dr(e,t)?t:e}}),ke=B(ye);function xe(e){return!0===e.deep?Y:!1===e.deep?W:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Y}(e.defaultDecorator)}function Ce(e,t,n){if(!y(t))return rn(e)?e:_(e)?Ee.object(e,t,n):Array.isArray(e)?Ee.array(e,t):O(e)?Ee.map(e,t):S(e)?Ee.set(e,t):"object"==typeof e&&null!==e?e:Ee.box(e,t);V(e,t,ye)}Object.assign(Ce,ke);var Oe,Se,Ee=a(Ce,{box:function(e,t){var n=ge(t);return new He(e,xe(n),n.name,!0,n.equals)},array:function(e,t){var n=ge(t);return(!1===ut.useProxies||!1===n.proxy?ar:xn)(e,xe(n),n.name)},map:function(e,t){var n=ge(t);return new Zn(e,xe(n),n.name)},set:function(e,t){var n=ge(t);return new Bn(e,xe(n),n.name)},object:function(e,t,n){return Ut(!1===ut.useProxies||!1===(null==n?void 0:n.proxy)?qn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=qn(e,t))[H]).proxy_)?r:n.proxy_=new Proxy(e,ln)}({},n),e,t)},ref:B(be),shallow:B(_e),deep:ke,struct:B(we)}),Te="computed",Ae=oe(Te),Re=oe("computed.struct",{equals:$.structural}),De=function(e,t){if(y(t))return V(e,t,Ae);if(_(e))return B(oe(Te,e));var n=_(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new qe(n)};Object.assign(De,Ae),De.struct=B(Re);var je,Ie=0,Pe=1,Ne=null!=(Oe=null==(Se=s((function(){}),"name"))?void 0:Se.configurable)&&Oe,Me={value:"action",configurable:!0,writable:!1,enumerable:!1};function Le(e,t,n,r){function i(){return Ze(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Ne&&(Me.value=e,Object.defineProperty(i,"name",Me)),i}function Ze(e,t,n,i,o){var a=function(e,t,n,r){var i=ut.trackingDerivation,o=!t||!i;ft();var a=ut.allowStateChanges;o&&(et(),a=Fe(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:nt(!0),notifySpy_:!1,startTime_:0,actionId_:Pe++,parentActionId_:Ie};return Ie=s.actionId_,s}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Ie!==e.actionId_&&r(30),Ie=e.parentActionId_,void 0!==e.error_&&(ut.suppressReactionErrors=!0),Be(e.prevAllowStateChanges_),rt(e.prevAllowStateReads_),ht(),e.runAsAction_&&tt(e.prevDerivation_),ut.suppressReactionErrors=!1}(a)}}function ze(e,t){var n=Fe(e);try{return t()}finally{Be(n)}}function Fe(e){var t=ut.allowStateChanges;return ut.allowStateChanges=e,t}function Be(e){ut.allowStateChanges=e}je=Symbol.toPrimitive;var Ve,He=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=$.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}N(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==ut.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(cn(this)){var t=fn(this,{object:this,type:_n,newValue:e});if(!t)return ut.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ut.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),hn(this)&&vn(this,{type:_n,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return dn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:_n,newValue:this.value_,oldValue:void 0}),pn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return A(this.get())},n[je]=function(){return this.valueOf()},t}(U);Ve=Symbol.toPrimitive;var Ue,Ke,qe=function(){function e(e){this.dependenciesState_=Ue.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Ue.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ye(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ke.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Le("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?$.structural:$.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Ue.UP_TO_DATE_&&(e.lowestObserverState_=Ue.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ue.UP_TO_DATE_&&(e.dependenciesState_=Ue.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==ut.inBatch||0!==this.observers_.size||this.keepAlive_){if(pt(this),Ge(this)){var e=ut.trackingContext;this.keepAlive_&&!e&&(ut.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Ue.STALE_&&(e.lowestObserverState_=Ue.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Ue.POSSIBLY_STALE_?t.dependenciesState_=Ue.STALE_:t.dependenciesState_===Ue.UP_TO_DATE_&&(e.lowestObserverState_=Ue.UP_TO_DATE_)})))}(this),ut.trackingContext=e}}else Ge(this)&&(this.warnAboutUntrackedRead_(),ft(),this.value_=this.computeValue_(!1),ht());var t=this.value_;if(We(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Ue.NOT_TRACKING_,n=this.computeValue_(!0),r=t||We(e)||We(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Fe(!1);if(e)t=Qe(this,this.derivation,this.scope_);else if(!0===ut.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Ye(e)}return Be(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Je(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return function(e,t){var n,r;void 0===t&&(t=d);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=Pt(t),s=!1;i=new mt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new mt(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e()}return i.schedule_(),i.getDisposer_()}((function(){var o=n.get();if(!r||t){var a=et();e({observableKind:"computed",debugObjectName:n.name_,type:_n,object:n,newValue:o,oldValue:i}),tt(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return A(this.get())},t[Ve]=function(){return this.valueOf()},e}(),$e=C("ComputedValue",qe);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(Ue||(Ue={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ke||(Ke={}));var Ye=function(e){this.cause=void 0,this.cause=e};function We(e){return e instanceof Ye}function Ge(e){switch(e.dependenciesState_){case Ue.UP_TO_DATE_:return!1;case Ue.NOT_TRACKING_:case Ue.STALE_:return!0;case Ue.POSSIBLY_STALE_:for(var t=nt(!0),n=et(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if($e(a)){if(ut.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return tt(n),rt(t),!0}if(e.dependenciesState_===Ue.STALE_)return tt(n),rt(t),!0}}return it(e),tt(n),rt(t),!1}}function Qe(e,t,n){var r=nt(!0);it(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++ut.runId;var i,o=ut.trackingDerivation;if(ut.trackingDerivation=e,ut.inBatch++,!0===ut.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new Ye(e)}return ut.inBatch--,ut.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Ue.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&ct(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,lt(l,e))}r!==Ue.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),rt(r),i}function Je(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)ct(t[n],e);e.dependenciesState_=Ue.NOT_TRACKING_}function Xe(e){var t=et();try{return e()}finally{tt(t)}}function et(){var e=ut.trackingDerivation;return ut.trackingDerivation=null,e}function tt(e){ut.trackingDerivation=e}function nt(e){var t=ut.allowStateReads;return ut.allowStateReads=e,t}function rt(e){ut.allowStateReads=e}function it(e){if(e.dependenciesState_!==Ue.UP_TO_DATE_){e.dependenciesState_=Ue.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Ue.UP_TO_DATE_}}var ot=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},at=!0,st=!1,ut=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(at=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ot).version&&(at=!1),at?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ot):(setTimeout((function(){st||r(35)}),1),new ot)}();function lt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function ct(e,t){e.observers_.delete(t),0===e.observers_.size&&dt(e)}function dt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,ut.pendingUnobservations.push(e))}function ft(){ut.inBatch++}function ht(){if(0==--ut.inBatch){bt();for(var e=ut.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof qe&&n.suspend_())}ut.pendingUnobservations=[]}}function pt(e){var t=ut.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&ut.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&ut.inBatch>0&&dt(e),!1)}function vt(e){e.lowestObserverState_!==Ue.STALE_&&(e.lowestObserverState_=Ue.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Ue.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Ue.STALE_})))}var mt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Ue.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ke.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,ut.pendingReactions.push(this),bt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){ft(),this.isScheduled_=!1;var e=ut.trackingContext;if(ut.trackingContext=this,Ge(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ut.trackingContext=e,ht()}},t.track=function(e){if(!this.isDisposed_){ft(),this.isRunning_=!0;var t=ut.trackingContext;ut.trackingContext=this;var n=Qe(this,e,void 0);ut.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Je(this),We(n)&&this.reportExceptionInDerivation_(n.cause),ht()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ut.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ut.suppressReactionErrors||console.error(n,e),ut.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(ft(),Je(this),ht()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[H]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=function(e){switch(e.length){case 0:return ut.trackingDerivation;case 1:return sr(e[0]);case 2:return sr(e[0],e[1])}}(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Ke.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Ke.BREAK:Ke.LOG}(this,e)},e}(),gt=100,yt=function(e){return e()};function bt(){ut.inBatch>0||ut.isRunningReactions||yt(_t)}function _t(){ut.isRunningReactions=!0;for(var e=ut.pendingReactions,t=0;e.length>0;){++t===gt&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}ut.isRunningReactions=!1}var wt=C("Reaction",mt),kt="action",xt="autoAction",Ct=Q(kt),Ot=Q("action.bound",{bound:!0}),St=Q(xt,{autoAction:!0}),Et=Q("autoAction.bound",{autoAction:!0,bound:!0});function Tt(e){return function(t,n){return g(t)?Le(t.name||"<unnamed action>",t,e):g(n)?Le(t,n,e):y(n)?V(t,n,e?St:Ct):y(t)?B(Q(e?xt:kt,{name:t,autoAction:e})):void 0}}var At=Tt(!1);Object.assign(At,Ct);var Rt=Tt(!0);function Dt(e){return Ze(e.name,!1,e,this,void 0)}function jt(e){return g(e)&&!0===e.isMobxAction}Object.assign(Rt,St),At.bound=B(Ot),Rt.bound=B(Et);var It=function(e){return e()};function Pt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:It}function Nt(e,t,n){var r;void 0===n&&(n=d);var i,o,a,s,u=null!=(r=n.name)?r:"Reaction",l=At(u,n.onError?(i=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){i.call(this,e)}}):t),c=!n.scheduler&&!n.delay,f=Pt(n),h=!0,p=!1,v=n.compareStructural?$.structural:n.equals||$.default,m=new mt(u,(function(){h||c?g():p||(p=!0,f(g))}),n.onError,n.requiresObservable);function g(){if(p=!1,!m.isDisposed_){var t=!1;m.track((function(){var n=ze(!1,(function(){return e(m)}));t=h||!v(a,n),s=a,a=n})),(h&&n.fireImmediately||!h&&t)&&l(a,s,m),h=!1}}return m.schedule_(),m.getDisposer_()}var Mt="onBO",Lt="onBUO";function Zt(e,t,n){return zt(Lt,e,t,n)}function zt(e,t,n,r){var i="function"==typeof r?sr(t,n):sr(t),o=g(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}var Ft="never",Bt="always",Vt="observed";function Ht(e){!0===e.isolateGlobalState&&function(){if((ut.pendingReactions.length||ut.inBatch||ut.isRunningReactions)&&r(36),st=!0,at){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ut=new ot}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(ut.useProxies=t===Bt||t!==Ft&&"undefined"!=typeof Proxy),"ifavailable"===t&&(ut.verifyProxies=!0),void 0!==n){var i=n===Bt?Bt:n===Vt;ut.enforceActions=i,ut.allowStateChanges=!0!==i&&i!==Bt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ut[t]=!!e[t])})),ut.allowStateReads=!ut.observableRequiresReaction,e.reactionScheduler&&function(e){var t=yt;yt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Ut(e,t,n,r){var i=D(t),o=qn(e,r)[H];ft();try{T(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{ht()}return e}function Kt(e,t){return qt(sr(e,t))}function qt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(qt)),n}var $t=0;function Yt(){this.message="FLOW_CANCELLED"}Yt.prototype=Object.create(Error.prototype);var Wt=te("flow"),Gt=te("flow.bound",{bound:!0}),Qt=Object.assign((function(e,t){if(y(t))return V(e,t,Wt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++$t,o=At(r+" - runid: "+i+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function u(e){var t;a=void 0;try{t=At(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return n(e)}c(t)}function l(e){var t;a=void 0;try{t=At(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return n(e)}c(t)}function c(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(u,l);e.then(c,n)}e=n,u(void 0)}));return s.cancel=At(r+" - runid: "+i+" - cancel",(function(){try{a&&Jt(a);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(m,m),Jt(n),e(new Yt)}catch(t){e(t)}})),s};return i.isMobXFlow=!0,i}),Wt);function Jt(e){g(e.cancel)&&e.cancel()}function Xt(e){return!0===(null==e?void 0:e.isMobXFlow)}function en(e,t){if(void 0===t)return $e(e);if(!1===Wn(e))return!1;if(!e[H].values_.has(t))return!1;var n=sr(e,t);return $e(n)}function tn(e){return en(e)}function nn(e,t){return en(e,t)}function rn(e){return function(e,t){return!!e&&(Wn(e)||!!e[H]||K(e)||wt(e)||$e(e))}(e)}function on(e){return Wn(e)?e[H].keys_():zn(e)||Vn(e)?Array.from(e.keys()):jn(e)?e.map((function(e,t){return t})):void r(5)}function an(e,t,n,r){return g(n)?function(e,t,n,r){return ur(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return ur(e).observe_(t,n)}(e,t,n)}function sn(e,t){void 0===t&&(t=void 0),ft();try{return e.apply(t)}finally{ht()}}function un(e){return e[H]}Qt.bound=B(Gt);var ln={has:function(e,t){return un(e).has_(t)},get:function(e,t){return un(e).get_(t)},set:function(e,t,n){var r;return!!y(t)&&(null==(r=un(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!y(t)&&(null==(n=un(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=un(e).defineProperty_(t,n))||r},ownKeys:function(e){return un(e).ownKeys_()},preventExtensions:function(e){r(13)}};function cn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function dn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function fn(e,t){var n=et();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{tt(n)}}function hn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function pn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),v((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function vn(e,t){var n=et(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);tt(n)}}function mn(e,t,n){var r=qn(e,n)[H];ft();try{null!=t||(t=function(e){return R(e,F)||k(e,F,P({},e[F])),e[F]}(e)),T(t).forEach((function(e){return r.make_(e,t[e])}))}finally{ht()}return e}var gn=Symbol("mobx-keys");function yn(e,t,n){if(_(e))return Ut(e,e,t,n);var r=qn(e,n)[H];if(!e[gn]){var i=Object.getPrototypeOf(e),o=new Set([].concat(T(e),T(i)));o.delete("constructor"),o.delete(H),k(i,gn,o)}ft();try{e[gn].forEach((function(e){return r.make_(e,!t||!(e in t)||t[e])}))}finally{ht()}return e}var bn="splice",_n="update",wn={get:function(e,t){var n=e[H];return t===H?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(Cn,t)?Cn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[H];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},kn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new U(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return dn(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),pn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&or(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),cn(this)){var o=fn(this,{object:this.proxy_,type:bn,index:e,removedCount:t,added:n});if(!o)return c;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=hn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:_n,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&vn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=hn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:bn,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&vn(this,o)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var i=n[e];if(cn(this)){var o=fn(this,{type:_n,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function xn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),p();var i=new kn(n,t,r,!1);x(i.values_,H,i);var o=new Proxy(i.values_,wn);if(i.proxy_=o,e&&e.length){var a=Fe(!0);i.spliceWithArray_(0,0,e),Be(a)}return o}var Cn={clear:function(){return this.splice(0)},replace:function(e){var t=this[H];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[H];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[H].spliceWithArray_(e,t,n)},push:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[H].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[H],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ut.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ut.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[H],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function On(e,t){"function"==typeof Array.prototype[e]&&(Cn[e]=t(e))}function Sn(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function En(e){return function(t,n){var r=this,i=this[H];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Tn(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}On("concat",Sn),On("flat",Sn),On("includes",Sn),On("indexOf",Sn),On("join",Sn),On("lastIndexOf",Sn),On("slice",Sn),On("toString",Sn),On("toLocaleString",Sn),On("every",En),On("filter",En),On("find",En),On("findIndex",En),On("flatMap",En),On("forEach",En),On("map",En),On("some",En),On("reduce",Tn),On("reduceRight",Tn);var An,Rn,Dn=C("ObservableArrayAdministration",kn);function jn(e){return b(e)&&Dn(e[H])}var In={},Pn="add",Nn="delete";An=Symbol.iterator,Rn=Symbol.toStringTag;var Mn,Ln,Zn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Y),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=In,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,g(Map)||r(18),this.keysAtom_=q("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,ze(!0,(function(){i.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ut.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new He(this.has_(e),W,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Zt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(cn(this)){var r=fn(this,{type:n?_n:Pn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,cn(this)&&!fn(this,{type:Nn,object:this,name:e}))return!1;if(this.has_(e)){var n=hn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Nn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return sn((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&vn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ut.UNCHANGED){var r=hn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:_n,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&vn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,sn((function(){var r,i=new He(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=hn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Pn,object:this,name:e,newValue:t}:null;r&&vn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return pr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return pr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[An]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=z(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return zn(e)&&(e=new Map(e)),sn((function(){_(e)?function(e){var t=Object.keys(e);if(!E)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):O(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;sn((function(){Xe((function(){for(var t,n=z(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return sn((function(){for(var n,i=function(e){if(O(e)||zn(e))return e;if(Array.isArray(e))return new Map(e);if(_(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=z(t.data_.keys());!(n=s()).done;){var u=n.value;if(!i.has(u))if(t.delete(u))a=!0;else{var l=t.data_.get(u);o.set(u,l)}}for(var c,d=z(i.entries());!(c=d()).done;){var f=c.value,h=f[0],p=f[1],v=t.data_.has(h);if(t.set(h,p),t.data_.has(h)){var m=t.data_.get(h);o.set(h,m),v||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),y=o.keys(),b=g.next(),w=y.next();!b.done;){if(b.value!==w.value){t.keysAtom_.reportChanged();break}b=g.next(),w=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return pn(this,e)},t.intercept_=function(e){return dn(this,e)},I(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Rn,get:function(){return"Map"}}]),e}(),zn=C("ObservableMap",Zn),Fn={};Mn=Symbol.iterator,Ln=Symbol.toStringTag;var Bn=function(){function e(e,t,n){void 0===t&&(t=Y),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=Fn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,g(Set)||r(22),this.atom_=q(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;sn((function(){Xe((function(){for(var t,n=z(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=z(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,cn(this)&&!fn(this,{type:Pn,object:this,newValue:e}))return this;if(!this.has(e)){sn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=hn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Pn,object:this,newValue:e}:null;n&&vn(this,r)}return this},t.delete=function(e){var t=this;if(cn(this)&&!fn(this,{type:Nn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=hn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Nn,object:this,oldValue:e}:null;return sn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&vn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return pr({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return pr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Vn(e)&&(e=new Set(e)),sn((function(){Array.isArray(e)||S(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return pn(this,e)},t.intercept_=function(e){return dn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Mn]=function(){return this.values()},I(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Ln,get:function(){return"Set"}}]),e}(),Vn=C("ObservableSet",Bn),Hn=Object.create(null),Un="remove",Kn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=fe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new U("ObservableObject.keys"),this.isPlainObject_=_(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof qe)return n.set(t),!0;if(cn(this)){var r=fn(this,{type:_n,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ut.UNCHANGED){var i=hn(this),o=i?{type:_n,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&vn(this,o)}return!0},t.get_=function(e){return ut.trackingDerivation&&!R(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),R(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ut.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new He(e in this.target_,W,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(!(e in this.target_)){var n;if(null!=(n=this.target_[F])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}Gn(this,0,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Gn(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{ft();var r=this.delete_(e);if(!r)return r;if(cn(this)){var i=fn(this,{object:this.proxy_||this.target_,name:e,type:Pn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=P({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else u(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ht()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{ft();var i=this.delete_(e);if(!i)return i;if(cn(this)){var o=fn(this,{object:this.proxy_||this.target_,name:e,type:Pn,newValue:t});if(!o)return null;t=o.newValue}var a=Yn(e),s={configurable:!ut.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else u(this.target_,e,s);var l=new He(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{ht()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{ft();var r=this.delete_(e);if(!r)return r;if(cn(this)&&!fn(this,{object:this.proxy_||this.target_,name:e,type:Pn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Yn(e),o={configurable:!ut.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else u(this.target_,e,o);this.values_.set(e,new qe(t)),this.notifyPropertyAddition_(e,void 0)}finally{ht()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!R(this.target_,e))return!0;if(cn(this)&&!fn(this,{object:this.proxy_||this.target_,name:e,type:Un}))return null;try{var n,r;ft();var i,o=hn(this),a=this.values_.get(e),u=void 0;if(!a&&o&&(u=null==(i=s(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof He&&(u=a.value_),vt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var l={type:Un,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:u,name:e};o&&vn(this,l)}}finally{ht()}return!0},t.observe_=function(e,t){return pn(this,e)},t.intercept_=function(e){return dn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=hn(this);if(i){var o=i?{type:Pn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&vn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),T(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function qn(e,t){var n;if(R(e,H))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Kn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:he(e):void 0}(t));return k(e,H,i),e}var $n=C("ObservableObjectAdministration",Kn);function Yn(e){return Hn[e]||(Hn[e]={get:function(){return this[H].getObservablePropValue_(e)},set:function(t){return this[H].setObservablePropValue_(e,t)}})}function Wn(e){return!!b(e)&&$n(e[H])}function Gn(e,t,n){var r;null==(r=e.target_[F])||delete r[n]}var Qn,Jn,Xn=rr(0),er=0,tr=function(){};Qn=tr,Jn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Qn.prototype,Jn):void 0!==Qn.prototype.__proto__?Qn.prototype.__proto__=Jn:Qn.prototype=Jn;var nr=function(e,t,n){function r(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new kn(r,n,i,!0);if(a.proxy_=L(o),x(L(o),H,a),t&&t.length){var s=Fe(!0);o.spliceWithArray(0,0,t),Be(s)}return Object.defineProperty(L(o),"0",Xn),o}N(r,e);var i=r.prototype;return i.concat=function(){this[H].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return jn(e)?e.slice():e})))},i[n]=function(){var e=this,t=0;return pr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},I(r,[{key:"length",get:function(){return this[H].getArrayLength_()},set:function(e){this[H].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(tr,Symbol.toStringTag,Symbol.iterator);function rr(e){return{enumerable:!1,configurable:!0,get:function(){return this[H].get_(e)},set:function(t){this[H].set_(e,t)}}}function ir(e){u(nr.prototype,""+e,rr(e))}function or(e){if(e>er){for(var t=er;t<e+100;t++)ir(t);er=e}}function ar(e,t,n){return new nr(e,t,n)}function sr(e,t){if("object"==typeof e&&null!==e){if(jn(e))return void 0!==t&&r(23),e[H].atom_;if(Vn(e))return e[H];if(zn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,lr(e)),n}if(Wn(e)){if(!t)return r(26);var i=e[H].values_.get(t);return i||r(27,t,lr(e)),i}if(K(e)||$e(e)||wt(e))return e}else if(g(e)&&wt(e[H]))return e[H];r(28)}function ur(e,t){return e||r(29),void 0!==t?ur(sr(e,t)):K(e)||$e(e)||wt(e)||zn(e)||Vn(e)?e:e[H]?e[H]:void r(24,e)}function lr(e,t){var n;if(void 0!==t)n=sr(e,t);else{if(jt(e))return e.name;n=Wn(e)||zn(e)||Vn(e)?ur(e):sr(e)}return n.name_}Object.entries(Cn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&k(nr.prototype,t,n)})),or(1e3);var cr=l.toString;function dr(e,t,n){return void 0===n&&(n=-1),fr(e,t,n)}function fr(e,t,n,r,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;var a=cr.call(e);if(a!==cr.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++}e=hr(e),t=hr(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(g(u)&&u instanceof u&&g(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!fr(e[c],t[c],n-1,r,i))return!1}else{var d,f=Object.keys(e);if(c=f.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!R(t,d=f[c])||!fr(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function hr(e){return jn(e)?e.slice():O(e)||zn(e)||S(e)||Vn(e)?Array.from(e.entries()):e}function pr(e){return e[Symbol.iterator]=vr,e}function vr(){return this}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:lr},$mobx:H})},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var M,L=Object.assign;function Z(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var z=!1;function F(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Z(e):""}function B(e){switch(e.tag){case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case O:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function W(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function oe(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Ce=null;function Oe(e){if(e=bi(e)){if("function"!=typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Se(e){xe?Ce?Ce.push(e):Ce=[e]:xe=e}function Ee(){if(xe){var e=xe,t=Ce;if(Ce=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Te(e,t){return e(t)}function Ae(){}var Re=!1;function De(e,t,n){if(Re)return e(t,n);Re=!0;try{return Te(e,t,n)}finally{Re=!1,(null!==xe||null!==Ce)&&(Ae(),Ee())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ie=!1;if(c)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ce){Ie=!1}function Ne(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ze=!1,ze=null,Fe={onError:function(e){Me=!0,Le=e}};function Be(e,t,n,r,i,o,a,s,u){Me=!1,Le=null,Ne.apply(Fe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(Ve(e)!==e)throw Error(o(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ue(i),e;if(a===r)return Ue(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var $e=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,We=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Qe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2,lt=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=lt;return 0==(4194240&(lt<<=1))&&(lt=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,xt,Ct,Ot,St=!1,Et=[],Tt=null,At=null,Rt=null,Dt=new Map,jt=new Map,It=[],Pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Zt(e)&&n.delete(t)}function Ft(){St=!1,null!==Tt&&Zt(Tt)&&(Tt=null),null!==At&&Zt(At)&&(At=null),null!==Rt&&Zt(Rt)&&(Rt=null),Dt.forEach(zt),jt.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Vt(e){function t(t){return Bt(t,e)}if(0<Et.length){Bt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==At&&Bt(At,e),null!==Rt&&Bt(Rt,e),Dt.forEach(t),jt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Lt(n),null===n.blockedOn&&It.shift()}var Ht=_.ReactCurrentBatchConfig,Ut=!0;function Kt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=i,Ht.transition=o}}function qt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=i,Ht.transition=o}}function $t(e,t,n,r){if(Ut){var i=Wt(e,t,n,r);if(null===i)Ur(e,t,r,Yt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Mt(Tt,e,t,n,r,i),!0;case"dragenter":return At=Mt(At,e,t,n,r,i),!0;case"mouseover":return Rt=Mt(Rt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Dt.set(o,Mt(Dt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,jt.set(o,Mt(jt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&wt(o),null===(o=Wt(e,t,n,r))&&Ur(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Yt=null;function Wt(e,t,n,r){if(Yt=null,null!==(e=yi(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),dn=L({},ln,{view:0,detail:0}),fn=on(dn),hn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),vn=on(L({},hn,{dataTransfer:0})),mn=on(L({},dn,{relatedTarget:0})),gn=on(L({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),_n=on(L({},ln,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return Cn}var Sn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),En=on(Sn),Tn=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Rn=on(L({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Dn),In=[9,13,27,32],Pn=c&&"CompositionEvent"in window,Nn=null;c&&"documentMode"in document&&(Nn=document.documentMode);var Mn=c&&"TextEvent"in window&&!Nn,Ln=c&&(!Pn||Nn&&8<Nn&&11>=Nn),Zn=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Kn(e,t,n,r){Se(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Yn(e){Zr(e,0)}function Wn(e){if($(_i(e)))return e}function Gn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"==typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),$n=qn=null)}function nr(e){if("value"===e.propertyName&&Wn($n)){var t=[];Kn(t,$n,e,we(e)),De(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn($n)}function or(e,t){if("click"===e)return Wn(t)}function ar(e,t){if("input"===e||"change"===e)return Wn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==Y(r)||(r="selectionStart"in(r=mr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=qr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Cr={};function Or(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return xr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Sr=Or("animationend"),Er=Or("animationiteration"),Tr=Or("animationstart"),Ar=Or("transitionend"),Rr=new Map,Dr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Rr.set(e,t),u(t,[e])}for(var Ir=0;Ir<Dr.length;Ir++){var Pr=Dr[Ir];jr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}jr(Sr,"onAnimationEnd"),jr(Er,"onAnimationIteration"),jr(Tr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Ar,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Be.apply(this,arguments),Me){if(!Me)throw Error(o(198));var c=Le;Me=!1,Le=null,Ze||(Ze=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Zr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Lr(i,s,l),o=u}}}if(Ze)throw e=ze,Ze=!1,ze=null,e}function zr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Fr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Gt(t)){case 1:var i=Kt;break;case 4:i=qt;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}De((function(){var r=o,i=we(n),a=[];e:{var s=Rr.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=En;break;case"focusin":l="focus",u=mn;break;case"focusout":l="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Sr:case Er:case Tr:u=gn;break;case Ar:u=Rn;break;case"scroll":u=fn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==f&&null!=(v=je(p,f))&&c.push(Kr(p,v,h))),d)break;p=p.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(l=n.relatedTarget||n.fromElement)||!yi(l)&&!l[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?yi(l):null)&&(l!==(d=Ve(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=pn,v="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,v="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==u?s:_i(u),h=null==l?s:_i(l),(s=new c(v,p+"leave",u,n,i)).target=d,s.relatedTarget=h,v=null,yi(i)===r&&((c=new c(f,p+"enter",l,n,i)).target=h,c.relatedTarget=d,v=c),d=v,u&&l)e:{for(f=l,p=0,h=c=u;h;h=$r(h))p++;for(h=0,v=f;v;v=$r(v))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)f=$r(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==u&&Yr(a,s,u,c,!1),null!==l&&null!==d&&Yr(a,d,l,c,!0)}if("select"===(u=(s=r?_i(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=Gn;else if(Un(s))if(Qn)m=ar;else{m=ir;var g=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?Kn(a,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?_i(r):window,e){case"focusin":(Un(g)||"true"===g.contentEditable)&&(mr=g,gr=r,yr=null);break;case"focusout":yr=gr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Vn=!0)),0<(g=qr(r,b)).length&&(b=new _n(b,e,null,n,i),a.push({event:b,listeners:g}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,Zn);case"textInput":return(e=t.data)===Zn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Pn&&Fn(e,t)?(e=en(),Xt=Jt=Qt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Zr(a,t)}))}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=je(e,n))&&r.unshift(Kr(e,o,i)),null!=(o=je(e,t))&&r.push(Kr(e,o,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=je(n,o))&&a.unshift(Kr(n,u,s)):i||null!=(u=je(n,o))&&a.push(Kr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Wr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Wr,"\n").replace(Gr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Vt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,hi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,mi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _i(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wi(e){return e[hi]||null}var ki=[],xi=-1;function Ci(e){return{current:e}}function Oi(e){0>xi||(e.current=ki[xi],ki[xi]=null,xi--)}function Si(e,t){xi++,ki[xi]=e.current,e.current=t}var Ei={},Ti=Ci(Ei),Ai=Ci(!1),Ri=Ei;function Di(e,t){var n=e.type.contextTypes;if(!n)return Ei;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ji(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ii(){Oi(Ai),Oi(Ti)}function Pi(e,t,n){if(Ti.current!==Ei)throw Error(o(168));Si(Ti,t),Si(Ai,n)}function Ni(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ri=Ti.current,Si(Ti,e),Si(Ai,Ai.current),!0}function Li(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ni(e,t,Ri),r.__reactInternalMemoizedMergedChildContext=e,Oi(Ai),Oi(Ti),Si(Ti,e)):Oi(Ai),Si(Ai,n)}var Zi=null,zi=!1,Fi=!1;function Bi(e){null===Zi?Zi=[e]:Zi.push(e)}function Vi(){if(!Fi&&null!==Zi){Fi=!0;var e=0,t=bt;try{var n=Zi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Zi=null,zi=!1}catch(t){throw null!==Zi&&(Zi=Zi.slice(e+1)),$e(Xe,Vi),t}finally{bt=t,Fi=!1}}return null}var Hi=[],Ui=0,Ki=null,qi=0,$i=[],Yi=0,Wi=null,Gi=1,Qi="";function Ji(e,t){Hi[Ui++]=qi,Hi[Ui++]=Ki,Ki=e,qi=t}function Xi(e,t,n){$i[Yi++]=Gi,$i[Yi++]=Qi,$i[Yi++]=Wi,Wi=e;var r=Gi;e=Qi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gi=1<<32-at(t)+i|n<<i|r,Qi=o+e}else Gi=1<<o|n<<i|r,Qi=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Ki;)Ki=Hi[--Ui],Hi[Ui]=null,qi=Hi[--Ui],Hi[Ui]=null;for(;e===Wi;)Wi=$i[--Yi],$i[Yi]=null,Qi=$i[--Yi],$i[Yi]=null,Gi=$i[--Yi],$i[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=jl(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Wi?{id:Gi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=jl(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw ho(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=li(e.nextSibling)}function po(){ro=no=null,io=!1}function vo(e){null===oo?oo=[e]:oo.push(e)}var mo=_.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ci(null),bo=null,_o=null,wo=null;function ko(){wo=_o=bo=null}function xo(e){var t=yo.current;Oi(yo),e._currentValue=t}function Co(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t){bo=e,wo=_o=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_s=!0),e.firstContext=null)}function So(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===_o){if(null===bo)throw Error(o(308));_o=e,bo.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Eo=null;function To(e){null===Eo?Eo=[e]:Eo.push(e)}function Ao(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,To(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ro(e,r)}function Ro(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Do=!1;function jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function No(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Au)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ro(e,n)}return null===(i=r.interleaved)?(t.next=t,To(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ro(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Zo(e,t,n,r){var i=e.updateQueue;Do=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u)}if(null!==o){var d=i.baseState;for(a=0,c=l=u=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(f=t,h=n,v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"==typeof(p=v.payload)?p.call(h,d,f):p)||void 0===f)break e;d=L({},d,f);break e;case 2:Do=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=h,u=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Lu|=a,e.lanes=a,e.memoizedState=d}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Fo=(new r.Component).refs;function Bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vo={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),o=Po(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=No(e,o,i))&&(rl(t,e,i,r),Mo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tl(),i=nl(e),o=Po(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=No(e,o,i))&&(rl(t,e,i,r),Mo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tl(),r=nl(e),i=Po(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=No(e,i,r))&&(rl(t,e,r,n),Mo(t,e,r))}};function Ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(i,o))}function Uo(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"==typeof o&&null!==o?o=So(o):(i=ji(t)?Ri:Ti.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Di(e,i):Ei),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ko(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function qo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fo,jo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=So(o):(o=ji(t)?Ri:Ti.current,i.context=Di(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Bo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Vo.enqueueReplaceState(i,i.state,null),Zo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function $o(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Fo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wo(e){return(0,e._init)(e._payload)}function Go(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Zl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===j&&Wo(o)===t.type)?((r=i(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=Nl(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ml(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Zl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nl(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case k:return(t=zl(t,e.mode,n)).return=e,t;case j:return f(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Ml(t,e.mode,n,null)).return=e,t;Yo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case k:return n.key===i?c(e,t,n,r):null;case j:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||N(n))return null!==i?null:d(e,t,n,r,null);Yo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case j:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||N(r))return d(t,e=e.get(n)||null,r,i,null);Yo(t,r)}return null}function v(i,o,s,u){for(var l=null,c=null,d=o,v=o=0,m=null;null!==d&&v<s.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var g=h(i,d,s[v],u);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g,d=m}if(v===s.length)return n(i,d),io&&Ji(i,v),l;if(null===d){for(;v<s.length;v++)null!==(d=f(i,s[v],u))&&(o=a(d,o,v),null===c?l=d:c.sibling=d,c=d);return io&&Ji(i,v),l}for(d=r(i,d);v<s.length;v++)null!==(m=p(d,i,v,s[v],u))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,v),l}function m(i,s,u,l){var c=N(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var d=c=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,l);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,v=g}if(y.done)return n(i,v),io&&Ji(i,m),c;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=f(i,y.value,l))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return io&&Ji(i,m),c}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=p(v,i,m,y.value,l))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),io&&Ji(i,m),c}return function e(r,o,a,u){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===j&&Wo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=$o(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=Ml(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Nl(a.type,a.key,a.props,null,r.mode,u)).ref=$o(r,o,a),u.return=r,r=u)}return s(r);case k:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zl(a,r.mode,u)).return=r,r=o}return s(r);case j:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return v(r,o,a,u);if(N(a))return m(r,o,a,u);Yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Zl(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var Qo=Go(!0),Jo=Go(!1),Xo={},ea=Ci(Xo),ta=Ci(Xo),na=Ci(Xo);function ra(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(Si(na,t),Si(ta,e),Si(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oi(ea),Si(ea,t)}function oa(){Oi(ea),Oi(ta),Oi(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(Si(ta,e),Si(ea,n))}function sa(e){ta.current===e&&(Oi(ea),Oi(ta))}var ua=Ci(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=_.ReactCurrentDispatcher,ha=_.ReactCurrentBatchConfig,pa=0,va=null,ma=null,ga=null,ya=!1,ba=!1,_a=0,wa=0;function ka(){throw Error(o(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,i,a){if(pa=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),ba){a=0;do{if(ba=!1,_a=0,25<=a)throw Error(o(301));a+=1,ga=ma=null,t.updateQueue=null,fa.current=ls,e=n(r,i)}while(ba)}if(fa.current=as,t=null!==ma&&null!==ma.next,pa=0,ga=ma=va=null,ya=!1,t)throw Error(o(300));return e}function Oa(){var e=0!==_a;return _a=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?va.memoizedState=ga=e:ga=ga.next=e,ga}function Ea(){if(null===ma){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ma.next;var t=null===ga?va.memoizedState:ga.next;if(null!==t)ga=t,ma=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ma=e).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===ga?va.memoizedState=ga=e:ga=ga.next=e}return ga}function Ta(e,t){return"function"==typeof t?t(e):t}function Aa(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ma,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=f,s=r):l=l.next=f,va.lanes|=d,Lu|=d}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(_s=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,va.lanes|=a,Lu|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ra(e){var t=Ea(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(_s=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Da(){}function ja(e,t){var n=va,r=Ea(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,_s=!0),r=r.queue,Ua(Na.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,za(9,Pa.bind(null,n,r,i,t),void 0,null),null===Ru)throw Error(o(349));0!=(30&pa)||Ia(n,t,i)}return i}function Ia(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pa(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Na(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function La(e){var t=Ro(e,1);null!==t&&rl(t,e,1,-1)}function Za(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,va,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return Ea().memoizedState}function Ba(e,t,n,r){var i=Sa();va.flags|=e,i.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Va(e,t,n,r){var i=Ea();r=void 0===r?null:r;var o=void 0;if(null!==ma){var a=ma.memoizedState;if(o=a.destroy,null!==r&&xa(r,a.deps))return void(i.memoizedState=za(t,n,o,r))}va.flags|=e,i.memoizedState=za(1|t,n,o,r)}function Ha(e,t){return Ba(8390656,8,e,t)}function Ua(e,t){return Va(2048,8,e,t)}function Ka(e,t){return Va(4,2,e,t)}function qa(e,t){return Va(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,n){return n=null!=n?n.concat([e]):null,Va(4,4,$a.bind(null,t,e),n)}function Wa(){}function Ga(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),va.lanes|=n,Lu|=n,e.baseState=!0),t)}function Xa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return Ea().memoizedState}function ts(e,t,n){var r=nl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?is(t,n):null!==(n=Ao(e,t,n,r))&&(rl(n,e,r,tl()),os(n,t,r))}function ns(e,t,n){var r=nl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,To(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Ao(e,t,i,r))&&(rl(n,e,r,i=tl()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===va||null!==t&&t===va}function is(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:So,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:So,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Za,useDebugValue:Wa,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Za(!1),t=e[0];return e=Xa.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,i=Sa();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ru)throw Error(o(349));0!=(30&pa)||Ia(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ha(Na.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Pa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Sa(),t=Ru.identifierPrefix;if(io){var n=Qi;t=":"+t+"R"+(n=(Gi&~(1<<32-at(Gi)-1)).toString(32)+n),0<(n=_a++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:So,useCallback:Ga,useContext:So,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Qa,useReducer:Aa,useRef:Fa,useState:function(){return Aa(Ta)},useDebugValue:Wa,useDeferredValue:function(e){return Ja(Ea(),ma.memoizedState,e)},useTransition:function(){return[Aa(Ta)[0],Ea().memoizedState]},useMutableSource:Da,useSyncExternalStore:ja,useId:es,unstable_isNewReconciler:!1},ls={readContext:So,useCallback:Ga,useContext:So,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ka,useLayoutEffect:qa,useMemo:Qa,useReducer:Ra,useRef:Fa,useState:function(){return Ra(Ta)},useDebugValue:Wa,useDeferredValue:function(e){var t=Ea();return null===ma?t.memoizedState=e:Ja(t,ma.memoizedState,e)},useTransition:function(){return[Ra(Ta)[0],Ea().memoizedState]},useMutableSource:Da,useSyncExternalStore:ja,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Po(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ku||(Ku=!0,qu=r),fs(0,t)},n}function vs(e,t,n){(n=Po(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===$u?$u=new Set([this]):$u.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sl.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Po(-1,1)).tag=2,No(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=_.ReactCurrentOwner,_s=!1;function ws(e,t,n,r){t.child=null===e?Jo(t,null,n,r):Qo(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return Oo(t,i),r=Ca(e,t,n,r,o,i),n=Oa(),null===e||_s?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ks(e,t,i))}function xs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Il(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Ks(e,t,i)}return t.flags|=1,(e=Pl(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(_s=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Ks(e,t,i);0!=(131072&e.flags)&&(_s=!0)}}return Es(e,t,n,r,i)}function Os(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(Pu,Iu),Iu|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Si(Pu,Iu),Iu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(Pu,Iu),Iu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(Pu,Iu),Iu|=r;return ws(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=ji(n)?Ri:Ti.current;return o=Di(t,o),Oo(t,i),n=Ca(e,t,n,r,o,i),r=Oa(),null===e||_s?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ks(e,t,i))}function Ts(e,t,n,r,i){if(ji(n)){var o=!0;Mi(t)}else o=!1;if(Oo(t,i),null===t.stateNode)Us(e,t),Uo(t,n,r),qo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;l="object"==typeof l&&null!==l?So(l):Di(t,l=ji(n)?Ri:Ti.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Ko(t,a,r,l),Do=!1;var f=t.memoizedState;a.state=f,Zo(t,r,a,i),u=t.memoizedState,s!==r||f!==u||Ai.current||Do?("function"==typeof c&&(Bo(t,n,c,r),u=t.memoizedState),(s=Do||Ho(t,n,s,r,f,u,l))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Io(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:go(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u="object"==typeof(u=n.contextType)&&null!==u?So(u):Di(t,u=ji(n)?Ri:Ti.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==u)&&Ko(t,a,r,u),Do=!1,f=t.memoizedState,a.state=f,Zo(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||Ai.current||Do?("function"==typeof h&&(Bo(t,n,h,r),p=t.memoizedState),(l=Do||Ho(t,n,l,r,f,p,u)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=l):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return As(e,t,n,r,o,i)}function As(e,t,n,r,i,o){Ss(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Ks(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qo(t,e.child,null,o),t.child=Qo(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),ia(e,t.containerInfo)}function Ds(e,t,n,r,i){return po(),vo(i),t.flags|=256,ws(e,t,n,r),t.child}var js,Is,Ps,Ns,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zs(e,t,n){var r,i=t.pendingProps,a=ua.current,s=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Si(ua,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Ll(u,i,0,null),e=Ml(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ms,e):zs(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Ll({mode:"visible",children:r.children},i,0,null),(a=Ml(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Qo(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ms,a);if(0==(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Fs(e,t,s,r=ds(a=Error(o(419)),r,void 0))}if(u=0!=(s&e.childLanes),_s||u){if(null!==(r=Ru)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ro(e,i),rl(r,e,i,-1))}return ml(),Fs(e,t,s,r=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tl.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&($i[Yi++]=Gi,$i[Yi++]=Qi,$i[Yi++]=Wi,Gi=e.id,Qi=e.overflow,Wi=t),(t=zs(t,r.children)).flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Pl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Pl(r,s):(s=Ml(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ls(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Pl(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Ll({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&vo(r),Qo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Co(e.return,t,n)}function Vs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!=(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(ua,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Vs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===la(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Vs(t,!0,n,null,o);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Us(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ks(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $s(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $s(t),null;case 1:case 17:return ji(t.type)&&Ii(),$s(t),null;case 3:return r=t.stateNode,oa(),Oi(Ai),Oi(Ti),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(sl(oo),oo=null))),Is(e,t),$s(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return $s(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[hi]=a,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":G(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var u in ye(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),i=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":q(r),X(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[fi]=t,e[hi]=r,js(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":G(e,r),i=W(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ye(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":q(e),X(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $s(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return $s(t),null;case 13:if(Oi(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))ho(),po(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else po(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$s(t),a=!1}else null!==oo&&(sl(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ua.current)?0===Nu&&(Nu=3):ml())),null!==t.updateQueue&&(t.flags|=4),$s(t),null);case 4:return oa(),Is(e,t),null===e&&Vr(t.stateNode.containerInfo),$s(t),null;case 10:return xo(t.type._context),$s(t),null;case 19:if(Oi(ua),null===(a=t.memoizedState))return $s(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)qs(a,!1);else{if(0!==Nu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=la(e))){for(t.flags|=128,qs(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Si(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hu&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=la(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return $s(t),null}else 2*Qe()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ua.current,Si(ua,r?1&n|2:1&n),t):($s(t),null);case 22:case 23:return fl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Iu)&&($s(t),6&t.subtreeFlags&&(t.flags|=8192)):$s(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ws(e,t){switch(to(t),t.tag){case 1:return ji(t.type)&&Ii(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Oi(Ai),Oi(Ti),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Oi(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oi(ua),null;case 4:return oa(),null;case 10:return xo(t.type._context),null;case 22:case 23:return fl(),null;default:return null}}js=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=W(e,i),r=W(e,r),a=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&zr("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Qs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Xs=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ol(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Ol(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tu(t,n,o)}i=i.next}while(i!==r)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[hi],delete t[vi],delete t[mi],delete t[gi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var du=null,fu=!1;function hu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Qs||eu(n,t);case 6:var r=du,i=fu;du=null,hu(e,t,n),fu=i,null!==(du=r)&&(fu?(e=du,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):du.removeChild(n.stateNode));break;case 18:null!==du&&(fu?(e=du,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Vt(e)):ui(du,n.stateNode));break;case 4:r=du,i=fu,du=n.stateNode.containerInfo,fu=!0,hu(e,t,n),du=r,fu=i;break;case 0:case 11:case 14:case 15:if(!Qs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&tu(n,t,a),i=i.next}while(i!==r)}hu(e,t,n);break;case 1:if(!Qs&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ol(n,t,e)}hu(e,t,n);break;case 21:hu(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,hu(e,t,n),Qs=r):hu(e,t,n);break;default:hu(e,t,n)}}function vu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=Al.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:du=u.stateNode,fu=!1;break e;case 3:case 4:du=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===du)throw Error(o(160));pu(a,s,i),du=null,fu=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){Ol(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mu(t,e),yu(e),4&r){try{ru(3,e,e.return),iu(3,e)}catch(t){Ol(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Ol(e,e.return,t)}}break;case 1:mu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(mu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Ol(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(u){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[hi]=a}catch(t){Ol(e,e.return,t)}}break;case 6:if(mu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Ol(e,e.return,t)}}break;case 3:if(mu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Ol(e,e.return,t)}break;case 4:default:mu(t,e),yu(e);break;case 13:mu(t,e),yu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Vu=Qe())),4&r&&vu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(c=Qs)||d,mu(t,e),Qs=c):mu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:ru(4,h,h.return);break;case 1:eu(h,h.return);var v=h.stateNode;if("function"==typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){Ol(r,n,e)}}break;case 5:eu(h,h.return);break;case 22:if(null!==h.memoizedState){ku(f);continue}}null!==p?(p.return=h,Xs=p):ku(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,s=void 0!==(l=f.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ve("display",s))}catch(t){Ol(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Ol(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mu(t,e),yu(e),4&r&&vu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(su(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cu(e,uu(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;lu(e,uu(e),a);break;default:throw Error(o(161))}}catch(t){Ol(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Xs=e,_u(e,t,n)}function _u(e,t,n){for(var r=0!=(1&e.mode);null!==Xs;){var i=Xs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Gs;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Qs;s=Gs;var l=Qs;if(Gs=a,(Qs=u)&&!l)for(Xs=i;null!==Xs;)u=(a=Xs).child,22===a.tag&&null!==a.memoizedState?xu(i):null!==u?(u.return=a,Xs=u):xu(i);for(;null!==o;)Xs=o,_u(o,t,n),o=o.sibling;Xs=i,Gs=s,Qs=l}wu(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Xs=o):wu(e)}}function wu(e){for(;null!==Xs;){var t=Xs;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||iu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(o(163))}Qs||512&t.flags&&ou(t)}catch(e){Ol(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function ku(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function xu(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iu(4,t)}catch(e){Ol(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Ol(t,i,e)}}var o=t.return;try{ou(t)}catch(e){Ol(t,o,e)}break;case 5:var a=t.return;try{ou(t)}catch(e){Ol(t,a,e)}}}catch(e){Ol(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Cu,Ou=Math.ceil,Su=_.ReactCurrentDispatcher,Eu=_.ReactCurrentOwner,Tu=_.ReactCurrentBatchConfig,Au=0,Ru=null,Du=null,ju=0,Iu=0,Pu=Ci(0),Nu=0,Mu=null,Lu=0,Zu=0,zu=0,Fu=null,Bu=null,Vu=0,Hu=1/0,Uu=null,Ku=!1,qu=null,$u=null,Yu=!1,Wu=null,Gu=0,Qu=0,Ju=null,Xu=-1,el=0;function tl(){return 0!=(6&Au)?Qe():-1!==Xu?Xu:Xu=Qe()}function nl(e){return 0==(1&e.mode)?1:0!=(2&Au)&&0!==ju?ju&-ju:null!==mo.transition?(0===el&&(el=vt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function rl(e,t,n,r){if(50<Qu)throw Qu=0,Ju=null,Error(o(185));gt(e,n,r),0!=(2&Au)&&e===Ru||(e===Ru&&(0==(2&Au)&&(Zu|=n),4===Nu&&ul(e,ju)),il(e,r),1===n&&0===Au&&0==(1&t.mode)&&(Hu=Qe()+500,zi&&Vi()))}function il(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!=(s&n)&&0==(s&r)||(i[a]=ht(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Ru?ju:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zi=!0,Bi(e)}(ll.bind(null,e)):Bi(ll.bind(null,e)),ai((function(){0==(6&Au)&&Vi()})),n=null;else{switch(_t(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rl(n,ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ol(e,t){if(Xu=-1,el=0,0!=(6&Au))throw Error(o(327));var n=e.callbackNode;if(xl()&&e.callbackNode!==n)return null;var r=ft(e,e===Ru?ju:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gl(e,r);else{t=r;var i=Au;Au|=2;var a=vl();for(Ru===e&&ju===t||(Uu=null,Hu=Qe()+500,hl(e,t));;)try{bl();break}catch(t){pl(e,t)}ko(),Su.current=a,Au=i,null!==Du?t=0:(Ru=null,ju=0,t=Nu)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=al(e,i)),1===t)throw n=Mu,hl(e,0),ul(e,r),il(e,Qe()),n;if(6===t)ul(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gl(e,r))&&0!==(a=pt(e))&&(r=a,t=al(e,a)),1===t))throw n=Mu,hl(e,0),ul(e,r),il(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:kl(e,Bu,Uu);break;case 3:if(ul(e,r),(130023424&r)===r&&10<(t=Vu+500-Qe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kl.bind(null,e,Bu,Uu),t);break}kl(e,Bu,Uu);break;case 4:if(ul(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ou(r/1960))-r)){e.timeoutHandle=ri(kl.bind(null,e,Bu,Uu),r);break}kl(e,Bu,Uu);break;default:throw Error(o(329))}}}return il(e,Qe()),e.callbackNode===n?ol.bind(null,e):null}function al(e,t){var n=Fu;return e.current.memoizedState.isDehydrated&&(hl(e,t).flags|=256),2!==(e=gl(e,t))&&(t=Bu,Bu=n,null!==t&&sl(t)),e}function sl(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function ul(e,t){for(t&=~zu,t&=~Zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ll(e){if(0!=(6&Au))throw Error(o(327));xl();var t=ft(e,0);if(0==(1&t))return il(e,Qe()),null;var n=gl(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=al(e,r))}if(1===n)throw n=Mu,hl(e,0),ul(e,t),il(e,Qe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kl(e,Bu,Uu),il(e,Qe()),null}function cl(e,t){var n=Au;Au|=1;try{return e(t)}finally{0===(Au=n)&&(Hu=Qe()+500,zi&&Vi())}}function dl(e){null!==Wu&&0===Wu.tag&&0==(6&Au)&&xl();var t=Au;Au|=1;var n=Tu.transition,r=bt;try{if(Tu.transition=null,bt=1,e)return e()}finally{bt=r,Tu.transition=n,0==(6&(Au=t))&&Vi()}}function fl(){Iu=Pu.current,Oi(Pu)}function hl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Du)for(n=Du.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ii();break;case 3:oa(),Oi(Ai),Oi(Ti),da();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Oi(ua);break;case 10:xo(r.type._context);break;case 22:case 23:fl()}n=n.return}if(Ru=e,Du=e=Pl(e.current,null),ju=Iu=t,Nu=0,Mu=null,zu=Zu=Lu=0,Bu=Fu=null,null!==Eo){for(t=0;t<Eo.length;t++)if(null!==(r=(n=Eo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Eo=null}return e}function pl(e,t){for(;;){var n=Du;try{if(ko(),fa.current=as,ya){for(var r=va.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(pa=0,ga=ma=va=null,ba=!1,_a=0,Eu.current=null,null===n||null===n.return){Nu=1,Mu=t,Du=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=ju,u.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,d=u,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,ys(p,s,u,0,t),1&p.mode&&ms(a,c,t),l=c;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(l),t.updateQueue=m}else v.add(l);break e}if(0==(1&t)){ms(a,c,t),ml();break e}l=Error(o(426))}else if(io&&1&u.mode){var g=gs(s);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),ys(g,s,u,0,t),vo(cs(l,u));break e}}a=l=cs(l,u),4!==Nu&&(Nu=2),null===Fu?Fu=[a]:Fu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ps(0,l,t));break e;case 1:u=l;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===$u||!$u.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,vs(a,u,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(e){t=e,Du===n&&null!==n&&(Du=n=n.return);continue}break}}function vl(){var e=Su.current;return Su.current=as,null===e?as:e}function ml(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Ru||0==(268435455&Lu)&&0==(268435455&Zu)||ul(Ru,ju)}function gl(e,t){var n=Au;Au|=2;var r=vl();for(Ru===e&&ju===t||(Uu=null,hl(e,t));;)try{yl();break}catch(t){pl(e,t)}if(ko(),Au=n,Su.current=r,null!==Du)throw Error(o(261));return Ru=null,ju=0,Nu}function yl(){for(;null!==Du;)_l(Du)}function bl(){for(;null!==Du&&!We();)_l(Du)}function _l(e){var t=Cu(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,null===t?wl(e):Du=t,Eu.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ys(n,t,Iu)))return void(Du=n)}else{if(null!==(n=Ws(n,t)))return n.flags&=32767,void(Du=n);if(null===e)return Nu=6,void(Du=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Du=t);Du=t=e}while(null!==t);0===Nu&&(Nu=5)}function kl(e,t,n){var r=bt,i=Tu.transition;try{Tu.transition=null,bt=1,function(e,t,n,r){do{xl()}while(null!==Wu);if(0!=(6&Au))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ru&&(Du=Ru=null,ju=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Yu||(Yu=!0,Rl(tt,(function(){return xl(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Tu.transition,Tu.transition=null;var s=bt;bt=1;var u=Au;Au|=4,Eu.current=null,function(e,t){if(ei=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,u=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(u=s+i),f!==a||0!==r&&3!==f.nodeType||(l=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===i&&(u=s),h===a&&++d===r&&(l=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ut=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:go(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){Ol(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}v=nu,nu=!1}(e,n),gu(n,e),pr(ti),Ut=!!ei,ti=ei=null,e.current=n,bu(n,e,i),Ge(),Au=u,bt=s,Tu.transition=a}else e.current=n;if(Yu&&(Yu=!1,Wu=e,Gu=i),0===(a=e.pendingLanes)&&($u=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),il(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Ku)throw Ku=!1,e=qu,qu=null,e;0!=(1&Gu)&&0!==e.tag&&xl(),0!=(1&(a=e.pendingLanes))?e===Ju?Qu++:(Qu=0,Ju=e):Qu=0,Vi()}(e,t,n,r)}finally{Tu.transition=i,bt=r}return null}function xl(){if(null!==Wu){var e=_t(Gu),t=Tu.transition,n=bt;try{if(Tu.transition=null,bt=16>e?16:e,null===Wu)var r=!1;else{if(e=Wu,Wu=null,Gu=0,0!=(6&Au))throw Error(o(331));var i=Au;for(Au|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!=(16&Xs.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:ru(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var h=(d=Xs).sibling,p=d.return;if(au(d),d===c){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Xs=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!=(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var _=(s=Xs).child;if(0!=(2064&s.subtreeFlags)&&null!==_)_.return=s,Xs=_;else e:for(s=b;null!==Xs;){if(0!=(2048&(u=Xs).flags))try{switch(u.tag){case 0:case 11:case 15:iu(9,u)}}catch(e){Ol(u,u.return,e)}if(u===s){Xs=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Xs=w;break e}Xs=u.return}}if(Au=i,Vi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Tu.transition=t}}return!1}function Cl(e,t,n){e=No(e,t=ps(0,t=cs(n,t),1),1),t=tl(),null!==e&&(gt(e,1,t),il(e,t))}function Ol(e,t,n){if(3===e.tag)Cl(e,e,n);else for(;null!==t;){if(3===t.tag){Cl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$u||!$u.has(r))){t=No(t,e=vs(t,e=cs(n,e),1),1),e=tl(),null!==t&&(gt(t,1,e),il(t,e));break}}t=t.return}}function Sl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&n,Ru===e&&(ju&n)===n&&(4===Nu||3===Nu&&(130023424&ju)===ju&&500>Qe()-Vu?hl(e,0):zu|=n),il(e,t)}function El(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tl();null!==(e=Ro(e,t))&&(gt(e,t,n),il(e,n))}function Tl(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function Al(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),El(e,n)}function Rl(e,t){return $e(e,t)}function Dl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jl(e,t,n,r){return new Dl(e,t,n,r)}function Il(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pl(e,t){var n=e.alternate;return null===n?((n=jl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)Il(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Ml(n.children,i,a,t);case C:s=8,i|=8;break;case O:return(e=jl(12,n,t,2|i)).elementType=O,e.lanes=a,e;case A:return(e=jl(13,n,t,i)).elementType=A,e.lanes=a,e;case R:return(e=jl(19,n,t,i)).elementType=R,e.lanes=a,e;case I:return Ll(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case T:s=11;break e;case D:s=14;break e;case j:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=jl(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Ml(e,t,n,r){return(e=jl(7,e,r,t)).lanes=n,e}function Ll(e,t,n,r){return(e=jl(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return(e=jl(6,e,null,t)).lanes=n,e}function zl(e,t,n){return(t=jl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bl(e,t,n,r,i,o,a,s,u){return e=new Fl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=jl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jo(o),e}function Vl(e){if(!e)return Ei;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ji(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(ji(n))return Ni(e,n,t)}return t}function Hl(e,t,n,r,i,o,a,s,u){return(e=Bl(n,r,!0,e,0,o,0,s,u)).context=Vl(null),n=e.current,(o=Po(r=tl(),i=nl(n))).callback=null!=t?t:null,No(n,o,i),e.current.lanes=i,gt(e,i,r),il(e,r),e}function Ul(e,t,n,r){var i=t.current,o=tl(),a=nl(i);return n=Vl(n),null===t.context?t.context=n:t.pendingContext=n,(t=Po(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=No(i,t,a))&&(rl(e,i,a,o),Mo(e,i,a)),a}function Kl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $l(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}Cu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)_s=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),po();break;case 5:aa(t);break;case 1:ji(t.type)&&Mi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(ua,1&ua.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Zs(e,t,n):(Si(ua,1&ua.current),null!==(e=Ks(e,t,n))?e.sibling:null);Si(ua,1&ua.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Os(e,t,n)}return Ks(e,t,n)}(e,t,n);_s=0!=(131072&e.flags)}else _s=!1,io&&0!=(1048576&t.flags)&&Xi(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var i=Di(t,Ti.current);Oo(t,n),i=Ca(null,t,r,e,i,n);var a=Oa();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ji(r)?(a=!0,Mi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,jo(t),i.updater=Vo,t.stateNode=i,i._reactInternals=t,qo(t,r,e,n),t=As(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Il(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===D)return 14}return 2}(r),e=go(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=xs(null,t,r,go(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:go(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ts(e,t,r,i=t.elementType===r?i:go(r,i),n);case 3:e:{if(Rs(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Io(e,t),Zo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ds(e,t,r,n,i=cs(Error(o(423)),t));break e}if(r!==i){t=Ds(e,t,r,n,i=cs(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Jo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Ks(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Zs(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qo(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ks(e,t,r,i=t.elementType===r?i:go(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Si(yo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=Ks(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Po(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Co(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Co(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oo(t,n),r=r(i=So(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=go(r=t.type,t.pendingProps),xs(e,t,r,i=go(r.type,i),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:go(r,i),Us(e,t),t.tag=1,ji(r)?(e=!0,Mi(t)):e=!1,Oo(t,n),Uo(t,r,i),qo(t,r,i,n),As(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return Os(e,t,n)}throw Error(o(156,t.tag))};var Yl="function"==typeof reportError?reportError:function(e){console.error(e)};function Wl(e){this._internalRoot=e}function Gl(e){this._internalRoot=e}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xl(){}function ec(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Kl(a);s.call(e)}}Ul(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Kl(a);o.call(e)}}var a=Hl(t,r,e,0,null,!1,0,"",Xl);return e._reactRootContainer=a,e[pi]=a.current,Vr(8===e.nodeType?e.parentNode:e),dl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Kl(u);s.call(e)}}var u=Bl(e,0,!1,null,0,!1,0,"",Xl);return e._reactRootContainer=u,e[pi]=u.current,Vr(8===e.nodeType?e.parentNode:e),dl((function(){Ul(t,u,n,r)})),u}(n,t,e,i,r);return Kl(a)}Gl.prototype.render=Wl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Ul(e,t,null,null)},Gl.prototype.unmount=Wl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dl((function(){Ul(null,e,null,null)})),t[pi]=null}},Gl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),il(t,Qe()),0==(6&Au)&&(Hu=Qe()+500,Vi()))}break;case 13:dl((function(){var t=Ro(e,1);if(null!==t){var n=tl();rl(t,e,1,n)}})),$l(e,1)}},kt=function(e){if(13===e.tag){var t=Ro(e,134217728);null!==t&&rl(t,e,134217728,tl()),$l(e,134217728)}},xt=function(e){if(13===e.tag){var t=nl(e),n=Ro(e,t);null!==n&&rl(n,e,t,tl()),$l(e,t)}},Ct=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(o(90));$(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cl,Ae=dl;var tc={usingClientEntryPoint:!1,Events:[bi,_i,wi,Se,Ee,cl]},nc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),ot=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ql(e))throw Error(o(299));var n=!1,r="",i=Yl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bl(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Wl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ke(t))?null:e.stateNode},t.flushSync=function(e){return dl(e)},t.hydrate=function(e,t,n){if(!Jl(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ql(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Yl;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hl(t,null,e,1,null!=n?n:null,i,0,a,s),e[pi]=t.current,Vr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Gl(t)},t.render=function(e,t,n){if(!Jl(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jl(e))throw Error(o(40));return!!e._reactRootContainer&&(dl((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4463)},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var _=b.prototype=new y;_.constructor=b,v(_,g.prototype),_.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,i)&&!C.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+T(u,0):o,w(a)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",w(e))for(var l=0;l<e.length;l++){var c=o+T(s=e[l],l);u+=A(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,c=o+T(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function R(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},I={transition:null},P={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:I,ReactCurrentOwner:x};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)k.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return R()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={};function m(){}function g(){}function y(){}var b={};u(b,o,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(A([])));w&&w!==n&&r.call(w,o)&&(b=w);var k=y.prototype=m.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return g.prototype=y,u(k,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],d=1,f=null,h=3,p=!1,v=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function w(e){if(m=!1,_(e),!v)if(null!==r(l))v=!0,I(k);else{var t=r(c);null!==t&&P(w,t.startTime-e)}}function k(e,n){v=!1,m&&(m=!1,y(S),S=-1),p=!0;var o=h;try{for(_(n),f=r(l);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(l)&&i(l),_(n)}else i(l);f=r(l)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&P(w,d.startTime-n),u=!1}return u}finally{f=null,h=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,O=null,S=-1,E=5,T=-1;function A(){return!(t.unstable_now()-T<E)}function R(){if(null!==O){var e=t.unstable_now();T=e;var n=!0;try{n=O(!0,e)}finally{n?x():(C=!1,O=null)}}else C=!1}if("function"==typeof b)x=function(){b(R)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,j=D.port2;D.port1.onmessage=R,x=function(){j.postMessage(null)}}else x=function(){g(R,0)};function I(e){O=e,C||(C=!0,x())}function P(e,n){S=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(m?(y(S),S=-1):m=!0,P(w,o-a))):(e.sortIndex=s,n(l,e),v||p||(v=!0,I(k))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5940:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.labelForComparison=t.ComparisonType=void 0,function(e){e.UncommittedChanges="UNCOMMITTED",e.HeadChanges="HEAD",e.StackChanges="STACK",e.Committed="InCommit",e.Commit="Commit",e.Range="Range"}(n||(t.ComparisonType=n={})),t.labelForComparison=function(e){switch(e.type){case n.UncommittedChanges:return"Uncommitted changes";case n.HeadChanges:return"Changes in current commit";case n.StackChanges:return"Changes in current branch";case n.Committed:return"Changes in ".concat(e.hash);case n.Commit:return"In ".concat(e.sha);case n.Range:return"From ".concat(e.fromSha," to ").concat(e.toSha)}}},1243:function(e,t,n){"use strict";var r=n(1109).default,i=n(319).default,o=n(3038).default,a=n(3269).default,s=n(4575).default,u=n(3913).default,l=n(9713).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cached=t.LRU=void 0;var c=n(4299),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;s(this,e),l(this,"maxItems",void 0),l(this,"maxHashCollision",void 0),l(this,"cache",new Map),this.maxItems=t,this.maxHashCollision=n}return u(e,[{key:"get",value:function(e){var t=void 0,n=f(e),r=this.cache.get(n);if(void 0!==r){var i=r.get(e);if(void 0!==i)t=i;else{var s,u=a(r);try{for(u.s();!(s=u.n()).done;){var l=o(s.value,2),d=l[0],h=l[1];if((0,c.is)(e,d)){t=h;break}}}catch(e){u.e(e)}finally{u.f()}}this.cache.delete(n),this.cache.set(n,r)}return t}},{key:"set",value:function(e,t){var n=f(e),r=this.cache.get(n);if(void 0===r||r.size>=this.maxHashCollision?r=new Map([[e,t]]):r.set(e,t),this.cache.delete(n),void 0!==t&&(this.cache.set(n,r),this.cache.size>this.maxItems)){var i=this.cache.keys().next();i.done||this.cache.delete(i.value)}}},{key:"delete",value:function(e){var t=f(e);this.cache.delete(t)}},{key:"clear",value:function(){this.cache.clear()}}]),e}();function f(e){var t=null==e?void 0:e.hashCode;return void 0!==t?t.apply(e):e}function h(e,t){var n,r,o=null!==(n=null==t?void 0:t.cache)&&void 0!==n?n:new d(null!==(r=null==t?void 0:t.cacheSize)&&void 0!==r?r:10),a=null==t?void 0:t.getExtraKeys,s=function(){for(var t=o.stats,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];var u;if(!r.every(v))return null!=t&&(t.skip=(null!==(u=t.skip)&&void 0!==u?u:0)+1),e.apply(this,r);var l,d,f=(0,c.List)(a?[].concat(i(a.apply(this)),r):r),h=o.get(f);if(void 0!==h)return null!=t&&(t.hit=(null!==(d=t.hit)&&void 0!==d?d:0)+1),h;null!=t&&(t.miss=(null!==(l=t.miss)&&void 0!==l?l:0)+1);var p=e.apply(this,r);return o.set(f,p),p};return s.cache=o,s}t.LRU=d,t.cached=function(e,t){return"function"==typeof e?h(e,t):function(e){var t,n=null!==(t=null==e?void 0:e.getExtraKeys)&&void 0!==t?t:function(){return(0,c.isValueObject)(this)?[this]:null!=this&&"object"==typeof this?Object.values(this).filter(v):[]};return function(t,i,o){var a=o.value;o.value=h(a,r(r({},e),{},{getExtraKeys:n}))}}(e)};var p=new Set(["number","string","boolean","symbol","bigint","undefined","null"]);function v(e){if(null==e)return!0;var t=typeof e;return!!p.has(t)||!("object"!==t||!(0,c.isValueObject)(e))}},1641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5935:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1641),t),i(n(8613),t),i(n(4999),t)},8613:function(e,t,n){"use strict";var r=n(1109).default,i=n(4575).default,o=n(3913).default,a=n(9713).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var s=n(6537),u=function(){function e(t,n){i(this,e),a(this,"sendData",void 0),a(this,"context",void 0),this.sendData=t,this.context=n}return o(e,[{key:"error",value:function(e,t,n,i){var o=n instanceof Error?n.message||String(n):n;this.track(e,r(r({},null!=i?i:{}),{},{errorMessage:o,errorName:t}))}},{key:"operation",value:function(e,t,n,i){var o,a=this,u=Date.now(),l=null!==(o=null==n?void 0:n.id)&&void 0!==o?o:(0,s.randomId)();try{var c=i({parentId:l});if((0,s.isPromise)(c))return c.then((function(t){var i=Date.now()-u;return a.track(e,r(r({},null!=n?n:{}),{},{duration:i,id:l})),t})).catch((function(i){var o=Date.now()-u;return a.error(e,t,i,r(r({},null!=n?n:{}),{},{duration:o,id:l})),Promise.reject(i)}));var d=Date.now()-u;return this.track(e,r(r({},null!=n?n:{}),{},{duration:d,id:l})),c}catch(i){var f=Date.now()-u;throw this.error(e,t,i,r(r({},null!=n?n:{}),{},{duration:f,id:l})),i}}},{key:"trackAsParent",value:function(t,n){var i,o=this,a=null!==(i=null==n?void 0:n.id)&&void 0!==i?i:(0,s.randomId)();return this.trackData(r(r({},n),{},{eventName:t,id:a})),new e((function(e,t){return o.trackData(r(r({},e),t))}),{parentId:a})}},{key:"track",value:function(e,t){this.trackData(r(r({},t),{},{eventName:e}))}},{key:"trackData",value:function(e){var t,n,i=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:(0,s.randomId)(),o=null!==(n=null==e?void 0:e.timestamp)&&void 0!==n?n:Date.now(),a=r({timestamp:o,id:i},null!=e?e:{});this.sendData(a,this.context)}}]),e}();t.Tracker=u},4999:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!0;function a(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var c;if(i){if(c=function(){o=!0,n=void 0},!o)return clearTimeout(n),void(n=setTimeout(c,t));o=!1,e.apply(r,u)}else a.reset(),c=function(){n=void 0,e.apply(r,u)};n=setTimeout(c,t)}return a.reset=function(){clearTimeout(n),n=void 0,o=!0},a.isPending=function(){return null!=n},a}},88:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5935),t),i(n(5940),t),i(n(7233),t),i(n(1243),t),i(n(2508),t),i(n(4896),t),i(n(7805),t),i(n(7660),t),i(n(1296),t),i(n(6537),t)},2508:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=t.DiffType=void 0,function(e){e.Modified="Modified",e.Added="Added",e.Removed="Removed",e.Renamed="Renamed",e.Copied="Copied"}(n||(t.DiffType=n={}));var r=/^diff --git (.*) (.*)$/,i=/^rename from (.*)$/,o=/^rename to (.*)$/,a=/^copy from (.*)$/,s=/^copy to (.*)$/,u=/^new file mode (\d{6})$/,l=/^deleted file mode (\d{6})$/,c=/^old mode (\d{6})$/,d=/^new mode (\d{6})$/,f=/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,h=/^--- (.*)$/,p=/^\+\+\+ (.*)$/,v=/\r\n|[\n\v\f\r\x85]/g;function m(e,t){if(!1===e)throw new Error(t)}t.parsePatch=function(e){var t=e.split(v),g=e.match(v)||[],y=[],b=0;function _(){var e={hunks:[]};for(y.push(e),function(e){for(;b<t.length;){var n=t[b],i=r.exec(n);if(i){e.oldFileName=i[1],e.newFileName=i[2],b++;break}b++}}(e);b<t.length;){var n=t[b];if(/^old mode/.test(n))w(e);else if(/^new mode/.test(n))k(e);else if(/^deleted file mode/.test(n))x(e);else if(/^new file mode/.test(n))C(e);else if(/^copy /.test(n))O(e);else if(/^rename /.test(n))S(e);else{if(/^--- /.test(n)){E(e);break}if(/^diff --git/.test(n))break;b++}}!function(e){for(;b<t.length;){var n=t[b];if(r.test(n))break;/^@@/.test(n)?e.hunks.push(T()):b++}}(e)}function w(e){var r=c.exec(t[b]);m(null!==r,"invalid format '".concat(t[b],"'")),e.oldMode=r[1],e.type=n.Modified,b++}function k(e){var r=d.exec(t[b]);m(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Modified,b++}function x(e){var r=l.exec(t[b]);m(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Removed,b++}function C(e){var r=u.exec(t[b]);m(null!==r,"invalid format '".concat(t[b],"'")),e.newMode=r[1],e.type=n.Added,b++}function O(e){m(a.test(t[b]),"invalid format '".concat(t[b],"'")),m(s.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Copied,b+=2}function S(e){m(i.test(t[b]),"invalid format '".concat(t[b],"'")),m(o.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),e.type=n.Renamed,b+=2}function E(e){m(h.test(t[b]),"invalid format '".concat(t[b],"'")),m(p.test(t[b+1]),"invalid format '".concat(t[b+1],"'")),void 0===e.type&&(e.type=n.Modified),b+=2}function T(){var e=t[b++].split(f),n={oldStart:+e[1],oldLines:void 0===e[2]?1:+e[2],newStart:+e[3],newLines:void 0===e[4]?1:+e[4],lines:[],linedelimiters:[]};0===n.oldLines&&(n.oldStart+=1),0===n.newLines&&(n.newStart+=1);for(var r=0,i=0;b<t.length&&!(0===t[b].indexOf("--- ")&&b+2<t.length&&0===t[b+1].indexOf("+++ ")&&0===t[b+2].indexOf("@@"));b++){var o=0===t[b].length&&b!==t.length-1?" ":t[b][0];if("+"!==o&&"-"!==o&&" "!==o&&"\\"!==o)break;n.lines.push(t[b]),n.linedelimiters.push(g[b]||"\n"),"+"===o?r++:"-"===o?i++:" "===o&&(r++,i++)}return r||1!==n.newLines||(n.newLines=0),i||1!==n.oldLines||(n.oldLines=0),n}for(;b<t.length;)_();return y}},4896:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7805:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeFromString=t.deserialize=t.serializeToString=t.serialize=void 0;var i={__rpcType:"undefined"};function o(e){if(void 0===e)return i;if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null===e)return e;if(e instanceof Map)return{__rpcType:"Map",data:Array.from(e.entries()).map((function(e){var t=r(e,2),n=t[0],i=t[1];return[o(n),o(i)]}))};if(e instanceof Set)return{__rpcType:"Set",data:Array.from(e.values()).map(o)};if(e instanceof Error)return{__rpcType:"Error",data:{message:e.message,stack:e.stack}};if(e instanceof Date)return{__rpcType:"Date",data:e.valueOf()};if(Array.isArray(e))return e.map((function(e){return o(e)}));if("object"==typeof e){for(var t={__rpcType:"object"},n=0,a=Object.entries(e);n<a.length;n++){var s=r(a[n],2),u=s[0],l=s[1];t[u]=o(l)}return t}throw new Error("cannot serialize argument ".concat(e))}function a(e){if("object"!=typeof e||null==e)return e;if(Array.isArray(e))return e.map((function(e){return a(e)}));var t=e;switch(t.__rpcType){case"undefined":return;case"Map":return new Map(t.data.map((function(e){var t=r(e,2),n=t[0],i=t[1];return[a(n),a(i)]})));case"Set":return new Set(t.data.map(a));case"Error":var n=new Error;return n.stack=t.data.stack,n.message=t.data.message,n;case"Date":return new Date(t.data);case"object":for(var i=e,o={},s=0,u=Object.entries(i);s<u.length;s++){var l=r(u[s],2),c=l[0],d=l[1];"__rpcType"!==c&&(o[c]=a(d))}return o;default:throw new Error("cannot deserialize unknown type ".concat(t))}}t.serialize=o,t.serializeToString=function(e){return JSON.stringify(o(e))},t.deserialize=a,t.deserializeFromString=function(e){return a(JSON.parse(e))}},1296:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1523:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SucceedableRevset=t.CommandRunner=void 0,function(e){e.Graphite="gt",e.CodeReviewProvider="codeReviewProvider"}(n||(t.CommandRunner=n={})),t.SucceedableRevset=function(e){return{type:"succeedable-revset",revset:e}}},1606:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3064:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorShortMessages=t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=t.ONE_MINUTE_MS=t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=void 0,t.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE=4100,t.ONE_MINUTE_MS=6e4,t.DEFAULT_DAYS_OF_COMMITS_TO_LOAD=void 0,function(e){e.NoCommitsFetched="No commits found"}(n||(t.ErrorShortMessages=n={}))},519:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7660:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1523),t),i(n(1606),t),i(n(6233),t),i(n(3064),t),i(n(519),t),i(n(2687),t)},2687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6537:function(e,t,n){"use strict";var r=n(7757),i=n(3269).default,o=r.mark(a);function a(e,t){var n,i,a,s;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=e[Symbol.iterator](),i=t[Symbol.iterator]();case 2:if(a=n.next(),s=i.next(),!a.done&&!s.done){r.next=7;break}return r.abrupt("break",11);case 7:return r.next=9,[a.value,s.value];case 9:r.next=2;break;case 11:case"end":return r.stop()}}),o)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=t.truncate=t.zip=t.generatorContains=t.mapObject=t.findParentWithClassName=t.basename=t.defer=t.randomId=t.unwrap=t.notEmpty=void 0,t.notEmpty=function(e){return null!=e},t.unwrap=function(e){if(null==e)throw new Error("expected value not to be ".concat(e));return e},t.randomId=function(){return Date.now().toString(36)+Math.random().toString(36)},t.defer=function(){var e={promise:void 0,resolve:void 0,reject:void 0};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},t.basename=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=e.lastIndexOf(t);return-1===n?e:e.slice(n+1)},t.findParentWithClassName=function(e,t){for(var n=e;n;){var r;if(null!==(r=n.classList)&&void 0!==r&&r.contains(t))return n;n=n.parentElement}},t.mapObject=function(e,t){return Object.fromEntries(Object.entries(e).map(t))},t.generatorContains=function(e,t){var n,r="function"==typeof t?t:function(e){return e===t},o=i(e);try{for(o.s();!(n=o.n()).done;)if(r(n.value))return!0}catch(e){o.e(e)}finally{o.f()}return!1},t.zip=a,t.truncate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.substring(0,Math.max(0,t-1))+"…":e},t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)}},4299:function(e,t,n){"use strict";n.r(t),n.d(t,{Collection:function(){return O},Iterable:function(){return Ar},List:function(){return ln},Map:function(){return Zt},OrderedMap:function(){return xn},OrderedSet:function(){return cr},PairSorting:function(){return vr},Range:function(){return $n},Record:function(){return mr},Repeat:function(){return xr},Seq:function(){return Q},Set:function(){return Fn},Stack:function(){return An},fromJS:function(){return Cr},get:function(){return ut},getIn:function(){return Yn},has:function(){return st},hasIn:function(){return Gn},hash:function(){return ge},is:function(){return he},isAssociative:function(){return C},isCollection:function(){return b},isImmutable:function(){return I},isIndexed:function(){return x},isKeyed:function(){return w},isList:function(){return un},isMap:function(){return ce},isOrdered:function(){return N},isOrderedMap:function(){return de},isOrderedSet:function(){return Mn},isPlainObject:function(){return it},isRecord:function(){return j},isSeq:function(){return R},isSet:function(){return Nn},isStack:function(){return Tn},isValueObject:function(){return fe},merge:function(){return Ct},mergeDeep:function(){return St},mergeDeepWith:function(){return Et},mergeWith:function(){return Ot},remove:function(){return ct},removeIn:function(){return mt},set:function(){return dt},setIn:function(){return pt},update:function(){return yt},updateIn:function(){return ft},version:function(){return Er}});var r="delete",i=5,o=1<<i,a=o-1,s={};function u(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(f)),e.size}function d(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function f(){return!0}function h(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return m(e,t,0)}function v(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[y])}var _="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[_])}var k="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[k])}function C(e){return w(e)||x(e)}var O=function(e){return b(e)?e:Q(e)},S=function(e){function t(e){return w(e)?e:J(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(O),E=function(e){function t(e){return x(e)?e:X(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(O),T=function(e){function t(e){return b(e)&&!C(e)?e:ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(O);O.Keyed=S,O.Indexed=E,O.Set=T;var A="@@__IMMUTABLE_SEQ__@@";function R(e){return Boolean(e&&e[A])}var D="@@__IMMUTABLE_RECORD__@@";function j(e){return Boolean(e&&e[D])}function I(e){return b(e)||j(e)}var P="@@__IMMUTABLE_ORDERED__@@";function N(e){return Boolean(e&&e[P])}var M=0,L=1,Z=2,z="function"==typeof Symbol&&Symbol.iterator,F="@@iterator",B=z||F,V=function(e){this.next=e};function H(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function U(){return{value:void 0,done:!0}}function K(e){return!!Array.isArray(e)||!!Y(e)}function q(e){return e&&"function"==typeof e.next}function $(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(z&&e[z]||e[F]);if("function"==typeof t)return t}V.prototype.toString=function(){return"[Iterator]"},V.KEYS=M,V.VALUES=L,V.ENTRIES=Z,V.prototype.inspect=V.prototype.toSource=function(){return this.toString()},V.prototype[B]=function(){return this};var W=Object.prototype.hasOwnProperty;function G(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Q=function(e){function t(e){return null==e?oe():I(e)?e.toSeq():function(e){var t=ue(e);if(t)return function(e){var t=Y(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=Y(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"==typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new V((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return H(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(O),J=function(e){function t(e){return null==e?oe().toKeyedSeq():b(e)?w(e)?e.toSeq():e.fromEntrySeq():j(e)?e.toSeq():ae(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Q),X=function(e){function t(e){return null==e?oe():b(e)?w(e)?e.entrySeq():e.toIndexedSeq():j(e)?e.toSeq().entrySeq():se(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Q),ee=function(e){function t(e){return(b(e)&&!C(e)?e:X(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Q);Q.isSeq=R,Q.Keyed=J,Q.Set=ee,Q.Indexed=X,Q.prototype[A]=!0;var te=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[d(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new V((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return H(e,o,n[o])}))},t}(X),ne=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return W.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new V((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return H(e,a,n[a])}))},t}(J);ne.prototype[P]=!0;var re,ie=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=$(this._collection),r=0;if(q(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=$(this._collection);if(!q(n))return new V(U);var r=0;return new V((function(){var t=n.next();return t.done?t:H(e,r++,t.value)}))},t}(X);function oe(){return re||(re=new te([]))}function ae(e){var t=ue(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new ne(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function se(e){var t=ue(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ue(e){return G(e)?new te(e):K(e)?new ie(e):void 0}var le="@@__IMMUTABLE_MAP__@@";function ce(e){return Boolean(e&&e[le])}function de(e){return ce(e)&&N(e)}function fe(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function he(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(fe(e)&&fe(t)&&e.equals(t))}var pe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ve(e){return e>>>1&1073741824|3221225471&e}var me=Object.prototype.valueOf;function ge(e){if(null==e)return ye(e);if("function"==typeof e.hashCode)return ve(e.hashCode(e));var t,n=(t=e).valueOf!==me&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return ye(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return ve(t)}(n);case"string":return n.length>Te?function(e){var t=De[e];return void 0===t&&(t=be(e),Re===Ae&&(Re=0,De={}),Re++,De[e]=t),t}(n):be(n);case"object":case"function":return function(e){var t;if(Ce&&void 0!==(t=xe.get(e)))return t;if(void 0!==(t=e[Ee]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ee]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ke(),Ce)xe.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Ee,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ee]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ee]=t}}return t}(n);case"symbol":return function(e){var t=Oe[e];return void 0!==t||(t=ke(),Oe[e]=t),t}(n);default:if("function"==typeof n.toString)return be(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ye(e){return null===e?1108378658:1108378659}function be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ve(t)}var _e=Object.isExtensible,we=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function ke(){var e=++Se;return 1073741824&Se&&(Se=0),e}var xe,Ce="function"==typeof WeakMap;Ce&&(xe=new WeakMap);var Oe=Object.create(null),Se=0,Ee="__immutablehash__";"function"==typeof Symbol&&(Ee=Symbol(Ee));var Te=16,Ae=255,Re=0,De={},je=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Ze(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Le(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(J);je.prototype[P]=!0;var Ie=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&c(this),this._iter.__iterate((function(i){return e(i,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(L,t),i=0;return t&&c(this),new V((function(){var o=r.next();return o.done?o:H(e,t?n.size-++i:i++,o.value,o)}))},t}(X),Pe=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new V((function(){var t=n.next();return t.done?t:H(e,t.value,t.value,t)}))},t}(ee),Ne=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ye(t);var r=b(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new V((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ye(r);var i=b(r);return H(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(J);function Me(e){var t=Ge(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qe,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===Z){var r=e.__iterator(t,n);return new V((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?M:L,n)},t}function Le(e,t,n){var r=Ge(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,s);return o===s?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate((function(e,i,a){return!1!==r(t.call(n,e,i,a),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(Z,i);return new V((function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return H(r,s,t.call(n,a[1],s,e),i)}))},r}function Ze(e,t){var n=this,r=Ge(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Me(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Qe,r.__iterate=function(n,r){var i=this,o=0;return r&&c(e),e.__iterate((function(e,a){return n(e,t?a:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&c(e);var a=e.__iterator(Z,!i);return new V((function(){var e=a.next();if(e.done)return e;var s=e.value;return H(r,t?s[0]:i?n.size-++o:o++,s[1],e)}))},r}function ze(e,t,n,r){var i=Ge(e);return r&&(i.has=function(r){var i=e.get(r,s);return i!==s&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,s);return o!==s&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return e.__iterate((function(e,o,u){if(t.call(n,e,o,u))return s++,i(e,r?o:s-1,a)}),o),s},i.__iteratorUncached=function(i,o){var a=e.__iterator(Z,o),s=0;return new V((function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return H(i,r?l:s++,c,o)}}))},i}function Fe(e,t,n,r){var i=e.size;if(h(t,n,i))return e;var o=p(t,i),a=v(n,i);if(o!=o||a!=a)return Fe(e.toSeq().cacheResult(),t,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var l=Ge(e);return l.size=0===s?s:e.size&&s||void 0,!r&&R(e)&&s>=0&&(l.get=function(t,n){return(t=d(this,t))>=0&&t<s?e.get(t+o,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,l=0;return e.__iterate((function(e,n){if(!u||!(u=a++<o))return l++,!1!==t(e,r?n:l-1,i)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new V(U);var i=e.__iterator(t,n),a=0,u=0;return new V((function(){for(;a++<o;)i.next();if(++u>s)return{value:void 0,done:!0};var e=i.next();return r||t===L||e.done?e:H(t,u-1,t===M?void 0:e.value[1],e)}))},l}function Be(e,t,n,r){var i=Ge(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return e.__iterate((function(e,o,l){if(!s||!(s=t.call(n,e,o,l)))return u++,i(e,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(Z,o),u=!0,l=0;return new V((function(){var e,o,c;do{if((e=s.next()).done)return r||i===L?e:H(i,l++,i===M?void 0:e.value[1],e);var d=e.value;o=d[0],c=d[1],u&&(u=t.call(n,c,o,a))}while(u);return i===Z?e:H(i,o,c,e)}))},i}function Ve(e,t,n){var r=Ge(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(u,l){u.__iterate((function(o,u){return(!t||l<t)&&b(o)?e(o,l+1):(a++,!1===i(o,n?u:a-1,r)&&(s=!0)),!s}),o)}(e,0),a},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),a=[],s=0;return new V((function(){for(;o;){var e=o.next();if(!1===e.done){var u=e.value;if(r===Z&&(u=u[1]),t&&!(a.length<t)||!b(u))return n?e:H(r,s++,u,e);a.push(o),o=u.__iterator(r,i)}else o=a.pop()}return{value:void 0,done:!0}}))},r}function He(e,t,n){t||(t=Je);var r=w(e),i=0,o=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).valueSeq().toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?J(o):x(e)?X(o):ee(o)}function Ue(e,t,n){if(t||(t=Je),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Ke(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Ke(t,e,n)?n:e}))}function Ke(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function qe(e,t,n,r){var i=Ge(e),o=new te(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=O(e),$(i?e.reverse():e)})),a=0,s=!1;return new V((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:H(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function $e(e,t){return e===t?e:R(e)?t:e.constructor(t)}function Ye(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function We(e){return w(e)?S:x(e)?E:T}function Ge(e){return Object.create((w(e)?J:x(e)?X:ee).prototype)}function Qe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function Je(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Xe(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function et(e,t){if(!e)throw new Error(t)}function tt(e){et(e!==1/0,"Cannot perform this action with an infinite size.")}function nt(e){if(G(e)&&"string"!=typeof e)return e;if(N(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ie.prototype.cacheResult=je.prototype.cacheResult=Pe.prototype.cacheResult=Ne.prototype.cacheResult=Qe;var rt=Object.prototype.toString;function it(e){if(!e||"object"!=typeof e||"[object Object]"!==rt.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function ot(e){return"object"==typeof e&&(I(e)||Array.isArray(e)||it(e))}function at(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function st(e,t){return I(e)?e.has(t):ot(e)&&W.call(e,t)}function ut(e,t,n){return I(e)?e.get(t,n):st(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function lt(e){if(Array.isArray(e))return Xe(e);var t={};for(var n in e)W.call(e,n)&&(t[n]=e[n]);return t}function ct(e,t){if(!ot(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!W.call(e,t))return e;var n=lt(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function dt(e,t,n){if(!ot(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(W.call(e,t)&&n===e[t])return e;var r=lt(e);return r[t]=n,r}function ft(e,t,n,r){r||(r=n,n=void 0);var i=ht(I(e),e,nt(t),0,n,r);return i===s?n:i}function ht(e,t,n,r,i,o){var a=t===s;if(r===n.length){var u=a?i:t,l=o(u);return l===u?t:l}if(!a&&!ot(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(at)+"]: "+t);var c=n[r],d=a?s:ut(t,c,s),f=ht(d===s?e:I(d),d,n,r+1,i,o);return f===d?t:f===s?ct(t,c):dt(a?e?Gt():{}:t,c,f)}function pt(e,t,n){return ft(e,t,s,(function(){return n}))}function vt(e,t){return pt(this,e,t)}function mt(e,t){return ft(e,t,(function(){return s}))}function gt(e){return mt(this,e)}function yt(e,t,n,r){return ft(e,[t],n,r)}function bt(e,t,n){return 1===arguments.length?e(this):yt(this,e,t,n)}function _t(e,t,n){return ft(this,e,t,n)}function wt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return xt(this,e)}function kt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return xt(this,t,e)}function xt(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=S(t[i]);0!==o.size&&r.push(o)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){yt(e,r,s,(function(e){return e===s?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})):e.constructor(r[0])}function Ct(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return At(e,t)}function Ot(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return At(t,n,e)}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Tt(e,t)}function Et(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Tt(t,n,e)}function Tt(e,t,n){return At(e,t,function(e){return function t(n,r,i){return ot(n)&&ot(r)&&function(e,t){var n=Q(e),r=Q(t);return x(n)===x(r)&&w(n)===w(r)}(n,r)?At(n,[r],t):e?e(n,r,i):r}}(n))}function At(e,t,n){if(!ot(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(I(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,o=r?E:S,a=r?function(t){i===e&&(i=lt(i)),i.push(t)}:function(t,r){var o=W.call(i,r),a=o&&n?n(i[r],t,r):t;o&&a===i[r]||(i===e&&(i=lt(i)),i[r]=a)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function Rt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Tt(this,e)}function Dt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Tt(this,t,e)}function jt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ft(this,e,Gt(),(function(e){return At(e,t)}))}function It(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ft(this,e,Gt(),(function(e){return Tt(e,t)}))}function Pt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Nt(){return this.__ownerID?this:this.__ensureOwner(new l)}function Mt(){return this.__ensureOwner()}function Lt(){return this.__altered}var Zt=function(e){function t(t){return null==t?Gt():ce(t)&&!N(t)?t:Gt().withMutations((function(n){var r=e(t);tt(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Gt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Qt(this,e,t)},t.prototype.remove=function(e){return Qt(this,e,s)},t.prototype.deleteAll=function(e){var t=O(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},t.prototype.sort=function(e){return xn(He(this,e))},t.prototype.sortBy=function(e,t){return xn(He(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new qt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Wt(this.size,this._root,e,this.__hash):0===this.size?Gt():(this.__ownerID=e,this.__altered=!1,this)},t}(S);Zt.isMap=ce;var zt=Zt.prototype;zt[le]=!0,zt[r]=zt.remove,zt.removeAll=zt.deleteAll,zt.setIn=vt,zt.removeIn=zt.deleteIn=gt,zt.update=bt,zt.updateIn=_t,zt.merge=zt.concat=wt,zt.mergeWith=kt,zt.mergeDeep=Rt,zt.mergeDeepWith=Dt,zt.mergeIn=jt,zt.mergeDeepIn=It,zt.withMutations=Pt,zt.wasAltered=Lt,zt.asImmutable=Mt,zt["@@transducer/init"]=zt.asMutable=Nt,zt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},zt["@@transducer/result"]=function(e){return e.asImmutable()};var Ft=function(e,t){this.ownerID=e,this.entries=t};Ft.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(he(n,i[o][0]))return i[o][1];return r},Ft.prototype.update=function(e,t,n,r,i,o,a){for(var c=i===s,d=this.entries,f=0,h=d.length;f<h&&!he(r,d[f][0]);f++);var p=f<h;if(p?d[f][1]===i:c)return this;if(u(a),(c||!p)&&u(o),!c||1!==d.length){if(!p&&!c&&d.length>=rn)return function(e,t,n,r){e||(e=new l);for(var i=new Ut(e,ge(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}(e,d,r,i);var v=e&&e===this.ownerID,m=v?d:Xe(d);return p?c?f===h-1?m.pop():m[f]=m.pop():m[f]=[r,i]:m.push([r,i]),v?(this.entries=m,this):new Ft(e,m)}};var Bt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Bt.prototype.get=function(e,t,n,r){void 0===t&&(t=ge(n));var o=1<<((0===e?t:t>>>e)&a),s=this.bitmap;return 0==(s&o)?r:this.nodes[tn(s&o-1)].get(e+i,t,n,r)},Bt.prototype.update=function(e,t,n,r,u,l,c){void 0===n&&(n=ge(r));var d=(0===t?n:n>>>t)&a,f=1<<d,h=this.bitmap,p=0!=(h&f);if(!p&&u===s)return this;var v=tn(h&f-1),m=this.nodes,g=p?m[v]:void 0,y=Jt(g,e,t+i,n,r,u,l,c);if(y===g)return this;if(!p&&y&&m.length>=on)return function(e,t,n,r,i){for(var a=0,s=new Array(o),u=0;0!==n;u++,n>>>=1)s[u]=1&n?t[a++]:void 0;return s[r]=i,new Vt(e,a+1,s)}(e,m,h,d,y);if(p&&!y&&2===m.length&&Xt(m[1^v]))return m[1^v];if(p&&y&&1===m.length&&Xt(y))return y;var b=e&&e===this.ownerID,_=p?y?h:h^f:h|f,w=p?y?nn(m,v,y,b):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}(m,v,b):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}(m,v,y,b);return b?(this.bitmap=_,this.nodes=w,this):new Bt(e,_,w)};var Vt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Vt.prototype.get=function(e,t,n,r){void 0===t&&(t=ge(n));var o=(0===e?t:t>>>e)&a,s=this.nodes[o];return s?s.get(e+i,t,n,r):r},Vt.prototype.update=function(e,t,n,r,o,u,l){void 0===n&&(n=ge(r));var c=(0===t?n:n>>>t)&a,d=o===s,f=this.nodes,h=f[c];if(d&&!h)return this;var p=Jt(h,e,t+i,n,r,o,u,l);if(p===h)return this;var v=this.count;if(h){if(!p&&--v<an)return function(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=t.length;s<l;s++,u<<=1){var c=t[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new Bt(e,i,a)}(e,f,v,c)}else v++;var m=e&&e===this.ownerID,g=nn(f,c,p,m);return m?(this.count=v,this.nodes=g,this):new Vt(e,v,g)};var Ht=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Ht.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(he(n,i[o][0]))return i[o][1];return r},Ht.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=ge(r));var l=i===s;if(n!==this.keyHash)return l?this:(u(a),u(o),en(this,e,t,n,[r,i]));for(var c=this.entries,d=0,f=c.length;d<f&&!he(r,c[d][0]);d++);var h=d<f;if(h?c[d][1]===i:l)return this;if(u(a),(l||!h)&&u(o),l&&2===f)return new Ut(e,this.keyHash,c[1^d]);var p=e&&e===this.ownerID,v=p?c:Xe(c);return h?l?d===f-1?v.pop():v[d]=v.pop():v[d]=[r,i]:v.push([r,i]),p?(this.entries=v,this):new Ht(e,this.keyHash,v)};var Ut=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Ut.prototype.get=function(e,t,n,r){return he(n,this.entry[0])?this.entry[1]:r},Ut.prototype.update=function(e,t,n,r,i,o,a){var l=i===s,c=he(r,this.entry[0]);return(c?i===this.entry[1]:l)?this:(u(a),l?void u(o):c?e&&e===this.ownerID?(this.entry[1]=i,this):new Ut(e,this.keyHash,[r,i]):(u(o),en(this,e,t,ge(r),[r,i])))},Ft.prototype.iterate=Ht.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Bt.prototype.iterate=Vt.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&!1===o.iterate(e,t))return!1}},Ut.prototype.iterate=function(e,t){return e(this.entry)};var Kt,qt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Yt(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return $t(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return $t(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var o=n.nodes[this._reverse?i-r:r];if(o){if(o.entry)return $t(e,o.entry);t=this._stack=Yt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(V);function $t(e,t){return H(e,t[0],t[1])}function Yt(e,t){return{node:e,index:0,__prev:t}}function Wt(e,t,n,r){var i=Object.create(zt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Gt(){return Kt||(Kt=Wt(0))}function Qt(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=Jt(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===s?-1:1:0)}else{if(n===s)return e;i=1,r=new Ft(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Wt(i,r):Gt()}function Jt(e,t,n,r,i,o,a,l){return e?e.update(t,n,r,i,o,a,l):o===s?e:(u(l),u(a),new Ut(t,r,[i,o]))}function Xt(e){return e.constructor===Ut||e.constructor===Ht}function en(e,t,n,r,o){if(e.keyHash===r)return new Ht(t,r,[e.entry,o]);var s,u=(0===n?e.keyHash:e.keyHash>>>n)&a,l=(0===n?r:r>>>n)&a,c=u===l?[en(e,t,n+i,r,o)]:(s=new Ut(t,r,o),u<l?[e,s]:[s,e]);return new Bt(t,1<<u|1<<l,c)}function tn(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function nn(e,t,n,r){var i=r?e:Xe(e);return i[t]=n,i}var rn=o/4,on=o/2,an=o/4,sn="@@__IMMUTABLE_LIST__@@";function un(e){return Boolean(e&&e[sn])}var ln=function(e){function t(t){var n=mn();if(null==t)return n;if(un(t))return t;var r=e(t),a=r.size;return 0===a?n:(tt(a),a>0&&a<o?vn(0,a,i,null,new dn(r.toArray())):n.withMutations((function(e){e.setSize(a),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=d(this,e))>=0&&e<this.size){var n=bn(this,e+=this._origin);return n&&n.array[e&a]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=d(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?_n(e,t).set(0,n):_n(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=wn(e._capacity)?r=gn(r,e.__ownerID,0,t,n,o):i=gn(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):vn(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=i,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):mn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){_n(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return _n(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){_n(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return _n(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],o=e("string"!=typeof i&&K(i)?i:[i]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return _n(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))}))},t.prototype.slice=function(e,t){var n=this.size;return h(e,t,n)?this:_n(this,p(e,n),v(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=pn(this,t);return new V((function(){var i=r();return i===hn?{value:void 0,done:!0}:H(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=pn(this,t);(n=i())!==hn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?mn():(this.__ownerID=e,this.__altered=!1,this)},t}(E);ln.isList=un;var cn=ln.prototype;cn[sn]=!0,cn[r]=cn.remove,cn.merge=cn.concat,cn.setIn=vt,cn.deleteIn=cn.removeIn=gt,cn.update=bt,cn.updateIn=_t,cn.mergeIn=jt,cn.mergeDeepIn=It,cn.withMutations=Pt,cn.wasAltered=Lt,cn.asImmutable=Mt,cn["@@transducer/init"]=cn.asMutable=Nt,cn["@@transducer/step"]=function(e,t){return e.push(t)},cn["@@transducer/result"]=function(e){return e.asImmutable()};var dn=function(e,t){this.array=e,this.ownerID=t};dn.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&a;if(r>=this.array.length)return new dn([],e);var o,s=0===r;if(t>0){var u=this.array[r];if((o=u&&u.removeBefore(e,t-i,n))===u&&s)return this}if(s&&!o)return this;var l=yn(this,e);if(!s)for(var c=0;c<r;c++)l.array[c]=void 0;return o&&(l.array[r]=o),l},dn.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&a;if(o>=this.array.length)return this;if(t>0){var s=this.array[o];if((r=s&&s.removeAfter(e,t-i,n))===s&&o===this.array.length-1)return this}var u=yn(this,e);return u.array.splice(o+1),r&&(u.array[o]=r),u};var fn,hn={};function pn(e,t){var n=e._origin,r=e._capacity,a=wn(r),s=e._tail;return function e(u,l,c){return 0===l?function(e,i){var u=i===a?s&&s.array:e&&e.array,l=i>n?0:n-i,c=r-i;return c>o&&(c=o),function(){if(l===c)return hn;var e=t?--c:l++;return u&&u[e]}}(u,c):function(a,s,u){var l,c=a&&a.array,d=u>n?0:n-u>>s,f=1+(r-u>>s);return f>o&&(f=o),function(){for(;;){if(l){var n=l();if(n!==hn)return n;l=null}if(d===f)return hn;var r=t?--f:d++;l=e(c&&c[r],s-i,u+(r<<s))}}}(u,l,c)}(e._root,e._level,0)}function vn(e,t,n,r,i,o,a){var s=Object.create(cn);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function mn(){return fn||(fn=vn(0,0,i))}function gn(e,t,n,r,o,s){var l,c=r>>>n&a,d=e&&c<e.array.length;if(!d&&void 0===o)return e;if(n>0){var f=e&&e.array[c],h=gn(f,t,n-i,r,o,s);return h===f?e:((l=yn(e,t)).array[c]=h,l)}return d&&e.array[c]===o?e:(s&&u(s),l=yn(e,t),void 0===o&&c===l.array.length-1?l.array.pop():l.array[c]=o,l)}function yn(e,t){return t&&e&&t===e.ownerID?e:new dn(e?e.array.slice():[],t)}function bn(e,t){if(t>=wn(e._capacity))return e._tail;if(t<1<<e._level+i){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&a],r-=i;return n}}function _n(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,o=e._origin,s=e._capacity,u=o+t,c=void 0===n?s:n<0?s+n:o+n;if(u===o&&c===s)return e;if(u>=c)return e.clear();for(var d=e._level,f=e._root,h=0;u+h<0;)f=new dn(f&&f.array.length?[void 0,f]:[],r),h+=1<<(d+=i);h&&(u+=h,o+=h,c+=h,s+=h);for(var p=wn(s),v=wn(c);v>=1<<d+i;)f=new dn(f&&f.array.length?[f]:[],r),d+=i;var m=e._tail,g=v<p?bn(e,c-1):v>p?new dn([],r):m;if(m&&v>p&&u<s&&m.array.length){for(var y=f=yn(f,r),b=d;b>i;b-=i){var _=p>>>b&a;y=y.array[_]=yn(y.array[_],r)}y.array[p>>>i&a]=m}if(c<s&&(g=g&&g.removeAfter(r,0,c)),u>=v)u-=v,c-=v,d=i,f=null,g=g&&g.removeBefore(r,0,u);else if(u>o||v<p){for(h=0;f;){var w=u>>>d&a;if(w!==v>>>d&a)break;w&&(h+=(1<<d)*w),d-=i,f=f.array[w]}f&&u>o&&(f=f.removeBefore(r,d,u-h)),f&&v<p&&(f=f.removeAfter(r,d,v-h)),h&&(u-=h,c-=h)}return e.__ownerID?(e.size=c-u,e._origin=u,e._capacity=c,e._level=d,e._root=f,e._tail=g,e.__hash=void 0,e.__altered=!0,e):vn(u,c,d,f,g)}function wn(e){return e<o?0:e-1>>>i<<i}var kn,xn=function(e){function t(e){return null==e?On():de(e)?e:On().withMutations((function(t){var n=S(e);tt(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):On()},t.prototype.set=function(e,t){return Sn(this,e,t)},t.prototype.remove=function(e){return Sn(this,e,s)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Cn(t,n,e,this.__hash):0===this.size?On():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Zt);function Cn(e,t,n,r){var i=Object.create(xn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function On(){return kn||(kn=Cn(Gt(),mn()))}function Sn(e,t,n){var r,i,a=e._map,u=e._list,l=a.get(t),c=void 0!==l;if(n===s){if(!c)return e;u.size>=o&&u.size>=2*a.size?(r=(i=u.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=a.remove(t),i=l===u.size-1?u.pop():u.set(l,void 0))}else if(c){if(n===u.get(l)[1])return e;r=a,i=u.set(l,[t,n])}else r=a.set(t,u.size),i=u.set(u.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):Cn(r,i)}xn.isOrderedMap=de,xn.prototype[P]=!0,xn.prototype[r]=xn.prototype.remove;var En="@@__IMMUTABLE_STACK__@@";function Tn(e){return Boolean(e&&e[En])}var An=function(e){function t(e){return null==e?In():Tn(e)?e:In().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=d(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Tn(t))return t;tt(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):jn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):In()},t.prototype.slice=function(t,n){if(h(t,n,this.size))return this;var r=p(t,this.size);if(v(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):0===this.size?In():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new te(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new te(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new V((function(){if(r){var t=r.value;return r=r.next,H(e,n++,t)}return{value:void 0,done:!0}}))},t}(E);An.isStack=Tn;var Rn,Dn=An.prototype;function jn(e,t,n,r){var i=Object.create(Dn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function In(){return Rn||(Rn=jn(0))}Dn[En]=!0,Dn.shift=Dn.pop,Dn.unshift=Dn.push,Dn.unshiftAll=Dn.pushAll,Dn.withMutations=Pt,Dn.wasAltered=Lt,Dn.asImmutable=Mt,Dn["@@transducer/init"]=Dn.asMutable=Nt,Dn["@@transducer/step"]=function(e,t){return e.unshift(t)},Dn["@@transducer/result"]=function(e){return e.asImmutable()};var Pn="@@__IMMUTABLE_SET__@@";function Nn(e){return Boolean(e&&e[Pn])}function Mn(e){return Nn(e)&&N(e)}function Ln(e,t){if(e===t)return!0;if(!b(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||w(e)!==w(t)||x(e)!==x(t)||N(e)!==N(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!C(e);if(N(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&he(i[1],e)&&(n||he(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,u=t.__iterate((function(t,r){if(n?!e.has(t):i?!he(t,e.get(r,s)):!he(e.get(r,s),t))return a=!1,!1}));return a&&e.size===u}function Zn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function zn(e){if(!e||"object"!=typeof e)return e;if(!b(e)){if(!ot(e))return e;e=Q(e)}if(w(e)){var t={};return e.__iterate((function(e,n){t[n]=zn(e)})),t}var n=[];return e.__iterate((function(e){n.push(zn(e))})),n}var Fn=function(e){function t(t){return null==t?Kn():Nn(t)&&!N(t)?t:Kn().withMutations((function(n){var r=e(t);tt(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.intersect=function(e){return(e=O(e).toArray()).length?Vn.intersect.apply(t(e.pop()),e):Kn()},t.union=function(e){return(e=O(e).toArray()).length?Vn.union.apply(t(e.pop()),e):Kn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Hn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Hn(this,this._map.remove(e))},t.prototype.clear=function(){return Hn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Hn(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"==typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return cr(He(this,e))},t.prototype.sortBy=function(e,t){return cr(He(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(T);Fn.isSet=Nn;var Bn,Vn=Fn.prototype;function Hn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Un(e,t){var n=Object.create(Vn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return Bn||(Bn=Un(Gt()))}Vn[Pn]=!0,Vn[r]=Vn.remove,Vn.merge=Vn.concat=Vn.union,Vn.withMutations=Pt,Vn.asImmutable=Mt,Vn["@@transducer/init"]=Vn.asMutable=Nt,Vn["@@transducer/step"]=function(e,t){return e.add(t)},Vn["@@transducer/result"]=function(e){return e.asImmutable()},Vn.__empty=Kn,Vn.__make=Un;var qn,$n=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(et(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(qn)return qn;qn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+d(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return h(e,n,this.size)?this:(e=p(e,this.size),(n=v(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;o!==n&&!1!==e(i,t?n-++o:o++,this);)i+=t?-r:r;return o},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,o=0;return new V((function(){if(o===n)return{value:void 0,done:!0};var a=i;return i+=t?-r:r,H(e,t?n-++o:o++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Ln(this,e)},t}(X);function Yn(e,t,n){for(var r=nt(t),i=0;i!==r.length;)if((e=ut(e,r[i++],s))===s)return n;return e}function Wn(e,t){return Yn(this,e,t)}function Gn(e,t){return Yn(e,t,s)!==s}function Qn(){tt(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}O.isIterable=b,O.isKeyed=w,O.isIndexed=x,O.isAssociative=C,O.isOrdered=N,O.Iterator=V,Zn(O,{toArray:function(){tt(this.size);var e=new Array(this.size||0),t=w(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Ie(this)},toJS:function(){return zn(this)},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Zt(this.toKeyedSeq())},toObject:Qn,toOrderedMap:function(){return xn(this.toKeyedSeq())},toOrderedSet:function(){return cr(w(this)?this.valueSeq():this)},toSet:function(){return Fn(w(this)?this.valueSeq():this)},toSetSeq:function(){return new Pe(this)},toSeq:function(){return x(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return An(w(this)?this.valueSeq():this)},toList:function(){return ln(w(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return $e(this,function(e,t){var n=w(e),r=[e].concat(t).map((function(e){return b(e)?n&&(e=S(e)):e=n?ae(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&w(i)||x(e)&&x(i))return i}var o=new te(r);return n?o=o.toKeyedSeq():x(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}(this,e))},includes:function(e){return this.some((function(t){return he(t,e)}))},entries:function(){return this.__iterator(Z)},every:function(e,t){tt(this.size);var n=!0;return this.__iterate((function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1})),n},filter:function(e,t){return $e(this,ze(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=w(e),i=[[],[]];e.__iterate((function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)}));var o=We(e);return i.map((function(t){return $e(e,o(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return tt(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){tt(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(M)},map:function(e,t){return $e(this,Le(this,e,t))},reduce:function(e,t,n){return nr(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return nr(this,e,t,n,arguments.length<2,!0)},reverse:function(){return $e(this,Ze(this,!0))},slice:function(e,t){return $e(this,Fe(this,e,t,!0))},some:function(e,t){tt(this.size);var n=!1;return this.__iterate((function(r,i,o){if(e.call(t,r,i,o))return n=!0,!1})),n},sort:function(e){return $e(this,He(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return c(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Zt().asMutable();return e.__iterate((function(i,o){r.update(t.call(n,i,o,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Ln(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ir).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(or(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(f,null,e)},flatMap:function(e,t){return $e(this,function(e,t,n){var r=We(e);return e.toSeq().map((function(i,o){return r(t.call(n,i,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return $e(this,Ve(this,e,!0))},fromEntrySeq:function(){return new Ne(this)},get:function(e,t){return this.find((function(t,n){return he(n,e)}),void 0,t)},getIn:Wn,groupBy:function(e,t){return function(e,t,n){var r=w(e),i=(N(e)?xn():Zt()).asMutable();e.__iterate((function(o,a){i.update(t.call(n,o,a,e),(function(e){return(e=e||[]).push(r?[a,o]:o),e}))}));var o=We(e);return i.map((function(t){return $e(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,s)!==s},hasIn:function(e){return Gn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:O(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:O(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return he(t,e)}))},keySeq:function(){return this.toSeq().map(rr).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ue(this,e)},maxBy:function(e,t){return Ue(this,t,e)},min:function(e){return Ue(this,e?ar(e):ur)},minBy:function(e,t){return Ue(this,t?ar(t):ur,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return $e(this,Be(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(or(e),t)},sortBy:function(e,t){return $e(this,He(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return $e(this,function(e,t,n){var r=Ge(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate((function(e,i,s){return t.call(n,e,i,s)&&++a&&r(e,i,o)})),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(Z,i),s=!0;return new V((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var i=e.value,u=i[0],l=i[1];return t.call(n,l,u,o)?r===Z?e:H(r,u,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(or(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=N(e),n=w(e),r=t?1:0;return function(e,t){return t=pe(t,3432918353),t=pe(t<<15|t>>>-15,461845907),t=pe(t<<13|t>>>-13,5),t=pe((t=(t+3864292196|0)^e)^t>>>16,2246822507),ve((t=pe(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+lr(ge(e),ge(t))|0}:function(e,t){r=r+lr(ge(e),ge(t))|0}:t?function(e){r=31*r+ge(e)|0}:function(e){r=r+ge(e)|0}),r)}(this))}});var Jn=O.prototype;Jn[y]=!0,Jn[B]=Jn.values,Jn.toJSON=Jn.toArray,Jn.__toStringMapper=at,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,Zn(S,{flip:function(){return $e(this,Me(this))},mapEntries:function(e,t){var n=this,r=0;return $e(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return $e(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Xn=S.prototype;Xn[_]=!0,Xn[B]=Jn.entries,Xn.toJSON=Qn,Xn.__toStringMapper=function(e,t){return at(t)+": "+at(e)},Zn(E,{toKeyedSeq:function(){return new je(this,!1)},filter:function(e,t){return $e(this,ze(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return $e(this,Ze(this,!1))},slice:function(e,t){return $e(this,Fe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return $e(this,1===n?r:r.concat(Xe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return $e(this,Ve(this,e,!1))},get:function(e,t){return(e=d(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=d(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return $e(this,function(e,t){var n=Ge(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return e.__iterate((function(e){return(!o||!1!==n(t,o++,i))&&!1!==n(e,o++,i)}),r),o},n.__iteratorUncached=function(n,r){var i,o=e.__iterator(L,r),a=0;return new V((function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?H(n,a++,t):H(n,a++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(Xe(arguments)),t=qe(this.toSeq(),X.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),$e(this,n)},keySeq:function(){return $n(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return $e(this,Be(this,e,t,!1))},zip:function(){return $e(this,qe(this,sr,[this].concat(Xe(arguments))))},zipAll:function(){return $e(this,qe(this,sr,[this].concat(Xe(arguments)),!0))},zipWith:function(e){var t=Xe(arguments);return t[0]=this,$e(this,qe(this,e,t))}});var er=E.prototype;er[k]=!0,er[P]=!0,Zn(T,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var tr=T.prototype;function nr(e,t,n,r,i,o){return tt(e.size),e.__iterate((function(e,o,a){i?(i=!1,n=e):n=t.call(r,n,e,o,a)}),o),n}function rr(e,t){return t}function ir(e,t){return[t,e]}function or(e){return function(){return!e.apply(this,arguments)}}function ar(e){return function(){return-e.apply(this,arguments)}}function sr(){return Xe(arguments)}function ur(e,t){return e<t?1:e>t?-1:0}function lr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}tr.has=Jn.includes,tr.contains=tr.includes,tr.keys=tr.values,Zn(J,Xn),Zn(X,er),Zn(ee,tr);var cr=function(e){function t(e){return null==e?pr():Mn(e)?e:pr().withMutations((function(t){var n=T(e);tt(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Fn);cr.isOrderedSet=Mn;var dr,fr=cr.prototype;function hr(e,t){var n=Object.create(fr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function pr(){return dr||(dr=hr(On()))}fr[P]=!0,fr.zip=er.zip,fr.zipWith=er.zipWith,fr.zipAll=er.zipAll,fr.__empty=pr,fr.__make=hr;var vr={LeftThenRight:-1,RightThenLeft:1},mr=function(e,t){var n;!function(e){if(j(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),u=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var c=s[l];u[c]=l,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+br(this)+' with property "'+c+'" since that property name is part of the Record API.'):wr(i,c)}}return this.__ownerID=void 0,this._values=ln().withMutations((function(e){e.setSize(a._keys.length),S(o).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},i=r.prototype=Object.create(gr);return i.constructor=r,t&&(r.displayName=t),r};mr.prototype.toString=function(){for(var e,t=br(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+at(this.get(e));return t+" }"},mr.prototype.equals=function(e){return this===e||j(e)&&_r(this).equals(_r(e))},mr.prototype.hashCode=function(){return _r(this).hashCode()},mr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},mr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},mr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return yr(this,n)}return this},mr.prototype.remove=function(e){return this.set(e)},mr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:yr(this,e)},mr.prototype.wasAltered=function(){return this._values.wasAltered()},mr.prototype.toSeq=function(){return _r(this)},mr.prototype.toJS=function(){return zn(this)},mr.prototype.entries=function(){return this.__iterator(Z)},mr.prototype.__iterator=function(e,t){return _r(this).__iterator(e,t)},mr.prototype.__iterate=function(e,t){return _r(this).__iterate(e,t)},mr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?yr(this,t,e):(this.__ownerID=e,this._values=t,this)},mr.isRecord=j,mr.getDescriptiveName=br;var gr=mr.prototype;function yr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function br(e){return e.constructor.displayName||e.constructor.name||"Record"}function _r(e){return ae(e._keys.map((function(t){return[t,e.get(t)]})))}function wr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){et(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}gr[D]=!0,gr[r]=gr.remove,gr.deleteIn=gr.removeIn=gt,gr.getIn=Wn,gr.hasIn=Jn.hasIn,gr.merge=wt,gr.mergeWith=kt,gr.mergeIn=jt,gr.mergeDeep=Rt,gr.mergeDeepWith=Dt,gr.mergeDeepIn=It,gr.setIn=vt,gr.update=bt,gr.updateIn=_t,gr.withMutations=Pt,gr.asMutable=Nt,gr.asImmutable=Mt,gr[B]=gr.entries,gr.toJSON=gr.toObject=Jn.toObject,gr.inspect=gr.toSource=function(){return this.toString()};var kr,xr=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(kr)return kr;kr=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return he(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return h(e,n,r)?this:new t(this._value,v(n,r)-p(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return he(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return he(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new V((function(){return i===r?{value:void 0,done:!0}:H(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?he(this._value,e._value):Ln(e)},t}(X);function Cr(e,t){return Or([],t||Sr,e,"",t&&t.length>2?[]:void 0,{"":e})}function Or(e,t,n,r,i,o){if("string"!=typeof n&&!I(n)&&(G(n)||K(n)||it(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var a=t.call(o,r,Q(n).map((function(r,o){return Or(e,t,r,o,i,n)})),i&&i.slice());return e.pop(),i&&i.pop(),a}return n}function Sr(e,t){return x(t)?t.toList():w(t)?t.toMap():t.toSet()}var Er="4.3.1",Tr={version:Er,Collection:O,Iterable:O,Seq:Q,Map:Zt,OrderedMap:xn,List:ln,Stack:An,Set:Fn,OrderedSet:cr,PairSorting:vr,Record:mr,Range:$n,Repeat:xr,is:he,fromJS:Cr,hash:ge,isImmutable:I,isCollection:b,isKeyed:w,isIndexed:x,isAssociative:C,isOrdered:N,isValueObject:fe,isPlainObject:it,isSeq:R,isList:un,isMap:ce,isOrderedMap:de,isStack:Tn,isSet:Nn,isOrderedSet:Mn,isRecord:j,get:ut,getIn:Yn,has:st,hasIn:Gn,merge:Ct,mergeDeep:St,mergeWith:Ot,mergeDeepWith:Et,remove:ct,removeIn:mt,set:dt,setIn:pt,update:yt,updateIn:ft},Ar=O;t.default=Tr},5297:function(){},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return i}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},3668:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1120),i=n(8814);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=n(7326);function s(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var s=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}(this,n)}}},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9611);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},168:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907),i=n(181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(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.")}()}},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},1072:function(e,t,n){"use strict";n.d(t,{vD:function(){return is},QJ:function(){return os},y9:function(){return as},Yb:function(){return ss},Np:function(){return us},nH:function(){return ls},VK:function(){return cs},dm:function(){return ds},OG:function(){return fs}});var r=n(5671),i=n(3144),o=n(136),a=n(3668),s=n(7762),u=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===u.trustedTypes&&(u.trustedTypes={createPolicy:function(e,t){return t}});var l={configurable:!1,enumerable:!1,writable:!1};void 0===u.FAST&&Reflect.defineProperty(u,"FAST",Object.assign({value:Object.create(null)},l));var c=u.FAST;if(void 0===c.getById){var d=Object.create(null);Reflect.defineProperty(c,"getById",Object.assign({value:function(e,t){var n=d[e];return void 0===n&&(n=t?d[e]=t():null),n}},l))}var f=Object.freeze([]);function h(){var e=new WeakMap;return function(t){var n=e.get(t);if(void 0===n){for(var r=Reflect.getPrototypeOf(t);void 0===n&&null!==r;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=void 0===n?[]:n.slice(0),e.set(t,n)}return n}}var p=n(4942),v=n(7326),m=u.FAST.getById(1,(function(){var e=[],t=[];function n(){if(t.length)throw t.shift()}function r(e){try{e.call()}catch(e){t.push(e),setTimeout(n,0)}}function i(){for(var t=0;t<e.length;)if(r(e[t]),++t>1024){for(var n=0,i=e.length-t;n<i;n++)e[n]=e[n+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&u.requestAnimationFrame(i),e.push(t)},process:i})})),g=u.trustedTypes.createPolicy("fast-html",{createHTML:function(e){return e}}),y=g,b="fast-".concat(Math.random().toString(36).substring(2,8)),_="".concat(b,"{"),w="}".concat(b),k=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy:function(e){if(y!==g)throw new Error("The HTML policy can only be set once.");y=e},createHTML:function(e){return y.createHTML(e)},isMarker:function(e){return e&&8===e.nodeType&&e.data.startsWith(b)},extractDirectiveIndexFromMarker:function(e){return parseInt(e.data.replace("".concat(b,":"),""))},createInterpolationPlaceholder:function(e){return"".concat(_).concat(e).concat(w)},createCustomAttributePlaceholder:function(e,t){return"".concat(e,'="').concat(this.createInterpolationPlaceholder(t),'"')},createBlockPlaceholder:function(e){return"\x3c!--".concat(b,":").concat(e,"--\x3e")},queueUpdate:m.enqueue,processUpdates:m.process,nextUpdate:function(){return new Promise(m.enqueue)},setAttribute:function(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute:function(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes:function(e){for(var t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:function(e){return document.createTreeWalker(e,133,null,!1)}}),x=function(){function e(t,n){(0,r.Z)(this,e),this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}return(0,i.Z)(e,[{key:"has",value:function(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}},{key:"subscribe",value:function(e){var t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else-1===t.indexOf(e)&&t.push(e)}},{key:"unsubscribe",value:function(e){var t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}},{key:"notify",value:function(e){var t=this.spillover,n=this.source;if(void 0===t){var r=this.sub1,i=this.sub2;void 0!==r&&r.handleChange(n,e),void 0!==i&&i.handleChange(n,e)}else for(var o=0,a=t.length;o<a;++o)t[o].handleChange(n,e)}}]),e}(),C=function(){function e(t){(0,r.Z)(this,e),this.subscribers={},this.sourceSubscribers=null,this.source=t}return(0,i.Z)(e,[{key:"notify",value:function(e){var t,n=this.subscribers[e];void 0!==n&&n.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}},{key:"subscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0===r&&(this.subscribers[t]=r=new x(this.source)),r.subscribe(e)}else this.sourceSubscribers=null!==(n=this.sourceSubscribers)&&void 0!==n?n:new x(this.source),this.sourceSubscribers.subscribe(e)}},{key:"unsubscribe",value:function(e,t){var n;if(t){var r=this.subscribers[t];void 0!==r&&r.unsubscribe(e)}else null===(n=this.sourceSubscribers)||void 0===n||n.unsubscribe(e)}}]),e}(),O=c.getById(2,(function(){var e=/(:|&&|\|\||if)/,t=new WeakMap,n=k.queueUpdate,s=void 0,u=function(e){throw new Error("Must call enableArrayObservation before observing arrays.")};function l(e){var n=e.$fastController||t.get(e);return void 0===n&&(Array.isArray(e)?n=u(e):t.set(e,n=new C(e))),n}var c=h(),d=function(){function e(t){(0,r.Z)(this,e),this.name=t,this.field="_".concat(t),this.callback="".concat(t,"Changed")}return(0,i.Z)(e,[{key:"getValue",value:function(e){return void 0!==s&&s.watch(e,this.name),e[this.field]}},{key:"setValue",value:function(e,t){var n=this.field,r=e[n];if(r!==t){e[n]=t;var i=e[this.callback];"function"==typeof i&&i.call(e,r,t),l(e).notify(this.name)}}}]),e}(),f=function(e){(0,o.Z)(u,e);var t=(0,a.Z)(u);function u(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.Z)(this,u),(i=t.call(this,e,n)).binding=e,i.isVolatileBinding=o,i.needsRefresh=!0,i.needsQueue=!0,i.first=(0,v.Z)(i),i.last=null,i.propertySource=void 0,i.propertyName=void 0,i.notifier=void 0,i.next=void 0,i}return(0,i.Z)(u,[{key:"observe",value:function(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();var n=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;var r=this.binding(e,t);return s=n,r}},{key:"disconnect",value:function(){if(null!==this.last){for(var e=this.first;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}},{key:"watch",value:function(e,t){var n,r=this.last,i=l(e),o=null===r?this.first:{};o.propertySource=e,o.propertyName=t,o.notifier=i,i.subscribe(this,t),null!==r&&(this.needsRefresh||(s=void 0,n=r.propertySource[r.propertyName],s=this,e===n&&(this.needsRefresh=!0)),r.next=o),this.last=o}},{key:"handleChange",value:function(){this.needsQueue&&(this.needsQueue=!1,n(this))}},{key:"call",value:function(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}},{key:"records",value:function(){var e=this.first;return(0,p.Z)({next:function(){var t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})}},Symbol.iterator,(function(){return this}))}}]),u}(x);return Object.freeze({setArrayObserverFactory:function(e){u=e},getNotifier:l,track:function(e,t){void 0!==s&&s.watch(e,t)},trackVolatile:function(){void 0!==s&&(s.needsRefresh=!0)},notify:function(e,t){l(e).notify(t)},defineProperty:function(e,t){"string"==typeof t&&(t=new d(t)),c(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:c,binding:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.isVolatileBinding(e);return new f(e,t,n)},isVolatileBinding:function(t){return e.test(t.toString())}})}));function S(e,t){O.defineProperty(e,t)}var E=c.getById(3,(function(){var e=null;return{get:function(){return e},set:function(t){e=t}}})),T=function(){function e(){(0,r.Z)(this,e),this.index=0,this.length=0,this.parent=null,this.parentContext=null}return(0,i.Z)(e,[{key:"event",get:function(){return E.get()}},{key:"isEven",get:function(){return this.index%2==0}},{key:"isOdd",get:function(){return this.index%2!=0}},{key:"isFirst",get:function(){return 0===this.index}},{key:"isInMiddle",get:function(){return!this.isFirst&&!this.isLast}},{key:"isLast",get:function(){return this.index===this.length-1}}],[{key:"setEvent",value:function(e){E.set(e)}}]),e}();O.defineProperty(T.prototype,"index"),O.defineProperty(T.prototype,"length");var A=Object.seal(new T),R=n(1120);function D(){return D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,R.Z)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},D.apply(this,arguments)}var j=n(2982),I=function(){function e(){(0,r.Z)(this,e),this.targets=new WeakSet}return(0,i.Z)(e,[{key:"addStylesTo",value:function(e){this.targets.add(e)}},{key:"removeStylesFrom",value:function(e){this.targets.delete(e)}},{key:"isAttachedTo",value:function(e){return this.targets.has(e)}},{key:"withBehaviors",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}]),e}();function P(e){return e.map((function(e){return e instanceof I?P(e.styles):[e]})).reduce((function(e,t){return e.concat(t)}),[])}function N(e){return e.map((function(e){return e instanceof I?e.behaviors:null})).reduce((function(e,t){return null===t?e:(null===e&&(e=[]),e.concat(t))}),null)}I.create=function(){if(k.supportsAdoptedStyleSheets){var e=new Map;return function(t){return new Z(t,e)}}return function(e){return new F(e)}}();var M=function(e,t){e.adoptedStyleSheets=[].concat((0,j.Z)(e.adoptedStyleSheets),(0,j.Z)(t))},L=function(e,t){e.adoptedStyleSheets=e.adoptedStyleSheets.filter((function(e){return-1===t.indexOf(e)}))};if(k.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),M=function(e,t){var n;(n=e.adoptedStyleSheets).push.apply(n,(0,j.Z)(t))},L=function(e,t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.adoptedStyleSheets.indexOf(i);-1!==o&&e.adoptedStyleSheets.splice(o,1)}}catch(e){r.e(e)}finally{r.f()}}}catch(e){}var Z=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this)).styles=e,o.styleSheetCache=i,o._styleSheets=void 0,o.behaviors=N(e),o}return(0,i.Z)(n,[{key:"styleSheets",get:function(){if(void 0===this._styleSheets){var e=this.styles,t=this.styleSheetCache;this._styleSheets=P(e).map((function(e){if(e instanceof CSSStyleSheet)return e;var n=t.get(e);return void 0===n&&((n=new CSSStyleSheet).replaceSync(e),t.set(e,n)),n}))}return this._styleSheets}},{key:"addStylesTo",value:function(e){M(e,this.styleSheets),D((0,R.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){L(e,this.styleSheets),D((0,R.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}}]),n}(I),z=0,F=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).styles=e,i.behaviors=null,i.behaviors=N(e),i.styleSheets=P(e),i.styleClass="fast-style-class-".concat(++z),i}return(0,i.Z)(n,[{key:"addStylesTo",value:function(e){var t=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(var i=0;i<t.length;i++){var o=document.createElement("style");o.innerHTML=t[i],o.className=r,e.append(o)}D((0,R.Z)(n.prototype),"addStylesTo",this).call(this,e)}},{key:"removeStylesFrom",value:function(e){for(var t=(e=this.normalizeTarget(e)).querySelectorAll(".".concat(this.styleClass)),r=0,i=t.length;r<i;++r)e.removeChild(t[r]);D((0,R.Z)(n.prototype),"removeStylesFrom",this).call(this,e)}},{key:"isAttachedTo",value:function(e){return D((0,R.Z)(n.prototype),"isAttachedTo",this).call(this,this.normalizeTarget(e))}},{key:"normalizeTarget",value:function(e){return e===document?document.body:e}}]),n}(I),B=Object.freeze({locate:h()}),V={toView:function(e){return e?"true":"false"},fromView:function(e){return null!=e&&"false"!==e&&!1!==e&&0!==e}},H={toView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t.toString()},fromView:function(e){if(null==e)return null;var t=1*e;return isNaN(t)?null:t}},U=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.toLowerCase(),o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"reflect",a=arguments.length>4?arguments[4]:void 0;(0,r.Z)(this,e),this.guards=new Set,this.Owner=t,this.name=n,this.attribute=i,this.mode=o,this.converter=a,this.fieldName="_".concat(n),this.callbackName="".concat(n,"Changed"),this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===a&&(this.converter=V)}return(0,i.Z)(e,[{key:"setValue",value:function(e,t){var n=e[this.fieldName],r=this.converter;void 0!==r&&(t=r.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}},{key:"getValue",value:function(e){return O.track(e,this.name),e[this.fieldName]}},{key:"onAttributeChangedCallback",value:function(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}},{key:"tryReflectToAttribute",value:function(e){var t=this,n=this.mode,r=this.guards;r.has(e)||"fromView"===n||k.queueUpdate((function(){r.add(e);var i=e[t.fieldName];switch(n){case"reflect":var o=t.converter;k.setAttribute(e,t.attribute,void 0!==o?o.toView(i):i);break;case"boolean":k.setBooleanAttribute(e,t.attribute,i)}r.delete(e)}))}}],[{key:"collect",value:function(t){for(var n=[],r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];i.push(B.locate(t));for(var a=0,s=i.length;a<s;++a){var u=i[a];if(void 0!==u)for(var l=0,c=u.length;l<c;++l){var d=u[l];"string"==typeof d?n.push(new e(t,d)):n.push(new e(t,d.property,d.attribute,d.mode,d.converter))}}return n}}]),e}();function K(e,t){var n;function r(e,t){arguments.length>1&&(n.property=t),B.locate(e.constructor).push(n)}return arguments.length>1?(n={},void r(e,t)):(n=void 0===e?{}:e,r)}var q={mode:"open"},$={},Y=c.getById(4,(function(){var e=new Map;return Object.freeze({register:function(t){return!e.has(t.type)&&(e.set(t.type,t),!0)},getByType:function(t){return e.get(t)}})})),W=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.definition;(0,r.Z)(this,e),"string"==typeof n&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;for(var i=U.collect(t,n.attributes),o=new Array(i.length),a={},s={},u=0,l=i.length;u<l;++u){var c=i[u];o[u]=c.attribute,a[c.name]=c,s[c.attribute]=c}this.attributes=i,this.observedAttributes=o,this.propertyLookup=a,this.attributeLookup=s,this.shadowOptions=void 0===n.shadowOptions?q:null===n.shadowOptions?void 0:Object.assign(Object.assign({},q),n.shadowOptions),this.elementOptions=void 0===n.elementOptions?$:Object.assign(Object.assign({},$),n.elementOptions),this.styles=void 0===n.styles?void 0:Array.isArray(n.styles)?I.create(n.styles):n.styles instanceof I?n.styles:I.create([n.styles])}return(0,i.Z)(e,[{key:"isDefined",get:function(){return!!Y.getByType(this.type)}},{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:customElements,t=this.type;if(Y.register(this)){for(var n=this.attributes,r=t.prototype,i=0,o=n.length;i<o;++i)O.defineProperty(r,n[i]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}]),e}();function G(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}W.forType=Y.getByType;var Q=n(885),J=new WeakMap,X={bubbles:!0,composed:!0,cancelable:!0};function ee(e){return e.shadowRoot||J.get(e)||null}var te=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;(0,r.Z)(this,n),(o=t.call(this,e)).boundObservables=null,o.behaviors=null,o.needsInitialization=!0,o._template=null,o._styles=null,o._isConnected=!1,o.$fastController=(0,v.Z)(o),o.view=null,o.element=e,o.definition=i;var a=i.shadowOptions;if(void 0!==a){var s=e.attachShadow(a);"closed"===a.mode&&J.set(e,s)}var u=O.getAccessors(e);if(u.length>0)for(var l=o.boundObservables=Object.create(null),c=0,d=u.length;c<d;++c){var f=u[c].name,h=e[f];void 0!==h&&(delete e[f],l[f]=h)}return o}return(0,i.Z)(n,[{key:"isConnected",get:function(){return O.track(this,"isConnected"),this._isConnected}},{key:"setIsConnected",value:function(e){this._isConnected=e,O.notify(this,"isConnected")}},{key:"template",get:function(){return this._template},set:function(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}},{key:"styles",get:function(){return this._styles},set:function(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}},{key:"addStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){var n=e.behaviors;e.addStylesTo(t),null!==n&&this.addBehaviors(n)}}},{key:"removeStyles",value:function(e){var t=ee(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){var n=e.behaviors;e.removeStylesFrom(t),null!==n&&this.removeBehaviors(n)}}},{key:"addBehaviors",value:function(e){for(var t=this.behaviors||(this.behaviors=new Map),n=e.length,r=[],i=0;i<n;++i){var o=e[i];t.has(o)?t.set(o,t.get(o)+1):(t.set(o,1),r.push(o))}if(this._isConnected)for(var a=this.element,s=0;s<r.length;++s)r[s].bind(a,A)}},{key:"removeBehaviors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.behaviors;if(null!==n){for(var r=e.length,i=[],o=0;o<r;++o){var a=e[o];if(n.has(a)){var s=n.get(a)-1;0===s||t?n.delete(a)&&i.push(a):n.set(a,s)}}if(this._isConnected)for(var u=this.element,l=0;l<i.length;++l)i[l].unbind(u)}}},{key:"onConnectedCallback",value:function(){if(!this._isConnected){var e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,A);var t=this.behaviors;if(null!==t){var n,r=(0,s.Z)(t);try{for(r.s();!(n=r.n()).done;)(0,Q.Z)(n.value,1)[0].bind(e,A)}catch(e){r.e(e)}finally{r.f()}}this.setIsConnected(!0)}}},{key:"onDisconnectedCallback",value:function(){if(this._isConnected){this.setIsConnected(!1);var e=this.view;null!==e&&e.unbind();var t=this.behaviors;if(null!==t){var n,r=this.element,i=(0,s.Z)(t);try{for(i.s();!(n=i.n()).done;)(0,Q.Z)(n.value,1)[0].unbind(r)}catch(e){i.e(e)}finally{i.f()}}}}},{key:"onAttributeChangedCallback",value:function(e,t,n){var r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.element,n)}},{key:"emit",value:function(e,t,n){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},X),n)))}},{key:"finishInitialization",value:function(){var e=this.element,t=this.boundObservables;if(null!==t){for(var n=Object.keys(t),r=0,i=n.length;r<i;++r){var o=n[r];e[o]=t[o]}this.boundObservables=null}var a=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():a.template&&(this._template=a.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():a.styles&&(this._styles=a.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}},{key:"renderTemplate",value:function(e){var t=this.element,n=ee(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||k.removeChildNodes(n),e&&(this.view=e.render(t,n,t))}}],[{key:"forCustomElement",value:function(e){var t=e.$fastController;if(void 0!==t)return t;var r=W.forType(e.constructor);if(void 0===r)throw new Error("Missing FASTElement definition.");return e.$fastController=new n(e,r)}}]),n}(C);function ne(e){return function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),e=t.call(this),te.forCustomElement((0,v.Z)(e)),e}return(0,i.Z)(n,[{key:"$emit",value:function(e,t,n){return this.$fastController.emit(e,t,n)}},{key:"connectedCallback",value:function(){this.$fastController.onConnectedCallback()}},{key:"disconnectedCallback",value:function(){this.$fastController.onDisconnectedCallback()}},{key:"attributeChangedCallback",value:function(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}}]),n}(e)}var re=Object.assign(ne(HTMLElement),{from:function(e){return ne(e)},define:function(e,t){return new W(e,t).define().type}}),ie=n(9611),oe=n(8814);function ae(e,t,n){return ae=(0,oe.Z)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,ie.Z)(i,n.prototype),i},ae.apply(null,arguments)}var se=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){var r=se.get(n);void 0===r&&se.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){var n=se.get(t);if(void 0!==n)return n.get(e)});var ue=function(){function e(t,n){(0,r.Z)(this,e),this.container=t,this.key=n}return(0,i.Z)(e,[{key:"instance",value:function(e){return this.registerResolver(0,e)}},{key:"singleton",value:function(e){return this.registerResolver(1,e)}},{key:"transient",value:function(e){return this.registerResolver(2,e)}},{key:"callback",value:function(e){return this.registerResolver(3,e)}},{key:"cachedCallback",value:function(e){return this.registerResolver(3,Ie(e))}},{key:"aliasTo",value:function(e){return this.registerResolver(5,e)}},{key:"registerResolver",value:function(e,t){var n=this.container,r=this.key;return this.container=this.key=void 0,n.registerResolver(r,new we(r,e,t))}}]),e}();function le(e){for(var t,n=e.slice(),r=Object.keys(e),i=r.length,o=0;o<i;++o)Be(t=r[o])||(n[t]=e[t]);return n}var ce=Object.freeze({none:function(e){throw Error("".concat(e.toString()," not registered, did you forget to add @singleton()?"))},singleton:function(e){return new we(e,1,e)},transient:function(e){return new we(e,2,e)}}),de=Object.freeze({default:Object.freeze({parentLocator:function(){return null},responsibleForOwnerRequests:!1,defaultResolver:ce.singleton})}),fe=new Map;function he(e){return function(t){return Reflect.getOwnMetadata(e,t)}}var pe=null,ve=Object.freeze({createContainer:function(e){return new De(null,Object.assign({},de.default,e))},findResponsibleContainer:function(e){var t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ve.findParentContainer(e)},findParentContainer:function(e){var t=new CustomEvent(Ae,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ve.getOrCreateDOMContainer()},getOrCreateDOMContainer:function(e,t){return e?e.$$container$$||new De(e,Object.assign({},de.default,t,{parentLocator:ve.findParentContainer})):pe||(pe=new De(null,Object.assign({},de.default,t,{parentLocator:function(){return null}})))},getDesignParamtypes:he("design:paramtypes"),getAnnotationParamtypes:he("di:paramtypes"),getOrCreateAnnotationParamTypes:function(e){var t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies:function(e){var t=fe.get(e);if(void 0===t){var n=e.inject;if(void 0===n){var r=ve.getDesignParamtypes(e),i=ve.getAnnotationParamtypes(e);if(void 0===r)if(void 0===i){var o=Object.getPrototypeOf(e);t="function"==typeof o&&o!==Function.prototype?le(ve.getDependencies(o)):[]}else t=le(i);else if(void 0===i)t=le(r);else{t=le(r);for(var a,s=i.length,u=0;u<s;++u)void 0!==(a=i[u])&&(t[u]=a);var l,c=Object.keys(i);s=c.length;for(var d=0;d<s;++d)Be(l=c[d])||(t[l]=i[l])}}else t=le(n);fe.set(e,t)}return t},defineProperty:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="$di_".concat(t);Reflect.defineProperty(e,t,{get:function(){var e=this,o=this[i];if(void 0===o){var a=this instanceof HTMLElement?ve.findResponsibleContainer(this):ve.getOrCreateDOMContainer();if(o=a.get(n),this[i]=o,r&&this instanceof re){var s=this.$fastController;s.subscribe({handleChange:function(){ve.findResponsibleContainer(e).get(n)!==e[i]&&(e[i]=o,s.notify(t))}},"isConnected")}}return o}})},createInterface:function(e,t){var n="function"==typeof e?e:t,r="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||Le,i="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),o=function e(t,n,r){if(null==t||void 0!==(this instanceof e?this.constructor:void 0))throw new Error("No registration for interface: '".concat(o.friendlyName,"'"));n?ve.defineProperty(t,n,o,i):ve.getOrCreateAnnotationParamTypes(t)[r]=o};return o.$isInterface=!0,o.friendlyName=null==r?"(anonymous)":r,null!=n&&(o.register=function(e,t){return n(new ue(e,null!=t?t:o))}),o.toString=function(){return"InterfaceSymbol<".concat(o.friendlyName,">")},o},inject:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){if("number"==typeof r){var i=ve.getOrCreateAnnotationParamTypes(e),o=t[0];void 0!==o&&(i[r]=o)}else if(n)ve.defineProperty(e,n,t[0]);else for(var a,s=r?ve.getOrCreateAnnotationParamTypes(r.value):ve.getOrCreateAnnotationParamTypes(e),u=0;u<t.length;++u)void 0!==(a=t[u])&&(s[u]=a)}},transient:function(e){return e.register=function(t){return Pe.transient(e,e).register(t)},e.registerInRequestor=!1,e},singleton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye;return e.register=function(t){return Pe.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e}}),me=ve.createInterface("Container");function ge(e){return function(t){var n=function e(t,n,r){ve.inject(e)(t,n,r)};return n.$isResolver=!0,n.resolve=function(n,r){return e(t,n,r)},n}}ve.inject;var ye={scoped:!1};function be(e,t,n){ve.inject(be)(e,t,n)}function _e(e,t){return t.getFactory(e).construct(t)}ge((function(e,t,n){return function(){return n.get(e)}})),ge((function(e,t,n){return n.has(e,!0)?n.get(e):void 0})),be.$isResolver=!0,be.resolve=function(){},ge((function(e,t,n){var r=_e(e,t),i=new we(e,0,r);return n.registerResolver(e,i),r})),ge((function(e,t,n){return _e(e,t)}));var we=function(){function e(t,n,i){(0,r.Z)(this,e),this.key=t,this.strategy=n,this.state=i,this.resolving=!1}return(0,i.Z)(e,[{key:"$isResolver",get:function(){return!0}},{key:"register",value:function(e){return e.registerResolver(this.key,this)}},{key:"resolve",value:function(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: ".concat(this.state.name));return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:var n=e.getFactory(this.state);if(null===n)throw new Error("Resolver for ".concat(String(this.key)," returned a null factory"));return n.construct(t);case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error("Invalid resolver strategy specified: ".concat(this.strategy,"."))}}},{key:"getFactory",value:function(e){var t,n,r;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(r=null===(n=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:null;default:return null}}}]),e}();function ke(e){return this.get(e)}function xe(e,t){return t(e)}var Ce=function(){function e(t,n){(0,r.Z)(this,e),this.Type=t,this.dependencies=n,this.transformers=null}return(0,i.Z)(e,[{key:"construct",value:function(e,t){var n;return n=ae(this.Type,void 0===t?(0,j.Z)(this.dependencies.map(ke,e)):(0,j.Z)(this.dependencies.map(ke,e)).concat((0,j.Z)(t))),null==this.transformers?n:this.transformers.reduce(xe,n)}},{key:"registerTransformer",value:function(e){(this.transformers||(this.transformers=[])).push(e)}}]),e}(),Oe={$isResolver:!0,resolve:function(e,t){return t}};function Se(e){return"function"==typeof e.register}function Ee(e){return function(e){return Se(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}var Te=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),Ae="__DI_LOCATE_PARENT__",Re=new Map,De=function(){function e(t,n){var i=this;(0,r.Z)(this,e),this.owner=t,this.config=n,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(me,Oe),t instanceof Node&&t.addEventListener(Ae,(function(e){e.composedPath()[0]!==i.owner&&(e.detail.container=i,e.stopImmediatePropagation())}))}return(0,i.Z)(e,[{key:"parent",get:function(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}},{key:"depth",get:function(){return null===this.parent?0:this.parent.depth+1}},{key:"responsibleForOwnerRequests",get:function(){return this.config.responsibleForOwnerRequests}},{key:"registerWithContext",value:function(e){this.context=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.register.apply(this,n),this.context=null,this}},{key:"register",value:function(){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");for(var e,t,n,r,i,o=this.context,a=0,s=arguments.length;a<s;++a)if(Ze(e=a<0||arguments.length<=a?void 0:arguments[a]))if(Se(e))e.register(this,o);else if(void 0!==e.prototype)Pe.singleton(e,e).register(this);else for(r=0,i=(t=Object.keys(e)).length;r<i;++r)Ze(n=e[t[r]])&&(Se(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}},{key:"registerResolver",value:function(e,t){Ne(e);var n=this.resolvers,r=n.get(e);return null==r?n.set(e,t):r instanceof we&&4===r.strategy?r.state.push(t):n.set(e,new we(e,4,[r,t])),t}},{key:"registerTransformer",value:function(e,t){var n=this.getResolver(e);if(null==n)return!1;if(n.getFactory){var r=n.getFactory(this);return null!=r&&(r.registerTransformer(t),!0)}return!1}},{key:"getResolver",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Ne(e),void 0!==e.resolve)return e;for(var n,r=this;null!=r;){if(null!=(n=r.resolvers.get(e)))return n;if(null==r.parent){var i=Ee(e)?this:r;return t?this.jitRegister(e,i):null}r=r.parent}return null}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}},{key:"get",value:function(e){if(Ne(e),e.$isResolver)return e.resolve(this,this);for(var t,n=this;null!=n;){if(null!=(t=n.resolvers.get(e)))return t.resolve(n,this);if(null==n.parent){var r=Ee(e)?this:n;return(t=this.jitRegister(e,r)).resolve(n,this)}n=n.parent}throw new Error("Unable to resolve key: ".concat(e))}},{key:"getAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ne(e);var n,r=this,i=r;if(t){for(var o=f;null!=i;)null!=(n=i.resolvers.get(e))&&(o=o.concat(Me(n,i,r))),i=i.parent;return o}for(;null!=i;){if(null!=(n=i.resolvers.get(e)))return Me(n,i,r);if(null==(i=i.parent))return f}return f}},{key:"getFactory",value:function(e){var t=Re.get(e);if(void 0===t){if(ze(e))throw new Error("".concat(e.name," is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver."));Re.set(e,t=new Ce(e,ve.getDependencies(e)))}return t}},{key:"registerFactory",value:function(e,t){Re.set(e,t)}},{key:"createChild",value:function(t){var n=this;return new e(null,Object.assign({},this.config,t,{parentLocator:function(){return n}}))}},{key:"jitRegister",value:function(e,t){if("function"!=typeof e)throw new Error("Attempted to jitRegister something that is not a constructor: '".concat(e,"'. Did you forget to register this dependency?"));if(Te.has(e.name))throw new Error("Attempted to jitRegister an intrinsic type: ".concat(e.name,". Did you forget to add @inject(Key)"));if(Se(e)){var n=e.register(t);if(!(n instanceof Object)||null==n.resolve){var r=t.resolvers.get(e);if(null!=r)return r;throw new Error("A valid resolver was not returned from the static register method")}return n}if(e.$isInterface)throw new Error("Attempted to jitRegister an interface: ".concat(e.friendlyName));var i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}]),e}(),je=new WeakMap;function Ie(e){return function(t,n,r){if(je.has(r))return je.get(r);var i=e(t,n,r);return je.set(r,i),i}}var Pe=Object.freeze({instance:function(e,t){return new we(e,0,t)},singleton:function(e,t){return new we(e,1,t)},transient:function(e,t){return new we(e,2,t)},callback:function(e,t){return new we(e,3,t)},cachedCallback:function(e,t){return new we(e,3,Ie(t))},aliasTo:function(e,t){return new we(t,5,e)}});function Ne(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Me(e,t,n){if(e instanceof we&&4===e.strategy){for(var r=e.state,i=r.length,o=new Array(i);i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}var Le="(anonymous)";function Ze(e){return"object"==typeof e&&null!==e||"function"==typeof e}var ze=function(){var e=new WeakMap,t=!1,n="",r=0;return function(i){return void 0===(t=e.get(i))&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&125===n.charCodeAt(r-1)&&n.charCodeAt(r-2)<=32&&93===n.charCodeAt(r-3)&&101===n.charCodeAt(r-4)&&100===n.charCodeAt(r-5)&&111===n.charCodeAt(r-6)&&99===n.charCodeAt(r-7)&&32===n.charCodeAt(r-8)&&101===n.charCodeAt(r-9)&&118===n.charCodeAt(r-10)&&105===n.charCodeAt(r-11)&&116===n.charCodeAt(r-12)&&97===n.charCodeAt(r-13)&&110===n.charCodeAt(r-14)&&88===n.charCodeAt(r-15),e.set(i,t)),t}}(),Fe={};function Be(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":var t=Fe[e];if(void 0!==t)return t;var n=e.length;if(0===n)return Fe[e]=!1;for(var r=0,i=0;i<n;++i)if(r=e.charCodeAt(i),0===i&&48===r&&n>1||r<48||r>57)return Fe[e]=!1;return Fe[e]=!0;default:return!1}}function Ve(e){return"".concat(e.toLowerCase(),":presentation")}var He=new Map,Ue=Object.freeze({define:function(e,t,n){var r=Ve(e);void 0===He.get(r)?He.set(r,t):He.set(r,!1),n.register(Pe.instance(r,t))},forTag:function(e,t){var n=Ve(e),r=He.get(n);return!1===r?ve.findResponsibleContainer(t).get(n):r||null}}),Ke=function(){function e(t,n){(0,r.Z)(this,e),this.template=t||null,this.styles=void 0===n?null:Array.isArray(n)?I.create(n):n instanceof I?n:I.create([n])}return(0,i.Z)(e,[{key:"applyTo",value:function(e){var t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}]),e}(),qe=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._presentation=void 0,e}return(0,i.Z)(n,[{key:"$presentation",get:function(){return void 0===this._presentation&&(this._presentation=Ue.forTag(this.tagName,this)),this._presentation}},{key:"templateChanged",value:function(){void 0!==this.template&&(this.$fastController.template=this.template)}},{key:"stylesChanged",value:function(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}},{key:"connectedCallback",value:function(){null!==this.$presentation&&this.$presentation.applyTo(this),D((0,R.Z)(n.prototype),"connectedCallback",this).call(this)}}],[{key:"compose",value:function(e){var t=this;return function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Ye(t===n?function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(n):t,e,s)}}}]),n}(re);function $e(e,t,n){return"function"==typeof e?e(t,n):e}G([S],qe.prototype,"template",void 0),G([S],qe.prototype,"styles",void 0);var Ye=function(){function e(t,n,i){(0,r.Z)(this,e),this.type=t,this.elementDefinition=n,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}return(0,i.Z)(e,[{key:"register",value:function(e,t){var n=this.definition,r=this.overrideDefinition,i=n.prefix||t.elementPrefix,o="".concat(i,"-").concat(n.baseName);t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:function(e){var t=new Ke($e(n.template,e,n),$e(n.styles,e,n));e.definePresentation(t);var i=$e(n.shadowOptions,e,n);e.shadowRootMode&&(i?r.shadowOptions||(i.mode=e.shadowRootMode):null!==i&&(i={mode:e.shadowRootMode})),e.defineElement({elementOptions:$e(n.elementOptions,e,n),shadowOptions:i,attributes:$e(n.attributes,e,n)})}})}}]),e}(),We=new Set(["children","localName","ref","style","className"]),Ge=Object.freeze(Object.create(null)),Qe="_default",Je=new Map;function Xe(e,t){if(!t.name){var n=W.forType(e);if(!n)throw new Error("React wrappers must wrap a FASTElement or be configured with a name.");t.name=n.name}return t.name}function et(e){return e.events||(e.events={})}function tt(e,t,n){return!We.has(n)||(console.warn("".concat(Xe(e,t)," contains property ").concat(n," which is a React ")+"reserved property. It will be used by React and not set on the element."),!1)}var nt=n(2791),rt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).generateBadgeStyle=function(){if(e.fill||e.color){var t="background-color: var(--badge-fill-".concat(e.fill,");"),n="color: var(--badge-color-".concat(e.color,");");return e.fill&&!e.color?t:e.color&&!e.fill?n:"".concat(n," ").concat(t)}},e}return(0,i.Z)(n)}(qe);G([K({attribute:"fill"})],rt.prototype,"fill",void 0),G([K({attribute:"color"})],rt.prototype,"color",void 0),G([K({mode:"boolean"})],rt.prototype,"circular",void 0);var it=n(168),ot=(0,i.Z)((function e(){(0,r.Z)(this,e),this.targetIndex=0})),at=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).createPlaceholder=k.createInterpolationPlaceholder,e}return(0,i.Z)(n)}(ot),st=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).name=e,a.behavior=i,a.options=o,a}return(0,i.Z)(n,[{key:"createPlaceholder",value:function(e){return k.createCustomAttributePlaceholder(this.name,e)}},{key:"createBehavior",value:function(e){return new this.behavior(e,this.options)}}]),n}(ot);function ut(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=O.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function lt(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function ct(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function dt(){this.bindingObserver.disconnect(),this.source=null,this.context=null;var e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function ft(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function ht(e){k.setAttribute(this.target,this.targetName,e)}function pt(e){k.setBooleanAttribute(this.target,this.targetName,e)}function vt(e){if(null!=e||(e=""),e.create){this.target.textContent="";var t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{var n=this.target.$fastView;void 0!==n&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),this.target.textContent=e}}function mt(e){this.target[this.targetName]=e}function gt(e){var t=this.classVersions||Object.create(null),n=this.target,r=this.version||0;if(null!=e&&e.length)for(var i=e.split(/\s+/),o=0,a=i.length;o<a;++o){var s=i[o];""!==s&&(t[s]=r,n.classList.add(s))}if(this.classVersions=t,this.version=r+1,0!==r)for(var u in r-=1,t)t[u]===r&&n.classList.remove(u)}var yt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).binding=e,i.bind=ut,i.unbind=ct,i.updateTarget=ht,i.isBindingVolatile=O.isVolatileBinding(i.binding),i}return(0,i.Z)(n,[{key:"targetName",get:function(){return this.originalTargetName},set:function(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=mt,"innerHTML"===this.cleanedTargetName){var t=this.binding;this.binding=function(e,n){return k.createHTML(t(e,n))}}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=pt;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=lt,this.unbind=ft;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=gt)}}},{key:"targetAtContent",value:function(){this.updateTarget=vt,this.unbind=dt}},{key:"createBehavior",value:function(e){return new bt(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}]),n}(at),bt=function(){function e(t,n,i,o,a,s,u){(0,r.Z)(this,e),this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=i,this.bind=o,this.unbind=a,this.updateTarget=s,this.targetName=u}return(0,i.Z)(e,[{key:"handleChange",value:function(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}},{key:"handleEvent",value:function(e){T.setEvent(e);var t=this.binding(this.source,this.context);T.setEvent(null),!0!==t&&e.preventDefault()}}]),e}(),_t=null,wt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"addFactory",value:function(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}},{key:"captureContentBinding",value:function(e){e.targetAtContent(),this.addFactory(e)}},{key:"reset",value:function(){this.behaviorFactories=[],this.targetIndex=-1}},{key:"release",value:function(){_t=this}}],[{key:"borrow",value:function(t){var n=_t||new e;return n.directives=t,n.reset(),_t=null,n}}]),e}(),kt=w.length;function xt(e,t){var n=t.split(_);if(1===n.length)return null;for(var r=[],i=0,o=n.length;i<o;++i){var a=n[i],s=a.indexOf(w),u=void 0;if(-1===s)u=a;else{var l=parseInt(a.substring(0,s));r.push(e.directives[l]),u=a.substring(s+kt)}""!==u&&r.push(u)}return r}function Ct(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.attributes,i=function(i,s){var u=r[i],l=u.value,c=xt(e,l),d=null;null===c?n&&((d=new yt((function(){return l}))).targetName=u.name):d=function(e){if(1===e.length)return e[0];var t,n=e.length,r=e.map((function(e){return"string"==typeof e?function(){return e}:(t=e.targetName||t,e.binding)})),i=new yt((function(e,t){for(var i="",o=0;o<n;++o)i+=r[o](e,t);return i}));return i.targetName=t,i}(c),null!==d&&(t.removeAttributeNode(u),i--,s--,e.addFactory(d)),o=i,a=s},o=0,a=r.length;o<a;++o)i(o,a)}function Ot(e,t,n){var r=xt(e,t.textContent);if(null!==r){for(var i=t,o=0,a=r.length;o<a;++o){var s=r[o],u=0===o?t:i.parentNode.insertBefore(document.createTextNode(""),i.nextSibling);"string"==typeof s?u.textContent=s:(u.textContent=" ",e.captureContentBinding(s)),i=u,e.targetIndex++,u!==t&&n.nextNode()}e.targetIndex--}}var St,Et=document.createRange(),Tt=function(){function e(t,n){(0,r.Z)(this,e),this.fragment=t,this.behaviors=n,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}return(0,i.Z)(e,[{key:"appendTo",value:function(e){e.appendChild(this.fragment)}},{key:"insertBefore",value:function(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{var t=this.lastChild;if(e.previousSibling===t)return;for(var n,r=e.parentNode,i=this.firstChild;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}},{key:"remove",value:function(){for(var e,t=this.fragment,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.appendChild(r),r=e;t.appendChild(n)}},{key:"dispose",value:function(){for(var e,t=this.firstChild.parentNode,n=this.lastChild,r=this.firstChild;r!==n;)e=r.nextSibling,t.removeChild(r),r=e;t.removeChild(n);for(var i=this.behaviors,o=this.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}},{key:"bind",value:function(e,t){var n=this.behaviors;if(this.source!==e)if(null!==this.source){var r=this.source;this.source=e,this.context=t;for(var i=0,o=n.length;i<o;++i){var a=n[i];a.unbind(r),a.bind(e,t)}}else{this.source=e,this.context=t;for(var s=0,u=n.length;s<u;++s)n[s].bind(e,t)}}},{key:"unbind",value:function(){if(null!==this.source){for(var e=this.behaviors,t=this.source,n=0,r=e.length;n<r;++n)e[n].unbind(t);this.source=null}}}],[{key:"disposeContiguousBatch",value:function(e){if(0!==e.length){Et.setStartBefore(e[0].firstChild),Et.setEndAfter(e[e.length-1].lastChild),Et.deleteContents();for(var t=0,n=e.length;t<n;++t)for(var r=e[t],i=r.behaviors,o=r.source,a=0,s=i.length;a<s;++a)i[a].unbind(o)}}}]),e}(),At=function(){function e(t,n){(0,r.Z)(this,e),this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=n}return(0,i.Z)(e,[{key:"create",value:function(e){if(null===this.fragment){var t,n=this.html;if("string"==typeof n){(t=document.createElement("template")).innerHTML=k.createHTML(n);var r=t.content.firstElementChild;null!==r&&"TEMPLATE"===r.tagName&&(t=r)}else t=n;var i=function(e,t){var n=e.content;document.adoptNode(n);var r=wt.borrow(t);Ct(r,e,!0);var i=r.behaviorFactories;r.reset();for(var o,a=k.createTemplateWalker(n);o=a.nextNode();)switch(r.targetIndex++,o.nodeType){case 1:Ct(r,o);break;case 3:Ot(r,o,a);break;case 8:k.isMarker(o)&&r.addFactory(t[k.extractDirectiveIndexFromMarker(o)])}var s=0;(k.isMarker(n.firstChild)||1===n.childNodes.length&&t.length)&&(n.insertBefore(document.createComment(""),n.firstChild),s=-1);var u=r.behaviorFactories;return r.release(),{fragment:n,viewBehaviorFactories:u,hostBehaviorFactories:i,targetOffset:s}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}for(var o=this.fragment.cloneNode(!0),a=this.viewBehaviorFactories,s=new Array(this.behaviorCount),u=k.createTemplateWalker(o),l=0,c=this.targetOffset,d=u.nextNode(),f=a.length;l<f;++l)for(var h=a[l],p=h.targetIndex;null!==d;){if(c===p){s[l]=h.createBehavior(d);break}d=u.nextNode(),c++}if(this.hasHostBehaviors)for(var v=this.hostBehaviorFactories,m=0,g=v.length;m<g;++m,++l)s[l]=v[m].createBehavior(e);return new Tt(o,s)}},{key:"render",value:function(e,t,n){"string"==typeof t&&(t=document.getElementById(t)),void 0===n&&(n=t);var r=this.create(n);return r.bind(e,A),r.appendTo(t),r}}]),e}(),Rt=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function Dt(e){for(var t=[],n="",r=0,i=e.length-1;r<i;++r){var o=e[r],a=r+1<1||arguments.length<=r+1?void 0:arguments[r+1];if(n+=o,a instanceof At&&function(){var e=a;a=function(){return e}}(),"function"==typeof a&&(a=new yt(a)),a instanceof at){var s=Rt.exec(o);null!==s&&(a.targetName=s[2])}a instanceof ot?(n+=a.createPlaceholder(t.length),t.push(a)):n+=a}return n+=e[e.length-1],new At(n,t)}var jt=function(e,t){return Dt(St||(St=(0,it.Z)(['\n <template class="','">\n <div class="control" part="control" style="','">\n <slot></slot>\n </div>\n </template>\n'])),(function(e){return e.circular?"circular":""}),(function(e){return e.generateBadgeStyle()}))},It=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"createCSS",value:function(){return""}},{key:"createBehavior",value:function(){}}]),e}();function Pt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(e,t){for(var n=[],r="",i=[],o=0,a=e.length-1;o<a;++o){r+=e[o];var s=t[o];if(s instanceof It){var u=s.createBehavior();s=s.createCSS(),u&&i.push(u)}s instanceof I||s instanceof CSSStyleSheet?(""!==r.trim()&&(n.push(r),r=""),n.push(s)):r+=s}return""!==(r+=e[e.length-1]).trim()&&n.push(r),{styles:n,behaviors:i}}(e,n),o=i.styles,a=i.behaviors,s=I.create(o);return a.length&&s.withBehaviors.apply(s,(0,j.Z)(a)),s}function Nt(e){return"".concat(":host([hidden]){display:none}",":host{display:").concat(e,"}")}function Mt(e){var t=e.parentElement;if(t)return t;var n=e.getRootNode();return n.host instanceof HTMLElement?n.host:null}var Lt=document.createElement("div"),Zt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;k.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;k.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),zt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;(0,r.Z)(this,n),i=t.call(this);var o=new CSSStyleSheet;return i.target=o.cssRules[o.insertRule(":host{}")].style,e.$fastController.addStyles(I.create([o])),i}return(0,i.Z)(n)}(Zt),Ft=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),e=t.call(this);var i=new CSSStyleSheet;return e.target=i.cssRules[i.insertRule(":root{}")].style,document.adoptedStyleSheets=[].concat((0,j.Z)(document.adoptedStyleSheets),[i]),e}return(0,i.Z)(n)}(Zt),Bt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n),(e=t.call(this)).style=document.createElement("style"),document.head.appendChild(e.style);var i=e.style.sheet;if(i){var o=i.insertRule(":root{}",i.cssRules.length);e.target=i.cssRules[o].style}return e}return(0,i.Z)(n)}(Zt),Vt=function(){function e(t){(0,r.Z)(this,e),this.store=new Map,this.target=null;var n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),O.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}return(0,i.Z)(e,[{key:"targetChanged",value:function(){if(null!==this.target){var e,t=(0,s.Z)(this.store.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,Q.Z)(e.value,2),r=n[0],i=n[1];this.target.setProperty(r,i)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"setProperty",value:function(e,t){var n=this;this.store.set(e,t),k.queueUpdate((function(){null!==n.target&&n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;this.store.delete(e),k.queueUpdate((function(){null!==t.target&&t.target.removeProperty(e)}))}},{key:"handleChange",value:function(e,t){var n=this.style.sheet;if(n){var r=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[r].style}else this.target=null}}]),e}();G([S],Vt.prototype,"target",void 0);var Ht=function(){function e(t){(0,r.Z)(this,e),this.target=t.style}return(0,i.Z)(e,[{key:"setProperty",value:function(e,t){var n=this;k.queueUpdate((function(){return n.target.setProperty(e,t)}))}},{key:"removeProperty",value:function(e){var t=this;k.queueUpdate((function(){return t.target.removeProperty(e)}))}}]),e}(),Ut=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"setProperty",value:function(t,n){e.properties[t]=n;var r,i=(0,s.Z)(e.roots.values());try{for(i.s();!(r=i.n()).done;){var o=r.value;$t.getOrCreate(e.normalizeRoot(o)).setProperty(t,n)}}catch(e){i.e(e)}finally{i.f()}}},{key:"removeProperty",value:function(t){delete e.properties[t];var n,r=(0,s.Z)(e.roots.values());try{for(r.s();!(n=r.n()).done;){var i=n.value;$t.getOrCreate(e.normalizeRoot(i)).removeProperty(t)}}catch(e){r.e(e)}finally{r.f()}}}],[{key:"registerRoot",value:function(t){var n=e.roots;if(!n.has(t)){n.add(t);var r=$t.getOrCreate(this.normalizeRoot(t));for(var i in e.properties)r.setProperty(i,e.properties[i])}}},{key:"unregisterRoot",value:function(t){var n=e.roots;if(n.has(t)){n.delete(t);var r=$t.getOrCreate(e.normalizeRoot(t));for(var i in e.properties)r.removeProperty(i)}}},{key:"normalizeRoot",value:function(e){return e===Lt?document:e}}]),e}();Ut.roots=new Set,Ut.properties={};var Kt=new WeakMap,qt=k.supportsAdoptedStyleSheets?zt:Vt,$t=Object.freeze({getOrCreate:function(e){return Kt.has(e)?Kt.get(e):(t=e===Lt?new Ut:e instanceof Document?k.supportsAdoptedStyleSheets?new Ft:new Bt:e instanceof re?new qt(e):new Ht(e),Kt.set(e,t),t);var t}}),Yt=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this)).subscribers=new WeakMap,i._appliedTo=new Set,i.name=e.name,null!==e.cssCustomPropertyName&&(i.cssCustomProperty="--".concat(e.cssCustomPropertyName),i.cssVar="var(".concat(i.cssCustomProperty,")")),i.id=n.uniqueId(),n.tokensById.set(i.id,(0,v.Z)(i)),i}return(0,i.Z)(n,[{key:"appliedTo",get:function(){return(0,j.Z)(this._appliedTo)}},{key:"getOrCreateSubscriberSet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}},{key:"createCSS",value:function(){return this.cssVar||""}},{key:"getValueFor",value:function(e){var t=en.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error('Value could not be retrieved for token named "'.concat(this.name,'". Ensure the value is set for ').concat(e," or an ancestor of ").concat(e,"."))}},{key:"setValueFor",value:function(e,t){return this._appliedTo.add(e),t instanceof n&&(t=this.alias(t)),en.getOrCreate(e).set(this,t),this}},{key:"deleteValueFor",value:function(e){return this._appliedTo.delete(e),en.existsFor(e)&&en.getOrCreate(e).delete(this),this}},{key:"withDefault",value:function(e){return this.setValueFor(Lt,e),this}},{key:"subscribe",value:function(e,t){var n=this.getOrCreateSubscriberSet(t);t&&!en.existsFor(t)&&en.getOrCreate(t),n.has(e)||n.add(e)}},{key:"unsubscribe",value:function(e,t){var n=this.subscribers.get(t||this);n&&n.has(e)&&n.delete(e)}},{key:"notify",value:function(e){var t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((function(e){return e.handleChange(t)})),this.subscribers.has(e)&&this.subscribers.get(e).forEach((function(e){return e.handleChange(t)}))}},{key:"alias",value:function(e){return function(t){return e.getValueFor(t)}}}],[{key:"from",value:function(e){return new n({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}},{key:"isCSSDesignToken",value:function(e){return"string"==typeof e.cssCustomProperty}},{key:"isDerivedDesignTokenValue",value:function(e){return"function"==typeof e}},{key:"getTokenById",value:function(e){return n.tokensById.get(e)}}]),n}(It);Yt.uniqueId=function(){var e=0;return function(){return(++e).toString(16)}}(),Yt.tokensById=new Map;var Wt=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"startReflection",value:function(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}},{key:"stopReflection",value:function(e,t){e.unsubscribe(this,t),this.remove(e,t)}},{key:"handleChange",value:function(e){var t=e.token,n=e.target;this.add(t,n)}},{key:"add",value:function(e,t){$t.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(en.getOrCreate(t).get(e)))}},{key:"remove",value:function(e,t){$t.getOrCreate(t).removeProperty(e.cssCustomProperty)}},{key:"resolveCSSValue",value:function(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}}]),e}(),Gt=function(){function e(t,n,i){(0,r.Z)(this,e),this.source=t,this.token=n,this.node=i,this.dependencies=new Set,this.observer=O.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}return(0,i.Z)(e,[{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"handleChange",value:function(){this.node.store.set(this.token,this.observer.observe(this.node.target,A))}}]),e}(),Qt=function(){function e(){(0,r.Z)(this,e),this.values=new Map}return(0,i.Z)(e,[{key:"set",value:function(e,t){this.values.get(e)!==t&&(this.values.set(e,t),O.getNotifier(this).notify(e.id))}},{key:"get",value:function(e){return O.track(this,e.id),this.values.get(e)}},{key:"delete",value:function(e){this.values.delete(e)}},{key:"all",value:function(){return this.values.entries()}}]),e}(),Jt=new WeakMap,Xt=new WeakMap,en=function(){function e(t){var n=this;(0,r.Z)(this,e),this.target=t,this.store=new Qt,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:function(e,t){var r=Yt.getTokenById(t);if(r&&(r.notify(n.target),Yt.isCSSDesignToken(r))){var i=n.parent,o=n.isReflecting(r);if(i){var a=i.get(r),s=e.get(r);a===s||o?a===s&&o&&n.stopReflectToCSS(r):n.reflectToCSS(r)}else o||n.reflectToCSS(r)}}},Jt.set(t,this),O.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof re?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}return(0,i.Z)(e,[{key:"parent",get:function(){return Xt.get(this)||null}},{key:"has",value:function(e){return this.assignedValues.has(e)}},{key:"get",value:function(e){var t=this.store.get(e);if(void 0!==t)return t;var n=this.getRaw(e);return void 0!==n?(this.hydrate(e,n),this.get(e)):void 0}},{key:"getRaw",value:function(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(n=e.findClosestAssignedNode(t,this))||void 0===n?void 0:n.getRaw(t)}},{key:"set",value:function(e,t){Yt.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Yt.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}},{key:"delete",value:function(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);var t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}},{key:"bind",value:function(){var t=e.findParent(this);t&&t.appendChild(this);var n,r=(0,s.Z)(this.assignedValues.keys());try{for(r.s();!(n=r.n()).done;)n.value.notify(this.target)}catch(e){r.e(e)}finally{r.f()}}},{key:"unbind",value:function(){this.parent&&Xt.get(this).removeChild(this)}},{key:"appendChild",value:function(e){e.parent&&Xt.get(e).removeChild(e);var t=this.children.filter((function(t){return e.contains(t)}));Xt.set(e,this),this.children.push(e),t.forEach((function(t){return e.appendChild(t)})),O.getNotifier(this.store).subscribe(e);var n,r=(0,s.Z)(this.store.all());try{for(r.s();!(n=r.n()).done;){var i=(0,Q.Z)(n.value,2),o=i[0],a=i[1];e.hydrate(o,this.bindingObservers.has(o)?this.getRaw(o):a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),O.getNotifier(this.store).unsubscribe(e),e.parent===this&&Xt.delete(e)}},{key:"contains",value:function(e){return function(e,t){for(var n=t;null!==n;){if(n===e)return!0;n=Mt(n)}return!1}(this.target,e.target)}},{key:"reflectToCSS",value:function(t){this.isReflecting(t)||(this.reflecting.add(t),e.cssCustomPropertyReflector.startReflection(t,this.target))}},{key:"stopReflectToCSS",value:function(t){this.isReflecting(t)&&(this.reflecting.delete(t),e.cssCustomPropertyReflector.stopReflection(t,this.target))}},{key:"isReflecting",value:function(e){return this.reflecting.has(e)}},{key:"handleChange",value:function(e,t){var n=Yt.getTokenById(t);n&&this.hydrate(n,this.getRaw(n))}},{key:"hydrate",value:function(e,t){if(!this.has(e)){var n=this.bindingObservers.get(e);Yt.isDerivedDesignTokenValue(t)?n?n.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(n&&this.tearDownBindingObserver(e),this.store.set(e,t))}}},{key:"setupBindingObserver",value:function(e,t){var n=new Gt(t,e,this);return this.bindingObservers.set(e,n),n}},{key:"tearDownBindingObserver",value:function(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}],[{key:"getOrCreate",value:function(t){return Jt.get(t)||new e(t)}},{key:"existsFor",value:function(e){return Jt.has(e)}},{key:"findParent",value:function(t){if(Lt!==t.target){for(var n=Mt(t.target);null!==n;){if(Jt.has(n))return Jt.get(n);n=Mt(n)}return e.getOrCreate(Lt)}return null}},{key:"findClosestAssignedNode",value:function(t,n){var r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Lt?e.getOrCreate(Lt):null}while(null!==r);return null}}]),e}();en.cssCustomPropertyReflector=new Wt,G([S],en.prototype,"children",void 0);var tn=Object.freeze({create:function(e){return Yt.from(e)},notifyConnection:function(e){return!(!e.isConnected||!en.existsFor(e)||(en.getOrCreate(e).bind(),0))},notifyDisconnection:function(e){return!(e.isConnected||!en.existsFor(e)||(en.getOrCreate(e).unbind(),0))},registerRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt;Ut.registerRoot(e)},unregisterRoot:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt;Ut.unregisterRoot(e)}});function nn(e){var t=getComputedStyle(document.body),n=document.querySelector("body");if(n){var r,i=n.getAttribute("data-vscode-theme-kind"),o=(0,s.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=(0,Q.Z)(r.value,2),u=a[0],l=a[1],c=t.getPropertyValue(u).toString();if("vscode-high-contrast"===i)0===c.length&&l.name.includes("background")&&(c="transparent"),"button-icon-hover-background"===l.name&&(c="transparent");else if("vscode-high-contrast-light"===i){if(0===c.length&&l.name.includes("background"))switch(l.name){case"button-primary-hover-background":c="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":c="transparent"}}else"contrast-active-border"===l.name&&(c="transparent");l.setValueFor(n,c)}}catch(e){o.e(e)}finally{o.f()}}}var rn=new Map,on=!1;function an(e,t){var n=tn.create(e);if(t){if(t.includes("--fake-vscode-token")){var r="id"+Math.random().toString(16).slice(2);t="".concat(t,"-").concat(r)}rn.set(t,n)}return on||(function(e){window.addEventListener("load",(function(){new MutationObserver((function(){nn(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),nn(e)}))}(rn),on=!0),n}var sn,un=an("background","--vscode-editor-background").withDefault("#1e1e1e"),ln=an("border-width").withDefault(1),cn=an("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),dn=(an("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),an("corner-radius").withDefault(0)),fn=an("design-unit").withDefault(4),hn=an("disabled-opacity").withDefault(.4),pn=an("focus-border","--vscode-focusBorder").withDefault("#007fd4"),vn=an("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),mn=(an("font-weight","--vscode-font-weight").withDefault("400"),an("foreground","--vscode-foreground").withDefault("#cccccc")),gn=an("input-height").withDefault("26"),yn=an("input-min-width").withDefault("100px"),bn=an("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),_n=an("type-ramp-base-line-height").withDefault("normal"),wn=an("type-ramp-minus1-font-size").withDefault("11px"),kn=an("type-ramp-minus1-line-height").withDefault("16px"),xn=(an("type-ramp-minus2-font-size").withDefault("9px"),an("type-ramp-minus2-line-height").withDefault("16px"),an("type-ramp-plus1-font-size").withDefault("16px"),an("type-ramp-plus1-line-height").withDefault("24px"),an("scrollbarWidth").withDefault("10px")),Cn=an("scrollbarHeight").withDefault("10px"),On=an("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Sn=an("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),En=an("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Tn=an("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),An=an("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Rn=an("button-border","--vscode-button-border").withDefault("transparent"),Dn=an("button-icon-background").withDefault("transparent"),jn=an("button-icon-corner-radius").withDefault("5px"),In=an("button-icon-outline-offset").withDefault(0),Pn=an("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),Nn=an("button-icon-padding").withDefault("3px"),Mn=an("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Ln=an("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Zn=an("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),zn=an("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Fn=an("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Bn=an("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Vn=an("button-padding-horizontal").withDefault("11px"),Hn=an("button-padding-vertical").withDefault("4px"),Un=an("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Kn=an("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),qn=an("checkbox-corner-radius").withDefault(3),$n=(an("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),an("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771")),Yn=an("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Wn=an("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Gn=an("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Qn=an("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Jn=an("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),Xn=(an("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),an("dropdown-list-max-height").withDefault("200px")),er=an("input-background","--vscode-input-background").withDefault("#3c3c3c"),tr=an("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),nr=(an("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),an("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff")),rr=an("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),ir=an("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),or=an("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),ar=an("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),sr=an("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),ur=(an("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),an("panel-view-border","--vscode-panel-border").withDefault("#80808059"),an("tag-corner-radius").withDefault("2px")),lr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.circular||(this.circular=!0)}}]),n}(rt),cr=lr.compose({baseName:"badge",template:jt,styles:function(e,t){return Pt(sn||(sn=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\ttext-align: center;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: 11px;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tdisplay: flex;\n\t\theight: calc("," * 4px);\n\t\tjustify-content: center;\n\t\tmin-width: calc("," * 4px + 2px);\n\t\tmin-height: calc("," * 4px + 2px);\n\t\tpadding: 3px 6px;\n\t}\n"])),Nt("inline-block"),vn,wn,kn,Tn,ln,Rn,An,fn,fn,fn)}});Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var dr=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([K({attribute:"aria-atomic"})],dr.prototype,"ariaAtomic",void 0),G([K({attribute:"aria-busy"})],dr.prototype,"ariaBusy",void 0),G([K({attribute:"aria-controls"})],dr.prototype,"ariaControls",void 0),G([K({attribute:"aria-current"})],dr.prototype,"ariaCurrent",void 0),G([K({attribute:"aria-describedby"})],dr.prototype,"ariaDescribedby",void 0),G([K({attribute:"aria-details"})],dr.prototype,"ariaDetails",void 0),G([K({attribute:"aria-disabled"})],dr.prototype,"ariaDisabled",void 0),G([K({attribute:"aria-errormessage"})],dr.prototype,"ariaErrormessage",void 0),G([K({attribute:"aria-flowto"})],dr.prototype,"ariaFlowto",void 0),G([K({attribute:"aria-haspopup"})],dr.prototype,"ariaHaspopup",void 0),G([K({attribute:"aria-hidden"})],dr.prototype,"ariaHidden",void 0),G([K({attribute:"aria-invalid"})],dr.prototype,"ariaInvalid",void 0),G([K({attribute:"aria-keyshortcuts"})],dr.prototype,"ariaKeyshortcuts",void 0),G([K({attribute:"aria-label"})],dr.prototype,"ariaLabel",void 0),G([K({attribute:"aria-labelledby"})],dr.prototype,"ariaLabelledby",void 0),G([K({attribute:"aria-live"})],dr.prototype,"ariaLive",void 0),G([K({attribute:"aria-owns"})],dr.prototype,"ariaOwns",void 0),G([K({attribute:"aria-relevant"})],dr.prototype,"ariaRelevant",void 0),G([K({attribute:"aria-roledescription"})],dr.prototype,"ariaRoledescription",void 0);var fr,hr,pr,vr,mr=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.propertyName=n}return(0,i.Z)(e,[{key:"bind",value:function(e){e[this.propertyName]=this.target}},{key:"unbind",value:function(){}}]),e}();function gr(e){return new st("fast-ref",mr,e)}var yr,br=function(){function e(){(0,r.Z)(this,e)}return(0,i.Z)(e,[{key:"handleStartContentChange",value:function(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}},{key:"handleEndContentChange",value:function(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}]),e}(),_r=function(e,t){return Dt(fr||(fr=(0,it.Z)(['\n <span\n part="end"\n ',"\n class=",'\n >\n <slot name="end" ',' @slotchange="','">\n ',"\n </slot>\n </span>\n"])),gr("endContainer"),(function(e){return t.end?"end":void 0}),gr("end"),(function(e){return e.handleEndContentChange()}),t.end||"")},wr=function(e,t){return Dt(hr||(hr=(0,it.Z)(['\n <span\n part="start"\n ','\n class="','"\n >\n <slot\n name="start"\n ','\n @slotchange="','"\n >\n ',"\n </slot>\n </span>\n"])),gr("startContainer"),(function(e){return t.start?"start":void 0}),gr("start"),(function(e){return e.handleStartContentChange()}),t.start||"")};function kr(e){for(var t=B.locate(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((function(n){Object.getOwnPropertyNames(n.prototype).forEach((function(t){"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(n.prototype,t))})),B.locate(n).forEach((function(e){return t.push(e)}))}))}Dt(pr||(pr=(0,it.Z)(['\n <span part="end" ','>\n <slot\n name="end"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),gr("endContainer"),gr("end"),(function(e){return e.handleEndContentChange()})),Dt(vr||(vr=(0,it.Z)(['\n <span part="start" ','>\n <slot\n name="start"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),gr("startContainer"),gr("start"),(function(e){return e.handleStartContentChange()})),function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(yr||(yr={}));var xr="ArrowDown",Cr="ArrowLeft",Or="ArrowRight",Sr="ArrowUp",Er="Enter",Tr="Escape",Ar="Home",Rr="End",Dr=" ",jr="Tab",Ir={ArrowDown:xr,ArrowLeft:Cr,ArrowRight:Or,ArrowUp:Sr},Pr="form-associated-proxy",Nr="ElementInternals",Mr=Nr in window&&"setFormValue"in window[Nr].prototype,Lr=new WeakMap;function Zr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).dirtyValue=!1,e.disabled=!1,e.proxyEventsToBlock=["change","click"],e.proxyInitialized=!1,e.required=!1,e.initialValue=e.initialValue||"",e.elementInternals||(e.formResetCallback=e.formResetCallback.bind((0,v.Z)(e))),e}return(0,i.Z)(n,[{key:"validity",get:function(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}},{key:"form",get:function(){return this.elementInternals?this.elementInternals.form:this.proxy.form}},{key:"validationMessage",get:function(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}},{key:"willValidate",get:function(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}},{key:"labels",get:function(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){var e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll("[for='".concat(this.id,"']"))),n=e?t.concat(Array.from(e)):t;return Object.freeze(n)}return f}},{key:"valueChanged",value:function(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}},{key:"currentValueChanged",value:function(){this.value=this.currentValue}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"disabledChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),k.queueUpdate((function(){return n.classList.toggle("disabled",n.disabled)}))}},{key:"nameChanged",value:function(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}},{key:"requiredChanged",value:function(e,t){var n=this;this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),k.queueUpdate((function(){return n.classList.toggle("required",n.required)})),this.validate()}},{key:"elementInternals",get:function(){if(!Mr)return null;var e=Lr.get(this);return e||(e=this.attachInternals(),Lr.set(this,e)),e}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}},{key:"disconnectedCallback",value:function(){var e=this;this.proxyEventsToBlock.forEach((function(t){return e.proxy.removeEventListener(t,e.stopPropagation)})),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}},{key:"checkValidity",value:function(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}},{key:"reportValidity",value:function(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}},{key:"setValidity",value:function(e,t,n){this.elementInternals?this.elementInternals.setValidity(e,t,n):"string"==typeof t&&this.proxy.setCustomValidity(t)}},{key:"formDisabledCallback",value:function(e){this.disabled=e}},{key:"formResetCallback",value:function(){this.value=this.initialValue,this.dirtyValue=!1}},{key:"attachProxy",value:function(){var e,t=this;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((function(e){return t.proxy.addEventListener(e,t.stopPropagation)})),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Pr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Pr)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}},{key:"detachProxy",value:function(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}},{key:"validate",value:function(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}},{key:"setFormValue",value:function(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}},{key:"_keypressHandler",value:function(e){if(e.key===Er&&this.form instanceof HTMLFormElement){var t=this.form.querySelector("[type=submit]");null==t||t.click()}}},{key:"stopPropagation",value:function(e){e.stopPropagation()}}],[{key:"formAssociated",get:function(){return Mr}}]),n}(e);return K({mode:"boolean"})(t.prototype,"disabled"),K({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),K({attribute:"current-value"})(t.prototype,"currentValue"),K(t.prototype,"name"),K({mode:"boolean"})(t.prototype,"required"),S(t.prototype,"value"),t}function zr(e){var t=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Zr(e)),n=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=t.call(this,o)).dirtyChecked=!1,e.checkedAttribute=!1,e.checked=!1,e.dirtyChecked=!1,e}return(0,i.Z)(n,[{key:"checkedAttributeChanged",value:function(){this.defaultChecked=this.checkedAttribute}},{key:"defaultCheckedChanged",value:function(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}},{key:"checkedChanged",value:function(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}},{key:"currentCheckedChanged",value:function(e,t){this.checked=this.currentChecked}},{key:"updateForm",value:function(){var e=this.checked?this.value:null;this.setFormValue(e,e)}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.updateForm()}},{key:"formResetCallback",value:function(){D((0,R.Z)(n.prototype),"formResetCallback",this).call(this),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}]),n}(t);return K({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),K({attribute:"current-checked",converter:V})(n.prototype,"currentChecked"),S(n.prototype,"defaultChecked"),S(n.prototype,"checked"),n}var Fr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),Br=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Zr(Fr)),Vr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleClick=function(t){var n;e.disabled&&(null===(n=e.defaultSlottedContent)||void 0===n?void 0:n.length)<=1&&t.stopPropagation()},e.handleSubmission=function(){if(e.form){var t=e.proxy.isConnected;t||e.attachProxy(),"function"==typeof e.form.requestSubmit?e.form.requestSubmit(e.proxy):e.proxy.click(),t||e.detachProxy()}},e.handleFormReset=function(){var t;null===(t=e.form)||void 0===t||t.reset()},e.handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){e.control.focus()})},e}return(0,i.Z)(n,[{key:"formactionChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}},{key:"formenctypeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}},{key:"formmethodChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}},{key:"formnovalidateChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}},{key:"formtargetChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}},{key:"typeChanged",value:function(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}},{key:"validate",value:function(){D((0,R.Z)(n.prototype),"validate",this).call(this,this.control)}},{key:"connectedCallback",value:function(){var e,t=this;D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.addEventListener("click",t.handleClick)}))}},{key:"disconnectedCallback",value:function(){var e,t=this;D((0,R.Z)(n.prototype),"disconnectedCallback",this).call(this);var r=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);r&&r.forEach((function(e){e.removeEventListener("click",t.handleClick)}))}}]),n}(Br);G([K({mode:"boolean"})],Vr.prototype,"autofocus",void 0),G([K({attribute:"form"})],Vr.prototype,"formId",void 0),G([K],Vr.prototype,"formaction",void 0),G([K],Vr.prototype,"formenctype",void 0),G([K],Vr.prototype,"formmethod",void 0),G([K({mode:"boolean"})],Vr.prototype,"formnovalidate",void 0),G([K],Vr.prototype,"formtarget",void 0),G([K],Vr.prototype,"type",void 0),G([S],Vr.prototype,"defaultSlottedContent",void 0);var Hr=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function Ur(e){return e?function(t,n,r){return 1===t.nodeType&&t.matches(e)}:function(e,t,n){return 1===e.nodeType}}G([K({attribute:"aria-expanded"})],Hr.prototype,"ariaExpanded",void 0),G([K({attribute:"aria-pressed"})],Hr.prototype,"ariaPressed",void 0),kr(Hr,dr),kr(Vr,br,Hr);var Kr,qr,$r=function(){function e(t,n){(0,r.Z)(this,e),this.target=t,this.options=n,this.source=null}return(0,i.Z)(e,[{key:"bind",value:function(e){var t=this.options.property;this.shouldUpdate=O.getAccessors(e).some((function(e){return e.name===t})),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}},{key:"unbind",value:function(){this.updateTarget(f),this.source=null,this.shouldUpdate&&this.disconnect()}},{key:"handleEvent",value:function(){this.updateTarget(this.computeNodes())}},{key:"computeNodes",value:function(){var e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}},{key:"updateTarget",value:function(e){this.source[this.options.property]=e}}]),e}(),Yr=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){return(0,r.Z)(this,n),t.call(this,e,i)}return(0,i.Z)(n,[{key:"observe",value:function(){this.target.addEventListener("slotchange",this)}},{key:"disconnect",value:function(){this.target.removeEventListener("slotchange",this)}},{key:"getNodes",value:function(){return this.target.assignedNodes(this.options)}}]),n}($r);function Wr(e){return"string"==typeof e&&(e={property:e}),new st("fast-slotted",Yr,e)}var Gr,Qr,Jr,Xr,ei,ti=function(){if("boolean"==typeof qr)return qr;if("undefined"==typeof window||!window.document||!window.document.createElement)return qr=!1;var e=document.createElement("style"),t=function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),qr=!0}catch(e){qr=!1}finally{document.head.removeChild(e)}return qr}()?"focus-visible":"focus",ni="not-allowed",ri=Pt(Gr||(Gr=(0,it.Z)(["\n\t"," :host {\n\t\toutline: none;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: 2px;\n\t\tfill: currentColor;\n\t\tcursor: pointer;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\theight: inherit;\n\t\tflex-grow: 1;\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: "," ",";\n\t\twhite-space: wrap;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: inherit;\n\t\tborder-radius: inherit;\n\t\tfill: inherit;\n\t\tcursor: inherit;\n\t\tfont-family: inherit;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t}\n\t.control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t\tbackground: ",";\n\t\tcursor: ",";\n\t}\n\t.content {\n\t\tdisplay: flex;\n\t}\n\t.start {\n\t\tdisplay: flex;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-end: 8px;\n\t}\n"])),Nt("inline-flex"),vn,bn,_n,Ln,Mn,Hn,Vn,ln,Rn,Zn,Mn,ti,ln,pn,ln,hn,Mn,ni,fn,fn),ii=Pt(Qr||(Qr=(0,it.Z)(["\n\t:host([appearance='primary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='primary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='primary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='primary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Mn,Ln,Zn,Mn,ti,ln,pn,ln,Mn),oi=Pt(Jr||(Jr=(0,it.Z)(["\n\t:host([appearance='secondary']) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='secondary']:hover) {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='secondary']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: calc("," * 2px);\n\t}\n\t:host([appearance='secondary'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),zn,Fn,Bn,zn,ti,ln,pn,ln,zn),ai=Pt(Xr||(Xr=(0,it.Z)(["\n\t:host([appearance='icon']) {\n\t\tbackground: ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t}\n\t:host([appearance='icon']:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n\t:host([appearance='icon']) .control {\n\t\tpadding: ",";\n\t\tborder: none;\n\t}\n\t:host([appearance='icon']:active) .control:active {\n\t\tbackground: ",";\n\t}\n\t:host([appearance='icon']) .control:"," {\n\t\toutline: calc("," * 1px) solid ",";\n\t\toutline-offset: ",";\n\t}\n\t:host([appearance='icon'][disabled]) {\n\t\tbackground: ",";\n\t}\n"])),Dn,jn,mn,Pn,cn,Nn,Pn,ti,ln,pn,In,Dn),si=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){if(D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),!this.appearance){var e=this.getAttribute("appearance");this.appearance=e}}},{key:"attributeChangedCallback",value:function(e,t,n){"appearance"===e&&"icon"===n&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),"aria-label"===e&&(this.ariaLabel=n),"disabled"===e&&(this.disabled=null!==n)}}]),n}(Vr);!function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([K],si.prototype,"appearance",void 0);var ui,li=si.compose({baseName:"button",template:function(e,t){return Dt(Kr||(Kr=(0,it.Z)(['\n <button\n class="control"\n part="control"\n ?autofocus="','"\n ?disabled="','"\n form="','"\n formaction="','"\n formenctype="','"\n formmethod="','"\n formnovalidate="','"\n formtarget="','"\n name="','"\n type="','"\n value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-pressed="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </button>\n"])),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.formId}),(function(e){return e.formaction}),(function(e){return e.formenctype}),(function(e){return e.formmethod}),(function(e){return e.formnovalidate}),(function(e){return e.formtarget}),(function(e){return e.name}),(function(e){return e.type}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaPressed}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),gr("control"),wr(0,t),Wr("defaultSlottedContent"),_r(0,t))},styles:function(e,t){return Pt(ei||(ei=(0,it.Z)(["\n\t","\n\t","\n\t","\n\t","\n"])),ri,ii,oi,ai)},shadowOptions:{delegatesFocus:!0}}),ci=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),di=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(ci)),fi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.indeterminate=!1,e.keypressHandler=function(t){e.readOnly||t.key!==Dr||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.clickHandler=function(t){e.disabled||e.readOnly||(e.indeterminate&&(e.indeterminate=!1),e.checked=!e.checked)},e.proxy.setAttribute("type","checkbox"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}]),n}(di);G([K({attribute:"readonly",mode:"boolean"})],fi.prototype,"readOnly",void 0),G([S],fi.prototype,"defaultSlottedNodes",void 0),G([S],fi.prototype,"indeterminate",void 0);var hi,pi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}]),n}(fi),vi=pi.compose({baseName:"checkbox",template:function(e,t){return Dt(ui||(ui=(0,it.Z)(['\n <template\n role="checkbox"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n tabindex="','"\n @keypress="','"\n @click="','"\n class="'," "," ",'"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n <slot name="indeterminate-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e){return e.disabled?null:0}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked?"checked":""}),(function(e){return e.indeterminate?"indeterminate":""}),t.checkedIndicator||"",t.indeterminateIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr("defaultSlottedNodes"))},styles:function(e,t){return Pt(hi||(hi=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\tmargin: calc("," * 1px) 0;\n\t\tuser-select: none;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tposition: relative;\n\t\twidth: calc("," * 4px + 2px);\n\t\theight: calc("," * 4px + 2px);\n\t\tbox-sizing: border-box;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbackground: ",";\n\t\toutline: none;\n\t\tcursor: pointer;\n\t}\n\t.label {\n\t\tfont-family: ",";\n\t\tcolor: ",";\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tcursor: pointer;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.checked-indicator {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tdisplay: block;\n\t\tfill: ",";\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t}\n\t.indeterminate-indicator {\n\t\tborder-radius: 2px;\n\t\tbackground: ",";\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\twidth: 50%;\n\t\theight: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\topacity: 0;\n\t}\n\t:host(:enabled) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:enabled) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host(.disabled) .label,\n\t:host(.readonly) .label,\n\t:host(.readonly) .control,\n\t:host(.disabled) .control {\n\t\tcursor: ",";\n\t}\n\t:host(.checked:not(.indeterminate)) .checked-indicator,\n\t:host(.indeterminate) .indeterminate-indicator {\n\t\topacity: 1;\n\t}\n\t:host(.disabled) {\n\t\topacity: ",";\n\t}\n"])),Nt("inline-flex"),fn,bn,_n,fn,fn,qn,ln,Kn,Un,vn,mn,fn,fn,mn,mn,Un,Kn,Un,pn,ti,ln,pn,ni,hn)},checkedIndicator:'\n\t\t<svg \n\t\t\tpart="checked-indicator"\n\t\t\tclass="checked-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"\n\t\t\t/>\n\t\t</svg>\n\t',indeterminateIndicator:'\n\t\t<div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n\t'});function mi(e,t,n){return{index:e,removed:t,addedCount:n}}function gi(e,t,n,r,i,o){var a=0,s=0,u=Math.min(n-t,o-i);if(0===t&&0===i&&(a=function(e,t,n){for(var r=0;r<n;++r)if(e[r]!==t[r])return r;return n}(e,r,u)),n===e.length&&o===r.length&&(s=function(e,t,n){for(var r=e.length,i=t.length,o=0;o<n&&e[--r]===t[--i];)o++;return o}(e,r,u-a)),i+=a,o-=s,(n-=s)-(t+=a)==0&&o-i==0)return f;if(t===n){for(var l=mi(t,[],0);i<o;)l.removed.push(r[i++]);return[l]}if(i===o)return[mi(t,[],n-t)];for(var c=function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];t>0||n>0;)if(0!==t)if(0!==n){var o,a=e[t-1][n-1],s=e[t-1][n],u=e[t][n-1];(o=s<u?s<a?s:a:u<a?u:a)===a?(a===r?i.push(0):(i.push(1),r=a),t--,n--):o===s?(i.push(3),t--,r=s):(i.push(2),n--,r=u)}else i.push(3),t--;else i.push(2),n--;return i.reverse(),i}(function(e,t,n,r,i,o){for(var a,s,u=o-i+1,l=n-t+1,c=new Array(u),d=0;d<u;++d)c[d]=new Array(l),c[d][0]=d;for(var f=0;f<l;++f)c[0][f]=f;for(var h=1;h<u;++h)for(var p=1;p<l;++p)e[t+p-1]===r[i+h-1]?c[h][p]=c[h-1][p-1]:(a=c[h-1][p]+1,s=c[h][p-1]+1,c[h][p]=a<s?a:s);return c}(e,t,n,r,i,o)),d=[],h=void 0,p=t,v=i,m=0;m<c.length;++m)switch(c[m]){case 0:void 0!==h&&(d.push(h),h=void 0),p++,v++;break;case 1:void 0===h&&(h=mi(p,[],0)),h.addedCount++,p++,h.removed.push(r[v]),v++;break;case 2:void 0===h&&(h=mi(p,[],0)),h.addedCount++,p++;break;case 3:void 0===h&&(h=mi(p,[],0)),h.removed.push(r[v]),v++}return void 0!==h&&d.push(h),d}var yi=Array.prototype.push;function bi(e,t,n,r){for(var i,o,a,s,u=mi(t,n,r),l=!1,c=0,d=0;d<e.length;d++){var f=e[d];if(f.index+=c,!l){var h=(i=u.index,o=u.index+u.removed.length,a=f.index,s=f.index+f.addedCount,o<a||s<i?-1:o===a||s===i?0:i<a?o<s?o-a:s-a:s<o?s-i:o-i);if(h>=0){e.splice(d,1),d--,c-=f.addedCount-f.removed.length,u.addedCount+=f.addedCount-h;var p=u.removed.length+f.removed.length-h;if(u.addedCount||p){var v=f.removed;if(u.index<f.index){var m=u.removed.slice(0,f.index-u.index);yi.apply(m,v),v=m}if(u.index+u.removed.length>f.index+f.addedCount){var g=u.removed.slice(f.index+f.addedCount-u.index);yi.apply(v,g)}u.removed=v,f.index<u.index&&(u.index=f.index)}else l=!0}else if(u.index<f.index){l=!0,e.splice(d,0,u),d++;var y=u.addedCount-u.removed.length;f.index+=y,c+=y}}}l||e.push(u)}var _i=!1;function wi(e,t){var n=e.index,r=t.length;return n>r?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}var ki=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).oldCollection=void 0,i.splices=void 0,i.needsQueue=!0,i.call=i.flush,Reflect.defineProperty(e,"$fastController",{value:(0,v.Z)(i),enumerable:!1}),i}return(0,i.Z)(n,[{key:"subscribe",value:function(e){this.flush(),D((0,R.Z)(n.prototype),"subscribe",this).call(this,e)}},{key:"addSplice",value:function(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,k.queueUpdate(this))}},{key:"reset",value:function(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,k.queueUpdate(this))}},{key:"flush",value:function(){var e=this.splices,t=this.oldCollection;if(void 0!==e||void 0!==t){this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;var n=void 0===t?function(e,t){for(var n=[],r=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];bi(t,i.index,i.removed,i.addedCount)}return t}(t),i=0,o=r.length;i<o;++i){var a=r[i];1!==a.addedCount||1!==a.removed.length?n=n.concat(gi(e,a.index,a.index+a.addedCount,a.removed,0,a.removed.length)):a.removed[0]!==e[a.index]&&n.push(a)}return n}(this.source,e):gi(this.source,0,this.source.length,t,0,t.length);this.notify(n)}}}]),n}(x);function xi(e,t,n,r){e.bind(t[n],r)}function Ci(e,t,n,r){var i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}Object.freeze({positioning:!1,recycle:!0});var Oi=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.location=t,this.itemsBinding=n,this.templateBinding=o,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=xi,this.itemsBindingObserver=O.binding(n,this,i),this.templateBindingObserver=O.binding(o,this,a),s.positioning&&(this.bindView=Ci)}return(0,i.Z)(e,[{key:"bind",value:function(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}},{key:"unbind",value:function(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}},{key:"handleChange",value:function(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}},{key:"observeItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.items){var t=this.itemsObserver,n=this.itemsObserver=O.getNotifier(this.items),r=t!==n;r&&null!==t&&t.unsubscribe(this),(r||e)&&n.subscribe(this)}else this.items=f}},{key:"updateViews",value:function(e){for(var t=this.childContext,n=this.views,r=this.bindView,i=this.items,o=this.template,a=this.options.recycle,s=[],u=0,l=0,c=0,d=e.length;c<d;++c){for(var f=e[c],h=f.removed,p=0,v=f.index,m=v+f.addedCount,g=n.splice(f.index,h.length),y=l=s.length+g.length;v<m;++v){var b=n[v],_=b?b.firstChild:this.location,w=void 0;a&&l>0?(p<=y&&g.length>0?(w=g[p],p++):(w=s[u],u++),l--):w=o.create(),n.splice(v,0,w),r(w,i,v,t),w.insertBefore(_)}g[p]&&s.push.apply(s,(0,j.Z)(g.slice(p)))}for(var k=u,x=s.length;k<x;++k)s[k].dispose();if(this.options.positioning)for(var C=0,O=n.length;C<O;++C){var S=n[C].context;S.length=O,S.index=C}}},{key:"refreshAllViews",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.items,n=this.childContext,r=this.template,i=this.location,o=this.bindView,a=t.length,s=this.views,u=s.length;if(0!==a&&!e&&this.options.recycle||(Tt.disposeContiguousBatch(s),u=0),0===u){this.views=s=new Array(a);for(var l=0;l<a;++l){var c=r.create();o(c,t,l,n),s[l]=c,c.insertBefore(i)}}else{for(var d=0;d<a;++d)if(d<u)o(s[d],t,d,n);else{var f=r.create();o(f,t,d,n),s.push(f),f.insertBefore(i)}var h=s.splice(d,u-d);for(d=0,a=h.length;d<a;++d)h[d].dispose()}}},{key:"unbindAllViews",value:function(){for(var e=this.views,t=0,n=e.length;t<n;++t)e[t].unbind()}}]),e}(),Si=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o){var a;return(0,r.Z)(this,n),(a=t.call(this)).itemsBinding=e,a.templateBinding=i,a.options=o,a.createPlaceholder=k.createBlockPlaceholder,function(){if(!_i){_i=!0,O.setArrayObserverFactory((function(e){return new ki(e)}));var e=Array.prototype;if(!e.$fastPatch){Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});var t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,a=e.splice,s=e.unshift;e.pop=function(){var e=this.length>0,n=t.apply(this,arguments),r=this.$fastController;return void 0!==r&&e&&r.addSplice(mi(this.length,[n],0)),n},e.push=function(){var e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(wi(mi(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=r.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.shift=function(){var e=this.length>0,t=i.apply(this,arguments),n=this.$fastController;return void 0!==n&&e&&n.addSplice(mi(0,[t],0)),t},e.sort=function(){var e,t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());var n=o.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.splice=function(){var e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(wi(mi(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){var e=s.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(wi(mi(0,[],arguments.length),this)),e}}}}(),a.isItemsBindingVolatile=O.isVolatileBinding(e),a.isTemplateBindingVolatile=O.isVolatileBinding(i),a}return(0,i.Z)(n,[{key:"createBehavior",value:function(e){return new Oi(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}]),n}(ot),Ei="focus",Ti="focusin",Ai="focusout",Ri="keydown",Di="sticky",ji="default",Ii="columnheader",Pi="default",Ni=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).noTabbing=!1,e.generateHeader="default",e.rowsData=[],e.columnDefinitions=null,e.focusRowIndex=0,e.focusColumnIndex=0,e.rowsPlaceholder=null,e.generatedHeader=null,e.isUpdatingFocus=!1,e.pendingFocusUpdate=!1,e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!0,e.generatedGridTemplateColumns="",e.focusOnCell=function(t,n,r){if(0===e.rowElements.length)return e.focusRowIndex=0,void(e.focusColumnIndex=0);var i=Math.max(0,Math.min(e.rowElements.length-1,t)),o=e.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),a=o[Math.max(0,Math.min(o.length-1,n))];r&&e.scrollHeight!==e.clientHeight&&(i<e.focusRowIndex&&e.scrollTop>0||i>e.focusRowIndex&&e.scrollTop<e.scrollHeight-e.clientHeight)&&a.scrollIntoView({block:"center",inline:"center"}),a.focus()},e.onChildListChange=function(t,n){t&&t.length&&(t.forEach((function(t){t.addedNodes.forEach((function(t){1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=e.columnDefinitions)}))})),e.queueRowIndexUpdate())},e.queueRowIndexUpdate=function(){e.rowindexUpdateQueued||(e.rowindexUpdateQueued=!0,k.queueUpdate(e.updateRowIndexes))},e.updateRowIndexes=function(){var t=e.gridTemplateColumns;if(void 0===t){if(""===e.generatedGridTemplateColumns&&e.rowElements.length>0){var n=e.rowElements[0];e.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=e.generatedGridTemplateColumns}e.rowElements.forEach((function(n,r){var i=n;i.rowIndex=r,i.gridTemplateColumns=t,e.columnDefinitionsStale&&(i.columnDefinitions=e.columnDefinitions)})),e.rowindexUpdateQueued=!1,e.columnDefinitionsStale=!1},e}return(0,i.Z)(n,[{key:"noTabbingChanged",value:function(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}},{key:"generateHeaderChanged",value:function(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowIndexes()}},{key:"rowsDataChanged",value:function(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=n.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}},{key:"columnDefinitionsChanged",value:function(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=n.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}},{key:"headerCellItemTemplateChanged",value:function(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}},{key:"focusRowIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"focusColumnIndexChanged",value:function(){this.$fastController.isConnected&&this.queueFocusUpdate()}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Si((function(e){return e.rowsData}),(function(e){return e.rowItemTemplate}),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Ei,this.handleFocus),this.addEventListener(Ri,this.handleKeydown),this.addEventListener(Ai,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),k.queueUpdate(this.queueRowIndexUpdate)}},{key:"disconnectedCallback",value:function(){D((0,R.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Ei,this.handleFocus),this.removeEventListener(Ri,this.handleKeydown),this.removeEventListener(Ai,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}},{key:"handleRowFocus",value:function(e){this.isUpdatingFocus=!0;var t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}},{key:"handleFocus",value:function(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"handleFocusOut",value:function(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t,n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case Sr:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case xr:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){var o=this.rowElements[t];if(o.offsetTop<this.scrollTop){this.scrollTop=o.offsetTop+o.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"PageDown":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=n||i.offsetTop+i.offsetHeight<=r)return void this.focusOnCell(n,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=n;t++){var a=this.rowElements[t];if(a.offsetTop+a.offsetHeight>r){var s=0;this.generateHeader===Di&&null!==this.generatedHeader&&(s=this.generatedHeader.clientHeight),this.scrollTop=a.offsetTop-s;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Ar:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Rr:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}}},{key:"queueFocusUpdate",value:function(){var e=this;this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,k.queueUpdate((function(){return e.updateFocus()})))}},{key:"updateFocus",value:function(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}},{key:"toggleGeneratedHeader",value:function(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),"none"!==this.generateHeader&&this.rowsData.length>0){var e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Di?"sticky-header":"header",void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}],[{key:"generateTemplateColumns",value:function(e){var t="";return e.forEach((function(e){t="".concat(t).concat(""===t?"":" ","1fr")})),t}}]),n}(qe);Ni.generateColumns=function(e){return Object.getOwnPropertyNames(e).map((function(e,t){return{columnDataKey:e,gridColumn:"".concat(t)}}))},G([K({attribute:"no-tabbing",mode:"boolean"})],Ni.prototype,"noTabbing",void 0),G([K({attribute:"generate-header"})],Ni.prototype,"generateHeader",void 0),G([K({attribute:"grid-template-columns"})],Ni.prototype,"gridTemplateColumns",void 0),G([S],Ni.prototype,"rowsData",void 0),G([S],Ni.prototype,"columnDefinitions",void 0),G([S],Ni.prototype,"rowItemTemplate",void 0),G([S],Ni.prototype,"cellItemTemplate",void 0),G([S],Ni.prototype,"headerCellItemTemplate",void 0),G([S],Ni.prototype,"focusRowIndex",void 0),G([S],Ni.prototype,"focusColumnIndex",void 0),G([S],Ni.prototype,"defaultRowItemTemplate",void 0),G([S],Ni.prototype,"rowElementTag",void 0),G([S],Ni.prototype,"rowElements",void 0);var Mi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i){var o;return(0,r.Z)(this,n),(o=t.call(this,e,i)).observer=null,i.childList=!0,o}return(0,i.Z)(n,[{key:"observe",value:function(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}},{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"getNodes",value:function(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}]),n}($r);function Li(e){return"string"==typeof e&&(e={property:e}),new st("fast-children",Mi,e)}var Zi,zi,Fi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).rowType=Pi,e.rowData=null,e.columnDefinitions=null,e.isActiveRow=!1,e.cellsRepeatBehavior=null,e.cellsPlaceholder=null,e.focusColumnIndex=0,e.refocusOnLoad=!1,e.updateRowStyle=function(){e.style.gridTemplateColumns=e.gridTemplateColumns},e}return(0,i.Z)(n,[{key:"gridTemplateColumnsChanged",value:function(){this.$fastController.isConnected&&this.updateRowStyle()}},{key:"rowTypeChanged",value:function(){this.$fastController.isConnected&&this.updateItemTemplate()}},{key:"rowDataChanged",value:function(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}},{key:"cellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"headerCellItemTemplateChanged",value:function(){this.updateItemTemplate()}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Si((function(e){return e.columnDefinitions}),(function(e){return e.activeCellItemTemplate}),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Ai,this.handleFocusout),this.addEventListener(Ri,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}},{key:"disconnectedCallback",value:function(){D((0,R.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Ai,this.handleFocusout),this.removeEventListener(Ri,this.handleKeydown)}},{key:"handleFocusout",value:function(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}},{key:"handleCellFocus",value:function(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}},{key:"handleKeydown",value:function(e){if(!e.defaultPrevented){var t=0;switch(e.key){case Cr:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case Or:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Ar:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Rr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}}},{key:"updateItemTemplate",value:function(){this.activeCellItemTemplate=this.rowType===Pi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Pi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}]),n}(qe);G([K({attribute:"grid-template-columns"})],Fi.prototype,"gridTemplateColumns",void 0),G([K({attribute:"row-type"})],Fi.prototype,"rowType",void 0),G([S],Fi.prototype,"rowData",void 0),G([S],Fi.prototype,"columnDefinitions",void 0),G([S],Fi.prototype,"cellItemTemplate",void 0),G([S],Fi.prototype,"headerCellItemTemplate",void 0),G([S],Fi.prototype,"rowIndex",void 0),G([S],Fi.prototype,"isActiveRow",void 0),G([S],Fi.prototype,"activeCellItemTemplate",void 0),G([S],Fi.prototype,"defaultCellItemTemplate",void 0),G([S],Fi.prototype,"defaultHeaderCellItemTemplate",void 0),G([S],Fi.prototype,"cellElements",void 0);var Bi,Vi,Hi,Ui,Ki,qi=Dt(Bi||(Bi=(0,it.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey]})),$i=Dt(Vi||(Vi=(0,it.Z)(["\n <template>\n ","\n </template>\n"])),(function(e){return null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title})),Yi=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).cellType=ji,e.rowData=null,e.columnDefinition=null,e.isActiveCell=!1,e.customCellView=null,e.updateCellStyle=function(){e.style.gridColumn=e.gridColumn},e}return(0,i.Z)(n,[{key:"cellTypeChanged",value:function(){this.$fastController.isConnected&&this.updateCellView()}},{key:"gridColumnChanged",value:function(){this.$fastController.isConnected&&this.updateCellStyle()}},{key:"columnDefinitionChanged",value:function(e,t){this.$fastController.isConnected&&this.updateCellView()}},{key:"connectedCallback",value:function(){var e;D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener(Ti,this.handleFocusin),this.addEventListener(Ai,this.handleFocusout),this.addEventListener(Ri,this.handleKeydown),this.style.gridColumn="".concat(void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}},{key:"disconnectedCallback",value:function(){D((0,R.Z)(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener(Ti,this.handleFocusin),this.removeEventListener(Ai,this.handleFocusout),this.removeEventListener(Ri,this.handleKeydown),this.disconnectCellView()}},{key:"handleFocusin",value:function(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===Ii){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus()}this.$emit("cell-focused",this)}}},{key:"handleFocusout",value:function(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}},{key:"handleKeydown",value:function(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===ji&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ii&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case Er:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===Ii){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){var t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){var n=this.columnDefinition.cellFocusTargetCallback(this);null!==n&&n.focus(),e.preventDefault()}break;case Tr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}},{key:"updateCellView",value:function(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ii:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=$i.render(this,this);break;case void 0:case"rowheader":case ji:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=qi.render(this,this)}}},{key:"disconnectCellView",value:function(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}]),n}(qe);G([K({attribute:"cell-type"})],Yi.prototype,"cellType",void 0),G([K({attribute:"grid-column"})],Yi.prototype,"gridColumn",void 0),G([S],Yi.prototype,"rowData",void 0),G([S],Yi.prototype,"columnDefinition",void 0);var Wi,Gi,Qi,Ji,Xi,eo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}]),n}(Ni),to=eo.compose({baseName:"data-grid",baseClass:Ni,template:function(e,t){var n=function(e){var t=e.tagFor(Fi);return Dt(Zi||(Zi=(0,it.Z)(["\n <",'\n :rowData="','"\n :cellItemTemplate="','"\n :headerCellItemTemplate="','"\n ></',">\n"])),t,(function(e){return e}),(function(e,t){return t.parent.cellItemTemplate}),(function(e,t){return t.parent.headerCellItemTemplate}),t)}(e),r=e.tagFor(Fi);return Dt(zi||(zi=(0,it.Z)(['\n <template\n role="grid"\n tabindex="0"\n :rowElementTag="','"\n :defaultRowItemTemplate="','"\n ',"\n >\n <slot></slot>\n </template>\n "])),(function(){return r}),n,Li({property:"rowElements",filter:Ur("[role=row]")}))},styles:function(e,t){return Pt(Gi||(Gi=(0,it.Z)(["\n\t:host {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t}\n"])))}}),no=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Fi),ro=no.compose({baseName:"data-grid-row",baseClass:Fi,template:function(e,t){var n=function(e){var t=e.tagFor(Yi);return Dt(Hi||(Hi=(0,it.Z)(["\n <",'\n cell-type="','"\n grid-column="','"\n :rowData="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e){return e.isRowHeader?"rowheader":void 0}),(function(e,t){return t.index+1}),(function(e,t){return t.parent.rowData}),(function(e){return e}),t)}(e),r=function(e){var t=e.tagFor(Yi);return Dt(Ui||(Ui=(0,it.Z)(["\n <",'\n cell-type="columnheader"\n grid-column="','"\n :columnDefinition="','"\n ></',">\n"])),t,(function(e,t){return t.index+1}),(function(e){return e}),t)}(e);return Dt(Ki||(Ki=(0,it.Z)(['\n <template\n role="row"\n class="','"\n :defaultCellItemTemplate="','"\n :defaultHeaderCellItemTemplate="','"\n ',"\n >\n <slot ","></slot>\n </template>\n "])),(function(e){return"default"!==e.rowType?e.rowType:""}),n,r,Li({property:"cellElements",filter:Ur('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')}),Wr("slottedCellElements"))},styles:function(e,t){return Pt(Qi||(Qi=(0,it.Z)(["\n\t:host {\n\t\tdisplay: grid;\n\t\tpadding: calc(("," / 4) * 1px) 0;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tbackground: transparent;\n\t}\n\t:host(.header) {\n\t}\n\t:host(.sticky-header) {\n\t\tbackground: ",";\n\t\tposition: sticky;\n\t\ttop: 0;\n\t}\n\t:host(:hover) {\n\t\tbackground: ",";\n\t\toutline: 1px dotted ",";\n\t\toutline-offset: -1px;\n\t}\n"])),fn,un,Wn,cn)}}),io=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Yi),oo=io.compose({baseName:"data-grid-cell",baseClass:Yi,template:function(e,t){return Dt(Wi||(Wi=(0,it.Z)(['\n <template\n tabindex="-1"\n role="','"\n class="\n ','\n "\n >\n <slot></slot>\n </template>\n '])),(function(e){return e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"}),(function(e){return"columnheader"===e.cellType?"column-header":"rowheader"===e.cellType?"row-header":""}))},styles:function(e,t){return Pt(Ji||(Ji=(0,it.Z)(["\n\t:host {\n\t\tpadding: calc("," * 1px) calc("," * 3px);\n\t\tcolor: ",";\n\t\topacity: 1;\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tfont-weight: 400;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\twhite-space: wrap;\n\t\toverflow-wrap: anywhere;\n\t}\n\t:host(.column-header) {\n\t\tfont-weight: 600;\n\t}\n\t:host(:","),\n\t:host(:focus),\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tborder: solid calc("," * 1px) ",";\n\t\tcolor: ",";\n\t\toutline: none;\n\t}\n\t:host(:",") ::slotted(*),\n\t:host(:focus) ::slotted(*),\n\t:host(:active) ::slotted(*) {\n\t\tcolor: "," !important;\n\t}\n"])),fn,fn,mn,vn,bn,_n,ln,dn,ti,$n,ln,pn,Yn,ti,Yn)}}),ao="horizontal",so=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).role="separator",e.orientation=ao,e}return(0,i.Z)(n)}(qe);G([K],so.prototype,"role",void 0),G([K],so.prototype,"orientation",void 0);var uo,lo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(so),co=lo.compose({baseName:"divider",template:function(e,t){return Dt(Xi||(Xi=(0,it.Z)(['\n <template role="','" aria-orientation="','"></template>\n'])),(function(e){return e.role}),(function(e){return e.orientation}))},styles:function(e,t){return Pt(uo||(uo=(0,it.Z)(["\n\t"," :host {\n\t\tborder: none;\n\t\tborder-top: calc("," * 1px) solid ",";\n\t\tbox-sizing: content-box;\n\t\theight: 0;\n\t\tmargin: calc("," * 1px) 0;\n\t\twidth: 100%;\n\t}\n"])),Nt("block"),ln,Gn,fn)}}),fo=0;function ho(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(fo++)}function po(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((function(e){return e instanceof HTMLElement}))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}var vo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,i,o,a){var s;return(0,r.Z)(this,n),(s=t.call(this)).defaultSelected=!1,s.dirtySelected=!1,s.selected=s.defaultSelected,s.dirtyValue=!1,e&&(s.textContent=e),i&&(s.initialValue=i),o&&(s.defaultSelected=o),a&&(s.selected=a),s.proxy=new Option("".concat(s.textContent),s.initialValue,s.defaultSelected,s.selected),s.proxy.disabled=s.disabled,s}return(0,i.Z)(n,[{key:"checkedChanged",value:function(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}},{key:"contentChanged",value:function(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}},{key:"defaultSelectedChanged",value:function(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}},{key:"disabledChanged",value:function(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}},{key:"selectedAttributeChanged",value:function(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}},{key:"selectedChanged",value:function(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}},{key:"initialValueChanged",value:function(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}},{key:"label",get:function(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}},{key:"text",get:function(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}},{key:"value",get:function(){var e;return O.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text},set:function(e){var t="".concat(null!=e?e:"");this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),O.notify(this,"value")}},{key:"form",get:function(){return this.proxy?this.proxy.form:null}}]),n}(qe);G([S],vo.prototype,"checked",void 0),G([S],vo.prototype,"content",void 0),G([S],vo.prototype,"defaultSelected",void 0),G([K({mode:"boolean"})],vo.prototype,"disabled",void 0),G([K({attribute:"selected",mode:"boolean"})],vo.prototype,"selectedAttribute",void 0),G([S],vo.prototype,"selected",void 0),G([K({attribute:"value",mode:"fromView"})],vo.prototype,"initialValue",void 0);var mo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([S],mo.prototype,"ariaChecked",void 0),G([S],mo.prototype,"ariaPosInSet",void 0),G([S],mo.prototype,"ariaSelected",void 0),G([S],mo.prototype,"ariaSetSize",void 0),kr(mo,dr),kr(vo,br,mo);var go=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments))._options=[],e.selectedIndex=-1,e.selectedOptions=[],e.shouldSkipFocus=!1,e.typeaheadBuffer="",e.typeaheadExpired=!0,e.typeaheadTimeout=-1,e}return(0,i.Z)(n,[{key:"firstSelectedOption",get:function(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}},{key:"hasSelectableOptions",get:function(){return this.options.length>0&&!this.options.every((function(e){return e.disabled}))}},{key:"length",get:function(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}},{key:"options",get:function(){return O.track(this,"options"),this._options},set:function(e){this._options=e,O.notify(this,"options")}},{key:"typeAheadExpired",get:function(){return this.typeaheadExpired},set:function(e){this.typeaheadExpired=e}},{key:"clickHandler",value:function(e){var t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}},{key:"focusAndScrollOptionIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.firstSelectedOption;this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((function(){e.scrollIntoView({block:"nearest"})})))}},{key:"focusinHandler",value:function(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"getTypeaheadMatches",value:function(){var e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp("^".concat(e),"gi");return this.options.filter((function(e){return e.text.trim().match(t)}))}},{key:"getSelectableIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedIndex,t=arguments.length>1?arguments[1]:void 0,n=e>t?-1:e<t?1:0,r=e+n,i=null;switch(n){case-1:i=this.options.reduceRight((function(e,t,n){return!e&&!t.disabled&&n<r?t:e}),i);break;case 1:i=this.options.reduce((function(e,t,n){return!e&&!t.disabled&&n>r?t:e}),i)}return this.options.indexOf(i)}},{key:"handleChange",value:function(e,t){"selected"===t&&(n.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions())}},{key:"handleTypeAhead",value:function(e){var t=this;this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((function(){return t.typeaheadExpired=!0}),n.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer="".concat(this.typeaheadExpired?"":this.typeaheadBuffer).concat(e))}},{key:"keydownHandler",value:function(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;var t=e.key;switch(t){case Ar:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case xr:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case Sr:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case Rr:e.preventDefault(),this.selectLastOption();break;case jr:return this.focusAndScrollOptionIntoView(),!0;case Er:case Tr:return!0;case Dr:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}},{key:"multipleChanged",value:function(e,t){this.ariaMultiSelectable=t?"true":null}},{key:"selectedIndexChanged",value:function(e,t){var n;if(this.hasSelectableOptions){if((null===(n=this.options[this.selectedIndex])||void 0===n?void 0:n.disabled)&&"number"==typeof e){var r=this.getSelectableIndex(e,t),i=r>-1?r:e;return this.selectedIndex=i,void(t===i&&this.selectedIndexChanged(t,i))}this.setSelectedOptions()}else this.selectedIndex=-1}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this,o=t.filter(n.slottedOptionFilter);null===(r=this.options)||void 0===r||r.forEach((function(e){var t=O.getNotifier(e);t.unsubscribe(i,"selected"),e.selected=o.includes(e),t.subscribe(i,"selected")}))}},{key:"selectFirstOption",value:function(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return!e.disabled})))&&void 0!==t?t:-1)}},{key:"selectLastOption",value:function(){this.disabled||(this.selectedIndex=function(e,t){for(var n=e.length;n--;)if(t(e[n]))return n;return-1}(this.options,(function(e){return!e.disabled})))}},{key:"selectNextOption",value:function(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}},{key:"selectPreviousOption",value:function(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}},{key:"setDefaultSelectedOption",value:function(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((function(e){return e.defaultSelected})))&&void 0!==t?t:-1}},{key:"setSelectedOptions",value:function(){var e,t,n;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==n?n:"",this.focusAndScrollOptionIntoView())}},{key:"slottedOptionsChanged",value:function(e,t){this.options=t.reduce((function(e,t){return po(t)&&e.push(t),e}),[]);var n="".concat(this.options.length);this.options.forEach((function(e,t){e.id||(e.id=ho("option-")),e.ariaPosInSet="".concat(t+1),e.ariaSetSize=n})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.$fastController.isConnected){var n=this.getTypeaheadMatches();if(n.length){var r=this.options.indexOf(n[0]);r>-1&&(this.selectedIndex=r)}this.typeaheadExpired=!1}}}]),n}(qe);go.slottedOptionFilter=function(e){return po(e)&&!e.hidden},go.TYPE_AHEAD_TIMEOUT_MS=1e3,G([K({mode:"boolean"})],go.prototype,"disabled",void 0),G([S],go.prototype,"selectedIndex",void 0),G([S],go.prototype,"selectedOptions",void 0),G([S],go.prototype,"slottedOptions",void 0),G([S],go.prototype,"typeaheadBuffer",void 0);var yo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));function bo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[t,n].sort((function(e,t){return e-t})),i=(0,Q.Z)(r,2);return t=i[0],n=i[1],t<=e&&e<n}G([S],yo.prototype,"ariaActiveDescendant",void 0),G([S],yo.prototype,"ariaDisabled",void 0),G([S],yo.prototype,"ariaExpanded",void 0),G([S],yo.prototype,"ariaMultiSelectable",void 0),kr(yo,dr),kr(go,yo);var _o=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).activeIndex=-1,e.rangeStartIndex=-1,e}return(0,i.Z)(n,[{key:"activeOption",get:function(){return this.options[this.activeIndex]}},{key:"checkedOptions",get:function(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((function(e){return e.checked}))}},{key:"firstSelectedOptionIndex",get:function(){return this.options.indexOf(this.firstSelectedOption)}},{key:"activeIndexChanged",value:function(e,t){var n,r;this.ariaActiveDescendant=null!==(r=null===(n=this.options[t])||void 0===n?void 0:n.id)&&void 0!==r?r:"",this.focusAndScrollOptionIntoView()}},{key:"checkActiveIndex",value:function(){if(this.multiple){var e=this.activeOption;e&&(e.checked=!0)}}},{key:"checkFirstOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((function(t,n){t.checked=bo(n,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}},{key:"checkLastOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=bo(n,e.rangeStartIndex,e.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.addEventListener("focusout",this.focusoutHandler)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("focusout",this.focusoutHandler),D((0,R.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"checkNextOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((function(t,n){t.checked=bo(n,e.rangeStartIndex,e.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}},{key:"checkPreviousOption",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((function(t,n){t.checked=bo(n,e.activeIndex,e.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}},{key:"clickHandler",value:function(e){var t;if(!this.multiple)return D((0,R.Z)(n.prototype),"clickHandler",this).call(this,e);var r=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return r&&!r.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}},{key:"focusAndScrollOptionIntoView",value:function(){D((0,R.Z)(n.prototype),"focusAndScrollOptionIntoView",this).call(this,this.activeOption)}},{key:"focusinHandler",value:function(e){if(!this.multiple)return D((0,R.Z)(n.prototype),"focusinHandler",this).call(this,e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}},{key:"focusoutHandler",value:function(e){this.multiple&&this.uncheckAllOptions()}},{key:"keydownHandler",value:function(e){if(!this.multiple)return D((0,R.Z)(n.prototype),"keydownHandler",this).call(this,e);if(this.disabled)return!0;var t=e.key,r=e.shiftKey;switch(this.shouldSkipFocus=!1,t){case Ar:return void this.checkFirstOption(r);case xr:return void this.checkNextOption(r);case Sr:return void this.checkPreviousOption(r);case Rr:return void this.checkLastOption(r);case jr:return this.focusAndScrollOptionIntoView(),!0;case Tr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Dr:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}},{key:"mousedownHandler",value:function(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return D((0,R.Z)(n.prototype),"mousedownHandler",this).call(this,e)}},{key:"multipleChanged",value:function(e,t){var n;this.ariaMultiSelectable=t?"true":null,null===(n=this.options)||void 0===n||n.forEach((function(e){e.checked=!t&&void 0})),this.setSelectedOptions()}},{key:"setSelectedOptions",value:function(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((function(e){return e.selected})),this.focusAndScrollOptionIntoView()):D((0,R.Z)(n.prototype),"setSelectedOptions",this).call(this)}},{key:"sizeChanged",value:function(e,t){var n,r=this,i=Math.max(0,parseInt(null!==(n=null==t?void 0:t.toFixed())&&void 0!==n?n:"",10));i!==t&&k.queueUpdate((function(){r.size=i}))}},{key:"toggleSelectedForAllCheckedOptions",value:function(){var e=this.checkedOptions.filter((function(e){return!e.disabled})),t=!e.every((function(e){return e.selected}));e.forEach((function(e){return e.selected=t})),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}},{key:"typeaheadBufferChanged",value:function(e,t){if(this.multiple){if(this.$fastController.isConnected){var r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else D((0,R.Z)(n.prototype),"typeaheadBufferChanged",this).call(this,e,t)}},{key:"uncheckAllOptions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.options.forEach((function(t){return t.checked=!e.multiple&&void 0})),t||(this.rangeStartIndex=-1)}}]),n}(go);G([S],_o.prototype,"activeIndex",void 0),G([K({mode:"boolean"})],_o.prototype,"multiple",void 0),G([K({converter:H})],_o.prototype,"size",void 0);var wo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(_o),ko=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("select"),e}return(0,i.Z)(n)}(Zr(wo)),xo="above",Co=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).open=!1,e.forcedPosition=!1,e.listboxId=ho("listbox-"),e.maxHeight=0,e}return(0,i.Z)(n,[{key:"openChanged",value:function(e,t){var n=this;if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void k.queueUpdate((function(){return n.focus()}));this.ariaControls="",this.ariaExpanded="false"}}},{key:"collapsible",get:function(){return!(this.multiple||"number"==typeof this.size)}},{key:"value",get:function(){return O.track(this,"value"),this._value},set:function(e){var t,r,i,o,a,s,u,l="".concat(this._value);if(null===(t=this._options)||void 0===t?void 0:t.length){var c=this._options.findIndex((function(t){return t.value===e})),d=null!==(i=null===(r=this._options[this.selectedIndex])||void 0===r?void 0:r.value)&&void 0!==i?i:null,f=null!==(a=null===(o=this._options[c])||void 0===o?void 0:o.value)&&void 0!==a?a:null;-1!==c&&d===f||(e="",this.selectedIndex=c),e=null!==(u=null===(s=this.firstSelectedOption)||void 0===s?void 0:s.value)&&void 0!==u?u:e}l!==e&&(this._value=e,D((0,R.Z)(n.prototype),"valueChanged",this).call(this,l,e),O.notify(this,"value"),this.updateDisplayValue())}},{key:"updateValue",value:function(e){var t,n;this.$fastController.isConnected&&(this.value=null!==(n=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==n?n:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}},{key:"selectedIndexChanged",value:function(e,t){D((0,R.Z)(n.prototype),"selectedIndexChanged",this).call(this,e,t),this.updateValue()}},{key:"positionChanged",value:function(e,t){this.positionAttribute=t,this.setPositioning()}},{key:"setPositioning",value:function(){var e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?xo:"below",this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===xo?~~e.top:~~t}},{key:"displayValue",get:function(){var e,t;return O.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}},{key:"disabledChanged",value:function(e,t){D((0,R.Z)(n.prototype),"disabledChanged",this)&&D((0,R.Z)(n.prototype),"disabledChanged",this).call(this,e,t),this.ariaDisabled=this.disabled?"true":"false"}},{key:"formResetCallback",value:function(){this.setProxyOptions(),D((0,R.Z)(n.prototype),"setDefaultSelectedOption",this).call(this),-1===this.selectedIndex&&(this.selectedIndex=0)}},{key:"clickHandler",value:function(e){if(!this.disabled){if(this.open){var t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return D((0,R.Z)(n.prototype),"clickHandler",this).call(this,e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}},{key:"focusoutHandler",value:function(e){var t;if(D((0,R.Z)(n.prototype),"focusoutHandler",this).call(this,e),!this.open)return!0;var r=e.relatedTarget;this.isSameNode(r)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(r))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}},{key:"handleChange",value:function(e,t){D((0,R.Z)(n.prototype),"handleChange",this).call(this,e,t),"value"===t&&this.updateValue()}},{key:"slottedOptionsChanged",value:function(e,t){var r=this;this.options.forEach((function(e){O.getNotifier(e).unsubscribe(r,"value")})),D((0,R.Z)(n.prototype),"slottedOptionsChanged",this).call(this,e,t),this.options.forEach((function(e){O.getNotifier(e).subscribe(r,"value")})),this.setProxyOptions(),this.updateValue()}},{key:"mousedownHandler",value:function(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?D((0,R.Z)(n.prototype),"mousedownHandler",this).call(this,e):this.collapsible}},{key:"multipleChanged",value:function(e,t){D((0,R.Z)(n.prototype),"multipleChanged",this).call(this,e,t),this.proxy&&(this.proxy.multiple=t)}},{key:"selectedOptionsChanged",value:function(e,t){var r,i=this;D((0,R.Z)(n.prototype),"selectedOptionsChanged",this).call(this,e,t),null===(r=this.options)||void 0===r||r.forEach((function(e,t){var n,r=null===(n=i.proxy)||void 0===n?void 0:n.options.item(t);r&&(r.selected=e.selected)}))}},{key:"setDefaultSelectedOption",value:function(){var e,t=this,n=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(go.slottedOptionFilter),r=null==n?void 0:n.findIndex((function(e){return e.hasAttribute("selected")||e.selected||e.value===t.value}));this.selectedIndex=-1===r?0:r}},{key:"setProxyOptions",value:function(){var e=this;this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((function(t){var n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&e.proxy.options.add(n)})))}},{key:"keydownHandler",value:function(e){D((0,R.Z)(n.prototype),"keydownHandler",this).call(this,e);var t=e.key||e.key.charCodeAt(0);switch(t){case Dr:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Ar:case Rr:e.preventDefault();break;case Er:e.preventDefault(),this.open=!this.open;break;case Tr:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case jr:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===xr||t===Sr)}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}},{key:"disconnectedCallback",value:function(){this.removeEventListener("contentchange",this.updateDisplayValue),D((0,R.Z)(n.prototype),"disconnectedCallback",this).call(this)}},{key:"sizeChanged",value:function(e,t){D((0,R.Z)(n.prototype),"sizeChanged",this).call(this,e,t),this.proxy&&(this.proxy.size=t)}},{key:"updateDisplayValue",value:function(){this.collapsible&&O.notify(this,"displayValue")}}]),n}(ko);G([K({attribute:"open",mode:"boolean"})],Co.prototype,"open",void 0),G([function(e,t,n){return Object.assign({},n,{get:function(){return O.trackVolatile(),n.get.apply(this)}})}],Co.prototype,"collapsible",null),G([S],Co.prototype,"control",void 0),G([K({attribute:"position"})],Co.prototype,"positionAttribute",void 0),G([S],Co.prototype,"position",void 0),G([S],Co.prototype,"maxHeight",void 0);var Oo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([S],Oo.prototype,"ariaControls",void 0),kr(Oo,yo),kr(Co,br,Oo);var So,Eo,To=function(e){return"function"==typeof e},Ao=function(){return null};function Ro(e){return void 0===e?Ao:To(e)?e:function(){return e}}function Do(e,t,n){var r=To(e)?e:function(){return e},i=Ro(t),o=Ro(n);return function(e,t){return r(e,t)?i(e,t):o(e,t)}}var jo,Io=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(Co),Po=Io.compose({baseName:"dropdown",template:function(e,t){return Dt(So||(So=(0,it.Z)(['\n <template\n class="','"\n aria-activedescendant="','"\n aria-controls="','"\n aria-disabled="','"\n aria-expanded="','"\n aria-haspopup="','"\n aria-multiselectable="','"\n ?open="','"\n role="combobox"\n tabindex="','"\n @click="','"\n @focusin="','"\n @focusout="','"\n @keydown="','"\n @mousedown="','"\n >\n ','\n <div\n class="listbox"\n id="','"\n part="listbox"\n role="listbox"\n ?disabled="','"\n ?hidden="','"\n ',"\n >\n <slot\n ","\n ></slot>\n </div>\n </template>\n"])),(function(e){return[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}),(function(e){return e.ariaActiveDescendant}),(function(e){return e.ariaControls}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaExpanded}),(function(e){return e.collapsible?"listbox":null}),(function(e){return e.ariaMultiSelectable}),(function(e){return e.open}),(function(e){return e.disabled?null:"0"}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.focusinHandler(t.event)}),(function(e,t){return e.focusoutHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.mousedownHandler(t.event)}),Do((function(e){return e.collapsible}),Dt(Eo||(Eo=(0,it.Z)(['\n <div\n class="control"\n part="control"\n ?disabled="','"\n ',"\n >\n ",'\n <slot name="button-container">\n <div class="selected-value" part="selected-value">\n <slot name="selected-value">','</slot>\n </div>\n <div aria-hidden="true" class="indicator" part="indicator">\n <slot name="indicator">\n ',"\n </slot>\n </div>\n </slot>\n ","\n </div>\n "])),(function(e){return e.disabled}),gr("control"),wr(0,t),(function(e){return e.displayValue}),t.indicator||"",_r(0,t))),(function(e){return e.listboxId}),(function(e){return e.disabled}),(function(e){return!!e.collapsible&&!e.open}),gr("listbox"),Wr({filter:go.slottedOptionFilter,flatten:!0,property:"slottedOptions"}))},styles:function(e,t){return Pt(jo||(jo=(0,it.Z)(["\n\t"," :host {\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcontain: contents;\n\t\tfont-family: ",";\n\t\theight: calc("," * 1px);\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tmin-width: ",";\n\t\toutline: none;\n\t\tvertical-align: top;\n\t}\n\t.control {\n\t\talign-items: center;\n\t\tbox-sizing: border-box;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tfont-family: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmin-height: 100%;\n\t\tpadding: 2px 6px 2px 8px;\n\t\twidth: 100%;\n\t}\n\t.listbox {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\t\tleft: 0;\n\t\tmax-height: ",";\n\t\tpadding: 0 0 calc("," * 1px) 0;\n\t\toverflow-y: auto;\n\t\tposition: absolute;\n\t\twidth: 100%;\n\t\tz-index: 1;\n\t}\n\t.listbox[hidden] {\n\t\tdisplay: none;\n\t}\n\t:host(:",") .control {\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled]):hover) {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",') ::slotted([aria-selected="true"][role="option"]:not([disabled])) {\n\t\tbackground: ',";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t\tuser-select: none;\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tborder-color: ",";\n\t}\n\t:host(:empty) .listbox {\n\t\tdisplay: none;\n\t}\n\t:host([open]) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([open][position='above']) .listbox,\n\t:host([open][position='below']) .control {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\t}\n\t:host([open][position='above']) .control,\n\t:host([open][position='below']) .listbox {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\t:host([open][position='above']) .listbox {\n\t\tbottom: calc("," * 1px);\n\t}\n\t:host([open][position='below']) .listbox {\n\t\ttop: calc("," * 1px);\n\t}\n\t.selected-value {\n\t\tflex: 1 1 auto;\n\t\tfont-family: inherit;\n\t\toverflow: hidden;\n\t\ttext-align: start;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\t.indicator {\n\t\tflex: 0 0 auto;\n\t\tmargin-inline-start: 1em;\n\t}\n\tslot[name='listbox'] {\n\t\tdisplay: none;\n\t\twidth: 100%;\n\t}\n\t:host([open]) slot[name='listbox'] {\n\t\tdisplay: flex;\n\t\tposition: absolute;\n\t}\n\t.end {\n\t\tmargin-inline-start: auto;\n\t}\n\t.start,\n\t.end,\n\t.indicator,\n\t.select-indicator,\n\t::slotted(svg),\n\t::slotted(span) {\n\t\tfill: currentcolor;\n\t\theight: 1em;\n\t\tmin-height: calc("," * 4px);\n\t\tmin-width: calc("," * 4px);\n\t\twidth: 1em;\n\t}\n\t::slotted([role='option']),\n\t::slotted(option) {\n\t\tflex: 0 0 auto;\n\t}\n"])),Nt("inline-flex"),Qn,mn,vn,gn,yn,ln,Jn,dn,bn,_n,Qn,ln,pn,dn,Xn,fn,ti,pn,Qn,Jn,ti,$n,ln,pn,Yn,ni,hn,ni,Qn,mn,pn,pn,gn,gn,fn,fn)},indicator:'\n\t\t<svg \n\t\t\tclass="select-indicator"\n\t\t\tpart="select-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"\n\t\t\t/>\n\t\t</svg>\n\t'}),No=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).handleUnsupportedDelegatesFocus=function(){var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=e.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(e.focus=function(){var t;null===(t=e.control)||void 0===t||t.focus()})},e}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.handleUnsupportedDelegatesFocus()}}]),n}(qe);G([K],No.prototype,"download",void 0),G([K],No.prototype,"href",void 0),G([K],No.prototype,"hreflang",void 0),G([K],No.prototype,"ping",void 0),G([K],No.prototype,"referrerpolicy",void 0),G([K],No.prototype,"rel",void 0),G([K],No.prototype,"target",void 0),G([K],No.prototype,"type",void 0),G([S],No.prototype,"defaultSlottedContent",void 0);var Mo,Lo=(0,i.Z)((function e(){(0,r.Z)(this,e)}));G([K({attribute:"aria-expanded"})],Lo.prototype,"ariaExpanded",void 0),kr(Lo,dr),kr(No,br,Lo);var Zo,zo,Fo,Bo,Vo,Ho=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(No),Uo=Ho.compose({baseName:"link",template:function(e,t){return Dt(Mo||(Mo=(0,it.Z)(['\n <a\n class="control"\n part="control"\n download="','"\n href="','"\n hreflang="','"\n ping="','"\n referrerpolicy="','"\n rel="','"\n target="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-expanded="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n >\n ",'\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </a>\n"])),(function(e){return e.download}),(function(e){return e.href}),(function(e){return e.hreflang}),(function(e){return e.ping}),(function(e){return e.referrerpolicy}),(function(e){return e.rel}),(function(e){return e.target}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaExpanded}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),gr("control"),wr(0,t),Wr("defaultSlottedContent"),_r(0,t))},styles:function(e,t){return Pt(Zo||(Zo=(0,it.Z)(["\n\t"," :host {\n\t\tbackground: transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\toutline: none;\n\t}\n\t.control {\n\t\tbackground: transparent;\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tborder-radius: calc("," * 1px);\n\t\tbox-sizing: border-box;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\t\tfill: inherit;\n\t\tfont-family: inherit;\n\t\theight: inherit;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\ttext-decoration: none;\n\t\tword-break: break-word;\n\t}\n\t.control::-moz-focus-inner {\n\t\tborder: 0;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t}\n\t:host(:hover) .content {\n\t\ttext-decoration: underline;\n\t}\n\t:host(:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t}\n\t:host(:",") .control,\n\t:host(:focus) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n"])),Nt("inline-flex"),rr,vn,bn,_n,ln,dn,nr,nr,ti,ln,pn)},shadowOptions:{delegatesFocus:!0}}),Ko=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}]),n}(vo),qo=Ko.compose({baseName:"option",template:function(e,t){return Dt(zo||(zo=(0,it.Z)(['\n <template\n aria-checked="','"\n aria-disabled="','"\n aria-posinset="','"\n aria-selected="','"\n aria-setsize="','"\n class="','"\n role="option"\n >\n ','\n <span class="content" part="content">\n <slot ',"></slot>\n </span>\n ","\n </template>\n"])),(function(e){return e.ariaChecked}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaPosInSet}),(function(e){return e.ariaSelected}),(function(e){return e.ariaSetSize}),(function(e){return[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")}),wr(0,t),Wr("content"),_r(0,t))},styles:function(e,t){return Pt(Fo||(Fo=(0,it.Z)(["\n\t"," :host {\n\t\tfont-family: var(--body-font);\n\t\tborder-radius: ",";\n\t\tborder: calc("," * 1px) solid transparent;\n\t\tbox-sizing: border-box;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfill: currentcolor;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: 0;\n\t\toutline: none;\n\t\toverflow: hidden;\n\t\tpadding: 0 calc(("," / 2) * 1px)\n\t\t\tcalc(("," / 4) * 1px);\n\t\tuser-select: none;\n\t\twhite-space: nowrap;\n\t}\n\t:host(:",") {\n\t\tborder-color: ",";\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):hover) {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tcolor: ",";\n\t}\n\t:host(:not([aria-selected='true']):active) {\n\t\tbackground: ",";\n\t\tcolor: ",";\n\t}\n\t:host([disabled]) {\n\t\tcursor: ",";\n\t\topacity: ",";\n\t}\n\t:host([disabled]:hover) {\n\t\tbackground-color: inherit;\n\t}\n\t.content {\n\t\tgrid-column-start: 2;\n\t\tjustify-self: start;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n"])),Nt("inline-flex"),dn,ln,mn,bn,_n,fn,fn,ti,pn,$n,mn,$n,ln,pn,Yn,$n,Yn,$n,ln,pn,Yn,$n,mn,ni,hn)}}),$o="horizontal",Yo=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=$o,e.activeindicator=!0,e.showActiveIndicator=!0,e.prevActiveTabIndex=0,e.activeTabIndex=0,e.ticking=!1,e.change=function(){e.$emit("change",e.activetab)},e.isDisabledElement=function(e){return"true"===e.getAttribute("aria-disabled")},e.isFocusableElement=function(t){return!e.isDisabledElement(t)},e.setTabs=function(){var t="gridColumn",n="gridRow",r=e.isHorizontal()?t:n;e.activeTabIndex=e.getActiveIndex(),e.showActiveIndicator=!1,e.tabs.forEach((function(i,o){if("tab"===i.slot){var a=e.activeTabIndex===o&&e.isFocusableElement(i);e.activeindicator&&e.isFocusableElement(i)&&(e.showActiveIndicator=!0);var s=e.tabIds[o],u=e.tabpanelIds[o];i.setAttribute("id",s),i.setAttribute("aria-selected",a?"true":"false"),i.setAttribute("aria-controls",u),i.addEventListener("click",e.handleTabClick),i.addEventListener("keydown",e.handleTabKeyDown),i.setAttribute("tabindex",a?"0":"-1"),a&&(e.activetab=i)}i.style[t]="",i.style[n]="",i.style[r]="".concat(o+1),e.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}))},e.setTabPanels=function(){e.tabpanels.forEach((function(t,n){var r=e.tabIds[n],i=e.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),e.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},e.handleTabClick=function(t){var n=t.currentTarget;1===n.nodeType&&e.isFocusableElement(n)&&(e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=e.tabs.indexOf(n),e.setComponent())},e.handleTabKeyDown=function(t){if(e.isHorizontal())switch(t.key){case Cr:t.preventDefault(),e.adjustBackward(t);break;case Or:t.preventDefault(),e.adjustForward(t)}else switch(t.key){case Sr:t.preventDefault(),e.adjustBackward(t);break;case xr:t.preventDefault(),e.adjustForward(t)}switch(t.key){case Ar:t.preventDefault(),e.adjust(-e.activeTabIndex);break;case Rr:t.preventDefault(),e.adjust(e.tabs.length-e.activeTabIndex-1)}},e.adjustForward=function(t){var n=e.tabs,r=0;for((r=e.activetab?n.indexOf(e.activetab)+1:1)===n.length&&(r=0);r<n.length&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}if(e.activetab&&r===n.indexOf(e.activetab))break;r+1>=n.length?r=0:r+=1}},e.adjustBackward=function(t){var n=e.tabs,r=0;for(r=(r=e.activetab?n.indexOf(e.activetab)-1:0)<0?n.length-1:r;r>=0&&n.length>1;){if(e.isFocusableElement(n[r])){e.moveToTabByIndex(n,r);break}r-1<0?r=n.length-1:r-=1}},e.moveToTabByIndex=function(t,n){var r=t[n];e.activetab=r,e.prevActiveTabIndex=e.activeTabIndex,e.activeTabIndex=n,r.focus(),e.setComponent()},e}return(0,i.Z)(n,[{key:"orientationChanged",value:function(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"activeidChanged",value:function(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((function(t){return t.id===e})),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabsChanged",value:function(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"tabpanelsChanged",value:function(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}},{key:"getActiveIndex",value:function(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}},{key:"getTabIds",value:function(){return this.tabs.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"tab-".concat(ho())}))}},{key:"getTabPanelIds",value:function(){return this.tabpanels.map((function(e){var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"panel-".concat(ho())}))}},{key:"setComponent",value:function(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}},{key:"isHorizontal",value:function(){return this.orientation===$o}},{key:"handleActiveIndicatorPosition",value:function(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}},{key:"animateActiveIndicator",value:function(){var e=this;this.ticking=!0;var t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.activeTabIndex+1);var o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]="".concat(this.prevActiveTabIndex+1);var a=o-i;this.activeIndicatorRef.style.transform="".concat(n,"(").concat(a,"px)"),this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(function(){e.ticking=!1,e.activeIndicatorRef.style[t]="".concat(e.activeTabIndex+1),e.activeIndicatorRef.style.transform="".concat(n,"(0px)"),e.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}},{key:"adjust",value:function(e){var t,n;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(t=this.tabs.length-1,(n=this.activeTabIndex+e)<0?t:n>t?0:n),this.setComponent()}},{key:"focusTab",value:function(){this.tabs[this.activeTabIndex].focus()}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}]),n}(qe);G([K],Yo.prototype,"orientation",void 0),G([K],Yo.prototype,"activeid",void 0),G([S],Yo.prototype,"tabs",void 0),G([S],Yo.prototype,"tabpanels",void 0),G([K({mode:"boolean"})],Yo.prototype,"activeindicator",void 0),G([S],Yo.prototype,"activeIndicatorRef",void 0),G([S],Yo.prototype,"showActiveIndicator",void 0),kr(Yo,br);var Wo,Go=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe);G([K({mode:"boolean"})],Go.prototype,"disabled",void 0);var Qo,Jo,Xo,ea,ta,na,ra,ia=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),oa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.orientation&&(this.orientation=$o),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}]),n}(Yo),aa=oa.compose({baseName:"panels",template:function(e,t){return Dt(Bo||(Bo=(0,it.Z)(['\n <template class="','">\n ','\n <div class="tablist" part="tablist" role="tablist">\n <slot class="tab" name="tab" part="tab" ',"></slot>\n\n ","\n </div>\n ",'\n <div class="tabpanel" part="tabpanel">\n <slot name="tabpanel" ',"></slot>\n </div>\n </template>\n"])),(function(e){return e.orientation}),wr(0,t),Wr("tabs"),Do((function(e){return e.showActiveIndicator}),Dt(Vo||(Vo=(0,it.Z)(["\n <div\n ",'\n class="activeIndicator"\n part="activeIndicator"\n ></div>\n '])),gr("activeIndicatorRef"))),_r(0,t),Wr("tabpanels"))},styles:function(e,t){return Pt(Jo||(Jo=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tcolor: ",";\n\t\tgrid-template-columns: auto 1fr auto;\n\t\tgrid-template-rows: auto 1fr;\n\t\toverflow-x: auto;\n\t}\n\t.tablist {\n\t\tdisplay: grid;\n\t\tgrid-template-rows: auto auto;\n\t\tgrid-template-columns: auto;\n\t\tcolumn-gap: calc("," * 8px);\n\t\tposition: relative;\n\t\twidth: max-content;\n\t\talign-self: end;\n\t\tpadding: calc("," * 1px) calc("," * 1px) 0;\n\t\tbox-sizing: border-box;\n\t}\n\t.start,\n\t.end {\n\t\talign-self: center;\n\t}\n\t.activeIndicator {\n\t\tgrid-row: 2;\n\t\tgrid-column: 1;\n\t\twidth: 100%;\n\t\theight: calc(("," / 4) * 1px);\n\t\tjustify-self: center;\n\t\tbackground: ",";\n\t\tmargin: 0;\n\t\tborder-radius: calc("," * 1px);\n\t}\n\t.activeIndicatorTransition {\n\t\ttransition: transform 0.01s linear;\n\t}\n\t.tabpanel {\n\t\tgrid-row: 2;\n\t\tgrid-column-start: 1;\n\t\tgrid-column-end: 4;\n\t\tposition: relative;\n\t}\n"])),Nt("grid"),vn,bn,_n,mn,fn,fn,fn,fn,ar,dn)}}),sa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}]),n}(Go),ua=sa.compose({baseName:"panel-tab",template:function(e,t){return Dt(Wo||(Wo=(0,it.Z)(['\n <template slot="tab" role="tab" aria-disabled="','">\n <slot></slot>\n </template>\n'])),(function(e){return e.disabled}))},styles:function(e,t){return Pt(Xo||(Xo=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\theight: calc("," * 7px);\n\t\tpadding: calc("," * 1px) 0;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: solid calc("," * 1px) transparent;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tgrid-row: 1;\n\t\tcursor: pointer;\n\t}\n\t:host(:hover) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:active) {\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:hover) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host([aria-selected='true']:active) {\n\t\tbackground: transparent;\n\t\tcolor: ",";\n\t\tfill: currentcolor;\n\t}\n\t:host(:",") {\n\t\toutline: none;\n\t\tborder: solid calc("," * 1px) ",";\n\t}\n\t:host(:focus) {\n\t\toutline: none;\n\t}\n\t::slotted(vscode-badge) {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n"])),Nt("inline-flex"),vn,bn,_n,fn,fn,sr,dn,ln,ar,ar,ar,ar,ar,ti,ln,or,fn)}}),la=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(ia),ca=la.compose({baseName:"panel-view",template:function(e,t){return Dt(Qo||(Qo=(0,it.Z)(['\n <template slot="tabpanel" role="tabpanel">\n <slot></slot>\n </template>\n'])))},styles:function(e,t){return Pt(ea||(ea=(0,it.Z)(["\n\t"," :host {\n\t\tcolor: inherit;\n\t\tbackground-color: transparent;\n\t\tborder: solid calc("," * 1px) transparent;\n\t\tbox-sizing: border-box;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: 10px calc(("," + 2) * 1px);\n\t}\n"])),Nt("flex"),ln,bn,_n,fn)}}),da=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).percentComplete=0,e}return(0,i.Z)(n,[{key:"valueChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"minChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"maxChanged",value:function(){this.$fastController.isConnected&&this.updatePercentComplete()}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.updatePercentComplete()}},{key:"updatePercentComplete",value:function(){var e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,n="number"==typeof this.value?this.value:0,r=t-e;this.percentComplete=0===r?0:Math.fround((n-e)/r*100)}}]),n}(qe);G([K({converter:H})],da.prototype,"value",void 0),G([K({converter:H})],da.prototype,"min",void 0),G([K({converter:H})],da.prototype,"max",void 0),G([K({mode:"boolean"})],da.prototype,"paused",void 0),G([S],da.prototype,"percentComplete",void 0);var fa,ha,pa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}},{key:"attributeChangedCallback",value:function(e,t,n){"value"===e&&this.removeAttribute("value")}}]),n}(da),va=pa.compose({baseName:"progress-ring",template:function(e,t){return Dt(ta||(ta=(0,it.Z)(['\n <template\n role="progressbar"\n aria-valuenow="','"\n aria-valuemin="','"\n aria-valuemax="','"\n class="','"\n >\n ',"\n </template>\n"])),(function(e){return e.value}),(function(e){return e.min}),(function(e){return e.max}),(function(e){return e.paused?"paused":""}),Do((function(e){return"number"==typeof e.value}),Dt(na||(na=(0,it.Z)(['\n <svg\n class="progress"\n part="progress"\n viewBox="0 0 16 16"\n slot="determinate"\n >\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="determinate"\n part="determinate"\n style="stroke-dasharray: ',"px ",'px"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '])),(function(e){return 44*e.percentComplete/100}),44),Dt(ra||(ra=(0,it.Z)(['\n <slot name="indeterminate" slot="indeterminate">\n ',"\n </slot>\n "])),t.indeterminateIndicator||"")))},styles:function(e,t){return Pt(fa||(fa=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\toutline: none;\n\t\theight: calc("," * 7px);\n\t\twidth: calc("," * 7px);\n\t\tmargin: 0;\n\t}\n\t.progress {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t.background {\n\t\tfill: none;\n\t\tstroke: transparent;\n\t\tstroke-width: calc("," / 2 * 1px);\n\t}\n\t.indeterminate-indicator-1 {\n\t\tfill: none;\n\t\tstroke: ",";\n\t\tstroke-width: calc("," / 2 * 1px);\n\t\tstroke-linecap: square;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: all 0.2s ease-in-out;\n\t\tanimation: spin-infinite 2s linear infinite;\n\t}\n\t@keyframes spin-infinite {\n\t\t0% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\t50% {\n\t\t\tstroke-dasharray: 21.99px 21.99px;\n\t\t\ttransform: rotate(450deg);\n\t\t}\n\t\t100% {\n\t\t\tstroke-dasharray: 0.01px 43.97px;\n\t\t\ttransform: rotate(1080deg);\n\t\t}\n\t}\n"])),Nt("flex"),fn,fn,fn,ir,fn)},indeterminateIndicator:'\n\t\t<svg class="progress" part="progress" viewBox="0 0 16 16">\n\t\t\t<circle\n\t\t\t\tclass="background"\n\t\t\t\tpart="background"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t\t<circle\n\t\t\t\tclass="indeterminate-indicator-1"\n\t\t\t\tpart="indeterminate-indicator-1"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t</svg>\n\t'}),ma=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),ga=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(zr(ma)),ya=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.call(this)).initialValue="on",e.keypressHandler=function(t){if(t.key!==Dr)return!0;e.checked||e.readOnly||(e.checked=!0)},e.proxy.setAttribute("type","radio"),e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}},{key:"defaultCheckedChanged",value:function(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}},{key:"connectedCallback",value:function(){var e,t;D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}},{key:"isInsideRadioGroup",value:function(){return null!==this.closest("[role=radiogroup]")}},{key:"clickHandler",value:function(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}]),n}(ga);G([K({attribute:"readonly",mode:"boolean"})],ya.prototype,"readOnly",void 0),G([S],ya.prototype,"name",void 0),G([S],ya.prototype,"defaultSlottedNodes",void 0);var ba,_a,wa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}]),n}(ya),ka=wa.compose({baseName:"radio",template:function(e,t){return Dt(ha||(ha=(0,it.Z)(['\n <template\n role="radio"\n class="'," ",'"\n aria-checked="','"\n aria-required="','"\n aria-disabled="','"\n aria-readonly="','"\n @keypress="','"\n @click="','"\n >\n <div part="control" class="control">\n <slot name="checked-indicator">\n ','\n </slot>\n </div>\n <label\n part="label"\n class="','"\n >\n <slot ',"></slot>\n </label>\n </template>\n"])),(function(e){return e.checked?"checked":""}),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.checked}),(function(e){return e.required}),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.keypressHandler(t.event)}),(function(e,t){return e.clickHandler(t.event)}),t.checkedIndicator||"",(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr("defaultSlottedNodes"))},styles:function(e,t){return Pt(ba||(ba=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: center;\n\t\tflex-direction: row;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t\toutline: none;\n\t\tposition: relative;\n\t\ttransition: all 0.2s ease-in-out;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tborder: calc("," * 1px) solid ",";\n\t\tbox-sizing: border-box;\n\t\tcursor: pointer;\n\t\theight: calc("," * 4px);\n\t\tposition: relative;\n\t\toutline: none;\n\t\twidth: calc("," * 4px);\n\t}\n\t.label {\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-family: ",";\n\t\tmargin-inline-end: calc("," * 2px + 2px);\n\t\tpadding-inline-start: calc("," * 2px + 2px);\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.control,\n\t.checked-indicator {\n\t\tflex-shrink: 0;\n\t}\n\t.checked-indicator {\n\t\tbackground: ",";\n\t\tborder-radius: 999px;\n\t\tdisplay: inline-block;\n\t\tinset: calc("," * 1px);\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t\tposition: absolute;\n\t}\n\t:host(:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:",") .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']) .control {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:hover {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([aria-checked='true']:not([disabled])) .control:active {\n\t\tbackground: ",";\n\t\tborder: calc("," * 1px) solid ",';\n\t}\n\t:host([aria-checked="true"]:',":not([disabled])) .control {\n\t\tborder: calc("," * 1px) solid ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([aria-checked='true']) .checked-indicator {\n\t\topacity: 1;\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n"])),Nt("inline-flex"),bn,_n,fn,Un,ln,Kn,fn,fn,mn,vn,fn,fn,mn,fn,Un,Kn,Un,pn,ti,ln,pn,Un,ln,Kn,Un,ln,Kn,Un,ln,pn,ti,ln,pn,ni,hn)},checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});!function(e){e.ltr="ltr",e.rtl="rtl"}(_a||(_a={}));var xa,Ca=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).orientation=ao,e.radioChangeHandler=function(t){var n=t.target;n.checked&&(e.slottedRadioButtons.forEach((function(t){t!==n&&(t.checked=!1,e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))})),e.selectedRadio=n,e.value=n.value,n.setAttribute("tabindex","0"),e.focusedRadio=n),t.stopPropagation()},e.moveToRadioByIndex=function(t,n){var r=t[n];e.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?e.slottedRadioButtons.forEach((function(e){e!==r&&e.setAttribute("tabindex","-1")})):(r.checked=!0,e.selectedRadio=r)),e.focusedRadio=r,r.focus()},e.moveRightOffGroup=function(){var t;null===(t=e.nextElementSibling)||void 0===t||t.focus()},e.moveLeftOffGroup=function(){var t;null===(t=e.previousElementSibling)||void 0===t||t.focus()},e.focusOutHandler=function(t){var n=e.slottedRadioButtons,r=t.target,i=null!==r?n.indexOf(r):0,o=e.focusedRadio?n.indexOf(e.focusedRadio):-1;return(0===o&&i===o||o===n.length-1&&o===i)&&(e.selectedRadio?(e.focusedRadio=e.selectedRadio,e.isInsideFoundationToolbar||(e.selectedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.selectedRadio&&t.setAttribute("tabindex","-1")})))):(e.focusedRadio=n[0],e.focusedRadio.setAttribute("tabindex","0"),n.forEach((function(t){t!==e.focusedRadio&&t.setAttribute("tabindex","-1")})))),!0},e.clickHandler=function(t){var n=t.target;if(n){var r=e.slottedRadioButtons;n.checked||0===r.indexOf(n)?(n.setAttribute("tabindex","0"),e.selectedRadio=n):(n.setAttribute("tabindex","-1"),e.selectedRadio=null),e.focusedRadio=n}t.preventDefault()},e.shouldMoveOffGroupToTheRight=function(t,n,r){return t===n.length&&e.isInsideToolbar&&r===Or},e.shouldMoveOffGroupToTheLeft=function(t,n){return(e.focusedRadio?t.indexOf(e.focusedRadio)-1:0)<0&&e.isInsideToolbar&&n===Cr},e.checkFocusedRadio=function(){null===e.focusedRadio||e.focusedRadio.readOnly||e.focusedRadio.checked||(e.focusedRadio.checked=!0,e.focusedRadio.setAttribute("tabindex","0"),e.focusedRadio.focus(),e.selectedRadio=e.focusedRadio)},e.moveRight=function(t){var n=e.slottedRadioButtons,r=0;if(r=e.focusedRadio?n.indexOf(e.focusedRadio)+1:1,e.shouldMoveOffGroupToTheRight(r,n,t.key))e.moveRightOffGroup();else for(r===n.length&&(r=0);r<n.length&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;if(r+1>=n.length){if(e.isInsideToolbar)break;r=0}else r+=1}},e.moveLeft=function(t){var n=e.slottedRadioButtons,r=0;if(r=(r=e.focusedRadio?n.indexOf(e.focusedRadio)-1:0)<0?n.length-1:r,e.shouldMoveOffGroupToTheLeft(n,t.key))e.moveLeftOffGroup();else for(;r>=0&&n.length>1;){if(!n[r].disabled){e.moveToRadioByIndex(n,r);break}if(e.focusedRadio&&r===n.indexOf(e.focusedRadio))break;r-1<0?r=n.length-1:r-=1}},e.keydownHandler=function(t){var n=t.key;if(n in Ir&&e.isInsideFoundationToolbar)return!0;switch(n){case Er:e.checkFocusedRadio();break;case Or:case xr:e.direction===_a.ltr?e.moveRight(t):e.moveLeft(t);break;case Cr:case Sr:e.direction===_a.ltr?e.moveLeft(t):e.moveRight(t);break;default:return!0}},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.readOnly?t.readOnly=!0:t.readOnly=!1}))}},{key:"disabledChanged",value:function(){var e=this;void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){e.disabled?t.disabled=!0:t.disabled=!1}))}},{key:"nameChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.setAttribute("name",e.name)}))}},{key:"valueChanged",value:function(){var e=this;this.slottedRadioButtons&&this.slottedRadioButtons.forEach((function(t){t.value===e.value&&(t.checked=!0,e.selectedRadio=t)})),this.$emit("change")}},{key:"slottedRadioButtonsChanged",value:function(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}},{key:"parentToolbar",get:function(){return this.closest('[role="toolbar"]')}},{key:"isInsideToolbar",get:function(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}},{key:"isInsideFoundationToolbar",get:function(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}},{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.direction=function(e){var t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?_a.rtl:_a.ltr}(this),this.setupRadioButtons()}},{key:"disconnectedCallback",value:function(){var e=this;this.slottedRadioButtons.forEach((function(t){t.removeEventListener("change",e.radioChangeHandler)}))}},{key:"setupRadioButtons",value:function(){var e=this,t=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),n=t?t.length:0;n>1&&(t[n-1].checked=!0);var r=!1;if(this.slottedRadioButtons.forEach((function(t){void 0!==e.name&&t.setAttribute("name",e.name),e.disabled&&(t.disabled=!0),e.readOnly&&(t.readOnly=!0),e.value&&e.value===t.value?(e.selectedRadio=t,e.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),r=!0):(e.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",e.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){var i=this.slottedRadioButtons.filter((function(e){return e.hasAttribute("checked")})),o=null!==i?i.length:0;if(o>0&&!r){var a=i[o-1];a.checked=!0,this.focusedRadio=a,a.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}]),n}(qe);G([K({attribute:"readonly",mode:"boolean"})],Ca.prototype,"readOnly",void 0),G([K({attribute:"disabled",mode:"boolean"})],Ca.prototype,"disabled",void 0),G([K],Ca.prototype,"name",void 0),G([K],Ca.prototype,"value",void 0),G([K],Ca.prototype,"orientation",void 0),G([S],Ca.prototype,"childItems",void 0),G([S],Ca.prototype,"slottedRadioButtons",void 0);var Oa,Sa,Ea=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector("label");if(e){var t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}]),n}(Ca),Ta=Ea.compose({baseName:"radio-group",template:function(e,t){return Dt(xa||(xa=(0,it.Z)(['\n <template\n role="radiogroup"\n aria-disabled="','"\n aria-readonly="','"\n @click="','"\n @keydown="','"\n @focusout="','"\n >\n <slot name="label"></slot>\n <div\n class="positioning-region ','"\n part="positioning-region"\n >\n <slot\n ',"\n ></slot>\n </div>\n </template>\n"])),(function(e){return e.disabled}),(function(e){return e.readOnly}),(function(e,t){return e.clickHandler(t.event)}),(function(e,t){return e.keydownHandler(t.event)}),(function(e,t){return e.focusOutHandler(t.event)}),(function(e){return e.orientation===ao?"horizontal":"vertical"}),Wr({property:"slottedRadioButtons",filter:Ur("[role=radio]")}))},styles:function(e,t){return Pt(Oa||(Oa=(0,it.Z)(["\n\t"," :host {\n\t\talign-items: flex-start;\n\t\tmargin: calc("," * 1px) 0;\n\t\tflex-direction: column;\n\t}\n\t.positioning-region {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t}\n\t:host([orientation='vertical']) .positioning-region {\n\t\tflex-direction: column;\n\t}\n\t:host([orientation='horizontal']) .positioning-region {\n\t\tflex-direction: row;\n\t}\n\t::slotted([slot='label']) {\n\t\tcolor: ",";\n\t\tfont-size: ",";\n\t\tmargin: calc("," * 1px) 0;\n\t}\n"])),Nt("flex"),fn,mn,bn,fn)}}),Aa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.circular&&(this.circular=!1)}}]),n}(rt),Ra=Aa.compose({baseName:"tag",template:jt,styles:function(e,t){return Pt(Sa||(Sa=(0,it.Z)(["\n\t"," :host {\n\t\tbox-sizing: border-box;\n\t\tfont-family: ",";\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control {\n\t\tbackground-color: ",";\n\t\tborder: calc("," * 1px) solid ",";\n\t\tborder-radius: ",";\n\t\tcolor: ",";\n\t\tpadding: calc("," * 0.5px) calc("," * 1px);\n\t\ttext-transform: uppercase;\n\t}\n"])),Nt("inline-block"),vn,wn,kn,Tn,ln,Rn,ur,An,fn,fn)}}),Da=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),ja=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("input"),e}return(0,i.Z)(n)}(Zr(Da)),Ia=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).type="text",e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}},{key:"placeholderChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}},{key:"typeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}},{key:"listChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}},{key:"patternChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}},{key:"sizeChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"connectedCallback",value:function(){var e=this;D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&k.queueUpdate((function(){e.focus()}))}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleTextInput",value:function(){this.value=this.control.value}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){D((0,R.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(ja);G([K({attribute:"readonly",mode:"boolean"})],Ia.prototype,"readOnly",void 0),G([K({mode:"boolean"})],Ia.prototype,"autofocus",void 0),G([K],Ia.prototype,"placeholder",void 0),G([K],Ia.prototype,"type",void 0),G([K],Ia.prototype,"list",void 0),G([K({converter:H})],Ia.prototype,"maxlength",void 0),G([K({converter:H})],Ia.prototype,"minlength",void 0),G([K],Ia.prototype,"pattern",void 0),G([K({converter:H})],Ia.prototype,"size",void 0),G([K({mode:"boolean"})],Ia.prototype,"spellcheck",void 0),G([S],Ia.prototype,"defaultSlottedNodes",void 0);var Pa=(0,i.Z)((function e(){(0,r.Z)(this,e)}));kr(Pa,dr),kr(Ia,br,Pa);var Na,Ma=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(qe),La=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).proxy=document.createElement("textarea"),e}return(0,i.Z)(n)}(Zr(Ma)),Za="none",za=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).resize=Za,e.cols=20,e.handleTextInput=function(){e.value=e.control.value},e}return(0,i.Z)(n,[{key:"readOnlyChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}},{key:"autofocusChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}},{key:"listChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}},{key:"maxlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}},{key:"minlengthChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}},{key:"spellcheckChanged",value:function(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}},{key:"select",value:function(){this.control.select(),this.$emit("select")}},{key:"handleChange",value:function(){this.$emit("change")}},{key:"validate",value:function(){D((0,R.Z)(n.prototype),"validate",this).call(this,this.control)}}]),n}(La);G([K({mode:"boolean"})],za.prototype,"readOnly",void 0),G([K],za.prototype,"resize",void 0),G([K({mode:"boolean"})],za.prototype,"autofocus",void 0),G([K({attribute:"form"})],za.prototype,"formId",void 0),G([K],za.prototype,"list",void 0),G([K({converter:H})],za.prototype,"maxlength",void 0),G([K({converter:H})],za.prototype,"minlength",void 0),G([K],za.prototype,"name",void 0),G([K],za.prototype,"placeholder",void 0),G([K({converter:H,mode:"fromView"})],za.prototype,"cols",void 0),G([K({converter:H,mode:"fromView"})],za.prototype,"rows",void 0),G([K({mode:"boolean"})],za.prototype,"spellcheck",void 0),G([S],za.prototype,"defaultSlottedNodes",void 0),kr(za,Pa);var Fa,Ba,Va=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}]),n}(za),Ha=Va.compose({baseName:"text-area",template:function(e,t){return Dt(Na||(Na=(0,it.Z)(['\n <template\n class="\n ',"\n ",'"\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot ','></slot>\n </label>\n <textarea\n part="control"\n class="control"\n id="control"\n ?autofocus="','"\n cols="','"\n ?disabled="','"\n form="','"\n list="','"\n maxlength="','"\n minlength="','"\n name="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n rows="','"\n ?spellcheck="','"\n :value="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n @input="','"\n @change="','"\n ',"\n ></textarea>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.resize!==Za?"resize-".concat(e.resize):""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr("defaultSlottedNodes"),(function(e){return e.autofocus}),(function(e){return e.cols}),(function(e){return e.disabled}),(function(e){return e.form}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.name}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.rows}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),(function(e,t){return e.handleTextInput()}),(function(e){return e.handleChange()}),gr("control"))},styles:function(e,t){return Pt(Fa||(Fa=(0,it.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.control {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\tfont: inherit;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tpadding: calc("," * 2px + 1px);\n\t\twidth: 100%;\n\t\tmin-width: ",";\n\t\tresize: none;\n\t}\n\t.control:hover:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:active:enabled {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.control::-webkit-scrollbar {\n\t\twidth: ",";\n\t\theight: ",";\n\t}\n\t.control::-webkit-scrollbar-corner {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:hover {\n\t\tbackground: ",";\n\t}\n\t.control::-webkit-scrollbar-thumb:active {\n\t\tbackground: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .control {\n\t\tborder-color: ",";\n\t}\n\t:host([resize='both']) .control {\n\t\tresize: both;\n\t}\n\t:host([resize='horizontal']) .control {\n\t\tresize: horizontal;\n\t}\n\t:host([resize='vertical']) .control {\n\t\tresize: vertical;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Nt("inline-block"),vn,tr,er,dn,ln,Jn,bn,_n,fn,yn,er,Jn,er,pn,ti,xn,Cn,er,On,Sn,En,pn,mn,bn,_n,ni,hn,Jn)},shadowOptions:{delegatesFocus:!0}});function Ua(e,t,n){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}var Ka,qa=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"connectedCallback",value:function(){D((0,R.Z)(n.prototype),"connectedCallback",this).call(this),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}]),n}(Ia),$a=qa.compose({baseName:"text-field",template:function(e,t){return Dt(Ba||(Ba=(0,it.Z)(['\n <template\n class="\n ','\n "\n >\n <label\n part="label"\n for="control"\n class="','"\n >\n <slot\n ','\n ></slot>\n </label>\n <div class="root" part="root">\n ','\n <input\n class="control"\n part="control"\n id="control"\n @input="','"\n @change="','"\n ?autofocus="','"\n ?disabled="','"\n list="','"\n maxlength="','"\n minlength="','"\n pattern="','"\n placeholder="','"\n ?readonly="','"\n ?required="','"\n size="','"\n ?spellcheck="','"\n :value="','"\n type="','"\n aria-atomic="','"\n aria-busy="','"\n aria-controls="','"\n aria-current="','"\n aria-describedby="','"\n aria-details="','"\n aria-disabled="','"\n aria-errormessage="','"\n aria-flowto="','"\n aria-haspopup="','"\n aria-hidden="','"\n aria-invalid="','"\n aria-keyshortcuts="','"\n aria-label="','"\n aria-labelledby="','"\n aria-live="','"\n aria-owns="','"\n aria-relevant="','"\n aria-roledescription="','"\n ',"\n />\n ","\n </div>\n </template>\n"])),(function(e){return e.readOnly?"readonly":""}),(function(e){return e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}),Wr({property:"defaultSlottedNodes",filter:Ua}),wr(0,t),(function(e){return e.handleTextInput()}),(function(e){return e.handleChange()}),(function(e){return e.autofocus}),(function(e){return e.disabled}),(function(e){return e.list}),(function(e){return e.maxlength}),(function(e){return e.minlength}),(function(e){return e.pattern}),(function(e){return e.placeholder}),(function(e){return e.readOnly}),(function(e){return e.required}),(function(e){return e.size}),(function(e){return e.spellcheck}),(function(e){return e.value}),(function(e){return e.type}),(function(e){return e.ariaAtomic}),(function(e){return e.ariaBusy}),(function(e){return e.ariaControls}),(function(e){return e.ariaCurrent}),(function(e){return e.ariaDescribedby}),(function(e){return e.ariaDetails}),(function(e){return e.ariaDisabled}),(function(e){return e.ariaErrormessage}),(function(e){return e.ariaFlowto}),(function(e){return e.ariaHaspopup}),(function(e){return e.ariaHidden}),(function(e){return e.ariaInvalid}),(function(e){return e.ariaKeyshortcuts}),(function(e){return e.ariaLabel}),(function(e){return e.ariaLabelledby}),(function(e){return e.ariaLive}),(function(e){return e.ariaOwns}),(function(e){return e.ariaRelevant}),(function(e){return e.ariaRoledescription}),gr("control"),_r(0,t))},styles:function(e,t){return Pt(Ka||(Ka=(0,it.Z)(["\n\t"," :host {\n\t\tfont-family: ",";\n\t\toutline: none;\n\t\tuser-select: none;\n\t}\n\t.root {\n\t\tbox-sizing: border-box;\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tcolor: ",";\n\t\tbackground: ",";\n\t\tborder-radius: calc("," * 1px);\n\t\tborder: calc("," * 1px) solid ",";\n\t\theight: calc("," * 1px);\n\t\tmin-width: ",";\n\t}\n\t.control {\n\t\t-webkit-appearance: none;\n\t\tfont: inherit;\n\t\tbackground: transparent;\n\t\tborder: 0;\n\t\tcolor: inherit;\n\t\theight: calc(100% - ("," * 1px));\n\t\twidth: 100%;\n\t\tmargin-top: auto;\n\t\tmargin-bottom: auto;\n\t\tborder: none;\n\t\tpadding: 0 calc("," * 2px + 1px);\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t}\n\t.control:hover,\n\t.control:",",\n\t.control:disabled,\n\t.control:active {\n\t\toutline: none;\n\t}\n\t.label {\n\t\tdisplay: block;\n\t\tcolor: ",";\n\t\tcursor: pointer;\n\t\tfont-size: ",";\n\t\tline-height: ",";\n\t\tmargin-bottom: 2px;\n\t}\n\t.label__hidden {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\t.start,\n\t.end {\n\t\tdisplay: flex;\n\t\tmargin: auto;\n\t\tfill: currentcolor;\n\t}\n\t::slotted(svg),\n\t::slotted(span) {\n\t\twidth: calc("," * 4px);\n\t\theight: calc("," * 4px);\n\t}\n\t.start {\n\t\tmargin-inline-start: calc("," * 2px);\n\t}\n\t.end {\n\t\tmargin-inline-end: calc("," * 2px);\n\t}\n\t:host(:hover:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:active:not([disabled])) .root {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t}\n\t:host(:focus-within:not([disabled])) .root {\n\t\tborder-color: ",";\n\t}\n\t:host([disabled]) .label,\n\t:host([readonly]) .label,\n\t:host([readonly]) .control,\n\t:host([disabled]) .control {\n\t\tcursor: ",";\n\t}\n\t:host([disabled]) {\n\t\topacity: ",";\n\t}\n\t:host([disabled]) .control {\n\t\tborder-color: ",";\n\t}\n"])),Nt("inline-block"),vn,tr,er,dn,ln,Jn,gn,yn,fn,fn,bn,_n,ti,mn,bn,_n,fn,fn,fn,fn,er,Jn,er,pn,pn,ni,hn,Jn)},shadowOptions:{delegatesFocus:!0}}),Ya=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Wa=new Map,Ga=new Map,Qa=null,Ja=ve.createInterface((function(e){return e.cachedCallback((function(e){return null===Qa&&(Qa=new es(null,e)),Qa}))})),Xa=Object.freeze({tagFor:function(e){return Ga.get(e)},responsibleFor:function(e){return e.$$designSystem$$||ve.findResponsibleContainer(e).get(Ja)},getOrCreate:function(e){if(!e)return null===Qa&&(Qa=ve.getOrCreateDOMContainer().get(Ja)),Qa;var t=e.$$designSystem$$;if(t)return t;var n=ve.getOrCreateDOMContainer(e);if(n.has(Ja,!1))return n.get(Ja);var r=new es(e,n);return n.register(Pe.instance(Ja,r)),r}}),es=function(){function e(t,n){(0,r.Z)(this,e),this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=function(){return Ya.definitionCallbackOnly},null!==t&&(t.$$designSystem$$=this)}return(0,i.Z)(e,[{key:"withPrefix",value:function(e){return this.prefix=e,this}},{key:"withShadowRootMode",value:function(e){return this.shadowRootMode=e,this}},{key:"withElementDisambiguation",value:function(e){return this.disambiguate=e,this}},{key:"withDesignTokenRoot",value:function(e){return this.designTokenRoot=e,this}},{key:"register",value:function(){var e=this.container,t=[],n=this.disambiguate,s=this.shadowRootMode,u={elementPrefix:this.prefix,tryDefineElement:function(u,l,c){for(var d=function(e,t,n){return"string"==typeof e?{name:e,type:t,callback:n}:e}(u,l,c),f=d.name,h=d.callback,p=d.baseClass,v=d.type,m=f,g=Wa.get(m),y=!0;g;){var b=n(m,v,g);switch(b){case Ya.ignoreDuplicate:return;case Ya.definitionCallbackOnly:y=!1,g=void 0;break;default:m=b,g=Wa.get(m)}}y&&((Ga.has(v)||v===qe)&&(v=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n)}(v)),Wa.set(m,v),Ga.set(v,m),p&&Ga.set(p,m)),t.push(new ts(e,m,v,s,h,y))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&tn.registerRoot(this.designTokenRoot));for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];e.registerWithContext.apply(e,[u].concat(c));for(var f=0,h=t;f<h.length;f++){var p=h[f];p.callback(p),p.willDefine&&null!==p.definition&&p.definition.define()}return this}}]),e}(),ts=function(){function e(t,n,i,o,a,s){(0,r.Z)(this,e),this.container=t,this.name=n,this.type=i,this.shadowRootMode=o,this.callback=a,this.willDefine=s,this.definition=null}return(0,i.Z)(e,[{key:"definePresentation",value:function(e){Ue.define(this.name,e,this.container)}},{key:"defineElement",value:function(e){this.definition=new W(this.type,Object.assign(Object.assign({},e),{name:this.name}))}},{key:"tagFor",value:function(e){return Xa.tagFor(e)}}]),e}(),ns=function(e,t){var n=[],u={register:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.forEach((function(t){return t.register.apply(t,[e].concat(r))})),n=[]}};return{wrap:function(u){var l,c,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u instanceof Ye&&(t?t.register(u):n.push(u),u=u.type);var f=Je.get(u);if(f){var h=f.get(null!==(l=d.name)&&void 0!==l?l:Qe);if(h)return h}var p=function(t){(0,o.Z)(l,t);var n=(0,a.Z)(l);function l(){var e;return(0,r.Z)(this,l),(e=n.apply(this,arguments))._element=null,e}return(0,i.Z)(l,[{key:"_updateElement",value:function(e){var t=this._element;if(null!==t){var n=this.props,r=e||Ge,i=et(d);for(var o in this._elementProps){var a=n[o],s=i[o];if(void 0===s)t[o]=a;else{var u=r[o];if(a===u)continue;void 0!==u&&t.removeEventListener(s,u),void 0!==a&&t.addEventListener(s,a)}}}}},{key:"componentDidMount",value:function(){this._updateElement()}},{key:"componentDidUpdate",value:function(e){this._updateElement(e)}},{key:"render",value:function(){var t=this,n=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===n||(this._ref=function(e){null===t._element&&(t._element=e),null!==n&&function(e,t){"function"==typeof e?e(t):e.current=t}(n,e),t._userRef=n});var r={ref:this._ref},i=this._elementProps={},o=function(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(et(t))));else{var n=new Set(Object.keys(et(t))),r=O.getAccessors(e.prototype);if(r.length>0){var i,o=(0,s.Z)(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;tt(e,t,a.name)&&n.add(a.name)}}catch(e){o.e(e)}finally{o.f()}}else for(var u in e.prototype)!(u in HTMLElement.prototype)&&tt(e,t,u)&&n.add(u);t.keys=n}return t.keys}(u,d),a=this.props;for(var l in a){var c=a[l];o.has(l)?i[l]=c:r["className"===l?"class":l]=c}return e.createElement(Xe(u,d),r)}}]),l}(e.Component),v=e.forwardRef((function(t,n){return e.createElement(p,Object.assign(Object.assign({},t),{__forwardedRef:n}),null==t?void 0:t.children)}));return Je.has(u)||Je.set(u,new Map),Je.get(u).set(null!==(c=d.name)&&void 0!==c?c:Qe,v),v},registry:u}}(nt,Xa.getOrCreate(void 0).withPrefix("vscode")),rs=ns.wrap,is=(rs(cr(),{name:"vscode-badge"}),rs(li(),{name:"vscode-button"})),os=rs(vi(),{name:"vscode-checkbox",events:{onChange:"change"}}),as=(rs(to(),{name:"vscode-data-grid"}),rs(oo(),{name:"vscode-data-grid-cell"}),rs(ro(),{name:"vscode-data-grid-row"}),rs(co(),{name:"vscode-divider"})),ss=rs(Po(),{name:"vscode-dropdown",events:{onChange:"change"}}),us=rs(Uo(),{name:"vscode-link"}),ls=rs(qo(),{name:"vscode-option"}),cs=(rs(aa(),{name:"vscode-panels",events:{onChange:"change"}}),rs(ua(),{name:"vscode-panel-tab"}),rs(ca(),{name:"vscode-panel-view"}),rs(va(),{name:"vscode-progress-ring"}),rs(ka(),{name:"vscode-radio",events:{onChange:"change"}})),ds=rs(Ta(),{name:"vscode-radio-group",events:{onChange:"change"}}),fs=(rs(Ra(),{name:"vscode-tag"}),rs(Ha(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}}),rs($a(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{274:"dce911b9",697:"e9243bfd"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+".74a3708d.chunk.css"},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="GraphiteInteractive:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e=function(e){return new Promise((function(t,r){var i=n.miniCssF(e),o=n.p+i;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}}(i,o))return t();!function(e,t,n,r){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=function(o){if(i.onerror=i.onload=null,"load"===o.type)n();else{var a=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");u.code="CSS_CHUNK_LOAD_FAILED",u.type=a,u.request=s,i.parentNode.removeChild(i),r(u)}},i.href=t,document.head.appendChild(i)}(e,o,t,r)}))},t={179:0};n.f.miniCss=function(n,r){t[n]?r.push(t[n]):0!==t[n]&&{274:1}[n]&&r.push(t[n]=e(n).then((function(){t[n]=0}),(function(e){throw delete t[n],e})))}}(),function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);u&&u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkGraphiteInteractive=self.webpackChunkGraphiteInteractive||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),n.nc=void 0;var r={};return function(){"use strict";n.r(r);var e=n(184),t=n(2791),i=n(1250),o=n(1072),a=n(32),s=n(88),u=n(1828),l=new s.Tracker((function(e){u.H.postMessage({type:"track",data:e})}),{});function c(t){var n=t.title,r=t.description,i=t.buttons;return(0,e.jsxs)("div",{className:"banner-notice",children:[(0,e.jsx)("div",{className:"banner-notice-left",children:(0,e.jsxs)("div",{className:"banner-notice-content",children:[(0,e.jsx)("span",{className:"banner-notice-title",children:n}),(0,e.jsx)("span",{className:"banner-notice-byline",children:r})]})}),i?(0,e.jsx)("div",{className:"error-notice-buttons",children:i}):null]})}window.globalGtiClientTracker=l;var d=n(885),f=n(7757),h=n.n(f),p=n(4098);function v(e){return function(t){y.set({x:t.clientX,y:t.clientY,items:e()}),t.preventDefault(),t.stopPropagation()}}var m,g,y=p.LO.box(null,{deep:!1}),b=(0,a.Pi)((function(){var n=this,r=y.get(),i=(0,t.useState)(null),o=(0,d.Z)(i,2),a=o[0],u=o[1],l=(0,t.useRef)(null);if((0,t.useEffect)((function(){if(null!=r){var e=function(e){"keyup"!==e.type?"click"===e.type&&(0,s.findParentWithClassName)(e.target,"context-menu-container")||y.set(null):"Escape"===e.key&&y.set(null)};return window.addEventListener("click",e,!0),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("click",e,!0),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[r]),null==r)return null;var c,f=r.y>window.innerHeight/2?"bottom":"top",p=r.x>window.innerWidth/2?"right":"left";return c="top"===f?"left"===p?{top:r.y+10,left:r.x+-5}:{top:r.y+10,right:window.innerWidth-(r.x+-5)}:"left"===p?{bottom:window.innerHeight-(r.y-10),left:r.x+-5}:{bottom:window.innerHeight-(r.y-10),right:window.innerWidth-(r.x+-5)},(0,e.jsxs)("div",{ref:l,className:"context-menu-container"+(null!=a?" context-menu-fadeout":""),"data-testid":"context-menu-container",style:c,children:["top"===f?(0,e.jsx)("div",{className:"context-menu-arrow-top context-menu-arrow-".concat(p)}):null,(0,e.jsx)("div",{className:"context-menu",children:r.items.map((function(t,r){return"divider"===t.type?(0,e.jsx)("div",{className:"context-menu-divider"},r):(0,e.jsx)("div",{onClick:null!=a?void 0:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(n,0,void 0,h().mark((function e(){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(n=t.onClick)||void 0===n?void 0:n.call(t);case 2:u(r),setTimeout((function(){y.set(null),u(null)}),300);case 4:case"end":return e.stop()}}),e)})))},className:"context-menu-item"+(null!=a&&a===r?" context-menu-item-selected":""),children:t.label},r)}))}),"bottom"===f?(0,e.jsx)("div",{className:"context-menu-arrow-bottom context-menu-arrow-".concat(p)}):null]})})),_=n(6815),w=p.LO.box(500),k=n(6635),x=(0,a.Pi)((function(t){var n=t.children,r=(0,k.F)();return(0,e.jsx)("div",{className:"gti-root ".concat(r.colorScheme,"-theme"),children:n})})),C=n(3144),O=n(5671),S=n(136),E=n(3668);!function(e){e[e.NONE=0]="NONE",e[e.SHIFT=1]="SHIFT",e[e.CTRL=2]="CTRL",e[e.ALT=4]="ALT",e[e.CMD=8]="CMD"}(m||(m={})),function(e){e[e.Escape=27]="Escape",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.A=65]="A",e[e.C=67]="C",e[e.D=68]="D",e[e.N=78]="N",e[e.P=80]="P",e[e.R=82]="R",e[e.Period=190]="Period",e[e.SingleQuote=222]="SingleQuote",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow"}(g||(g={}));var T=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;(0,O.Z)(this,n),r=t.call(this);for(var i=new Set,o=0,a=Object.values(e);o<a.length;o++){var s=a[o],u=(0,d.Z)(s,2)[1];i.add(u)}return r.keydownListener=function(t){if(i.has(t.keyCode)&&!function(e){return null!=e.target&&/(vscode-text-area|vscode-text-field|textarea|input)/i.test(e.target.tagName)}(t))for(var n=(t.shiftKey?m.SHIFT:0)|(t.ctrlKey?m.CTRL:0)|(t.altKey?m.ALT:0)|(t.metaKey?m.CMD:0),o=0,a=Object.entries(e);o<a.length;o++){var s=(0,d.Z)(a[o],2),u=s[0],l=s[1],c=(0,d.Z)(l,2),f=c[0];if(c[1]===t.keyCode&&f===n){r.dispatchEvent(new Event(u));break}}},document.body.addEventListener("keydown",r.keydownListener),r}return(0,C.Z)(n)}(window.EventTarget),A=function(n){var r=new T(n),i=(0,t.createContext)(r);return[function(t){var n=t.children;return(0,e.jsx)(i.Provider,{value:r,children:n})},function(e,n){var r=(0,t.useContext)(i);(0,t.useEffect)((function(){return r.addEventListener(e,n),function(){return r.removeEventListener(e,n)}}),[e,n,r])},function(e){return r.dispatchEvent(new Event(e))}]}({ToggleSidebar:[m.CMD,g.Period],OpenUncommittedChangesComparisonView:[m.CMD,g.SingleQuote],OpenHeadChangesComparisonView:[m.CMD|m.SHIFT,g.SingleQuote],Escape:[m.NONE,g.Escape],SelectUpwards:[m.NONE,g.UpArrow],SelectDownwards:[m.NONE,g.DownArrow],ContinueSelectionUpwards:[m.SHIFT,g.UpArrow],ContinueSelectionDownwards:[m.SHIFT,g.DownArrow]}),R=(0,d.Z)(A,3),D=R[0],j=R[1],I=(R[2],n(51));function P(t){var n=t.className,r=t.children,i=t.width,a=t.height,s=t["aria-labelledby"],u=t["aria-describedby"],l=t.dismiss;return(0,e.jsx)("div",{className:"modal",role:"dialog","aria-modal":!0,"aria-labelledby":s,"aria-describedby":u,children:(0,e.jsxs)("div",{className:"modal-contents ".concat(null!=n?n:""),style:{width:i,height:a},children:[null!=l?(0,e.jsx)("div",{className:"dismiss-modal",children:(0,e.jsx)(o.vD,{appearance:"icon",onClick:l,children:(0,e.jsx)(I.J,{icon:"x"})})}):null,r]})})}var N=p.LO.box(null,{deep:!1}),M=(0,a.Pi)((function(){var n,r=N.get(),i=(0,t.useRef)(null),a=function(){(null==r?void 0:r.visible)&&(r.deferred.resolve(void 0),N.set(Object.assign(Object.assign({},r),{visible:!1})))};if(j("Escape",a),(0,t.useEffect)((function(){(null==r?void 0:r.visible)&&null!=i.current&&i.current.focus()}),[i,null==r?void 0:r.visible]),!0!==(null==r?void 0:r.visible))return null;if("confirm"===r.config.type){var s=r.config;n=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{id:"use-modal-message",children:s.message}),(0,e.jsx)("div",{className:"use-modal-buttons",children:s.buttons.map((function(t,n){var a="object"==typeof t?t.label:t,s="object"==typeof t&&null!=t.primary;return(0,e.jsx)(o.vD,{appearance:s?"primary":"secondary",onClick:function(){r.deferred.resolve(t),N.set(Object.assign(Object.assign({},r),{visible:!1}))},ref:s?i:void 0,children:a},n)}))})]})}else if("custom"===r.config.type){var u=r.config.component;n=(0,e.jsx)(u,{returnResultAndDismiss:function(e){r.deferred.resolve(e),N.set(Object.assign(Object.assign({},r),{visible:!1}))}})}return(0,e.jsxs)(P,{height:"fit-content",className:"use-modal","aria-labelledby":"use-modal-title","aria-describedby":"use-modal-message",dismiss:a,children:[(0,e.jsxs)("div",{id:"use-modal-title",children:[null!=r.config.icon?(0,e.jsx)(I.J,{icon:r.config.icon,size:"M"}):null,"string"==typeof r.config.title?(0,e.jsx)("span",{children:r.config.title}):r.config.title]}),n]})})),L=n(8262),Z=n.n(L);function z(e,n,r){var i=(0,t.useCallback)((0,s.debounce)(e,n,void 0,!0),[n]);(0,t.useEffect)((function(){return i.apply(void 0,arguments)}),r)}function F(e,n){var r=(0,t.useRef)([]);Z()(n,r.current)||(r.current=n);var i=r.current;return(0,t.useMemo)(e,i)}var B=function(){function e(t){(0,O.Z)(this,e),this.trackEventName=t,this.id=(0,s.randomId)(),this.runner=s.CommandRunner.Graphite}return(0,C.Z)(e,[{key:"getStdin",value:function(){}},{key:"getDescriptionForDisplay",value:function(){}}]),e}(),V=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,O.Z)(this,n),t.call(this,"AddAllOperation")}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["add","--all"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:H(e.status)}}))}}}]),n}(B);function H(e){return["UNTRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"TRACKED_ADD":["UNTRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"TRACKED_REMOVE":["UNTRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"TRACKED_MODIFY":["UNTRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"TRACKED_COPY":["UNTRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"TRACKED_RENAME":e}V.opName="AddAll";var U=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,O.Z)(this,n),t.call(this,"DiscardOperation")}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["reset","-q","--hard"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["TRACKED_MODIFY","TRACKED_ADD","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME","UNTRACKED_REMOVE"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(B);U.opName="Discard";var K=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,O.Z)(this,n),t.call(this,"PurgeOperation")}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["clean","--force"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=["UNTRACKED_ADD"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((function(e){return!t.includes(e.status)})))return function(e){return e.filter((function(e){return!t.includes(e.status)}))}}}]),n}(B);K.opName="Purge";var q=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,O.Z)(this,n),t.call(this,"SoftResetAllOperation")}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["reset","-q"]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(!e.uncommittedChanges.every((function(e){return!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return{path:e.path,status:$(e.status)}}))}}}]),n}(B);function $(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}q.opName="SoftResetAll";var Y=n(2104),W=p.LO.box(void 0),G=(0,p.Fl)((function(){var e=W.get();return e?Y.Tq.get().get(e):void 0})),Q=p.LO.box("all");(0,p.U5)((function(){return W.get()}),(function(){Q.set("all")}));var J,X=n(8194),ee=(0,X.R)({config:"gti.bottom-panel-height",default:null}),te=n(2982),ne=n(7762);function re(){return window.globalGtiClientTracker}!function(e){e.REBASE_ROOT="rebase-root",e.REBASE_DESCENDANT="rebase-descendant",e.REBASE_OLD="rebase-old",e.REBASE_OPTIMISTIC_ROOT="rebase-optimistic-root",e.REBASE_OPTIMISTIC_DESCENDANT="rebase-optimistic-descendant",e.GOTO_DESTINATION="goto-destination",e.GOTO_PREVIOUS_LOCATION="goto-previous-location",e.HIDDEN_DESCENDANT="hidden-descendant",e.STACK_EDIT_ROOT="stack-edit-root",e.STACK_EDIT_DESCENDANT="stack-edit-descendant",e.NON_ACTIONABLE_COMMIT="non-actionable-commit"}(J||(J={}));var ie=(0,p.Fl)((function(){var e=Y.il.get(),t=Y.zV.get();return function(e,t,n){var r,i=t.currentOperation,o=[],a=(0,ne.Z)(t.operationHistory);try{for(a.s();!(r=a.n()).done;){var s=r.value;null==s||s.hasCompletedUncommittedChangesOptimisticState||null!=s.operation.makeOptimisticUncommittedChangesApplier&&o.push(s.operation.makeOptimisticUncommittedChangesApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==i||i.hasCompletedUncommittedChangesOptimisticState||null!=i.exitCode&&0!==i.exitCode||null!=i.operation.makeOptimisticUncommittedChangesApplier&&o.push(i.operation.makeOptimisticUncommittedChangesApplier.bind(i.operation));var u,l=(0,ne.Z)(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;null!=c&&null!=c.makeOptimisticUncommittedChangesApplier&&o.push(c.makeOptimisticUncommittedChangesApplier.bind(c))}}catch(e){l.e(e)}finally{l.f()}if(o.length){var d,f=e,h=(0,ne.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({uncommittedChanges:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(Y.OR.get(),e,t)})),oe=(0,p.Fl)((function(){var e=Y.il.get(),t=Y.zV.get(),n=Y.SC.get();return null==(null==n?void 0:n.files)?n:function(e,t,n){var r=t.currentOperation;if("loaded"!==e.state)return e;var i,o=[],a=(0,ne.Z)(t.operationHistory);try{for(a.s();!(i=a.n()).done;){var s=i.value;null==s||s.hasCompletedMergeConflictsOptimisticState||null!=s.operation.makeOptimisticMergeConflictsApplier&&o.push(s.operation.makeOptimisticMergeConflictsApplier.bind(s.operation))}}catch(e){a.e(e)}finally{a.f()}null==r||r.hasCompletedMergeConflictsOptimisticState||null!=r.exitCode&&0!==r.exitCode||null!=r.operation.makeOptimisticMergeConflictsApplier&&o.push(r.operation.makeOptimisticMergeConflictsApplier.bind(r.operation));var u,l=(0,ne.Z)(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;null!=c&&null!=c.makeOptimisticMergeConflictsApplier&&o.push(c.makeOptimisticMergeConflictsApplier.bind(c))}}catch(e){l.e(e)}finally{l.f()}if(o.length){var d,f=e,h=(0,ne.Z)(o);try{for(h.s();!(d=h.n()).done;){var p=(0,d.value)({conflicts:e});null!=p&&(f=p(f))}}catch(e){h.e(e)}finally{h.f()}return f}return e}(n,e,t)})),ae=(0,p.Fl)((function(){var e,t=Y.lp.get(),n=[],r=Y.wf.get(),i=Y.il.get(),o=Y.zV.get(),a=i.currentOperation,u=(0,ne.Z)(i.operationHistory);try{for(u.s();!(e=u.n()).done;){var l=e.value;null==l||l.hasCompletedOptimisticState||null!=l.operation.makeOptimisticApplier&&n.push(l.operation.makeOptimisticApplier.bind(l.operation))}}catch(e){u.e(e)}finally{u.f()}null==a||a.hasCompletedOptimisticState||null!=a.exitCode&&0!==a.exitCode||null!=a.operation.makeOptimisticApplier&&n.push(a.operation.makeOptimisticApplier.bind(a.operation));var c,d=(0,ne.Z)(o);try{for(d.s();!(c=d.n()).done;){var f=c.value;null!=f&&null!=f.makeOptimisticApplier&&n.push(f.makeOptimisticApplier.bind(f))}}catch(e){d.e(e)}finally{d.f()}null!=(null==r?void 0:r.makePreviewApplier)&&n.push(r.makePreviewApplier.bind(r));var h=Y.ql.get(),p=Y.uB.get();if(n.length){var v,m=t,g=(0,ne.Z)(n);try{var y=function(){var e=v.value,t={trees:m,headCommit:h,treeMap:p},n=h,r=new Map,i=e(t);if(null==i)return"continue";var o=function e(t,o){var a=i(t,o);if(null!=(null==a?void 0:a.info)){a.info.isHead&&(n=a.info);var s=a.info,u=a.children,l=a.previewType,c=a.childPreviewType,d={info:s,previewType:l,children:u.map((function(t){return e(t,c)})).filter((function(e){return null!=e}))};return r.set(d.info.branch,a),d}};m=m.map((function(e){return o(e)})).filter(s.notEmpty),h=n,p=r};for(g.s();!(v=g.n()).done;)y()}catch(e){g.e(e)}finally{g.f()}return{trees:m,treeMap:p,headCommit:h}}return{trees:t,treeMap:p,headCommit:h}}));function se(e){var t,n,r=Y.il.get(),i=Y.zV.get();return(null===(t=r.currentOperation)||void 0===t?void 0:t.operation)instanceof e&&null==(null===(n=r.currentOperation)||void 0===n?void 0:n.exitCode)?"running":i.some((function(t){return t instanceof e}))?"queued":void 0}var ue=n(5288),le=(0,X.X)({config:"gti.changedFilesDisplayType",default:"short"}),ce={short:"Short file names",fullPaths:"Full file paths",tree:"Tree",fish:"One-letter directories"},de=Object.entries(ce),fe=(0,a.Pi)((function(){var t,n,r=(0,k.F)(),i=le.get(),a=oe.get(),u=!r.openDiff;return(0,e.jsxs)(o.vD,{appearance:"icon",className:"changed-file-display-type-picker","data-testid":"changed-file-display-type-picker",children:[(0,e.jsx)(I.J,{icon:"ellipsis"}),(0,e.jsxs)("select",{value:i,className:"changed-file-display-type-picker-select",onClick:function(e){e.stopPropagation()},onChange:function(e){var t=e.currentTarget.value;(function(e){return Object.keys(ce).includes(e)})(t)&&le.set(t),"view-changes"===t&&ue._.set({comparison:{type:s.ComparisonType.UncommittedChanges},visible:!0}),"all-changes"===t&&Q.set("all"),"changes-by-commit"===t&&Q.set("commit"),"changes-by-version"===t&&Q.set("version"),"view-branch"===t&&(null==a?void 0:a.branchName)&&W.set(a.branchName)},children:[de.map((function(t){var n=(0,d.Z)(t,2),r=n[0],i=n[1];return(0,e.jsx)("option",{value:r,children:i},r)})),a||u?(0,e.jsx)("option",{disabled:!0,children:"──────────"}):null,a?(0,e.jsx)("option",{value:"view-branch",children:"View branch"},"view-branch"):null,u?(0,e.jsx)("option",{value:"view-changes",children:"View changes"},"view-changes"):null,W.get()&&!(null===(t=G.get())||void 0===t?void 0:t.partOfTrunk)&&(0,e.jsxs)(e.Fragment,{children:["all"!==Q.get()&&(0,e.jsx)("option",{value:"all-changes",children:"View all changes"},"all-changes"),"commit"!==Q.get()&&(0,e.jsx)("option",{value:"changes-by-commit",children:"View changes by commit"},"changes-by-commit"),"version"!==Q.get()?(null===(n=G.get())||void 0===n?void 0:n.versions)&&(0,e.jsx)("option",{value:"changes-by-version",children:"View changes by version"},"changes-by-version"):null]})]})]})})),he=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"GotoOperation")).destination=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["checkout",this.destination]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this,r=null===(t=e.headCommit)||void 0===t?void 0:t.branch;if(r!==this.destination)return function(e,t){return e.info.branch===n.destination?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children,previewType:J.GOTO_DESTINATION}:e.info.branch===r?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:e.children,previewType:J.GOTO_PREVIOUS_LOCATION}:{info:e.info,children:e.children}}}}]),n}(B);he.opName="Goto";var pe=n(7338),ve=n(1485),me=function(){function t(n){var r=this;(0,O.Z)(this,t),this.system=n,this.RepoInfo=function(){return(0,e.jsxs)("span",{children:["github.com"!==r.system.hostname?r.system.hostname:""," ",r.system.owner,"/",r.system.repo]})}}return(0,C.Z)(t,[{key:"DiffBadgeContent",value:function(t){var n=t.diff,r=t.children;return(0,e.jsxs)("div",{className:"github-diff-status"+((null==n?void 0:n.state)?" github-diff-status-".concat(n.state):""),children:[n?(0,e.jsx)(I.J,{title:"Open PR #".concat(null==n?void 0:n.number," in Graphite"),icon:ge(n.state)}):null,r]})}},{key:"formatDiffNumber",value:function(e){return"#".concat(e)}},{key:"isDiffClosed",value:function(e){return"CLOSED"===e.state}}]),t}();function ge(e){switch(e){case"ERROR":return"error";case"OPEN":return"git-pull-request";case"MERGED":return"git-merge";case"CLOSED":return"git-pull-request-closed";case"DRAFT":case void 0:return"git-pull-request"}}var ye=(0,p.Fl)((function(){var e=Y.ip.get();return"success"!==(null==e?void 0:e.type)?null:"github"===e.codeReviewSystem.type?new me(e.codeReviewSystem):null})),be=(0,pe.N)({genKey:function(e){return e||"__UNDEFINED__"},genValue:function(e){return(0,p.Fl)((function(){var t,n=we.get();return null==n?{value:void 0}:n.error?{error:n.error}:null==e?{value:void 0}:{value:null===(t=n.value)||void 0===t?void 0:t.get(e)}}))}}),_e=(0,ve.u)({default:{value:null},effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedDiffSummaries",(function(e){t(e.summaries)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchDiffSummaries"})}))}]}),we=((0,p.Fl)((function(){var e=_e.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.branchName,e]})))}})),(0,p.Fl)((function(){var e=_e.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((function(e){return[e.number,e]})))}})));function ke(e){var t;if(!e)return[];var n=Y.uB.get().get(e);if(!n)return[];var r=n.info,i=be(null===(t=r.pr)||void 0===t?void 0:t.number).get();return r.partOfTrunk||!r.needsSubmit&&r.pr||i.value&&"OPEN"!==i.value.state?[]:[].concat((0,te.Z)(ke(n.info.parents[0])),[n.info])}function xe(e){if(!e)return[];var t=Y.uB.get().get(e);return t?[].concat((0,te.Z)(xe(t.info.parents[0])),[t.info]):[]}function Ce(e){return xe(e).some((function(e){var t,n=be(null===(t=e.pr)||void 0===t?void 0:t.number).get();return n.value&&"OPEN"!==n.value.state}))}function Oe(e){return xe(e).some((function(e){return e.needsRestack&&!e.parents.some((function(e){var t;return null===(t=Y.uB.get().get(e))||void 0===t?void 0:t.info.partOfTrunk}))}))}(0,ve.u)({default:document.hasFocus()?"focused":document.visibilityState,setter:(0,s.debounce)((function(e){u.H.postMessage({type:"pageVisibility",state:e})}),50),effects:[function(e){var t=e.setSelf,n=function(){t(document.hasFocus()?"focused":document.visibilityState)};return window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),function(){document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n),window.removeEventListener("blur",n)}}]});var Se=(0,ve.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedAuthStatus",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchAuthStatus"})}))}]}),Ee=(0,p.Fl)((function(){var e;return"ok"===(null===(e=Se.get())||void 0===e?void 0:e.status)})),Te=(0,pe.N)({genKey:function(e){return e},genValue:function(e){return(0,ve.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestCommitsInBranch",branch:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestCommitsInBranch",branch:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("commitsInBranch",(function(t){t.branch===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),Ae=(0,pe.N)({genKey:function(e){return e},genValue:function(e){return(0,ve.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestChangedFilesInCommit",commitSha:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestChangedFilesInCommit",commitSha:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFilesInCommit",(function(t){t.commitSha===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),Re=(0,pe.N)({genKey:function(e){return e},genValue:function(e){return(0,ve.u)({default:{isLoading:!0,data:null},setter:function(t){if(t.isLoading){var n=e.split(".."),r=(0,d.Z)(n,2),i=r[0],o=r[1];if(!i||!o)return;u.H.postMessage({type:"requestChangedFilesInRange",fromSha:i,toSha:o})}},effects:[function(){return u.H.onConnectOrReconnect((function(){var t=e.split(".."),n=(0,d.Z)(t,2),r=n[0],i=n[1];r&&i&&u.H.postMessage({type:"requestChangedFilesInRange",fromSha:r,toSha:i})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFilesInRange",(function(t){var r=e.split(".."),i=(0,d.Z)(r,2),o=i[0],a=i[1];t.fromSha===o&&t.toSha===a&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),De=(0,pe.N)({genKey:function(e){return e},genValue:function(e){return(0,ve.u)({default:{isLoading:!0,data:null},setter:function(t){t.isLoading&&u.H.postMessage({type:"requestChangedFiles",branch:e})},effects:[function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"requestChangedFiles",branch:e})}))},function(t){var n=t.setSelf,r=u.H.onMessageOfType("changedFiles",(function(t){t.branch===e&&n({isLoading:!1,data:t.data})}));return function(){return r.dispose()}}]})}}),je=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r){var i;return(0,O.Z)(this,n),(i=t.call(this,"DownstackSubmitOperation")).branch=e,i.options=r,i}return(0,C.Z)(n,[{key:"getArgs",value:function(){var e,t,n,r=["submit","--branch",this.branch];return(null===(e=this.options)||void 0===e?void 0:e.draft)&&r.push("--draft"),(null===(t=this.options)||void 0===t?void 0:t.publish)&&r.push("--publish"),(null===(n=this.options)||void 0===n?void 0:n.web)&&r.push("--web"),r}}]),n}(B);je.opName="downstack submit";var Ie=(0,X.X)({config:"gti.submit-as-draft",default:"draft"}),Pe=(0,X.X)({config:"gti.submit-with-web",default:"no-web"}),Ne=function(e){var t;(0,Y.tD)(new je(e,{publish:"publish"===Ie.get(),draft:"draft"===Ie.get(),web:"web"===Pe.get()&&(t=e,!ke(t).every((function(e){return e.pr})))}))},Me=p.LO.set();function Le(n){var r=n.disabled,i=n.toHighlight,o=n.children,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["disabled","toHighlight","children"]),s=(0,t.useRef)(null),u=(0,t.useState)(!1),l=(0,d.Z)(u,2),c=l[0],f=l[1];return(0,t.useLayoutEffect)((function(){if(!r){var e=function(){setTimeout((function(){(0,p.z)((function(){Me.clear(),i.map((function(e){return Me.add(e.branch)}))})),f(!0)}),0)},t=function(){Me.clear(),f(!1)},n=s.current;return null==n||n.addEventListener("mouseenter",e),null==n||n.addEventListener("mouseleave",t),function(){null==n||n.removeEventListener("mouseenter",e),null==n||n.removeEventListener("mouseleave",t)}}}),[i,r]),(0,t.useEffect)((function(){return function(){c&&Me.clear()}}),[c]),(0,e.jsx)("div",Object.assign({},a,{ref:s,children:o}))}function Ze(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.map((function(e){var t=function(e){return e.replace(/[^\\]/g,"").length>e.replace(/[^/]/g,"").length?"\\":"/"}(e),n=/^(\w:).*/.exec(e),r=null!=n?n[1]:"";return{depth:null,parts:e.split(t).reverse().filter((function(e){return""!==e&&e!==r})),rootPrefix:r||"",separator:t,hadLeadingSeparator:e.startsWith(t)||!!r&&r.length>0&&e.startsWith(r)}})),r=null==t.maxDepth?Math.max.apply(Math,(0,te.Z)(n.map((function(e){return e.parts.length})))):t.maxDepth,i=new Set(n),o=new Map,a=1;a<=r;a++){o.clear();var s,u=(0,ne.Z)(i);try{for(u.s();!(s=u.n()).done;){var l=s.value,c=l.parts.slice(0,a).join(l.separator);o.has(c)||o.set(c,new Set),o.get(c).add(l)}}catch(e){u.e(e)}finally{u.f()}var d,f=(0,ne.Z)(o.values());try{for(f.s();!(d=f.n()).done;){var h=d.value;if(1===h.size){var p=Array.from(h)[0];p&&(p.depth=a,i.delete(p))}}}catch(e){f.e(e)}finally{f.f()}}return n.map((function(e){var n,i=e.depth,o=e.parts,a=e.rootPrefix,s=e.separator,u=e.hadLeadingSeparator,l=o.slice(0,null==i?r:i).reverse();return 0===l.length?"".concat(a).concat(s):((1===l.length&&""===l[0]||l.length>1&&""!==l[0])&&(l=l.length===o.length?u?[a].concat((0,te.Z)(l)):l:(null!==(n=t.alwaysShowLeadingSeparator)&&void 0!==n?n:u)?[""].concat((0,te.Z)(l)):l),l.join(s))}))}var ze,Fe=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"AddOperation")).filePath=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["add",{type:"repo-relative-file",path:this.filePath}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&!["UNTRACKED_ADD","UNTRACKED_MODIFY","UNTRACKED_REMOVE","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:H(e.status)}:e}))}}}]),n}(B);Fe.opName="Add",function(e){e.theirs="theirs",e.ours="ours"}(ze||(ze={}));var Be,Ve=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r){var i;return(0,O.Z)(this,n),(i=t.call(this,"AutoResolveOperation")).filePath=e,i.tool=r,i}return(0,C.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case ze.theirs:return["restore","--theirs","--",{type:"repo-relative-file",path:this.filePath}];case ze.ours:return["restore","--ours","--",{type:"repo-relative-file",path:this.filePath}]}}}]),n}(B);Ve.opName="AutoResolve",function(e){e.mark="mark",e.unmark="unmark"}(Be||(Be={}));var He=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r){var i;return(0,O.Z)(this,n),(i=t.call(this,"ResolveOperation")).filePath=e,i.tool=r,i}return(0,C.Z)(n,[{key:"getArgs",value:function(){switch(this.tool){case Be.mark:return["add",{type:"repo-relative-file",path:this.filePath}];case Be.unmark:return["restore","--merge","--",{type:"repo-relative-file",path:this.filePath}]}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.filePath&&"UNRESOLVED"!==e.status})))return function(e){return e.map((function(e){return e.path===t.filePath?{path:e.path,status:"RESOLVED"}:e}))}}},{key:"makeOptimisticMergeConflictsApplier",value:function(e){var t,n,r=this;if(!0!==(null===(n=null===(t=e.conflicts)||void 0===t?void 0:t.files)||void 0===n?void 0:n.some((function(e){return e.path===r.filePath&&"UNRESOLVED"!==e.status}))))return function(e){var t,n;return"loaded"!==(null==e?void 0:e.state)?e:Object.assign(Object.assign({},e),{files:null!==(n=null===(t=null==e?void 0:e.files)||void 0===t?void 0:t.map((function(e){return e.path===r.filePath?{path:e.path,status:"RESOLVED"}:e})))&&void 0!==n?n:[]})}}}]),n}(B);He.opName="Resolve";var Ue=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"RevertOperation")).file=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["restore","-SW",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=new Set(this.file);if(!e.uncommittedChanges.every((function(e){return!t.has(e.path)})))return function(e){return e.filter((function(e){return!t.has(e.path)}))}}}]),n}(B);Ue.opName="Revert";var Ke=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"SoftResetOperation")).file=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["reset","--",{type:"repo-relative-file",path:this.file}]}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this;if(!e.uncommittedChanges.some((function(e){return e.path===t.file&&!["TRACKED_ADD","TRACKED_MODIFY","TRACKED_REMOVE","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"].includes(e.status)})))return function(e){return e.map((function(e){return e.path===t.file?{path:e.path,status:qe(e.status)}:e}))}}}]),n}(B);function qe(e){return["TRACKED_ADD","PARTIALLY_TRACKED_ADD"].includes(e)?"UNTRACKED_ADD":["TRACKED_REMOVE","PARTIALLY_TRACKED_REMOVE"].includes(e)?"UNTRACKED_REMOVE":["TRACKED_MODIFY","PARTIALLY_TRACKED_MODIFY"].includes(e)?"UNTRACKED_MODIFY":["TRACKED_COPY","PARTIALLY_TRACKED_COPY"].includes(e)?"UNTRACKED_COPY":["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME"].includes(e)?"UNTRACKED_RENAME":e}Ke.opName="SoftReset";var $e={TRACKED_ADD:"Added (tracked)",TRACKED_MODIFY:"Modified (staged)",TRACKED_REMOVE:"Removed (staged)",PARTIALLY_TRACKED_ADD:"Added (partially tracked)",PARTIALLY_TRACKED_MODIFY:"Modified (partially staged)",PARTIALLY_TRACKED_REMOVE:"Removed (partially staged)",UNTRACKED_MODIFY:"Modified (unstaged)",UNTRACKED_ADD:"Added (untracked)",UNTRACKED_REMOVE:"Removed (unstaged)",UNRESOLVED:"Unresolved",RESOLVED:"Resolved",TRACKED_RENAME:"Renamed (staged)",PARTIALLY_TRACKED_RENAME:"Renamed and modified (partially staged)",UNTRACKED_RENAME:"Renamed (unstaged)",TRACKED_COPY:"Copied (tracked)",PARTIALLY_TRACKED_COPY:"Copied and modified (tracked and partially staged)",UNTRACKED_COPY:"Copied (untracked)"},Ye={TRACKED_ADD:["added","diff-added","full"],TRACKED_MODIFY:["modified","diff-modified","full"],TRACKED_REMOVE:["removed","diff-removed","full"],PARTIALLY_TRACKED_ADD:["added","diff-added","partial"],PARTIALLY_TRACKED_MODIFY:["modified","diff-modified","partial"],PARTIALLY_TRACKED_REMOVE:["removed","diff-removed","partial"],UNTRACKED_MODIFY:["modified","diff-modified","empty"],UNTRACKED_ADD:["added","diff-added","empty"],UNTRACKED_REMOVE:["removed","diff-removed","empty"],UNRESOLVED:["unresolved","diff-ignored","empty"],RESOLVED:["resolved","pass","full"],TRACKED_RENAME:["modified","diff-renamed","full"],PARTIALLY_TRACKED_RENAME:["modified","diff-renamed","partial"],UNTRACKED_RENAME:["modified","diff-renamed","empty"],TRACKED_COPY:["added","diff-added","full"],PARTIALLY_TRACKED_COPY:["added","diff-added","partial"],UNTRACKED_COPY:["added","diff-added","empty"]},We={TRACKED_MODIFY:0,PARTIALLY_TRACKED_MODIFY:1,TRACKED_RENAME:2,PARTIALLY_TRACKED_RENAME:3,TRACKED_ADD:4,PARTIALLY_TRACKED_ADD:5,TRACKED_COPY:6,PARTIALLY_TRACKED_COPY:7,TRACKED_REMOVE:8,PARTIALLY_TRACKED_REMOVE:9,UNTRACKED_MODIFY:10,UNTRACKED_REMOVE:11,UNTRACKED_ADD:11,UNTRACKED_RENAME:12,UNTRACKED_COPY:13,UNRESOLVED:-1,RESOLVED:-2},Ge=(0,a.Pi)((function(t){var n=le.get(),r=t.files,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["files"]),o=F((function(){return function(e){var t=Ze(e.map((function(e){return e.path}))),n=new Set(e.map((function(e){return e.copy})).filter(s.notEmpty));return e.map((function(e,n){var r,i,o=t[n],a="".concat(e.path,"\n\n").concat($e[e.status]),s=e.status;if(null!=e.copy){var u=Ze([e.copy,e.path]),l=(0,d.Z)(u,2),c=l[0],f=l[1];o="".concat(c," → ").concat(f),["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME","UNTRACKED_RENAME"].includes(e.status)?(i=e.copy,a="".concat(a,"\n\nThis file was renamed from ").concat(e.copy),s=e.status):["TRACKED_COPY","PARTIALLY_TRACKED_COPY","UNTRACKED_COPY"].includes(e.status)&&(r=e.copy,a="".concat(a,"\n\nThis file was copied from ").concat(e.copy),s=e.status)}return{path:e.path,label:o,status:e.status,visualStatus:s,copiedFrom:r,renamedFrom:i,tooltip:a}})).filter((function(e){return!("TRACKED_REMOVE"===e.status&&n.has(e.path))})).sort((function(e,t){return e.visualStatus===t.visualStatus?e.path.localeCompare(t.path):We[e.visualStatus]-We[t.visualStatus]}))}(r)}),[r]);return(0,e.jsx)("div",{className:"changed-files",children:"tree"===n?(0,e.jsx)(Xe,Object.assign({},i,{files:o,displayType:n})):(0,e.jsx)(Qe,Object.assign({},i,{files:o,displayType:n}))})}));function Qe(t){var n=t.files,r=t.displayType,i=t.comparison;return(0,e.jsx)(e.Fragment,{children:n.map((function(t){return(0,e.jsx)(et,{file:t,displayType:r,comparison:i},t.path)}))})}var Je=function(){return(0,e.jsx)("div",{className:"file-indent"})},Xe=(0,a.Pi)((function(n){var r=n.files,i=n.comparison,o=n.displayType,a=F((function(){return e=Object.fromEntries(r.map((function(e){return[e.path,e]}))),function e(t){var n,r=new Map,i=new Map,o=(0,ne.Z)(t.entries());try{for(o.s();!(n=o.n()).done;){var a=(0,d.Z)(n.value,2),s=a[0],u=a[1],l=s.split("/",1),c=(0,d.Z)(l,1)[0];if(c){var f=s.slice(c.length+1);if(""===f)i.set(c,u);else if(r.has(c)){var h=r.get(c);null==h||h.set(f,u)}else r.set(c,new Map([[f,u]]))}}}catch(e){o.e(e)}finally{o.f()}var p,v=new Map,m=(0,ne.Z)(r.entries());try{for(m.s();!(p=m.n()).done;){var g=(0,d.Z)(p.value,2),y=g[0],b=e(g[1]);if(1===b.size){var _=(0,d.Z)(b.entries().next().value,2),w=_[0],k=_[1];k instanceof Map?v.set(y+"/"+w,k):v.set(y,b)}else v.set(y,b)}}catch(e){m.e(e)}finally{m.f()}var x,C=(0,ne.Z)(i.entries());try{for(C.s();!(x=C.n()).done;){var O=(0,d.Z)(x.value,2),S=O[0],E=O[1];v.set(S,E)}}catch(e){C.e(e)}finally{C.f()}return v}(new Map(Object.entries(e)));var e}),[r]),s=(0,t.useState)(new Set),u=(0,d.Z)(s,2),l=u[0],c=u[1];return function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,e.jsx)(e.Fragment,{children:(0,te.Z)(r.entries()).map((function(r){var u=(0,d.Z)(r,2),f=u[0],h=u[1],p="".concat(a,"/").concat(f),v=l.has(p);return h instanceof Map?(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)("div",{className:"file-tree-folder-path",onClick:function(){c((function(e){return v?new Set((0,te.Z)(e).filter((function(e){return e!==p}))):new Set([].concat((0,te.Z)(e),[p]))}))},children:[Array.from({length:s},(function(t,n){return(0,e.jsx)(Je,{},n)})),(0,e.jsx)(I.J,{icon:v?"chevron-right":"chevron-down"}),(0,e.jsx)(I.J,{icon:v?"folder":"folder-opened"}),f]}),v?null:n(h,p,s+1)]},f):(0,e.jsx)(et,{indentLevel:s,comparison:i,displayType:o,file:h},f)}))})}(a)})),et=(0,a.Pi)((function(n){var r=n.file,i=n.displayType,a=n.comparison,u=n.indentLevel,l=void 0===u?0:u,c=(0,k.F)(),f=(0,d.Z)(Ye[r.visualStatus],3),h=f[0],p=f[1],v=f[2],m=function(e){switch(e.status){case"UNTRACKED_ADD":case"UNTRACKED_MODIFY":case"UNTRACKED_REMOVE":case"UNTRACKED_COPY":case"UNTRACKED_RENAME":return{tooltip:"Stage changes",operation:function(){return new Fe(e.path)}};case"PARTIALLY_TRACKED_ADD":case"PARTIALLY_TRACKED_MODIFY":case"PARTIALLY_TRACKED_REMOVE":case"PARTIALLY_TRACKED_COPY":case"PARTIALLY_TRACKED_RENAME":return{tooltip:"Stage all changes",operation:function(){return new Fe(e.path)}};case"TRACKED_MODIFY":case"TRACKED_COPY":case"TRACKED_RENAME":return{tooltip:"Unstage changes",operation:function(){return new Ke(e.path)}};case"TRACKED_ADD":return{tooltip:"Unstage addition",operation:function(){return new Ke(e.path)}};case"TRACKED_REMOVE":return{tooltip:"Unstage removal",operation:function(){return new Ke(e.path)}};case"RESOLVED":return{tooltip:"Mark as unresolved",operation:function(){return new He(e.path,Be.unmark)}};case"UNRESOLVED":return{tooltip:"This file needs to be resolved",operation:null}}}(r),g=m.operation,y=m.tooltip,b=(0,t.useCallback)((function(e){if(e)return"full"===v?(e.indeterminate=!1,void(e.checked=!0)):void("partial"!==v?(e.indeterminate=!1,e.checked=!1):e.indeterminate=!0)}),[v]);return(0,e.jsxs)("div",{className:"changed-file file-".concat(h),"data-testid":"changed-file-".concat(r.path),tabIndex:0,onKeyPress:function(e){var t;if("Enter"===e.key){if(a.type===s.ComparisonType.UncommittedChanges)return void c.openFile(r.path);null===(t=c.openDiff)||void 0===t||t.call(c,r.path,a)}},onClick:function(){var e;a.type!==s.ComparisonType.UncommittedChanges?null===(e=c.openDiff)||void 0===e||e.call(c,r.path,a):c.openFile(r.path)},children:[Array.from({length:l},(function(t,n){return(0,e.jsx)(Je,{},n)})),a.type===s.ComparisonType.UncommittedChanges&&(0,e.jsx)(o.QJ,{ref:b,title:y,className:"changed-file-checkbox"+(g?" changed-file-checkbox-clickable":""),readOnly:!0,disabled:!g,onClick:function(e){e.stopPropagation();var t=null==g?void 0:g();t&&(0,Y.tD)(t)}}),(0,e.jsxs)("span",{className:"changed-file-path",title:r.tooltip,children:[(0,e.jsx)(I.J,{icon:p}),(0,e.jsx)("span",{className:"changed-file-path-text",children:"fish"===i?r.path.split("/").map((function(e,t,n){return t===n.length-1?e:e[0]})).join("/"):"fullPaths"===i?r.path:"short"===i?r.label:r.path.endsWith("/")?r.path:r.path.slice(r.path.lastIndexOf("/")+1)})]}),(0,e.jsx)(rt,{file:r,comparison:a})]},r.path)})),tt=new Set(["TRACKED_MODIFY","UNTRACKED_MODIFY","TRACKED_REMOVE","UNTRACKED_REMOVE"]),nt=new Set(["UNRESOLVED","RESOLVED"]),rt=(0,a.Pi)((function(t){var n=this,r=t.comparison,i=t.file,a=(0,k.F)(),l=[];return null!=a.openFile&&r.type!==s.ComparisonType.UncommittedChanges&&l.push((0,e.jsx)(o.vD,{title:"Open file",className:"file-show-on-hover",appearance:"icon",onClick:function(e){var t;e.stopPropagation(),null===(t=a.openFile)||void 0===t||t.call(a,i.path)},children:(0,e.jsx)(I.J,{icon:"go-to-file"})},"open-file")),r.type!==s.ComparisonType.UncommittedChanges||null==a.openDiff||nt.has(i.status)||l.push((0,e.jsx)(o.vD,{title:"Open diff view",className:"file-show-on-hover",appearance:"icon",onClick:function(e){var t;e.stopPropagation(),null===(t=a.openDiff)||void 0===t||t.call(a,i.path,r)},children:(0,e.jsx)(I.J,{icon:"git-pull-request-go-to-changes"})},"open-diff")),tt.has(i.status)&&r.type===s.ComparisonType.UncommittedChanges&&l.push((0,e.jsx)(o.vD,{title:"Discard changes",className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:function(e){e.stopPropagation(),a.confirm("Are you sure you want to discard changes to ".concat(i.path,"?")).then((function(e){e&&(0,Y.tD)(new Ue(i.path))}))},children:(0,e.jsx)(I.J,{icon:"discard"})},"discard")),r.type===s.ComparisonType.UncommittedChanges&&("UNTRACKED_ADD"===i.status||"TRACKED_ADD"===i.status?l.push((0,e.jsx)(o.vD,{title:"Delete",className:"file-show-on-hover",appearance:"icon",onClick:function(e){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(n,0,void 0,h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.stopPropagation(),t.next=3,a.confirm("Are you sure you want to delete ".concat(i.path,"?"));case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:u.H.postMessage({type:"deleteFile",filePath:i.path});case 7:case"end":return t.stop()}}),t)})))},children:(0,e.jsx)(I.J,{icon:"trash"})},"delete")):"RESOLVED"===i.status?l.push((0,e.jsx)(o.vD,{title:"Mark as unresolved",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,Y.tD)(new He(i.path,Be.unmark))},children:(0,e.jsx)(I.J,{icon:"circle-slash"})},"unresolve")):"UNRESOLVED"===i.status&&l.push((0,e.jsx)(o.vD,{title:"Mark as resolved","data-testid":"file-action-resolve",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,Y.tD)(new He(i.path,Be.mark))},children:(0,e.jsx)(I.J,{icon:"check"})},"resolve"),(0,e.jsx)(o.vD,{title:"Take local version",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,Y.tD)(new Ve(i.path,ze.ours))},children:(0,e.jsx)(I.J,{icon:"fold-up"})},"take-ours"),(0,e.jsx)(o.vD,{title:"Take incoming version",appearance:"icon",onClick:function(e){e.stopPropagation(),(0,Y.tD)(new Ve(i.path,ze.theirs))},children:(0,e.jsx)(I.J,{icon:"fold-down"})},"take-theirs"))),(0,e.jsx)("div",{className:"file-actions","data-testid":"file-actions",children:l})})),it=(0,a.Pi)((function(){var t=Q.get();return(0,e.jsx)("div",{className:"selected-branch",children:"all"===t?(0,e.jsx)(ot,{}):"commit"===t?(0,e.jsx)(at,{}):(0,e.jsx)(st,{})})})),ot=(0,a.Pi)((function(){var t,n,r,i=null===(t=G.get())||void 0===t?void 0:t.branch;if(!i)return null;var a=De(i).get().data,u=ke(i),l=i===(null===(n=ae.get().headCommit)||void 0===n?void 0:n.branch),c=i===(null===(r=ae.get().trees[0])||void 0===r?void 0:r.info.branch);return(0,e.jsxs)(e.Fragment,{children:[c||!(null==a?void 0:a.files)?null:(0,e.jsx)(Ge,{files:a.files,comparison:{type:s.ComparisonType.Committed,hash:i}}),(0,e.jsxs)("div",{className:"branch-actions",children:[Ee.get()&&u.length>0&&!Ce(i)&&(0,e.jsx)(Le,{toHighlight:u,className:"branch-action-button",children:(0,e.jsxs)(o.vD,{className:"branch-action-button-inner-fill",appearance:l?"primary":"secondary",onClick:function(e){e.stopPropagation(),Ne(i)},children:["Submit",u.length>1?" ".concat(u.length," PRs"):""]})}),(0,e.jsx)(o.vD,{className:"branch-action-button",appearance:l?"secondary":"primary",disabled:l,onClick:function(e){(0,Y.tD)(new he(i)),e.stopPropagation()},children:l?"Checked out":"Check out"})]})]})})),at=(0,a.Pi)((function(){var n,r,i,o=(0,t.useState)(void 0),a=(0,d.Z)(o,2),u=a[0],l=a[1],c=null===(n=G.get())||void 0===n?void 0:n.branch;if(!c)return null;var f=null===(r=Te(c).get().data)||void 0===r?void 0:r.commits;if(!f)return null;var h=u&&(null===(i=Ae(u).get().data)||void 0===i?void 0:i.files);return(0,e.jsxs)("div",{className:"selected-branch-divided",children:[(0,e.jsx)("div",{className:"selected-branch-divided-selector",children:f.map((function(t){return(0,e.jsx)("div",{className:"selected-branch-divided-selector-item"+(u===t.sha?" selected-branch-divided-selector-item-selected":""),onClick:function(){return l(t.sha)},children:t.message},t.sha)}))}),(0,e.jsx)("div",{className:"selected-branch-divided-content",children:h?(0,e.jsx)(Ge,{files:h,comparison:{type:s.ComparisonType.Commit,sha:u}}):null})]})})),st=(0,a.Pi)((function(){var n,r,i,o=(0,t.useState)(void 0),a=(0,d.Z)(o,2),u=a[0],l=a[1],c=null===(n=G.get())||void 0===n?void 0:n.branch;if(!c)return null;var f=null===(r=Y.qC.get().find((function(e){return e.branch===c})))||void 0===r?void 0:r.versions;if(!f)return null;var h=u&&f[u-1],p=h&&h.baseSha&&h.headSha&&(null===(i=Re("".concat(h.baseSha,"..").concat(h.headSha)).get().data)||void 0===i?void 0:i.files);return(0,e.jsxs)("div",{className:"selected-branch-divided",children:[(0,e.jsx)("div",{className:"selected-branch-divided-selector",children:f.map((function(t,n){return(0,e.jsxs)("div",{className:"selected-branch-divided-selector-item"+(n+1===u?" selected-branch-divided-selector-item-selected":""),onClick:function(){return l(n+1)},children:["V",n+1]},"".concat(t.baseSha,":").concat(t.headSha))}))}),(0,e.jsx)("div",{className:"selected-branch-divided-content",children:p&&h.baseSha&&h.headSha?(0,e.jsx)(Ge,{files:p,comparison:{type:s.ComparisonType.Range,fromSha:h.baseSha,toSha:h.headSha}}):null})]})})),ut=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"AbortMergeOperation")).conflicts=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["rebase","--abort"]}}]),n}(B);ut.opName="Abort";var lt=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r){var i;return(0,O.Z)(this,n),(i=t.call(this,"AmendOperation")).method=e,i.message=r,i}return(0,C.Z)(n,[{key:"getArgs",value:function(){var e,t;if("commit"===this.method)return["modify","--commit","--message",(null===(e=this.message)||void 0===e?void 0:e.title)||"Untitled commit"];var n=null===(t=this.message)||void 0===t?void 0:t.title;return["modify"].concat((0,te.Z)(n?["--message",n]:[]))}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.headCommit;if(null!=this.message){var r=this.message,i=r.title,o=r.description;if((null==n?void 0:n.title)!==i||(null==n?void 0:n.description)!==o)return function(e,n){if(e.info.isHead){if(!t.message)throw new Error("Missing message");return{info:Object.assign(Object.assign({},e.info),{title:i,description:null!=o?o:""}),children:e.children}}return{info:e.info,children:e.children}}}}}]),n}(B);lt.opName="Amend";var ct=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r,i){var o;return(0,O.Z)(this,n),(o=t.call(this,"CommitOperation")).message=e,o.branchName=r,o.originalHeadHash=i,o}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["create"].concat((0,te.Z)(null!==this.branchName?[this.branchName]:[]),["--message","".concat(this.message.title.split(/\n+/,1))])}},{key:"makeOptimisticApplier",value:function(e){var t,n,r,i=this,o=e.headCommit;if((null==o?void 0:o.branch)===this.originalHeadHash){var a=this.message.title,s=this.message.description,u=null!==(t=this.branchName)&&void 0!==t?t:a.toLocaleLowerCase(),l={children:[],info:{author:null!==(n=null==o?void 0:o.author)&&void 0!==n?n:"",description:s,title:a,isHead:!0,parents:[null!==(r=null==o?void 0:o.branch)&&void 0!==r?r:""],branch:u,partOfTrunk:!1,date:(new Date).toISOString(),needsRestack:!1,needsSubmit:!0}};return function(e,t){return e.info.branch===i.originalHeadHash?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:[].concat((0,te.Z)(e.children),[l])}:{info:e.info,children:e.children}}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){if(0!==e.uncommittedChanges.length)return function(){return[]}}}]),n}(B);ct.opName="Commit";var dt=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,O.Z)(this,n),t.call(this,"ContinueMergeOperation")}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["continue"]}}]),n}(B);dt.opName="Continue";var ft=(0,X.X)({config:"gti.new-branch-name",default:"infer"}),ht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function pt(t){var n=t.title,r=t.icon,i=t.children,a=t.className,s=ht(t,["title","icon","children","className"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-fields"+(null!=a?" ".concat(a):"")},s,{children:[(0,e.jsxs)("div",{className:"dropdown-fields-header",children:[(0,e.jsx)(I.J,{icon:r,size:"M"}),(0,e.jsx)("strong",{role:"heading",children:n})]}),(0,e.jsx)(o.y9,{}),(0,e.jsx)("div",{className:"dropdown-fields-content",children:i})]}))}function vt(t){var n=t.title,r=t.children,i=ht(t,["title","children"]);return(0,e.jsxs)("div",{className:"dropdown-field",children:[(0,e.jsx)("strong",{children:n}),(0,e.jsx)("div",Object.assign({},i,{children:r}))]})}var mt,gt=n(4164);function yt(n){var r=n.children,i=n.component,o=n.placement,a=n.delayMs,s=n.inline,u=n.className,l=null!=o?o:"top",c=(0,t.useState)(!1),f=(0,d.Z)(c,2),h=f[0],p=f[1],v=(0,t.useRef)(null);(0,t.useEffect)((function(){if(h){var e=function(e){bt(e)||p(!1)};return window.addEventListener("click",e),function(){return window.removeEventListener("click",e)}}}),[h,p]),(0,t.useEffect)((function(){if(h){var e=function(e){"keyup"===e.type?"Escape"===e.key&&p(!1):"resize"!==e.type&&bt(e)||p(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[h,p]);var m=!0===h?0:a;return(0,e.jsxs)("div",{className:"tooltip-creator ".concat(s?"tooltip-creator-inline":"").concat(u?" ".concat(u):""),ref:v,onClick:function(e){!0===h&&bt(e)||(p((function(e){return!0!==e})),e.stopPropagation())},children:[h&&v.current?(0,e.jsx)(_t,{delayMs:m,element:v.current,placement:l,children:i((function(){return p(!1)}))}):null,r]})}function bt(e){return null!=(0,s.findParentWithClassName)(e.target,"tooltip")}function _t(n){var r,i,o=n.element,a=n.placement,s=n.children,u=n.delayMs,l=o.getBoundingClientRect(),c=(0,t.useRef)(null),f=function(e,n){var r=(0,t.useState)({width:0,height:0}),i=(0,d.Z)(r,2),o=i[0],a=i[1];return(0,t.useLayoutEffect)((function(){var t=e.current;if(null!=t){var n=function(){a({width:t.offsetWidth,height:t.offsetHeight})};n();var r=new ResizeObserver((function(e){e.forEach((function(e){e.target===t&&n()}))}));return r.observe(t),function(){return r.disconnect()}}}),[e,n]),o}(c,s),h=function(e,t,n){switch(e){case"top":var r=t.top-5-n.height,i=t.left+t.width/2-n.width/2;return r<0?{top:t.top+t.height+5,left:i,autoPlacement:"bottom"}:{top:r,left:i};case"bottom":return{top:t.top+t.height+5,left:t.left+t.width/2-n.width/2};case"left":return{top:t.top+t.height/2-n.height/2,left:t.left-n.width-5};case"right":return{top:t.top+t.height/2-n.height/2,left:t.right+5}}}(a,l,f),p=function(e,t,n){var r={top:0,left:0},i=document.body.getBoundingClientRect();if("right"===e||"left"===e){var o=t.top-5,a=t.top+5+n.height;o<i.top?r.top=i.top-o:a>i.top+i.height&&(r.top=i.top+i.height-a)}else{var s=t.left-5,u=t.left+5+n.width;s<i.left?r.left=i.left-s:u>i.right&&(r.left=i.left+i.width-u)}return r}(i=null!==(r=h.autoPlacement)&&void 0!==r?r:a,h,f),v=document.body.getBoundingClientRect(),m={animationDelay:u?"".concat(u,"ms"):void 0};return h.left>v.width/2?m.right=v.width-(h.left+p.left+f.width):m.left=h.left+p.left,h.top>v.height/2?m.bottom=v.height-(h.top+p.top+f.height):m.top=h.top+p.top,(0,gt.createPortal)((0,e.jsxs)("div",{ref:c,role:"tooltip",className:"tooltip tooltip-".concat(i)+("string"==typeof s?" simple-text-tooltip":""),style:m,children:[(0,e.jsx)("div",{className:"tooltip-arrow tooltip-arrow-".concat(i),style:{transform:"translate(".concat(-p.left,"px, ").concat(-p.top,"px)")}}),s]}),wt(o))}var wt=function(e){if(mt)return mt;var t=(0,s.unwrap)((0,s.findParentWithClassName)(e,"gti-root"));return mt=(0,s.unwrap)(t.querySelector(".tooltip-root-container"))},kt=(0,X.X)({config:"gti.branch-display-choice",default:"pr-title"}),xt=(0,X.X)({config:"gti.branch-name-wrapping",default:"wrap"}),Ct=(0,ve.u)({default:[],effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("platform/availableCwds",(function(e){t(e.options)}));return function(){return n.dispose()}},function(){return u.H.onConnectOrReconnect((function(){return u.H.postMessage({type:"platform/subscribeToAvailableCwds"})}))}]}),Ot=((0,a.Pi)((function(){var t=Y.ip.get();if("success"!==(null==t?void 0:t.type))return null;var n=(0,s.basename)(t.repoRoot);return(0,e.jsx)(yt,{component:function(){return(0,e.jsx)(Ot,{})},placement:"bottom",children:(0,e.jsxs)(o.vD,{appearance:"icon","data-testid":"cwd-dropdown-button",children:[(0,e.jsx)(I.J,{icon:"folder",slot:"start"}),n]})})})),(0,a.Pi)((function(){var t=Y.ip.get(),n="success"===(null==t?void 0:t.type)?t.repoRoot:null,r=ye.get(),i=Y.ui.get();return(0,e.jsxs)(pt,{title:(0,e.jsx)(e.Fragment,{children:"Repository Info"}),icon:"folder","data-testid":"cwd-details-dropdown",children:[(0,e.jsx)(St,{}),(0,e.jsx)(vt,{title:(0,e.jsx)(e.Fragment,{children:"Active repository"}),children:(0,e.jsx)("code",{children:i})}),(0,e.jsx)(vt,{title:(0,e.jsx)(e.Fragment,{children:"Repository Root"}),children:(0,e.jsx)("code",{children:n})}),null!=r?(0,e.jsx)(vt,{title:(0,e.jsx)(e.Fragment,{children:"Remote"}),children:(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,e.jsx)(I.J,{style:{marginRight:"4px"},icon:"github"})," ",(0,e.jsx)(r.RepoInfo,{})]})}):null]})}))),St=(0,a.Pi)((function(){var t=Y.ui.get(),n=Ct.get();if(n.length<2)return null;var r=Ze(n);return(0,e.jsxs)(vt,{title:(0,e.jsx)(e.Fragment,{children:"Change active repository"}),children:[(0,e.jsx)(o.dm,{orientation:"vertical",value:t,onChange:function(e){var n=e.target.value;n!==t&&(u.H.postMessage({type:"changeCwd",cwd:n}),u.H.cwdChanged())},children:r.map((function(r,i){var a=n[i];return(0,e.jsx)(o.VK,{value:a,checked:a===t,tabIndex:0,children:(0,e.jsx)("span",{title:a,children:r},r)},r)}))}),(0,e.jsx)(o.y9,{})]})}));function Et(){return(0,e.jsx)(yt,{component:function(){return(0,e.jsx)("div",{className:"settings-dropdown",children:(0,e.jsx)(At,{})})},placement:"bottom",children:(0,e.jsx)(o.vD,{appearance:"icon","data-testid":"settings-gear-button",children:(0,e.jsx)(I.J,{icon:"gear"})})})}var Tt=(0,X.X)({config:"gti.modify-behavior",default:"amend"}),At=(0,a.Pi)((function(){var t=(0,k.F)(),n=Y.ip.get(),r=Y.cM.get(),i=Se.get(),a=Y.ui.get(),s=Ct.get(),l=s.length>1,c=Ze(s);return(0,e.jsxs)(e.Fragment,{children:[l?(0,e.jsx)(Rt,{title:(0,e.jsx)(e.Fragment,{children:"Repository"}),children:(0,e.jsx)(o.Yb,{value:a,onChange:function(e){var t=e.currentTarget.value;t!==a&&(u.H.postMessage({type:"changeCwd",cwd:t}),u.H.cwdChanged())},children:c.map((function(t,n){var r=s[n];return(0,e.jsx)(o.nH,{value:r,children:(0,e.jsx)("span",{title:r,children:t})},t)}))})}):null,"success"!==(null==n?void 0:n.type)?(0,e.jsx)(I.J,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Rt,{title:"Branch display format",subtitle:"Branch name or PR title",description:(0,e.jsx)(e.Fragment,{children:"Configure how branches are displayed in the tree view. If a branch does not yet have a PR open, its branch name will always be shown."}),children:(0,e.jsxs)(o.Yb,{value:kt.get(),onChange:function(e){var t=e.currentTarget.value;kt.set(t)},children:[(0,e.jsx)(o.nH,{value:"branch-name",children:"Branch name"}),(0,e.jsx)(o.nH,{value:"pr-title",children:"PR title (default)"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,{title:"Preferred modify behavior",subtitle:"Amend vs Commit",description:(0,e.jsxs)(e.Fragment,{children:["Configure how changes are applied to a branch."," ",(0,e.jsx)(o.Np,{href:"https://graphite.dev/docs/updating-mid-stack-branches",target:"_blank",children:(0,e.jsx)(e.Fragment,{children:"Learn More"})})]}),children:(0,e.jsxs)(o.Yb,{value:Tt.get(),onChange:function(e){var t=e.currentTarget.value;Tt.set(t)},children:[(0,e.jsx)(o.nH,{value:"commit",children:"Commit"}),(0,e.jsx)(o.nH,{value:"amend",children:"Amend (default)"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,{title:"Preferred submit state",subtitle:"Draft vs Published",description:(0,e.jsx)(e.Fragment,{children:"Configure how new PRs should be submitted. Note that GitHub does not allow draft PRs in free private repositories."}),children:(0,e.jsxs)(o.Yb,{value:Ie.get(),onChange:function(e){var t=e.currentTarget.value;Ie.set(t)},children:[(0,e.jsx)(o.nH,{value:"draft",children:"Draft (default)"}),(0,e.jsx)(o.nH,{value:"published",children:"Published"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,{title:"New branch names",subtitle:"Inferred vs Manual",description:(0,e.jsx)(e.Fragment,{children:"Would you rather Graphite infer names for new branches or require you to manually specify them."}),children:(0,e.jsxs)(o.Yb,{value:ft.get(),onChange:function(e){var t=e.currentTarget.value;ft.set(t)},children:[(0,e.jsx)(o.nH,{value:"infer",children:"Infer (default)"}),(0,e.jsx)(o.nH,{value:"manual",children:"Manual"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,{title:"Branch name wrapping",description:(0,e.jsx)(e.Fragment,{children:"Configure text wrapping for branch names."}),children:(0,e.jsxs)(o.Yb,{value:xt.get(),onChange:function(e){var t=e.currentTarget.value;xt.set(t)},children:[(0,e.jsx)(o.nH,{value:"wrap",children:"Wrap (default)"}),(0,e.jsx)(o.nH,{value:"nowrap",children:"Don't wrap"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(Rt,{title:"Open Stack Edit on submit",subtitle:"BETA",description:(0,e.jsx)(e.Fragment,{children:"If enabled, submit PRs via Stack Edit in your browser. Visually edit your stack's PRs, and apply labels & reviewers across multiple PRs. Must be in the Stack Edit beta (otherwise it will no-op)."}),children:(0,e.jsxs)(o.Yb,{value:Pe.get(),onChange:function(e){var t=e.currentTarget.value;Pe.set(t)},children:[(0,e.jsx)(o.nH,{value:"web",children:"Enabled (default)"}),(0,e.jsx)(o.nH,{value:"no-web",children:"Disabled"})]})})]}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"bug-dropdown-version",children:[null==r?(0,e.jsx)(I.J,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:["GTI version ",r.version," (",r.platformName,")"]}),(0,e.jsx)("br",{}),null==i?(0,e.jsx)(I.J,{icon:"loading"}):"ok"!==i.status?null:(0,e.jsxs)(e.Fragment,{children:["Ready to submit PRs as ",i.githubLogin]})]}),(0,e.jsxs)("div",{className:"bug-dropdown-actions",children:[(0,e.jsx)(o.vD,{appearance:"secondary",onClick:function(){t.openExternalLink("https://graphite.dev/docs/gti")},children:"View documentation"}),(0,e.jsx)(o.vD,{appearance:"secondary",onClick:function(){t.openExternalLink("https://community.graphite.dev")},children:"Help and feedback"})]})]})]})}));function Rt(t){var n=t.children,r=t.title,i=t.subtitle,o=t.description;return(0,e.jsxs)(vt,{title:r,children:[i?(0,e.jsx)("div",{className:"setting-subtitle",children:i}):null,o?(0,e.jsx)("div",{className:"setting-description",children:o}):null,n]})}var Dt=["UNTRACKED_ADD","UNTRACKED_REMOVE","UNTRACKED_MODIFY","UNTRACKED_COPY","UNTRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"],jt=["TRACKED_ADD","TRACKED_REMOVE","TRACKED_MODIFY","TRACKED_COPY","TRACKED_RENAME","PARTIALLY_TRACKED_ADD","PARTIALLY_TRACKED_REMOVE","PARTIALLY_TRACKED_MODIFY","PARTIALLY_TRACKED_COPY","PARTIALLY_TRACKED_RENAME"],It=(0,a.Pi)((function(){var n,r,i=ie.get(),a=Y.p7.get(),u=Y.ql.get(),l=oe.get(),c=(0,t.useRef)(null),f=(0,t.useRef)(null),h=(0,t.useState)(""),p=(0,d.Z)(h,2),v=p[0],m=p[1],g=(0,t.useState)(""),y=(0,d.Z)(g,2),b=y[0],w=y[1],k="manual"===ft.get();if((0,t.useEffect)((function(){k||w("")}),[k]),a)return(0,e.jsx)(_.W,{title:"Failed to fetch uncommitted changes",error:a});if(0===i.length&&!l)return null;var x=null!==(r=null===(n=null==l?void 0:l.files)||void 0===n?void 0:n.every((function(e){return"RESOLVED"===e.status})))&&void 0!==r&&r,C=i.filter((function(e){return jt.includes(e.status)})).length>0,O=!l&&C,S=!(null==u?void 0:u.partOfTrunk),E=Tt.get(),T=C?"amend"===E||v?"amend"===E&&v?"Title not supported on amends":b?"Branch name not supported on modify":void 0:"Title required":"No changes staged",A=v?!b&&k?"Branch name required":void 0:"Title required";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ge,{files:i,comparison:{type:s.ComparisonType.UncommittedChanges}}),l?(0,e.jsx)(Pt,{allConflictsResolved:x,conflicts:l}):O?(0,e.jsxs)("div",{className:"uncommitted-changes-actions",children:[k?(0,e.jsx)(o.OG,{placeholder:"Branch name",value:b,onKeyUp:function(e){var t,n,r;"Enter"!==e.key?w(null!==(r=null===(n=e.target)||void 0===n?void 0:n.value)&&void 0!==r?r:""):null===(t=f.current)||void 0===t||t.focus()}}):null,(0,e.jsx)(o.OG,{placeholder:"Title",ref:f,value:v,onKeyUp:function(e){var t,n,r;"Enter"!==e.key?m(null!==(r=null===(n=e.target)||void 0===n?void 0:n.value)&&void 0!==r?r:""):null===(t=c.current)||void 0===t||t.click()}}),(0,e.jsxs)("div",{className:"uncommitted-changes-buttons",children:[S?(0,e.jsx)(o.vD,{className:"commit-modify-button",appearance:"secondary",disabled:!!T,title:T,onClick:function(){(0,Y.tD)(new lt(E,"commit"===E?Object.assign(Object.assign({},{title:"",description:""}),{title:null!=v?v:""}):void 0))},children:"commit"===E?"Commit to the current branch":"Modify the current branch"}):null,(0,e.jsx)(o.vD,{className:"commit-modify-button",ref:c,disabled:!!A,title:A,onClick:function(){var e;(0,Y.tD)(new ct(Object.assign(Object.assign({},{title:"",description:""}),{title:null!=v?v:""}),k?b:null,null!==(e=null==u?void 0:u.branch)&&void 0!==e?e:""))},children:"Create a new branch"})]})]}):null]})})),Pt=(0,a.Pi)((function(t){var n=t.conflicts,r=t.allConflictsResolved,i=Y.il.get().currentOperation,a=(null==i?void 0:i.operation)instanceof dt&&0===i.exitCode,s=(null==i?void 0:i.operation)instanceof ut&&0===i.exitCode,u=!!se(dt),l=!!se(ut),c=u||l||a||s;return(0,e.jsxs)("div",{className:"conflict-resolution-buttons",children:[(0,e.jsx)(o.vD,{appearance:"secondary",disabled:c,onClick:function(){(0,Y.tD)(new ut(n))},children:"Abort"},"abort"),(0,e.jsx)(o.vD,{appearance:"primary",disabled:!r||c,"data-testid":"conflict-continue-button",onClick:function(){(0,Y.tD)(new dt)},children:"Continue"},"continue")]})})),Nt=(0,a.Pi)((function(){var n,r,i=(0,k.F)(),a=ie.get(),s=W.get(),u=function(){var e=3*document.body.clientHeight/4,n=(0,t.useState)(!1),r=(0,d.Z)(n,2),i=r[0],o=r[1],a=(0,t.useRef)(null),s=ee.get(),u=(0,t.useState)(null),l=(0,d.Z)(u,2),c=l[0],f=l[1],h=c||s||Mt,p=(0,t.useRef)();(0,t.useEffect)((function(){null!==c&&(null!==p.current&&clearTimeout(p.current),p.current=setTimeout((function(){ee.set(c),p.current=null}),500))}),[c]);var v=(0,t.useState)(!1),m=(0,d.Z)(v,2),g=m[0],y=m[1],b=(0,t.useState)(void 0),_=(0,d.Z)(b,2),w=_[0],k=_[1],x=(0,t.useState)(0),C=(0,d.Z)(x,2),O=C[0],S=C[1],E=(0,t.useCallback)((function(e){e.preventDefault(),k(e.clientY),a.current&&S(a.current.getBoundingClientRect().top-e.clientY),y(!0)}),[]),T=function(t){if(!i&&g&&w&&void 0!==h&&a.current){var n=a.current.getBoundingClientRect();if(!i&&n){var r=n.bottom-t.clientY-O;f(Math.min(Math.max(Mt,r),e))}}},A=function(){y(!1)};return(0,t.useEffect)((function(){return document.addEventListener("mousemove",T),document.addEventListener("mouseup",A),document.addEventListener("mouseleave",A),function(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",A),document.removeEventListener("mouseleave",A)}})),(0,t.useMemo)((function(){return{resizerOnMouseDown:E,containerRef:a,isCollapsed:i,setIsCollapsed:o,height:h}}),[h,a,E,i,o])}(),l=u.height,c=u.isCollapsed,f=u.setIsCollapsed,h=u.containerRef,v=u.resizerOnMouseDown;if((0,t.useEffect)((function(){return(0,p.U5)((function(){return W.get()}),(function(){return f(!1)}))}),[f]),(0,t.useEffect)((function(){return(0,p.U5)((function(){return oe.get()}),(function(){return W.set(void 0)}))}),[]),!s&&0===a.length&&!oe.get())return null;var m=!s&&a.length>0&&!oe.get(),g=a.some((function(e){return Dt.includes(e.status)})),y=a.filter((function(e){return jt.includes(e.status)})),b=y.length>0,_=s?null:(0,p.Fl)((function(){var e,t,n;return oe.get()?{num:null!==(n=null===(t=null===(e=oe.get())||void 0===e?void 0:e.files)||void 0===t?void 0:t.length)&&void 0!==n?n:0,title:" conflicting files"}:a.length>0?{num:y.length,title:" staged files"}:null})).get();return(0,e.jsxs)("div",{className:"bottom-panel-parent",children:[!c&&(0,e.jsx)("div",{className:"bottom-panel-resizer",onMouseDown:v}),(0,e.jsxs)("div",{className:"bottom-panel-title",onClick:function(){return f((function(e){return!e}))},children:[(0,e.jsx)(I.J,{icon:c?"chevron-right":"chevron-down",slot:"start"}),(0,e.jsx)("span",{className:"bottom-panel-title-text",children:null!==(r=null===(n=G.get())||void 0===n?void 0:n.branch)&&void 0!==r?r:oe.get()?"UNRESOLVED CONFLICTS":"UNCOMMITTED CHANGES"}),_?(0,e.jsx)("span",{className:"bottom-panel-num-files",title:"".concat(_.num).concat(_.title),children:_.num}):null,(0,e.jsx)("div",{className:"bottom-panel-right",children:m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,{disabled:!g,appearance:"icon",onClick:function(e){e.stopPropagation(),(0,Y.tD)(new V)},children:(0,e.jsx)(I.J,{icon:"add"})},"allall"),(0,e.jsx)(o.vD,{disabled:!b,appearance:"icon",onClick:function(e){e.stopPropagation(),(0,Y.tD)(new q)},children:(0,e.jsx)(I.J,{icon:"remove"})},"reset"),(0,e.jsx)(o.vD,{title:"Discard all changes",appearance:"icon",onClick:function(e){e.stopPropagation();var t=a.map((function(e){return e.path}));i.confirm("Are you sure you want to discard your ".concat(t.length," selected change").concat(1===t.length?"":"s","? Discarded changes cannot be recovered.")).then((function(e){e&&((0,Y.tD)(new U),(0,Y.tD)(new K))}))},children:(0,e.jsx)(I.J,{icon:"trashcan"})})]}):null}),(0,e.jsx)(fe,{})]}),c?null:(0,e.jsx)("div",{style:{height:"".concat(l,"px")},ref:h,className:"bottom-panel-content",children:s?(0,e.jsx)(it,{}):(0,e.jsx)(It,{})})]})})),Mt=120;function Lt(e){var n=e.children,r=e.hideUntil,i=(0,t.useState)(!1),o=(0,d.Z)(i,2),a=o[0],s=o[1];return(0,t.useEffect)((function(){var e=r.getTime()-Date.now();if(e>0){s(!1);var t=setTimeout((function(){s(!0)}),e);return function(){return clearTimeout(t)}}s(!0)}),[r,s]),a?n:null}function Zt(t){var n=t.operation,r=t.className,i=n.getDescriptionForDisplay();return(null==i?void 0:i.description)?(0,e.jsx)("span",{className:r,children:i.description}):(0,e.jsx)("code",{className:r,children:"gt "+n.getArgs().map((function(e){if("object"==typeof e)switch(e.type){case"repo-relative-file":return e.path;case"succeedable-revset":return e.revset}return e})).join(" ")})}var zt=(0,a.Pi)((function(){var t,n=Y.il.get(),r=Y.zV.get(),i=(0,Y.xn)(),a=Y.ip.get();if("success"!==(null==a?void 0:a.type))return null;var s=n.currentOperation;if(null==s)return(0,e.jsx)("div",{className:"progress-container","data-testid":"progress-container"});var u,l=s.operation.getDescriptionForDisplay(),c=(0,e.jsx)(Zt,{operation:s.operation,className:"progress-container-command"}),d=null;if(null==s.exitCode){u=(0,e.jsx)(I.J,{icon:"loading"});var f=new Date(((null===(t=s.startTime)||void 0===t?void 0:t.getTime())||0)+1e4);d=(0,e.jsx)(Lt,{hideUntil:f,children:(0,e.jsxs)(o.vD,{appearance:"secondary","data-testid":"abort-button",disabled:s.aborting,onClick:function(){i(s.operation.id)},children:[(0,e.jsx)(I.J,{slot:"start",icon:s.aborting?"loading":"stop-circle"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]})})}else u=0===s.exitCode?(0,e.jsx)(I.J,{icon:"pass","aria-label":"Command exited successfully"}):s.aborting?(0,e.jsx)(I.J,{icon:"stop-circle","aria-label":"Command aborted"}):(0,e.jsx)(I.J,{icon:"error","aria-label":"Command exited unsuccessfully"});return(0,e.jsxs)("div",{className:"progress-container","data-testid":"progress-container",children:[(0,e.jsxs)("div",{className:"progress-container-row",children:[u,c,(0,e.jsx)(yt,{className:"progress-command-tooltip",component:function(){var t;return(0,e.jsx)("div",{className:"progress-command-tooltip",children:(null==l?void 0:l.tooltip)||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"progress-command-tooltip-command",children:[(0,e.jsx)("strong",{children:"Command: "}),(0,e.jsx)(Zt,{operation:s.operation,long:!0})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Command output:"}),(0,e.jsx)("br",{}),(0,e.jsx)("pre",{children:(null===(t=s.commandOutput)||void 0===t?void 0:t.join(""))||"No output"}),r.length>0?(0,e.jsxs)("div",{className:"queued-operations-container","data-testid":"queued-commands",children:[(0,e.jsx)("strong",{children:"Next to run"}),r.map((function(t){return(0,e.jsx)("div",{id:t.id,className:"queued-operation",children:(0,e.jsx)(Zt,{operation:t})},t.id)}))]}):null]})})},children:(0,e.jsx)(I.J,{title:"View command output",icon:"info"})})]}),d]})}));function Ft(){return(0,e.jsx)("div",{"data-testid":"loading-spinner",children:(0,e.jsx)(I.J,{icon:"loading",size:"L"})})}function Bt(t){var n=t.children;return(0,e.jsx)("div",{className:"center-container",children:n})}var Vt=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,O.Z)(this,n),t.call(this,"CreateEmptyInitialCommit")}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["internal-only","init"]}}]),n}(B);Vt.opName="CreateEmptyInitialCommit";var Ht=(0,a.Pi)((function(){var n,r=(0,t.useState)(void 0),i=(0,d.Z)(r,2),a=i[0],s=i[1],u=Y.il.get().currentOperation;return null==u||null==u.exitCode||0===u.exitCode||u.aborting||u===a?null:(0,e.jsx)(_.W,{hideExpand:!0,title:"Command failed",description:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"progress-command-tooltip-command",children:(0,e.jsx)(Zt,{operation:u.operation,long:!0})}),(0,e.jsx)("pre",{children:(null===(n=u.commandOutput)||void 0===n?void 0:n.join(""))||"No output"})]}),buttons:[(0,e.jsx)(o.vD,{appearance:"secondary",onClick:function(e){s(u),e.preventDefault(),e.stopPropagation()},children:(0,e.jsx)(e.Fragment,{children:"Dismiss"})},"0")]})})),Ut=6e4,Kt=36e5,qt=24*Kt,$t=7*qt,Yt=365*qt,Wt=Yt/12,Gt=[[42e3,"now"],[9e4,"1m"],[36e5,"m",Ut],[54e5,"1h"],[qt,"h",Kt],[2*qt,"1d"],[7*qt,"d",qt],[1.5*$t,"1w"],[Wt,"w",$t],[1.5*Wt,"1mo"],[Yt,"mo",Wt],[1.5*Yt,"1y"],[Number.MAX_VALUE,"y",Yt]],Qt=[[42e3,"less than a minute"],[9e4,"one minute"],[36e5,"minutes",Ut],[54e5,"one hour"],[qt,"hours",Kt],[2*qt,"one day"],[7*qt,"days",qt],[1.5*$t,"one week"],[Wt,"weeks",$t],[1.5*Wt,"one month"],[Yt,"months",Wt],[1.5*Yt,"one year"],[Number.MAX_VALUE,"years",Yt]],Jt=[[42e3,"just now"],[9e4,"a minute ago"],[36e5,"minutes ago",Ut],[54e5,"an hour ago"],[qt,"hours ago",Kt],[2*qt,"yesterday"],[7*qt,"days ago",qt],[1.5*$t,"a week ago"],[Wt,"weeks ago",$t],[1.5*Wt,"a month ago"],[Yt,"months ago",Wt],[1.5*Yt,"a year ago"],[Number.MAX_VALUE,"years ago",Yt]],Xt=[[42e3,"just now"],[9e4,"1 minute ago"],[36e5,"minutes ago",Ut],[54e5,"1 hour ago"],[qt,"hours ago",Kt],[2*qt,"yesterday"],[7*qt,"days ago",qt],[1.5*$t,"1 week ago"],[Wt,"weeks ago",$t],[1.5*Wt,"1 month ago"],[Yt,"months ago",Wt],[1.5*Yt,"1 year ago"],[Number.MAX_VALUE,"years ago",Yt]];function en(e,t){var n=e,r=t.reference;n instanceof Date&&(n=n.getTime()),r||(r=(new Date).getTime()),r instanceof Date&&(r=r.getTime());var i,o=r-n,a=t.useRelativeForm?Qt:t.useShortVariant?Gt:t.useNumbersOnly?Xt:Jt,s=(0,ne.Z)(a);try{for(s.s();!(i=s.n()).done;){var u=(0,d.Z)(i.value,3),l=u[0],c=u[1],f=u[2];if(o<l)return"number"==typeof f?Math.round(o/f)+(t.useShortVariant?"":" ")+c:c}}catch(e){s.e(e)}finally{s.f()}throw new Error("This should never be reached.")}function tn(t){var n=t.date,r=t.reference,i=t.useShortVariant,o=t.useNumbersOnly,a=t.useRelativeForm;return(0,e.jsx)(e.Fragment,{children:en(n,{reference:r,useShortVariant:i,useNumbersOnly:o,useRelativeForm:a})})}var nn=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"DeleteBranchOperation")).branch=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["delete",this.branch,"--force"]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n,r){return e.info.branch===t.branch?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(B);nn.opName="DeleteBranch";var rn=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"HideOperation")).source=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["untrack","--force",this.source]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.source))return function(e,n,r){return e.info.branch===t.source?{info:null}:{info:e.info,children:e.children,previewType:n,childPreviewType:r}}}}]),n}(B);rn.opName="Hide";var on=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r){var i;return(0,O.Z)(this,n),(i=t.call(this,"PopOperation")).originalHeadCommit=e,i.files=r,i}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["pop"]}},{key:"makeOptimisticApplier",value:function(e){var t,n=this;if((null===(t=e.headCommit)||void 0===t?void 0:t.branch)===this.originalHeadCommit.branch)return function(e,t){return e.info.branch===n.originalHeadCommit.branch?{info:null}:n.originalHeadCommit.parents[0]===e.info.branch?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children}:{info:e.info,children:e.children,previewType:t}}}},{key:"makeOptimisticUncommittedChangesApplier",value:function(e){var t=this.files,n=new Set(e.uncommittedChanges.map((function(e){return e.path})));if(!t.every((function(e){return n.has(e.path)})))return function(e){var r=t.filter((function(e){return!n.has(e.path)}));return[].concat((0,te.Z)(e),(0,te.Z)(r))}}}]),n}(B);on.opName="Pop";var an=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e,r){var i;return(0,O.Z)(this,n),(i=t.call(this,"RebaseOperation")).source=e,i.destination=r,i}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["move","--onto",this.destination,"--source",this.source]}},{key:"makePreviewApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:J.REBASE_ROOT,childPreviewType:J.REBASE_DESCENDANT}:{info:e.info,children:e.children,previewType:J.REBASE_OLD,childPreviewType:J.REBASE_OLD}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,te.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:n}}}}},{key:"makeOptimisticApplier",value:function(e){var t=this,n=e.treeMap.get(this.source);if(null!=n){var r,i=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});return function(e,n,o){return e.info.branch===t.source?e.info.parents[0]===r?{info:e.info,children:e.children,previewType:J.REBASE_OPTIMISTIC_ROOT,childPreviewType:J.REBASE_OPTIMISTIC_DESCENDANT}:{info:null}:e.info.branch===t.destination?(r=e.info.branch,i.info.parents=[r],{info:e.info,children:[].concat((0,te.Z)(e.children),[i])}):{info:e.info,children:e.children,previewType:n,childPreviewType:o}}}}}]),n}(B);an.opName="Rebase";var sn=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"RestackOperation")).branch=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["restack","--branch",this.branch]}},{key:"makeOptimisticApplier",value:function(e){var t=this;if(null!=e.treeMap.get(this.branch))return function(e,n){return e.info.branch===t.branch?{info:Object.assign(Object.assign({},e.info),{needsRestack:!1}),children:e.children}:{info:e.info,children:e.children}}}}]),n}(B);sn.opName="restack";var un=n(5729),ln=(0,a.Pi)((function(t){var n=t.diffId,r=ye.get();return null==r?null:(0,e.jsx)(fn,{provider:r,diffId:n,children:(0,e.jsx)(dn,{diffId:n,provider:r})})})),cn=(0,a.Pi)((function(n){var r=this,i=n.diff,o=n.children,a=n.url,s=n.provider,u=(0,k.F)(),l=(0,t.useCallback)((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(r,0,void 0,h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.copyToClipboard(null!==(t=null==i?void 0:i.number)&&void 0!==t?t:"");case 2:case"end":return e.stop()}}),e)})))}),[null==i?void 0:i.number,u]),c=v((function(){return[{label:(0,e.jsxs)(e.Fragment,{children:['Copy PR number "',null==i?void 0:i.number,'"']}),onClick:l}]}));return(0,e.jsx)("a",{href:a,className:"diff-badge github-diff-badge",onContextMenu:i?c:void 0,children:(0,e.jsx)(s.DiffBadgeContent,{diff:i,children:o})})})),dn=(0,a.Pi)((function(t){var n=t.diffId,r=t.provider,i=Y.ip.get(),o=be(n).get();if(o.error||null!=i&&"success"!==(null==i?void 0:i.type))return(0,e.jsx)(hn,{number:r.formatDiffNumber(n),provider:r});if(null==(null==o?void 0:o.value)||null==i||"none"===i.codeReviewSystem.type)return null;var a=o.value;return(0,e.jsx)("div",{className:"diff-info github-diff-info","data-testid":"github-diff-info",children:(0,e.jsx)(cn,{provider:r,diff:a,url:"".concat(i.profile.appUrl,"/github/pr/").concat(i.codeReviewSystem.owner,"/").concat(i.codeReviewSystem.repo,"/").concat(a.number)})})})),fn=function(t){(0,S.Z)(r,t);var n=(0,E.Z)(r);function r(){var e;return(0,O.Z)(this,r),(e=n.apply(this,arguments)).state={error:null},e}return(0,C.Z)(r,[{key:"render",value:function(){var t=this.props;return null!=this.state.error?(0,e.jsx)(hn,{provider:t.provider,number:t.provider.formatDiffNumber(t.diffId)}):t.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),r}(t.Component);function hn(t){var n=t.number,r=t.provider;return(0,e.jsxs)("span",{className:"diff-error diff-info","data-testid":"github-error",children:[(0,e.jsx)(cn,{provider:r,children:(0,e.jsx)(I.J,{icon:"error"})})," ",n]})}var pn=function(t){var n=t.depth,r=t.isCurved,i=t.dashedLevels,o=t.branchless,a=t.child,s=t.highlighted,u=t.checkedOut;return(0,e.jsx)("div",{className:"branch-indicator-container",children:Array.from({length:n+1},(function(t,l){var c=i.includes(l);return l!==n?(0,e.jsx)(gn,{dashed:c},l):r?(0,e.jsx)(mn,{dashed:c,highlighted:s,end:o?"no-circle":"".concat(a,"-child"),filled:u},l):o?(0,e.jsx)(gn,{dashed:c,isLast:!0},l):(0,e.jsx)(vn,{dashed:c,highlighted:s,child:a,filled:u},l)}))})},vn=function(t){var n=t.dashed,r=t.child,i=t.highlighted,o=t.filled;return(0,e.jsxs)("div",{className:"branch-indicator-flex-grow",children:[(0,e.jsxs)("svg",{width:"22",height:"34",viewBox:"0 0 22 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:"0"},children:["no"!==r&&(0,e.jsx)("path",{d:"M11 14V0",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"dashed"===r?"2.2":void 0}),(0,e.jsx)("defs",{}),(0,e.jsx)("circle",{className:"circle"+(i?" highlighted":""),r:i?"4":"3",cx:"11",cy:"17",transform:"rotate(180 11 17)",stroke:"currentColor",strokeWidth:"2",fill:o?"currentColor":void 0}),(0,e.jsx)("path",{d:"M11 20V34",stroke:"currentColor",strokeWidth:"2",strokeDasharray:n?"2.2":void 0})]}),(0,e.jsx)(gn,{dashed:n})]})},mn=function(t){var n=t.dashed,r=t.end,i=t.highlighted,o=t.filled;return(0,e.jsxs)("svg",{className:"curve",width:"22",height:"34",viewBox:"0 0 22 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:"0"},children:["no-circle"===r?(0,e.jsx)("path",{d:"M14 0V17",stroke:"currentColor",strokeWidth:"2",strokeDasharray:n?"2.2":void 0}):(0,e.jsxs)(e.Fragment,{children:["no-child"!==r&&(0,e.jsx)("path",{d:"M14 0V14",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"dashed-child"===r?"2.2":void 0}),(0,e.jsx)("circle",{className:"circle"+(i?" highlighted":""),r:i?"4":"3",cx:"14",cy:"17",transform:"rotate(180 14 17)",stroke:"currentColor",strokeWidth:"2",fill:o?"currentColor":void 0})]}),(0,e.jsx)("path",{d:"M14 20C14 25 11 27 8 27C5 27 2 29 2 34",stroke:"currentColor",strokeWidth:"2",strokeDasharray:n?"2.2":void 0})]})},gn=function(t){var n=t.isLast,r=t.dashed,i=n?22:12;return(0,e.jsx)("div",{className:"branch-indicator-flex-grow",children:(0,e.jsx)("svg",{width:i,height:"34",style:{height:"0",flexShrink:"1",flexGrow:"1"},viewBox:"0 0 ".concat(i," 34"),fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("path",{d:"M 11 0 V34",stroke:"currentColor",vectorEffect:"non-scaling-stroke",strokeWidth:"2",strokeDasharray:r?"2.2":void 0})})})},yn=(0,a.Pi)((function(n){var r,i,a=this,u=n.depth,l=n.tree,c=n.firstChildNeedsRestack,d=n.isIndicatorCurved,f=n.dashedLevels,p=(0,k.F)(),m=l.info,g=l.previewType,y=l.children.length>0,b=m.partOfTrunk,_=oe.get(),w=Me.has(m.branch),x=function(e){switch(e){case J.REBASE_OLD:case J.REBASE_DESCENDANT:case J.REBASE_ROOT:case J.HIDDEN_DESCENDANT:case J.NON_ACTIONABLE_COMMIT:return!0;case J.REBASE_OPTIMISTIC_ROOT:case J.REBASE_OPTIMISTIC_DESCENDANT:case J.GOTO_DESTINATION:case J.GOTO_PREVIOUS_LOCATION:case J.STACK_EDIT_ROOT:case J.STACK_EDIT_DESCENDANT:case void 0:return!1}}(g),C=(0,t.useCallback)((function(){ue._.set({comparison:{type:s.ComparisonType.Committed,hash:m.branch},visible:!0})}),[m]),O=g===J.REBASE_ROOT||g===J.REBASE_DESCENDANT,S=(0,t.useCallback)((function(){O||(0,Y.tD)(new he(m.branch))}),[O,m.branch]),E=(0,t.useCallback)((function(){Ne(m.branch)}),[m.branch]),T=ke(m.branch),A="Submit ".concat(T.length>1?"".concat(T.length," PRs"):"PR"),R=be(null===(r=m.pr)||void 0===r?void 0:r.number).get(),D=R.value&&"OPEN"!==R.value.state,j=v((function(){var t=[{label:(0,e.jsx)(e.Fragment,{children:"Copy branch name"}),onClick:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,a)}s((r=r.apply(e,[])).next())}))}(a,0,void 0,h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.copyToClipboard(m.branch);case 2:case"end":return e.stop()}}),e)})))}}];if(x||m.isHead||t.push({label:(0,e.jsx)(e.Fragment,{children:"Checkout branch"}),onClick:S}),!b&&m.isHead&&!y&&!m.pr){var n=De(m.branch).get();t.push({label:(0,e.jsx)(e.Fragment,{children:"Pop branch"}),onClick:function(){var e;return(0,Y.tD)(new on(m,(null===(e=n.data)||void 0===e?void 0:e.files)||[]))}})}return b||p.openDiff||t.push({label:(0,e.jsx)(e.Fragment,{children:"View changes in branch"}),onClick:C}),b||x||t.push({label:(0,e.jsx)(e.Fragment,{children:"Untrack"}),onClick:function(){p.confirm("Are you sure you want to untrack ".concat(m.branch,"?").concat(y?" This will also untrack upstack branches.":"")).then((function(e){return e&&(0,Y.tD)(new rn(m.branch))}))}}),b||x||D||t.push({label:(0,e.jsx)(e.Fragment,{children:"Delete branch"}),onClick:function(){p.confirm("Are you sure you want to delete ".concat(m.branch,"? Deleted branches cannot be recovered.")).then((function(e){return e&&(0,Y.tD)(new nn(m.branch))}))}}),t})),P=m.isHead||(null==_?void 0:_.branchName)===m.branch,N=kn.commitBeingDragged,M=N&&Y.uB.get().get(N.branch),L=M&&(0,un.SG)(m.branch,M),Z=Y.ip.get(),z="success"===(null==Z?void 0:Z.type)&&Z.trunkBranch,F=z&&m.branch!==z&&!m.parents.includes(z)&&xe(i=l.info.branch).every((function(e){var t;if(e.partOfTrunk)return!0;var n=be(null===(t=e.pr)||void 0===t?void 0:t.number).get(),r=n.value&&"OPEN"!==n.value.state;return e.branch!==i===r})),B=ie.get().length>0,V=F?(0,e.jsx)(Le,{disabled:x,toHighlight:wn(l),children:(0,e.jsx)(o.vD,{appearance:"icon",onClick:function(){(0,Y.tD)(new an(l.info.branch,z))},disabled:x,title:"Move to ".concat(z),children:(0,e.jsx)("div",{className:"restack-button",children:(0,e.jsx)(I.J,{size:"SM",icon:"newline"})})})}):m.needsRestack?(0,e.jsx)(Le,{disabled:x,title:"The parent branch has been updated, and children branches need to be restacked to incorporate those changes.",toHighlight:wn(l),children:(0,e.jsx)(o.vD,{appearance:"icon",title:"Restack",onClick:function(){(0,Y.tD)(new sn(l.info.branch))},disabled:x,children:(0,e.jsx)(I.J,{size:"SM",icon:"fold-up"})})}):null,H=oe.get(),U=P&&B&&!H,K="pr-title"===kt.get()&&m.title,q=!b&&function(e){switch(e){case J.REBASE_DESCENDANT:case J.REBASE_OLD:case J.HIDDEN_DESCENDANT:return!1;case J.REBASE_ROOT:case J.REBASE_OPTIMISTIC_DESCENDANT:case J.REBASE_OPTIMISTIC_ROOT:case J.GOTO_DESTINATION:case J.GOTO_PREVIOUS_LOCATION:case J.STACK_EDIT_ROOT:case J.STACK_EDIT_DESCENDANT:case J.NON_ACTIONABLE_COMMIT:case void 0:return!0}}(g),$=q&&0===Y.OR.get().length;return(0,e.jsxs)(e.Fragment,{children:[U?(0,e.jsx)(_n,{depth:u+(y?1:0),isIndicatorCurved:y,dashedLevels:f}):null,!g&&kn.branchBeingDraggedOver===m.branch&&(0,e.jsx)("div",{className:"branch-drag-over"}),(0,e.jsxs)(On,{className:"branch"+((H&&P&&void 0===W.get()||W.get()===m.branch)&&!O?" branch-focused":"")+(P?" branch-checked-out":"")+(L?" branch-in-stack-being-dragged":"")+(null!=g?" branch-preview-".concat(g):""),commit:m,draggable:q,onClick:function(){O||W.set(P&&H?void 0:m.branch)},onDoubleClick:S,onContextMenu:j,children:[(0,e.jsx)(pn,{child:y||U?c?"dashed":"solid":"no",depth:u,isCurved:d,dashedLevels:[].concat((0,te.Z)(f),(0,te.Z)(m.needsRestack?[u]:[])),highlighted:w,checkedOut:P}),P&&g!==J.REBASE_ROOT&&g!==J.REBASE_DESCENDANT?(0,e.jsx)("div",{className:"branch-checkout-triangle"}):null,(0,e.jsxs)("span",{title:K?m.branch:m.title,className:"branch-name"+("wrap"===xt.get()?" branch-name-wrap":" branch-name-nowrap")+(P&&H?" unresolved-conflicts":""),children:[l.previewType===J.REBASE_ROOT?"Move ":"",K?m.title:(0,e.jsx)("code",{children:m.branch}),l.previewType===J.REBASE_ROOT?"?":"",P&&H?" (unresolved conflicts)":""]}),P&&H||l.previewType===J.REBASE_DESCENDANT?null:(0,e.jsx)("div",{className:"branch-end",children:l.previewType===J.REBASE_ROOT?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,{appearance:"icon",onClick:Y.U8,children:(0,e.jsx)(I.J,{size:"SM",icon:"close"})}),(0,e.jsx)(o.vD,{appearance:"icon",onClick:Y.S7,children:(0,e.jsx)(I.J,{size:"SM",icon:"check"})})]}):(0,e.jsxs)(e.Fragment,{children:[V,D?(0,e.jsx)(o.vD,{appearance:"icon",title:"Delete branch",onClick:function(){p.confirm("Are you sure you want to delete ".concat(m.branch,"? Deleted branches cannot be recovered.")).then((function(e){return e&&(0,Y.tD)(new nn(m.branch))}))},children:(0,e.jsx)(I.J,{size:"SM",icon:"trashcan"})}):null,Ee.get()&&!x&&!Ce(m.branch)&&T.length>0&&!Oe(m.branch)&&(0,e.jsx)(Le,{toHighlight:T,title:A,children:(0,e.jsx)(o.vD,{appearance:"icon",onClick:function(e){e.stopPropagation(),E()},children:(0,e.jsx)(I.J,{size:"SM",icon:"cloud-upload"})})}),(0,e.jsx)("div",{className:"pr-badge-container",children:m.pr?(0,e.jsx)(ln,{diffId:m.pr.number}):null}),(0,e.jsx)(bn,{date:new Date(m.date)}),(0,e.jsx)("div",{className:"branch-gripper"+($?"":" branch-gripper-disabled"),title:$?"Drag and drop to move onto another branch":"Cannot move a branch while you have uncommitted changes",children:(0,e.jsx)(I.J,{size:"SM",icon:"gripper"})})]})})]})]})}));function bn(t){var n=t.date;return(0,e.jsx)("span",{className:"branch-date",children:(0,e.jsx)(tn,{date:n,useShortVariant:!0})})}var _n=(0,a.Pi)((function(t){var n=t.depth,r=t.isIndicatorCurved,i=t.dashedLevels,o=oe.get(),a=ie.get();return o||0!==a.length?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"branch"+(void 0===W.get()?" branch-focused":""),onClick:(0,p.aD)((function(){W.set(void 0)})),children:[(0,e.jsx)(pn,{child:"no",depth:n,isCurved:r,dashedLevels:i}),(0,e.jsx)("span",{className:"branch-name "+(o?"unresolved-conflicts":"uncommitted-changes"),children:o?"Unresolved conflicts":"Uncommitted changes"})]})}):null}));function wn(e){return[e.info].concat((0,te.Z)(e.children.flatMap((function(e){return wn(e)}))))}var kn=(0,p.LO)({commitBeingDragged:void 0,branchBeingDraggedOver:void 0}),xn=(0,p.aD)((function(e){if(kn.commitBeingDragged&&e.branch!==kn.commitBeingDragged.branch){var t=Y.uB.get().get(kn.commitBeingDragged.branch);!t||(0,un.SG)(e.branch,t)||kn.commitBeingDragged.parents.includes(e.branch)?kn.branchBeingDraggedOver=void 0:kn.branchBeingDraggedOver=e.branch}else kn.branchBeingDraggedOver=void 0})),Cn=(0,p.aD)((function(){var e=kn.commitBeingDragged,t=kn.branchBeingDraggedOver;e&&t&&Y.wf.set(new an(e.branch,t)),kn.commitBeingDragged=void 0,kn.branchBeingDraggedOver=void 0})),On=(0,a.Pi)((function(n){var r=n.commit,i=n.children,o=n.className,a=n.draggable,s=n.onClick,u=n.onDoubleClick,l=n.onContextMenu,c=(0,t.useRef)(null),d=(0,t.useCallback)((function(e){var t=c.current;if(Y.OR.get().length>0||!t)e.preventDefault();else{var n=t.cloneNode(!0);n.style.opacity="0",document.body.appendChild(n),e.dataTransfer.setDragImage(n,0,0),(0,p.z)((function(){kn.commitBeingDragged=r})),e.target.addEventListener("dragend",Cn)}}),[r]),f=(0,t.useCallback)((function(){return xn(r)}),[r]);return(0,e.jsx)("div",{ref:c,className:o,onDragStart:d,onDragEnter:f,draggable:a,onClick:s,onDoubleClick:u,onKeyPress:function(e){"Enter"===e.key&&(null==s||s(e))},onContextMenu:l,tabIndex:0,"data-testid":"draggable-commit",children:i})})),Sn=(0,ve.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedRepoMessage",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchRepoMessage"})}))},function(e){var t=e.setSelf;return u.H.onCwdChanged((function(){return t("")}))}]}),En=(0,a.Pi)((function(){var t=Sn.get();return t?(0,e.jsx)(c,{title:t}):null})),Tn=(0,p.Fl)((function(){return ae.get().trees.map((function(e){return jn({tree:e})}))})),An=(0,a.Pi)((function(){!function(){var e=Y.gi.get(),n=Y.lp.get(),r=Y.ql.get(),i=Y.uB.get(),o=Y.cC.get(),a=Y.SC.get(),u=Y.il.get();(0,t.useEffect)((function(){for(var t,l,c,d,f=[],h={trees:n,headCommit:r,treeMap:i},p={uncommittedChanges:null!==(t=o.files)&&void 0!==t?t:[]},v={conflicts:a},m=u.currentOperation,g=0,y=[].concat((0,te.Z)(u.operationHistory),[m]);g<y.length;g++){var b=y[g];b&&f.push(E(b,h,p,v))}if(f.some(s.notEmpty)){for(var _=(0,te.Z)(u.operationHistory),w=null==u.currentOperation?void 0:Object.assign({},u.currentOperation),k=0;k<f.length-1;k++){if(null===(l=f[k])||void 0===l?void 0:l.commits){var x=_[k];x&&(_[k]=Object.assign(Object.assign({},x),{hasCompletedOptimisticState:!0}))}if(null===(c=f[k])||void 0===c?void 0:c.files){var C=_[k];C&&(_[k]=Object.assign(Object.assign({},C),{hasCompletedUncommittedChangesOptimisticState:!0}))}if(null===(d=f[k])||void 0===d?void 0:d.conflicts){var O=_[k];O&&(_[k]=Object.assign(Object.assign({},O),{hasCompletedMergeConflictsOptimisticState:!0}))}}var S=f[f.length-1];S&&null!=w&&(S.commits&&(w.hasCompletedOptimisticState=!0),S.files&&(w.hasCompletedUncommittedChangesOptimisticState=!0),S.conflicts&&(w.hasCompletedMergeConflictsOptimisticState=!0)),Y.il.set({operationHistory:_,currentOperation:w})}function E(t,n,r,i){var a,u,l,c,d,f,h=!1,p=!1,v=!1;if(null!=t&&!t.hasCompletedUncommittedChangesOptimisticState)if(null!=t.operation.makeOptimisticUncommittedChangesApplier){var m=t.operation.makeOptimisticUncommittedChangesApplier(r);null!=t.exitCode&&(null==m||0!==t.exitCode?h=!0:o.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(a=re())||void 0===a||a.track("OptimisticFilesStateForceResolved",{extras:{}}),h=!0))}else null!=t.exitCode&&(h=!0);if(null!=t&&!t.hasCompletedMergeConflictsOptimisticState)if(null!=t.operation.makeOptimisticMergeConflictsApplier){var g=t.operation.makeOptimisticMergeConflictsApplier(i);null!=t.exitCode&&(null==g||0!==t.exitCode?v=!0:(null!==(l=null===(u=i.conflicts)||void 0===u?void 0:u.fetchStartTimestamp)&&void 0!==l?l:0)>(0,s.unwrap)(t.endTime).valueOf()&&(null===(c=re())||void 0===c||c.track("OptimisticConflictsStateForceResolved",{extras:{operation:(f=t.operation,f.constructor.opName)}}),v=!0))}else null!=t.exitCode&&(v=!0);if(null!=t&&!t.hasCompletedOptimisticState)if(null!=t.operation.makeOptimisticApplier){var y=t.operation.makeOptimisticApplier(n);null!=t.exitCode&&(null==y||0!==t.exitCode?p=!0:e.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(d=re())||void 0===d||d.track("OptimisticCommitsStateForceResolved",{extras:{}}),p=!0))}else null!=t.exitCode&&(p=!0);if(p||h||v)return{commits:p,files:h,conflicts:v}}}),[u,r,n,i,o,a,e])}();var n=Y.ZB.get();return null==n&&0===Tn.get().length?(0,e.jsx)(Bt,{children:(0,e.jsx)(Ft,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(En,{}),(0,e.jsx)(Ht,{}),n?(0,e.jsx)(Rn,{error:n}):null,(0,e.jsx)(e.Fragment,{children:Tn.get().map((function(t){var n,r;return(0,e.jsx)(Dn,{branchTreeModel:t},null!==(r=null===(n=t.at(-1))||void 0===n?void 0:n.tree.info.branch)&&void 0!==r?r:"should-not-happen")}))}),(0,e.jsx)("div",{onClick:(0,p.aD)((function(){return W.set(void 0)})),className:"tree-line-extend"})]})})),Rn=(0,a.Pi)((function(t){var n=t.error;return n.message===s.ErrorShortMessages.NoCommitsFetched?(0,e.jsx)(_.W,{title:"No commits found",description:"If this is a new repository, try adding an initial commit first.",error:n,buttons:[(0,e.jsx)(o.vD,{appearance:"secondary",onClick:function(){(0,Y.tD)(new Vt)},children:"Create empty initial commit"},"0")]}):(0,e.jsx)(_.W,{title:"Failed to fetch commits",error:n})})),Dn=(0,a.Pi)((function(t){var n=t.branchTreeModel;return(0,e.jsx)(e.Fragment,{children:n.map((function(t){var n=t.tree,r=t.depth,i=t.isFirstChild,o=t.dashedLevels,a=t.firstChildNeedsRestack;return(0,e.jsx)(yn,{depth:r,tree:n,firstChildNeedsRestack:a,isIndicatorCurved:!i,dashedLevels:o},n.info.branch+(n.previewType?"/"+n.previewType:""))}))})}));function jn(e){var t,n,r=e.tree,i=e.depth,o=void 0===i?0:i,a=e.isFirstChild,u=void 0===a||a,l=e.dashedLevels,c=void 0===l?[]:l,d=r.children.reduce((function(e,t){return e.find((function(e){return e.info.branch===t.info.branch&&e.previewType===t.previewType}))?e:[].concat((0,te.Z)(e),[t])}),[]),f=null!==(n=null===(t=d[0])||void 0===t?void 0:t.info.needsRestack)&&void 0!==n&&n,h=d.sort((function(e,t){var n=new Date(t.info.date).getTime()-new Date(e.info.date).getTime();return 0!==n?n:e.info.branch.localeCompare(t.info.branch)})).flatMap((function(e,t){var n=0===t,r=o+(n?0:1),i=[].concat((0,te.Z)(n?c.filter((function(e){return e!==r})):c),(0,te.Z)(!n&&f?[o]:[]));return jn({tree:e,isFirstChild:n,depth:r,dashedLevels:i})})).filter(s.notEmpty);return[].concat((0,te.Z)(h),[{tree:r,depth:o,isFirstChild:u,firstChildNeedsRestack:f,dashedLevels:c}])}n(5297);var In=(0,t.lazy)((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{a(r.next(e))}catch(e){t(e)}}function o(e){try{a(r.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}a((r=r.apply(undefined,[])).next())}))}(0,0,void 0,h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all([n.e(697),n.e(274)]).then(n.bind(n,3274)).then((function(e){return{default:e.ComparisonView}})));case 1:case"end":return e.stop()}}),e)})))})),Pn=(0,a.Pi)((function(){var n=ue._.get();function r(e){(0,p.z)((function(){var t=ue._.get();ue._.set(t.comparison===e?{visible:!n.visible,comparison:e}:{visible:!0,comparison:e})}))}return j("Escape",(function(){(0,p.z)((function(){var e=ue._.get();ue._.set(Object.assign(Object.assign({},e),{visible:!1}))}))})),j("OpenUncommittedChangesComparisonView",(function(){r({type:s.ComparisonType.UncommittedChanges})})),j("OpenHeadChangesComparisonView",(function(){r({type:s.ComparisonType.HeadChanges})})),n.visible?(0,e.jsx)(P,{className:"comparison-view-modal",children:(0,e.jsx)(t.Suspense,{fallback:(0,e.jsx)(I.J,{icon:"loading"}),children:(0,e.jsx)(In,{comparison:n.comparison})})}):null})),Nn=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"DownstackGetOperation")).branchName=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["get",this.branchName]}}]),n}(B);Nn.opName="DownstackGet";var Mn=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"TrackOperation")).options=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["track",this.options.branchToTrack,"--parent",this.options.parent]}}]),n}(B);Mn.opName="Track";var Ln=(0,ve.u)({default:void 0,effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedAllBranches",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchAllBranches"})}))}]}),Zn=(0,a.Pi)((function(){var t=Y.OR.get().length>0;return(0,e.jsx)(yt,{component:function(t){return(0,e.jsx)(Bn,{dismiss:t})},placement:"bottom",children:(0,e.jsx)(o.vD,{title:t?"You have uncommitted changes.":"Get branch",disabled:t,appearance:"icon","data-testid":"download-commits-tooltip-button",children:(0,e.jsx)(I.J,{icon:"cloud-download"})})})})),zn=(0,p.Fl)((function(){var e;return null===(e=Ln.get())||void 0===e?void 0:e.branches.filter((function(e){return!Y.qC.get().some((function(t){return t.branch===e}))}))})),Fn=(0,p.ky)({selectedBranchToTrack:void 0,setSelectedBranchToTrack:function(e){this.selectedBranchToTrack=e},trackParent:void 0,setTrackParent:function(e){this.trackParent=e},potentialParents:void 0,fetchPotentialParentsDisposable:void 0});(0,p.U5)((function(){return Fn.selectedBranchToTrack}),(function(e){var t;null===(t=Fn.fetchPotentialParentsDisposable)||void 0===t||t.dispose(),Fn.fetchPotentialParentsDisposable=void 0,e&&(u.H.postMessage({type:"fetchPotentialParents",branchToTrack:e}),Fn.fetchPotentialParentsDisposable=u.H.onMessageOfType("fetchedPotentialParents",(function(e){Fn.potentialParents=e.message.potentialParents.filter((function(e){return Y.qC.get().some((function(t){return t.branch===e}))}))})))}));var Bn=(0,a.Pi)((function(n){var r,i,a,s,u=n.dismiss,l=Y.OR.get().length>0,c=(0,t.useState)(""),f=(0,d.Z)(c,2),h=f[0],p=f[1],v=(0,t.useRef)(null);(0,t.useEffect)((function(){v.current&&v.current.focus()}),[v]);var m=null===(r=zn.get())||void 0===r?void 0:r.map((function(t){return(0,e.jsx)(o.nH,{value:t,children:t},t)})),g=null===(i=Fn.potentialParents)||void 0===i?void 0:i.map((function(t){return(0,e.jsx)(o.nH,{value:t,children:t},t)}));return(0,e.jsxs)("div",{className:"get-menu",children:[(0,e.jsx)("div",{className:"get-title",children:"Track a local branch"}),(0,e.jsxs)("div",{className:"get-description",children:["Add an existing local branch to Graphite by selecting its parent branch."," ",(0,e.jsx)(o.Np,{href:"https://graphite.dev/docs/track-branches",target:"_blank",children:(0,e.jsx)(e.Fragment,{children:"Learn More"})})]}),(0,e.jsxs)(o.Yb,{value:null!==(a=Fn.selectedBranchToTrack)&&void 0!==a?a:"",onChange:function(e){Fn.setSelectedBranchToTrack(e.currentTarget.value),Fn.setTrackParent(void 0)},children:[(0,e.jsx)(o.nH,{value:"",disabled:!!Fn.selectedBranchToTrack,children:"Select a branch to track"}),m]}),(0,e.jsxs)(o.Yb,{className:"track-select",value:null!==(s=Fn.trackParent)&&void 0!==s?s:"",disabled:!Fn.potentialParents,onChange:function(e){Fn.setTrackParent(e.currentTarget.value)},children:[(0,e.jsx)(o.nH,{value:"",disabled:!!Fn.trackParent,children:"Select a parent"}),g]}),(0,e.jsx)(o.vD,{title:l?"Cannot track with uncommitted changes":"",appearance:"primary",disabled:!Fn.selectedBranchToTrack||!Fn.trackParent,onClick:function(){Fn.selectedBranchToTrack&&Fn.trackParent&&((0,Y.tD)(new Mn({branchToTrack:Fn.selectedBranchToTrack,parent:Fn.trackParent})),u())},children:(0,e.jsx)(e.Fragment,{children:"Track branch"})}),(0,e.jsx)("hr",{className:"get-hr"}),(0,e.jsx)("div",{className:"get-title",children:"Get a remote branch"}),(0,e.jsxs)("div",{className:"get-description",children:["Collaborate on a remote Graphite branch by pulling it and its ancestors into your repository. Checks out the branch after fetching."," ",(0,e.jsx)(o.Np,{href:"https://graphite.dev/docs/collaborate-on-a-stack",target:"_blank",children:(0,e.jsx)(e.Fragment,{children:"Learn More"})})]}),(0,e.jsx)(o.OG,{placeholder:"Branch name or PR number...",value:h,onKeyUp:function(e){var t,n;"Enter"!==e.key?p(null!==(n=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:""):h.trim().length>0&&((0,Y.tD)(new Nn(h)),u())},ref:v}),(0,e.jsx)(o.vD,{title:l?"Cannot get with uncommitted changes":"",appearance:"primary",onClick:function(){(0,Y.tD)(new Nn(h)),u()},children:(0,e.jsx)(e.Fragment,{children:"Get branch"})})]})}));function Vn(t){var n,r=t.options,i=t.appearance,a=t.onClick,s=t.selected,u=t.onChangeSelected,l=t.buttonDisabled,c=t.pickerDisabled,d=t.icon,f=null!==(n=r.find((function(e){return e.id===s.id})))&&void 0!==n?n:r[0];return(0,e.jsxs)("div",{className:"vscode-button-dropdown",children:[(0,e.jsxs)(o.vD,{appearance:i,onClick:l?void 0:function(){return a(s)},disabled:l,children:[null!=d?d:null," ",null==f?void 0:f.label]}),(0,e.jsx)("select",{disabled:c,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=r.find((function(t){return t.id===e.target.value}));null!=t&&u(t)},value:s.id,children:r.map((function(t){return(0,e.jsx)("option",{value:t.id,children:t.label},t.id)}))})]})}var Hn=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(e){var r;return(0,O.Z)(this,n),(r=t.call(this,"PullOperation")).options=e,r}return(0,C.Z)(n,[{key:"getArgs",value:function(){return["sync",this.options.deleteBranches?"-f":"--no-delete"]}}]),n}(B);Hn.opName="Pull";var Un=[{id:"pull",label:(0,e.jsx)(e.Fragment,{children:"Sync"}),getOperation:function(){return new Hn({deleteBranches:!0})},isRunning:function(e){return e instanceof Hn},tooltip:"Pull trunk, clean up merged branches, and restack branches that don't have conflicts to resolve."},{id:"pnd",label:(0,e.jsx)(e.Fragment,{children:"Sync (skip cleanup)"}),getOperation:function(){return new Hn({deleteBranches:!1})},isRunning:function(e){return e instanceof Hn},tooltip:"Pull trunk and restack branches that don't have conflicts to resolve."}],Kn=(0,X.X)({config:"gti.pull-button-choice",default:Un[0].id}),qn=(0,a.Pi)((function(){var t,n=null!==(t=Un.find((function(e){return e.id===Kn.get()})))&&void 0!==t?t:Un[0],r=function(){var e,t,n=Y.il.get(),r=Y.zV.get();return r.length>0?r.at(-1):null==(null===(e=n.currentOperation)||void 0===e?void 0:e.exitCode)?null===(t=n.currentOperation)||void 0===t?void 0:t.operation:void 0}(),i=null!=r&&n.isRunning(r);return(0,e.jsx)("div",{className:"pull-info",title:i?"Pull is already running.":n.tooltip,children:(0,e.jsx)(Vn,{appearance:"secondary",buttonDisabled:!!i,options:Un,onClick:function(){return(0,Y.tD)(n.getOperation())},onChangeSelected:function(e){return Kn.set(e.id)},selected:n,icon:(0,e.jsx)(I.J,{slot:"start",icon:i?"loading":"repo"})})})})),$n=(0,a.Pi)((function(){var t=Y.R0.get(),n=Y.WK.get();return t?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"top-bar-buttons",children:[(0,e.jsx)("span",{className:"button-group",children:n?(0,e.jsx)(qn,{}):null}),(0,e.jsxs)("span",{className:"button-group",children:[(0,e.jsx)(Yn,{}),(0,e.jsx)(Wn,{}),(0,e.jsx)(Zn,{}),(0,e.jsx)(Et,{})]})]})}):null})),Yn=(0,a.Pi)((function(){var t=(0,k.F)(),n=Se.get();return"ok"===(null==n?void 0:n.status)?null:(0,e.jsx)(o.vD,{title:n?"no_token"===n.status?"You have not authenticated the Graphite CLI. Click to authenticate.":"invalid_token"===n.status?"Your Graphite CLI authentication is not valid. Click to authenticate.":"no_repo_access"===n.status?"Graphite does not have permissions to submit PRs in this repository. Click to update your GitHub access settings":"Unknown authentication error. Click to retry.":"Unable to connect to Graphite servers. Click to retry.",onClick:function(){n?"no_token"!==n.status&&"invalid_token"!==n.status?"no_repo_access"!==n.status||t.openExternalLink("https://app.graphite.dev/settings"):t.openExternalLink("https://app.graphite.dev/settings/cli"):u.H.postMessage({type:"fetchAuthStatus"})},appearance:"icon",children:(0,e.jsx)("div",{className:"auth-warning-icon",children:(0,e.jsx)(I.J,{icon:"warning"})})})}));function Wn(){var t=(0,Y.b8)();return(0,e.jsx)(o.vD,{title:"Refresh",appearance:"icon",onClick:function(){l.track("ClickedRefresh"),t(),u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},"data-testid":"refresh-button",children:(0,e.jsx)(I.J,{icon:"refresh"})})}var Gn=(0,a.Pi)((function(t){var n=t.children,r=(0,k.F)();return(0,e.jsxs)("div",{className:"welcome",children:[(0,e.jsx)("span",{className:"welcome-title",children:"vscode"===r.platformName?"Welcome to Graphite for VS Code":"Welcome to Graphite Interactive"}),(0,e.jsx)(e.Fragment,{children:n})]})})),Qn=(0,X.X)({config:"gti.is-onboarded",default:"loading",defaultAfterNetworkReturn:!1}),Jn=(0,a.Pi)((function(){return(0,e.jsx)(Gn,{children:(0,e.jsx)(Xn,{})})})),Xn=(0,a.Pi)((function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"welcome-text",children:"The magic of the Graphite CLI, right in your editor."}),(0,e.jsx)(o.vD,{appearance:"primary",onClick:function(){return Qn.set(!0)},children:"Let's go!"}),(0,e.jsx)("a",{href:"https://graphite.dev/docs/vs-code-extension-quick-start",className:"welcome-text-small",target:"_blank",rel:"noreferrer",children:"Learn more"})]})})),er=(0,a.Pi)((function(t){var n=t.cwd;return(0,e.jsx)(Gn,{children:(0,e.jsx)(nr,{cwd:n})})})),tr=["main","master","dev","develop","next"],nr=(0,a.Pi)((function(n){var r,i=n.cwd,a=i.split(i.includes("/")?"/":"\\").pop(),s=null===(r=Ln.get())||void 0===r?void 0:r.branches.sort((function(e,t){return!tr.includes(e)&&!tr.includes(t)||tr.includes(e)&&tr.includes(t)?e.localeCompare(t):tr.includes(e)?-1:1})),l=(0,t.useState)(),c=(0,d.Z)(l,2),f=c[0],h=c[1],p=(0,t.useState)(!1),v=(0,d.Z)(p,2),m=v[0],g=v[1];return(0,t.useEffect)((function(){return u.H.onMessageOfType("initializedRepository",(function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()})).dispose}),[]),(0,t.useEffect)((function(){return u.H.onMessageOfType("failedToInitializeRepository",(function(){g(!0)})).dispose}),[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("span",{className:"welcome-text",children:["Initialize Graphite in ",(0,e.jsx)("strong",{children:a})," to get started."]}),(0,e.jsx)("span",{className:"welcome-text-small",children:"Select a trunk branch, which you will open pull requests against."}),s&&s.length>0?(0,e.jsxs)("select",{value:f,onChange:function(e){h(e.currentTarget.value)},children:[(0,e.jsx)("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:"Select a trunk branch"}),s.map((function(t){return(0,e.jsx)("option",{value:t,children:t},t)}))]}):null,(0,e.jsx)(o.vD,{appearance:"primary",disabled:!f,title:f?void 0:"Must select a trunk branch to continue",onClick:function(){f&&u.H.postMessage({type:"initializeRepository",trunkBranch:f})},children:"Initialize"}),m?(0,e.jsx)("span",{className:"welcome-text-small welcome-error",children:"Failed to initialize"}):null,(0,e.jsx)("a",{href:"https://graphite.dev/docs/initialize-in-a-repository",className:"welcome-text-small",target:"_blank",rel:"noreferrer",children:"Learn more"})]})})),rr=(0,p.LO)({isInstalling:!1,errorMessage:void 0}),ir=function(e){(0,p.z)((function(){return rr.isInstalling=!0})),u.H.postMessage({type:"installCli",method:e});var t=u.H.onMessageOfType("installCliResult",(function(e){t.dispose(),(0,p.z)((function(){return rr.isInstalling=!1})),"error"!==e.result?sr():(0,p.z)((function(){return rr.errorMessage=e.error}))}))},or=function(){return ir("brew")},ar=function(){return ir("npm")},sr=function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},ur=(0,a.Pi)((function(){var t="vscode"===(0,k.F)().platformName;return(0,e.jsx)(Gn,{children:t?(0,e.jsx)(lr,{}):(0,e.jsx)("span",{className:"welcome-text",children:"Graphite Interactive cannot find your Graphite CLI installation."})})})),lr=(0,a.Pi)((function(){return rr.errorMessage?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"welcome-text",children:"Installation failed"}),(0,e.jsx)("span",{className:"welcome-text-small welcome-error",children:rr.errorMessage}),(0,e.jsx)(o.vD,{appearance:"primary",onClick:(0,p.aD)((function(){return rr.errorMessage=void 0})),children:"Back"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("span",{className:"welcome-text",children:["Install the Graphite CLI to get started."," ",(0,e.jsx)("a",{href:"https://graphite.dev/docs/installing-the-cli",target:"_blank",rel:"noreferrer",children:"Learn more"})]}),rr.isInstalling?(0,e.jsx)(Bt,{children:(0,e.jsx)(Ft,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,{disabled:rr.isInstalling,appearance:"primary",onClick:or,children:"Run brew installation"}),(0,e.jsx)(o.vD,{disabled:rr.isInstalling,appearance:"primary",onClick:ar,children:"Run npm installation"}),(0,e.jsx)(o.vD,{disabled:rr.isInstalling,appearance:"secondary",onClick:sr,children:"Refresh"}),(0,e.jsxs)("span",{className:"welcome-text-small",children:["If you have already installed the Graphite CLI, you may need to reload the extension. If you still see this screen, try manually specifying ",(0,e.jsx)("strong",{children:"Graphite: Command Path"})," in your VS Code settings."]})," "]})]})})),cr=(0,p.LO)({isUpdating:!1,errorMessage:void 0}),dr=function(){(0,p.z)((function(){return cr.isUpdating=!0})),u.H.postMessage({type:"updateCli"});var e=u.H.onMessageOfType("updateCliResult",(function(t){e.dispose(),(0,p.z)((function(){return cr.isUpdating=!1})),"error"!==t.result?fr():(0,p.z)((function(){return cr.errorMessage=t.error}))}))},fr=function(){u.H.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},hr=(0,a.Pi)((function(){return(0,e.jsx)(Gn,{children:(0,e.jsx)(pr,{})})})),pr=(0,a.Pi)((function(){return cr.errorMessage?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"welcome-text",children:"Installation failed"}),(0,e.jsx)("span",{className:"welcome-text-small welcome-error",children:cr.errorMessage}),(0,e.jsx)(o.vD,{appearance:"primary",onClick:(0,p.aD)((function(){return cr.errorMessage=void 0})),children:"Back"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"welcome-text",children:"You must update the Graphite CLI to continue."}),cr.isUpdating?(0,e.jsx)(Bt,{children:(0,e.jsx)(Ft,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.vD,{disabled:cr.isUpdating,appearance:"primary",onClick:dr,children:"Update"}),(0,e.jsx)(o.vD,{disabled:cr.isUpdating,appearance:"secondary",onClick:fr,children:"Reload"}),(0,e.jsxs)("span",{className:"welcome-text-small",children:["The update button will detect how you installed Graphite and update it accordingly."," ",(0,e.jsx)("a",{href:"https://graphite.dev/docs/update-cli",className:"welcome-text-small",target:"_blank",rel:"noreferrer",children:"Learn more"})]})]})]})})),vr=(0,ve.u)({default:"",effects:[function(e){var t=e.setSelf,n=u.H.onMessageOfType("fetchedUpgradePrompt",(function(e){t(e.message)}));return function(){return n.dispose()}},function(){return u.H.onSetup((function(){return u.H.postMessage({type:"fetchUpgradePrompt"})}))}]}),mr=(0,a.Pi)((function(){var t=(0,k.F)(),n=Y.Mh.get(),r=function(t){var n=t.platform,r=t.repoInfo,i=t.reconnectStatus,a=t.diffFetchError;if("reconnecting"===i.type)return{title:(0,e.jsx)(e.Fragment,{children:"Connection to server was lost"}),error:new Error("Attempting to reconnect...")};if("error"===i.type)return"Invalid token"===i.error?{title:(0,e.jsx)(e.Fragment,{children:"Unable to connect to server. Try closing this window and accessing GTI with a fresh link."}),error:new Error("Invalid connection token. For security, you need to open a new GTI window when the server is restarted.")}:{title:(0,e.jsx)(e.Fragment,{children:"Error connecting to server"}),error:new Error(i.error)};if(a){if("success"===(null==r?void 0:r.type)&&"github"===r.codeReviewSystem.type){var s=(0,e.jsx)(o.vD,{appearance:"secondary",onClick:function(e){n.openExternalLink("https://graphite.dev/docs/graphite-cli"),e.preventDefault(),e.stopPropagation()},children:(0,e.jsx)(e.Fragment,{children:"Learn more"})});if(a.message.startsWith("NotAuthenticatedError")){var u=new Error("Log in to gh CLI with `gh auth login` to allow requests to GitHub");return u.stack=a.stack,{title:(0,e.jsx)(e.Fragment,{children:"Not Authenticated to GitHub with `gh` CLI"}),error:u,buttons:[s],trackErrorName:"GhCliNotAuthenticated"}}if(a.message.startsWith("GhNotInstalledError")){var l=new Error("Install the `gh` CLI to make requests to GitHub");return l.stack=a.stack,{title:(0,e.jsx)(e.Fragment,{children:"Unable to fetch data from GitHub"}),error:l,buttons:[s],trackErrorName:"GhCliNotInstalled"}}}return{title:(0,e.jsx)(e.Fragment,{children:"Failed to fetch Diffs"}),error:a,trackErrorName:"DiffFetchFailed"}}}({platform:t,repoInfo:Y.ip.get(),reconnectStatus:n,diffFetchError:we.get().error});return null==r?null:(0,e.jsx)(gr,{info:r})})),gr=(0,a.Pi)((function(t){var n=t.info;return z((function(){null!=n.trackErrorName&&l.error("TopLevelErrorShown",n.trackErrorName,n.error)}),1e3,[n.trackErrorName,n.error]),(0,e.jsx)(_.W,{title:n.title,error:n.error,buttons:n.buttons})})),yr=(0,a.Pi)((function(){var n=(0,k.F)(),r=Y.ip.get(),i=vr.get(),a=i.indexOf(":")+1,s=function(){var e=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=e.current;if(null!=t){var n=new ResizeObserver((function(e){var t=(0,d.Z)(e,1)[0];t&&w.set(t.contentRect.width)}));return n.observe(t),function(){return n.unobserve(t)}}}),[e]),e}(),u=Qn.get();return(0,e.jsxs)("div",{className:"main-content-area",ref:s,children:[(0,e.jsx)(mr,{}),i?(0,e.jsx)(c,{title:i.substring(0,a||void 0),buttons:[(0,e.jsx)(o.vD,{appearance:"secondary",onClick:function(e){n.openExternalLink("https://graphite.dev/docs/installing-the-cli"),e.preventDefault(),e.stopPropagation()},children:(0,e.jsx)(e.Fragment,{children:"Upgrade docs"})},"help-button")]}):null,null!=r&&"success"!==r.type||!u?(0,e.jsx)(br,{repoError:r&&"success"!==r.type?r:void 0}):(0,e.jsx)(An,{})]})})),br=(0,a.Pi)((function(t){var n=t.repoError;return z((function(){if(n)switch(n.type){case"cwdNotARepository":l.track("UIEmptyState",{extras:{cwd:n.cwd},errorName:"InvalidCwd"});break;case"invalidCommand":l.track("UIEmptyState",{extras:{command:n.command},errorName:"InvalidCommand"});break;case"unknownError":l.error("UIEmptyState","RepositoryError",n.error)}}),1e3,[n]),n?"cwdNotARepository"===n.type?(0,e.jsx)(er,{cwd:n.cwd}):"invalidCommand"===n.type?(0,e.jsx)(ur,{}):"invalidVersion"===n.type?(0,e.jsx)(hr,{}):(0,e.jsx)(_.W,{title:(0,e.jsx)(e.Fragment,{children:"Something went wrong"}),error:n.error}):(0,e.jsx)(Jn,{})}));i.createRoot(document.getElementById("root")).render((0,e.jsx)((function(){return(0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(k.P,{children:(0,e.jsx)(x,{children:(0,e.jsx)(D,{children:(0,e.jsxs)(_.S,{children:[(0,e.jsx)($n,{}),(0,e.jsx)(yr,{}),(0,e.jsx)(Nt,{}),(0,e.jsx)(zt,{}),(0,e.jsx)("div",{className:"tooltip-root-container","data-testid":"tooltip-root-container"}),(0,e.jsx)(Pn,{}),(0,e.jsx)(M,{}),(0,e.jsx)(b,{})]})})})})})}),{}))}(),r}()}));