@withgraphite/graphite-cli 1.6.6 → 1.6.7

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},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}()}));
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,(()=>(()=>{var e={122: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 s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},164:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(7873),i=n(7612),o=n(7193);const s="undefined"!=typeof acquireVsCodeApi?acquireVsCodeApi():null;class a{constructor(e,t){this.host=e,this.WebSocketType=t,this.status={type:"initializing"},this.exponentialReconnectDelay=a.DEFAULT_RECONNECT_CHECK_TIME_MS,this.queuedMessages=[],this.handlers=[],this.statusChangeHandlers=[],this.disposed=!1,this.websocket=this.startConnection()}dispose(){this.disposed||(this.disposed=!0,this.websocket.close())}startConnection(){var e;const t=new URL("ws://".concat(this.host,"/ws")),n=o.$.get("token");n&&t.searchParams.append("token",n);const s=o.$.get("cwd");if(s){const e=decodeURIComponent(s);t.searchParams.append("cwd",e)}const l=null===(e=window.gtiPlatform)||void 0===e?void 0:e.platformName;return l&&t.searchParams.append("platform",l),this.websocket=new this.WebSocketType(t.href),this.websocket.addEventListener("open",(e=>{for(i.v.info("websocket open",e),this.exponentialReconnectDelay=a.DEFAULT_RECONNECT_CHECK_TIME_MS,this.websocket.addEventListener("message",(e=>{for(const t of this.handlers)t(e)}));this.queuedMessages.length>0;){const e=this.queuedMessages[0];e&&this.websocket.send(e),this.queuedMessages.shift()}this.setStatus({type:"open"})})),this.websocket.addEventListener("close",(e=>{e.code!==r.CLOSED_AND_SHOULD_NOT_RECONNECT_CODE?this.disposed||this.scheduleReconnect():this.setStatus({type:"error",error:e.reason})})),this.websocket}setStatus(e){this.status=e,this.statusChangeHandlers.forEach((t=>t(e)))}scheduleReconnect(){this.setStatus({type:"reconnecting"}),i.v.info("websocket connecion closed. Retrying in ".concat(this.exponentialReconnectDelay,"ms")),setTimeout((()=>{this.startConnection()}),this.exponentialReconnectDelay),this.exponentialReconnectDelay=Math.min(2*this.exponentialReconnectDelay,a.MAX_RECONNECT_CHECK_TIME_MS)}onMessage(e){return this.handlers.push(e),{dispose:()=>{const t=this.handlers.indexOf(e);-1!==t&&this.handlers.splice(t,1)}}}postMessage(e){"open"===this.status.type?this.websocket.send(e):this.queuedMessages.push(e)}onChangeStatus(e){return this.statusChangeHandlers.push(e),e(this.status),{dispose:()=>{const t=this.statusChangeHandlers.indexOf(e);-1!==t&&this.statusChangeHandlers.splice(t,1)}}}}a.MAX_RECONNECT_CHECK_TIME_MS=6e4,a.DEFAULT_RECONNECT_CHECK_TIME_MS=100;const l=null!=s?new class{constructor(e){this.vscode=e}onMessage(e){return window.addEventListener("message",e),{dispose:()=>window.removeEventListener("message",e)}}onChangeStatus(e){return e({type:"open"}),{dispose:()=>{}}}postMessage(e){this.vscode.postMessage(e)}}(s):new a(location.host,WebSocket)},336:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>k,C3:()=>w,Cy:()=>m,HY:()=>E,IM:()=>P,Sn:()=>b,TW:()=>T,Wv:()=>I,YK:()=>D,Yr:()=>x,Z3:()=>_,a0:()=>R,dM:()=>F,gZ:()=>g,i2:()=>B,jn:()=>A,kq:()=>V,mD:()=>y,oY:()=>O,p4:()=>p,pq:()=>v,su:()=>z,uA:()=>C,wS:()=>M,xj:()=>L});var r=n(7873),i=n(4812),o=n(5043),s=n(9235),a=n(9451),l=n(6374),c=n(6865),u=n(164),d=n(7193);const h={smartlogCommits:"",uncommittedChanges:"",mergeConflicts:""},f=(0,s.s)({default:{info:void 0,cwd:void 0},effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("repoInfo",(e=>{t({info:e.info,cwd:e.cwd})}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"requestRepoInfo"})))]}),p=(0,i.EW)((()=>{const e=f.get();return null==e?void 0:e.info}),{set:e=>{f.set((t=>Object.assign(Object.assign({},t),{info:e})))}}),v=(0,s.s)({default:void 0,effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("applicationInfo",(e=>{t(e)}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"requestApplicationInfo"})))]}),m=(0,s.s)({default:{type:"initializing"},effects:[e=>{let{setSelf:t}=e;const n=u.O.onChangeStatus(t);return()=>n.dispose()}]}),g=(0,i.EW)((()=>{var e,t;const n=f.get();return null!==(t=null!==(e=null==n?void 0:n.cwd)&&void 0!==e?e:d.$.get("cwd"))&&void 0!==t?t:""})),b=(0,s.s)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,files:[]},effects:[S("uncommittedChanges",((e,t)=>{let{setSelf:n}=t;n((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})}))}))]}),y=(0,i.EW)((()=>b.get().files)),_=(0,i.EW)((()=>b.get().error)),w=(0,s.s)({default:void 0,effects:[S("mergeConflicts",((e,t)=>{let{setSelf:n}=t;n(e)}))]}),x=(0,s.s)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,commits:[]},effects:[S("smartlogCommits",((e,t)=>{let{setSelf:n}=t;n((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})}))}))]}),C=(0,i.EW)((()=>x.get().commits)),k=(0,i.EW)((()=>x.get().error)),O=(0,i.EW)((()=>{const e=new Map;return C.get().forEach((t=>{e.set(t.branch,t)})),e}));function S(e,t){return n=>{const i=(0,r.randomId)();h[e]=i;const o=a.A.onMessageOfType("subscriptionResult",(r=>{r.subscriptionID===i&&r.kind===e&&t(r.data,n)})),s=a.A.onSetup((()=>(a.A.postMessage({type:"subscribe",kind:e,subscriptionID:i}),()=>a.A.postMessage({type:"unsubscribe",kind:e,subscriptionID:i}))));return()=>{o.dispose(),s()}}}(0,l.e)({config:"gti.experimental-features",default:null}),(0,s.s)({default:!1,effects:[e=>{let{setSelf:t}=e;const n=[a.A.onMessageOfType("subscriptionResult",(()=>{t(!1)})),a.A.onMessageOfType("beganFetchingSmartlogCommitsEvent",(()=>{t(!0)}))];return()=>{n.forEach((e=>e.dispose()))}}]}),(0,s.s)({default:!1,effects:[e=>{let{setSelf:t}=e;const n=[a.A.onMessageOfType("subscriptionResult",(e=>{"smartlogCommits"===e.kind&&t(!1)})),a.A.onMessageOfType("beganLoadingMoreCommits",(()=>{t(!0)}))];return()=>{n.forEach((e=>e.dispose()))}}]}),(0,s.s)({default:!1,effects:[e=>{let{setSelf:t}=e;const n=[a.A.onMessageOfType("subscriptionResult",(e=>{"uncommittedChanges"===e.kind&&t(!1)})),a.A.onMessageOfType("beganFetchingUncommittedChangesEvent",(()=>{t(!0)}))];return()=>{n.forEach((e=>e.dispose()))}}]}),(0,s.s)({default:r.DEFAULT_DAYS_OF_COMMITS_TO_LOAD,effects:[e=>{let{setSelf:t}=e;return a.A.onCwdChanged((()=>t(r.DEFAULT_DAYS_OF_COMMITS_TO_LOAD)))},e=>{let{setSelf:t}=e;const n=[a.A.onMessageOfType("commitsShownRange",(e=>{t(e.rangeInDays)}))];return()=>{n.forEach((e=>e.dispose()))}}]});const E=(0,i.EW)((()=>{const e=C.get();return(0,c.az)(e)})),A=(0,i.EW)((()=>C.get().find((e=>e.isHead)))),T=(0,i.EW)((()=>{const e=E.get(),t=new Map;for(const n of(0,c.eV)(e))t.set(n.info.branch,n);return t})),R=(0,i.EW)((()=>C.get().length>0)),D=(0,s.s)({default:void 0,effects:[e=>{let{setSelf:t}=e;return a.A.onCwdChanged((()=>t(void 0)))}]}),I=(0,i.EW)((()=>{const e=p.get();return"success"===(null==e?void 0:e.type)&&"none"!==e.codeReviewSystem.type}));function j(e,t){var n;if((null===(n=t.currentOperation)||void 0===n?void 0:n.operation.id)===e.id)return Object.assign({},t);const r=[...t.operationHistory];null!=t.currentOperation&&r.push(t.currentOperation);const i={operation:e,startTime:new Date};return Object.assign(Object.assign({},t),{operationHistory:r,currentOperation:i})}const P=(0,s.s)({default:{currentOperation:void 0,operationHistory:[]},effects:[e=>{let{setSelf:t}=e;return a.A.onCwdChanged((()=>t({currentOperation:void 0,operationHistory:[]})))},e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("operationProgress",(e=>{switch(e.kind){case"spawn":t((t=>{const n=t,r=N.get(e.id);return null==r?t:j(r,n)}));break;case"stdout":case"stderr":t((t=>{var n;if(null==t)return t;const r=t.currentOperation;return r?Object.assign(Object.assign({},t),{currentOperation:Object.assign(Object.assign({},r),{commandOutput:[...null!==(n=null==r?void 0:r.commandOutput)&&void 0!==n?n:[],e.message]})}):t}));break;case"exit":t((t=>{if(null==t)return t;const 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()=>n.dispose()}]}),N=new Map,M=(0,s.s)({default:[],effects:[e=>{let{setSelf:t}=e;return a.A.onCwdChanged((()=>t([])))},e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("operationProgress",(e=>{switch(e.kind){case"queue":case"spawn":t((()=>e.queue.map((e=>N.get(e))).filter((e=>null!=e))));break;case"error":t((()=>[]));break;case"exit":t((t=>(N.delete(e.id),null!=e.exitCode&&0!==e.exitCode?[]:t)))}}));return()=>n.dispose()}]});function L(e){a.A.postMessage({type:"runOperation",operation:{args:e.getArgs(),id:e.id,stdin:e.getStdin(),runner:e.runner,trackEventName:e.trackEventName}}),N.set(e.id,e);const t=P.get();if(null!=(null==t?void 0:t.currentOperation)&&null==t.currentOperation.exitCode){const t=M.get();M.set([...t||[],e])}else P.set((t=>j(e,t)))}function z(){return(0,o.useCallback)((e=>{var t,n;a.A.postMessage({type:"abortRunningOperation",operationId:e});const r=P.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&&P.set((e=>{const t=e.currentOperation;return null!=t?Object.assign(Object.assign({},e),{currentOperation:Object.assign({aborting:!0},t)}):e}))}),[])}const F=(0,i.XI)((()=>{D.set(void 0)})),B=(0,i.XI)((()=>{const e=D.get();D.set(void 0),e&&L(e)}));function V(){return(0,o.useCallback)((()=>{P.set((e=>{var t,n,r,i;const o=[...e.operationHistory];for(let e=0;e<o.length;e++)if(null!=(null===(t=o[e])||void 0===t?void 0:t.exitCode)){if(!(null===(n=o[e])||void 0===n?void 0:n.hasCompletedOptimisticState)){const t=o[e];t&&(o[e]=Object.assign(Object.assign({},t),{hasCompletedOptimisticState:!0}))}if(!(null===(r=o[e])||void 0===r?void 0:r.hasCompletedUncommittedChangesOptimisticState)){const t=o[e];t&&(o[e]=Object.assign(Object.assign({},t),{hasCompletedUncommittedChangesOptimisticState:!0}))}if(!(null===(i=o[e])||void 0===i?void 0:i.hasCompletedMergeConflictsOptimisticState)){const t=o[e];t&&(o[e]=Object.assign(Object.assign({},t),{hasCompletedMergeConflictsOptimisticState:!0}))}}const s=null==e.currentOperation?void 0:Object.assign({},e.currentOperation);return null!=(null==s?void 0:s.exitCode)&&(s.hasCompletedOptimisticState=!0,s.hasCompletedUncommittedChangesOptimisticState=!0,s.hasCompletedMergeConflictsOptimisticState=!0),{currentOperation:s,operationHistory:o}}))}),[])}},579:(e,t,n)=>{"use strict";e.exports=n(1153)},931:(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={}));const r=/^diff --git (.*) (.*)$/,i=/^rename from (.*)$/,o=/^rename to (.*)$/,s=/^copy from (.*)$/,a=/^copy to (.*)$/,l=/^new file mode (\d{6})$/,c=/^deleted file mode (\d{6})$/,u=/^old mode (\d{6})$/,d=/^new mode (\d{6})$/,h=/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/,f=/^--- (.*)$/,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){const t=e.split(v),g=e.match(v)||[],b=[];let y=0;function _(){const e={hunks:[]};for(b.push(e),function(e){for(;y<t.length;){const n=t[y],i=r.exec(n);if(i){e.oldFileName=i[1],e.newFileName=i[2],y++;break}y++}}(e);y<t.length;){const n=t[y];if(/^old mode/.test(n))w(e);else if(/^new mode/.test(n))x(e);else if(/^deleted file mode/.test(n))C(e);else if(/^new file mode/.test(n))k(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;y++}}!function(e){for(;y<t.length;){const n=t[y];if(r.test(n))break;/^@@/.test(n)?e.hunks.push(A()):y++}}(e)}function w(e){const r=u.exec(t[y]);m(null!==r,"invalid format '".concat(t[y],"'")),e.oldMode=r[1],e.type=n.Modified,y++}function x(e){const r=d.exec(t[y]);m(null!==r,"invalid format '".concat(t[y],"'")),e.newMode=r[1],e.type=n.Modified,y++}function C(e){const r=c.exec(t[y]);m(null!==r,"invalid format '".concat(t[y],"'")),e.newMode=r[1],e.type=n.Removed,y++}function k(e){const r=l.exec(t[y]);m(null!==r,"invalid format '".concat(t[y],"'")),e.newMode=r[1],e.type=n.Added,y++}function O(e){m(s.test(t[y]),"invalid format '".concat(t[y],"'")),m(a.test(t[y+1]),"invalid format '".concat(t[y+1],"'")),e.type=n.Copied,y+=2}function S(e){m(i.test(t[y]),"invalid format '".concat(t[y],"'")),m(o.test(t[y+1]),"invalid format '".concat(t[y+1],"'")),e.type=n.Renamed,y+=2}function E(e){m(f.test(t[y]),"invalid format '".concat(t[y],"'")),m(p.test(t[y+1]),"invalid format '".concat(t[y+1],"'")),void 0===e.type&&(e.type=n.Modified),y+=2}function A(){const e=t[y++].split(h),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);let r=0,i=0;for(;y<t.length&&!(0===t[y].indexOf("--- ")&&y+2<t.length&&0===t[y+1].indexOf("+++ ")&&0===t[y+2].indexOf("@@"));y++){const e=0===t[y].length&&y!==t.length-1?" ":t[y][0];if("+"!==e&&"-"!==e&&" "!==e&&"\\"!==e)break;n.lines.push(t[y]),n.linedelimiters.push(g[y]||"\n"),"+"===e?r++:"-"===e?i++:" "===e&&(r++,i++)}return r||1!==n.newLines||(n.newLines=0),i||1!==n.oldLines||(n.oldLines=0),n}for(;y<t.length;)_();return b}},1124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1153:(e,t,n)=>{"use strict";var r=n(5043),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},1404:(e,t)=>{"use strict";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(){const e={promise:void 0,resolve:void 0,reject:void 0};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e},t.basename=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";const n=e.lastIndexOf(t);return-1===n?e:e.slice(n+1)},t.findParentWithClassName=function(e,t){let n=e;for(;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){const n="function"==typeof t?t:e=>e===t;for(const t of e)if(n(t))return!0;return!1},t.zip=function*(e,t){const n=e[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){const e=n.next(),t=r.next();if(e.done||t.done)break;yield[e.value,t.value]}},t.truncate=function(e){let 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)}},1468:(e,t,n)=>{"use strict";var r=n(2897).default,i=n(3693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.cached=t.LRU=void 0;const o=n(7970);class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;i(this,"maxItems",void 0),i(this,"maxHashCollision",void 0),i(this,"cache",new Map),this.maxItems=e,this.maxHashCollision=t}get(e){let t;const n=a(e),r=this.cache.get(n);if(void 0!==r){const i=r.get(e);if(void 0!==i)t=i;else for(const[n,i]of r)if((0,o.is)(e,n)){t=i;break}this.cache.delete(n),this.cache.set(n,r)}return t}set(e,t){const n=a(e);let 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)){const e=this.cache.keys().next();e.done||this.cache.delete(e.value)}}delete(e){const t=a(e);this.cache.delete(t)}clear(){this.cache.clear()}}function a(e){const t=null==e?void 0:e.hashCode;return void 0!==t?t.apply(e):e}function l(e,t){var n,r;const i=null!==(n=null==t?void 0:t.cache)&&void 0!==n?n:new s(null!==(r=null==t?void 0:t.cacheSize)&&void 0!==r?r:10),a=null==t?void 0:t.getExtraKeys,l=function(){const t=i.stats;for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];var l;if(!r.every(u))return null!=t&&(t.skip=(null!==(l=t.skip)&&void 0!==l?l:0)+1),e.apply(this,r);const c=(0,o.List)(a?[...a.apply(this),...r]:r),d=i.get(c);var h,f;if(void 0!==d)return null!=t&&(t.hit=(null!==(h=t.hit)&&void 0!==h?h:0)+1),d;null!=t&&(t.miss=(null!==(f=t.miss)&&void 0!==f?f:0)+1);const p=e.apply(this,r);return i.set(c,p),p};return l.cache=i,l}t.LRU=s,t.cached=function(e,t){return"function"==typeof e?l(e,t):function(e){var t;const n=null!==(t=null==e?void 0:e.getExtraKeys)&&void 0!==t?t:function(){return(0,o.isValueObject)(this)?[this]:null!=this&&"object"==typeof this?Object.values(this).filter(u):[]};return function(t,i,o){const s=o.value;o.value=l(s,r(r({},e),{},{getExtraKeys:n}))}}(e)};const c=new Set(["number","string","boolean","symbol","bigint","undefined","null"]);function u(e){if(null==e)return!0;const t=typeof e;return!!c.has(t)||!("object"!==t||!(0,o.isValueObject)(e))}},1848:(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)}}},1891:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(7873);const i=n(4812).sH.box({comparison:{type:r.ComparisonType.UncommittedChanges},visible:!1},{deep:!1})},1981:(e,t,n)=>{"use strict";n.d(t,{PA:()=>C});var r=n(4812),i=n(5043);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.Gn)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var o=n(7950);function s(e){return(0,r.yl)(e)}var a="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function l(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+c}}var c=1e4,u=a?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 s=n++;return r.register(o,s,e),e.current=l(i),e.current.finalizationRegistryCleanupToken=s,t.set(s,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(a):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=l(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 s=o.value,a=s.current;a&&(a.reaction.dispose(),s.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=u.addReactionToTrack,h=u.recordReactionAsCommitted,f=(u.resetCleanupScheduleForTests,u.forceCleanupTimerToRunNowForTests,!1);function p(){return f}var v=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.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 s};function m(e){return"observer".concat(e)}var g=function(){};function b(){return new g}function y(e,t){if(void 0===t&&(t="observed"),p())return e();var n=v(i.useState(b),1)[0],o=v(i.useState(),2)[1],a=function(){return o([])},l=i.useRef(null);if(!l.current)var c=new r.qT(m(t),(function(){u.mounted?a():u.changedBeforeMount=!0})),u=d(l,c,n);var f,g,y=l.current.reaction;if(i.useDebugValue(y,s),i.useEffect((function(){return h(l),l.current?(l.current.mounted=!0,l.current.changedBeforeMount&&(l.current.changedBeforeMount=!1,a())):(l.current={reaction:new r.qT(m(t),(function(){a()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},a()),function(){l.current.reaction.dispose(),l.current=null}}),[]),y.track((function(){try{f=e()}catch(e){g=e}})),g)throw g;return f}var _="function"==typeof Symbol&&Symbol.for,w=_?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&(0,i.forwardRef)((function(e){return null})).$$typeof,x=_?Symbol.for("react.memo"):"function"==typeof i.memo&&(0,i.memo)((function(e){return null})).$$typeof;function C(e,t){var n;if(x&&e.$$typeof===x)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,s=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 a,l,c=function(e,t){return y((function(){return o(e,t)}),s)};return""!==s&&(c.displayName=s),e.contextTypes&&(c.contextTypes=e.contextTypes),r&&(c=(0,i.forwardRef)(c)),c=(0,i.memo)(c),a=e,l=c,Object.keys(a).forEach((function(e){O[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(a,e))})),c}var k,O={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};(k=o.unstable_batchedUpdates)||(k=function(e){e()}),(0,r.jK)({reactionScheduler:k})},2422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2730:(e,t,n)=>{"use strict";var r=n(5043),i=n(8853);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 s=new Set,a={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,f={},p={};function v(e,t,n,r,i,o,s){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=s}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 b(e){return e[1].toUpperCase()}function y(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(f,e)&&(h.test(e)?p[e]=!0:(f[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,b);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,b);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,b);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"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=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 F=!1;function B(e,t){if(!e||F)return"";F=!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"),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(1!==s||1!==a)do{if(s--,0>--a||i[s]!==o[a]){var l="\n"+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function V(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 B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function U(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 C:return"Fragment";case x:return"Portal";case O:return"Profiler";case k:return"StrictMode";case T: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 A: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:U(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return U(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 U(t);case 8:return t===k?"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 K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=q(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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function W(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 G(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 Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(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 X(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){X(e,t);var n=K(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,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(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&&W(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=""+K(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:K(n)}}function oe(e,t){var n=K(t.value),r=K(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 se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.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 ue(e,t)}))}:ue);function he(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 fe={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||fe.hasOwnProperty(e)&&fe[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(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[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 be(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 ye(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 xe=null,Ce=null,ke=null;function Oe(e){if(e=yi(e)){if("function"!=typeof xe)throw Error(o(280));var t=e.stateNode;t&&(t=wi(t),xe(e.stateNode,e.type,t))}}function Se(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function Ee(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ae(e,t){return e(t)}function Te(){}var Re=!1;function De(e,t,n){if(Re)return e(t,n);Re=!0;try{return Ae(e,t,n)}finally{Re=!1,(null!==Ce||null!==ke)&&(Te(),Ee())}}function Ie(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 je=!1;if(u)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){je=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(ue){je=!1}function Ne(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ve(e,t,n,r,i,o,s,a,l){Me=!1,Le=null,Ne.apply(Be,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(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 Ke(e){if(Ue(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(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 s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ke(i),e;if(s===r)return Ke(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)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))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ye=i.unstable_scheduleCallback,We=i.unstable_cancelCallback,Ge=i.unstable_shouldYield,Qe=i.unstable_requestPaint,Xe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,st=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ct=64,ut=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 ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~i;0!==a?r=dt(a):0!==(o&=s)&&(r=dt(o))}else 0!==(s=n&~i)?r=dt(s):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&&4194240&o))return t;if(!!(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function ft(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=ct;return!(4194240&(ct<<=1))&&(ct=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-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,xt,Ct,kt,Ot,St=!1,Et=[],At=null,Tt=null,Rt=null,Dt=new Map,It=new Map,jt=[],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":At=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.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=yi(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=bi(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ot(e.priority,(function(){Ct(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=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&xt(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 Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){St=!1,null!==At&&zt(At)&&(At=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==Rt&&zt(Rt)&&(Rt=null),Dt.forEach(Ft),It.forEach(Ft)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function Ut(e){function t(t){return Vt(t,e)}if(0<Et.length){Vt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Vt(At,e),null!==Tt&&Vt(Tt,e),null!==Rt&&Vt(Rt,e),Dt.forEach(t),It.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Lt(n),null===n.blockedOn&&jt.shift()}var Ht=_.ReactCurrentBatchConfig,Kt=!0;function qt(e,t,n,r){var i=yt,o=Ht.transition;Ht.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=i,Ht.transition=o}}function $t(e,t,n,r){var i=yt,o=Ht.transition;Ht.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=i,Ht.transition=o}}function Yt(e,t,n,r){if(Kt){var i=Gt(e,t,n,r);if(null===i)Kr(e,t,r,Wt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return At=Mt(At,e,t,n,r,i),!0;case"dragenter":return Tt=Mt(Tt,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,It.set(o,Mt(It.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=yi(i);if(null!==o&&wt(o),null===(o=Gt(e,t,n,r))&&Kr(e,t,r,Wt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Kr(e,t,r,null,n)}}var Wt=null;function Gt(e,t,n,r){if(Wt=null,null!==(e=bi(e=we(r))))if(null===(t=Ue(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 Wt=e,null}function Qt(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 Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Zt=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 s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);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 sn,an,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),hn=on(dn),fn=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!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=on(fn),vn=on(L({},fn,{dataTransfer:0})),mn=on(L({},dn,{relatedTarget:0})),gn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),_n=on(L({},cn,{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"},xn={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function On(){return kn}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?xn[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),An=on(L({},fn,{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})),Rn=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=L({},fn,{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}),In=on(Dn),jn=[9,13,27,32],Pn=u&&"CompositionEvent"in window,Nn=null;u&&"documentMode"in document&&(Nn=document.documentMode);var Mn=u&&"TextEvent"in window&&!Nn,Ln=u&&(!Pn||Nn&&8<Nn&&11>=Nn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!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 Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){Se(r),0<(t=$r(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Yn=null;function Wn(e){zr(e,0)}function Gn(e){if(Y(_i(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Yn=$n=null)}function nr(e){if("value"===e.propertyName&&Gn(Yn)){var t=[];qn(t,Yn,e,we(e)),De(Wn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Yn)}function or(e,t){if("click"===e)return Gn(t)}function sr(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(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)||!ar(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(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 hr(){for(var e=window,t=W();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=W((e=t.contentWindow).document)}return t}function fr(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=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(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=ur(n,o);var s=ur(n,r);i&&s&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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=u&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,br=null,yr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==W(r)||(r="selectionStart"in(r=mr)&&fr(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},br&&lr(br,r)||(br=r,0<(r=$r(gr,"onSelect")).length&&(t=new un("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 xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},kr={};function Or(e){if(Cr[e])return Cr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Cr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Sr=Or("animationend"),Er=Or("animationiteration"),Ar=Or("animationstart"),Tr=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 Ir(e,t){Rr.set(e,t),l(t,[e])}for(var jr=0;jr<Dr.length;jr++){var Pr=Dr[jr];Ir(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Ir(Sr,"onAnimationEnd"),Ir(Er,"onAnimationIteration"),Ir(Ar,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("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,s,a,l,c){if(Ve.apply(this,arguments),Me){if(!Me)throw Error(o(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=!!(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 s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,a,c),o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,a,c),o=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(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 Br(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Vr]){e[Vr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Br("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Qt(t)){case 1:var i=qt;break;case 4:i=$t;break;default:i=Yt}n=i.bind(null,t,n,e),i=void 0,!je||"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 Kr(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;s=s.return}for(;null!==a;){if(null===(s=bi(a)))return;if(5===(l=s.tag)||6===l){r=o=s;continue e}a=a.parentNode}}r=r.return}De((function(){var r=o,i=we(n),s=[];e:{var a=Rr.get(e);if(void 0!==a){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=En;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=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":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Sr:case Er:case Ar:l=gn;break;case Tr:l=Rn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=!!(4&t),d=!u&&"scroll"===e,h=u?null!==a?a+"Capture":null:a;u=[];for(var f,p=r;null!==p;){var v=(f=p).stateNode;if(5===f.tag&&null!==v&&(f=v,null!==h&&null!=(v=Ie(p,h))&&u.push(qr(p,v,f))),d)break;p=p.return}0<u.length&&(a=new l(a,c,null,n,i),s.push({event:a,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===_e||!(c=n.relatedTarget||n.fromElement)||!bi(c)&&!c[pi])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bi(c):null)&&(c!==(d=Ue(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,v="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?a:_i(l),f=null==c?a:_i(c),(a=new u(v,p+"leave",l,n,i)).target=d,a.relatedTarget=f,v=null,bi(i)===r&&((u=new u(h,p+"enter",c,n,i)).target=f,u.relatedTarget=d,v=u),d=v,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Yr(f))p++;for(f=0,v=h;v;v=Yr(v))f++;for(;0<p-f;)u=Yr(u),p--;for(;0<f-p;)h=Yr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Yr(u),h=Yr(h)}u=null}else u=null;null!==l&&Wr(s,a,l,u,!1),null!==c&&null!==d&&Wr(s,d,c,u,!0)}if("select"===(l=(a=r?_i(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Qn;else if(Kn(a))if(Xn)m=sr;else{m=ir;var g=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=or);switch(m&&(m=m(e,r))?qn(s,m,n,i):(g&&g(e,a,r),"focusout"===e&&(g=a._wrapperState)&&g.controlled&&"number"===a.type&&ee(a,"number",a.value)),g=r?_i(r):window,e){case"focusin":(Kn(g)||"true"===g.contentEditable)&&(mr=g,gr=r,br=null);break;case"focusout":br=gr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,_r(s,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(s,n,i)}var b;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Un?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ln&&"ko"!==n.locale&&(Un||"onCompositionStart"!==y?"onCompositionEnd"===y&&Un&&(b=en()):(Jt="value"in(Xt=i)?Xt.value:Xt.textContent,Un=!0)),0<(g=$r(r,y)).length&&(y=new _n(y,e,null,n,i),s.push({event:y,listeners:g}),(b||null!==(b=Vn(n)))&&(y.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Pn&&Bn(e,t)?(e=en(),Zt=Jt=Xt=null,Un=!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=$r(r,"onBeforeInput")).length&&(i=new _n("onBeforeInput","beforeinput",null,n,i),s.push({event:i,listeners:r}),i.data=b)}zr(s,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(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=Ie(e,n))&&r.unshift(qr(e,o,i)),null!=(o=Ie(e,t))&&r.push(qr(e,o,i))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==c&&(a=c,i?null!=(l=Ie(n,o))&&s.unshift(qr(n,l,a)):i||null!=(l=Ie(n,o))&&s.push(qr(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Gr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Zr(){}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,si="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(ai)}:ri;function ai(e){setTimeout((function(){throw e}))}function li(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 Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function ci(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 ui(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),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,vi="__reactEvents$"+di,mi="__reactListeners$"+di,gi="__reactHandles$"+di;function bi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[hi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[hi]||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[fi]||null}var xi=[],Ci=-1;function ki(e){return{current:e}}function Oi(e){0>Ci||(e.current=xi[Ci],xi[Ci]=null,Ci--)}function Si(e,t){Ci++,xi[Ci]=e.current,e.current=t}var Ei={},Ai=ki(Ei),Ti=ki(!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 Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ji(){Oi(Ti),Oi(Ai)}function Pi(e,t,n){if(Ai.current!==Ei)throw Error(o(168));Si(Ai,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,H(e)||"Unknown",i));return L({},n,r)}function Mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ei,Ri=Ai.current,Si(Ai,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,Ri),r.__reactInternalMemoizedMergedChildContext=e,Oi(Ti),Oi(Ai),Si(Ai,e)):Oi(Ti),Si(Ti,n)}var zi=null,Fi=!1,Bi=!1;function Vi(e){null===zi?zi=[e]:zi.push(e)}function Ui(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=yt;try{var n=zi;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zi=null,Fi=!1}catch(t){throw null!==zi&&(zi=zi.slice(e+1)),Ye(Ze,Ui),t}finally{yt=t,Bi=!1}}return null}var Hi=[],Ki=0,qi=null,$i=0,Yi=[],Wi=0,Gi=null,Qi=1,Xi="";function Ji(e,t){Hi[Ki++]=$i,Hi[Ki++]=qi,qi=e,$i=t}function Zi(e,t,n){Yi[Wi++]=Qi,Yi[Wi++]=Xi,Yi[Wi++]=Gi,Gi=e;var r=Qi;e=Xi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Qi=1<<32-st(t)+i|n<<i|r,Xi=o+e}else Qi=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function to(e){for(;e===qi;)qi=Hi[--Ki],Hi[Ki]=null,$i=Hi[--Ki],Hi[Ki]=null;for(;e===Gi;)Gi=Yi[--Wi],Yi[Wi]=null,Xi=Yi[--Wi],Yi[Wi]=null,Qi=Yi[--Wi],Yi[Wi]=null}var no=null,ro=null,io=!1,oo=null;function so(e,t){var n=Dc(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 ao(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=ci(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!==Gi?{id:Qi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Dc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!ao(e,t)){if(lo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&ao(e,t)?so(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!io)return uo(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(lo(e))throw fo(),Error(o(418));for(;t;)so(e,t),t=ci(t.nextSibling)}if(uo(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=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ci(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,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,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=i.refs;null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yo(e){return(0,e._init)(e._payload)}function _o(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=jc(e,t)).index=0,e.sibling=null,e}function s(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 a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&yo(o)===t.type)?((r=i(t,n.props)).ref=go(e,t,n),r.return=e,r):((r=Pc(n.type,n.key,n.props,null,e.mode,r)).ref=go(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(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=Nc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Pc(t.type,t.key,t.props,null,e.mode,n)).ref=go(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Nc(t,e.mode,n,null)).return=e,t;bo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case x:return n.key===i?u(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||N(n))return null!==i?null:d(e,t,n,r,null);bo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I: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);bo(t,r)}return null}function v(i,o,a,l){for(var c=null,u=null,d=o,v=o=0,m=null;null!==d&&v<a.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var g=f(i,d,a[v],l);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),o=s(g,o,v),null===u?c=g:u.sibling=g,u=g,d=m}if(v===a.length)return n(i,d),io&&Ji(i,v),c;if(null===d){for(;v<a.length;v++)null!==(d=h(i,a[v],l))&&(o=s(d,o,v),null===u?c=d:u.sibling=d,u=d);return io&&Ji(i,v),c}for(d=r(i,d);v<a.length;v++)null!==(m=p(d,i,v,a[v],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),o=s(m,o,v),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),io&&Ji(i,v),c}function m(i,a,l,c){var u=N(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,v=a,m=a=0,g=null,b=l.next();null!==v&&!b.done;m++,b=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var y=f(i,v,b.value,c);if(null===y){null===v&&(v=g);break}e&&v&&null===y.alternate&&t(i,v),a=s(y,a,m),null===d?u=y:d.sibling=y,d=y,v=g}if(b.done)return n(i,v),io&&Ji(i,m),u;if(null===v){for(;!b.done;m++,b=l.next())null!==(b=h(i,b.value,c))&&(a=s(b,a,m),null===d?u=b:d.sibling=b,d=b);return io&&Ji(i,m),u}for(v=r(i,v);!b.done;m++,b=l.next())null!==(b=p(v,i,m,b.value,c))&&(e&&null!==b.alternate&&v.delete(null===b.key?m:b.key),a=s(b,a,m),null===d?u=b:d.sibling=b,d=b);return e&&v.forEach((function(e){return t(i,e)})),io&&Ji(i,m),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===C&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===C){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&yo(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=go(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===C?((o=Nc(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=Pc(s.type,s.key,s.props,null,r.mode,l)).ref=go(r,o,s),l.return=r,r=l)}return a(r);case x:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(s,r.mode,l)).return=r,r=o}return a(r);case I:return e(r,o,(u=s._init)(s._payload),l)}if(te(s))return v(r,o,s,l);if(N(s))return m(r,o,s,l);bo(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=Lc(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var wo=_o(!0),xo=_o(!1),Co=ki(null),ko=null,Oo=null,So=null;function Eo(){So=Oo=ko=null}function Ao(e){var t=Co.current;Oi(Co),e._currentValue=t}function To(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 Ro(e,t){ko=e,So=Oo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ya=!0),e.firstContext=null)}function Do(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},null===Oo){if(null===ko)throw Error(o(308));Oo=e,ko.dependencies={lanes:0,firstContext:e}}else Oo=Oo.next=e;return t}var Io=null;function jo(e){null===Io?Io=[e]:Io.push(e)}function Po(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,No(e,r)}function No(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 Mo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(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 Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Al){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,No(e,n)}return null===(i=r.interleaved)?(t.next=t,jo(r)):(t.next=i.next,i.next=t),r.interleaved=t,No(e,n)}function Vo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Uo(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=s:o=o.next=s,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 Ho(e,t,n,r){var i=e.updateQueue;Mo=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,c=l.next;l.next=null,null===s?o=c:s.next=c,s=l;var u=e.alternate;null!==u&&(a=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(s=0,u=c=l=null,a=o;;){var h=a.lane,f=a.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,v=a;switch(h=t,f=n,v.tag){case 1:if("function"==typeof(p=v.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"==typeof(p=v.payload)?p.call(f,d,h):p)||void 0===h)break e;d=L({},d,h);break e;case 2:Mo=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,s|=h;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(h=a).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{s|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ml|=s,e.lanes=s,e.memoizedState=d}}function Ko(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 qo={},$o=ki(qo),Yo=ki(qo),Wo=ki(qo);function Go(e){if(e===qo)throw Error(o(174));return e}function Qo(e,t){switch(Si(Wo,t),Si(Yo,e),Si($o,qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oi($o),Si($o,t)}function Xo(){Oi($o),Oi(Yo),Oi(Wo)}function Jo(e){Go(Wo.current);var t=Go($o.current),n=le(t,e.type);t!==n&&(Si(Yo,e),Si($o,n))}function Zo(e){Yo.current===e&&(Oi($o),Oi(Yo))}var es=ki(0);function ts(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(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 ns=[];function rs(){for(var e=0;e<ns.length;e++)ns[e]._workInProgressVersionPrimary=null;ns.length=0}var is=_.ReactCurrentDispatcher,os=_.ReactCurrentBatchConfig,ss=0,as=null,ls=null,cs=null,us=!1,ds=!1,hs=0,fs=0;function ps(){throw Error(o(321))}function vs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ms(e,t,n,r,i,s){if(ss=s,as=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,is.current=null===e||null===e.memoizedState?Zs:ea,e=n(r,i),ds){s=0;do{if(ds=!1,hs=0,25<=s)throw Error(o(301));s+=1,cs=ls=null,t.updateQueue=null,is.current=ta,e=n(r,i)}while(ds)}if(is.current=Js,t=null!==ls&&null!==ls.next,ss=0,cs=ls=as=null,us=!1,t)throw Error(o(300));return e}function gs(){var e=0!==hs;return hs=0,e}function bs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cs?as.memoizedState=cs=e:cs=cs.next=e,cs}function ys(){if(null===ls){var e=as.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===cs?as.memoizedState:cs.next;if(null!==t)cs=t,ls=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===cs?as.memoizedState=cs=e:cs=cs.next=e}return cs}function _s(e,t){return"function"==typeof t?t(e):t}function ws(e){var t=ys(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ls,i=r.baseQueue,s=n.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(null!==i){s=i.next,r=r.baseState;var l=a=null,c=null,u=s;do{var d=u.lane;if((ss&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,a=r):c=c.next=h,as.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==s);null===c?a=r:c.next=l,ar(r,t.memoizedState)||(ya=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{s=i.lane,as.lanes|=s,Ml|=s,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xs(e){var t=ys(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);ar(s,t.memoizedState)||(ya=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Cs(){}function ks(e,t){var n=as,r=ys(),i=t(),s=!ar(r.memoizedState,i);if(s&&(r.memoizedState=i,ya=!0),r=r.queue,Ms(Es.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==cs&&1&cs.memoizedState.tag){if(n.flags|=2048,Ds(9,Ss.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));30&ss||Os(n,t,i)}return i}function Os(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ss(e,t,n,r){t.value=n,t.getSnapshot=r,As(t)&&Ts(e)}function Es(e,t,n){return n((function(){As(t)&&Ts(e)}))}function As(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Ts(e){var t=No(e,1);null!==t&&nc(t,e,1,-1)}function Rs(e){var t=bs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_s,lastRenderedState:e},t.queue=e,e=e.dispatch=Ws.bind(null,as,e),[t.memoizedState,e]}function Ds(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=as.updateQueue)?(t={lastEffect:null,stores:null},as.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 Is(){return ys().memoizedState}function js(e,t,n,r){var i=bs();as.flags|=e,i.memoizedState=Ds(1|t,n,void 0,void 0===r?null:r)}function Ps(e,t,n,r){var i=ys();r=void 0===r?null:r;var o=void 0;if(null!==ls){var s=ls.memoizedState;if(o=s.destroy,null!==r&&vs(r,s.deps))return void(i.memoizedState=Ds(t,n,o,r))}as.flags|=e,i.memoizedState=Ds(1|t,n,o,r)}function Ns(e,t){return js(8390656,8,e,t)}function Ms(e,t){return Ps(2048,8,e,t)}function Ls(e,t){return Ps(4,2,e,t)}function zs(e,t){return Ps(4,4,e,t)}function Fs(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 Bs(e,t,n){return n=null!=n?n.concat([e]):null,Ps(4,4,Fs.bind(null,t,e),n)}function Vs(){}function Us(e,t){var n=ys();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&vs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hs(e,t){var n=ys();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&vs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ks(e,t,n){return 21&ss?(ar(n,t)||(n=vt(),as.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ya=!0),e.memoizedState=n)}function qs(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=os.transition;os.transition={};try{e(!1),t()}finally{yt=n,os.transition=r}}function $s(){return ys().memoizedState}function Ys(e,t,n){var r=tc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gs(e)?Qs(t,n):null!==(n=Po(e,t,n,r))&&(nc(n,e,r,ec()),Xs(n,t,r))}function Ws(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))Qs(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(i.next=i,jo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Po(e,t,i,r))&&(nc(n,e,r,i=ec()),Xs(n,t,r))}}function Gs(e){var t=e.alternate;return e===as||null!==t&&t===as}function Qs(e,t){ds=us=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Js={readContext:Do,useCallback:ps,useContext:ps,useEffect:ps,useImperativeHandle:ps,useInsertionEffect:ps,useLayoutEffect:ps,useMemo:ps,useReducer:ps,useRef:ps,useState:ps,useDebugValue:ps,useDeferredValue:ps,useTransition:ps,useMutableSource:ps,useSyncExternalStore:ps,useId:ps,unstable_isNewReconciler:!1},Zs={readContext:Do,useCallback:function(e,t){return bs().memoizedState=[e,void 0===t?null:t],e},useContext:Do,useEffect:Ns,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,js(4194308,4,Fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){return js(4,2,e,t)},useMemo:function(e,t){var n=bs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bs();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=Ys.bind(null,as,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bs().memoizedState=e},useState:Rs,useDebugValue:Vs,useDeferredValue:function(e){return bs().memoizedState=e},useTransition:function(){var e=Rs(!1),t=e[0];return e=qs.bind(null,e[1]),bs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=as,i=bs();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));30&ss||Os(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ns(Es.bind(null,r,s,e),[e]),r.flags|=2048,Ds(9,Ss.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=bs(),t=Tl.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=(Qi&~(1<<32-st(Qi)-1)).toString(32)+n),0<(n=hs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ea={readContext:Do,useCallback:Us,useContext:Do,useEffect:Ms,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:zs,useMemo:Hs,useReducer:ws,useRef:Is,useState:function(){return ws(_s)},useDebugValue:Vs,useDeferredValue:function(e){return Ks(ys(),ls.memoizedState,e)},useTransition:function(){return[ws(_s)[0],ys().memoizedState]},useMutableSource:Cs,useSyncExternalStore:ks,useId:$s,unstable_isNewReconciler:!1},ta={readContext:Do,useCallback:Us,useContext:Do,useEffect:Ms,useImperativeHandle:Bs,useInsertionEffect:Ls,useLayoutEffect:zs,useMemo:Hs,useReducer:xs,useRef:Is,useState:function(){return xs(_s)},useDebugValue:Vs,useDeferredValue:function(e){var t=ys();return null===ls?t.memoizedState=e:Ks(t,ls.memoizedState,e)},useTransition:function(){return[xs(_s)[0],ys().memoizedState]},useMutableSource:Cs,useSyncExternalStore:ks,useId:$s,unstable_isNewReconciler:!1};function na(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}function ra(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 ia={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Vo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),o=Fo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Bo(e,o,i))&&(nc(t,e,i,r),Vo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Bo(e,i,r))&&(nc(t,e,r,n),Vo(t,e,r))}};function oa(e,t,n,r,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(i,o))}function sa(e,t,n){var r=!1,i=Ei,o=t.contextType;return"object"==typeof o&&null!==o?o=Do(o):(i=Ii(t)?Ri:Ai.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=ia,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function aa(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&&ia.enqueueReplaceState(t,t.state,null)}function la(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Do(o):(o=Ii(t)?Ri:Ai.current,i.context=Di(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ra(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&&ia.enqueueReplaceState(i,i.state,null),Ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function ca(e,t){try{var n="",r=t;do{n+=V(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 ua(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,ql=r),da(0,t)},n}function pa(e,t,n){(n=Fo(-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(){da(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){da(0,t),"function"!=typeof r&&(null===$l?$l=new Set([this]):$l.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function va(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ha;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=Oc.bind(null,e,t,n),t.then(e,e))}function ma(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 ga(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1),e)}var ba=_.ReactCurrentOwner,ya=!1;function _a(e,t,n,r){t.child=null===e?xo(t,null,n,r):wo(t,e.child,n,r)}function wa(e,t,n,r,i){n=n.render;var o=t.ref;return Ro(t,i),r=ms(e,t,n,r,o,i),n=gs(),null===e||ya?(io&&n&&eo(t),t.flags|=1,_a(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ka(e,t,i))}function xa(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Ic(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ca(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ka(e,t,i)}return t.flags|=1,(e=jc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ca(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(ya=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Ka(e,t,i);131072&e.flags&&(ya=!0)}}return Sa(e,t,n,r,i)}function ka(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(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(jl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Si(jl,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Si(jl,Il),Il|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Si(jl,Il),Il|=r;return _a(e,t,i,n),t.child}function Oa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sa(e,t,n,r,i){var o=Ii(n)?Ri:Ai.current;return o=Di(t,o),Ro(t,i),n=ms(e,t,n,r,o,i),r=gs(),null===e||ya?(io&&r&&eo(t),t.flags|=1,_a(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ka(e,t,i))}function Ea(e,t,n,r,i){if(Ii(n)){var o=!0;Mi(t)}else o=!1;if(Ro(t,i),null===t.stateNode)Ha(e,t),sa(t,n,r),la(t,n,r,i),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;c="object"==typeof c&&null!==c?Do(c):Di(t,c=Ii(n)?Ri:Ai.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==c)&&aa(t,s,r,c),Mo=!1;var h=t.memoizedState;s.state=h,Ho(t,r,s,i),l=t.memoizedState,a!==r||h!==l||Ti.current||Mo?("function"==typeof u&&(ra(t,n,u,r),l=t.memoizedState),(a=Mo||oa(t,n,a,r,h,l,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,zo(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:na(t.type,a),s.props=c,d=t.pendingProps,h=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Do(l):Di(t,l=Ii(n)?Ri:Ai.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==d||h!==l)&&aa(t,s,r,l),Mo=!1,h=t.memoizedState,s.state=h,Ho(t,r,s,i);var p=t.memoizedState;a!==d||h!==p||Ti.current||Mo?("function"==typeof f&&(ra(t,n,f,r),p=t.memoizedState),(c=Mo||oa(t,n,c,r,h,p,l)||!1)?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,p,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Aa(e,t,n,r,o,i)}function Aa(e,t,n,r,i,o){Oa(e,t);var s=!!(128&t.flags);if(!r&&!s)return i&&Li(t,n,!1),Ka(e,t,o);r=t.stateNode,ba.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,a,o)):_a(e,t,a,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ta(e){var t=e.stateNode;t.pendingContext?Pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pi(0,t.context,!1),Qo(e,t.containerInfo)}function Ra(e,t,n,r,i){return po(),vo(i),t.flags|=256,_a(e,t,n,r),t.child}var Da,Ia,ja,Pa,Na={dehydrated:null,treeContext:null,retryLane:0};function Ma(e){return{baseLanes:e,cachePool:null,transitions:null}}function La(e,t,n){var r,i=t.pendingProps,s=es.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Si(es,1&s),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,a?(i=t.mode,a=t.child,l={mode:"hidden",children:l},1&i||null===a?a=Mc(l,i,0,null):(a.childLanes=0,a.pendingProps=l),e=Nc(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ma(n),t.memoizedState=Na,e):za(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,i,s,a){if(n)return 256&t.flags?(t.flags&=-257,Fa(e,t,a,r=ua(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Mc({mode:"visible",children:r.children},i,0,null),(s=Nc(s,i,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,!!(1&t.mode)&&wo(t,e.child,null,a),t.child.memoizedState=Ma(a),t.memoizedState=Na,s);if(!(1&t.mode))return Fa(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Fa(e,t,a,r=ua(s=Error(o(419)),r,void 0))}if(l=0!==(a&e.childLanes),ya||l){if(null!==(r=Tl)){switch(a&-a){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|a))?0:i)&&i!==s.retryLane&&(s.retryLane=i,No(e,i),nc(r,e,i,-1))}return vc(),Fa(e,t,a,r=ua(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ec.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Yi[Wi++]=Qi,Yi[Wi++]=Xi,Yi[Wi++]=Gi,Qi=e.id,Xi=e.overflow,Gi=t),(t=za(t,r.children)).flags|=4096,t)}(e,t,l,i,r,s,n);if(a){a=i.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===s?(i=jc(s,c)).subtreeFlags=14680064&s.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==r?a=jc(r,a):(a=Nc(a,l,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,l=null===(l=e.child.memoizedState)?Ma(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Na,i}return e=(a=e.child).sibling,i=jc(a,{mode:"visible",children:i.children}),!(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 za(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fa(e,t,n,r){return null!==r&&vo(r),wo(t,e.child,null,n),(e=za(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ba(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),To(e.return,t,n)}function Va(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 Ua(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(_a(e,t,r.children,n),2&(r=es.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ba(e,n,t);else if(19===e.tag)Ba(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(es,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ts(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Va(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===ts(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Va(t,!0,n,null,o);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ha(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ka(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=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=jc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qa(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 $a(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 Ya(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 $a(t),null;case 1:case 17:return Ii(t.type)&&ji(),$a(t),null;case 3:return r=t.stateNode,Xo(),Oi(Ti),Oi(Ai),rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Ia(e,t),$a(t),null;case 5:Zo(t);var i=Go(Wo.current);if(n=t.type,null!==e&&null!=t.stateNode)ja(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 $a(t),null}if(e=Go($o.current),ho(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[hi]=t,r[fi]=s,e=!!(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(i=0;i<Nr.length;i++)Fr(Nr[i],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,s),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",r);break;case"textarea":ie(r,s),Fr("invalid",r)}for(var l in be(n,s),i=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":$(r),Z(r,s,!0);break;case"textarea":$(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,Da(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nr.length;i++)Fr(Nr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":Q(e,r),i=G(e,r),Fr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Fr("invalid",e)}for(s in be(n,i),c=i)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?me(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Fr("scroll",e):null!=u&&y(e,s,u,l))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zr)}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 $a(t),null;case 6:if(e&&null!=t.stateNode)Pa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Go(Wo.current),Go($o.current),ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(s=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return $a(t),null;case 13:if(Oi(es),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&1&t.mode&&!(128&t.flags))fo(),po(),t.flags|=98560,s=!1;else if(s=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(o(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(o(317));s[hi]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$a(t),s=!1}else null!==oo&&(sc(oo),oo=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,!!(1&t.mode)&&(null===e||1&es.current?0===Pl&&(Pl=3):vc())),null!==t.updateQueue&&(t.flags|=4),$a(t),null);case 4:return Xo(),Ia(e,t),null===e&&Ur(t.stateNode.containerInfo),$a(t),null;case 10:return Ao(t.type._context),$a(t),null;case 19:if(Oi(es),null===(s=t.memoizedState))return $a(t),null;if(r=!!(128&t.flags),null===(l=s.rendering))if(r)qa(s,!1);else{if(0!==Pl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ts(e))){for(t.flags|=128,qa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Si(es,1&es.current|2),t.child}e=e.sibling}null!==s.tail&&Xe()>Ul&&(t.flags|=128,r=!0,qa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ts(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!io)return $a(t),null}else 2*Xe()-s.renderingStartTime>Ul&&1073741824!==n&&(t.flags|=128,r=!0,qa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Xe(),t.sibling=null,n=es.current,Si(es,r?1&n|2:1&n),t):($a(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Il)&&($a(t),6&t.subtreeFlags&&(t.flags|=8192)):$a(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Wa(e,t){switch(to(t),t.tag){case 1:return Ii(t.type)&&ji(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xo(),Oi(Ti),Oi(Ai),rs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(Oi(es),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(es),null;case 4:return Xo(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Da=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}},Ia=function(){},ja=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Go($o.current);var o,s=null;switch(n){case"input":i=G(e,i),r=G(e,r),s=[];break;case"select":i=L({},i,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":i=re(e,i),r=re(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in be(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Pa=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ga=!1,Qa=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Ja=null;function Za(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){kc(e,t,n)}}var tl=!1;function nl(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&&el(t,n,o)}i=i.next}while(i!==r)}}function rl(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 il(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 ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],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 sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(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 ll(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=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(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(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Qa||Za(n,t);case 6:var r=ul,i=dl;ul=null,hl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Ut(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,hl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Qa&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,void 0!==s&&(!!(2&o)||!!(4&o))&&el(n,t,s),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Qa&&(Za(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Qa=(r=Qa)||null!==n.memoizedState,hl(e,t,n),Qa=r):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var r=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));fl(s,a,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){kc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){kc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:vl(t,e),gl(e),512&r&&null!==n&&Za(n,n.return);break;case 5:if(vl(t,e),gl(e),512&r&&null!==n&&Za(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(t){kc(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&X(i,s),ye(l,a);var u=ye(l,s);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];"style"===d?me(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):y(i,d,h,u)}switch(l){case"input":J(i,s);break;case"textarea":oe(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;null!=p?ne(i,!!s.multiple,p,!1):f!==!!s.multiple&&(null!=s.defaultValue?ne(i,!!s.multiple,s.defaultValue,!0):ne(i,!!s.multiple,s.multiple?[]:"",!1))}i[fi]=s}catch(t){kc(e,e.return,t)}}break;case 6:if(vl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(t){kc(e,e.return,t)}}break;case 3:if(vl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:vl(t,e),gl(e);break;case 13:vl(t,e),gl(e),8192&(i=e.child).flags&&(s=null!==i.memoizedState,i.stateNode.isHidden=s,!s||null!==i.alternate&&null!==i.alternate.memoizedState||(Vl=Xe())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qa=(u=Qa)||d,vl(t,e),Qa=u):vl(t,e),gl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Ja=e,d=e.child;null!==d;){for(h=Ja=d;null!==Ja;){switch(p=(f=Ja).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Za(f,f.return);var v=f.stateNode;if("function"==typeof v.componentWillUnmount){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){kc(r,n,e)}}break;case 5:Za(f,f.return);break;case 22:if(null!==f.memoizedState){wl(h);continue}}null!==p?(p.return=f,Ja=p):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=h.stateNode,a=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ve("display",a))}catch(t){kc(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:vl(t,e),gl(e),4&r&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(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&&(he(i,""),r.flags&=-33),cl(e,al(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(o(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Ja=e,yl(e,t,n)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Ja;){var i=Ja,o=i.child;if(22===i.tag&&r){var s=null!==i.memoizedState||Ga;if(!s){var a=i.alternate,l=null!==a&&null!==a.memoizedState||Qa;a=Ga;var c=Qa;if(Ga=s,(Qa=l)&&!c)for(Ja=i;null!==Ja;)l=(s=Ja).child,22===s.tag&&null!==s.memoizedState?xl(i):null!==l?(l.return=s,Ja=l):xl(i);for(;null!==o;)Ja=o,yl(o,t,n),o=o.sibling;Ja=i,Ga=a,Qa=c}_l(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Ja=o):_l(e)}}function _l(e){for(;null!==Ja;){var t=Ja;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qa||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qa)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:na(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ko(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ko(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.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 u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Ut(h)}}}break;default:throw Error(o(163))}Qa||512&t.flags&&il(t)}catch(e){kc(t,t.return,e)}}if(t===e){Ja=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ja=n;break}Ja=t.return}}function wl(e){for(;null!==Ja;){var t=Ja;if(t===e){Ja=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ja=n;break}Ja=t.return}}function xl(e){for(;null!==Ja;){var t=Ja;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){kc(t,i,e)}}var o=t.return;try{il(t)}catch(e){kc(t,o,e)}break;case 5:var s=t.return;try{il(t)}catch(e){kc(t,s,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Ja=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ja=a;break}Ja=t.return}}var Cl,kl=Math.ceil,Ol=_.ReactCurrentDispatcher,Sl=_.ReactCurrentOwner,El=_.ReactCurrentBatchConfig,Al=0,Tl=null,Rl=null,Dl=0,Il=0,jl=ki(0),Pl=0,Nl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Vl=0,Ul=1/0,Hl=null,Kl=!1,ql=null,$l=null,Yl=!1,Wl=null,Gl=0,Ql=0,Xl=null,Jl=-1,Zl=0;function ec(){return 6&Al?Xe():-1!==Jl?Jl:Jl=Xe()}function tc(e){return 1&e.mode?2&Al&&0!==Dl?Dl&-Dl:null!==mo.transition?(0===Zl&&(Zl=vt()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function nc(e,t,n,r){if(50<Ql)throw Ql=0,Xl=null,Error(o(185));gt(e,n,r),2&Al&&e===Tl||(e===Tl&&(!(2&Al)&&(Ll|=n),4===Pl&&ac(e,Dl)),rc(e,r),1===n&&0===Al&&!(1&t.mode)&&(Ul=Xe()+500,Fi&&Ui()))}function rc(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 s=31-st(o),a=1<<s,l=i[s];-1===l?0!==(a&n)&&0===(a&r)||(i[s]=ft(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}(e,t);var r=ht(e,e===Tl?Dl:0);if(0===r)null!==n&&We(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&We(n),1===t)0===e.tag?function(e){Fi=!0,Vi(e)}(lc.bind(null,e)):Vi(lc.bind(null,e)),si((function(){!(6&Al)&&Ui()})),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Zl=0,6&Al)throw Error(o(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=ht(e,e===Tl?Dl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var i=Al;Al|=2;var s=pc();for(Tl===e&&Dl===t||(Hl=null,Ul=Xe()+500,hc(e,t));;)try{bc();break}catch(t){fc(e,t)}Eo(),Ol.current=s,Al=i,null!==Rl?t=0:(Tl=null,Dl=0,t=Pl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(r=i,t=oc(e,i)),1===t)throw n=Nl,hc(e,0),ac(e,r),rc(e,Xe()),n;if(6===t)ac(e,r);else{if(i=e.current.alternate,!(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(!ar(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=mc(e,r))&&0!==(s=pt(e))&&(r=s,t=oc(e,s)),1!==t)))throw n=Nl,hc(e,0),ac(e,r),rc(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wc(e,Bl,Hl);break;case 3:if(ac(e,r),(130023424&r)===r&&10<(t=Vl+500-Xe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wc.bind(null,e,Bl,Hl),t);break}wc(e,Bl,Hl);break;case 4:if(ac(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>i&&(i=a),r&=~s}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)){e.timeoutHandle=ri(wc.bind(null,e,Bl,Hl),r);break}wc(e,Bl,Hl);break;default:throw Error(o(329))}}}return rc(e,Xe()),e.callbackNode===n?ic.bind(null,e):null}function oc(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Bl,Bl=n,null!==t&&sc(t)),e}function sc(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function ac(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(6&Al)throw Error(o(327));xc();var t=ht(e,0);if(!(1&t))return rc(e,Xe()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Nl,hc(e,0),ac(e,t),rc(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Bl,Hl),rc(e,Xe()),null}function cc(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(Ul=Xe()+500,Fi&&Ui())}}function uc(e){null!==Wl&&0===Wl.tag&&!(6&Al)&&xc();var t=Al;Al|=1;var n=El.transition,r=yt;try{if(El.transition=null,yt=1,e)return e()}finally{yt=r,El.transition=n,!(6&(Al=t))&&Ui()}}function dc(){Il=jl.current,Oi(jl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ji();break;case 3:Xo(),Oi(Ti),Oi(Ai),rs();break;case 5:Zo(r);break;case 4:Xo();break;case 13:case 19:Oi(es);break;case 10:Ao(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Rl=e=jc(e.current,null),Dl=Il=t,Pl=0,Nl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Io){for(t=0;t<Io.length;t++)if(null!==(r=(n=Io[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var s=o.next;o.next=i,r.next=s}n.pending=r}Io=null}return e}function fc(e,t){for(;;){var n=Rl;try{if(Eo(),is.current=Js,us){for(var r=as.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}us=!1}if(ss=0,cs=ls=as=null,ds=!1,hs=0,Sl.current=null,null===n||null===n.return){Pl=1,Nl=t,Rl=null;break}e:{var s=e,a=n.return,l=n,c=t;if(t=Dl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ma(a);if(null!==p){p.flags&=-257,ga(p,a,l,0,t),1&p.mode&&va(s,u,t),c=u;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(c),t.updateQueue=m}else v.add(c);break e}if(!(1&t)){va(s,u,t),vc();break e}c=Error(o(426))}else if(io&&1&l.mode){var g=ma(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ga(g,a,l,0,t),vo(ca(c,l));break e}}s=c=ca(c,l),4!==Pl&&(Pl=2),null===Fl?Fl=[s]:Fl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Uo(s,fa(0,c,t));break e;case 1:l=c;var b=s.type,y=s.stateNode;if(!(128&s.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==$l&&$l.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t,Uo(s,pa(s,l,t));break e}}s=s.return}while(null!==s)}_c(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function pc(){var e=Ol.current;return Ol.current=Js,null===e?Js:e}function vc(){0!==Pl&&3!==Pl&&2!==Pl||(Pl=4),null===Tl||!(268435455&Ml)&&!(268435455&Ll)||ac(Tl,Dl)}function mc(e,t){var n=Al;Al|=2;var r=pc();for(Tl===e&&Dl===t||(Hl=null,hc(e,t));;)try{gc();break}catch(t){fc(e,t)}if(Eo(),Al=n,Ol.current=r,null!==Rl)throw Error(o(261));return Tl=null,Dl=0,Pl}function gc(){for(;null!==Rl;)yc(Rl)}function bc(){for(;null!==Rl&&!Ge();)yc(Rl)}function yc(e){var t=Cl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?_c(e):Rl=t,Sl.current=null}function _c(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wa(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return Pl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ya(n,t,Il)))return void(Rl=n);if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Pl&&(Pl=5)}function wc(e,t,n){var r=yt,i=El.transition;try{El.transition=null,yt=1,function(e,t,n,r){do{xc()}while(null!==Wl);if(6&Al)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 s=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-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,s),e===Tl&&(Rl=Tl=null,Dl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Tc(tt,(function(){return xc(),null}))),s=!!(15990&n.flags),15990&n.subtreeFlags||s){s=El.transition,El.transition=null;var a=yt;yt=1;var l=Al;Al|=4,Sl.current=null,function(e,t){if(ei=Kt,fr(e=hr())){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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=a+i),h!==s||0!==r&&3!==h.nodeType||(c=a+r),3===h.nodeType&&(a+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===i&&(l=a),f===s&&++d===r&&(c=a),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Kt=!1,Ja=t;null!==Ja;)if(e=(t=Ja).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ja=e;else for(;null!==Ja;){t=Ja;try{var v=t.alternate;if(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,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:na(t.type,m),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(o(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ja=e;break}Ja=t.return}v=tl,tl=!1}(e,n),ml(n,e),pr(ti),Kt=!!ei,ti=ei=null,e.current=n,bl(n,e,i),Qe(),Al=l,yt=a,El.transition=s}else e.current=n;if(Yl&&(Yl=!1,Wl=e,Gl=i),0===(s=e.pendingLanes)&&($l=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Kl)throw Kl=!1,e=ql,ql=null,e;!!(1&Gl)&&0!==e.tag&&xc(),1&(s=e.pendingLanes)?e===Xl?Ql++:(Ql=0,Xl=e):Ql=0,Ui()}(e,t,n,r)}finally{El.transition=i,yt=r}return null}function xc(){if(null!==Wl){var e=_t(Gl),t=El.transition,n=yt;try{if(El.transition=null,yt=16>e?16:e,null===Wl)var r=!1;else{if(e=Wl,Wl=null,Gl=0,6&Al)throw Error(o(331));var i=Al;for(Al|=4,Ja=e.current;null!==Ja;){var s=Ja,a=s.child;if(16&Ja.flags){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Ja=u;null!==Ja;){var d=Ja;switch(d.tag){case 0:case 11:case 15:nl(8,d,s)}var h=d.child;if(null!==h)h.return=d,Ja=h;else for(;null!==Ja;){var f=(d=Ja).sibling,p=d.return;if(ol(d),d===u){Ja=null;break}if(null!==f){f.return=p,Ja=f;break}Ja=p}}}var v=s.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)}}Ja=s}}if(2064&s.subtreeFlags&&null!==a)a.return=s,Ja=a;else e:for(;null!==Ja;){if(2048&(s=Ja).flags)switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var b=s.sibling;if(null!==b){b.return=s.return,Ja=b;break e}Ja=s.return}}var y=e.current;for(Ja=y;null!==Ja;){var _=(a=Ja).child;if(2064&a.subtreeFlags&&null!==_)_.return=a,Ja=_;else e:for(a=y;null!==Ja;){if(2048&(l=Ja).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){kc(l,l.return,e)}if(l===a){Ja=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ja=w;break e}Ja=l.return}}if(Al=i,Ui(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{yt=n,El.transition=t}}return!1}function Cc(e,t,n){e=Bo(e,t=fa(0,t=ca(n,t),1),1),t=ec(),null!==e&&(gt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Cc(e,e,n);else for(;null!==t;){if(3===t.tag){Cc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$l||!$l.has(r))){t=Bo(t,e=pa(t,e=ca(n,e),1),1),e=ec(),null!==t&&(gt(t,1,e),rc(t,e));break}}t=t.return}}function Oc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Dl&n)===n&&(4===Pl||3===Pl&&(130023424&Dl)===Dl&&500>Xe()-Vl?hc(e,0):zl|=n),rc(e,t)}function Sc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=No(e,t))&&(gt(e,t,n),rc(e,n))}function Ec(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Sc(e,n)}function Ac(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),Sc(e,n)}function Tc(e,t){return Ye(e,t)}function Rc(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 Dc(e,t,n,r){return new Rc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jc(e,t){var n=e.alternate;return null===n?((n=Dc(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 Pc(e,t,n,r,i,s){var a=2;if(r=e,"function"==typeof e)Ic(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case C:return Nc(n.children,i,s,t);case k:a=8,i|=8;break;case O:return(e=Dc(12,n,t,2|i)).elementType=O,e.lanes=s,e;case T:return(e=Dc(13,n,t,i)).elementType=T,e.lanes=s,e;case R:return(e=Dc(19,n,t,i)).elementType=R,e.lanes=s,e;case j:return Mc(n,i,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:a=10;break e;case E:a=9;break e;case A:a=11;break e;case D:a=14;break e;case I:a=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Dc(a,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Nc(e,t,n,r){return(e=Dc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Dc(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Dc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Dc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(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 Bc(e,t,n,r,i,o,s,a,l){return e=new Fc(e,t,n,a,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Dc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function Vc(e){if(!e)return Ei;e:{if(Ue(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(Ii(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(Ii(n))return Ni(e,n,t)}return t}function Uc(e,t,n,r,i,o,s,a,l){return(e=Bc(n,r,!0,e,0,o,0,a,l)).context=Vc(null),n=e.current,(o=Fo(r=ec(),i=tc(n))).callback=null!=t?t:null,Bo(n,o,i),e.current.lanes=i,gt(e,i,r),rc(e,r),e}function Hc(e,t,n,r){var i=t.current,o=ec(),s=tc(i);return n=Vc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(i,t,s))&&(nc(e,i,s,o),Vo(e,i,s)),s}function Kc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $c(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)ya=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ya=!1,function(e,t,n){switch(t.tag){case 3:Ta(t),po();break;case 5:Jo(t);break;case 1:Ii(t.type)&&Mi(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(Co,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(es,1&es.current),t.flags|=128,null):0!==(n&t.child.childLanes)?La(e,t,n):(Si(es,1&es.current),null!==(e=Ka(e,t,n))?e.sibling:null);Si(es,1&es.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ua(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(es,es.current),r)break;return null;case 22:case 23:return t.lanes=0,ka(e,t,n)}return Ka(e,t,n)}(e,t,n);ya=!!(131072&e.flags)}else ya=!1,io&&1048576&t.flags&&Zi(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var i=Di(t,Ai.current);Ro(t,n),i=ms(null,t,r,e,i,n);var s=gs();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,Ii(r)?(s=!0,Mi(t)):s=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Lo(t),i.updater=ia,t.stateNode=i,i._reactInternals=t,la(t,r,e,n),t=Aa(null,t,r,!0,s,n)):(t.tag=0,io&&s&&eo(t),_a(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===D)return 14}return 2}(r),e=na(r,e),i){case 0:t=Sa(null,t,r,e,n);break e;case 1:t=Ea(null,t,r,e,n);break e;case 11:t=wa(null,t,r,e,n);break e;case 14:t=xa(null,t,r,na(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Sa(e,t,r,i=t.elementType===r?i:na(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ea(e,t,r,i=t.elementType===r?i:na(r,i),n);case 3:e:{if(Ta(t),null===e)throw Error(o(387));r=t.pendingProps,i=(s=t.memoizedState).element,zo(e,t),Ho(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ra(e,t,r,n,i=ca(Error(o(423)),t));break e}if(r!==i){t=Ra(e,t,r,n,i=ca(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=xo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){t=Ka(e,t,n);break e}_a(e,t,r,n)}t=t.child}return t;case 5:return Jo(t),null===e&&co(t),r=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,a=i.children,ni(r,i)?a=null:null!==s&&ni(r,s)&&(t.flags|=32),Oa(e,t),_a(e,t,a,n),t.child;case 6:return null===e&&co(t),null;case 13:return La(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):_a(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,wa(e,t,r,i=t.elementType===r?i:na(r,i),n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:case 12:return _a(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value,Si(Co,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===i.children&&!Ti.current){t=Ka(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Fo(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),To(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(o(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),To(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}_a(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ro(t,n),r=r(i=Do(i)),t.flags|=1,_a(e,t,r,n),t.child;case 14:return i=na(r=t.type,t.pendingProps),xa(e,t,r,i=na(r.type,i),n);case 15:return Ca(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:na(r,i),Ha(e,t),t.tag=1,Ii(r)?(e=!0,Mi(t)):e=!1,Ro(t,n),sa(t,r,i),la(t,r,i,n),Aa(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 22:return ka(e,t,n)}throw Error(o(156,t.tag))};var Yc="function"==typeof reportError?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if("function"==typeof i){var a=i;i=function(){var e=Kc(s);a.call(e)}}Hc(t,s,e,i)}else s=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Kc(s);o.call(e)}}var s=Uc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=s,e[pi]=s.current,Ur(8===e.nodeType?e.parentNode:e),uc(),s}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var a=r;r=function(){var e=Kc(l);a.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pi]=l.current,Ur(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,l,n,r)})),l}(n,t,e,i,r);return Kc(s)}Gc.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Gc.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[pi]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.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&&(bt(t,1|n),rc(t,Xe()),!(6&Al)&&(Ul=Xe()+500,Ui()))}break;case 13:uc((function(){var t=No(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),$c(e,1)}},xt=function(e){if(13===e.tag){var t=No(e,134217728);null!==t&&nc(t,e,134217728,ec()),$c(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tc(e),n=No(e,t);null!==n&&nc(n,e,t,ec()),$c(e,t)}},kt=function(){return yt},Ot=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=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));Y(r),J(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[yi,_i,wi,Se,Ee,cc]},tu={findFiberByHostInstance:bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.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=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(o(299));var n=!1,r="",i=Yc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Wc(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=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,s="",a=Yc;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Uc(t,null,e,1,null!=n?n:null,i,0,s,a),e[pi]=t.current,Ur(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 Gc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2897:(e,t,n)=>{var r=n(3693);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},3274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3693:(e,t,n)=>{var r=n(7736);e.exports=function(e,t,n){return(t=r(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},3738:e=>{function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4202:(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"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=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 b(){}function y(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")},b.prototype=g.prototype;var _=y.prototype=new b;_.constructor=y,v(_,g.prototype),_.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var i,o={},s=null,a=null;if(null!=t)for(i in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:e,key:s,ref:a,props:o,_owner:C.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function A(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,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===o?"."+A(l,0):o,w(s)?(i="",null!=e&&(i=e.replace(E,"$&/")+"/"),T(s,t,i,"",(function(e){return e}))):null!=s&&(S(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+A(a=e[c],c);l+=T(a,t,i,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=T(a=a.value,t,i,u=o+A(a,c++),s);else if("object"===a)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 l}function R(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 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 I={current:null},j={transition:null},P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:j,ReactCurrentOwner:C};function N(){throw Error("act(...) is not supported in production builds of React.")}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=s,t.PureComponent=y,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.act=N,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,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:i,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_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:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:h,_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=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},4391:(e,t,n)=>{"use strict";var r=n(7950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4400:(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}}},4767:(e,t,n)=>{"use strict";n.d(t,{V:()=>a,m:()=>l});var r=n(579),i=n(1981),o=n(5043);const s=(0,o.createContext)(void 0),a=(0,i.PA)((function(e){let{children:t}=e;return(0,o.useEffect)((()=>{var e;return null===(e=window.gtiPlatform)||void 0===e||e.subscribe(),()=>{var e;return null===(e=window.gtiPlatform)||void 0===e?void 0:e.unsubscribe()}}),[]),(0,r.jsx)(s.Provider,{value:window.gtiPlatform,children:t})}));function l(){const e=(0,o.useContext)(s);if(!e)throw new Error("No platform provided");return e}},4812:(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,{BQ:()=>q,EW:()=>ze,Es:()=>Kn,Fq:()=>zn,Gn:()=>xn,H8:()=>cn,HP:()=>dn,Mr:()=>vr,OB:()=>tr,Rn:()=>fn,XI:()=>Nt,YQ:()=>ln,h5:()=>Lt,jK:()=>Gt,kt:()=>Qt,lB:()=>hn,l_:()=>kn,mJ:()=>Vt,qT:()=>xt,sH:()=>Pe,uz:()=>qn,yl:()=>Xt});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 s=Object.assign,a=Object.getOwnPropertyDescriptor,l=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var h="undefined"!=typeof Proxy,f=Object.toString();function p(){h||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 b(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function y(e){return null!==e&&"object"==typeof e}function _(e){if(!y(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()===f}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function x(e,t,n){l(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function C(e,t,n){l(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function k(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function O(e){return e instanceof Map}function S(e){return e instanceof Set}var E=void 0!==Object.getOwnPropertySymbols,A="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 R(e,t){return c.hasOwnProperty.call(e,t)}var D=Object.getOwnPropertyDescriptors||function(e){var t={};return A(e).forEach((function(n){t[n]=a(e,n)})),t};function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function j(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,M(e,t)}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 F(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.")}function B(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var V=Symbol("mobx-stored-annotations");function U(e){return Object.assign((function(t,n){if(K(n))return e.decorate_20223_(t,n);H(t,n,e)}),e)}function H(e,t,n){R(e,V)||x(e,V,P({},e[V])),function(e){return e.annotationType_===J}(n)||(e[V][t]=n)}function K(e){return"object"==typeof e&&"string"==typeof e.kind}var q=Symbol("mobx administration"),$=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_=Qe.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 _t(this)},t.reportChanged=function(){bt(),wt(this),yt()},t.toString=function(){return this.name_},e}(),Y=k("Atom",$);function W(e,t,n){void 0===t&&(t=m),void 0===n&&(n=m);var r=new $(e);return t!==m&&qt(Ut,r,t,void 0),n!==m&&Kt(r,n),r}var G={identity:function(e,t){return e===t},structural:function(e,t){return yr(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 yr(e,t,1)}};function Q(e,t,n){return un(e)?e:Array.isArray(e)?Pe.array(e,{name:n}):_(e)?Pe.object(e,void 0,{name:n}):O(e)?Pe.map(e,{name:n}):S(e)?Pe.set(e,{name:n}):"function"!=typeof e||zt(e)||sn(e)?e:w(e)?rn(e):Mt(n,e)}function X(e){return e}var J="override";function Z(e,t){return{annotationType_:e,options_:t,make_:ee,extend_:te,decorate_20223_:ne}}function ee(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(zt(n.value))return 1;var o=re(e,this,t,n,!1);return l(r,t,o),2}function te(e,t,n,r){var i=re(e,this,t,n);return e.defineProperty_(t,i,r)}function ne(e,t){var n=t.kind,i=t.name,o=t.addInitializer,s=this;if("field"!=n){var a;if("method"==n)return zt(e)||(e=function(e){var t,n,r,o;return Ke(null!=(t=null==(n=s.options_)?void 0:n.name)?t:i.toString(),e,null!=(r=null==(o=s.options_)?void 0:o.autoAction)&&r)}(e)),null!=(a=this.options_)&&a.bound&&o((function(){var e=this,t=e[i].bind(e);t.isMobxAction=!0,e[i]=t})),e;r("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):\n'"+s.annotationType_+"' can only be used on properties with a function value.")}else o((function(){H(this,i,s)}))}function re(e,t,n,r,i){var o,s,a,l,c,u,d,h;void 0===i&&(i=pt.safeDescriptors),h=r,t.annotationType_,h.value;var f,p=r.value;return null!=(o=t.options_)&&o.bound&&(p=p.bind(null!=(f=e.proxy_)?f:e.target_)),{value:Ke(null!=(s=null==(a=t.options_)?void 0:a.name)?s:n.toString(),p,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(u=t.options_)&&u.bound?null!=(d=e.proxy_)?d:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ie(e,t){return{annotationType_:e,options_:t,make_:oe,extend_:se,decorate_20223_:ae}}function oe(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)||!sn(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(sn(n.value))return 1;var o=le(e,this,0,n,!1,!1);return l(r,t,o),2}function se(e,t,n,r){var i,o=le(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ae(e,t){var n,r=t.name,i=t.addInitializer;return sn(e)||(e=rn(e)),null!=(n=this.options_)&&n.bound&&i((function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t})),e}function le(e,t,n,r,i,o){var s;void 0===o&&(o=pt.safeDescriptors),s=r,t.annotationType_,s.value;var a,l=r.value;return sn(l)||(l=rn(l)),i&&((l=l.bind(null!=(a=e.proxy_)?a:e.target_)).isMobXFlow=!0),{value:l,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ce(e,t){return{annotationType_:e,options_:t,make_:ue,extend_:de,decorate_20223_:he}}function ue(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function de(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 he(e,t){var n=this,r=t.name;return(0,t.addInitializer)((function(){var t=Jn(this)[q],i=P({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),t.values_.set(r,new Je(i))})),function(){return this[q].getObservablePropValue_(r)}}function fe(e,t){return{annotationType_:e,options_:t,make_:pe,extend_:ve,decorate_20223_:me}}function pe(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ve(e,t,n,r){var i,o;return function(e,t){t.annotationType_}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Q,r)}function me(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(e,t){var r,s,a=Jn(e)[q],l=new Ge(t,null!=(r=null==(s=n.options_)?void 0:s.enhancer)?r:Q,"ObservableObject."+i.toString(),!1);a.values_.set(i,l),o.add(e)}if("accessor"==r)return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[q].getObservablePropValue_(i)},set:function(e){return o.has(this)||s(this,e),this[q].setObservablePropValue_(i,e)},init:function(e){return o.has(this)||s(this,e),e}}}var ge="true",be=ye();function ye(e){return{annotationType_:ge,options_:e,make_:_e,extend_:we,decorate_20223_:xe}}function _e(e,t,n,r){var i,o,s,a;if(n.get)return ze.make_(e,t,n,r);if(n.set){var c=Ke(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!pt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(l(r,t,{configurable:!0,set:c}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?(null!=(a=this.options_)&&a.autoBind?rn.bound:rn).make_(e,t,n,r):(null!=(s=this.options_)&&s.autoBind?Mt.bound:Mt).make_(e,t,n,r);var u,d=!1===(null==(i=this.options_)?void 0:i.deep)?Pe.ref:Pe;return"function"==typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_)),d.make_(e,t,n,r)}function we(e,t,n,r){var i,o,s;return n.get?ze.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!pt.safeDescriptors||e.isPlainObject_,set:Ke(t.toString(),n.set)},r):("function"==typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(s=e.proxy_)?s:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Pe.ref:Pe).extend_(e,t,n,r))}function xe(e,t){r("'"+this.annotationType_+"' cannot be used as a decorator")}var Ce={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||Ce}Object.freeze(Ce);var Oe=fe("observable"),Se=fe("observable.ref",{enhancer:X}),Ee=fe("observable.shallow",{enhancer:function(e,t,n){return null==e||tr(e)||zn(e)||qn(e)||Wn(e)?e:Array.isArray(e)?Pe.array(e,{name:n,deep:!1}):_(e)?Pe.object(e,void 0,{name:n,deep:!1}):O(e)?Pe.map(e,{name:n,deep:!1}):S(e)?Pe.set(e,{name:n,deep:!1}):void 0}}),Ae=fe("observable.struct",{enhancer:function(e,t){return yr(e,t)?t:e}}),Te=U(Oe);function Re(e){return!0===e.deep?Q:!1===e.deep?X:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:Q}(e.defaultDecorator)}function De(e,t,n){return K(t)?Oe.decorate_20223_(e,t):b(t)?void H(e,t,Oe):un(e)?e:_(e)?Pe.object(e,t,n):Array.isArray(e)?Pe.array(e,t):O(e)?Pe.map(e,t):S(e)?Pe.set(e,t):"object"==typeof e&&null!==e?e:Pe.box(e,t)}s(De,Te);var Ie,je,Pe=s(De,{box:function(e,t){var n=ke(t);return new Ge(e,Re(n),n.name,!0,n.equals)},array:function(e,t){var n=ke(t);return(!1===pt.useProxies||!1===n.proxy?fr:Tn)(e,Re(n),n.name)},map:function(e,t){var n=ke(t);return new Kn(e,Re(n),n.name)},set:function(e,t){var n=ke(t);return new Yn(e,Re(n),n.name)},object:function(e,t,n){return gr((function(){return Qt(!1===pt.useProxies||!1===(null==n?void 0:n.proxy)?Jn({},n):function(e,t){var n,r;return p(),null!=(r=(n=(e=Jn(e,t))[q]).proxy_)?r:n.proxy_=new Proxy(e,vn)}({},n),e,t)}))},ref:U(Se),shallow:U(Ee),deep:Te,struct:U(Ae)}),Ne="computed",Me=ce(Ne),Le=ce("computed.struct",{equals:G.structural}),ze=function(e,t){if(K(t))return Me.decorate_20223_(e,t);if(b(t))return H(e,t,Me);if(_(e))return U(ce(Ne,e));var n=_(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Je(n)};Object.assign(ze,Me),ze.struct=U(Le);var Fe,Be=0,Ve=1,Ue=null!=(Ie=null==(je=a((function(){}),"name"))?void 0:je.configurable)&&Ie,He={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ke(e,t,n,r){function i(){return qe(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,i.toString=function(){return t.toString()},Ue&&(He.value=e,l(i,"name",He)),i}function qe(e,t,n,i,o){var s=function(e,t){var n=pt.trackingDerivation,r=!t||!n;bt();var i=pt.allowStateChanges;r&&(st(),i=$e(!0));var o={runAsAction_:r,prevDerivation_:n,prevAllowStateChanges_:i,prevAllowStateReads_:lt(!0),notifySpy_:!1,startTime_:0,actionId_:Ve++,parentActionId_:Be};return Be=o.actionId_,o}(0,t);try{return n.apply(i,o)}catch(e){throw s.error_=e,e}finally{!function(e){Be!==e.actionId_&&r(30),Be=e.parentActionId_,void 0!==e.error_&&(pt.suppressReactionErrors=!0),Ye(e.prevAllowStateChanges_),ct(e.prevAllowStateReads_),yt(),e.runAsAction_&&at(e.prevDerivation_),pt.suppressReactionErrors=!1}(s)}}function $e(e){var t=pt.allowStateChanges;return pt.allowStateChanges=e,t}function Ye(e){pt.allowStateChanges=e}Fe=Symbol.toPrimitive;var We,Ge=function(e){function t(t,n,r,i,o){var s;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=G.default),(s=e.call(this,r)||this).enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=n,s.name_=r,s.equals=o,s.value_=n(t,void 0,r),s}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))!==pt.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(mn(this)){var t=bn(this,{object:this,type:Sn,newValue:e});if(!t)return pt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?pt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),yn(this)&&wn(this,{type:Sn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return gn(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Sn,newValue:this.value_,oldValue:void 0}),_n(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[Fe]=function(){return this.valueOf()},t}($);We=Symbol.toPrimitive;var Qe,Xe,Je=function(){function e(e){this.dependenciesState_=Qe.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_=Qe.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new et(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_=Xe.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_=Ke("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?G.structural:G.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_===Qe.UP_TO_DATE_&&(e.lowestObserverState_=Qe.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Qe.UP_TO_DATE_&&(e.dependenciesState_=Qe.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!==pt.inBatch||0!==this.observers_.size||this.keepAlive_){if(_t(this),nt(this)){var e=pt.trackingContext;this.keepAlive_&&!e&&(pt.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Qe.STALE_&&(e.lowestObserverState_=Qe.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===Qe.POSSIBLY_STALE_?t.dependenciesState_=Qe.STALE_:t.dependenciesState_===Qe.UP_TO_DATE_&&(e.lowestObserverState_=Qe.UP_TO_DATE_)})))}(this),pt.trackingContext=e}}else nt(this)&&(this.warnAboutUntrackedRead_(),bt(),this.value_=this.computeValue_(!1),yt());var t=this.value_;if(tt(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_===Qe.NOT_TRACKING_,n=this.computeValue_(!0),r=t||tt(e)||tt(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=$e(!1);if(e)t=rt(this,this.derivation,this.scope_);else if(!0===pt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new et(e)}return Ye(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(it(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,i,o,s;void 0===t&&(t=d);var a,l=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var c=Bt(t),u=!1;a=new xt(l,(function(){u||(u=!0,c((function(){u=!1,a.isDisposed_||a.track(h)})))}),t.onError,t.requiresObservable)}else a=new xt(l,(function(){this.track(h)}),t.onError,t.requiresObservable);function h(){e()}return null!=(i=t)&&null!=(o=i.signal)&&o.aborted||a.schedule_(),a.getDisposer_(null==(s=t)?void 0:s.signal)}((function(){var o=n.get();if(!r||t){var s=st();e({observableKind:"computed",debugObjectName:n.name_,type:Sn,object:n,newValue:o,oldValue:i}),at(s)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return T(this.get())},t[We]=function(){return this.valueOf()},e}(),Ze=k("ComputedValue",Je);!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_"}(Qe||(Qe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Xe||(Xe={}));var et=function(e){this.cause=void 0,this.cause=e};function tt(e){return e instanceof et}function nt(e){switch(e.dependenciesState_){case Qe.UP_TO_DATE_:return!1;case Qe.NOT_TRACKING_:case Qe.STALE_:return!0;case Qe.POSSIBLY_STALE_:for(var t=lt(!0),n=st(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(Ze(s)){if(pt.disableErrorBoundaries)s.get();else try{s.get()}catch(e){return at(n),ct(t),!0}if(e.dependenciesState_===Qe.STALE_)return at(n),ct(t),!0}}return ut(e),at(n),ct(t),!1}}function rt(e,t,n){var r=lt(!0);ut(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++pt.runId;var i,o=pt.trackingDerivation;if(pt.trackingDerivation=e,pt.inBatch++,!0===pt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new et(e)}return pt.inBatch--,pt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Qe.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];0===a.diffValue_&&(a.diffValue_=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var l=t[o];0===l.diffValue_&&mt(l,e),l.diffValue_=0}for(;i--;){var c=n[i];1===c.diffValue_&&(c.diffValue_=0,vt(c,e))}r!==Qe.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),ct(r),i}function it(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)mt(t[n],e);e.dependenciesState_=Qe.NOT_TRACKING_}function ot(e){var t=st();try{return e()}finally{at(t)}}function st(){var e=pt.trackingDerivation;return pt.trackingDerivation=null,e}function at(e){pt.trackingDerivation=e}function lt(e){var t=pt.allowStateReads;return pt.allowStateReads=e,t}function ct(e){pt.allowStateReads=e}function ut(e){if(e.dependenciesState_!==Qe.UP_TO_DATE_){e.dependenciesState_=Qe.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Qe.UP_TO_DATE_}}var dt=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},ht=!0,ft=!1,pt=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ht=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new dt).version&&(ht=!1),ht?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new dt):(setTimeout((function(){ft||r(35)}),1),new dt)}();function vt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function mt(e,t){e.observers_.delete(t),0===e.observers_.size&&gt(e)}function gt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,pt.pendingUnobservations.push(e))}function bt(){pt.inBatch++}function yt(){if(0===--pt.inBatch){Ot();for(var e=pt.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 Je&&n.suspend_())}pt.pendingUnobservations=[]}}function _t(e){var t=pt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&pt.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(0===e.observers_.size&&pt.inBatch>0&&gt(e),!1)}function wt(e){e.lowestObserverState_!==Qe.STALE_&&(e.lowestObserverState_=Qe.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Qe.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Qe.STALE_})))}var xt=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_=Qe.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_=Xe.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,pt.pendingReactions.push(this),Ot())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){bt(),this.isScheduled_=!1;var e=pt.trackingContext;if(pt.trackingContext=this,nt(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}pt.trackingContext=e,yt()}},t.track=function(e){if(!this.isDisposed_){bt(),this.isRunning_=!0;var t=pt.trackingContext;pt.trackingContext=this;var n=rt(this,e,void 0);pt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&it(this),tt(n)&&this.reportExceptionInDerivation_(n.cause),yt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(pt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";pt.suppressReactionErrors||console.error(n,e),pt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(bt(),it(this),yt()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),null==e||null==e.removeEventListener||e.removeEventListener("abort",n)};return null==e||null==e.addEventListener||e.addEventListener("abort",n),n[q]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1)},e}(),Ct=100,kt=function(e){return e()};function Ot(){pt.inBatch>0||pt.isRunningReactions||kt(St)}function St(){pt.isRunningReactions=!0;for(var e=pt.pendingReactions,t=0;e.length>0;){++t===Ct&&(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_()}pt.isRunningReactions=!1}var Et=k("Reaction",xt),At="action",Tt="autoAction",Rt=Z(At),Dt=Z("action.bound",{bound:!0}),It=Z(Tt,{autoAction:!0}),jt=Z("autoAction.bound",{autoAction:!0,bound:!0});function Pt(e){return function(t,n){return g(t)?Ke(t.name||"<unnamed action>",t,e):g(n)?Ke(t,n,e):K(n)?(e?It:Rt).decorate_20223_(t,n):b(n)?H(t,n,e?It:Rt):b(t)?U(Z(e?Tt:At,{name:t,autoAction:e})):void 0}}var Nt=Pt(!1);Object.assign(Nt,Rt);var Mt=Pt(!0);function Lt(e){return qe(e.name,!1,e,this,void 0)}function zt(e){return g(e)&&!0===e.isMobxAction}Object.assign(Mt,It),Nt.bound=U(Dt),Mt.bound=U(jt);var Ft=function(e){return e()};function Bt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Ft}function Vt(e,t,n){var r,i,o,s;void 0===n&&(n=d);var a,l,c,u,h=null!=(r=n.name)?r:"Reaction",f=Nt(h,n.onError?(a=n.onError,l=t,function(){try{return l.apply(this,arguments)}catch(e){a.call(this,e)}}):t),p=!n.scheduler&&!n.delay,v=Bt(n),m=!0,g=!1,b=n.compareStructural?G.structural:n.equals||G.default,y=new xt(h,(function(){m||p?_():g||(g=!0,v(_))}),n.onError,n.requiresObservable);function _(){if(g=!1,!y.isDisposed_){var t=!1;y.track((function(){var n=function(e,t){var n=$e(!1);try{return t()}finally{Ye(n)}}(0,(function(){return e(y)}));t=m||!b(c,n),u=c,c=n})),(m&&n.fireImmediately||!m&&t)&&f(c,u,y),m=!1}}return null!=(i=n)&&null!=(o=i.signal)&&o.aborted||y.schedule_(),y.getDisposer_(null==(s=n)?void 0:s.signal)}var Ut="onBO",Ht="onBUO";function Kt(e,t,n){return qt(Ht,e,t,n)}function qt(e,t,n,r){var i="function"==typeof r?pr(t,n):pr(t),o=g(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var e=i[s];e&&(e.delete(o),0===e.size&&delete i[s])}}var $t="never",Yt="always",Wt="observed";function Gt(e){!0===e.isolateGlobalState&&function(){if((pt.pendingReactions.length||pt.inBatch||pt.isRunningReactions)&&r(36),ft=!0,ht){var e=o();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),pt=new dt}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(pt.useProxies=t===Yt||t!==$t&&"undefined"!=typeof Proxy),"ifavailable"===t&&(pt.verifyProxies=!0),void 0!==n){var i=n===Yt?Yt:n===Wt;pt.enforceActions=i,pt.allowStateChanges=!0!==i&&i!==Yt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(pt[t]=!!e[t])})),pt.allowStateReads=!pt.observableRequiresReaction,e.reactionScheduler&&function(e){var t=kt;kt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Qt(e,t,n,r){var i=D(t);return gr((function(){var t=Jn(e,r)[q];A(i).forEach((function(e){t.extend_(e,i[e],!n||!(e in n)||n[e])}))})),e}function Xt(e,t){return Jt(pr(e,t))}function Jt(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(Jt)),n}var Zt=0;function en(){this.message="FLOW_CANCELLED"}en.prototype=Object.create(Error.prototype);var tn=ie("flow"),nn=ie("flow.bound",{bound:!0}),rn=Object.assign((function(e,t){if(K(t))return tn.decorate_20223_(e,t);if(b(t))return H(e,t,tn);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=arguments,i=++Zt,o=Nt(r+" - runid: "+i+" - init",n).apply(this,t),s=void 0,a=new Promise((function(t,n){var a=0;function l(e){var t;s=void 0;try{t=Nt(r+" - runid: "+i+" - yield "+a++,o.next).call(o,e)}catch(e){return n(e)}u(t)}function c(e){var t;s=void 0;try{t=Nt(r+" - runid: "+i+" - yield "+a++,o.throw).call(o,e)}catch(e){return n(e)}u(t)}function u(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)}));return a.cancel=Nt(r+" - runid: "+i+" - cancel",(function(){try{s&&on(s);var t=o.return(void 0),n=Promise.resolve(t.value);n.then(m,m),on(n),e(new en)}catch(t){e(t)}})),a};return i.isMobXFlow=!0,i}),tn);function on(e){g(e.cancel)&&e.cancel()}function sn(e){return!0===(null==e?void 0:e.isMobXFlow)}function an(e,t){if(void 0===t)return Ze(e);if(!1===tr(e))return!1;if(!e[q].values_.has(t))return!1;var n=pr(e,t);return Ze(n)}function ln(e){return an(e)}function cn(e,t){return an(e,t)}function un(e){return function(e){return!!e&&(tr(e)||!!e[q]||Y(e)||Et(e)||Ze(e))}(e)}function dn(e){return tr(e)?e[q].keys_():qn(e)||Wn(e)?Array.from(e.keys()):zn(e)?e.map((function(e,t){return t})):void r(5)}function hn(e,t,n,r){return g(n)?function(e,t,n,r){return vr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return vr(e).observe_(t,n)}(e,t,n)}function fn(e,t){void 0===t&&(t=void 0),bt();try{return e.apply(t)}finally{yt()}}function pn(e){return e[q]}rn.bound=U(nn);var vn={has:function(e,t){return pn(e).has_(t)},get:function(e,t){return pn(e).get_(t)},set:function(e,t,n){var r;return!!b(t)&&(null==(r=pn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!b(t)&&(null==(n=pn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=pn(e).defineProperty_(t,n))||r},ownKeys:function(e){return pn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function mn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function gn(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 bn(e,t){var n=st();try{for(var i=[].concat(e.interceptors_||[]),o=0,s=i.length;o<s&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{at(n)}}function yn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function _n(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 wn(e,t){var n=st(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);at(n)}}function xn(e,t,n){return gr((function(){var r=Jn(e,n)[q];null!=t||(t=function(e){return R(e,V)||x(e,V,P({},e[V])),e[V]}(e)),A(t).forEach((function(e){return r.make_(e,t[e])}))})),e}var Cn=Symbol("mobx-keys");function kn(e,t,n){return _(e)?Qt(e,e,t,n):(gr((function(){var r=Jn(e,n)[q];if(!e[Cn]){var i=Object.getPrototypeOf(e),o=new Set([].concat(A(e),A(i)));o.delete("constructor"),o.delete(q),x(i,Cn,o)}e[Cn].forEach((function(e){return r.make_(e,!t||!(e in t)||t[e])}))})),e)}var On="splice",Sn="update",En={get:function(e,t){var n=e[q];return t===q?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?R(Rn,t)?Rn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[q];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},An=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 $(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 gn(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}),_n(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&&hr(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=u),mn(this)){var o=bn(this,{object:this.proxy_,type:On,index:e,removedCount:t,added:n});if(!o)return u;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 s=n.length-t;this.updateArrayLength_(i,s)}var a=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,a),this.dehanceValues_(a)},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 s=0;s<n.length;s++)this.values_[e+s]=n[s];for(var a=0;a<o.length;a++)this.values_[e+n.length+a]=o[a];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=yn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:Sn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&wn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=yn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:On,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&wn(this,o)},t.get_=function(e){if(!(this.legacyMode_&&e>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&r(17,e,n.length),e<n.length){this.atom_;var i=n[e];if(mn(this)){var o=bn(this,{type:Sn,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{for(var s=new Array(e+1-n.length),a=0;a<s.length-1;a++)s[a]=void 0;s[s.length-1]=t,this.spliceWithArray_(n.length,0,s)}},e}();function Tn(e,t,n,r){return void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),p(),gr((function(){var i=new An(n,t,r,!1);C(i.values_,q,i);var o=new Proxy(i.values_,En);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o}))}var Rn={clear:function(){return this.splice(0)},replace:function(e){var t=this[q];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[q];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[q].spliceWithArray_(e,t,n)},push:function(){for(var e=this[q],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[q].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[q],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 pt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){pt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[q],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function Dn(e,t){"function"==typeof Array.prototype[e]&&(Rn[e]=t(e))}function In(e){return function(){var t=this[q];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function jn(e){return function(t,n){var r=this,i=this[q];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Pn(e){return function(){var t=this,n=this[q];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)}}Dn("at",In),Dn("concat",In),Dn("flat",In),Dn("includes",In),Dn("indexOf",In),Dn("join",In),Dn("lastIndexOf",In),Dn("slice",In),Dn("toString",In),Dn("toLocaleString",In),Dn("toSorted",In),Dn("toSpliced",In),Dn("with",In),Dn("every",jn),Dn("filter",jn),Dn("find",jn),Dn("findIndex",jn),Dn("findLast",jn),Dn("findLastIndex",jn),Dn("flatMap",jn),Dn("forEach",jn),Dn("map",jn),Dn("some",jn),Dn("toReversed",jn),Dn("reduce",Pn),Dn("reduceRight",Pn);var Nn,Mn,Ln=k("ObservableArrayAdministration",An);function zn(e){return y(e)&&Ln(e[q])}var Fn={},Bn="add",Vn="delete";Nn=Symbol.iterator,Mn=Symbol.toStringTag;var Un,Hn,Kn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[q]=Fn,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),gr((function(){i.keysAtom_=W("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,e&&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(!pt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Ge(this.has_(e),X,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Kt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(mn(this)){var r=bn(this,{type:n?Sn:Bn,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_,mn(this)&&!bn(this,{type:Vn,object:this,name:e}))return!1;if(this.has_(e)){var n=yn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Vn,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return fn((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&&wn(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==pt.UNCHANGED){var r=yn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Sn,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&wn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,fn((function(){var r,i=new Ge(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=yn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Bn,object:this,name:e,newValue:t}:null;r&&wn(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 xr({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 xr({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Nn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=F(this);!(n=r()).done;){var i=n.value,o=i[0],s=i[1];e.call(t,s,o,this)}},t.merge=function(e){var t=this;return qn(e)&&(e=new Map(e)),fn((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 c.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;fn((function(){ot((function(){for(var t,n=F(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return fn((function(){for(var n,i=function(e){if(O(e)||qn(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,s=!1,a=F(t.data_.keys());!(n=a()).done;){var l=n.value;if(!i.has(l))if(t.delete(l))s=!0;else{var c=t.data_.get(l);o.set(l,c)}}for(var u,d=F(i.entries());!(u=d()).done;){var h=u.value,f=h[0],p=h[1],v=t.data_.has(f);if(t.set(f,p),t.data_.has(f)){var m=t.data_.get(f);o.set(f,m),v||(s=!0)}}if(!s)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=o.keys(),y=g.next(),w=b.next();!y.done;){if(y.value!==w.value){t.keysAtom_.reportChanged();break}y=g.next(),w=b.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return _n(this,e)},t.intercept_=function(e){return gn(this,e)},j(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Mn,get:function(){return"Map"}}]),e}(),qn=k("ObservableMap",Kn),$n={};Un=Symbol.iterator,Hn=Symbol.toStringTag;var Yn=function(){function e(e,t,n){var i=this;void 0===t&&(t=Q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[q]=$n,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.enhancer_=function(e,r){return t(e,r,n)},gr((function(){i.atom_=W(i.name_),e&&i.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;fn((function(){ot((function(){for(var t,n=F(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=F(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,mn(this)&&!bn(this,{type:Bn,object:this,newValue:e}))return this;if(!this.has(e)){fn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=yn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Bn,object:this,newValue:e}:null;n&&wn(this,r)}return this},t.delete=function(e){var t=this;if(mn(this)&&!bn(this,{type:Vn,object:this,oldValue:e}))return!1;if(this.has(e)){var n=yn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Vn,object:this,oldValue:e}:null;return fn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&wn(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 xr({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 xr({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Wn(e)&&(e=new Set(e)),fn((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 _n(this,e)},t.intercept_=function(e){return gn(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Un]=function(){return this.values()},j(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Hn,get:function(){return"Set"}}]),e}(),Wn=k("ObservableSet",Yn),Gn=Object.create(null),Qn="remove",Xn=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=be),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 $("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 Je)return n.set(t),!0;if(mn(this)){var r=bn(this,{type:Sn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==pt.UNCHANGED){var i=yn(this),o=i?{type:Sn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&wn(this,o)}return!0},t.get_=function(e){return pt.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(!pt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Ge(e in this.target_,X,"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_[V])&&n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==c;){var o=a(i,e);if(o){var s=t.make_(this,e,o,i);if(0===s)return;if(1===s)break}i=Object.getPrototypeOf(i)}nr(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&&nr(this,0,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{bt();var r=this.delete_(e);if(!r)return r;if(mn(this)){var i=bn(this,{object:this.proxy_||this.target_,name:e,type:Bn,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 l(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{yt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1),this.keysAtom_;try{bt();var i=this.delete_(e);if(!i)return i;if(mn(this)){var o=bn(this,{object:this.proxy_||this.target_,name:e,type:Bn,newValue:t});if(!o)return null;t=o.newValue}var s=er(e),a={configurable:!pt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,e,a))return!1}else l(this.target_,e,a);var c=new Ge(t,n,"ObservableObject.key",!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{yt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1),this.keysAtom_;try{bt();var r=this.delete_(e);if(!r)return r;if(mn(this)&&!bn(this,{object:this.proxy_||this.target_,name:e,type:Bn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=er(e),o={configurable:!pt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else l(this.target_,e,o);this.values_.set(e,new Je(t)),this.notifyPropertyAddition_(e,void 0)}finally{yt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),this.keysAtom_,!R(this.target_,e))return!0;if(mn(this)&&!bn(this,{object:this.proxy_||this.target_,name:e,type:Qn}))return null;try{var n,r;bt();var i,o=yn(this),s=this.values_.get(e),l=void 0;if(!s&&o&&(l=null==(i=a(this.target_,e))?void 0:i.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(s&&(this.values_.delete(e),s instanceof Ge&&(l=s.value_),wt(s)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var c={type:Qn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:l,name:e};o&&wn(this,c)}}finally{yt()}return!0},t.observe_=function(e,t){return _n(this,e)},t.intercept_=function(e){return gn(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=yn(this);if(i){var o=i?{type:Bn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;i&&wn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),A(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Jn(e,t){var n;if(R(e,q))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new Xn(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ye(e):void 0}(t));return x(e,q,i),e}var Zn=k("ObservableObjectAdministration",Xn);function er(e){return Gn[e]||(Gn[e]={get:function(){return this[q].getObservablePropValue_(e)},set:function(t){return this[q].setObservablePropValue_(e,t)}})}function tr(e){return!!y(e)&&Zn(e[q])}function nr(e,t,n){var r;null==(r=e.target_[V])||delete r[n]}var rr,ir,or=ur(0),sr=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),ar=0,lr=function(){};rr=lr,ir=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(rr.prototype,ir):void 0!==rr.prototype.__proto__?rr.prototype.__proto__=ir:rr.prototype=ir;var cr=function(e,t,n){function r(t,n,r,i){var o;return void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this,gr((function(){var e=new An(r,n,i,!0);e.proxy_=L(o),C(L(o),q,e),t&&t.length&&o.spliceWithArray(0,0,t),sr&&Object.defineProperty(L(o),"0",or)})),o}N(r,e);var i=r.prototype;return i.concat=function(){this[q].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 zn(e)?e.slice():e})))},i[n]=function(){var e=this,t=0;return xr({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},j(r,[{key:"length",get:function(){return this[q].getArrayLength_()},set:function(e){this[q].setArrayLength_(e)}},{key:t,get:function(){return"Array"}}]),r}(lr,Symbol.toStringTag,Symbol.iterator);function ur(e){return{enumerable:!1,configurable:!0,get:function(){return this[q].get_(e)},set:function(t){this[q].set_(e,t)}}}function dr(e){l(cr.prototype,""+e,ur(e))}function hr(e){if(e>ar){for(var t=ar;t<e+100;t++)dr(t);ar=e}}function fr(e,t,n){return new cr(e,t,n)}function pr(e,t){if("object"==typeof e&&null!==e){if(zn(e))return void 0!==t&&r(23),e[q].atom_;if(Wn(e))return e.atom_;if(qn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,mr(e)),n}if(tr(e)){if(!t)return r(26);var i=e[q].values_.get(t);return i||r(27,t,mr(e)),i}if(Y(e)||Ze(e)||Et(e))return e}else if(g(e)&&Et(e[q]))return e[q];r(28)}function vr(e,t){return e||r(29),void 0!==t?vr(pr(e,t)):Y(e)||Ze(e)||Et(e)||qn(e)||Wn(e)?e:e[q]?e[q]:void r(24,e)}function mr(e,t){var n;if(void 0!==t)n=pr(e,t);else{if(zt(e))return e.name;n=tr(e)||qn(e)||Wn(e)?vr(e):pr(e)}return n.name_}function gr(e){var t=st(),n=$e(!0);bt();try{return e()}finally{yt(),Ye(n),at(t)}}Object.entries(Rn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&x(cr.prototype,t,n)})),hr(1e3);var br=c.toString;function yr(e,t,n){return void 0===n&&(n=-1),_r(e,t,n)}function _r(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 s=br.call(e);if(s!==br.call(t))return!1;switch(s){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=wr(e),t=wr(t);var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(g(l)&&l instanceof l&&g(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!_r(e[u],t[u],n-1,r,i))return!1}else{var d,h=Object.keys(e);if(u=h.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!R(t,d=h[u])||!_r(e[d],t[d],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function wr(e){return zn(e)?e.slice():O(e)||qn(e)||S(e)||Wn(e)?Array.from(e.entries()):e}function xr(e){return e[Symbol.iterator]=Cr,e}function Cr(){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:mr},$mobx:q})},4983:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(579),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{icon:t,size:n,slot:o}=e,s=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")},s))}},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},5180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5213:(e,t,n)=>{"use strict";n.d(t,{t:()=>a,P:()=>s});var r=n(579),i=n(5043),o=n(4983);function s(e){let{title:t,description:n,error:s,buttons:a,hideExpand:l}=e;var c;const[u,d]=(0,i.useState)(!1),h=null!=n?n:null==s?void 0:s.message;return(0,r.jsxs)("div",{className:"error-notice",onClick:()=>!l&&d((e=>!e)),children:[(0,r.jsxs)("div",{className:"error-notice-left",children:[l?null:(0,r.jsx)("div",{className:"error-notice-arrow",children:(0,r.jsx)(o.I,{icon:u?"triangle-down":"triangle-right"})}),(0,r.jsxs)("div",{className:"error-notice-content",children:[(0,r.jsx)("span",{className:"error-notice-title",children:t}),h?(0,r.jsx)("span",{className:"error-notice-byline",children:h}):null,u&&s?(0,r.jsx)("span",{className:"error-notice-stack-trace",children:null!==(c=s.stack)&&void 0!==c?c:s.message}):null]})]}),a?(0,r.jsx)("div",{className:"error-notice-buttons",children:a}):null]})}class a extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){const{props:e,state:t}=this;return null!=t.error?(0,r.jsx)(s,{title:"Something went wrong",error:t.error}):e.children}}},5499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5564:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeFromString=t.deserialize=t.serializeToString=t.serialize=void 0;const n={__rpcType:"undefined"};function r(e){if(void 0===e)return n;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((e=>{let[t,n]=e;return[r(t),r(n)]}))};if(e instanceof Set)return{__rpcType:"Set",data:Array.from(e.values()).map(r)};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((e=>r(e)));if("object"==typeof e){const t={__rpcType:"object"};for(const[n,i]of Object.entries(e))t[n]=r(i);return t}throw new Error("cannot serialize argument ".concat(e))}function i(e){if("object"!=typeof e||null==e)return e;if(Array.isArray(e))return e.map((e=>i(e)));const t=e;switch(t.__rpcType){case"undefined":return;case"Map":return new Map(t.data.map((e=>{let[t,n]=e;return[i(t),i(n)]})));case"Set":return new Set(t.data.map(i));case"Error":{const e=new Error;return e.stack=t.data.stack,e.message=t.data.message,e}case"Date":return new Date(t.data);case"object":{const t=e,n={};for(const[e,r]of Object.entries(t))"__rpcType"!==e&&(n[e]=i(r));return n}default:throw new Error("cannot deserialize unknown type ".concat(t))}}t.serialize=r,t.serializeToString=function(e){return JSON.stringify(r(e))},t.deserialize=i,t.deserializeFromString=function(e){return i(JSON.parse(e))}},6374:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,m:()=>s});var r=n(9235),i=n(9451);const o=e=>{let{config:t,default:n,defaultAfterNetworkReturn:o}=e,s=!1;return(0,r.s)({default:n,setter:e=>{i.A.postMessage({type:"setConfig",name:t,value:JSON.stringify(e)})},effects:[e=>{let{setSelf:n}=e;const r=i.A.onMessageOfType("gotConfig",(e=>{e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===s&&void 0!==o&&n(o),s=!0)}));return()=>r.dispose()},()=>{const e=i.A.onConnectOrReconnect((()=>{i.A.postMessage({type:"getConfig",name:t})}));return()=>e()}]})},s=e=>{let{config:t,default:n,defaultAfterNetworkReturn:o}=e,s=!1;return(0,r.s)({default:n,setter:e=>{i.A.postMessage({type:"setPersistentViewState",name:t,value:JSON.stringify(e)})},effects:[e=>{let{setSelf:n}=e;const r=i.A.onMessageOfType("gotPersistentViewState",(e=>{e.name===t&&(null!=e.value?n(JSON.parse(e.value)):!1===s&&void 0!==o&&n(o),s=!0)}));return()=>r.dispose()},()=>{const e=i.A.onConnectOrReconnect((()=>{i.A.postMessage({type:"getPersistentViewState",name:t})}));return()=>e()}]})}},6865:(e,t,n)=>{"use strict";n.d(t,{K9:()=>s,az:()=>i,eV:()=>o});const r=(e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime();function i(e){const t=new Map;e.forEach((e=>{const[n]=e.parents;if(!n)return;let r=t.get(n);r||(r=new Set,t.set(n,r)),r.add(e)}));const n=e=>{var i;const{branch:o}=e,s=[...null!==(i=t.get(o))&&void 0!==i?i:[]].sort(r);return{info:e,children:null==s?[]:s.filter((e=>!e.partOfTrunk)).map(n)}};return e.filter((e=>e.partOfTrunk||0===e.parents.length)).sort(r).map(n)}function*o(e){for(const t of e)t.children.length>0&&(yield*o(t.children)),yield t}function s(e,t){for(const n of o([t]))if(n.info.branch===e)return!0;return!1}},6987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7193:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var r,i=n(7612),o=n(4812),s=n(9451);const a=null!==(r=window.gtiPlatform)&&void 0!==r?r:new class{constructor(){this.platformName="browser",this.mediaMatcher=window.matchMedia("(prefers-color-scheme: dark)"),this.colorScheme=this.mediaMatcher.matches?"dark":"light",(0,o.l_)(this,void 0,{autoBind:!0,deep:!1})}confirm(e,t){const n=window.confirm(e+"\n"+(null!=t?t:""));return Promise.resolve(n)}openFile(e,t){s.A.postMessage({type:"platform/openFile",path:e,options:t})}openExternalLink(e){window.open(e,"_blank")}copyToClipboard(e){return function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function*(){yield navigator.clipboard.writeText(e)}))}subscribe(){this.mediaMatcher.addEventListener("change",this.onColorSchemeChange)}unsubscribe(){this.mediaMatcher.removeEventListener("change",this.onColorSchemeChange)}onColorSchemeChange(e){this.colorScheme=e.matches?"dark":"light"}};window.gtiPlatform=a;const l="GTIInitialParams",c=function(){let e;if(window.location.search&&(e=new Map([...new URLSearchParams(window.location.search).entries()]),i.v.log("Loaded initial params from URL: ",e),"browser"===a.platformName)){try{localStorage.setItem(l,JSON.stringify([...e.entries()]))}catch(e){i.v.log("Failed to save initial params to local storage",e)}window.history.replaceState({},document.title,window.location.pathname),i.v.log("Saved initial params to local storage")}if(!e)try{const t=localStorage.getItem(l);e=new Map(t?JSON.parse(t):[]),i.v.log("Loaded initial params from local storage: ",e)}catch(e){i.v.log("Failed to load initial params from local storage",e)}return null!=e?e:new Map}()},7234:(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,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}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 s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,v=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,_(e),!v)if(null!==r(c))v=!0,j(x);else{var t=r(u);null!==t&&P(w,t.startTime-e)}}function x(e,n){v=!1,m&&(m=!1,b(S),S=-1),p=!0;var o=f;try{for(_(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!T());){var s=h.callback;if("function"==typeof s){h.callback=null,f=h.priorityLevel;var a=s(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?h.callback=a:h===r(c)&&i(c),_(n)}else i(c);h=r(c)}if(null!==h)var l=!0;else{var d=r(u);null!==d&&P(w,d.startTime-n),l=!1}return l}finally{h=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,O=null,S=-1,E=5,A=-1;function T(){return!(t.unstable_now()-A<E)}function R(){if(null!==O){var e=t.unstable_now();A=e;var n=!0;try{n=O(!0,e)}finally{n?C():(k=!1,O=null)}}else k=!1}if("function"==typeof y)C=function(){y(R)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,I=D.port2;D.port1.onmessage=R,C=function(){I.postMessage(null)}}else C=function(){g(R,0)};function j(e){O=e,k||(k=!0,C())}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,j(x))},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 f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=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=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(m?(b(S),S=-1):m=!0,P(w,o-s))):(e.sortIndex=a,n(c,e),v||p||(v=!0,j(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7528:(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,{A:()=>r})},7546:(e,t,n)=>{"use strict";var r=n(2897).default,i=n(3693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;const o=n(1404);class s{constructor(e,t){i(this,"sendData",void 0),i(this,"context",void 0),this.sendData=e,this.context=t}error(e,t,n,i){const o=n instanceof Error?n.message||String(n):n;this.track(e,r(r({},null!=i?i:{}),{},{errorMessage:o,errorName:t}))}operation(e,t,n,i){var s;const a=Date.now(),l=null!==(s=null==n?void 0:n.id)&&void 0!==s?s:(0,o.randomId)();try{const s=i({parentId:l});if((0,o.isPromise)(s))return s.then((t=>{const i=Date.now()-a;return this.track(e,r(r({},null!=n?n:{}),{},{duration:i,id:l})),t})).catch((i=>{const o=Date.now()-a;return this.error(e,t,i,r(r({},null!=n?n:{}),{},{duration:o,id:l})),Promise.reject(i)}));const c=Date.now()-a;return this.track(e,r(r({},null!=n?n:{}),{},{duration:c,id:l})),s}catch(i){const o=Date.now()-a;throw this.error(e,t,i,r(r({},null!=n?n:{}),{},{duration:o,id:l})),i}}trackAsParent(e,t){var n;const i=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,o.randomId)();return this.trackData(r(r({},t),{},{eventName:e,id:i})),new s(((e,t)=>this.trackData(r(r({},e),t))),{parentId:i})}track(e,t){this.trackData(r(r({},t),{},{eventName:e}))}trackData(e){var t,n;const i=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:(0,o.randomId)(),s=null!==(n=null==e?void 0:e.timestamp)&&void 0!==n?n:Date.now(),a=r({timestamp:s,id:i},null!=e?e:{});this.sendData(a,this.context)}}t.Tracker=s},7581:(e,t,n)=>{"use strict";n.d(t,{Ls:()=>Cs,qz:()=>ks,uw:()=>Os,yT:()=>Ss,nK:()=>Es,eH:()=>As,u1:()=>Ts,nD:()=>Rs,yO:()=>Ds});const r=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===r.trustedTypes&&(r.trustedTypes={createPolicy:(e,t)=>t});const i={configurable:!1,enumerable:!1,writable:!1};void 0===r.FAST&&Reflect.defineProperty(r,"FAST",Object.assign({value:Object.create(null)},i));const o=r.FAST;if(void 0===o.getById){const e=Object.create(null);Reflect.defineProperty(o,"getById",Object.assign({value(t,n){let r=e[t];return void 0===r&&(r=n?e[t]=n():null),r}},i))}const s=Object.freeze([]);function a(){const e=new WeakMap;return function(t){let n=e.get(t);if(void 0===n){let r=Reflect.getPrototypeOf(t);for(;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}}const l=r.FAST.getById(1,(()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function i(e){try{e.call()}catch(e){t.push(e),setTimeout(n,0)}}function o(){let t=0;for(;t<e.length;)if(i(e[t]),t++,t>1024){for(let n=0,r=e.length-t;n<r;n++)e[n]=e[n+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&r.requestAnimationFrame(o),e.push(t)},process:o})})),c=r.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let u=c;const d="fast-".concat(Math.random().toString(36).substring(2,8)),h="".concat(d,"{"),f="}".concat(d),p=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(u!==c)throw new Error("The HTML policy can only be set once.");u=e},createHTML:e=>u.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(d),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace("".concat(d,":"),"")),createInterpolationPlaceholder:e=>"".concat(h).concat(e).concat(f),createCustomAttributePlaceholder(e,t){return"".concat(e,'="').concat(this.createInterpolationPlaceholder(t),'"')},createBlockPlaceholder:e=>"\x3c!--".concat(d,":").concat(e,"--\x3e"),queueUpdate:l.enqueue,processUpdates:l.process,nextUpdate:()=>new Promise(l.enqueue),setAttribute(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class v{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const 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)}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}notify(e){const t=this.spillover,n=this.source;if(void 0===t){const t=this.sub1,r=this.sub2;void 0!==t&&t.handleChange(n,e),void 0!==r&&r.handleChange(n,e)}else for(let r=0,i=t.length;r<i;++r)t[r].handleChange(n,e)}}class m{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const n=this.subscribers[e];void 0!==n&&n.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var n;if(t){let n=this.subscribers[t];void 0===n&&(this.subscribers[t]=n=new v(this.source)),n.subscribe(e)}else this.sourceSubscribers=null!==(n=this.sourceSubscribers)&&void 0!==n?n:new v(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var n;if(t){const n=this.subscribers[t];void 0!==n&&n.unsubscribe(e)}else null===(n=this.sourceSubscribers)||void 0===n||n.unsubscribe(e)}}const g=o.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=p.queueUpdate;let r,i=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(e){let n=e.$fastController||t.get(e);return void 0===n&&(Array.isArray(e)?n=i(e):t.set(e,n=new m(e))),n}const s=a();class l{constructor(e){this.name=e,this.field="_".concat(e),this.callback="".concat(e,"Changed")}getValue(e){return void 0!==r&&r.watch(e,this.name),e[this.field]}setValue(e,t){const n=this.field,r=e[n];if(r!==t){e[n]=t;const i=e[this.callback];"function"==typeof i&&i.call(e,r,t),o(e).notify(this.name)}}}class c extends v{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super(e,t),this.binding=e,this.isVolatileBinding=n,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const n=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const i=this.binding(e,t);return r=n,i}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const n=this.last,i=o(e),s=null===n?this.first:{};if(s.propertySource=e,s.propertyName=t,s.notifier=i,i.subscribe(this,t),null!==n){if(!this.needsRefresh){let t;r=void 0,t=n.propertySource[n.propertyName],r=this,e===t&&(this.needsRefresh=!0)}n.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){i=e},getNotifier:o,track(e,t){void 0!==r&&r.watch(e,t)},trackVolatile(){void 0!==r&&(r.needsRefresh=!0)},notify(e,t){o(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new l(t)),s(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:s,binding(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.isVolatileBinding(e);return new c(e,t,n)},isVolatileBinding:t=>e.test(t.toString())})}));function b(e,t){g.defineProperty(e,t)}const y=o.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class _{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return y.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){y.set(e)}}g.defineProperty(_.prototype,"index"),g.defineProperty(_.prototype,"length");const w=Object.seal(new _);class x{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(){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}}function C(e){return e.map((e=>e instanceof x?C(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function k(e){return e.map((e=>e instanceof x?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}x.create=(()=>{if(p.supportsAdoptedStyleSheets){const e=new Map;return t=>new E(t,e)}return e=>new T(e)})();let O=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},S=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(p.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),O=(e,t)=>{e.adoptedStyleSheets.push(...t)},S=(e,t)=>{for(const n of t){const t=e.adoptedStyleSheets.indexOf(n);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class E extends x{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=k(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=C(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let n=t.get(e);return void 0===n&&(n=new CSSStyleSheet,n.replaceSync(e),t.set(e,n)),n}))}return this._styleSheets}addStylesTo(e){O(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){S(e,this.styleSheets),super.removeStylesFrom(e)}}let A=0;class T extends x{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=k(e),this.styleSheets=C(e),this.styleClass="fast-style-class-".concat(++A)}addStylesTo(e){const t=this.styleSheets,n=this.styleClass;e=this.normalizeTarget(e);for(let r=0;r<t.length;r++){const i=document.createElement("style");i.innerHTML=t[r],i.className=n,e.append(i)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(".".concat(this.styleClass));for(let n=0,r=t.length;n<r;++n)e.removeChild(t[n]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const R=Object.freeze({locate:a()}),D={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},I={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class j{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.toLowerCase(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"reflect",i=arguments.length>4?arguments[4]:void 0;this.guards=new Set,this.Owner=e,this.name=t,this.attribute=n,this.mode=r,this.converter=i,this.fieldName="_".concat(t),this.callbackName="".concat(t,"Changed"),this.hasCallback=this.callbackName in e.prototype,"boolean"===r&&void 0===i&&(this.converter=D)}setValue(e,t){const 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))}getValue(e){return g.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,n=this.guards;n.has(e)||"fromView"===t||p.queueUpdate((()=>{n.add(e);const r=e[this.fieldName];switch(t){case"reflect":const t=this.converter;p.setAttribute(e,this.attribute,void 0!==t?t.toView(r):r);break;case"boolean":p.setBooleanAttribute(e,this.attribute,r)}n.delete(e)}))}static collect(e){const t=[];for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.push(R.locate(e));for(let n=0,i=r.length;n<i;++n){const i=r[n];if(void 0!==i)for(let n=0,r=i.length;n<r;++n){const r=i[n];"string"==typeof r?t.push(new j(e,r)):t.push(new j(e,r.property,r.attribute,r.mode,r.converter))}}return t}}function P(e,t){let n;function r(e,t){arguments.length>1&&(n.property=t),R.locate(e.constructor).push(n)}return arguments.length>1?(n={},void r(e,t)):(n=void 0===e?{}:e,r)}const N={mode:"open"},M={},L=o.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.definition;"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const n=j.collect(e,t.attributes),r=new Array(n.length),i={},o={};for(let e=0,t=n.length;e<t;++e){const t=n[e];r[e]=t.attribute,i[t.name]=t,o[t.attribute]=t}this.attributes=n,this.observedAttributes=r,this.propertyLookup=i,this.attributeLookup=o,this.shadowOptions=void 0===t.shadowOptions?N:null===t.shadowOptions?void 0:Object.assign(Object.assign({},N),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?M:Object.assign(Object.assign({},M),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?x.create(t.styles):t.styles instanceof x?t.styles:x.create([t.styles])}get isDefined(){return!!L.getByType(this.type)}define(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:customElements;const t=this.type;if(L.register(this)){const e=this.attributes,n=t.prototype;for(let t=0,r=e.length;t<r;++t)g.defineProperty(n,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}function F(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}z.forType=L.getByType;const B=new WeakMap,V={bubbles:!0,composed:!0,cancelable:!0};function U(e){return e.shadowRoot||B.get(e)||null}class H extends m{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const n=t.shadowOptions;if(void 0!==n){const t=e.attachShadow(n);"closed"===n.mode&&B.set(e,t)}const r=g.getAccessors(e);if(r.length>0){const t=this.boundObservables=Object.create(null);for(let n=0,i=r.length;n<i;++n){const i=r[n].name,o=e[i];void 0!==o&&(delete e[i],t[i]=o)}}}get isConnected(){return g.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,g.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=U(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const n=e.behaviors;e.addStylesTo(t),null!==n&&this.addBehaviors(n)}}removeStyles(e){const t=U(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const n=e.behaviors;e.removeStylesFrom(t),null!==n&&this.removeBehaviors(n)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),n=e.length,r=[];for(let i=0;i<n;++i){const n=e[i];t.has(n)?t.set(n,t.get(n)+1):(t.set(n,1),r.push(n))}if(this._isConnected){const e=this.element;for(let t=0;t<r.length;++t)r[t].bind(e,w)}}removeBehaviors(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.behaviors;if(null===n)return;const r=e.length,i=[];for(let o=0;o<r;++o){const r=e[o];if(n.has(r)){const e=n.get(r)-1;0===e||t?n.delete(r)&&i.push(r):n.set(r,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<i.length;++t)i[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,w);const t=this.behaviors;if(null!==t)for(const[n]of t)n.bind(e,w);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[n]of t)n.unbind(e)}}onAttributeChangedCallback(e,t,n){const r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.element,n)}emit(e,t,n){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},V),n)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const n=Object.keys(t);for(let r=0,i=n.length;r<i;++r){const i=n[r];e[i]=t[i]}this.boundObservables=null}const n=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():n.template&&(this._template=n.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():n.styles&&(this._styles=n.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,n=U(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||p.removeChildNodes(n),e&&(this.view=e.render(t,n,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const n=z.forType(e.constructor);if(void 0===n)throw new Error("Missing FASTElement definition.");return e.$fastController=new H(e,n)}}function K(e){return class extends e{constructor(){super(),H.forCustomElement(this)}$emit(e,t,n){return this.$fastController.emit(e,t,n)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}}}const q=Object.assign(K(HTMLElement),{from:e=>K(e),define:(e,t)=>new z(e,t).define().type}),$=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=$.get(n);void 0===r&&$.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=$.get(t);if(void 0!==n)return n.get(e)});class Y{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,be(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:n,key:r}=this;return this.container=this.key=void 0,n.registerResolver(r,new se(r,e,t))}}function W(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;o<r;++o)i=n[o],Se(i)||(t[i]=e[i]);return t}const G=Object.freeze({none(e){throw Error("".concat(e.toString()," not registered, did you forget to add @singleton()?"))},singleton:e=>new se(e,1,e),transient:e=>new se(e,2,e)}),Q=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:G.singleton})}),X=new Map;function J(e){return t=>Reflect.getOwnMetadata(e,t)}let Z=null;const ee=Object.freeze({createContainer:e=>new me(null,Object.assign({},Q.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ee.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(pe,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ee.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new me(e,Object.assign({},Q.default,t,{parentLocator:ee.findParentContainer})):Z||(Z=new me(null,Object.assign({},Q.default,t,{parentLocator:()=>null}))),getDesignParamtypes:J("design:paramtypes"),getAnnotationParamtypes:J("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=X.get(e);if(void 0===t){const n=e.inject;if(void 0===n){const n=ee.getDesignParamtypes(e),r=ee.getAnnotationParamtypes(e);if(void 0===n)if(void 0===r){const n=Object.getPrototypeOf(e);t="function"==typeof n&&n!==Function.prototype?W(ee.getDependencies(n)):[]}else t=W(r);else if(void 0===r)t=W(n);else{t=W(n);let e,i=r.length;for(let n=0;n<i;++n)e=r[n],void 0!==e&&(t[n]=e);const o=Object.keys(r);let s;i=o.length;for(let e=0;e<i;++e)s=o[e],Se(s)||(t[s]=r[s])}}else t=W(n);X.set(e,t)}return t},defineProperty(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i="$di_".concat(t);Reflect.defineProperty(e,t,{get:function(){let e=this[i];if(void 0===e){const o=this instanceof HTMLElement?ee.findResponsibleContainer(this):ee.getOrCreateDOMContainer();if(e=o.get(n),this[i]=e,r&&this instanceof q){const r=this.$fastController,o=()=>{ee.findResponsibleContainer(this).get(n)!==this[i]&&(this[i]=e,r.notify(t))};r.subscribe({handleChange:o},"isConnected")}}return e}})},createInterface(e,t){const n="function"==typeof e?e:t,r="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||xe,i="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),o=function(e,t,n){if(null==e||void 0!==new.target)throw new Error("No registration for interface: '".concat(o.friendlyName,"'"));t?ee.defineProperty(e,t,o,i):ee.getOrCreateAnnotationParamTypes(e)[n]=o};return o.$isInterface=!0,o.friendlyName=null==r?"(anonymous)":r,null!=n&&(o.register=function(e,t){return n(new Y(e,null!=t?t:o))}),o.toString=function(){return"InterfaceSymbol<".concat(o.friendlyName,">")},o},inject(){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){const n=ee.getOrCreateAnnotationParamTypes(e),i=t[0];void 0!==i&&(n[r]=i)}else if(n)ee.defineProperty(e,n,t[0]);else{const n=r?ee.getOrCreateAnnotationParamTypes(r.value):ee.getOrCreateAnnotationParamTypes(e);let i;for(let e=0;e<t.length;++e)i=t[e],void 0!==i&&(n[e]=i)}}},transient:e=>(e.register=function(t){return ye.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re;return e.register=function(t){return ye.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e}}),te=ee.createInterface("Container");function ne(e){return function(t){const n=function(e,t,r){ee.inject(n)(e,t,r)};return n.$isResolver=!0,n.resolve=function(n,r){return e(t,n,r)},n}}ee.inject;const re={scoped:!1};function ie(e,t,n){ee.inject(ie)(e,t,n)}function oe(e,t){return t.getFactory(e).construct(t)}ne(((e,t,n)=>()=>n.get(e))),ne(((e,t,n)=>n.has(e,!0)?n.get(e):void 0)),ie.$isResolver=!0,ie.resolve=()=>{},ne(((e,t,n)=>{const r=oe(e,t),i=new se(e,0,r);return n.registerResolver(e,i),r})),ne(((e,t,n)=>oe(e,t)));class se{constructor(e,t,n){this.key=e,this.strategy=t,this.state=n,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(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:{const 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,"."))}}getFactory(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}}}function ae(e){return this.get(e)}function le(e,t){return t(e)}class ce{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let n;return n=void 0===t?new this.Type(...this.dependencies.map(ae,e)):new this.Type(...this.dependencies.map(ae,e),...t),null==this.transformers?n:this.transformers.reduce(le,n)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const ue={$isResolver:!0,resolve:(e,t)=>t};function de(e){return"function"==typeof e.register}function he(e){return function(e){return de(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const fe=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"]),pe="__DI_LOCATE_PARENT__",ve=new Map;class me{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(te,ue),e instanceof Node&&e.addEventListener(pe,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(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(...n),this.context=null,this}register(){if(100===++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,t,n,r,i;const o=this.context;for(let s=0,a=arguments.length;s<a;++s)if(e=s<0||arguments.length<=s?void 0:arguments[s],Ce(e))if(de(e))e.register(this,o);else if(void 0!==e.prototype)ye.singleton(e,e).register(this);else for(t=Object.keys(e),r=0,i=t.length;r<i;++r)n=e[t[r]],Ce(n)&&(de(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}registerResolver(e,t){_e(e);const n=this.resolvers,r=n.get(e);return null==r?n.set(e,t):r instanceof se&&4===r.strategy?r.state.push(t):n.set(e,new se(e,4,[r,t])),t}registerTransformer(e,t){const n=this.getResolver(e);if(null==n)return!1;if(n.getFactory){const e=n.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(_e(e),void 0!==e.resolve)return e;let n,r=this;for(;null!=r;){if(n=r.resolvers.get(e),null!=n)return n;if(null==r.parent){const n=he(e)?this:r;return t?this.jitRegister(e,n):null}r=r.parent}return null}has(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(_e(e),e.$isResolver)return e.resolve(this,this);let t,n=this;for(;null!=n;){if(t=n.resolvers.get(e),null!=t)return t.resolve(n,this);if(null==n.parent){const r=he(e)?this:n;return t=this.jitRegister(e,r),t.resolve(n,this)}n=n.parent}throw new Error("Unable to resolve key: ".concat(e))}getAll(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_e(e);const n=this;let r,i=n;if(t){let t=s;for(;null!=i;)r=i.resolvers.get(e),null!=r&&(t=t.concat(we(r,i,n))),i=i.parent;return t}for(;null!=i;){if(r=i.resolvers.get(e),null!=r)return we(r,i,n);if(i=i.parent,null==i)return s}return s}getFactory(e){let t=ve.get(e);if(void 0===t){if(ke(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."));ve.set(e,t=new ce(e,ee.getDependencies(e)))}return t}registerFactory(e,t){ve.set(e,t)}createChild(e){return new me(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(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(fe.has(e.name))throw new Error("Attempted to jitRegister an intrinsic type: ".concat(e.name,". Did you forget to add @inject(Key)"));if(de(e)){const n=e.register(t);if(!(n instanceof Object)||null==n.resolve){const n=t.resolvers.get(e);if(null!=n)return n;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));{const n=this.config.defaultResolver(e,t);return t.resolvers.set(e,n),n}}}const ge=new WeakMap;function be(e){return function(t,n,r){if(ge.has(r))return ge.get(r);const i=e(t,n,r);return ge.set(r,i),i}}const ye=Object.freeze({instance:(e,t)=>new se(e,0,t),singleton:(e,t)=>new se(e,1,t),transient:(e,t)=>new se(e,2,t),callback:(e,t)=>new se(e,3,t),cachedCallback:(e,t)=>new se(e,3,be(t)),aliasTo:(e,t)=>new se(t,5,e)});function _e(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 we(e,t,n){if(e instanceof se&&4===e.strategy){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const xe="(anonymous)";function Ce(e){return"object"==typeof e&&null!==e||"function"==typeof e}const ke=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),void 0===t&&(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}}(),Oe={};function Se(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=Oe[e];if(void 0!==t)return t;const n=e.length;if(0===n)return Oe[e]=!1;let r=0;for(let t=0;t<n;++t)if(r=e.charCodeAt(t),0===t&&48===r&&n>1||r<48||r>57)return Oe[e]=!1;return Oe[e]=!0}default:return!1}}function Ee(e){return"".concat(e.toLowerCase(),":presentation")}const Ae=new Map,Te=Object.freeze({define(e,t,n){const r=Ee(e);void 0===Ae.get(r)?Ae.set(r,t):Ae.set(r,!1),n.register(ye.instance(r,t))},forTag(e,t){const n=Ee(e),r=Ae.get(n);return!1===r?ee.findResponsibleContainer(t).get(n):r||null}});class Re{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?x.create(t):t instanceof x?t:x.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class De extends q{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Te.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){var t=this;return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new je(t===De?class extends De{}:t,e,n)}}}function Ie(e,t,n){return"function"==typeof e?e(t,n):e}F([b],De.prototype,"template",void 0),F([b],De.prototype,"styles",void 0);class je{constructor(e,t,n){this.type=e,this.elementDefinition=t,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const 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:e=>{const t=new Re(Ie(n.template,e,n),Ie(n.styles,e,n));e.definePresentation(t);let i=Ie(n.shadowOptions,e,n);e.shadowRootMode&&(i?r.shadowOptions||(i.mode=e.shadowRootMode):null!==i&&(i={mode:e.shadowRootMode})),e.defineElement({elementOptions:Ie(n.elementOptions,e,n),shadowOptions:i,attributes:Ie(n.attributes,e,n)})}})}}const Pe=new Set(["children","localName","ref","style","className"]),Ne=Object.freeze(Object.create(null)),Me="_default",Le=new Map;function ze(e,t){if(!t.name){const n=z.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 Fe(e){return e.events||(e.events={})}function Be(e,t,n){return!Pe.has(n)||(console.warn("".concat(ze(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 Ve=n(5043);class Ue extends De{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const e="background-color: var(--badge-fill-".concat(this.fill,");"),t="color: var(--badge-color-".concat(this.color,");");return this.fill&&!this.color?e:this.color&&!this.fill?t:"".concat(t," ").concat(e)}}}F([P({attribute:"fill"})],Ue.prototype,"fill",void 0),F([P({attribute:"color"})],Ue.prototype,"color",void 0),F([P({mode:"boolean"})],Ue.prototype,"circular",void 0);var He=n(7528);class Ke{constructor(){this.targetIndex=0}}class qe extends Ke{constructor(){super(...arguments),this.createPlaceholder=p.createInterpolationPlaceholder}}class $e extends Ke{constructor(e,t,n){super(),this.name=e,this.behavior=t,this.options=n}createPlaceholder(e){return p.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function Ye(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=g.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function We(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function Ge(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function Qe(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function Xe(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function Je(e){p.setAttribute(this.target,this.targetName,e)}function Ze(e){p.setBooleanAttribute(this.target,this.targetName,e)}function et(e){if(null!=e||(e=""),e.create){this.target.textContent="";let 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{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function tt(e){this.target[this.targetName]=e}function nt(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(null!=e&&e.length){const i=e.split(/\s+/);for(let e=0,o=i.length;e<o;++e){const o=i[e];""!==o&&(t[o]=r,n.classList.add(o))}}if(this.classVersions=t,this.version=r+1,0!==r){r-=1;for(const e in t)t[e]===r&&n.classList.remove(e)}}class rt extends qe{constructor(e){super(),this.binding=e,this.bind=Ye,this.unbind=Ge,this.updateTarget=Je,this.isBindingVolatile=g.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=tt,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,n)=>p.createHTML(e(t,n))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=Ze;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=We,this.unbind=Xe;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=nt)}}targetAtContent(){this.updateTarget=et,this.unbind=Qe}createBehavior(e){return new it(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class it{constructor(e,t,n,r,i,o,s){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=n,this.bind=r,this.unbind=i,this.updateTarget=o,this.targetName=s}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){_.setEvent(e);const t=this.binding(this.source,this.context);_.setEvent(null),!0!==t&&e.preventDefault()}}let ot=null;class st{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){ot=this}static borrow(e){const t=ot||new st;return t.directives=e,t.reset(),ot=null,t}}function at(e){if(1===e.length)return e[0];let t;const n=e.length,r=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),i=new rt(((e,t)=>{let i="";for(let o=0;o<n;++o)i+=r[o](e,t);return i}));return i.targetName=t,i}const lt=f.length;function ct(e,t){const n=t.split(h);if(1===n.length)return null;const r=[];for(let t=0,i=n.length;t<i;++t){const i=n[t],o=i.indexOf(f);let s;if(-1===o)s=i;else{const t=parseInt(i.substring(0,o));r.push(e.directives[t]),s=i.substring(o+lt)}""!==s&&r.push(s)}return r}function ut(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t.attributes;for(let i=0,o=r.length;i<o;++i){const s=r[i],a=s.value,l=ct(e,a);let c=null;null===l?n&&(c=new rt((()=>a)),c.targetName=s.name):c=at(l),null!==c&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function dt(e,t,n){const r=ct(e,t.textContent);if(null!==r){let i=t;for(let o=0,s=r.length;o<s;++o){const s=r[o],a=0===o?t:i.parentNode.insertBefore(document.createTextNode(""),i.nextSibling);"string"==typeof s?a.textContent=s:(a.textContent=" ",e.captureContentBinding(s)),i=a,e.targetIndex++,a!==t&&n.nextNode()}e.targetIndex--}}const ht=document.createRange();class ft{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const n=e.parentNode;let r,i=this.firstChild;for(;i!==t;)r=i.nextSibling,n.insertBefore(i,e),i=r;n.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let n,r=this.firstChild;for(;r!==t;)n=r.nextSibling,e.appendChild(r),r=n;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let n,r=this.firstChild;for(;r!==t;)n=r.nextSibling,e.removeChild(r),r=n;e.removeChild(t);const i=this.behaviors,o=this.source;for(let e=0,t=i.length;e<t;++e)i[e].unbind(o)}bind(e,t){const n=this.behaviors;if(this.source!==e)if(null!==this.source){const r=this.source;this.source=e,this.context=t;for(let i=0,o=n.length;i<o;++i){const o=n[i];o.unbind(r),o.bind(e,t)}}else{this.source=e,this.context=t;for(let r=0,i=n.length;r<i;++r)n[r].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let n=0,r=e.length;n<r;++n)e[n].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){ht.setStartBefore(e[0].firstChild),ht.setEndAfter(e[e.length-1].lastChild),ht.deleteContents();for(let t=0,n=e.length;t<n;++t){const n=e[t],r=n.behaviors,i=n.source;for(let e=0,t=r.length;e<t;++e)r[e].unbind(i)}}}}class pt{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=p.createHTML(t);const n=e.content.firstElementChild;null!==n&&"TEMPLATE"===n.tagName&&(e=n)}else e=t;const n=function(e,t){const n=e.content;document.adoptNode(n);const r=st.borrow(t);ut(r,e,!0);const i=r.behaviorFactories;r.reset();const o=p.createTemplateWalker(n);let s;for(;s=o.nextNode();)switch(r.targetIndex++,s.nodeType){case 1:ut(r,s);break;case 3:dt(r,s,o);break;case 8:p.isMarker(s)&&r.addFactory(t[p.extractDirectiveIndexFromMarker(s)])}let a=0;(p.isMarker(n.firstChild)||1===n.childNodes.length&&t.length)&&(n.insertBefore(document.createComment(""),n.firstChild),a=-1);const l=r.behaviorFactories;return r.release(),{fragment:n,viewBehaviorFactories:l,hostBehaviorFactories:i,targetOffset:a}}(e,this.directives);this.fragment=n.fragment,this.viewBehaviorFactories=n.viewBehaviorFactories,this.hostBehaviorFactories=n.hostBehaviorFactories,this.targetOffset=n.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,r=new Array(this.behaviorCount),i=p.createTemplateWalker(t);let o=0,s=this.targetOffset,a=i.nextNode();for(let e=n.length;o<e;++o){const e=n[o],t=e.targetIndex;for(;null!==a;){if(s===t){r[o]=e.createBehavior(a);break}a=i.nextNode(),s++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let n=0,i=t.length;n<i;++n,++o)r[o]=t[n].createBehavior(e)}return new ft(t,r)}render(e,t,n){"string"==typeof t&&(t=document.getElementById(t)),void 0===n&&(n=t);const r=this.create(n);return r.bind(e,w),r.appendTo(t),r}}const vt=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function mt(e){const t=[];let n="";for(let r=0,i=e.length-1;r<i;++r){const i=e[r];let o=r+1<1||arguments.length<=r+1?void 0:arguments[r+1];if(n+=i,o instanceof pt){const e=o;o=()=>e}if("function"==typeof o&&(o=new rt(o)),o instanceof qe){const e=vt.exec(i);null!==e&&(o.targetName=e[2])}o instanceof Ke?(n+=o.createPlaceholder(t.length),t.push(o)):n+=o}return n+=e[e.length-1],new pt(n,t)}var gt;const bt=(e,t)=>mt(gt||(gt=(0,He.A)(['\n <template class="','">\n <div class="control" part="control" style="','">\n <slot></slot>\n </div>\n </template>\n'])),(e=>e.circular?"circular":""),(e=>e.generateBadgeStyle()));class yt{createCSS(){return""}createBehavior(){}}function _t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const{styles:i,behaviors:o}=function(e,t){const n=[];let r="";const i=[];for(let o=0,s=e.length-1;o<s;++o){r+=e[o];let s=t[o];if(s instanceof yt){const e=s.createBehavior();s=s.createCSS(),e&&i.push(e)}s instanceof x||s instanceof CSSStyleSheet?(""!==r.trim()&&(n.push(r),r=""),n.push(s)):r+=s}return r+=e[e.length-1],""!==r.trim()&&n.push(r),{styles:n,behaviors:i}}(e,n),s=x.create(i);return o.length&&s.withBehaviors(...o),s}function wt(e){return"".concat(":host([hidden]){display:none}",":host{display:").concat(e,"}")}function xt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}const Ct=document.createElement("div");class kt{setProperty(e,t){p.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){p.queueUpdate((()=>this.target.removeProperty(e)))}}class Ot extends kt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class St extends kt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Et{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),g.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),p.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),p.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:n}=this.style;if(n){const e=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[e].style}else this.target=null}}F([b],Et.prototype,"target",void 0);class At{constructor(e){this.target=e.style}setProperty(e,t){p.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){p.queueUpdate((()=>this.target.removeProperty(e)))}}class Tt{setProperty(e,t){Tt.properties[e]=t;for(const n of Tt.roots.values())It.getOrCreate(Tt.normalizeRoot(n)).setProperty(e,t)}removeProperty(e){delete Tt.properties[e];for(const t of Tt.roots.values())It.getOrCreate(Tt.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Tt;if(!t.has(e)){t.add(e);const n=It.getOrCreate(this.normalizeRoot(e));for(const e in Tt.properties)n.setProperty(e,Tt.properties[e])}}static unregisterRoot(e){const{roots:t}=Tt;if(t.has(e)){t.delete(e);const n=It.getOrCreate(Tt.normalizeRoot(e));for(const e in Tt.properties)n.removeProperty(e)}}static normalizeRoot(e){return e===Ct?document:e}}Tt.roots=new Set,Tt.properties={};const Rt=new WeakMap,Dt=p.supportsAdoptedStyleSheets?class extends kt{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(x.create([t]))}}:Et,It=Object.freeze({getOrCreate(e){if(Rt.has(e))return Rt.get(e);let t;return t=e===Ct?new Tt:e instanceof Document?p.supportsAdoptedStyleSheets?new Ot:new St:e instanceof q?new Dt(e):new At(e),Rt.set(e,t),t}});class jt extends yt{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty="--".concat(e.cssCustomPropertyName),this.cssVar="var(".concat(this.cssCustomProperty,")")),this.id=jt.uniqueId(),jt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new jt({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return jt.tokensById.get(e)}getOrCreateSubscriberSet(){let 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)}createCSS(){return this.cssVar||""}getValueFor(e){const t=zt.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,"."))}setValueFor(e,t){return this._appliedTo.add(e),t instanceof jt&&(t=this.alias(t)),zt.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),zt.existsFor(e)&&zt.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Ct,e),this}subscribe(e,t){const n=this.getOrCreateSubscriberSet(t);t&&!zt.existsFor(t)&&zt.getOrCreate(t),n.has(e)||n.add(e)}unsubscribe(e,t){const n=this.subscribers.get(t||this);n&&n.has(e)&&n.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}jt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),jt.tokensById=new Map;class Pt{constructor(e,t,n){this.source=e,this.token=t,this.node=n,this.dependencies=new Set,this.observer=g.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,w))}}class Nt{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),g.getNotifier(this).notify(e.id))}get(e){return g.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const Mt=new WeakMap,Lt=new WeakMap;class zt{constructor(e){this.target=e,this.store=new Nt,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const n=jt.getTokenById(t);if(n&&(n.notify(this.target),jt.isCSSDesignToken(n))){const t=this.parent,r=this.isReflecting(n);if(t){const i=t.get(n),o=e.get(n);i===o||r?i===o&&r&&this.stopReflectToCSS(n):this.reflectToCSS(n)}else r||this.reflectToCSS(n)}}},Mt.set(e,this),g.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof q?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Mt.get(e)||new zt(e)}static existsFor(e){return Mt.has(e)}static findParent(e){if(Ct!==e.target){let t=xt(e.target);for(;null!==t;){if(Mt.has(t))return Mt.get(t);t=xt(t)}return zt.getOrCreate(Ct)}return null}static findClosestAssignedNode(e,t){let n=t;do{if(n.has(e))return n;n=n.parent?n.parent:n.target!==Ct?zt.getOrCreate(Ct):null}while(null!==n);return null}get parent(){return Lt.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const n=this.getRaw(e);return void 0!==n?(this.hydrate(e,n),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=zt.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){jt.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),jt.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=zt.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&Lt.get(this).removeChild(this)}appendChild(e){e.parent&&Lt.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));Lt.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),g.getNotifier(this.store).subscribe(e);for(const[t,n]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):n)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),g.getNotifier(this.store).unsubscribe(e),e.parent===this&&Lt.delete(e)}contains(e){return function(e,t){let n=t;for(;null!==n;){if(n===e)return!0;n=xt(n)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),zt.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),zt.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const n=jt.getTokenById(t);n&&this.hydrate(n,this.getRaw(n))}hydrate(e,t){if(!this.has(e)){const n=this.bindingObservers.get(e);jt.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))}}setupBindingObserver(e,t){const n=new Pt(t,e,this);return this.bindingObservers.set(e,n),n}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}zt.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:n}=e;this.add(t,n)}add(e,t){It.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(zt.getOrCreate(t).get(e)))}remove(e,t){It.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},F([b],zt.prototype,"children",void 0);const Ft=Object.freeze({create:function(e){return jt.from(e)},notifyConnection:e=>!(!e.isConnected||!zt.existsFor(e)||(zt.getOrCreate(e).bind(),0)),notifyDisconnection:e=>!(e.isConnected||!zt.existsFor(e)||(zt.getOrCreate(e).unbind(),0)),registerRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ct;Tt.registerRoot(e)},unregisterRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ct;Tt.unregisterRoot(e)}});function Bt(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let e=t.getPropertyValue(i).toString();if("vscode-high-contrast"===r)0===e.length&&o.name.includes("background")&&(e="transparent"),"button-icon-hover-background"===o.name&&(e="transparent");else if("vscode-high-contrast-light"===r){if(0===e.length&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":e="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":e="transparent"}}else"contrast-active-border"===o.name&&(e="transparent");o.setValueFor(n,e)}}}const Vt=new Map;let Ut=!1;function Ht(e,t){const n=Ft.create(e);if(t){if(t.includes("--fake-vscode-token")){const e="id"+Math.random().toString(16).slice(2);t="".concat(t,"-").concat(e)}Vt.set(t,n)}return Ut||(function(e){window.addEventListener("load",(()=>{new MutationObserver((()=>{Bt(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Bt(e)}))}(Vt),Ut=!0),n}const Kt=Ht("background","--vscode-editor-background").withDefault("#1e1e1e"),qt=Ht("border-width").withDefault(1),$t=Ht("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Yt=(Ht("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),Ht("corner-radius").withDefault(0)),Wt=Ht("design-unit").withDefault(4),Gt=Ht("disabled-opacity").withDefault(.4),Qt=Ht("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Xt=Ht("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"),Jt=(Ht("font-weight","--vscode-font-weight").withDefault("400"),Ht("foreground","--vscode-foreground").withDefault("#cccccc")),Zt=Ht("input-height").withDefault("26"),en=Ht("input-min-width").withDefault("100px"),tn=Ht("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),nn=Ht("type-ramp-base-line-height").withDefault("normal"),rn=Ht("type-ramp-minus1-font-size").withDefault("11px"),on=Ht("type-ramp-minus1-line-height").withDefault("16px"),sn=(Ht("type-ramp-minus2-font-size").withDefault("9px"),Ht("type-ramp-minus2-line-height").withDefault("16px"),Ht("type-ramp-plus1-font-size").withDefault("16px"),Ht("type-ramp-plus1-line-height").withDefault("24px"),Ht("scrollbarWidth").withDefault("10px")),an=Ht("scrollbarHeight").withDefault("10px"),ln=Ht("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),cn=Ht("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),un=Ht("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),dn=Ht("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),hn=Ht("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),fn=Ht("button-border","--vscode-button-border").withDefault("transparent"),pn=Ht("button-icon-background").withDefault("transparent"),vn=Ht("button-icon-corner-radius").withDefault("5px"),mn=Ht("button-icon-outline-offset").withDefault(0),gn=Ht("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),bn=Ht("button-icon-padding").withDefault("3px"),yn=Ht("button-primary-background","--vscode-button-background").withDefault("#0e639c"),_n=Ht("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),wn=Ht("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),xn=Ht("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Cn=Ht("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),kn=Ht("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),On=Ht("button-padding-horizontal").withDefault("11px"),Sn=Ht("button-padding-vertical").withDefault("4px"),En=Ht("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),An=Ht("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Tn=Ht("checkbox-corner-radius").withDefault(3),Rn=(Ht("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),Ht("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771")),Dn=Ht("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),In=Ht("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),jn=Ht("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Pn=Ht("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Nn=Ht("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),Mn=(Ht("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),Ht("dropdown-list-max-height").withDefault("200px")),Ln=Ht("input-background","--vscode-input-background").withDefault("#3c3c3c"),zn=Ht("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),Fn=(Ht("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),Ht("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff")),Bn=Ht("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),Vn=Ht("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),Un=Ht("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Hn=Ht("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),Kn=Ht("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),qn=(Ht("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),Ht("panel-view-border","--vscode-panel-border").withDefault("#80808059"),Ht("tag-corner-radius").withDefault("2px"));var $n;const Yn=class extends Ue{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}.compose({baseName:"badge",template:bt,styles:(e,t)=>_t($n||($n=(0,He.A)(["\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"])),wt("inline-block"),Xt,rn,on,dn,qt,fn,hn,Wt,Wt,Wt)});Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;class Wn{}F([P({attribute:"aria-atomic"})],Wn.prototype,"ariaAtomic",void 0),F([P({attribute:"aria-busy"})],Wn.prototype,"ariaBusy",void 0),F([P({attribute:"aria-controls"})],Wn.prototype,"ariaControls",void 0),F([P({attribute:"aria-current"})],Wn.prototype,"ariaCurrent",void 0),F([P({attribute:"aria-describedby"})],Wn.prototype,"ariaDescribedby",void 0),F([P({attribute:"aria-details"})],Wn.prototype,"ariaDetails",void 0),F([P({attribute:"aria-disabled"})],Wn.prototype,"ariaDisabled",void 0),F([P({attribute:"aria-errormessage"})],Wn.prototype,"ariaErrormessage",void 0),F([P({attribute:"aria-flowto"})],Wn.prototype,"ariaFlowto",void 0),F([P({attribute:"aria-haspopup"})],Wn.prototype,"ariaHaspopup",void 0),F([P({attribute:"aria-hidden"})],Wn.prototype,"ariaHidden",void 0),F([P({attribute:"aria-invalid"})],Wn.prototype,"ariaInvalid",void 0),F([P({attribute:"aria-keyshortcuts"})],Wn.prototype,"ariaKeyshortcuts",void 0),F([P({attribute:"aria-label"})],Wn.prototype,"ariaLabel",void 0),F([P({attribute:"aria-labelledby"})],Wn.prototype,"ariaLabelledby",void 0),F([P({attribute:"aria-live"})],Wn.prototype,"ariaLive",void 0),F([P({attribute:"aria-owns"})],Wn.prototype,"ariaOwns",void 0),F([P({attribute:"aria-relevant"})],Wn.prototype,"ariaRelevant",void 0),F([P({attribute:"aria-roledescription"})],Wn.prototype,"ariaRoledescription",void 0);class Gn{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Qn(e){return new $e("fast-ref",Gn,e)}var Xn,Jn,Zn,er;class tr{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const nr=(e,t)=>mt(Xn||(Xn=(0,He.A)(['\n <span\n part="end"\n ',"\n class=",'\n >\n <slot name="end" ',' @slotchange="','">\n ',"\n </slot>\n </span>\n"])),Qn("endContainer"),(e=>t.end?"end":void 0),Qn("end"),(e=>e.handleEndContentChange()),t.end||""),rr=(e,t)=>mt(Jn||(Jn=(0,He.A)(['\n <span\n part="start"\n ','\n class="','"\n >\n <slot\n name="start"\n ','\n @slotchange="','"\n >\n ',"\n </slot>\n </span>\n"])),Qn("startContainer"),(e=>t.start?"start":void 0),Qn("start"),(e=>e.handleStartContentChange()),t.start||"");function ir(e){const t=R.locate(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach((n=>{Object.getOwnPropertyNames(n.prototype).forEach((t=>{"constructor"!==t&&Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(n.prototype,t))})),R.locate(n).forEach((e=>t.push(e)))}))}var or;mt(Zn||(Zn=(0,He.A)(['\n <span part="end" ','>\n <slot\n name="end"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),Qn("endContainer"),Qn("end"),(e=>e.handleEndContentChange())),mt(er||(er=(0,He.A)(['\n <span part="start" ','>\n <slot\n name="start"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),Qn("startContainer"),Qn("start"),(e=>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"}(or||(or={}));const sr="ArrowDown",ar="ArrowLeft",lr="ArrowRight",cr="ArrowUp",ur="Enter",dr="Escape",hr="Home",fr="End",pr=" ",vr="Tab",mr={ArrowDown:sr,ArrowLeft:ar,ArrowRight:lr,ArrowUp:cr},gr="form-associated-proxy",br="ElementInternals",yr=br in window&&"setFormValue"in window[br].prototype,_r=new WeakMap;function wr(e){const t=class extends e{constructor(){super(...arguments),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return yr}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const 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 s}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),p.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),p.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!yr)return null;let e=_r.get(this);return e||(e=this.attachInternals(),_r.set(this,e)),e}connectedCallback(){super.connectedCallback(),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))}disconnectedCallback(){this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,n){this.elementInternals?this.elementInternals.setValidity(e,t,n):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.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",gr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",gr)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if(e.key===ur&&this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return P({mode:"boolean"})(t.prototype,"disabled"),P({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),P({attribute:"current-value"})(t.prototype,"currentValue"),P(t.prototype,"name"),P({mode:"boolean"})(t.prototype,"required"),b(t.prototype,"value"),t}function xr(e){class t extends(wr(e)){}class n extends t{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(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()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return P({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),P({attribute:"current-checked",converter:D})(n.prototype,"currentChecked"),b(n.prototype,"defaultChecked"),b(n.prototype,"checked"),n}class Cr extends De{}class kr extends(wr(Cr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Or extends kr{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(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)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}F([P({mode:"boolean"})],Or.prototype,"autofocus",void 0),F([P({attribute:"form"})],Or.prototype,"formId",void 0),F([P],Or.prototype,"formaction",void 0),F([P],Or.prototype,"formenctype",void 0),F([P],Or.prototype,"formmethod",void 0),F([P({mode:"boolean"})],Or.prototype,"formnovalidate",void 0),F([P],Or.prototype,"formtarget",void 0),F([P],Or.prototype,"type",void 0),F([b],Or.prototype,"defaultSlottedContent",void 0);class Sr{}function Er(e){return e?function(t,n,r){return 1===t.nodeType&&t.matches(e)}:function(e,t,n){return 1===e.nodeType}}F([P({attribute:"aria-expanded"})],Sr.prototype,"ariaExpanded",void 0),F([P({attribute:"aria-pressed"})],Sr.prototype,"ariaPressed",void 0),ir(Sr,Wn),ir(Or,tr,Sr);class Ar{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=g.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class Tr extends Ar{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Rr(e){return"string"==typeof e&&(e={property:e}),new $e("fast-slotted",Tr,e)}var Dr;let Ir;const jr=function(){if("boolean"==typeof Ir)return Ir;if("undefined"==typeof window||!window.document||!window.document.createElement)return Ir=!1,Ir;const e=document.createElement("style"),t=function(){const 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),Ir=!0}catch(e){Ir=!1}finally{document.head.removeChild(e)}return Ir}()?"focus-visible":"focus",Pr="not-allowed";var Nr,Mr,Lr,zr,Fr;const Br=_t(Nr||(Nr=(0,He.A)(["\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"])),wt("inline-flex"),Xt,tn,nn,_n,yn,Sn,On,qt,fn,wn,yn,jr,qt,Qt,qt,Gt,yn,Pr,Wt,Wt),Vr=_t(Mr||(Mr=(0,He.A)(["\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"])),yn,_n,wn,yn,jr,qt,Qt,qt,yn),Ur=_t(Lr||(Lr=(0,He.A)(["\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"])),xn,Cn,kn,xn,jr,qt,Qt,qt,xn),Hr=_t(zr||(zr=(0,He.A)(["\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"])),pn,vn,Jt,gn,$t,bn,gn,jr,qt,Qt,mn,pn);class Kr extends Or{connectedCallback(){if(super.connectedCallback(),!this.appearance){const e=this.getAttribute("appearance");this.appearance=e}}attributeChangedCallback(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)}}!function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([P],Kr.prototype,"appearance",void 0);const qr=Kr.compose({baseName:"button",template:(e,t)=>mt(Dr||(Dr=(0,He.A)(['\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"])),(e=>e.autofocus),(e=>e.disabled),(e=>e.formId),(e=>e.formaction),(e=>e.formenctype),(e=>e.formmethod),(e=>e.formnovalidate),(e=>e.formtarget),(e=>e.name),(e=>e.type),(e=>e.value),(e=>e.ariaAtomic),(e=>e.ariaBusy),(e=>e.ariaControls),(e=>e.ariaCurrent),(e=>e.ariaDescribedby),(e=>e.ariaDetails),(e=>e.ariaDisabled),(e=>e.ariaErrormessage),(e=>e.ariaExpanded),(e=>e.ariaFlowto),(e=>e.ariaHaspopup),(e=>e.ariaHidden),(e=>e.ariaInvalid),(e=>e.ariaKeyshortcuts),(e=>e.ariaLabel),(e=>e.ariaLabelledby),(e=>e.ariaLive),(e=>e.ariaOwns),(e=>e.ariaPressed),(e=>e.ariaRelevant),(e=>e.ariaRoledescription),Qn("control"),rr(0,t),Rr("defaultSlottedContent"),nr(0,t)),styles:(e,t)=>_t(Fr||(Fr=(0,He.A)(["\n\t","\n\t","\n\t","\n\t","\n"])),Br,Vr,Ur,Hr),shadowOptions:{delegatesFocus:!0}});class $r extends De{}class Yr extends(xr($r)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Wr extends Yr{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{this.readOnly||e.key!==pr||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.clickHandler=e=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}var Gr,Qr;F([P({attribute:"readonly",mode:"boolean"})],Wr.prototype,"readOnly",void 0),F([b],Wr.prototype,"defaultSlottedNodes",void 0),F([b],Wr.prototype,"indeterminate",void 0);const Xr=class extends Wr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}.compose({baseName:"checkbox",template:(e,t)=>mt(Gr||(Gr=(0,He.A)(['\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"])),(e=>e.checked),(e=>e.required),(e=>e.disabled),(e=>e.readOnly),(e=>e.disabled?null:0),((e,t)=>e.keypressHandler(t.event)),((e,t)=>e.clickHandler(t.event)),(e=>e.readOnly?"readonly":""),(e=>e.checked?"checked":""),(e=>e.indeterminate?"indeterminate":""),t.checkedIndicator||"",t.indeterminateIndicator||"",(e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"),Rr("defaultSlottedNodes")),styles:(e,t)=>_t(Qr||(Qr=(0,He.A)(["\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"])),wt("inline-flex"),Wt,tn,nn,Wt,Wt,Tn,qt,An,En,Xt,Jt,Wt,Wt,Jt,Jt,En,An,En,Qt,jr,qt,Qt,Pr,Gt),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 Jr(e,t,n){return{index:e,removed:t,addedCount:n}}function Zr(e,t,n,r,i,o){let a=0,l=0;const c=Math.min(n-t,o-i);if(0===t&&0===i&&(a=function(e,t,n){for(let r=0;r<n;++r)if(e[r]!==t[r])return r;return n}(e,r,c)),n===e.length&&o===r.length&&(l=function(e,t,n){let r=e.length,i=t.length,o=0;for(;o<n&&e[--r]===t[--i];)o++;return o}(e,r,c-a)),i+=a,o-=l,(n-=l)-(t+=a)===0&&o-i===0)return s;if(t===n){const e=Jr(t,[],0);for(;i<o;)e.removed.push(r[i++]);return[e]}if(i===o)return[Jr(t,[],n-t)];const u=function(e){let t=e.length-1,n=e[0].length-1,r=e[t][n];const i=[];for(;t>0||n>0;){if(0===t){i.push(2),n--;continue}if(0===n){i.push(3),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],a=e[t][n-1];let l;l=s<a?s<o?s:o:a<o?a:o,l===o?(o===r?i.push(0):(i.push(1),r=o),t--,n--):l===s?(i.push(3),t--,r=s):(i.push(2),n--,r=a)}return i.reverse(),i}(function(e,t,n,r,i,o){const s=o-i+1,a=n-t+1,l=new Array(s);let c,u;for(let e=0;e<s;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let n=1;n<s;++n)for(let o=1;o<a;++o)e[t+o-1]===r[i+n-1]?l[n][o]=l[n-1][o-1]:(c=l[n-1][o]+1,u=l[n][o-1]+1,l[n][o]=c<u?c:u);return l}(e,t,n,r,i,o)),d=[];let h,f=t,p=i;for(let e=0;e<u.length;++e)switch(u[e]){case 0:void 0!==h&&(d.push(h),h=void 0),f++,p++;break;case 1:void 0===h&&(h=Jr(f,[],0)),h.addedCount++,f++,h.removed.push(r[p]),p++;break;case 2:void 0===h&&(h=Jr(f,[],0)),h.addedCount++,f++;break;case 3:void 0===h&&(h=Jr(f,[],0)),h.removed.push(r[p]),p++}return void 0!==h&&d.push(h),d}const ei=Array.prototype.push;function ti(e,t,n,r){const i=Jr(t,n,r);let o=!1,s=0;for(let t=0;t<e.length;t++){const n=e[t];if(n.index+=s,o)continue;const r=(a=i.index,l=i.index+i.removed.length,c=n.index,u=n.index+n.addedCount,l<c||u<a?-1:l===c||u===a?0:a<c?l<u?l-c:u-c:u<l?u-a:l-a);if(r>=0){e.splice(t,1),t--,s-=n.addedCount-n.removed.length,i.addedCount+=n.addedCount-r;const a=i.removed.length+n.removed.length-r;if(i.addedCount||a){let e=n.removed;if(i.index<n.index){const t=i.removed.slice(0,n.index-i.index);ei.apply(t,e),e=t}if(i.index+i.removed.length>n.index+n.addedCount){const t=i.removed.slice(n.index+n.addedCount-i.index);ei.apply(e,t)}i.removed=e,n.index<i.index&&(i.index=n.index)}else o=!0}else if(i.index<n.index){o=!0,e.splice(t,0,i),t++;const r=i.addedCount-i.removed.length;n.index+=r,s+=r}}var a,l,c,u;o||e.push(i)}let ni=!1;function ri(e,t){let n=e.index;const 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}class ii extends v{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,p.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,p.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const n=void 0===t?function(e,t){let n=[];const r=function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];ti(t,r.index,r.removed,r.addedCount)}return t}(t);for(let t=0,i=r.length;t<i;++t){const i=r[t];1!==i.addedCount||1!==i.removed.length?n=n.concat(Zr(e,i.index,i.index+i.addedCount,i.removed,0,i.removed.length)):i.removed[0]!==e[i.index]&&n.push(i)}return n}(this.source,e):Zr(this.source,0,this.source.length,t,0,t.length);this.notify(n)}}function oi(e,t,n,r){e.bind(t[n],r)}function si(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}Object.freeze({positioning:!1,recycle:!0});class ai{constructor(e,t,n,r,i,o){this.location=e,this.itemsBinding=t,this.templateBinding=r,this.options=o,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=oi,this.itemsBindingObserver=g.binding(t,this,n),this.templateBindingObserver=g.binding(r,this,i),o.positioning&&(this.bindView=si)}bind(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()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(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)}observeItems(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.items)return void(this.items=s);const t=this.itemsObserver,n=this.itemsObserver=g.getNotifier(this.items),r=t!==n;r&&null!==t&&t.unsubscribe(this),(r||e)&&n.subscribe(this)}updateViews(e){const t=this.childContext,n=this.views,r=this.bindView,i=this.items,o=this.template,s=this.options.recycle,a=[];let l=0,c=0;for(let u=0,d=e.length;u<d;++u){const d=e[u],h=d.removed;let f=0,p=d.index;const v=p+d.addedCount,m=n.splice(d.index,h.length),g=c=a.length+m.length;for(;p<v;++p){const e=n[p],u=e?e.firstChild:this.location;let d;s&&c>0?(f<=g&&m.length>0?(d=m[f],f++):(d=a[l],l++),c--):d=o.create(),n.splice(p,0,d),r(d,i,p,t),d.insertBefore(u)}m[f]&&a.push(...m.slice(f))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.options.positioning)for(let e=0,t=n.length;e<t;++e){const r=n[e].context;r.length=t,r.index=e}}refreshAllViews(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.items,n=this.childContext,r=this.template,i=this.location,o=this.bindView;let s=t.length,a=this.views,l=a.length;if(0!==s&&!e&&this.options.recycle||(ft.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(s);for(let e=0;e<s;++e){const s=r.create();o(s,t,e,n),a[e]=s,s.insertBefore(i)}}else{let e=0;for(;e<s;++e)if(e<l)o(a[e],t,e,n);else{const s=r.create();o(s,t,e,n),a.push(s),s.insertBefore(i)}const c=a.splice(e,l-e);for(e=0,s=c.length;e<s;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,n=e.length;t<n;++t)e[t].unbind()}}class li extends Ke{constructor(e,t,n){super(),this.itemsBinding=e,this.templateBinding=t,this.options=n,this.createPlaceholder=p.createBlockPlaceholder,function(){if(ni)return;ni=!0,g.setArrayObserverFactory((e=>new ii(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,n=t.apply(this,arguments),r=this.$fastController;return void 0!==r&&e&&r.addSplice(Jr(this.length,[n],0)),n},e.push=function(){const e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ri(Jr(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const n=r.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.shift=function(){const e=this.length>0,t=i.apply(this,arguments),n=this.$fastController;return void 0!==n&&e&&n.addSplice(Jr(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const n=o.apply(this,arguments);return void 0!==t&&t.reset(e),n},e.splice=function(){const e=s.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ri(Jr(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ri(Jr(0,[],arguments.length),this)),e}}(),this.isItemsBindingVolatile=g.isVolatileBinding(e),this.isTemplateBindingVolatile=g.isVolatileBinding(t)}createBehavior(e){return new ai(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}const ci="focus",ui="focusin",di="focusout",hi="keydown",fi="sticky",pi="default",vi="columnheader",mi="default";class gi extends De{constructor(){super(),this.noTabbing=!1,this.generateHeader="default",this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,n)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const r=Math.max(0,Math.min(this.rowElements.length-1,e)),i=this.rowElements[r].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),o=i[Math.max(0,Math.min(i.length-1,t))];n&&this.scrollHeight!==this.clientHeight&&(r<this.focusRowIndex&&this.scrollTop>0||r>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&o.scrollIntoView({block:"center",inline:"center"}),o.focus()},this.onChildListChange=(e,t)=>{e&&e.length&&(e.forEach((e=>{e.addedNodes.forEach((e=>{1===e.nodeType&&"row"===e.getAttribute("role")&&(e.columnDefinitions=this.columnDefinitions)}))})),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,p.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(void 0===e){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,n)=>{const r=t;r.rowIndex=n,r.gridTemplateColumns=e,this.columnDefinitionsStale&&(r.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach((e=>{t="".concat(t).concat(""===t?"":" ","1fr")})),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=gi.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=gi.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new li((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(ci,this.handleFocus),this.addEventListener(hi,this.handleKeydown),this.addEventListener(di,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),p.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(ci,this.handleFocus),this.removeEventListener(hi,this.handleKeydown),this.removeEventListener(di,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const n=this.rowElements.length-1,r=this.offsetHeight+this.scrollTop,i=this.rowElements[n];switch(e.key){case cr:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case sr: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--){const e=this.rowElements[t];if(e.offsetTop<this.scrollTop){this.scrollTop=e.offsetTop+e.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++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>r){let t=0;this.generateHeader===fi&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case hr:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case fr:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,p.queueUpdate((()=>this.updateFocus())))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),"none"!==this.generateHeader&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===fi?"sticky-header":"header",void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}gi.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:"".concat(t)}))),F([P({attribute:"no-tabbing",mode:"boolean"})],gi.prototype,"noTabbing",void 0),F([P({attribute:"generate-header"})],gi.prototype,"generateHeader",void 0),F([P({attribute:"grid-template-columns"})],gi.prototype,"gridTemplateColumns",void 0),F([b],gi.prototype,"rowsData",void 0),F([b],gi.prototype,"columnDefinitions",void 0),F([b],gi.prototype,"rowItemTemplate",void 0),F([b],gi.prototype,"cellItemTemplate",void 0),F([b],gi.prototype,"headerCellItemTemplate",void 0),F([b],gi.prototype,"focusRowIndex",void 0),F([b],gi.prototype,"focusColumnIndex",void 0),F([b],gi.prototype,"defaultRowItemTemplate",void 0),F([b],gi.prototype,"rowElementTag",void 0),F([b],gi.prototype,"rowElements",void 0);class bi extends Ar{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function yi(e){return"string"==typeof e&&(e={property:e}),new $e("fast-children",bi,e)}class _i extends De{constructor(){super(...arguments),this.rowType=mi,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new li((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(di,this.handleFocusout),this.addEventListener(hi,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(di,this.handleFocusout),this.removeEventListener(hi,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case ar:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case lr:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case hr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case fr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===mi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===mi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}var wi,xi,Ci,ki;F([P({attribute:"grid-template-columns"})],_i.prototype,"gridTemplateColumns",void 0),F([P({attribute:"row-type"})],_i.prototype,"rowType",void 0),F([b],_i.prototype,"rowData",void 0),F([b],_i.prototype,"columnDefinitions",void 0),F([b],_i.prototype,"cellItemTemplate",void 0),F([b],_i.prototype,"headerCellItemTemplate",void 0),F([b],_i.prototype,"rowIndex",void 0),F([b],_i.prototype,"isActiveRow",void 0),F([b],_i.prototype,"activeCellItemTemplate",void 0),F([b],_i.prototype,"defaultCellItemTemplate",void 0),F([b],_i.prototype,"defaultHeaderCellItemTemplate",void 0),F([b],_i.prototype,"cellElements",void 0);const Oi=mt(Ci||(Ci=(0,He.A)(["\n <template>\n ","\n </template>\n"])),(e=>null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey])),Si=mt(ki||(ki=(0,He.A)(["\n <template>\n ","\n </template>\n"])),(e=>null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title));class Ei extends De{constructor(){super(...arguments),this.cellType=pi,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(ui,this.handleFocusin),this.addEventListener(di,this.handleFocusout),this.addEventListener(hi,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()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(ui,this.handleFocusin),this.removeEventListener(di,this.handleFocusout),this.removeEventListener(hi,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===vi){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus()}this.$emit("cell-focused",this)}}handleFocusout(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===pi&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===vi&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case ur:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===vi){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}break;case dr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case vi:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Si.render(this,this);break;case void 0:case"rowheader":case pi:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Oi.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}var Ai,Ti,Ri,Di,Ii,ji,Pi;F([P({attribute:"cell-type"})],Ei.prototype,"cellType",void 0),F([P({attribute:"grid-column"})],Ei.prototype,"gridColumn",void 0),F([b],Ei.prototype,"rowData",void 0),F([b],Ei.prototype,"columnDefinition",void 0);const Ni=class extends gi{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}.compose({baseName:"data-grid",baseClass:gi,template:(e,t)=>{const n=function(e){const t=e.tagFor(_i);return mt(wi||(wi=(0,He.A)(["\n <",'\n :rowData="','"\n :cellItemTemplate="','"\n :headerCellItemTemplate="','"\n ></',">\n"])),t,(e=>e),((e,t)=>t.parent.cellItemTemplate),((e,t)=>t.parent.headerCellItemTemplate),t)}(e),r=e.tagFor(_i);return mt(xi||(xi=(0,He.A)(['\n <template\n role="grid"\n tabindex="0"\n :rowElementTag="','"\n :defaultRowItemTemplate="','"\n ',"\n >\n <slot></slot>\n </template>\n "])),(()=>r),n,yi({property:"rowElements",filter:Er("[role=row]")}))},styles:(e,t)=>_t(Ii||(Ii=(0,He.A)(["\n\t:host {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t}\n"])))}),Mi=class extends _i{}.compose({baseName:"data-grid-row",baseClass:_i,template:(e,t)=>{const n=function(e){const t=e.tagFor(Ei);return mt(Ai||(Ai=(0,He.A)(["\n <",'\n cell-type="','"\n grid-column="','"\n :rowData="','"\n :columnDefinition="','"\n ></',">\n"])),t,(e=>e.isRowHeader?"rowheader":void 0),((e,t)=>t.index+1),((e,t)=>t.parent.rowData),(e=>e),t)}(e),r=function(e){const t=e.tagFor(Ei);return mt(Ti||(Ti=(0,He.A)(["\n <",'\n cell-type="columnheader"\n grid-column="','"\n :columnDefinition="','"\n ></',">\n"])),t,((e,t)=>t.index+1),(e=>e),t)}(e);return mt(Ri||(Ri=(0,He.A)(['\n <template\n role="row"\n class="','"\n :defaultCellItemTemplate="','"\n :defaultHeaderCellItemTemplate="','"\n ',"\n >\n <slot ","></slot>\n </template>\n "])),(e=>"default"!==e.rowType?e.rowType:""),n,r,yi({property:"cellElements",filter:Er('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')}),Rr("slottedCellElements"))},styles:(e,t)=>_t(ji||(ji=(0,He.A)(["\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"])),Wt,Kt,In,$t)}),Li=class extends Ei{}.compose({baseName:"data-grid-cell",baseClass:Ei,template:(e,t)=>mt(Di||(Di=(0,He.A)(['\n <template\n tabindex="-1"\n role="','"\n class="\n ','\n "\n >\n <slot></slot>\n </template>\n '])),(e=>e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"),(e=>"columnheader"===e.cellType?"column-header":"rowheader"===e.cellType?"row-header":"")),styles:(e,t)=>_t(Pi||(Pi=(0,He.A)(["\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"])),Wt,Wt,Jt,Xt,tn,nn,qt,Yt,jr,Rn,qt,Qt,Dn,jr,Dn)}),zi="horizontal";class Fi extends De{constructor(){super(...arguments),this.role="separator",this.orientation=zi}}var Bi,Vi;F([P],Fi.prototype,"role",void 0),F([P],Fi.prototype,"orientation",void 0);const Ui=class extends Fi{}.compose({baseName:"divider",template:(e,t)=>mt(Bi||(Bi=(0,He.A)(['\n <template role="','" aria-orientation="','"></template>\n'])),(e=>e.role),(e=>e.orientation)),styles:(e,t)=>_t(Vi||(Vi=(0,He.A)(["\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"])),wt("block"),qt,jn,Wt)});let Hi=0;function Ki(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Hi++)}function qi(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((e=>e instanceof HTMLElement))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}class $i extends De{constructor(e,t,n,r){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),n&&(this.defaultSelected=n),r&&(this.selected=r),this.proxy=new Option("".concat(this.textContent),this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}get text(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}set value(e){const t="".concat(null!=e?e:"");this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),g.notify(this,"value")}get value(){var e;return g.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text}get form(){return this.proxy?this.proxy.form:null}}F([b],$i.prototype,"checked",void 0),F([b],$i.prototype,"content",void 0),F([b],$i.prototype,"defaultSelected",void 0),F([P({mode:"boolean"})],$i.prototype,"disabled",void 0),F([P({attribute:"selected",mode:"boolean"})],$i.prototype,"selectedAttribute",void 0),F([b],$i.prototype,"selected",void 0),F([P({attribute:"value",mode:"fromView"})],$i.prototype,"initialValue",void 0);class Yi{}F([b],Yi.prototype,"ariaChecked",void 0),F([b],Yi.prototype,"ariaPosInSet",void 0),F([b],Yi.prototype,"ariaSelected",void 0),F([b],Yi.prototype,"ariaSetSize",void 0),ir(Yi,Wn),ir($i,tr,Yi);class Wi extends De{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}get options(){return g.track(this,"options"),this._options}set options(e){this._options=e,g.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.firstSelectedOption;this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp("^".concat(e),"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedIndex,t=arguments.length>1?arguments[1]:void 0;const n=e>t?-1:e<t?1:0,r=e+n;let i=null;switch(n){case-1:i=this.options.reduceRight(((e,t,n)=>!e&&!t.disabled&&n<r?t:e),i);break;case 1:i=this.options.reduce(((e,t,n)=>!e&&!t.disabled&&n>r?t:e),i)}return this.options.indexOf(i)}handleChange(e,t){"selected"===t&&(Wi.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions())}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),Wi.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer="".concat(this.typeaheadExpired?"":this.typeaheadBuffer).concat(e))}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case hr:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case sr:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case cr:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case fr:e.preventDefault(),this.selectLastOption();break;case vr:return this.focusAndScrollOptionIntoView(),!0;case ur:case dr:return!0;case pr:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var n;if(this.hasSelectableOptions){if((null===(n=this.options[this.selectedIndex])||void 0===n?void 0:n.disabled)&&"number"==typeof e){const n=this.getSelectableIndex(e,t),r=n>-1?n:e;return this.selectedIndex=r,void(t===r&&this.selectedIndexChanged(t,r))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(e,t){var n;const r=t.filter(Wi.slottedOptionFilter);null===(n=this.options)||void 0===n||n.forEach((e=>{const t=g.getNotifier(e);t.unsubscribe(this,"selected"),e.selected=r.includes(e),t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>!e.disabled)))&&void 0!==t?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(e,t){let n=e.length;for(;n--;)if(t(e[n]))return n;return-1}(this.options,(e=>!e.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>e.defaultSelected)))&&void 0!==t?t:-1}setSelectedOptions(){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())}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>(qi(t)&&e.push(t),e)),[]);const n="".concat(this.options.length);this.options.forEach(((e,t)=>{e.id||(e.id=Ki("option-")),e.ariaPosInSet="".concat(t+1),e.ariaSetSize=n})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}Wi.slottedOptionFilter=e=>qi(e)&&!e.hidden,Wi.TYPE_AHEAD_TIMEOUT_MS=1e3,F([P({mode:"boolean"})],Wi.prototype,"disabled",void 0),F([b],Wi.prototype,"selectedIndex",void 0),F([b],Wi.prototype,"selectedOptions",void 0),F([b],Wi.prototype,"slottedOptions",void 0),F([b],Wi.prototype,"typeaheadBuffer",void 0);class Gi{}function Qi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return[t,n]=[t,n].sort(((e,t)=>e-t)),t<=e&&e<n}F([b],Gi.prototype,"ariaActiveDescendant",void 0),F([b],Gi.prototype,"ariaDisabled",void 0),F([b],Gi.prototype,"ariaExpanded",void 0),F([b],Gi.prototype,"ariaMultiSelectable",void 0),ir(Gi,Wn),ir(Wi,Gi);class Xi extends Wi{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((e=>e.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(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()}checkActiveIndex(){if(!this.multiple)return;const e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((e,t)=>{e.checked=Qi(t,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=Qi(t,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=Qi(t,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(){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(((e,t)=>{e.checked=Qi(t,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple)return super.clickHandler(e);const n=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return n&&!n.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(n),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(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}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;const{key:t,shiftKey:n}=e;switch(this.shouldSkipFocus=!1,t){case hr:return void this.checkFirstOption(n);case sr:return void this.checkNextOption(n);case cr:return void this.checkPreviousOption(n);case fr:return void this.checkLastOption(n);case vr:return this.focusAndScrollOptionIntoView(),!0;case dr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case pr:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead("".concat(t)),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var n;this.ariaMultiSelectable=t?"true":null,null===(n=this.options)||void 0===n||n.forEach((e=>{e.checked=!t&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((e=>e.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(e,t){var n;const r=Math.max(0,parseInt(null!==(n=null==t?void 0:t.toFixed())&&void 0!==n?n:"",10));r!==t&&p.queueUpdate((()=>{this.size=r}))}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter((e=>!e.disabled)),t=!e.every((e=>e.selected));e.forEach((e=>e.selected=t)),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(this.multiple){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches(),t=this.options.indexOf(e[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(e,t)}uncheckAllOptions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.options.forEach((e=>e.checked=!this.multiple&&void 0)),e||(this.rangeStartIndex=-1)}}F([b],Xi.prototype,"activeIndex",void 0),F([P({mode:"boolean"})],Xi.prototype,"multiple",void 0),F([P({converter:I})],Xi.prototype,"size",void 0);class Ji extends Xi{}class Zi extends(wr(Ji)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}const eo="above";class to extends Zi{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ki("listbox-"),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void p.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return g.track(this,"value"),this._value}set value(e){var t,n,r,i,o,s,a;const l="".concat(this._value);if(null===(t=this._options)||void 0===t?void 0:t.length){const t=this._options.findIndex((t=>t.value===e)),l=null!==(r=null===(n=this._options[this.selectedIndex])||void 0===n?void 0:n.value)&&void 0!==r?r:null,c=null!==(o=null===(i=this._options[t])||void 0===i?void 0:i.value)&&void 0!==o?o:null;-1!==t&&l===c||(e="",this.selectedIndex=t),e=null!==(a=null===(s=this.firstSelectedOption)||void 0===s?void 0:s.value)&&void 0!==a?a:e}l!==e&&(this._value=e,super.valueChanged(l,e),g.notify(this,"value"),this.updateDisplayValue())}updateValue(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}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?eo:"below",this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===eo?~~e.top:~~t}get displayValue(){var e,t;return g.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(e){var t;if(super.focusoutHandler(e),!this.open)return!0;const n=e.relatedTarget;this.isSameNode(n)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(n))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),"value"===t&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach((e=>{g.getNotifier(e).unsubscribe(this,"value")})),super.slottedOptionsChanged(e,t),this.options.forEach((e=>{g.getNotifier(e).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var n;super.selectedOptionsChanged(e,t),null===(n=this.options)||void 0===n||n.forEach(((e,t)=>{var n;const r=null===(n=this.proxy)||void 0===n?void 0:n.options.item(t);r&&(r.selected=e.selected)}))}setDefaultSelectedOption(){var e;const t=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(Wi.slottedOptionFilter),n=null==t?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));this.selectedIndex=-1===n?0:n}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)})))}keydownHandler(e){super.keydownHandler(e);const t=e.key||e.key.charCodeAt(0);switch(t){case pr:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case hr:case fr:e.preventDefault();break;case ur:e.preventDefault(),this.open=!this.open;break;case dr:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case vr: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===sr||t===cr)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&g.notify(this,"displayValue")}}F([P({attribute:"open",mode:"boolean"})],to.prototype,"open",void 0),F([function(e,t,n){return Object.assign({},n,{get:function(){return g.trackVolatile(),n.get.apply(this)}})}],to.prototype,"collapsible",null),F([b],to.prototype,"control",void 0),F([P({attribute:"position"})],to.prototype,"positionAttribute",void 0),F([b],to.prototype,"position",void 0),F([b],to.prototype,"maxHeight",void 0);class no{}F([b],no.prototype,"ariaControls",void 0),ir(no,Gi),ir(to,tr,no);const ro=e=>"function"==typeof e,io=()=>null;function oo(e){return void 0===e?io:ro(e)?e:()=>e}function so(e,t,n){const r=ro(e)?e:()=>e,i=oo(t),o=oo(n);return(e,t)=>r(e,t)?i(e,t):o(e,t)}var ao,lo,co;const uo=class extends to{}.compose({baseName:"dropdown",template:(e,t)=>mt(ao||(ao=(0,He.A)(['\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"])),(e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")),(e=>e.ariaActiveDescendant),(e=>e.ariaControls),(e=>e.ariaDisabled),(e=>e.ariaExpanded),(e=>e.collapsible?"listbox":null),(e=>e.ariaMultiSelectable),(e=>e.open),(e=>e.disabled?null:"0"),((e,t)=>e.clickHandler(t.event)),((e,t)=>e.focusinHandler(t.event)),((e,t)=>e.focusoutHandler(t.event)),((e,t)=>e.keydownHandler(t.event)),((e,t)=>e.mousedownHandler(t.event)),so((e=>e.collapsible),mt(lo||(lo=(0,He.A)(['\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 "])),(e=>e.disabled),Qn("control"),rr(0,t),(e=>e.displayValue),t.indicator||"",nr(0,t))),(e=>e.listboxId),(e=>e.disabled),(e=>!!e.collapsible&&!e.open),Qn("listbox"),Rr({filter:Wi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})),styles:(e,t)=>_t(co||(co=(0,He.A)(["\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"])),wt("inline-flex"),Pn,Jt,Xt,Zt,en,qt,Nn,Yt,tn,nn,Pn,qt,Qt,Yt,Mn,Wt,jr,Qt,Pn,Nn,jr,Rn,qt,Qt,Dn,Pr,Gt,Pr,Pn,Jt,Qt,Qt,Zt,Zt,Wt,Wt),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'});class ho extends De{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{var e;null===(e=this.control)||void 0===e||e.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}F([P],ho.prototype,"download",void 0),F([P],ho.prototype,"href",void 0),F([P],ho.prototype,"hreflang",void 0),F([P],ho.prototype,"ping",void 0),F([P],ho.prototype,"referrerpolicy",void 0),F([P],ho.prototype,"rel",void 0),F([P],ho.prototype,"target",void 0),F([P],ho.prototype,"type",void 0),F([b],ho.prototype,"defaultSlottedContent",void 0);class fo{}var po,vo;F([P({attribute:"aria-expanded"})],fo.prototype,"ariaExpanded",void 0),ir(fo,Wn),ir(ho,tr,fo);const mo=class extends ho{}.compose({baseName:"link",template:(e,t)=>mt(po||(po=(0,He.A)(['\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"])),(e=>e.download),(e=>e.href),(e=>e.hreflang),(e=>e.ping),(e=>e.referrerpolicy),(e=>e.rel),(e=>e.target),(e=>e.type),(e=>e.ariaAtomic),(e=>e.ariaBusy),(e=>e.ariaControls),(e=>e.ariaCurrent),(e=>e.ariaDescribedby),(e=>e.ariaDetails),(e=>e.ariaDisabled),(e=>e.ariaErrormessage),(e=>e.ariaExpanded),(e=>e.ariaFlowto),(e=>e.ariaHaspopup),(e=>e.ariaHidden),(e=>e.ariaInvalid),(e=>e.ariaKeyshortcuts),(e=>e.ariaLabel),(e=>e.ariaLabelledby),(e=>e.ariaLive),(e=>e.ariaOwns),(e=>e.ariaRelevant),(e=>e.ariaRoledescription),Qn("control"),rr(0,t),Rr("defaultSlottedContent"),nr(0,t)),styles:(e,t)=>_t(vo||(vo=(0,He.A)(["\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"])),wt("inline-flex"),Bn,Xt,tn,nn,qt,Yt,Fn,Fn,jr,qt,Qt),shadowOptions:{delegatesFocus:!0}});var go,bo;const yo=class extends $i{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}.compose({baseName:"option",template:(e,t)=>mt(go||(go=(0,He.A)(['\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"])),(e=>e.ariaChecked),(e=>e.ariaDisabled),(e=>e.ariaPosInSet),(e=>e.ariaSelected),(e=>e.ariaSetSize),(e=>[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")),rr(0,t),Rr("content"),nr(0,t)),styles:(e,t)=>_t(bo||(bo=(0,He.A)(["\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"])),wt("inline-flex"),Yt,qt,Jt,tn,nn,Wt,Wt,jr,Qt,Rn,Jt,Rn,qt,Qt,Dn,Rn,Dn,Rn,qt,Qt,Dn,Rn,Jt,Pr,Gt)}),_o="horizontal";class wo extends De{constructor(){super(...arguments),this.orientation=_o,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>"true"===e.getAttribute("aria-disabled"),this.isFocusableElement=e=>!this.isDisabledElement(e),this.setTabs=()=>{const e="gridColumn",t="gridRow",n=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((r,i)=>{if("tab"===r.slot){const e=this.activeTabIndex===i&&this.isFocusableElement(r);this.activeindicator&&this.isFocusableElement(r)&&(this.showActiveIndicator=!0);const t=this.tabIds[i],n=this.tabpanelIds[i];r.setAttribute("id",t),r.setAttribute("aria-selected",e?"true":"false"),r.setAttribute("aria-controls",n),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",e?"0":"-1"),e&&(this.activetab=r)}r.style[e]="",r.style[t]="",r.style[n]="".concat(i+1),this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",n),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))},this.handleTabClick=e=>{const t=e.currentTarget;1===t.nodeType&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case ar:e.preventDefault(),this.adjustBackward(e);break;case lr:e.preventDefault(),this.adjustForward(e)}else switch(e.key){case cr:e.preventDefault(),this.adjustBackward(e);break;case sr:e.preventDefault(),this.adjustForward(e)}switch(e.key){case hr:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case fr:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{const t=this.tabs;let n=0;for(n=this.activetab?t.indexOf(this.activetab)+1:1,n===t.length&&(n=0);n<t.length&&t.length>1;){if(this.isFocusableElement(t[n])){this.moveToTabByIndex(t,n);break}if(this.activetab&&n===t.indexOf(this.activetab))break;n+1>=t.length?n=0:n+=1}},this.adjustBackward=e=>{const t=this.tabs;let n=0;for(n=this.activetab?t.indexOf(this.activetab)-1:0,n=n<0?t.length-1:n;n>=0&&t.length>1;){if(this.isFocusableElement(t[n])){this.moveToTabByIndex(t,n);break}n-1<0?n=t.length-1:n-=1}},this.moveToTabByIndex=(e,t)=>{const n=e[t];this.activetab=n,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,n.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e)),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"tab-".concat(Ki())}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"panel-".concat(Ki())}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===_o}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",n=this.isHorizontal()?"offsetLeft":"offsetTop",r=this.activeIndicatorRef[n];this.activeIndicatorRef.style[e]="".concat(this.activeTabIndex+1);const i=this.activeIndicatorRef[n];this.activeIndicatorRef.style[e]="".concat(this.prevActiveTabIndex+1);const o=i-r;this.activeIndicatorRef.style.transform="".concat(t,"(").concat(o,"px)"),this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[e]="".concat(this.activeTabIndex+1),this.activeIndicatorRef.style.transform="".concat(t,"(0px)"),this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(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()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}var xo,Co,ko,Oo,So,Eo,Ao;F([P],wo.prototype,"orientation",void 0),F([P],wo.prototype,"activeid",void 0),F([b],wo.prototype,"tabs",void 0),F([b],wo.prototype,"tabpanels",void 0),F([P({mode:"boolean"})],wo.prototype,"activeindicator",void 0),F([b],wo.prototype,"activeIndicatorRef",void 0),F([b],wo.prototype,"showActiveIndicator",void 0),ir(wo,tr);class To extends De{}F([P({mode:"boolean"})],To.prototype,"disabled",void 0);class Ro extends De{}const Do=class extends wo{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=_o),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}.compose({baseName:"panels",template:(e,t)=>mt(xo||(xo=(0,He.A)(['\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"])),(e=>e.orientation),rr(0,t),Rr("tabs"),so((e=>e.showActiveIndicator),mt(Co||(Co=(0,He.A)(["\n <div\n ",'\n class="activeIndicator"\n part="activeIndicator"\n ></div>\n '])),Qn("activeIndicatorRef"))),nr(0,t),Rr("tabpanels")),styles:(e,t)=>_t(So||(So=(0,He.A)(["\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"])),wt("grid"),Xt,tn,nn,Jt,Wt,Wt,Wt,Wt,Hn,Yt)}),Io=class extends To{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}.compose({baseName:"panel-tab",template:(e,t)=>mt(ko||(ko=(0,He.A)(['\n <template slot="tab" role="tab" aria-disabled="','">\n <slot></slot>\n </template>\n'])),(e=>e.disabled)),styles:(e,t)=>_t(Eo||(Eo=(0,He.A)(["\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"])),wt("inline-flex"),Xt,tn,nn,Wt,Wt,Kn,Yt,qt,Hn,Hn,Hn,Hn,Hn,jr,qt,Un,Wt)}),jo=class extends Ro{}.compose({baseName:"panel-view",template:(e,t)=>mt(Oo||(Oo=(0,He.A)(['\n <template slot="tabpanel" role="tabpanel">\n <slot></slot>\n </template>\n']))),styles:(e,t)=>_t(Ao||(Ao=(0,He.A)(["\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"])),wt("flex"),qt,tn,nn,Wt)});class Po extends De{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const 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)}}var No,Mo,Lo,zo;F([P({converter:I})],Po.prototype,"value",void 0),F([P({converter:I})],Po.prototype,"min",void 0),F([P({converter:I})],Po.prototype,"max",void 0),F([P({mode:"boolean"})],Po.prototype,"paused",void 0),F([b],Po.prototype,"percentComplete",void 0);const Fo=class extends Po{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(e,t,n){"value"===e&&this.removeAttribute("value")}}.compose({baseName:"progress-ring",template:(e,t)=>mt(No||(No=(0,He.A)(['\n <template\n role="progressbar"\n aria-valuenow="','"\n aria-valuemin="','"\n aria-valuemax="','"\n class="','"\n >\n ',"\n </template>\n"])),(e=>e.value),(e=>e.min),(e=>e.max),(e=>e.paused?"paused":""),so((e=>"number"==typeof e.value),mt(Mo||(Mo=(0,He.A)(['\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 '])),(e=>44*e.percentComplete/100),44),mt(Lo||(Lo=(0,He.A)(['\n <slot name="indeterminate" slot="indeterminate">\n ',"\n </slot>\n "])),t.indeterminateIndicator||""))),styles:(e,t)=>_t(zo||(zo=(0,He.A)(["\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"])),wt("flex"),Wt,Wt,Wt,Vn,Wt),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'});class Bo extends De{}class Vo extends(xr(Bo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Uo extends Vo{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(e.key!==pr)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),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))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}var Ho,Ko;F([P({attribute:"readonly",mode:"boolean"})],Uo.prototype,"readOnly",void 0),F([b],Uo.prototype,"name",void 0),F([b],Uo.prototype,"defaultSlottedNodes",void 0);const qo=class extends Uo{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}.compose({baseName:"radio",template:(e,t)=>mt(Ho||(Ho=(0,He.A)(['\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"])),(e=>e.checked?"checked":""),(e=>e.readOnly?"readonly":""),(e=>e.checked),(e=>e.required),(e=>e.disabled),(e=>e.readOnly),((e,t)=>e.keypressHandler(t.event)),((e,t)=>e.clickHandler(t.event)),t.checkedIndicator||"",(e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"),Rr("defaultSlottedNodes")),styles:(e,t)=>_t(Ko||(Ko=(0,He.A)(["\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"])),wt("inline-flex"),tn,nn,Wt,En,qt,An,Wt,Wt,Jt,Xt,Wt,Wt,Jt,Wt,En,An,En,Qt,jr,qt,Qt,En,qt,An,En,qt,An,En,qt,Qt,jr,qt,Qt,Pr,Gt),checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});var $o,Yo,Wo;!function(e){e.ltr="ltr",e.rtl="rtl"}($o||($o={}));class Go extends De{constructor(){super(...arguments),this.orientation=zi,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach((e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"))})),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const n=e[t];this.isInsideToolbar||(n.setAttribute("tabindex","0"),n.readOnly?this.slottedRadioButtons.forEach((e=>{e!==n&&e.setAttribute("tabindex","-1")})):(n.checked=!0,this.selectedRadio=n)),this.focusedRadio=n,n.focus()},this.moveRightOffGroup=()=>{var e;null===(e=this.nextElementSibling)||void 0===e||e.focus()},this.moveLeftOffGroup=()=>{var e;null===(e=this.previousElementSibling)||void 0===e||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,n=e.target,r=null!==n?t.indexOf(n):0,i=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(0===i&&r===i||i===t.length-1&&i===r)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.selectedRadio&&e.setAttribute("tabindex","-1")})))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.focusedRadio&&e.setAttribute("tabindex","-1")})))),!0},this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;t.checked||0===e.indexOf(t)?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,n)=>e===t.length&&this.isInsideToolbar&&n===lr,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===ar,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let n=0;if(n=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(n,t,e.key))this.moveRightOffGroup();else for(n===t.length&&(n=0);n<t.length&&t.length>1;){if(!t[n].disabled){this.moveToRadioByIndex(t,n);break}if(this.focusedRadio&&n===t.indexOf(this.focusedRadio))break;if(n+1>=t.length){if(this.isInsideToolbar)break;n=0}else n+=1}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let n=0;if(n=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,n=n<0?t.length-1:n,this.shouldMoveOffGroupToTheLeft(t,e.key))this.moveLeftOffGroup();else for(;n>=0&&t.length>1;){if(!t[n].disabled){this.moveToRadioByIndex(t,n);break}if(this.focusedRadio&&n===t.indexOf(this.focusedRadio))break;n-1<0?n=t.length-1:n-=1}},this.keydownHandler=e=>{const t=e.key;if(t in mr&&this.isInsideFoundationToolbar)return!0;switch(t){case ur:this.checkFocusedRadio();break;case lr:case sr:this.direction===$o.ltr?this.moveRight(e):this.moveLeft(e);break;case ar:case cr:this.direction===$o.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.disabled?e.disabled=!0:e.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)})),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}get isInsideFoundationToolbar(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=(()=>{const e=this.closest("[dir]");return null!==e&&"rtl"===e.dir?$o.rtl:$o.ltr})(),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=e?e.length:0;t>1&&(e[t-1].checked=!0);let n=!1;if(this.slottedRadioButtons.forEach((e=>{void 0!==this.name&&e.setAttribute("name",this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute("tabindex","0"),n=!0):(this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"),e.checked=!1),e.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=null!==e?e.length:0;if(t>0&&!n){const n=e[t-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}F([P({attribute:"readonly",mode:"boolean"})],Go.prototype,"readOnly",void 0),F([P({attribute:"disabled",mode:"boolean"})],Go.prototype,"disabled",void 0),F([P],Go.prototype,"name",void 0),F([P],Go.prototype,"value",void 0),F([P],Go.prototype,"orientation",void 0),F([b],Go.prototype,"childItems",void 0),F([b],Go.prototype,"slottedRadioButtons",void 0);const Qo=class extends Go{connectedCallback(){super.connectedCallback();const e=this.querySelector("label");if(e){const t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}.compose({baseName:"radio-group",template:(e,t)=>mt(Yo||(Yo=(0,He.A)(['\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"])),(e=>e.disabled),(e=>e.readOnly),((e,t)=>e.clickHandler(t.event)),((e,t)=>e.keydownHandler(t.event)),((e,t)=>e.focusOutHandler(t.event)),(e=>e.orientation===zi?"horizontal":"vertical"),Rr({property:"slottedRadioButtons",filter:Er("[role=radio]")})),styles:(e,t)=>_t(Wo||(Wo=(0,He.A)(["\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"])),wt("flex"),Wt,Jt,tn,Wt)});var Xo;const Jo=class extends Ue{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}.compose({baseName:"tag",template:bt,styles:(e,t)=>_t(Xo||(Xo=(0,He.A)(["\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"])),wt("inline-block"),Xt,rn,on,dn,qt,fn,qn,hn,Wt,Wt)});class Zo extends De{}class es extends(wr(Zo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ts extends es{constructor(){super(...arguments),this.type="text"}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&p.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}F([P({attribute:"readonly",mode:"boolean"})],ts.prototype,"readOnly",void 0),F([P({mode:"boolean"})],ts.prototype,"autofocus",void 0),F([P],ts.prototype,"placeholder",void 0),F([P],ts.prototype,"type",void 0),F([P],ts.prototype,"list",void 0),F([P({converter:I})],ts.prototype,"maxlength",void 0),F([P({converter:I})],ts.prototype,"minlength",void 0),F([P],ts.prototype,"pattern",void 0),F([P({converter:I})],ts.prototype,"size",void 0),F([P({mode:"boolean"})],ts.prototype,"spellcheck",void 0),F([b],ts.prototype,"defaultSlottedNodes",void 0);class ns{}ir(ns,Wn),ir(ts,tr,ns);class rs extends De{}class is extends(wr(rs)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const os="none";class ss extends is{constructor(){super(...arguments),this.resize=os,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}var as,ls;F([P({mode:"boolean"})],ss.prototype,"readOnly",void 0),F([P],ss.prototype,"resize",void 0),F([P({mode:"boolean"})],ss.prototype,"autofocus",void 0),F([P({attribute:"form"})],ss.prototype,"formId",void 0),F([P],ss.prototype,"list",void 0),F([P({converter:I})],ss.prototype,"maxlength",void 0),F([P({converter:I})],ss.prototype,"minlength",void 0),F([P],ss.prototype,"name",void 0),F([P],ss.prototype,"placeholder",void 0),F([P({converter:I,mode:"fromView"})],ss.prototype,"cols",void 0),F([P({converter:I,mode:"fromView"})],ss.prototype,"rows",void 0),F([P({mode:"boolean"})],ss.prototype,"spellcheck",void 0),F([b],ss.prototype,"defaultSlottedNodes",void 0),ir(ss,ns);const cs=class extends ss{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}.compose({baseName:"text-area",template:(e,t)=>mt(as||(as=(0,He.A)(['\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"])),(e=>e.readOnly?"readonly":""),(e=>e.resize!==os?"resize-".concat(e.resize):""),(e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"),Rr("defaultSlottedNodes"),(e=>e.autofocus),(e=>e.cols),(e=>e.disabled),(e=>e.form),(e=>e.list),(e=>e.maxlength),(e=>e.minlength),(e=>e.name),(e=>e.placeholder),(e=>e.readOnly),(e=>e.required),(e=>e.rows),(e=>e.spellcheck),(e=>e.value),(e=>e.ariaAtomic),(e=>e.ariaBusy),(e=>e.ariaControls),(e=>e.ariaCurrent),(e=>e.ariaDescribedby),(e=>e.ariaDetails),(e=>e.ariaDisabled),(e=>e.ariaErrormessage),(e=>e.ariaFlowto),(e=>e.ariaHaspopup),(e=>e.ariaHidden),(e=>e.ariaInvalid),(e=>e.ariaKeyshortcuts),(e=>e.ariaLabel),(e=>e.ariaLabelledby),(e=>e.ariaLive),(e=>e.ariaOwns),(e=>e.ariaRelevant),(e=>e.ariaRoledescription),((e,t)=>e.handleTextInput()),(e=>e.handleChange()),Qn("control")),styles:(e,t)=>_t(ls||(ls=(0,He.A)(["\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"])),wt("inline-block"),Xt,zn,Ln,Yt,qt,Nn,tn,nn,Wt,en,Ln,Nn,Ln,Qt,jr,sn,an,Ln,ln,cn,un,Qt,Jt,tn,nn,Pr,Gt,Nn),shadowOptions:{delegatesFocus:!0}});function us(e,t,n){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}var ds,hs;const fs=class extends ts{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}.compose({baseName:"text-field",template:(e,t)=>mt(ds||(ds=(0,He.A)(['\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"])),(e=>e.readOnly?"readonly":""),(e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"),Rr({property:"defaultSlottedNodes",filter:us}),rr(0,t),(e=>e.handleTextInput()),(e=>e.handleChange()),(e=>e.autofocus),(e=>e.disabled),(e=>e.list),(e=>e.maxlength),(e=>e.minlength),(e=>e.pattern),(e=>e.placeholder),(e=>e.readOnly),(e=>e.required),(e=>e.size),(e=>e.spellcheck),(e=>e.value),(e=>e.type),(e=>e.ariaAtomic),(e=>e.ariaBusy),(e=>e.ariaControls),(e=>e.ariaCurrent),(e=>e.ariaDescribedby),(e=>e.ariaDetails),(e=>e.ariaDisabled),(e=>e.ariaErrormessage),(e=>e.ariaFlowto),(e=>e.ariaHaspopup),(e=>e.ariaHidden),(e=>e.ariaInvalid),(e=>e.ariaKeyshortcuts),(e=>e.ariaLabel),(e=>e.ariaLabelledby),(e=>e.ariaLive),(e=>e.ariaOwns),(e=>e.ariaRelevant),(e=>e.ariaRoledescription),Qn("control"),nr(0,t)),styles:(e,t)=>_t(hs||(hs=(0,He.A)(["\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"])),wt("inline-block"),Xt,zn,Ln,Yt,qt,Nn,Zt,en,Wt,Wt,tn,nn,jr,Jt,tn,nn,Wt,Wt,Wt,Wt,Ln,Nn,Ln,Qt,Qt,Pr,Gt,Nn),shadowOptions:{delegatesFocus:!0}}),ps=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),vs=new Map,ms=new Map;let gs=null;const bs=ee.createInterface((e=>e.cachedCallback((e=>(null===gs&&(gs=new _s(null,e)),gs))))),ys=Object.freeze({tagFor:e=>ms.get(e),responsibleFor:e=>e.$$designSystem$$||ee.findResponsibleContainer(e).get(bs),getOrCreate(e){if(!e)return null===gs&&(gs=ee.getOrCreateDOMContainer().get(bs)),gs;const t=e.$$designSystem$$;if(t)return t;const n=ee.getOrCreateDOMContainer(e);if(n.has(bs,!1))return n.get(bs);{const t=new _s(e,n);return n.register(ye.instance(bs,t)),t}}});class _s{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ps.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(){const e=this.container,t=[],n=this.disambiguate,r=this.shadowRootMode,i={elementPrefix:this.prefix,tryDefineElement(i,o,s){const a=function(e,t,n){return"string"==typeof e?{name:e,type:t,callback:n}:e}(i,o,s),{name:l,callback:c,baseClass:u}=a;let{type:d}=a,h=l,f=vs.get(h),p=!0;for(;f;){const e=n(h,d,f);switch(e){case ps.ignoreDuplicate:return;case ps.definitionCallbackOnly:p=!1,f=void 0;break;default:h=e,f=vs.get(h)}}p&&((ms.has(d)||d===De)&&(d=class extends d{}),vs.set(h,d),ms.set(d,h),u&&ms.set(u,h)),t.push(new ws(e,h,d,r,c,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&Ft.registerRoot(this.designTokenRoot));for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];e.registerWithContext(i,...s);for(const e of t)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class ws{constructor(e,t,n,r,i,o){this.container=e,this.name=t,this.type=n,this.shadowRootMode=r,this.callback=i,this.willDefine=o,this.definition=null}definePresentation(e){Te.define(this.name,e,this.container)}defineElement(e){this.definition=new z(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return ys.tagFor(e)}}const{wrap:xs}=function(e,t){let n=[];return{wrap:function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var o,s;r instanceof je&&(t?t.register(r):n.push(r),r=r.type);const a=Le.get(r);if(a){const e=a.get(null!==(o=i.name)&&void 0!==o?o:Me);if(e)return e}class l extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(e){const t=this._element;if(null===t)return;const n=this.props,r=e||Ne,o=Fe(i);for(const e in this._elementProps){const i=n[e],s=o[e];if(void 0===s)t[e]=i;else{const n=r[e];if(i===n)continue;void 0!==n&&t.removeEventListener(s,n),void 0!==i&&t.addEventListener(s,i)}}}componentDidMount(){this._updateElement()}componentDidUpdate(e){this._updateElement(e)}render(){const t=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===t||(this._ref=e=>{null===this._element&&(this._element=e),null!==t&&function(e,t){"function"==typeof e?e(t):e.current=t}(t,e),this._userRef=t});const n={ref:this._ref},o=this._elementProps={},s=function(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Fe(t))));else{const n=new Set(Object.keys(Fe(t))),r=g.getAccessors(e.prototype);if(r.length>0)for(const i of r)Be(e,t,i.name)&&n.add(i.name);else for(const r in e.prototype)!(r in HTMLElement.prototype)&&Be(e,t,r)&&n.add(r);t.keys=n}return t.keys}(r,i),a=this.props;for(const e in a){const t=a[e];s.has(e)?o[e]=t:n["className"===e?"class":e]=t}return e.createElement(ze(r,i),n)}}const c=e.forwardRef(((t,n)=>e.createElement(l,Object.assign(Object.assign({},t),{__forwardedRef:n}),null==t?void 0:t.children)));return Le.has(r)||Le.set(r,new Map),Le.get(r).set(null!==(s=i.name)&&void 0!==s?s:Me,c),c},registry:{register(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((t=>t.register(e,...r))),n=[]}}}}(Ve,ys.getOrCreate(void 0).withPrefix("vscode"));xs(Yn(),{name:"vscode-badge"});const Cs=xs(qr(),{name:"vscode-button"}),ks=xs(Xr(),{name:"vscode-checkbox",events:{onChange:"change"}}),Os=(xs(Ni(),{name:"vscode-data-grid"}),xs(Li(),{name:"vscode-data-grid-cell"}),xs(Mi(),{name:"vscode-data-grid-row"}),xs(Ui(),{name:"vscode-divider"})),Ss=xs(uo(),{name:"vscode-dropdown",events:{onChange:"change"}}),Es=xs(mo(),{name:"vscode-link"}),As=xs(yo(),{name:"vscode-option"}),Ts=(xs(Do(),{name:"vscode-panels",events:{onChange:"change"}}),xs(Io(),{name:"vscode-panel-tab"}),xs(jo(),{name:"vscode-panel-view"}),xs(Fo(),{name:"vscode-progress-ring"}),xs(qo(),{name:"vscode-radio",events:{onChange:"change"}})),Rs=xs(Qo(),{name:"vscode-radio-group",events:{onChange:"change"}}),Ds=(xs(Jo(),{name:"vscode-tag"}),xs(cs(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}}),xs(fs(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}}))},7612:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});const r=console},7710:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0,t.debounce=function(e,t){let 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 s(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];let u;if(i){if(u=function(){o=!0,n=void 0},!o)return clearTimeout(n),void(n=setTimeout(u,t));o=!1,e.apply(r,l)}else s.reset(),u=function(){n=void 0,e.apply(r,l)};n=setTimeout(u,t)}return s.reset=function(){clearTimeout(n),n=void 0,o=!0},s.isPending=function(){return null!=n},s}},7736:(e,t,n)=>{var r=n(3738).default,i=n(9045);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7805:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7873: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(9926),t),i(n(1848),t),i(n(7710),t),i(n(1468),t),i(n(931),t),i(n(3274),t),i(n(5679),t),i(n(9175),t),i(n(5564),t),i(n(1404),t)},7950:(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(2730)},7970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Collection:()=>k,Iterable:()=>kr,List:()=>on,Map:()=>Pt,OrderedMap:()=>yn,OrderedSet:()=>sr,PairSorting:()=>dr,Range:()=>Hn,Record:()=>hr,Repeat:()=>yr,Seq:()=>Y,Set:()=>Mn,Stack:()=>On,default:()=>Or,fromJS:()=>_r,get:()=>it,getIn:()=>Kn,has:()=>rt,hasIn:()=>$n,hash:()=>fe,is:()=>ce,isAssociative:()=>C,isCollection:()=>b,isImmutable:()=>I,isIndexed:()=>x,isKeyed:()=>_,isList:()=>rn,isMap:()=>se,isOrdered:()=>P,isOrderedMap:()=>ae,isOrderedSet:()=>In,isPlainObject:()=>et,isRecord:()=>D,isSeq:()=>T,isSet:()=>Dn,isStack:()=>kn,isValueObject:()=>le,merge:()=>_t,mergeDeep:()=>xt,mergeDeepWith:()=>Ct,mergeWith:()=>wt,remove:()=>st,removeIn:()=>ht,set:()=>at,setIn:()=>ut,update:()=>pt,updateIn:()=>lt,version:()=>Cr});var r="delete",i=32,o=31,s={};function a(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(d)),e.size}function u(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 d(){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 f(e,t){return v(e,t,0)}function p(e,t){return v(e,t,t)}function v(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 g="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[g])}var y="@@__IMMUTABLE_KEYED__@@";function _(e){return Boolean(e&&e[y])}var w="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[w])}function C(e){return _(e)||x(e)}var k=function(e){return b(e)?e:Y(e)},O=function(e){function t(e){return _(e)?e:W(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),S=function(e){function t(e){return x(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k),E=function(e){function t(e){return b(e)&&!C(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(k);k.Keyed=O,k.Indexed=S,k.Set=E;var A="@@__IMMUTABLE_SEQ__@@";function T(e){return Boolean(e&&e[A])}var R="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[R])}function I(e){return b(e)||D(e)}var j="@@__IMMUTABLE_ORDERED__@@";function P(e){return Boolean(e&&e[j])}var N="function"==typeof Symbol&&Symbol.iterator,M="@@iterator",L=N||M,z=function(e){this.next=e};function F(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 B(){return{value:void 0,done:!0}}function V(e){return!!Array.isArray(e)||!!K(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=K(e);return t&&t.call(e)}function K(e){var t=e&&(N&&e[N]||e[M]);if("function"==typeof t)return t}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=0,z.VALUES=1,z.ENTRIES=2,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[L]=function(){return this};var q=Object.prototype.hasOwnProperty;function $(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 Y=function(e){function t(e){return null==e?te():I(e)?e.toSeq():function(e){var t=ie(e);if(t)return function(e){var t=K(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=K(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"==typeof e)return new J(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 z((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return F(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(k),W=function(e){function t(e){return null==e?te().toKeyedSeq():b(e)?_(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Y),G=function(e){function t(e){return null==e?te():b(e)?_(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():re(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}(Y),Q=function(e){function t(e){return(b(e)&&!C(e)?e:G(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}(Y);Y.isSeq=T,Y.Keyed=W,Y.Set=Q,Y.Indexed=G,Y.prototype[A]=!0;var X=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[u(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 z((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return F(e,o,n[o])}))},t}(G),J=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 q.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 s=r[t?i-++o:o++];if(!1===e(n[s],s,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new z((function(){if(o===i)return{value:void 0,done:!0};var s=r[t?i-++o:o++];return F(e,s,n[s])}))},t}(W);J.prototype[j]=!0;var Z,ee=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=H(this._collection),r=0;if(U(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=H(this._collection);if(!U(n))return new z(B);var r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t}(G);function te(){return Z||(Z=new X([]))}function ne(e){var t=ie(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function re(e){var t=ie(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ie(e){return $(e)?new X(e):V(e)?new ee(e):void 0}var oe="@@__IMMUTABLE_MAP__@@";function se(e){return Boolean(e&&e[oe])}function ae(e){return se(e)&&P(e)}function le(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ce(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!!(le(e)&&le(t)&&e.equals(t))}var ue="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 de(e){return e>>>1&1073741824|3221225471&e}var he=Object.prototype.valueOf;function fe(e){if(null==e)return pe(e);if("function"==typeof e.hashCode)return de(e.hashCode(e));var t,n=(t=e).valueOf!==he&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return pe(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 de(t)}(n);case"string":return n.length>ke?function(e){var t=Ee[e];return void 0===t&&(t=ve(e),Se===Oe&&(Se=0,Ee={}),Se++,Ee[e]=t),t}(n):ve(n);case"object":case"function":return function(e){var t;if(_e&&void 0!==(t=ye.get(e)))return t;if(void 0!==(t=e[Ce]))return t;if(!ge){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))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=be(),_e)ye.set(e,t);else{if(void 0!==me&&!1===me(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ge)Object.defineProperty(e,Ce,{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[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(n);case"symbol":return function(e){var t=we[e];return void 0!==t||(t=be(),we[e]=t),t}(n);default:if("function"==typeof n.toString)return ve(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function pe(e){return null===e?1108378658:1108378659}function ve(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return de(t)}var me=Object.isExtensible,ge=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function be(){var e=++xe;return 1073741824&xe&&(xe=0),e}var ye,_e="function"==typeof WeakMap;_e&&(ye=new WeakMap);var we=Object.create(null),xe=0,Ce="__immutablehash__";"function"==typeof Symbol&&(Ce=Symbol(Ce));var ke=16,Oe=255,Se=0,Ee={},Ae=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=Pe(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=je(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}(W);Ae.prototype[j]=!0;var Te=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(1,t),i=0;return t&&c(this),new z((function(){var o=r.next();return o.done?o:F(e,t?n.size-++i:i++,o.value,o)}))},t}(G),Re=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(1,t);return new z((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t}(Q),De=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){Ke(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(1,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ke(r);var i=b(r);return F(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},t}(W);function Ie(e){var t=$e(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=Ye,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(2===t){var r=e.__iterator(t,n);return new z((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(1===t?0:1,n)},t}function je(e,t,n){var r=$e(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,s){return!1!==r(t.call(n,e,i,s),i,o)}),i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(2,i);return new z((function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return F(r,a,t.call(n,s[1],a,e),i)}))},r}function Pe(e,t){var n=this,r=$e(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Ie(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=Ye,r.__iterate=function(n,r){var i=this,o=0;return r&&c(e),e.__iterate((function(e,s){return n(e,t?s:r?i.size-++o:o++,i)}),!r)},r.__iterator=function(r,i){var o=0;i&&c(e);var s=e.__iterator(2,!i);return new z((function(){var e=s.next();if(e.done)return e;var a=e.value;return F(r,t?a[0]:i?n.size-++o:o++,a[1],e)}))},r}function Ne(e,t,n,r){var i=$e(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 s=this,a=0;return e.__iterate((function(e,o,l){if(t.call(n,e,o,l))return a++,i(e,r?o:a-1,s)}),o),a},i.__iteratorUncached=function(i,o){var s=e.__iterator(2,o),a=0;return new z((function(){for(;;){var o=s.next();if(o.done)return o;var l=o.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return F(i,r?c:a++,u,o)}}))},i}function Me(e,t,n,r){var i=e.size;if(h(t,n,i))return e;var o=f(t,i),s=p(n,i);if(o!=o||s!=s)return Me(e.toSeq().cacheResult(),t,n,r);var a,l=s-o;l==l&&(a=l<0?0:l);var c=$e(e);return c.size=0===a?a:e.size&&a||void 0,!r&&T(e)&&a>=0&&(c.get=function(t,n){return(t=u(this,t))>=0&&t<a?e.get(t+o,n):n}),c.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=s++<o))return c++,!1!==t(e,r?n:c-1,i)&&c!==a})),c},c.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new z(B);var i=e.__iterator(t,n),s=0,l=0;return new z((function(){for(;s++<o;)i.next();if(++l>a)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:F(t,l-1,0===t?void 0:e.value[1],e)}))},c}function Le(e,t,n,r){var i=$e(e);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,l=0;return e.__iterate((function(e,o,c){if(!a||!(a=t.call(n,e,o,c)))return l++,i(e,r?o:l-1,s)})),l},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=e.__iterator(2,o),l=!0,c=0;return new z((function(){var e,o,u;do{if((e=a.next()).done)return r||1===i?e:F(i,c++,0===i?void 0:e.value[1],e);var d=e.value;o=d[0],u=d[1],l&&(l=t.call(n,u,o,s))}while(l);return 2===i?e:F(i,o,u,e)}))},i}function ze(e,t,n){var r=$e(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return function e(l,c){l.__iterate((function(o,l){return(!t||c<t)&&b(o)?e(o,c+1):(s++,!1===i(o,n?l:s-1,r)&&(a=!0)),!a}),o)}(e,0),s},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(r,i),s=[],a=0;return new z((function(){for(;o;){var e=o.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(s.length<t)||!b(l))return n?e:F(r,a++,l,e);s.push(o),o=l.__iterator(r,i)}else o=s.pop()}return{value:void 0,done:!0}}))},r}function Fe(e,t,n){t||(t=We);var r=_(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?W(o):x(e)?G(o):Q(o)}function Be(e,t,n){if(t||(t=We),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Ve(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Ve(t,e,n)?n:e}))}function Ve(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Ue(e,t,n,r){var i=$e(e),o=new X(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(1,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=k(e),H(i?e.reverse():e)})),s=0,a=!1;return new z((function(){var n;return a||(n=o.map((function(e){return e.next()})),a=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),a?{value:void 0,done:!0}:F(e,s++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function He(e,t){return e===t?e:T(e)?t:e.constructor(t)}function Ke(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qe(e){return _(e)?O:x(e)?S:E}function $e(e){return Object.create((_(e)?W:x(e)?G:Q).prototype)}function Ye(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function We(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 Ge(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 Qe(e,t){if(!e)throw new Error(t)}function Xe(e){Qe(e!==1/0,"Cannot perform this action with an infinite size.")}function Je(e){if($(e)&&"string"!=typeof e)return e;if(P(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Te.prototype.cacheResult=Ae.prototype.cacheResult=Re.prototype.cacheResult=De.prototype.cacheResult=Ye;var Ze=Object.prototype.toString;function et(e){if(!e||"object"!=typeof e||"[object Object]"!==Ze.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 tt(e){return"object"==typeof e&&(I(e)||Array.isArray(e)||et(e))}function nt(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function rt(e,t){return I(e)?e.has(t):tt(e)&&q.call(e,t)}function it(e,t,n){return I(e)?e.get(t,n):rt(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function ot(e){if(Array.isArray(e))return Ge(e);var t={};for(var n in e)q.call(e,n)&&(t[n]=e[n]);return t}function st(e,t){if(!tt(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(!q.call(e,t))return e;var n=ot(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function at(e,t,n){if(!tt(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(q.call(e,t)&&n===e[t])return e;var r=ot(e);return r[t]=n,r}function lt(e,t,n,r){r||(r=n,n=void 0);var i=ct(I(e),e,Je(t),0,n,r);return i===s?n:i}function ct(e,t,n,r,i,o){var a=t===s;if(r===n.length){var l=a?i:t,c=o(l);return c===l?t:c}if(!a&&!tt(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(nt)+"]: "+t);var u=n[r],d=a?s:it(t,u,s),h=ct(d===s?e:I(d),d,n,r+1,i,o);return h===d?t:h===s?st(t,u):at(a?e?$t():{}:t,u,h)}function ut(e,t,n){return lt(e,t,s,(function(){return n}))}function dt(e,t){return ut(this,e,t)}function ht(e,t){return lt(e,t,(function(){return s}))}function ft(e){return ht(this,e)}function pt(e,t,n,r){return lt(e,[t],n,r)}function vt(e,t,n){return 1===arguments.length?e(this):pt(this,e,t,n)}function mt(e,t,n){return lt(this,e,t,n)}function gt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return yt(this,e)}function bt(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 yt(this,t,e)}function yt(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=O(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){pt(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 _t(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ot(e,t)}function wt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ot(t,n,e)}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(e,t)}function Ct(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function kt(e,t,n){return Ot(e,t,function(e){return function t(n,r,i){return tt(n)&&tt(r)&&function(e,t){var n=Y(e),r=Y(t);return x(n)===x(r)&&_(n)===_(r)}(n,r)?Ot(n,[r],t):e?e(n,r,i):r}}(n))}function Ot(e,t,n){if(!tt(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?S:O,s=r?function(t){i===e&&(i=ot(i)),i.push(t)}:function(t,r){var o=q.call(i,r),s=o&&n?n(i[r],t,r):t;o&&s===i[r]||(i===e&&(i=ot(i)),i[r]=s)},a=0;a<t.length;a++)o(t[a]).forEach(s);return i}function St(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return kt(this,e)}function Et(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(this,t,e)}function At(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,$t(),(function(e){return Ot(e,t)}))}function Tt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,$t(),(function(e){return kt(e,t)}))}function Rt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Dt(){return this.__ownerID?this:this.__ensureOwner(new l)}function It(){return this.__ensureOwner()}function jt(){return this.__altered}var Pt=function(e){function t(t){return null==t?$t():se(t)&&!P(t)?t:$t().withMutations((function(n){var r=e(t);Xe(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 $t().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 Yt(this,e,t)},t.prototype.remove=function(e){return Yt(this,e,s)},t.prototype.deleteAll=function(e){var t=k(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):$t()},t.prototype.sort=function(e){return yn(Fe(this,e))},t.prototype.sortBy=function(e,t){return yn(Fe(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 Ut(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?qt(this.size,this._root,e,this.__hash):0===this.size?$t():(this.__ownerID=e,this.__altered=!1,this)},t}(O);Pt.isMap=se;var Nt=Pt.prototype;Nt[oe]=!0,Nt[r]=Nt.remove,Nt.removeAll=Nt.deleteAll,Nt.setIn=dt,Nt.removeIn=Nt.deleteIn=ft,Nt.update=vt,Nt.updateIn=mt,Nt.merge=Nt.concat=gt,Nt.mergeWith=bt,Nt.mergeDeep=St,Nt.mergeDeepWith=Et,Nt.mergeIn=At,Nt.mergeDeepIn=Tt,Nt.withMutations=Rt,Nt.wasAltered=jt,Nt.asImmutable=It,Nt["@@transducer/init"]=Nt.asMutable=Dt,Nt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Nt["@@transducer/result"]=function(e){return e.asImmutable()};var Mt=function(e,t){this.ownerID=e,this.entries=t};Mt.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ce(n,i[o][0]))return i[o][1];return r},Mt.prototype.update=function(e,t,n,r,i,o,c){for(var u=i===s,d=this.entries,h=0,f=d.length;h<f&&!ce(r,d[h][0]);h++);var p=h<f;if(p?d[h][1]===i:u)return this;if(a(c),(u||!p)&&a(o),!u||1!==d.length){if(!p&&!u&&d.length>=Zt)return function(e,t,n,r){e||(e=new l);for(var i=new Bt(e,fe(n),[n,r]),o=0;o<t.length;o++){var s=t[o];i=i.update(e,0,void 0,s[0],s[1])}return i}(e,d,r,i);var v=e&&e===this.ownerID,m=v?d:Ge(d);return p?u?h===f-1?m.pop():m[h]=m.pop():m[h]=[r,i]:m.push([r,i]),v?(this.entries=m,this):new Mt(e,m)}};var Lt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Lt.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var i=1<<((0===e?t:t>>>e)&o),s=this.bitmap;return 0===(s&i)?r:this.nodes[Xt(s&i-1)].get(e+5,t,n,r)},Lt.prototype.update=function(e,t,n,r,a,l,c){void 0===n&&(n=fe(r));var u=(0===t?n:n>>>t)&o,d=1<<u,h=this.bitmap,f=0!==(h&d);if(!f&&a===s)return this;var p=Xt(h&d-1),v=this.nodes,m=f?v[p]:void 0,g=Wt(m,e,t+5,n,r,a,l,c);if(g===m)return this;if(!f&&g&&v.length>=en)return function(e,t,n,r,o){for(var s=0,a=new Array(i),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[s++]:void 0;return a[r]=o,new zt(e,s+1,a)}(e,v,h,u,g);if(f&&!g&&2===v.length&&Gt(v[1^p]))return v[1^p];if(f&&g&&1===v.length&&Gt(g))return g;var b=e&&e===this.ownerID,y=f?g?h:h^d:h|d,_=f?g?Jt(v,p,g,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,s=0;s<r;s++)s===t&&(o=1),i[s]=e[s+o];return i}(v,p,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),s=0,a=0;a<i;a++)a===t?(o[a]=n,s=-1):o[a]=e[a+s];return o}(v,p,g,b);return b?(this.bitmap=y,this.nodes=_,this):new Lt(e,y,_)};var zt=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};zt.prototype.get=function(e,t,n,r){void 0===t&&(t=fe(n));var i=(0===e?t:t>>>e)&o,s=this.nodes[i];return s?s.get(e+5,t,n,r):r},zt.prototype.update=function(e,t,n,r,i,a,l){void 0===n&&(n=fe(r));var c=(0===t?n:n>>>t)&o,u=i===s,d=this.nodes,h=d[c];if(u&&!h)return this;var f=Wt(h,e,t+5,n,r,i,a,l);if(f===h)return this;var p=this.count;if(h){if(!f&&--p<tn)return function(e,t,n,r){for(var i=0,o=0,s=new Array(n),a=0,l=1,c=t.length;a<c;a++,l<<=1){var u=t[a];void 0!==u&&a!==r&&(i|=l,s[o++]=u)}return new Lt(e,i,s)}(e,d,p,c)}else p++;var v=e&&e===this.ownerID,m=Jt(d,c,f,v);return v?(this.count=p,this.nodes=m,this):new zt(e,p,m)};var Ft=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Ft.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ce(n,i[o][0]))return i[o][1];return r},Ft.prototype.update=function(e,t,n,r,i,o,l){void 0===n&&(n=fe(r));var c=i===s;if(n!==this.keyHash)return c?this:(a(l),a(o),Qt(this,e,t,n,[r,i]));for(var u=this.entries,d=0,h=u.length;d<h&&!ce(r,u[d][0]);d++);var f=d<h;if(f?u[d][1]===i:c)return this;if(a(l),(c||!f)&&a(o),c&&2===h)return new Bt(e,this.keyHash,u[1^d]);var p=e&&e===this.ownerID,v=p?u:Ge(u);return f?c?d===h-1?v.pop():v[d]=v.pop():v[d]=[r,i]:v.push([r,i]),p?(this.entries=v,this):new Ft(e,this.keyHash,v)};var Bt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Bt.prototype.get=function(e,t,n,r){return ce(n,this.entry[0])?this.entry[1]:r},Bt.prototype.update=function(e,t,n,r,i,o,l){var c=i===s,u=ce(r,this.entry[0]);return(u?i===this.entry[1]:c)?this:(a(l),c?void a(o):u?e&&e===this.ownerID?(this.entry[1]=i,this):new Bt(e,this.keyHash,[r,i]):(a(o),Qt(this,e,t,fe(r),[r,i])))},Mt.prototype.iterate=Ft.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},Lt.prototype.iterate=zt.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}},Bt.prototype.iterate=function(e,t){return e(this.entry)};var Vt,Ut=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Kt(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 Ht(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return Ht(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 Ht(e,o.entry);t=this._stack=Kt(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(z);function Ht(e,t){return F(e,t[0],t[1])}function Kt(e,t){return{node:e,index:0,__prev:t}}function qt(e,t,n,r){var i=Object.create(Nt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function $t(){return Vt||(Vt=qt(0))}function Yt(e,t,n){var r,i;if(e._root){var o={value:!1},a={value:!1};if(r=Wt(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 Mt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?qt(i,r):$t()}function Wt(e,t,n,r,i,o,l,c){return e?e.update(t,n,r,i,o,l,c):o===s?e:(a(c),a(l),new Bt(t,r,[i,o]))}function Gt(e){return e.constructor===Bt||e.constructor===Ft}function Qt(e,t,n,r,i){if(e.keyHash===r)return new Ft(t,r,[e.entry,i]);var s,a=(0===n?e.keyHash:e.keyHash>>>n)&o,l=(0===n?r:r>>>n)&o,c=a===l?[Qt(e,t,n+5,r,i)]:(s=new Bt(t,r,i),a<l?[e,s]:[s,e]);return new Lt(t,1<<a|1<<l,c)}function Xt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Jt(e,t,n,r){var i=r?e:Ge(e);return i[t]=n,i}var Zt=8,en=16,tn=8,nn="@@__IMMUTABLE_LIST__@@";function rn(e){return Boolean(e&&e[nn])}var on=function(e){function t(t){var n=hn();if(null==t)return n;if(rn(t))return t;var r=e(t),o=r.size;return 0===o?n:(Xe(o),o>0&&o<i?dn(0,o,5,null,new an(r.toArray())):n.withMutations((function(e){e.setSize(o),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=u(this,e))>=0&&e<this.size){var n=vn(this,e+=this._origin);return n&&n.array[e&o]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=u(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?mn(e,t).set(0,n):mn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};return t>=gn(e._capacity)?r=fn(r,e.__ownerID,0,t,n,o):i=fn(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):dn(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=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):hn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){mn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return mn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){mn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return mn(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&&V(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 mn(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:mn(this,f(e,n),p(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=un(this,t);return new z((function(){var i=r();return i===cn?{value:void 0,done:!0}:F(e,t?--n:n++,i)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=un(this,t);(n=i())!==cn&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?hn():(this.__ownerID=e,this.__altered=!1,this)},t}(S);on.isList=rn;var sn=on.prototype;sn[nn]=!0,sn[r]=sn.remove,sn.merge=sn.concat,sn.setIn=dt,sn.deleteIn=sn.removeIn=ft,sn.update=vt,sn.updateIn=mt,sn.mergeIn=At,sn.mergeDeepIn=Tt,sn.withMutations=Rt,sn.wasAltered=jt,sn.asImmutable=It,sn["@@transducer/init"]=sn.asMutable=Dt,sn["@@transducer/step"]=function(e,t){return e.push(t)},sn["@@transducer/result"]=function(e){return e.asImmutable()};var an=function(e,t){this.array=e,this.ownerID=t};an.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&o;if(r>=this.array.length)return new an([],e);var i,s=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&s)return this}if(s&&!i)return this;var l=pn(this,e);if(!s)for(var c=0;c<r;c++)l.array[c]=void 0;return i&&(l.array[r]=i),l},an.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&o;if(i>=this.array.length)return this;if(t>0){var s=this.array[i];if((r=s&&s.removeAfter(e,t-5,n))===s&&i===this.array.length-1)return this}var a=pn(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var ln,cn={};function un(e,t){var n=e._origin,r=e._capacity,o=gn(r),s=e._tail;return function e(a,l,c){return 0===l?function(e,a){var l=a===o?s&&s.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>i&&(u=i),function(){if(c===u)return cn;var e=t?--u:c++;return l&&l[e]}}(a,c):function(o,s,a){var l,c=o&&o.array,u=a>n?0:n-a>>s,d=1+(r-a>>s);return d>i&&(d=i),function(){for(;;){if(l){var n=l();if(n!==cn)return n;l=null}if(u===d)return cn;var r=t?--d:u++;l=e(c&&c[r],s-5,a+(r<<s))}}}(a,l,c)}(e._root,e._level,0)}function dn(e,t,n,r,i,o,s){var a=Object.create(sn);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function hn(){return ln||(ln=dn(0,0,5))}function fn(e,t,n,r,i,s){var l,c=r>>>n&o,u=e&&c<e.array.length;if(!u&&void 0===i)return e;if(n>0){var d=e&&e.array[c],h=fn(d,t,n-5,r,i,s);return h===d?e:((l=pn(e,t)).array[c]=h,l)}return u&&e.array[c]===i?e:(s&&a(s),l=pn(e,t),void 0===i&&c===l.array.length-1?l.array.pop():l.array[c]=i,l)}function pn(e,t){return t&&e&&t===e.ownerID?e:new an(e?e.array.slice():[],t)}function vn(e,t){if(t>=gn(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&o],r-=5;return n}}function mn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,i=e._origin,s=e._capacity,a=i+t,c=void 0===n?s:n<0?s+n:i+n;if(a===i&&c===s)return e;if(a>=c)return e.clear();for(var u=e._level,d=e._root,h=0;a+h<0;)d=new an(d&&d.array.length?[void 0,d]:[],r),h+=1<<(u+=5);h&&(a+=h,i+=h,c+=h,s+=h);for(var f=gn(s),p=gn(c);p>=1<<u+5;)d=new an(d&&d.array.length?[d]:[],r),u+=5;var v=e._tail,m=p<f?vn(e,c-1):p>f?new an([],r):v;if(v&&p>f&&a<s&&v.array.length){for(var g=d=pn(d,r),b=u;b>5;b-=5){var y=f>>>b&o;g=g.array[y]=pn(g.array[y],r)}g.array[f>>>5&o]=v}if(c<s&&(m=m&&m.removeAfter(r,0,c)),a>=p)a-=p,c-=p,u=5,d=null,m=m&&m.removeBefore(r,0,a);else if(a>i||p<f){for(h=0;d;){var _=a>>>u&o;if(_!==p>>>u&o)break;_&&(h+=(1<<u)*_),u-=5,d=d.array[_]}d&&a>i&&(d=d.removeBefore(r,u,a-h)),d&&p<f&&(d=d.removeAfter(r,u,p-h)),h&&(a-=h,c-=h)}return e.__ownerID?(e.size=c-a,e._origin=a,e._capacity=c,e._level=u,e._root=d,e._tail=m,e.__hash=void 0,e.__altered=!0,e):dn(a,c,u,d,m)}function gn(e){return e<i?0:e-1>>>5<<5}var bn,yn=function(e){function t(e){return null==e?wn():ae(e)?e:wn().withMutations((function(t){var n=O(e);Xe(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):wn()},t.prototype.set=function(e,t){return xn(this,e,t)},t.prototype.remove=function(e){return xn(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?_n(t,n,e,this.__hash):0===this.size?wn():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Pt);function _n(e,t,n,r){var i=Object.create(yn.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 wn(){return bn||(bn=_n($t(),hn()))}function xn(e,t,n){var r,o,a=e._map,l=e._list,c=a.get(t),u=void 0!==c;if(n===s){if(!u)return e;l.size>=i&&l.size>=2*a.size?(r=(o=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=a,o=l.set(c,[t,n])}else r=a.set(t,l.size),o=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e.__altered=!0,e):_n(r,o)}yn.isOrderedMap=ae,yn.prototype[j]=!0,yn.prototype[r]=yn.prototype.remove;var Cn="@@__IMMUTABLE_STACK__@@";function kn(e){return Boolean(e&&e[Cn])}var On=function(e){function t(e){return null==e?Tn():kn(e)?e:Tn().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=u(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):An(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&kn(t))return t;Xe(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):An(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):Tn()},t.prototype.slice=function(t,n){if(h(t,n,this.size))return this;var r=f(t,this.size);if(p(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):An(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?An(this.size,this._head,e,this.__hash):0===this.size?Tn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new X(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 X(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new z((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return{value:void 0,done:!0}}))},t}(S);On.isStack=kn;var Sn,En=On.prototype;function An(e,t,n,r){var i=Object.create(En);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Tn(){return Sn||(Sn=An(0))}En[Cn]=!0,En.shift=En.pop,En.unshift=En.push,En.unshiftAll=En.pushAll,En.withMutations=Rt,En.wasAltered=jt,En.asImmutable=It,En["@@transducer/init"]=En.asMutable=Dt,En["@@transducer/step"]=function(e,t){return e.unshift(t)},En["@@transducer/result"]=function(e){return e.asImmutable()};var Rn="@@__IMMUTABLE_SET__@@";function Dn(e){return Boolean(e&&e[Rn])}function In(e){return Dn(e)&&P(e)}function jn(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||_(e)!==_(t)||x(e)!==x(t)||P(e)!==P(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!C(e);if(P(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&ce(i[1],e)&&(n||ce(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,l=t.__iterate((function(t,r){if(n?!e.has(t):i?!ce(t,e.get(r,s)):!ce(e.get(r,s),t))return a=!1,!1}));return a&&e.size===l}function Pn(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 Nn(e){if(!e||"object"!=typeof e)return e;if(!b(e)){if(!tt(e))return e;e=Y(e)}if(_(e)){var t={};return e.__iterate((function(e,n){t[n]=Nn(e)})),t}var n=[];return e.__iterate((function(e){n.push(Nn(e))})),n}var Mn=function(e){function t(t){return null==t?Vn():Dn(t)&&!P(t)?t:Vn().withMutations((function(n){var r=e(t);Xe(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(O(e).keySeq())},t.intersect=function(e){return(e=k(e).toArray()).length?zn.intersect.apply(t(e.pop()),e):Vn()},t.union=function(e){return(e=k(e).toArray()).length?zn.union.apply(t(e.pop()),e):Vn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Fn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Fn(this,this._map.remove(e))},t.prototype.clear=function(){return Fn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=Fn(this,this._map.mapEntries((function(i){var o=i[1],s=e.call(t,o,o,n);return s!==o&&(r=!0),[s,s]}),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 sr(Fe(this,e))},t.prototype.sortBy=function(e,t){return sr(Fe(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}(E);Mn.isSet=Dn;var Ln,zn=Mn.prototype;function Fn(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 Bn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Ln||(Ln=Bn($t()))}zn[Rn]=!0,zn[r]=zn.remove,zn.merge=zn.concat=zn.union,zn.withMutations=Rt,zn.asImmutable=It,zn["@@transducer/init"]=zn.asMutable=Dt,zn["@@transducer/step"]=function(e,t){return e.add(t)},zn["@@transducer/result"]=function(e){return e.asImmutable()},zn.__empty=Vn,zn.__make=Bn;var Un,Hn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(Qe(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(Un)return Un;Un=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+u(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=f(e,this.size),(n=p(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 z((function(){if(o===n)return{value:void 0,done:!0};var s=i;return i+=t?-r:r,F(e,t?n-++o:o++,s)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:jn(this,e)},t}(G);function Kn(e,t,n){for(var r=Je(t),i=0;i!==r.length;)if((e=it(e,r[i++],s))===s)return n;return e}function qn(e,t){return Kn(this,e,t)}function $n(e,t){return Kn(e,t,s)!==s}function Yn(){Xe(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}k.isIterable=b,k.isKeyed=_,k.isIndexed=x,k.isAssociative=C,k.isOrdered=P,k.Iterator=z,Pn(k,{toArray:function(){Xe(this.size);var e=new Array(this.size||0),t=_(this),n=0;return this.__iterate((function(r,i){e[n++]=t?[i,r]:r})),e},toIndexedSeq:function(){return new Te(this)},toJS:function(){return Nn(this)},toKeyedSeq:function(){return new Ae(this,!0)},toMap:function(){return Pt(this.toKeyedSeq())},toObject:Yn,toOrderedMap:function(){return yn(this.toKeyedSeq())},toOrderedSet:function(){return sr(_(this)?this.valueSeq():this)},toSet:function(){return Mn(_(this)?this.valueSeq():this)},toSetSeq:function(){return new Re(this)},toSeq:function(){return x(this)?this.toIndexedSeq():_(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return On(_(this)?this.valueSeq():this)},toList:function(){return on(_(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 He(this,function(e,t){var n=_(e),r=[e].concat(t).map((function(e){return b(e)?n&&(e=O(e)):e=n?ne(e):re(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&&_(i)||x(e)&&x(i))return i}var o=new X(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 ce(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Xe(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 He(this,Ne(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=_(e),i=[[],[]];e.__iterate((function(o,s){i[t.call(n,o,s,e)?1:0].push(r?[s,o]:o)}));var o=qe(e);return i.map((function(t){return He(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 Xe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Xe(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(0)},map:function(e,t){return He(this,je(this,e,t))},reduce:function(e,t,n){return Jn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Jn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return He(this,Pe(this,!0))},slice:function(e,t){return He(this,Me(this,e,t,!0))},some:function(e,t){Xe(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 He(this,Fe(this,e))},values:function(){return this.__iterator(1)},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=Pt().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 jn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new X(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(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(d,null,e)},flatMap:function(e,t){return He(this,function(e,t,n){var r=qe(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 He(this,ze(this,e,!0))},fromEntrySeq:function(){return new De(this)},get:function(e,t){return this.find((function(t,n){return ce(n,e)}),void 0,t)},getIn:qn,groupBy:function(e,t){return function(e,t,n){var r=_(e),i=(P(e)?yn():Pt()).asMutable();e.__iterate((function(o,s){i.update(t.call(n,o,s,e),(function(e){return(e=e||[]).push(r?[s,o]:o),e}))}));var o=qe(e);return i.map((function(t){return He(e,o(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,s)!==s},hasIn:function(e){return $n(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:k(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:k(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ce(t,e)}))},keySeq:function(){return this.toSeq().map(Zn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Be(this,e)},maxBy:function(e,t){return Be(this,t,e)},min:function(e){return Be(this,e?nr(e):ir)},minBy:function(e,t){return Be(this,t?nr(t):ir,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 He(this,Le(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return He(this,Fe(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 He(this,function(e,t,n){var r=$e(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var s=0;return e.__iterate((function(e,i,a){return t.call(n,e,i,a)&&++s&&r(e,i,o)})),s},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(2,i),a=!0;return new z((function(){if(!a)return{value:void 0,done:!0};var e=s.next();if(e.done)return e;var i=e.value,l=i[0],c=i[1];return t.call(n,c,l,o)?2===r?e:F(r,l,c,e):(a=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(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=P(e),n=_(e),r=t?1:0;return function(e,t){return t=ue(t,3432918353),t=ue(t<<15|t>>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=ue((t=(t+3864292196|0)^e)^t>>>16,2246822507),de((t=ue(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+or(fe(e),fe(t))|0}:function(e,t){r=r+or(fe(e),fe(t))|0}:t?function(e){r=31*r+fe(e)|0}:function(e){r=r+fe(e)|0}),r)}(this))}});var Wn=k.prototype;Wn[g]=!0,Wn[L]=Wn.values,Wn.toJSON=Wn.toArray,Wn.__toStringMapper=nt,Wn.inspect=Wn.toSource=function(){return this.toString()},Wn.chain=Wn.flatMap,Wn.contains=Wn.includes,Pn(O,{flip:function(){return He(this,Ie(this))},mapEntries:function(e,t){var n=this,r=0;return He(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return He(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Gn=O.prototype;Gn[y]=!0,Gn[L]=Wn.entries,Gn.toJSON=Yn,Gn.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Pn(S,{toKeyedSeq:function(){return new Ae(this,!1)},filter:function(e,t){return He(this,Ne(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 He(this,Pe(this,!1))},slice:function(e,t){return He(this,Me(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=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return He(this,1===n?r:r.concat(Ge(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 He(this,ze(this,e,!1))},get:function(e,t){return(e=u(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=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return He(this,function(e,t){var n=$e(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(1,r),s=0;return new z((function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?F(n,s++,t):F(n,s++,i.value,i)}))},n}(this,e))},interleave:function(){var e=[this].concat(Ge(arguments)),t=Ue(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),He(this,n)},keySeq:function(){return Hn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return He(this,Le(this,e,t,!1))},zip:function(){return He(this,Ue(this,rr,[this].concat(Ge(arguments))))},zipAll:function(){return He(this,Ue(this,rr,[this].concat(Ge(arguments)),!0))},zipWith:function(e){var t=Ge(arguments);return t[0]=this,He(this,Ue(this,e,t))}});var Qn=S.prototype;Qn[w]=!0,Qn[j]=!0,Pn(E,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Xn=E.prototype;function Jn(e,t,n,r,i,o){return Xe(e.size),e.__iterate((function(e,o,s){i?(i=!1,n=e):n=t.call(r,n,e,o,s)}),o),n}function Zn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(){return Ge(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function or(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Xn.has=Wn.includes,Xn.contains=Xn.includes,Xn.keys=Xn.values,Pn(W,Gn),Pn(G,Qn),Pn(Q,Xn);var sr=function(e){function t(e){return null==e?ur():In(e)?e:ur().withMutations((function(t){var n=E(e);Xe(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(O(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Mn);sr.isOrderedSet=In;var ar,lr=sr.prototype;function cr(e,t){var n=Object.create(lr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ur(){return ar||(ar=cr(wn()))}lr[j]=!0,lr.zip=Qn.zip,lr.zipWith=Qn.zipWith,lr.zipAll=Qn.zipAll,lr.__empty=ur,lr.__make=cr;var dr={LeftThenRight:-1,RightThenLeft:1},hr=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 s=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(e),l=i._indices={};i._name=t,i._keys=a,i._defaultValues=e;for(var c=0;c<a.length;c++){var u=a[c];l[u]=c,i[u]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+vr(this)+' with property "'+u+'" since that property name is part of the Record API.'):gr(i,u)}}return this.__ownerID=void 0,this._values=on().withMutations((function(e){e.setSize(s._keys.length),O(o).forEach((function(t,n){e.set(s._indices[n],t===s._defaultValues[n]?void 0:t)}))})),this},i=r.prototype=Object.create(fr);return i.constructor=r,t&&(r.displayName=t),r};hr.prototype.toString=function(){for(var e,t=vr(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+nt(this.get(e));return t+" }"},hr.prototype.equals=function(e){return this===e||D(e)&&mr(this).equals(mr(e))},hr.prototype.hashCode=function(){return mr(this).hashCode()},hr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},hr.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},hr.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 pr(this,n)}return this},hr.prototype.remove=function(e){return this.set(e)},hr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:pr(this,e)},hr.prototype.wasAltered=function(){return this._values.wasAltered()},hr.prototype.toSeq=function(){return mr(this)},hr.prototype.toJS=function(){return Nn(this)},hr.prototype.entries=function(){return this.__iterator(2)},hr.prototype.__iterator=function(e,t){return mr(this).__iterator(e,t)},hr.prototype.__iterate=function(e,t){return mr(this).__iterate(e,t)},hr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?pr(this,t,e):(this.__ownerID=e,this._values=t,this)},hr.isRecord=D,hr.getDescriptiveName=vr;var fr=hr.prototype;function pr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function vr(e){return e.constructor.displayName||e.constructor.name||"Record"}function mr(e){return ne(e._keys.map((function(t){return[t,e.get(t)]})))}function gr(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){Qe(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}fr[R]=!0,fr[r]=fr.remove,fr.deleteIn=fr.removeIn=ft,fr.getIn=qn,fr.hasIn=Wn.hasIn,fr.merge=gt,fr.mergeWith=bt,fr.mergeIn=At,fr.mergeDeep=St,fr.mergeDeepWith=Et,fr.mergeDeepIn=Tt,fr.setIn=dt,fr.update=vt,fr.updateIn=mt,fr.withMutations=Rt,fr.asMutable=Dt,fr.asImmutable=It,fr[L]=fr.entries,fr.toJSON=fr.toObject=Wn.toObject,fr.inspect=fr.toSource=function(){return this.toString()};var br,yr=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(br)return br;br=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 ce(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return h(e,n,r)?this:new t(this._value,p(n,r)-f(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return ce(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return ce(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 z((function(){return i===r?{value:void 0,done:!0}:F(e,t?r-++i:i++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?ce(this._value,e._value):jn(e)},t}(G);function _r(e,t){return wr([],t||xr,e,"",t&&t.length>2?[]:void 0,{"":e})}function wr(e,t,n,r,i,o){if("string"!=typeof n&&!I(n)&&($(n)||V(n)||et(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&""!==r&&i.push(r);var s=t.call(o,r,Y(n).map((function(r,o){return wr(e,t,r,o,i,n)})),i&&i.slice());return e.pop(),i&&i.pop(),s}return n}function xr(e,t){return x(t)?t.toList():_(t)?t.toMap():t.toSet()}var Cr="4.3.1",kr=k;const Or={version:Cr,Collection:k,Iterable:k,Seq:Y,Map:Pt,OrderedMap:yn,List:on,Stack:On,Set:Mn,OrderedSet:sr,PairSorting:dr,Record:hr,Range:Hn,Repeat:yr,is:ce,fromJS:_r,hash:fe,isImmutable:I,isCollection:b,isKeyed:_,isIndexed:x,isAssociative:C,isOrdered:P,isValueObject:le,isPlainObject:et,isSeq:T,isList:rn,isMap:se,isOrderedMap:ae,isStack:kn,isSet:Dn,isOrderedSet:In,isRecord:D,get:it,getIn:Kn,has:rt,hasIn:$n,merge:_t,mergeDeep:xt,mergeWith:wt,mergeDeepWith:Ct,remove:st,removeIn:ht,set:at,setIn:ut,update:pt,updateIn:lt}},8219:()=>{},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},9045:(e,t,n)=>{var r=n(3738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},9175: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(4400),t),i(n(7805),t),i(n(2422),t),i(n(9690),t),i(n(5180),t),i(n(6987),t)},9192:(e,t,n)=>{"use strict";function r(e){let{genKey:t,genValue:n}=e;const r={};return e=>{const i=t(e);if(i in r){const e=r[i];if(void 0!==e)return e}const o=n(e);return r[i]=o,o}}n.d(t,{T:()=>r})},9235:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(4812);function i(e){const t=new o(e.default,e.setter);if(e.effects)for(const n of e.effects)n({setSelf:t.set});return t}class o{constructor(e,t){this.setter=t,this.value=e,(0,r.Gn)(this,{value:r.sH.ref,set:r.XI.bound})}get(){return this.value}set(e){this.value="function"==typeof e?e(this.get()):e,this.setter&&this.setter(this.value)}}},9451:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7873),i=n(164);const o=new class{constructor(){this.listenersByType=new Map,this.incomingListener=i.O.onMessage((e=>{const t=(0,r.deserializeFromString)(e.data),{type:n}=t,i=this.listenersByType.get(n);i&&i.forEach((e=>e(t)))})),this.cwdChangeHandlers=[]}dispose(){this.incomingListener.dispose()}onMessageOfType(e,t){let n=this.listenersByType.get(e);return null==n&&(n=new Set,this.listenersByType.set(e,n)),null==n||n.add(t),{dispose:()=>{const n=this.listenersByType.get(e);n&&n.delete(t)}}}nextMessageMatching(e,t){const n=(0,r.defer)();let i=this.onMessageOfType(e,(e=>{t(e)&&(null==i||i.dispose(),i=null,n.resolve(e))}));return n.promise}postMessage(e){i.O.postMessage((0,r.serializeToString)(e))}postMessageWithPayload(e,t){i.O.postMessage((0,r.serializeToString)(Object.assign(Object.assign({},e),{hasBinaryPayload:!0}))),i.O.postMessage(t)}onConnectOrReconnect(e){let t,n=!0;const r=i.O.onChangeStatus((r=>{"reconnecting"===r.type?n=!0:"open"===r.type&&(n&&(t=e()),n=!1)}));return()=>{r.dispose(),"function"==typeof t&&t()}}onCwdChanged(e){return this.cwdChangeHandlers.push(e),()=>{this.cwdChangeHandlers.splice(this.cwdChangeHandlers.indexOf(e),1)}}cwdChanged(){this.cwdChangeHandlers.forEach((e=>e()))}onSetup(e){const t=this.onConnectOrReconnect(e),n=this.onCwdChanged(e);return()=>{t(),n()}}};window.clientToServerAPI=o},9690:(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={}))},9926: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(1124),t),i(n(7546),t),i(n(5499),t)}},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}return n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{447:"f60d5f2f",603:"0c99f909"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+".b5b455ea.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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="GraphiteInteractive:";n.l=(r,i,o,s)=>{if(e[r])e[r].push(i);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+o),a.src=r),e[r]=[i];var h=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===e||i===t))return s}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var s;if((i=(s=o[r]).getAttribute("data-href"))===e||i===t)return s}})(i,o))return t();((e,t,n,r,i)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=n=>{if(o.onerror=o.onload=null,"load"===n.type)r();else{var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,o.parentNode&&o.parentNode.removeChild(o),i(l)}},o.href=t,document.head.appendChild(o)})(e,o,0,t,r)})),t={792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{603:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={792:0};n.f.j=(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(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var s=n.p+n.u(t),a=new Error;n.l(s,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,s=r[0],a=r[1],l=r[2],c=0;if(s.some((t=>0!==e[t]))){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);l&&l(n)}for(t&&t(r);c<s.length;c++)o=s[c],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,(()=>{"use strict";var e=n(579),t=n(5043),r=n(4391),i=n(7581),o=n(1981),s=n(7873),a=n(9451);const l=new s.Tracker((function(e){a.A.postMessage({type:"track",data:e})}),{});function c(t){let{title:n,description:r,buttons:i}=t;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 u=n(4812);function d(e){return t=>{h.set({x:t.clientX,y:t.clientY,items:e()}),t.preventDefault(),t.stopPropagation()}}const h=u.sH.box(null,{deep:!1}),f=(0,o.PA)((function(){const n=h.get(),[r,i]=(0,t.useState)(null),o=(0,t.useRef)(null);if((0,t.useEffect)((()=>{if(null!=n){const e=e=>{"keyup"!==e.type?"click"===e.type&&(0,s.findParentWithClassName)(e.target,"context-menu-container")||h.set(null):"Escape"===e.key&&h.set(null)};return window.addEventListener("click",e,!0),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),()=>{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;const a=n.y>window.innerHeight/2?"bottom":"top",l=n.x>window.innerWidth/2?"right":"left";let c;return c="top"===a?"left"===l?{top:n.y+10,left:n.x+-5}:{top:n.y+10,right:window.innerWidth-(n.x+-5)}:"left"===l?{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",{ref:o,className:"context-menu-container"+(null!=r?" context-menu-fadeout":""),"data-testid":"context-menu-container",style:c,children:["top"===a?(0,e.jsx)("div",{className:"context-menu-arrow-top context-menu-arrow-".concat(l)}):null,(0,e.jsx)("div",{className:"context-menu",children:n.items.map(((t,n)=>"divider"===t.type?(0,e.jsx)("div",{className:"context-menu-divider"},n):(0,e.jsx)("div",{onClick:null!=r?void 0:()=>function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function*(){var e;yield null===(e=t.onClick)||void 0===e?void 0:e.call(t),i(n),setTimeout((()=>{h.set(null),i(null)}),300)})),className:"context-menu-item"+(null!=r&&r===n?" context-menu-item-selected":""),children:t.label},n)))}),"bottom"===a?(0,e.jsx)("div",{className:"context-menu-arrow-bottom context-menu-arrow-".concat(l)}):null]})}));var p=n(5213);const v=u.sH.box(500);var m=n(4767);const g=(0,o.PA)((function(t){let{children:n}=t;const r=(0,m.m)();return(0,e.jsx)("div",{className:"gti-root ".concat(r.colorScheme,"-theme"),children:n})}));var b,y;!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"}(b||(b={})),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"}(y||(y={}));class _ extends window.EventTarget{constructor(e){super();const t=new Set;for(const n of Object.values(e)){const[,e]=n;t.add(e)}this.keydownListener=n=>{if(!t.has(n.keyCode))return;if(function(e){return null!=e.target&&/(vscode-text-area|vscode-text-field|textarea|input)/i.test(e.target.tagName)}(n))return;const r=(n.shiftKey?b.SHIFT:0)|(n.ctrlKey?b.CTRL:0)|(n.altKey?b.ALT:0)|(n.metaKey?b.CMD:0);for(const[t,i]of Object.entries(e)){const[e,o]=i;if(o===n.keyCode&&e===r){this.dispatchEvent(new Event(t));break}}},document.body.addEventListener("keydown",this.keydownListener)}}const[w,x,C]=function(n){const r=new _(n),i=(0,t.createContext)(r);return[t=>{let{children:n}=t;return(0,e.jsx)(i.Provider,{value:r,children:n})},function(e,n){const r=(0,t.useContext)(i);(0,t.useEffect)((()=>(r.addEventListener(e,n),()=>r.removeEventListener(e,n))),[e,n,r])},e=>r.dispatchEvent(new Event(e))]}({ToggleSidebar:[b.CMD,y.Period],OpenUncommittedChangesComparisonView:[b.CMD,y.SingleQuote],OpenHeadChangesComparisonView:[b.CMD|b.SHIFT,y.SingleQuote],Escape:[b.NONE,y.Escape],SelectUpwards:[b.NONE,y.UpArrow],SelectDownwards:[b.NONE,y.DownArrow],ContinueSelectionUpwards:[b.SHIFT,y.UpArrow],ContinueSelectionDownwards:[b.SHIFT,y.DownArrow]});var k=n(4983);function O(t){let{className:n,children:r,width:o,height:s,"aria-labelledby":a,"aria-describedby":l,dismiss:c}=t;return(0,e.jsx)("div",{className:"modal",role:"dialog","aria-modal":!0,"aria-labelledby":a,"aria-describedby":l,children:(0,e.jsxs)("div",{className:"modal-contents ".concat(null!=n?n:""),style:{width:o,height:s},children:[null!=c?(0,e.jsx)("div",{className:"dismiss-modal",children:(0,e.jsx)(i.Ls,{appearance:"icon",onClick:c,children:(0,e.jsx)(k.I,{icon:"x"})})}):null,r]})})}const S=u.sH.box(null,{deep:!1}),E=(0,o.PA)((function(){const n=S.get(),r=(0,t.useRef)(null),o=()=>{(null==n?void 0:n.visible)&&(n.deferred.resolve(void 0),S.set(Object.assign(Object.assign({},n),{visible:!1})))};if(x("Escape",o),(0,t.useEffect)((()=>{(null==n?void 0:n.visible)&&null!=r.current&&r.current.focus()}),[r,null==n?void 0:n.visible]),!0!==(null==n?void 0:n.visible))return null;let s;if("confirm"===n.config.type){const t=n.config;s=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{id:"use-modal-message",children:t.message}),(0,e.jsx)("div",{className:"use-modal-buttons",children:t.buttons.map(((t,o)=>{const s="object"==typeof t?t.label:t,a="object"==typeof t&&null!=t.primary;return(0,e.jsx)(i.Ls,{appearance:a?"primary":"secondary",onClick:()=>{n.deferred.resolve(t),S.set(Object.assign(Object.assign({},n),{visible:!1}))},ref:a?r:void 0,children:s},o)}))})]})}else if("custom"===n.config.type){const t=n.config.component;s=(0,e.jsx)(t,{returnResultAndDismiss:e=>{n.deferred.resolve(e),S.set(Object.assign(Object.assign({},n),{visible:!1}))}})}return(0,e.jsxs)(O,{height:"fit-content",className:"use-modal","aria-labelledby":"use-modal-title","aria-describedby":"use-modal-message",dismiss:o,children:[(0,e.jsxs)("div",{id:"use-modal-title",children:[null!=n.config.icon?(0,e.jsx)(k.I,{icon:n.config.icon,size:"M"}):null,"string"==typeof n.config.title?(0,e.jsx)("span",{children:n.config.title}):n.config.title]}),s]})}));var A=n(122),T=n.n(A);function R(e,n,r){const i=(0,t.useCallback)((0,s.debounce)(e,n,void 0,!0),[n]);(0,t.useEffect)((function(){return i(...arguments)}),r)}function D(e,n){const r=(0,t.useRef)([]);T()(n,r.current)||(r.current=n);const i=r.current;return(0,t.useMemo)(e,i)}class I{constructor(e){this.trackEventName=e,this.id=(0,s.randomId)(),this.runner=s.CommandRunner.Graphite}getStdin(){}getDescriptionForDisplay(){}}class j extends I{constructor(){super("AddAllOperation")}getArgs(){return["add","--all"]}makeOptimisticUncommittedChangesApplier(e){if(!e.uncommittedChanges.every((e=>!["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 e=>e.map((e=>({path:e.path,status:P(e.status)})))}}function P(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}j.opName="AddAll";class N extends I{constructor(){super("DiscardOperation")}getArgs(){return["reset","-q","--hard"]}makeOptimisticUncommittedChangesApplier(e){const 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((e=>!t.includes(e.status))))return e=>e.filter((e=>!t.includes(e.status)))}}N.opName="Discard";class M extends I{constructor(){super("PurgeOperation")}getArgs(){return["clean","--force"]}makeOptimisticUncommittedChangesApplier(e){const t=["UNTRACKED_ADD"];if(0!==e.uncommittedChanges.length&&!e.uncommittedChanges.every((e=>!t.includes(e.status))))return e=>e.filter((e=>!t.includes(e.status)))}}M.opName="Purge";class L extends I{constructor(){super("SoftResetAllOperation")}getArgs(){return["reset","-q"]}makeOptimisticUncommittedChangesApplier(e){if(!e.uncommittedChanges.every((e=>!["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 e=>e.map((e=>({path:e.path,status:z(e.status)})))}}function z(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}L.opName="SoftResetAll";var F=n(336);const B=u.sH.box(void 0),V=(0,u.EW)((()=>{const e=B.get();return e?F.oY.get().get(e):void 0})),U=u.sH.box("all");(0,u.mJ)((()=>B.get()),(()=>{U.set("all")}));var H=n(6374);const K=(0,H.m)({config:"gti.bottom-panel-height",default:null});function q(){return window.globalGtiClientTracker}var $;!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"}($||($={}));const Y=(0,u.EW)((()=>{const e=F.IM.get(),t=F.wS.get();return function(e,t,n){const r=t.currentOperation,i=[];for(const e of t.operationHistory)null==e||e.hasCompletedUncommittedChangesOptimisticState||null!=e.operation.makeOptimisticUncommittedChangesApplier&&i.push(e.operation.makeOptimisticUncommittedChangesApplier.bind(e.operation));null==r||r.hasCompletedUncommittedChangesOptimisticState||null!=r.exitCode&&0!==r.exitCode||null!=r.operation.makeOptimisticUncommittedChangesApplier&&i.push(r.operation.makeOptimisticUncommittedChangesApplier.bind(r.operation));for(const e of n)null!=e&&null!=e.makeOptimisticUncommittedChangesApplier&&i.push(e.makeOptimisticUncommittedChangesApplier.bind(e));if(i.length){let t=e;for(const n of i){const r=n({uncommittedChanges:e});null!=r&&(t=r(t))}return t}return e}(F.mD.get(),e,t)})),W=(0,u.EW)((()=>{const e=F.IM.get(),t=F.wS.get(),n=F.C3.get();return null==(null==n?void 0:n.files)?n:function(e,t,n){const r=t.currentOperation;if("loaded"!==e.state)return e;const i=[];for(const e of t.operationHistory)null==e||e.hasCompletedMergeConflictsOptimisticState||null!=e.operation.makeOptimisticMergeConflictsApplier&&i.push(e.operation.makeOptimisticMergeConflictsApplier.bind(e.operation));null==r||r.hasCompletedMergeConflictsOptimisticState||null!=r.exitCode&&0!==r.exitCode||null!=r.operation.makeOptimisticMergeConflictsApplier&&i.push(r.operation.makeOptimisticMergeConflictsApplier.bind(r.operation));for(const e of n)null!=e&&null!=e.makeOptimisticMergeConflictsApplier&&i.push(e.makeOptimisticMergeConflictsApplier.bind(e));if(i.length){let t=e;for(const n of i){const r=n({conflicts:e});null!=r&&(t=r(t))}return t}return e}(n,e,t)})),G=(0,u.EW)((()=>{const e=F.HY.get(),t=[],n=F.YK.get(),r=F.IM.get(),i=F.wS.get(),o=r.currentOperation;for(const e of r.operationHistory)null==e||e.hasCompletedOptimisticState||null!=e.operation.makeOptimisticApplier&&t.push(e.operation.makeOptimisticApplier.bind(e.operation));null==o||o.hasCompletedOptimisticState||null!=o.exitCode&&0!==o.exitCode||null!=o.operation.makeOptimisticApplier&&t.push(o.operation.makeOptimisticApplier.bind(o.operation));for(const e of i)null!=e&&null!=e.makeOptimisticApplier&&t.push(e.makeOptimisticApplier.bind(e));null!=(null==n?void 0:n.makePreviewApplier)&&t.push(n.makePreviewApplier.bind(n));let a=F.jn.get(),l=F.TW.get();if(t.length){let n=e;for(const e of t){const t={trees:n,headCommit:a,treeMap:l};let r=a;const i=new Map,o=e(t);if(null==o)continue;const c=(e,t)=>{const n=o(e,t);if(null==(null==n?void 0:n.info))return;n.info.isHead&&(r=n.info);const{info:s,children:a,previewType:l,childPreviewType:u}=n,d={info:s,previewType:l,children:a.map((e=>c(e,u))).filter((e=>null!=e))};return i.set(d.info.branch,n),d};n=n.map((e=>c(e))).filter(s.notEmpty),a=r,l=i}return{trees:n,treeMap:l,headCommit:a}}return{trees:e,treeMap:l,headCommit:a}}));function Q(e){var t,n;const r=F.IM.get(),i=F.wS.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((t=>t instanceof e))?"queued":void 0}var X=n(1891);const J=(0,H.e)({config:"gti.changedFilesDisplayType",default:"short"}),Z={short:"Short file names",fullPaths:"Full file paths",tree:"Tree",fish:"One-letter directories"},ee=Object.entries(Z),te=(0,o.PA)((function(){var t,n;const r=(0,m.m)(),o=J.get(),a=W.get(),l=!r.openDiff;return(0,e.jsxs)(i.Ls,{appearance:"icon",className:"changed-file-display-type-picker","data-testid":"changed-file-display-type-picker",children:[(0,e.jsx)(k.I,{icon:"ellipsis"}),(0,e.jsxs)("select",{value:o,className:"changed-file-display-type-picker-select",onClick:e=>{e.stopPropagation()},onChange:e=>{const t=e.currentTarget.value;(function(e){return Object.keys(Z).includes(e)})(t)&&J.set(t),"view-changes"===t&&X.k.set({comparison:{type:s.ComparisonType.UncommittedChanges},visible:!0}),"all-changes"===t&&U.set("all"),"changes-by-commit"===t&&U.set("commit"),"changes-by-version"===t&&U.set("version"),"view-branch"===t&&(null==a?void 0:a.branchName)&&B.set(a.branchName)},children:[ee.map((t=>{let[n,r]=t;return(0,e.jsx)("option",{value:n,children:r},n)})),a||l?(0,e.jsx)("option",{disabled:!0,children:"──────────"}):null,a?(0,e.jsx)("option",{value:"view-branch",children:"View branch"},"view-branch"):null,l?(0,e.jsx)("option",{value:"view-changes",children:"View changes"},"view-changes"):null,B.get()&&!(null===(t=V.get())||void 0===t?void 0:t.partOfTrunk)&&(0,e.jsxs)(e.Fragment,{children:["all"!==U.get()&&(0,e.jsx)("option",{value:"all-changes",children:"View all changes"},"all-changes"),"commit"!==U.get()&&(0,e.jsx)("option",{value:"changes-by-commit",children:"View changes by commit"},"changes-by-commit"),"version"!==U.get()?(null===(n=V.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]})]})]})}));class ne extends I{constructor(e){super("GotoOperation"),this.destination=e}getArgs(){return["checkout",this.destination]}makeOptimisticApplier(e){var t;const n=null===(t=e.headCommit)||void 0===t?void 0:t.branch;if(n!==this.destination)return(e,t)=>e.info.branch===this.destination?{info:Object.assign(Object.assign({},e.info),{isHead:!0}),children:e.children,previewType:$.GOTO_DESTINATION}:e.info.branch===n?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:e.children,previewType:$.GOTO_PREVIOUS_LOCATION}:{info:e.info,children:e.children}}}ne.opName="Goto";var re=n(9192),ie=n(9235);class oe{constructor(t){this.system=t,this.RepoInfo=()=>(0,e.jsxs)("span",{children:["github.com"!==this.system.hostname?this.system.hostname:""," ",this.system.owner,"/",this.system.repo]})}DiffBadgeContent(t){let{diff:n,children:r}=t;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)(k.I,{title:"Open PR #".concat(null==n?void 0:n.number," in Graphite"),icon:se(n.state)}):null,r]})}formatDiffNumber(e){return"#".concat(e)}isDiffClosed(e){return"CLOSED"===e.state}}function se(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"}}const ae=(0,u.EW)((()=>{const e=F.p4.get();return"success"!==(null==e?void 0:e.type)?null:"github"===e.codeReviewSystem.type?new oe(e.codeReviewSystem):null})),le=(0,re.T)({genKey:e=>e||"__UNDEFINED__",genValue:e=>(0,u.EW)((()=>{var t;const n=ue.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)}}))}),ce=(0,ie.s)({default:{value:null},effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("fetchedDiffSummaries",(e=>{t(e.summaries)}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"fetchDiffSummaries"})))]}),ue=((0,u.EW)((()=>{const e=ce.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((e=>[e.branchName,e])))}})),(0,u.EW)((()=>{const e=ce.get();return e.error?e:null===e.value?{value:null}:{value:new Map(e.value.map((e=>[e.number,e])))}})));function de(e){var t;if(!e)return[];const n=F.TW.get().get(e);if(!n)return[];const r=n.info,i=le(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?[]:[...de(n.info.parents[0]),n.info]}function he(e){if(!e)return[];const t=F.TW.get().get(e);return t?[...he(t.info.parents[0]),t.info]:[]}function fe(e){return he(e).some((e=>{var t;const n=le(null===(t=e.pr)||void 0===t?void 0:t.number).get();return n.value&&"OPEN"!==n.value.state}))}function pe(e){return he(e).some((e=>e.needsRestack&&!e.parents.some((e=>{var t;return null===(t=F.TW.get().get(e))||void 0===t?void 0:t.info.partOfTrunk}))))}(0,ie.s)({default:document.hasFocus()?"focused":document.visibilityState,setter:(0,s.debounce)((e=>{a.A.postMessage({type:"pageVisibility",state:e})}),50),effects:[e=>{let{setSelf:t}=e;const n=()=>{t(document.hasFocus()?"focused":document.visibilityState)};return window.addEventListener("focus",n),window.addEventListener("blur",n),document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n),window.removeEventListener("blur",n)}}]});const ve=(0,ie.s)({default:void 0,effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("fetchedAuthStatus",(e=>{t(e.message)}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"fetchAuthStatus"})))]}),me=(0,u.EW)((()=>{var e;return"ok"===(null===(e=ve.get())||void 0===e?void 0:e.status)})),ge=(0,re.T)({genKey:e=>e,genValue:e=>(0,ie.s)({default:{isLoading:!0,data:null},setter:t=>{t.isLoading&&a.A.postMessage({type:"requestCommitsInBranch",branch:e})},effects:[()=>a.A.onConnectOrReconnect((()=>a.A.postMessage({type:"requestCommitsInBranch",branch:e}))),t=>{let{setSelf:n}=t;const r=a.A.onMessageOfType("commitsInBranch",(t=>{t.branch===e&&n({isLoading:!1,data:t.data})}));return()=>r.dispose()}]})}),be=(0,re.T)({genKey:e=>e,genValue:e=>(0,ie.s)({default:{isLoading:!0,data:null},setter:t=>{t.isLoading&&a.A.postMessage({type:"requestChangedFilesInCommit",commitSha:e})},effects:[()=>a.A.onConnectOrReconnect((()=>a.A.postMessage({type:"requestChangedFilesInCommit",commitSha:e}))),t=>{let{setSelf:n}=t;const r=a.A.onMessageOfType("changedFilesInCommit",(t=>{t.commitSha===e&&n({isLoading:!1,data:t.data})}));return()=>r.dispose()}]})}),ye=(0,re.T)({genKey:e=>e,genValue:e=>(0,ie.s)({default:{isLoading:!0,data:null},setter:t=>{if(t.isLoading){const[t,n]=e.split("..");if(!t||!n)return;a.A.postMessage({type:"requestChangedFilesInRange",fromSha:t,toSha:n})}},effects:[()=>a.A.onConnectOrReconnect((()=>{const[t,n]=e.split("..");t&&n&&a.A.postMessage({type:"requestChangedFilesInRange",fromSha:t,toSha:n})})),t=>{let{setSelf:n}=t;const r=a.A.onMessageOfType("changedFilesInRange",(t=>{const[r,i]=e.split("..");t.fromSha===r&&t.toSha===i&&n({isLoading:!1,data:t.data})}));return()=>r.dispose()}]})}),_e=(0,re.T)({genKey:e=>e,genValue:e=>(0,ie.s)({default:{isLoading:!0,data:null},setter:t=>{t.isLoading&&a.A.postMessage({type:"requestChangedFiles",branch:e})},effects:[()=>a.A.onConnectOrReconnect((()=>a.A.postMessage({type:"requestChangedFiles",branch:e}))),t=>{let{setSelf:n}=t;const r=a.A.onMessageOfType("changedFiles",(t=>{t.branch===e&&n({isLoading:!1,data:t.data})}));return()=>r.dispose()}]})});class we extends I{constructor(e,t){super("DownstackSubmitOperation"),this.branch=e,this.options=t}getArgs(){var e,t,n;const 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}}we.opName="downstack submit";const xe=(0,H.e)({config:"gti.submit-as-draft",default:"draft"}),Ce=(0,H.e)({config:"gti.submit-with-web",default:"no-web"}),ke=e=>{var t;(0,F.xj)(new we(e,{publish:"publish"===xe.get(),draft:"draft"===xe.get(),web:"web"===Ce.get()&&(t=e,!de(t).every((e=>e.pr)))}))},Oe=u.sH.set();function Se(n){var{disabled:r,toHighlight:i,children:o}=n,s=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"]);const a=(0,t.useRef)(null),[l,c]=(0,t.useState)(!1);return(0,t.useLayoutEffect)((()=>{if(r)return;const e=()=>{setTimeout((()=>{(0,u.h5)((()=>{Oe.clear(),i.map((e=>Oe.add(e.branch)))})),c(!0)}),0)},t=()=>{Oe.clear(),c(!1)},n=a.current;return null==n||n.addEventListener("mouseenter",e),null==n||n.addEventListener("mouseleave",t),()=>{null==n||n.removeEventListener("mouseenter",e),null==n||n.removeEventListener("mouseleave",t)}}),[i,r]),(0,t.useEffect)((()=>()=>{l&&Oe.clear()}),[l]),(0,e.jsx)("div",Object.assign({},s,{ref:a,children:o}))}function Ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.map((e=>{const 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((e=>""!==e&&e!==r)),rootPrefix:r||"",separator:t,hadLeadingSeparator:e.startsWith(t)||!!r&&r.length>0&&e.startsWith(r)}})),r=null==t.maxDepth?Math.max(...n.map((e=>e.parts.length))):t.maxDepth,i=new Set(n),o=new Map;for(let e=1;e<=r;e++){o.clear();for(const t of i){const n=t.parts.slice(0,e).join(t.separator);o.has(n)||o.set(n,new Set),o.get(n).add(t)}for(const t of o.values())if(1===t.size){const n=Array.from(t)[0];n&&(n.depth=e,i.delete(n))}}return n.map((e=>{let{depth:n,parts:i,rootPrefix:o,separator:s,hadLeadingSeparator:a}=e;var l;let c=i.slice(0,null==n?r:n).reverse();return 0===c.length?"".concat(o).concat(s):((1===c.length&&""===c[0]||c.length>1&&""!==c[0])&&(c=c.length===i.length?a?[o,...c]:c:(null!==(l=t.alwaysShowLeadingSeparator)&&void 0!==l?l:a)?["",...c]:c),c.join(s))}))}class Ae extends I{constructor(e){super("AddOperation"),this.filePath=e}getArgs(){return["add",{type:"repo-relative-file",path:this.filePath}]}makeOptimisticUncommittedChangesApplier(e){if(!e.uncommittedChanges.some((e=>e.path===this.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 e=>e.map((e=>e.path===this.filePath?{path:e.path,status:P(e.status)}:e))}}var Te,Re;Ae.opName="Add",function(e){e.theirs="theirs",e.ours="ours"}(Te||(Te={}));class De extends I{constructor(e,t){super("AutoResolveOperation"),this.filePath=e,this.tool=t}getArgs(){switch(this.tool){case Te.theirs:return["restore","--theirs","--",{type:"repo-relative-file",path:this.filePath}];case Te.ours:return["restore","--ours","--",{type:"repo-relative-file",path:this.filePath}]}}}De.opName="AutoResolve",function(e){e.mark="mark",e.unmark="unmark"}(Re||(Re={}));class Ie extends I{constructor(e,t){super("ResolveOperation"),this.filePath=e,this.tool=t}getArgs(){switch(this.tool){case Re.mark:return["add",{type:"repo-relative-file",path:this.filePath}];case Re.unmark:return["restore","--merge","--",{type:"repo-relative-file",path:this.filePath}]}}makeOptimisticUncommittedChangesApplier(e){if(!e.uncommittedChanges.some((e=>e.path===this.filePath&&"UNRESOLVED"!==e.status)))return e=>e.map((e=>e.path===this.filePath?{path:e.path,status:"RESOLVED"}:e))}makeOptimisticMergeConflictsApplier(e){var t,n;if(!0!==(null===(n=null===(t=e.conflicts)||void 0===t?void 0:t.files)||void 0===n?void 0:n.some((e=>e.path===this.filePath&&"UNRESOLVED"!==e.status))))return 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((e=>e.path===this.filePath?{path:e.path,status:"RESOLVED"}:e)))&&void 0!==n?n:[]})}}}Ie.opName="Resolve";class je extends I{constructor(e){super("RevertOperation"),this.file=e}getArgs(){return["restore","-SW",{type:"repo-relative-file",path:this.file}]}makeOptimisticUncommittedChangesApplier(e){const t=new Set(this.file);if(!e.uncommittedChanges.every((e=>!t.has(e.path))))return e=>e.filter((e=>!t.has(e.path)))}}je.opName="Revert";class Pe extends I{constructor(e){super("SoftResetOperation"),this.file=e}getArgs(){return["reset","--",{type:"repo-relative-file",path:this.file}]}makeOptimisticUncommittedChangesApplier(e){if(!e.uncommittedChanges.some((e=>e.path===this.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 e=>e.map((e=>e.path===this.file?{path:e.path,status:Ne(e.status)}:e))}}function Ne(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}Pe.opName="SoftReset";const Me={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)"},Le={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"]},ze={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},Fe=(0,o.PA)((function(t){const n=J.get(),{files:r}=t,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=D((()=>function(e){const t=Ee(e.map((e=>e.path))),n=new Set(e.map((e=>e.copy)).filter(s.notEmpty));return e.map(((e,n)=>{let r,i,o=t[n],s="".concat(e.path,"\n\n").concat(Me[e.status]),a=e.status;if(null!=e.copy){const[t,n]=Ee([e.copy,e.path]);o="".concat(t," → ").concat(n),["TRACKED_RENAME","PARTIALLY_TRACKED_RENAME","UNTRACKED_RENAME"].includes(e.status)?(i=e.copy,s="".concat(s,"\n\nThis file was renamed from ").concat(e.copy),a=e.status):["TRACKED_COPY","PARTIALLY_TRACKED_COPY","UNTRACKED_COPY"].includes(e.status)&&(r=e.copy,s="".concat(s,"\n\nThis file was copied from ").concat(e.copy),a=e.status)}return{path:e.path,label:o,status:e.status,visualStatus:a,copiedFrom:r,renamedFrom:i,tooltip:s}})).filter((e=>!("TRACKED_REMOVE"===e.status&&n.has(e.path)))).sort(((e,t)=>e.visualStatus===t.visualStatus?e.path.localeCompare(t.path):ze[e.visualStatus]-ze[t.visualStatus]))}(r)),[r]);return(0,e.jsx)("div",{className:"changed-files",children:"tree"===n?(0,e.jsx)(Ue,Object.assign({},i,{files:o,displayType:n})):(0,e.jsx)(Be,Object.assign({},i,{files:o,displayType:n}))})}));function Be(t){let{files:n,displayType:r,comparison:i}=t;return(0,e.jsx)(e.Fragment,{children:n.map((t=>(0,e.jsx)(He,{file:t,displayType:r,comparison:i},t.path)))})}const Ve=()=>(0,e.jsx)("div",{className:"file-indent"}),Ue=(0,o.PA)((function(n){let{files:r,comparison:i,displayType:o}=n;const s=D((()=>{return e=Object.fromEntries(r.map((e=>[e.path,e]))),function e(t){const n=new Map,r=new Map;for(const[e,i]of t.entries()){const[t]=e.split("/",1);if(!t)continue;const o=e.slice(t.length+1);if(""===o)r.set(t,i);else if(n.has(t)){const e=n.get(t);null==e||e.set(o,i)}else n.set(t,new Map([[o,i]]))}const i=new Map;for(const[t,r]of n.entries()){const n=e(r);if(1===n.size){const[e,r]=n.entries().next().value;r instanceof Map?i.set(t+"/"+e,r):i.set(t,n)}else i.set(t,n)}for(const[e,t]of r.entries())i.set(e,t);return i}(new Map(Object.entries(e)));var e}),[r]),[a,l]=(0,t.useState)(new Set);return function n(r){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,e.jsx)(e.Fragment,{children:[...r.entries()].map((r=>{let[u,d]=r;const h="".concat(s,"/").concat(u),f=a.has(h);return d instanceof Map?(0,e.jsxs)(t.Fragment,{children:[(0,e.jsxs)("div",{className:"file-tree-folder-path",onClick:()=>{l((e=>f?new Set([...e].filter((e=>e!==h))):new Set([...e,h])))},children:[Array.from({length:c},((t,n)=>(0,e.jsx)(Ve,{},n))),(0,e.jsx)(k.I,{icon:f?"chevron-right":"chevron-down"}),(0,e.jsx)(k.I,{icon:f?"folder":"folder-opened"}),u]}),f?null:n(d,h,c+1)]},u):(0,e.jsx)(He,{indentLevel:c,comparison:i,displayType:o,file:d},u)}))})}(s)})),He=(0,o.PA)((function(n){let{file:r,displayType:o,comparison:a,indentLevel:l=0}=n;const c=(0,m.m)(),[u,d,h]=Le[r.visualStatus],{operation:f,tooltip:p}=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:()=>new Ae(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:()=>new Ae(e.path)};case"TRACKED_MODIFY":case"TRACKED_COPY":case"TRACKED_RENAME":return{tooltip:"Unstage changes",operation:()=>new Pe(e.path)};case"TRACKED_ADD":return{tooltip:"Unstage addition",operation:()=>new Pe(e.path)};case"TRACKED_REMOVE":return{tooltip:"Unstage removal",operation:()=>new Pe(e.path)};case"RESOLVED":return{tooltip:"Mark as unresolved",operation:()=>new Ie(e.path,Re.unmark)};case"UNRESOLVED":return{tooltip:"This file needs to be resolved",operation:null}}}(r),v=(0,t.useCallback)((e=>{if(e)return"full"===h?(e.indeterminate=!1,void(e.checked=!0)):void("partial"!==h?(e.indeterminate=!1,e.checked=!1):e.indeterminate=!0)}),[h]);return(0,e.jsxs)("div",{className:"changed-file file-".concat(u),"data-testid":"changed-file-".concat(r.path),tabIndex:0,onKeyPress: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:()=>{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},((t,n)=>(0,e.jsx)(Ve,{},n))),a.type===s.ComparisonType.UncommittedChanges&&(0,e.jsx)(i.qz,{ref:v,title:p,className:"changed-file-checkbox"+(f?" changed-file-checkbox-clickable":""),readOnly:!0,disabled:!f,onClick:e=>{e.stopPropagation();const t=null==f?void 0:f();t&&(0,F.xj)(t)}}),(0,e.jsxs)("span",{className:"changed-file-path",title:r.tooltip,children:[(0,e.jsx)(k.I,{icon:d}),(0,e.jsx)("span",{className:"changed-file-path-text",children:"fish"===o?r.path.split("/").map(((e,t,n)=>t===n.length-1?e:e[0])).join("/"):"fullPaths"===o?r.path:"short"===o?r.label:r.path.endsWith("/")?r.path:r.path.slice(r.path.lastIndexOf("/")+1)})]}),(0,e.jsx)($e,{file:r,comparison:a})]},r.path)})),Ke=new Set(["TRACKED_MODIFY","UNTRACKED_MODIFY","TRACKED_REMOVE","UNTRACKED_REMOVE"]),qe=new Set(["UNRESOLVED","RESOLVED"]),$e=(0,o.PA)((function(t){let{comparison:n,file:r}=t;const o=(0,m.m)(),l=[];return null!=o.openFile&&n.type!==s.ComparisonType.UncommittedChanges&&l.push((0,e.jsx)(i.Ls,{title:"Open file",className:"file-show-on-hover",appearance:"icon",onClick:e=>{var t;e.stopPropagation(),null===(t=o.openFile)||void 0===t||t.call(o,r.path)},children:(0,e.jsx)(k.I,{icon:"go-to-file"})},"open-file")),n.type!==s.ComparisonType.UncommittedChanges||null==o.openDiff||qe.has(r.status)||l.push((0,e.jsx)(i.Ls,{title:"Open diff view",className:"file-show-on-hover",appearance:"icon",onClick:e=>{var t;e.stopPropagation(),null===(t=o.openDiff)||void 0===t||t.call(o,r.path,n)},children:(0,e.jsx)(k.I,{icon:"git-pull-request-go-to-changes"})},"open-diff")),Ke.has(r.status)&&n.type===s.ComparisonType.UncommittedChanges&&l.push((0,e.jsx)(i.Ls,{title:"Discard changes",className:"file-show-on-hover",appearance:"icon","data-testid":"file-revert-button",onClick:e=>{e.stopPropagation(),o.confirm("Are you sure you want to discard changes to ".concat(r.path,"?")).then((e=>{e&&(0,F.xj)(new je(r.path))}))},children:(0,e.jsx)(k.I,{icon:"discard"})},"discard")),n.type===s.ComparisonType.UncommittedChanges&&("UNTRACKED_ADD"===r.status||"TRACKED_ADD"===r.status?l.push((0,e.jsx)(i.Ls,{title:"Delete",className:"file-show-on-hover",appearance:"icon",onClick:e=>function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function*(){e.stopPropagation(),(yield o.confirm("Are you sure you want to delete ".concat(r.path,"?")))&&a.A.postMessage({type:"deleteFile",filePath:r.path})})),children:(0,e.jsx)(k.I,{icon:"trash"})},"delete")):"RESOLVED"===r.status?l.push((0,e.jsx)(i.Ls,{title:"Mark as unresolved",appearance:"icon",onClick:e=>{e.stopPropagation(),(0,F.xj)(new Ie(r.path,Re.unmark))},children:(0,e.jsx)(k.I,{icon:"circle-slash"})},"unresolve")):"UNRESOLVED"===r.status&&l.push((0,e.jsx)(i.Ls,{title:"Mark as resolved","data-testid":"file-action-resolve",appearance:"icon",onClick:e=>{e.stopPropagation(),(0,F.xj)(new Ie(r.path,Re.mark))},children:(0,e.jsx)(k.I,{icon:"check"})},"resolve"),(0,e.jsx)(i.Ls,{title:"Take local version",appearance:"icon",onClick:e=>{e.stopPropagation(),(0,F.xj)(new De(r.path,Te.ours))},children:(0,e.jsx)(k.I,{icon:"fold-up"})},"take-ours"),(0,e.jsx)(i.Ls,{title:"Take incoming version",appearance:"icon",onClick:e=>{e.stopPropagation(),(0,F.xj)(new De(r.path,Te.theirs))},children:(0,e.jsx)(k.I,{icon:"fold-down"})},"take-theirs"))),(0,e.jsx)("div",{className:"file-actions","data-testid":"file-actions",children:l})})),Ye=(0,o.PA)((function(){const t=U.get();return(0,e.jsx)("div",{className:"selected-branch",children:"all"===t?(0,e.jsx)(We,{}):"commit"===t?(0,e.jsx)(Ge,{}):(0,e.jsx)(Qe,{})})})),We=(0,o.PA)((function(){var t,n,r;const o=null===(t=V.get())||void 0===t?void 0:t.branch;if(!o)return null;const{data:a}=_e(o).get(),l=de(o),c=o===(null===(n=G.get().headCommit)||void 0===n?void 0:n.branch),u=o===(null===(r=G.get().trees[0])||void 0===r?void 0:r.info.branch);return(0,e.jsxs)(e.Fragment,{children:[u||!(null==a?void 0:a.files)?null:(0,e.jsx)(Fe,{files:a.files,comparison:{type:s.ComparisonType.Committed,hash:o}}),(0,e.jsxs)("div",{className:"branch-actions",children:[me.get()&&l.length>0&&!fe(o)&&(0,e.jsx)(Se,{toHighlight:l,className:"branch-action-button",children:(0,e.jsxs)(i.Ls,{className:"branch-action-button-inner-fill",appearance:c?"primary":"secondary",onClick:e=>{e.stopPropagation(),ke(o)},children:["Submit",l.length>1?" ".concat(l.length," PRs"):""]})}),(0,e.jsx)(i.Ls,{className:"branch-action-button",appearance:c?"secondary":"primary",disabled:c,onClick:e=>{(0,F.xj)(new ne(o)),e.stopPropagation()},children:c?"Checked out":"Check out"})]})]})})),Ge=(0,o.PA)((function(){var n,r,i;const[o,a]=(0,t.useState)(void 0),l=null===(n=V.get())||void 0===n?void 0:n.branch;if(!l)return null;const c=null===(r=ge(l).get().data)||void 0===r?void 0:r.commits;if(!c)return null;const u=o&&(null===(i=be(o).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:c.map((t=>(0,e.jsx)("div",{className:"selected-branch-divided-selector-item"+(o===t.sha?" selected-branch-divided-selector-item-selected":""),onClick:()=>a(t.sha),children:t.message},t.sha)))}),(0,e.jsx)("div",{className:"selected-branch-divided-content",children:u?(0,e.jsx)(Fe,{files:u,comparison:{type:s.ComparisonType.Commit,sha:o}}):null})]})})),Qe=(0,o.PA)((function(){var n,r,i;const[o,a]=(0,t.useState)(void 0),l=null===(n=V.get())||void 0===n?void 0:n.branch;if(!l)return null;const c=null===(r=F.uA.get().find((e=>e.branch===l)))||void 0===r?void 0:r.versions;if(!c)return null;const u=o&&c[o-1],d=u&&u.baseSha&&u.headSha&&(null===(i=ye("".concat(u.baseSha,"..").concat(u.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:c.map(((t,n)=>(0,e.jsxs)("div",{className:"selected-branch-divided-selector-item"+(n+1===o?" selected-branch-divided-selector-item-selected":""),onClick:()=>a(n+1),children:["V",n+1]},"".concat(t.baseSha,":").concat(t.headSha))))}),(0,e.jsx)("div",{className:"selected-branch-divided-content",children:d&&u.baseSha&&u.headSha?(0,e.jsx)(Fe,{files:d,comparison:{type:s.ComparisonType.Range,fromSha:u.baseSha,toSha:u.headSha}}):null})]})}));class Xe extends I{constructor(e){super("AbortMergeOperation"),this.conflicts=e}getArgs(){return["rebase","--abort"]}}Xe.opName="Abort";class Je extends I{constructor(e,t){super("AmendOperation"),this.method=e,this.message=t}getArgs(){var e,t;if("commit"===this.method)return["modify","--commit","--message",(null===(e=this.message)||void 0===e?void 0:e.title)||"Untitled commit"];const n=null===(t=this.message)||void 0===t?void 0:t.title;return["modify",...n?["--message",n]:[]]}makeOptimisticUncommittedChangesApplier(e){if(0!==e.uncommittedChanges.length)return()=>[]}makeOptimisticApplier(e){const t=e.headCommit;if(null==this.message)return;const{title:n,description:r}=this.message;return(null==t?void 0:t.title)!==n||(null==t?void 0:t.description)!==r?(e,t)=>{if(e.info.isHead){if(!this.message)throw new Error("Missing message");return{info:Object.assign(Object.assign({},e.info),{title:n,description:null!=r?r:""}),children:e.children}}return{info:e.info,children:e.children}}:void 0}}Je.opName="Amend";class Ze extends I{constructor(e,t,n){super("CommitOperation"),this.message=e,this.branchName=t,this.originalHeadHash=n}getArgs(){return["create",...null!==this.branchName?[this.branchName]:[],"--message","".concat(this.message.title.split(/\n+/,1))]}makeOptimisticApplier(e){var t,n,r;const i=e.headCommit;if((null==i?void 0:i.branch)!==this.originalHeadHash)return;const o=this.message.title,s=this.message.description,a=null!==(t=this.branchName)&&void 0!==t?t:o.toLocaleLowerCase(),l={children:[],info:{author:null!==(n=null==i?void 0:i.author)&&void 0!==n?n:"",description:s,title:o,isHead:!0,parents:[null!==(r=null==i?void 0:i.branch)&&void 0!==r?r:""],branch:a,partOfTrunk:!1,date:(new Date).toISOString(),needsRestack:!1,needsSubmit:!0}};return(e,t)=>e.info.branch===this.originalHeadHash?{info:Object.assign(Object.assign({},e.info),{isHead:!1}),children:[...e.children,l]}:{info:e.info,children:e.children}}makeOptimisticUncommittedChangesApplier(e){if(0!==e.uncommittedChanges.length)return()=>[]}}Ze.opName="Commit";class et extends I{constructor(){super("ContinueMergeOperation")}getArgs(){return["continue"]}}et.opName="Continue";const tt=(0,H.e)({config:"gti.new-branch-name",default:"infer"});var nt=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 rt(t){var{title:n,icon:r,children:o,className:s}=t,a=nt(t,["title","icon","children","className"]);return(0,e.jsxs)("div",Object.assign({className:"dropdown-fields"+(null!=s?" ".concat(s):"")},a,{children:[(0,e.jsxs)("div",{className:"dropdown-fields-header",children:[(0,e.jsx)(k.I,{icon:r,size:"M"}),(0,e.jsx)("strong",{role:"heading",children:n})]}),(0,e.jsx)(i.uw,{}),(0,e.jsx)("div",{className:"dropdown-fields-content",children:o})]}))}function it(t){var{title:n,children:r}=t,i=nt(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 ot=n(7950);function st(n){let{children:r,component:i,placement:o,delayMs:s,inline:a,className:l}=n;const c=null!=o?o:"top",[u,d]=(0,t.useState)(!1),h=(0,t.useRef)(null);(0,t.useEffect)((()=>{if(u){const e=e=>{at(e)||d(!1)};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)}}),[u,d]),(0,t.useEffect)((()=>{if(u){const e=e=>{"keyup"===e.type?"Escape"===e.key&&d(!1):"resize"!==e.type&&at(e)||d(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e,!0),window.addEventListener("keyup",e,!0),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e,!0),window.removeEventListener("keyup",e,!0)}}}),[u,d]);const f=!0===u?0:s;return(0,e.jsxs)("div",{className:"tooltip-creator ".concat(a?"tooltip-creator-inline":"").concat(l?" ".concat(l):""),ref:h,onClick:e=>{!0===u&&at(e)||(d((e=>!0!==e)),e.stopPropagation())},children:[u&&h.current?(0,e.jsx)(lt,{delayMs:f,element:h.current,placement:c,children:i((()=>d(!1)))}):null,r]})}function at(e){return null!=(0,s.findParentWithClassName)(e.target,"tooltip")}function lt(n){let{element:r,placement:i,children:o,delayMs:s}=n;var a;const l=r.getBoundingClientRect(),c=(0,t.useRef)(null);let u=i;const d=function(e,n){const[r,i]=(0,t.useState)({width:0,height:0});return(0,t.useLayoutEffect)((()=>{const t=e.current;if(null==t)return;const n=()=>{i({width:t.offsetWidth,height:t.offsetHeight})};n();const r=new ResizeObserver((e=>{e.forEach((e=>{e.target===t&&n()}))}));return r.observe(t),()=>r.disconnect()}),[e,n]),r}(c,o),h=function(e,t,n){switch(e){case"top":{const e=t.top-5-n.height,r=t.left+t.width/2-n.width/2;return e<0?{top:t.top+t.height+5,left:r,autoPlacement:"bottom"}:{top:e,left:r}}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}}}(i,l,d);u=null!==(a=h.autoPlacement)&&void 0!==a?a:i;const f=function(e,t,n){const r={top:0,left:0},i=document.body.getBoundingClientRect();if("right"===e||"left"===e){const e=t.top-5,o=t.top+5+n.height;e<i.top?r.top=i.top-e:o>i.top+i.height&&(r.top=i.top+i.height-o)}else{const e=t.left-5,o=t.left+5+n.width;e<i.left?r.left=i.left-e:o>i.right&&(r.left=i.left+i.width-o)}return r}(u,h,d),p=document.body.getBoundingClientRect(),v={animationDelay:s?"".concat(s,"ms"):void 0};return h.left>p.width/2?v.right=p.width-(h.left+f.left+d.width):v.left=h.left+f.left,h.top>p.height/2?v.bottom=p.height-(h.top+f.top+d.height):v.top=h.top+f.top,(0,ot.createPortal)((0,e.jsxs)("div",{ref:c,role:"tooltip",className:"tooltip tooltip-".concat(u)+("string"==typeof o?" simple-text-tooltip":""),style:v,children:[(0,e.jsx)("div",{className:"tooltip-arrow tooltip-arrow-".concat(u),style:{transform:"translate(".concat(-f.left,"px, ").concat(-f.top,"px)")}}),o]}),ut(r))}let ct;const ut=e=>{if(ct)return ct;const t=(0,s.unwrap)((0,s.findParentWithClassName)(e,"gti-root"));return ct=(0,s.unwrap)(t.querySelector(".tooltip-root-container")),ct},dt=(0,H.e)({config:"gti.branch-display-choice",default:"pr-title"}),ht=(0,H.e)({config:"gti.branch-name-wrapping",default:"wrap"}),ft=(0,ie.s)({default:[],effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("platform/availableCwds",(e=>{t(e.options)}));return()=>n.dispose()},()=>a.A.onConnectOrReconnect((()=>a.A.postMessage({type:"platform/subscribeToAvailableCwds"})))]}),pt=((0,o.PA)((function(){const t=F.p4.get();if("success"!==(null==t?void 0:t.type))return null;const n=(0,s.basename)(t.repoRoot);return(0,e.jsx)(st,{component:()=>(0,e.jsx)(pt,{}),placement:"bottom",children:(0,e.jsxs)(i.Ls,{appearance:"icon","data-testid":"cwd-dropdown-button",children:[(0,e.jsx)(k.I,{icon:"folder",slot:"start"}),n]})})})),(0,o.PA)((function(){const t=F.p4.get(),n="success"===(null==t?void 0:t.type)?t.repoRoot:null,r=ae.get(),i=F.gZ.get();return(0,e.jsxs)(rt,{title:(0,e.jsx)(e.Fragment,{children:"Repository Info"}),icon:"folder","data-testid":"cwd-details-dropdown",children:[(0,e.jsx)(vt,{}),(0,e.jsx)(it,{title:(0,e.jsx)(e.Fragment,{children:"Active repository"}),children:(0,e.jsx)("code",{children:i})}),(0,e.jsx)(it,{title:(0,e.jsx)(e.Fragment,{children:"Repository Root"}),children:(0,e.jsx)("code",{children:n})}),null!=r?(0,e.jsx)(it,{title:(0,e.jsx)(e.Fragment,{children:"Remote"}),children:(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,e.jsx)(k.I,{style:{marginRight:"4px"},icon:"github"})," ",(0,e.jsx)(r.RepoInfo,{})]})}):null]})}))),vt=(0,o.PA)((function(){const t=F.gZ.get(),n=ft.get();if(n.length<2)return null;const r=Ee(n);return(0,e.jsxs)(it,{title:(0,e.jsx)(e.Fragment,{children:"Change active repository"}),children:[(0,e.jsx)(i.nD,{orientation:"vertical",value:t,onChange:e=>{const n=e.target.value;n!==t&&(a.A.postMessage({type:"changeCwd",cwd:n}),a.A.cwdChanged())},children:r.map(((r,o)=>{const s=n[o];return(0,e.jsx)(i.u1,{value:s,checked:s===t,tabIndex:0,children:(0,e.jsx)("span",{title:s,children:r},r)},r)}))}),(0,e.jsx)(i.uw,{})]})}));function mt(){return(0,e.jsx)(st,{component:()=>(0,e.jsx)("div",{className:"settings-dropdown",children:(0,e.jsx)(bt,{})}),placement:"bottom",children:(0,e.jsx)(i.Ls,{appearance:"icon","data-testid":"settings-gear-button",children:(0,e.jsx)(k.I,{icon:"gear"})})})}const gt=(0,H.e)({config:"gti.modify-behavior",default:"amend"}),bt=(0,o.PA)((function(){const t=(0,m.m)(),n=F.p4.get(),r=F.pq.get(),o=ve.get(),s=F.gZ.get(),l=ft.get(),c=l.length>1,u=Ee(l);return(0,e.jsxs)(e.Fragment,{children:[c?(0,e.jsx)(yt,{title:(0,e.jsx)(e.Fragment,{children:"Repository"}),children:(0,e.jsx)(i.yT,{value:s,onChange:e=>{const t=e.currentTarget.value;t!==s&&(a.A.postMessage({type:"changeCwd",cwd:t}),a.A.cwdChanged())},children:u.map(((t,n)=>{const r=l[n];return(0,e.jsx)(i.eH,{value:r,children:(0,e.jsx)("span",{title:r,children:t})},t)}))})}):null,"success"!==(null==n?void 0:n.type)?(0,e.jsx)(k.I,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(yt,{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)(i.yT,{value:dt.get(),onChange:e=>{const t=e.currentTarget.value;dt.set(t)},children:[(0,e.jsx)(i.eH,{value:"branch-name",children:"Branch name"}),(0,e.jsx)(i.eH,{value:"pr-title",children:"PR title (default)"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(yt,{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)(i.nK,{href:"https://graphite.dev/docs/updating-mid-stack-branches",target:"_blank",children:(0,e.jsx)(e.Fragment,{children:"Learn More"})})]}),children:(0,e.jsxs)(i.yT,{value:gt.get(),onChange:e=>{const t=e.currentTarget.value;gt.set(t)},children:[(0,e.jsx)(i.eH,{value:"commit",children:"Commit"}),(0,e.jsx)(i.eH,{value:"amend",children:"Amend (default)"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(yt,{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)(i.yT,{value:xe.get(),onChange:e=>{const t=e.currentTarget.value;xe.set(t)},children:[(0,e.jsx)(i.eH,{value:"draft",children:"Draft (default)"}),(0,e.jsx)(i.eH,{value:"published",children:"Published"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(yt,{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)(i.yT,{value:tt.get(),onChange:e=>{const t=e.currentTarget.value;tt.set(t)},children:[(0,e.jsx)(i.eH,{value:"infer",children:"Infer (default)"}),(0,e.jsx)(i.eH,{value:"manual",children:"Manual"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(yt,{title:"Branch name wrapping",description:(0,e.jsx)(e.Fragment,{children:"Configure text wrapping for branch names."}),children:(0,e.jsxs)(i.yT,{value:ht.get(),onChange:e=>{const t=e.currentTarget.value;ht.set(t)},children:[(0,e.jsx)(i.eH,{value:"wrap",children:"Wrap (default)"}),(0,e.jsx)(i.eH,{value:"nowrap",children:"Don't wrap"})]})}),(0,e.jsx)("hr",{className:"setting-hr"}),(0,e.jsx)(yt,{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)(i.yT,{value:Ce.get(),onChange:e=>{const t=e.currentTarget.value;Ce.set(t)},children:[(0,e.jsx)(i.eH,{value:"web",children:"Enabled (default)"}),(0,e.jsx)(i.eH,{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)(k.I,{icon:"loading"}):(0,e.jsxs)(e.Fragment,{children:["GTI version ",r.version," (",r.platformName,")"]}),(0,e.jsx)("br",{}),null==o?(0,e.jsx)(k.I,{icon:"loading"}):"ok"!==o.status?null:(0,e.jsxs)(e.Fragment,{children:["Ready to submit PRs as ",o.githubLogin]})]}),(0,e.jsxs)("div",{className:"bug-dropdown-actions",children:[(0,e.jsx)(i.Ls,{appearance:"secondary",onClick:()=>{t.openExternalLink("https://graphite.dev/docs/gti")},children:"View documentation"}),(0,e.jsx)(i.Ls,{appearance:"secondary",onClick:()=>{t.openExternalLink("https://community.graphite.dev")},children:"Help and feedback"})]})]})]})}));function yt(t){let{children:n,title:r,subtitle:i,description:o}=t;return(0,e.jsxs)(it,{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]})}const _t=["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"],wt=["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"],xt=(0,o.PA)((function(){var n,r;const o=Y.get(),a=F.Z3.get(),l=F.jn.get(),c=W.get(),u=(0,t.useRef)(null),d=(0,t.useRef)(null),[h,f]=(0,t.useState)(""),[v,m]=(0,t.useState)(""),g="manual"===tt.get();if((0,t.useEffect)((()=>{g||m("")}),[g]),a)return(0,e.jsx)(p.P,{title:"Failed to fetch uncommitted changes",error:a});if(0===o.length&&!c)return null;const b=null!==(r=null===(n=null==c?void 0:c.files)||void 0===n?void 0:n.every((e=>"RESOLVED"===e.status)))&&void 0!==r&&r,y=o.filter((e=>wt.includes(e.status))).length>0,_=!c&&y,w=!(null==l?void 0:l.partOfTrunk),x=gt.get(),C=y?"amend"===x||h?"amend"===x&&h?"Title not supported on amends":v?"Branch name not supported on modify":void 0:"Title required":"No changes staged",k=h?!v&&g?"Branch name required":void 0:"Title required";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Fe,{files:o,comparison:{type:s.ComparisonType.UncommittedChanges}}),c?(0,e.jsx)(Ct,{allConflictsResolved:b,conflicts:c}):_?(0,e.jsxs)("div",{className:"uncommitted-changes-actions",children:[g?(0,e.jsx)(i.yO,{placeholder:"Branch name",value:v,onKeyUp: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=d.current)||void 0===t||t.focus()}}):null,(0,e.jsx)(i.yO,{placeholder:"Title",ref:d,value:h,onKeyUp:e=>{var t,n,r;"Enter"!==e.key?f(null!==(r=null===(n=e.target)||void 0===n?void 0:n.value)&&void 0!==r?r:""):null===(t=u.current)||void 0===t||t.click()}}),(0,e.jsxs)("div",{className:"uncommitted-changes-buttons",children:[w?(0,e.jsx)(i.Ls,{className:"commit-modify-button",appearance:"secondary",disabled:!!C,title:C,onClick:()=>{(0,F.xj)(new Je(x,"commit"===x?Object.assign(Object.assign({},{title:"",description:""}),{title:null!=h?h:""}):void 0))},children:"commit"===x?"Commit to the current branch":"Modify the current branch"}):null,(0,e.jsx)(i.Ls,{className:"commit-modify-button",ref:u,disabled:!!k,title:k,onClick:()=>{var e;(0,F.xj)(new Ze(Object.assign(Object.assign({},{title:"",description:""}),{title:null!=h?h:""}),g?v:null,null!==(e=null==l?void 0:l.branch)&&void 0!==e?e:""))},children:"Create a new branch"})]})]}):null]})})),Ct=(0,o.PA)((function(t){let{conflicts:n,allConflictsResolved:r}=t;const o=F.IM.get().currentOperation,s=(null==o?void 0:o.operation)instanceof et&&0===o.exitCode,a=(null==o?void 0:o.operation)instanceof Xe&&0===o.exitCode,l=!!Q(et),c=!!Q(Xe),u=l||c||s||a;return(0,e.jsxs)("div",{className:"conflict-resolution-buttons",children:[(0,e.jsx)(i.Ls,{appearance:"secondary",disabled:u,onClick:()=>{(0,F.xj)(new Xe(n))},children:"Abort"},"abort"),(0,e.jsx)(i.Ls,{appearance:"primary",disabled:!r||u,"data-testid":"conflict-continue-button",onClick:()=>{(0,F.xj)(new et)},children:"Continue"},"continue")]})})),kt=(0,o.PA)((function(){var n,r;const o=(0,m.m)(),s=Y.get(),a=B.get(),{height:l,isCollapsed:c,setIsCollapsed:d,containerRef:h,resizerOnMouseDown:f}=function(){const e=3*document.body.clientHeight/4,[n,r]=(0,t.useState)(!1),i=(0,t.useRef)(null),o=K.get(),[s,a]=(0,t.useState)(null),l=s||o||Ot,c=(0,t.useRef)();(0,t.useEffect)((()=>{null!==s&&(null!==c.current&&clearTimeout(c.current),c.current=setTimeout((()=>{K.set(s),c.current=null}),500))}),[s]);const[u,d]=(0,t.useState)(!1),[h,f]=(0,t.useState)(void 0),[p,v]=(0,t.useState)(0),m=(0,t.useCallback)((e=>{e.preventDefault(),f(e.clientY),i.current&&v(i.current.getBoundingClientRect().top-e.clientY),d(!0)}),[]),g=t=>{if(n||!u||!h||void 0===l||!i.current)return;const r=i.current.getBoundingClientRect();if(!n&&r){const n=r.bottom-t.clientY-p;a(Math.min(Math.max(Ot,n),e))}},b=()=>{d(!1)};return(0,t.useEffect)((()=>(document.addEventListener("mousemove",g),document.addEventListener("mouseup",b),document.addEventListener("mouseleave",b),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",b),document.removeEventListener("mouseleave",b)}))),(0,t.useMemo)((()=>({resizerOnMouseDown:m,containerRef:i,isCollapsed:n,setIsCollapsed:r,height:l})),[l,i,m,n,r])}();if((0,t.useEffect)((()=>(0,u.mJ)((()=>B.get()),(()=>d(!1)))),[d]),(0,t.useEffect)((()=>(0,u.mJ)((()=>W.get()),(()=>B.set(void 0)))),[]),!a&&0===s.length&&!W.get())return null;const p=!a&&s.length>0&&!W.get(),v=s.some((e=>_t.includes(e.status))),g=s.filter((e=>wt.includes(e.status))),b=g.length>0,y=a?null:(0,u.EW)((()=>{var e,t,n;return W.get()?{num:null!==(n=null===(t=null===(e=W.get())||void 0===e?void 0:e.files)||void 0===t?void 0:t.length)&&void 0!==n?n:0,title:" conflicting files"}:s.length>0?{num:g.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:f}),(0,e.jsxs)("div",{className:"bottom-panel-title",onClick:()=>d((e=>!e)),children:[(0,e.jsx)(k.I,{icon:c?"chevron-right":"chevron-down",slot:"start"}),(0,e.jsx)("span",{className:"bottom-panel-title-text",children:null!==(r=null===(n=V.get())||void 0===n?void 0:n.branch)&&void 0!==r?r:W.get()?"UNRESOLVED CONFLICTS":"UNCOMMITTED CHANGES"}),y?(0,e.jsx)("span",{className:"bottom-panel-num-files",title:"".concat(y.num).concat(y.title),children:y.num}):null,(0,e.jsx)("div",{className:"bottom-panel-right",children:p?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ls,{disabled:!v,appearance:"icon",onClick:e=>{e.stopPropagation(),(0,F.xj)(new j)},children:(0,e.jsx)(k.I,{icon:"add"})},"allall"),(0,e.jsx)(i.Ls,{disabled:!b,appearance:"icon",onClick:e=>{e.stopPropagation(),(0,F.xj)(new L)},children:(0,e.jsx)(k.I,{icon:"remove"})},"reset"),(0,e.jsx)(i.Ls,{title:"Discard all changes",appearance:"icon",onClick:e=>{e.stopPropagation();const t=s.map((e=>e.path));o.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((e=>{e&&((0,F.xj)(new N),(0,F.xj)(new M))}))},children:(0,e.jsx)(k.I,{icon:"trashcan"})})]}):null}),(0,e.jsx)(te,{})]}),c?null:(0,e.jsx)("div",{style:{height:"".concat(l,"px")},ref:h,className:"bottom-panel-content",children:a?(0,e.jsx)(Ye,{}):(0,e.jsx)(xt,{})})]})})),Ot=120;function St(e){let{children:n,hideUntil:r}=e;const[i,o]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=r.getTime()-Date.now();if(e>0){o(!1);const t=setTimeout((()=>{o(!0)}),e);return()=>clearTimeout(t)}o(!0)}),[r,o]),i?n:null}function Et(t){let{operation:n,className:r}=t;const 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((e=>{if("object"==typeof e)switch(e.type){case"repo-relative-file":return e.path;case"succeedable-revset":return e.revset}return e})).join(" ")})}const At=(0,o.PA)((function(){var t;const n=F.IM.get(),r=F.wS.get(),o=(0,F.su)(),s=F.p4.get();if("success"!==(null==s?void 0:s.type))return null;const a=n.currentOperation;if(null==a)return(0,e.jsx)("div",{className:"progress-container","data-testid":"progress-container"});const l=a.operation.getDescriptionForDisplay(),c=(0,e.jsx)(Et,{operation:a.operation,className:"progress-container-command"});let u,d=null;if(null==a.exitCode){u=(0,e.jsx)(k.I,{icon:"loading"});const n=1e4,r=new Date(((null===(t=a.startTime)||void 0===t?void 0:t.getTime())||0)+n);d=(0,e.jsx)(St,{hideUntil:r,children:(0,e.jsxs)(i.Ls,{appearance:"secondary","data-testid":"abort-button",disabled:a.aborting,onClick:()=>{o(a.operation.id)},children:[(0,e.jsx)(k.I,{slot:"start",icon:a.aborting?"loading":"stop-circle"}),(0,e.jsx)(e.Fragment,{children:"Abort"})]})})}else u=0===a.exitCode?(0,e.jsx)(k.I,{icon:"pass","aria-label":"Command exited successfully"}):a.aborting?(0,e.jsx)(k.I,{icon:"stop-circle","aria-label":"Command aborted"}):(0,e.jsx)(k.I,{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)(st,{className:"progress-command-tooltip",component:()=>{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)(Et,{operation:a.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=a.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((t=>(0,e.jsx)("div",{id:t.id,className:"queued-operation",children:(0,e.jsx)(Et,{operation:t})},t.id)))]}):null]})})},children:(0,e.jsx)(k.I,{title:"View command output",icon:"info"})})]}),d]})}));function Tt(){return(0,e.jsx)("div",{"data-testid":"loading-spinner",children:(0,e.jsx)(k.I,{icon:"loading",size:"L"})})}function Rt(t){let{children:n}=t;return(0,e.jsx)("div",{className:"center-container",children:n})}class Dt extends I{constructor(){super("CreateEmptyInitialCommit")}getArgs(){return["internal-only","init"]}}Dt.opName="CreateEmptyInitialCommit";const It=(0,o.PA)((function(){var n;const[r,o]=(0,t.useState)(void 0),s=F.IM.get().currentOperation;return null==s||null==s.exitCode||0===s.exitCode||s.aborting||s===r?null:(0,e.jsx)(p.P,{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)(Et,{operation:s.operation,long:!0})}),(0,e.jsx)("pre",{children:(null===(n=s.commandOutput)||void 0===n?void 0:n.join(""))||"No output"})]}),buttons:[(0,e.jsx)(i.Ls,{appearance:"secondary",onClick:e=>{o(s),e.preventDefault(),e.stopPropagation()},children:(0,e.jsx)(e.Fragment,{children:"Dismiss"})},"0")]})})),jt=6e4,Pt=36e5,Nt=24*Pt,Mt=7*Nt,Lt=365*Nt,zt=Lt/12,Ft=[[42e3,"now"],[9e4,"1m"],[36e5,"m",jt],[54e5,"1h"],[Nt,"h",Pt],[2*Nt,"1d"],[7*Nt,"d",Nt],[1.5*Mt,"1w"],[zt,"w",Mt],[1.5*zt,"1mo"],[Lt,"mo",zt],[1.5*Lt,"1y"],[Number.MAX_VALUE,"y",Lt]],Bt=[[42e3,"less than a minute"],[9e4,"one minute"],[36e5,"minutes",jt],[54e5,"one hour"],[Nt,"hours",Pt],[2*Nt,"one day"],[7*Nt,"days",Nt],[1.5*Mt,"one week"],[zt,"weeks",Mt],[1.5*zt,"one month"],[Lt,"months",zt],[1.5*Lt,"one year"],[Number.MAX_VALUE,"years",Lt]],Vt=[[42e3,"just now"],[9e4,"a minute ago"],[36e5,"minutes ago",jt],[54e5,"an hour ago"],[Nt,"hours ago",Pt],[2*Nt,"yesterday"],[7*Nt,"days ago",Nt],[1.5*Mt,"a week ago"],[zt,"weeks ago",Mt],[1.5*zt,"a month ago"],[Lt,"months ago",zt],[1.5*Lt,"a year ago"],[Number.MAX_VALUE,"years ago",Lt]],Ut=[[42e3,"just now"],[9e4,"1 minute ago"],[36e5,"minutes ago",jt],[54e5,"1 hour ago"],[Nt,"hours ago",Pt],[2*Nt,"yesterday"],[7*Nt,"days ago",Nt],[1.5*Mt,"1 week ago"],[zt,"weeks ago",Mt],[1.5*zt,"1 month ago"],[Lt,"months ago",zt],[1.5*Lt,"1 year ago"],[Number.MAX_VALUE,"years ago",Lt]];function Ht(e,t){let n=e,r=t.reference;n instanceof Date&&(n=n.getTime()),r||(r=(new Date).getTime()),r instanceof Date&&(r=r.getTime());const i=r-n,o=t.useRelativeForm?Bt:t.useShortVariant?Ft:t.useNumbersOnly?Ut:Vt;for(const[e,n,r]of o)if(i<e)return"number"==typeof r?Math.round(i/r)+(t.useShortVariant?"":" ")+n:n;throw new Error("This should never be reached.")}function Kt(t){let{date:n,reference:r,useShortVariant:i,useNumbersOnly:o,useRelativeForm:s}=t;return(0,e.jsx)(e.Fragment,{children:Ht(n,{reference:r,useShortVariant:i,useNumbersOnly:o,useRelativeForm:s})})}class qt extends I{constructor(e){super("DeleteBranchOperation"),this.branch=e}getArgs(){return["delete",this.branch,"--force"]}makeOptimisticApplier(e){const{treeMap:t}=e;if(null!=t.get(this.branch))return(e,t,n)=>e.info.branch===this.branch?{info:null}:{info:e.info,children:e.children,previewType:t,childPreviewType:n}}}qt.opName="DeleteBranch";class $t extends I{constructor(e){super("HideOperation"),this.source=e}getArgs(){return["untrack","--force",this.source]}makeOptimisticApplier(e){const{treeMap:t}=e;if(null!=t.get(this.source))return(e,t,n)=>e.info.branch===this.source?{info:null}:{info:e.info,children:e.children,previewType:t,childPreviewType:n}}}$t.opName="Hide";class Yt extends I{constructor(e,t){super("PopOperation"),this.originalHeadCommit=e,this.files=t}getArgs(){return["pop"]}makeOptimisticApplier(e){var t;if((null===(t=e.headCommit)||void 0===t?void 0:t.branch)===this.originalHeadCommit.branch)return(e,t)=>e.info.branch===this.originalHeadCommit.branch?{info:null}:this.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}}makeOptimisticUncommittedChangesApplier(e){const t=this.files,n=new Set(e.uncommittedChanges.map((e=>e.path)));if(!t.every((e=>n.has(e.path))))return e=>[...e,...t.filter((e=>!n.has(e.path)))]}}Yt.opName="Pop";class Wt extends I{constructor(e,t){super("RebaseOperation"),this.source=e,this.destination=t}getArgs(){return["move","--onto",this.destination,"--source",this.source]}makePreviewApplier(e){const{treeMap:t}=e,n=t.get(this.source);if(null==n)return;const r=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});let i;return(e,t)=>e.info.branch===this.source?e.info.parents[0]===i?{info:e.info,children:e.children,previewType:$.REBASE_ROOT,childPreviewType:$.REBASE_DESCENDANT}:{info:e.info,children:e.children,previewType:$.REBASE_OLD,childPreviewType:$.REBASE_OLD}:e.info.branch===this.destination?(i=e.info.branch,r.info.parents=[i],{info:e.info,children:[...e.children,r]}):{info:e.info,children:e.children,previewType:t,childPreviewType:t}}makeOptimisticApplier(e){const{treeMap:t}=e,n=t.get(this.source);if(null==n)return;const r=Object.assign(Object.assign({},n),{info:Object.assign({},n.info)});let i;return(e,t,n)=>e.info.branch===this.source?e.info.parents[0]===i?{info:e.info,children:e.children,previewType:$.REBASE_OPTIMISTIC_ROOT,childPreviewType:$.REBASE_OPTIMISTIC_DESCENDANT}:{info:null}:e.info.branch===this.destination?(i=e.info.branch,r.info.parents=[i],{info:e.info,children:[...e.children,r]}):{info:e.info,children:e.children,previewType:t,childPreviewType:n}}}Wt.opName="Rebase";class Gt extends I{constructor(e){super("RestackOperation"),this.branch=e}getArgs(){return["restack","--branch",this.branch]}makeOptimisticApplier(e){if(null!=e.treeMap.get(this.branch))return(e,t)=>e.info.branch===this.branch?{info:Object.assign(Object.assign({},e.info),{needsRestack:!1}),children:e.children}:{info:e.info,children:e.children}}}Gt.opName="restack";var Qt=n(6865);const Xt=(0,o.PA)((function(t){let{diffId:n}=t;const r=ae.get();return null==r?null:(0,e.jsx)(en,{provider:r,diffId:n,children:(0,e.jsx)(Zt,{diffId:n,provider:r})})})),Jt=(0,o.PA)((function(n){let{diff:r,children:i,url:o,provider:s}=n;const a=(0,m.m)(),l=(0,t.useCallback)((()=>function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function*(){var e;yield a.copyToClipboard(null!==(e=null==r?void 0:r.number)&&void 0!==e?e:"")}))),[null==r?void 0:r.number,a]),c=d((()=>[{label:(0,e.jsxs)(e.Fragment,{children:['Copy PR number "',null==r?void 0:r.number,'"']}),onClick:l}]));return(0,e.jsx)("a",{href:o,className:"diff-badge github-diff-badge",onContextMenu:r?c:void 0,children:(0,e.jsx)(s.DiffBadgeContent,{diff:r,children:i})})})),Zt=(0,o.PA)((function(t){let{diffId:n,provider:r}=t;const i=F.p4.get(),o=le(n).get();if(o.error||null!=i&&"success"!==(null==i?void 0:i.type))return(0,e.jsx)(tn,{number:r.formatDiffNumber(n),provider:r});if(null==(null==o?void 0:o.value)||null==i||"none"===i.codeReviewSystem.type)return null;const s=o.value;return(0,e.jsx)("div",{className:"diff-info github-diff-info","data-testid":"github-diff-info",children:(0,e.jsx)(Jt,{provider:r,diff:s,url:"".concat(i.profile.appUrl,"/github/pr/").concat(i.codeReviewSystem.owner,"/").concat(i.codeReviewSystem.repo,"/").concat(s.number)})})}));class en extends t.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){const{props:t,state:n}=this;return null!=n.error?(0,e.jsx)(tn,{provider:t.provider,number:t.provider.formatDiffNumber(t.diffId)}):t.children}}function tn(t){let{number:n,provider:r}=t;return(0,e.jsxs)("span",{className:"diff-error diff-info","data-testid":"github-error",children:[(0,e.jsx)(Jt,{provider:r,children:(0,e.jsx)(k.I,{icon:"error"})})," ",n]})}const nn=t=>{let{depth:n,isCurved:r,dashedLevels:i,branchless:o,child:s,highlighted:a,checkedOut:l}=t;return(0,e.jsx)("div",{className:"branch-indicator-container",children:Array.from({length:n+1},((t,c)=>{const u=i.includes(c);return c!==n?(0,e.jsx)(sn,{dashed:u},c):r?(0,e.jsx)(on,{dashed:u,highlighted:a,end:o?"no-circle":"".concat(s,"-child"),filled:l},c):o?(0,e.jsx)(sn,{dashed:u,isLast:!0},c):(0,e.jsx)(rn,{dashed:u,highlighted:a,child:s,filled:l},c)}))})},rn=t=>{let{dashed:n,child:r,highlighted:i,filled:o}=t;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)(sn,{dashed:n})]})},on=t=>{let{dashed:n,end:r,highlighted:i,filled:o}=t;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})]})},sn=t=>{let{isLast:n,dashed:r}=t;const 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})})})},an=(0,o.PA)((function(n){let{depth:r,tree:o,firstChildNeedsRestack:a,isIndicatorCurved:l,dashedLevels:c}=n;var u;const h=(0,m.m)(),{info:f,previewType:p}=o,v=o.children.length>0,g=f.partOfTrunk,b=W.get(),y=Oe.has(f.branch),_=function(e){switch(e){case $.REBASE_OLD:case $.REBASE_DESCENDANT:case $.REBASE_ROOT:case $.HIDDEN_DESCENDANT:case $.NON_ACTIONABLE_COMMIT:return!0;case $.REBASE_OPTIMISTIC_ROOT:case $.REBASE_OPTIMISTIC_DESCENDANT:case $.GOTO_DESTINATION:case $.GOTO_PREVIOUS_LOCATION:case $.STACK_EDIT_ROOT:case $.STACK_EDIT_DESCENDANT:case void 0:return!1}}(p),w=(0,t.useCallback)((()=>{X.k.set({comparison:{type:s.ComparisonType.Committed,hash:f.branch},visible:!0})}),[f]),x=p===$.REBASE_ROOT||p===$.REBASE_DESCENDANT,C=(0,t.useCallback)((()=>{x||(0,F.xj)(new ne(f.branch))}),[x,f.branch]),O=(0,t.useCallback)((()=>{ke(f.branch)}),[f.branch]),S=de(f.branch),E="Submit ".concat(S.length>1?"".concat(S.length," PRs"):"PR"),A=le(null===(u=f.pr)||void 0===u?void 0:u.number).get(),T=A.value&&"OPEN"!==A.value.state,R=d((()=>{const t=[{label:(0,e.jsx)(e.Fragment,{children:"Copy branch name"}),onClick:()=>function(e,t,n,r){return new(n||(n=Promise))((function(t,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function*(){yield h.copyToClipboard(f.branch)}))}];if(_||f.isHead||t.push({label:(0,e.jsx)(e.Fragment,{children:"Checkout branch"}),onClick:C}),!g&&f.isHead&&!v&&!f.pr){const n=_e(f.branch).get();t.push({label:(0,e.jsx)(e.Fragment,{children:"Pop branch"}),onClick:()=>{var e;return(0,F.xj)(new Yt(f,(null===(e=n.data)||void 0===e?void 0:e.files)||[]))}})}return g||h.openDiff||t.push({label:(0,e.jsx)(e.Fragment,{children:"View changes in branch"}),onClick:w}),g||_||t.push({label:(0,e.jsx)(e.Fragment,{children:"Untrack"}),onClick:()=>{h.confirm("Are you sure you want to untrack ".concat(f.branch,"?").concat(v?" This will also untrack upstack branches.":"")).then((e=>e&&(0,F.xj)(new $t(f.branch))))}}),g||_||T||t.push({label:(0,e.jsx)(e.Fragment,{children:"Delete branch"}),onClick:()=>{h.confirm("Are you sure you want to delete ".concat(f.branch,"? Deleted branches cannot be recovered.")).then((e=>e&&(0,F.xj)(new qt(f.branch))))}}),t})),D=f.isHead||(null==b?void 0:b.branchName)===f.branch,{commitBeingDragged:I}=dn,j=I&&F.TW.get().get(I.branch),P=j&&(0,Qt.K9)(f.branch,j),N=F.p4.get(),M="success"===(null==N?void 0:N.type)&&N.trunkBranch,L=M&&f.branch!==M&&!f.parents.includes(M)&&he(z=o.info.branch).every((e=>{var t;if(e.partOfTrunk)return!0;const n=le(null===(t=e.pr)||void 0===t?void 0:t.number).get(),r=n.value&&"OPEN"!==n.value.state;return e.branch!==z===r}));var z;const V=Y.get().length>0,U=L?(0,e.jsx)(Se,{disabled:_,toHighlight:un(o),children:(0,e.jsx)(i.Ls,{appearance:"icon",onClick:()=>{(0,F.xj)(new Wt(o.info.branch,M))},disabled:_,title:"Move to ".concat(M),children:(0,e.jsx)("div",{className:"restack-button",children:(0,e.jsx)(k.I,{size:"SM",icon:"newline"})})})}):f.needsRestack?(0,e.jsx)(Se,{disabled:_,title:"The parent branch has been updated, and children branches need to be restacked to incorporate those changes.",toHighlight:un(o),children:(0,e.jsx)(i.Ls,{appearance:"icon",title:"Restack",onClick:()=>{(0,F.xj)(new Gt(o.info.branch))},disabled:_,children:(0,e.jsx)(k.I,{size:"SM",icon:"fold-up"})})}):null,H=W.get(),K=D&&V&&!H,q="pr-title"===dt.get()&&f.title,G=!g&&function(e){switch(e){case $.REBASE_DESCENDANT:case $.REBASE_OLD:case $.HIDDEN_DESCENDANT:return!1;case $.REBASE_ROOT:case $.REBASE_OPTIMISTIC_DESCENDANT:case $.REBASE_OPTIMISTIC_ROOT:case $.GOTO_DESTINATION:case $.GOTO_PREVIOUS_LOCATION:case $.STACK_EDIT_ROOT:case $.STACK_EDIT_DESCENDANT:case $.NON_ACTIONABLE_COMMIT:case void 0:return!0}}(p),Q=G&&0===F.mD.get().length;return(0,e.jsxs)(e.Fragment,{children:[K?(0,e.jsx)(cn,{depth:r+(v?1:0),isIndicatorCurved:v,dashedLevels:c}):null,!p&&dn.branchBeingDraggedOver===f.branch&&(0,e.jsx)("div",{className:"branch-drag-over"}),(0,e.jsxs)(pn,{className:"branch"+((H&&D&&void 0===B.get()||B.get()===f.branch)&&!x?" branch-focused":"")+(D?" branch-checked-out":"")+(P?" branch-in-stack-being-dragged":"")+(null!=p?" branch-preview-".concat(p):""),commit:f,draggable:G,onClick:()=>{x||B.set(D&&H?void 0:f.branch)},onDoubleClick:C,onContextMenu:R,children:[(0,e.jsx)(nn,{child:v||K?a?"dashed":"solid":"no",depth:r,isCurved:l,dashedLevels:[...c,...f.needsRestack?[r]:[]],highlighted:y,checkedOut:D}),D&&p!==$.REBASE_ROOT&&p!==$.REBASE_DESCENDANT?(0,e.jsx)("div",{className:"branch-checkout-triangle"}):null,(0,e.jsxs)("span",{title:q?f.branch:f.title,className:"branch-name"+("wrap"===ht.get()?" branch-name-wrap":" branch-name-nowrap")+(D&&H?" unresolved-conflicts":""),children:[o.previewType===$.REBASE_ROOT?"Move ":"",q?f.title:(0,e.jsx)("code",{children:f.branch}),o.previewType===$.REBASE_ROOT?"?":"",D&&H?" (unresolved conflicts)":""]}),D&&H||o.previewType===$.REBASE_DESCENDANT?null:(0,e.jsx)("div",{className:"branch-end",children:o.previewType===$.REBASE_ROOT?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ls,{appearance:"icon",onClick:F.dM,children:(0,e.jsx)(k.I,{size:"SM",icon:"close"})}),(0,e.jsx)(i.Ls,{appearance:"icon",onClick:F.i2,children:(0,e.jsx)(k.I,{size:"SM",icon:"check"})})]}):(0,e.jsxs)(e.Fragment,{children:[U,T?(0,e.jsx)(i.Ls,{appearance:"icon",title:"Delete branch",onClick:()=>{h.confirm("Are you sure you want to delete ".concat(f.branch,"? Deleted branches cannot be recovered.")).then((e=>e&&(0,F.xj)(new qt(f.branch))))},children:(0,e.jsx)(k.I,{size:"SM",icon:"trashcan"})}):null,me.get()&&!_&&!fe(f.branch)&&S.length>0&&!pe(f.branch)&&(0,e.jsx)(Se,{toHighlight:S,title:E,children:(0,e.jsx)(i.Ls,{appearance:"icon",onClick:e=>{e.stopPropagation(),O()},children:(0,e.jsx)(k.I,{size:"SM",icon:"cloud-upload"})})}),(0,e.jsx)("div",{className:"pr-badge-container",children:f.pr?(0,e.jsx)(Xt,{diffId:f.pr.number}):null}),(0,e.jsx)(ln,{date:new Date(f.date)}),(0,e.jsx)("div",{className:"branch-gripper"+(Q?"":" branch-gripper-disabled"),title:Q?"Drag and drop to move onto another branch":"Cannot move a branch while you have uncommitted changes",children:(0,e.jsx)(k.I,{size:"SM",icon:"gripper"})})]})})]})]})}));function ln(t){let{date:n}=t;return(0,e.jsx)("span",{className:"branch-date",children:(0,e.jsx)(Kt,{date:n,useShortVariant:!0})})}const cn=(0,o.PA)((function(t){let{depth:n,isIndicatorCurved:r,dashedLevels:i}=t;const o=W.get(),s=Y.get();return o||0!==s.length?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"branch"+(void 0===B.get()?" branch-focused":""),onClick:(0,u.XI)((()=>{B.set(void 0)})),children:[(0,e.jsx)(nn,{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 un(e){return[e.info,...e.children.flatMap((e=>un(e)))]}const dn=(0,u.sH)({commitBeingDragged:void 0,branchBeingDraggedOver:void 0}),hn=(0,u.XI)((e=>{if(!dn.commitBeingDragged||e.branch===dn.commitBeingDragged.branch)return void(dn.branchBeingDraggedOver=void 0);const t=F.TW.get().get(dn.commitBeingDragged.branch);!t||(0,Qt.K9)(e.branch,t)||dn.commitBeingDragged.parents.includes(e.branch)?dn.branchBeingDraggedOver=void 0:dn.branchBeingDraggedOver=e.branch})),fn=(0,u.XI)((()=>{const{commitBeingDragged:e,branchBeingDraggedOver:t}=dn;e&&t&&F.YK.set(new Wt(e.branch,t)),dn.commitBeingDragged=void 0,dn.branchBeingDraggedOver=void 0})),pn=(0,o.PA)((function(n){let{commit:r,children:i,className:o,draggable:s,onClick:a,onDoubleClick:l,onContextMenu:c}=n;const d=(0,t.useRef)(null),h=(0,t.useCallback)((e=>{const t=d.current;if(F.mD.get().length>0||!t)return void e.preventDefault();const n=t.cloneNode(!0);n.style.opacity="0",document.body.appendChild(n),e.dataTransfer.setDragImage(n,0,0),(0,u.h5)((()=>{dn.commitBeingDragged=r})),e.target.addEventListener("dragend",fn)}),[r]),f=(0,t.useCallback)((()=>hn(r)),[r]);return(0,e.jsx)("div",{ref:d,className:o,onDragStart:h,onDragEnter:f,draggable:s,onClick:a,onDoubleClick:l,onKeyPress:e=>{"Enter"===e.key&&(null==a||a(e))},onContextMenu:c,tabIndex:0,"data-testid":"draggable-commit",children:i})})),vn=(0,ie.s)({default:"",effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("fetchedRepoMessage",(e=>{t(e.message)}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"fetchRepoMessage"}))),e=>{let{setSelf:t}=e;return a.A.onCwdChanged((()=>t("")))}]}),mn=(0,o.PA)((function(){const t=vn.get();return t?(0,e.jsx)(c,{title:t}):null})),gn=(0,u.EW)((()=>G.get().trees.map((e=>wn({tree:e}))))),bn=(0,o.PA)((function(){!function(){const e=F.Yr.get(),n=F.HY.get(),r=F.jn.get(),i=F.TW.get(),o=F.Sn.get(),a=F.C3.get(),l=F.IM.get();(0,t.useEffect)((()=>{var t,c,u,d;const h=[],f={trees:n,headCommit:r,treeMap:i},p={uncommittedChanges:null!==(t=o.files)&&void 0!==t?t:[]},v={conflicts:a},m=l.currentOperation;for(const e of[...l.operationHistory,m])e&&h.push(g(e,f,p,v));if(h.some(s.notEmpty)){const e=[...l.operationHistory],t=null==l.currentOperation?void 0:Object.assign({},l.currentOperation);for(let t=0;t<h.length-1;t++){if(null===(c=h[t])||void 0===c?void 0:c.commits){const n=e[t];n&&(e[t]=Object.assign(Object.assign({},n),{hasCompletedOptimisticState:!0}))}if(null===(u=h[t])||void 0===u?void 0:u.files){const n=e[t];n&&(e[t]=Object.assign(Object.assign({},n),{hasCompletedUncommittedChangesOptimisticState:!0}))}if(null===(d=h[t])||void 0===d?void 0:d.conflicts){const n=e[t];n&&(e[t]=Object.assign(Object.assign({},n),{hasCompletedMergeConflictsOptimisticState:!0}))}}const n=h[h.length-1];n&&null!=t&&(n.commits&&(t.hasCompletedOptimisticState=!0),n.files&&(t.hasCompletedUncommittedChangesOptimisticState=!0),n.conflicts&&(t.hasCompletedMergeConflictsOptimisticState=!0)),F.IM.set({operationHistory:e,currentOperation:t})}function g(t,n,r,i){var a,l,c,u,d;let h=!1,f=!1,p=!1;if(null!=t&&!t.hasCompletedUncommittedChangesOptimisticState)if(null!=t.operation.makeOptimisticUncommittedChangesApplier){const e=t.operation.makeOptimisticUncommittedChangesApplier(r);null!=t.exitCode&&(null==e||0!==t.exitCode?h=!0:o.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(a=q())||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){const e=t.operation.makeOptimisticMergeConflictsApplier(i);null!=t.exitCode&&(null==e||0!==t.exitCode?p=!0:(null!==(c=null===(l=i.conflicts)||void 0===l?void 0:l.fetchStartTimestamp)&&void 0!==c?c:0)>(0,s.unwrap)(t.endTime).valueOf()&&(null===(u=q())||void 0===u||u.track("OptimisticConflictsStateForceResolved",{extras:{operation:(v=t.operation,v.constructor.opName)}}),p=!0))}else null!=t.exitCode&&(p=!0);var v;if(null!=t&&!t.hasCompletedOptimisticState)if(null!=t.operation.makeOptimisticApplier){const r=t.operation.makeOptimisticApplier(n);null!=t.exitCode&&(null==r||0!==t.exitCode?f=!0:e.fetchStartTimestamp>(0,s.unwrap)(t.endTime).valueOf()&&(null===(d=q())||void 0===d||d.track("OptimisticCommitsStateForceResolved",{extras:{}}),f=!0))}else null!=t.exitCode&&(f=!0);if(f||h||p)return{commits:f,files:h,conflicts:p}}}),[l,r,n,i,o,a,e])}();const n=F.AQ.get();return null==n&&0===gn.get().length?(0,e.jsx)(Rt,{children:(0,e.jsx)(Tt,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(mn,{}),(0,e.jsx)(It,{}),n?(0,e.jsx)(yn,{error:n}):null,(0,e.jsx)(e.Fragment,{children:gn.get().map((t=>{var n,r;return(0,e.jsx)(_n,{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,u.XI)((()=>B.set(void 0))),className:"tree-line-extend"})]})})),yn=(0,o.PA)((function(t){let{error:n}=t;return n.message===s.ErrorShortMessages.NoCommitsFetched?(0,e.jsx)(p.P,{title:"No commits found",description:"If this is a new repository, try adding an initial commit first.",error:n,buttons:[(0,e.jsx)(i.Ls,{appearance:"secondary",onClick:()=>{(0,F.xj)(new Dt)},children:"Create empty initial commit"},"0")]}):(0,e.jsx)(p.P,{title:"Failed to fetch commits",error:n})})),_n=(0,o.PA)((function(t){let{branchTreeModel:n}=t;return(0,e.jsx)(e.Fragment,{children:n.map((t=>{let{tree:n,depth:r,isFirstChild:i,dashedLevels:o,firstChildNeedsRestack:s}=t;return(0,e.jsx)(an,{depth:r,tree:n,firstChildNeedsRestack:s,isIndicatorCurved:!i,dashedLevels:o},n.info.branch+(n.previewType?"/"+n.previewType:""))}))})}));function wn(e){let{tree:t,depth:n=0,isFirstChild:r=!0,dashedLevels:i=[]}=e;var o,a;const l=t.children.reduce(((e,t)=>e.find((e=>e.info.branch===t.info.branch&&e.previewType===t.previewType))?e:[...e,t]),[]),c=null!==(a=null===(o=l[0])||void 0===o?void 0:o.info.needsRestack)&&void 0!==a&&a;return[...l.sort(((e,t)=>{const 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(((e,t)=>{const r=0===t,o=n+(r?0:1),s=[...r?i.filter((e=>e!==o)):i,...!r&&c?[n]:[]];return wn({tree:e,isFirstChild:r,depth:o,dashedLevels:s})})).filter(s.notEmpty),{tree:t,depth:n,isFirstChild:r,firstChildNeedsRestack:c,dashedLevels:i}]}n(8219);const xn=(0,t.lazy)((()=>function(e,t,n,r){return new(n||(n=Promise))((function(e,t){function i(e){try{s(r.next(e))}catch(e){t(e)}}function o(e){try{s(r.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,o)}s((r=r.apply(undefined,[])).next())}))}(0,0,void 0,(function*(){return Promise.all([n.e(447),n.e(603)]).then(n.bind(n,8603)).then((e=>({default:e.ComparisonView})))})))),Cn=(0,o.PA)((function(){const n=X.k.get();function r(e){(0,u.h5)((()=>{const t=X.k.get();X.k.set(t.comparison===e?{visible:!n.visible,comparison:e}:{visible:!0,comparison:e})}))}return x("Escape",(()=>{(0,u.h5)((()=>{const e=X.k.get();X.k.set(Object.assign(Object.assign({},e),{visible:!1}))}))})),x("OpenUncommittedChangesComparisonView",(()=>{r({type:s.ComparisonType.UncommittedChanges})})),x("OpenHeadChangesComparisonView",(()=>{r({type:s.ComparisonType.HeadChanges})})),n.visible?(0,e.jsx)(O,{className:"comparison-view-modal",children:(0,e.jsx)(t.Suspense,{fallback:(0,e.jsx)(k.I,{icon:"loading"}),children:(0,e.jsx)(xn,{comparison:n.comparison})})}):null}));class kn extends I{constructor(e){super("DownstackGetOperation"),this.branchName=e}getArgs(){return["get",this.branchName]}}kn.opName="DownstackGet";class On extends I{constructor(e){super("TrackOperation"),this.options=e}getArgs(){return["track",this.options.branchToTrack,"--parent",this.options.parent]}}On.opName="Track";const Sn=(0,ie.s)({default:void 0,effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("fetchedAllBranches",(e=>{t(e.message)}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"fetchAllBranches"})))]}),En=(0,o.PA)((function(){const t=F.mD.get().length>0;return(0,e.jsx)(st,{component:t=>(0,e.jsx)(Rn,{dismiss:t}),placement:"bottom",children:(0,e.jsx)(i.Ls,{title:t?"You have uncommitted changes.":"Get branch",disabled:t,appearance:"icon","data-testid":"download-commits-tooltip-button",children:(0,e.jsx)(k.I,{icon:"cloud-download"})})})})),An=(0,u.EW)((()=>{var e;return null===(e=Sn.get())||void 0===e?void 0:e.branches.filter((e=>!F.uA.get().some((t=>t.branch===e))))})),Tn=(0,u.l_)({selectedBranchToTrack:void 0,setSelectedBranchToTrack(e){this.selectedBranchToTrack=e},trackParent:void 0,setTrackParent(e){this.trackParent=e},potentialParents:void 0,fetchPotentialParentsDisposable:void 0});(0,u.mJ)((()=>Tn.selectedBranchToTrack),(e=>{var t;null===(t=Tn.fetchPotentialParentsDisposable)||void 0===t||t.dispose(),Tn.fetchPotentialParentsDisposable=void 0,e&&(a.A.postMessage({type:"fetchPotentialParents",branchToTrack:e}),Tn.fetchPotentialParentsDisposable=a.A.onMessageOfType("fetchedPotentialParents",(e=>{Tn.potentialParents=e.message.potentialParents.filter((e=>F.uA.get().some((t=>t.branch===e))))})))}));const Rn=(0,o.PA)((function(n){let{dismiss:r}=n;var o,s,a,l;const c=F.mD.get().length>0,[u,d]=(0,t.useState)(""),h=(0,t.useRef)(null);(0,t.useEffect)((()=>{h.current&&h.current.focus()}),[h]);const f=null===(o=An.get())||void 0===o?void 0:o.map((t=>(0,e.jsx)(i.eH,{value:t,children:t},t))),p=null===(s=Tn.potentialParents)||void 0===s?void 0:s.map((t=>(0,e.jsx)(i.eH,{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)(i.nK,{href:"https://graphite.dev/docs/track-branches",target:"_blank",children:(0,e.jsx)(e.Fragment,{children:"Learn More"})})]}),(0,e.jsxs)(i.yT,{value:null!==(a=Tn.selectedBranchToTrack)&&void 0!==a?a:"",onChange:e=>{Tn.setSelectedBranchToTrack(e.currentTarget.value),Tn.setTrackParent(void 0)},children:[(0,e.jsx)(i.eH,{value:"",disabled:!!Tn.selectedBranchToTrack,children:"Select a branch to track"}),f]}),(0,e.jsxs)(i.yT,{className:"track-select",value:null!==(l=Tn.trackParent)&&void 0!==l?l:"",disabled:!Tn.potentialParents,onChange:e=>{Tn.setTrackParent(e.currentTarget.value)},children:[(0,e.jsx)(i.eH,{value:"",disabled:!!Tn.trackParent,children:"Select a parent"}),p]}),(0,e.jsx)(i.Ls,{title:c?"Cannot track with uncommitted changes":"",appearance:"primary",disabled:!Tn.selectedBranchToTrack||!Tn.trackParent,onClick:()=>{Tn.selectedBranchToTrack&&Tn.trackParent&&((0,F.xj)(new On({branchToTrack:Tn.selectedBranchToTrack,parent:Tn.trackParent})),r())},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)(i.nK,{href:"https://graphite.dev/docs/collaborate-on-a-stack",target:"_blank",children:(0,e.jsx)(e.Fragment,{children:"Learn More"})})]}),(0,e.jsx)(i.yO,{placeholder:"Branch name or PR number...",value:u,onKeyUp:e=>{var t,n;"Enter"!==e.key?d(null!==(n=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:""):u.trim().length>0&&((0,F.xj)(new kn(u)),r())},ref:h}),(0,e.jsx)(i.Ls,{title:c?"Cannot get with uncommitted changes":"",appearance:"primary",onClick:()=>{(0,F.xj)(new kn(u)),r()},children:(0,e.jsx)(e.Fragment,{children:"Get branch"})})]})}));function Dn(t){let{options:n,appearance:r,onClick:o,selected:s,onChangeSelected:a,buttonDisabled:l,pickerDisabled:c,icon:u}=t;var d;const h=null!==(d=n.find((e=>e.id===s.id)))&&void 0!==d?d:n[0];return(0,e.jsxs)("div",{className:"vscode-button-dropdown",children:[(0,e.jsxs)(i.Ls,{appearance:r,onClick:l?void 0:()=>o(s),disabled:l,children:[null!=u?u:null," ",null==h?void 0:h.label]}),(0,e.jsx)("select",{disabled:c,onClick:e=>e.stopPropagation(),onChange:e=>{const t=n.find((t=>t.id===e.target.value));null!=t&&a(t)},value:s.id,children:n.map((t=>(0,e.jsx)("option",{value:t.id,children:t.label},t.id)))})]})}class In extends I{constructor(e){super("PullOperation"),this.options=e}getArgs(){return["sync",this.options.deleteBranches?"-f":"--no-delete"]}}In.opName="Pull";const jn=[{id:"pull",label:(0,e.jsx)(e.Fragment,{children:"Sync"}),getOperation:()=>new In({deleteBranches:!0}),isRunning:e=>e instanceof In,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:()=>new In({deleteBranches:!1}),isRunning:e=>e instanceof In,tooltip:"Pull trunk and restack branches that don't have conflicts to resolve."}],Pn=(0,H.e)({config:"gti.pull-button-choice",default:jn[0].id}),Nn=(0,o.PA)((function(){var t;const n=null!==(t=jn.find((e=>e.id===Pn.get())))&&void 0!==t?t:jn[0],r=(()=>{var e,t;const n=F.IM.get(),r=F.wS.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)(Dn,{appearance:"secondary",buttonDisabled:!!i,options:jn,onClick:()=>(0,F.xj)(n.getOperation()),onChangeSelected:e=>Pn.set(e.id),selected:n,icon:(0,e.jsx)(k.I,{slot:"start",icon:i?"loading":"repo"})})})})),Mn=(0,o.PA)((function(){const t=F.a0.get(),n=F.Wv.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)(Nn,{}):null}),(0,e.jsxs)("span",{className:"button-group",children:[(0,e.jsx)(Ln,{}),(0,e.jsx)(zn,{}),(0,e.jsx)(En,{}),(0,e.jsx)(mt,{})]})]})}):null})),Ln=(0,o.PA)((function(){const t=(0,m.m)(),n=ve.get();return"ok"===(null==n?void 0:n.status)?null:(0,e.jsx)(i.Ls,{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:()=>{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"):a.A.postMessage({type:"fetchAuthStatus"})},appearance:"icon",children:(0,e.jsx)("div",{className:"auth-warning-icon",children:(0,e.jsx)(k.I,{icon:"warning"})})})}));function zn(){const t=(0,F.kq)();return(0,e.jsx)(i.Ls,{title:"Refresh",appearance:"icon",onClick:()=>{l.track("ClickedRefresh"),t(),a.A.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},"data-testid":"refresh-button",children:(0,e.jsx)(k.I,{icon:"refresh"})})}const Fn=(0,o.PA)((function(t){let{children:n}=t;const r=(0,m.m)();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})]})})),Bn=(0,H.e)({config:"gti.is-onboarded",default:"loading",defaultAfterNetworkReturn:!1}),Vn=(0,o.PA)((function(){return(0,e.jsx)(Fn,{children:(0,e.jsx)(Un,{})})})),Un=(0,o.PA)((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)(i.Ls,{appearance:"primary",onClick:()=>Bn.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"})]})})),Hn=(0,o.PA)((function(t){let{cwd:n}=t;return(0,e.jsx)(Fn,{children:(0,e.jsx)(qn,{cwd:n})})})),Kn=["main","master","dev","develop","next"],qn=(0,o.PA)((function(n){let{cwd:r}=n;var o;const s=r.split(r.includes("/")?"/":"\\").pop(),l=null===(o=Sn.get())||void 0===o?void 0:o.branches.sort(((e,t)=>!Kn.includes(e)&&!Kn.includes(t)||Kn.includes(e)&&Kn.includes(t)?e.localeCompare(t):Kn.includes(e)?-1:1)),[c,u]=(0,t.useState)(),[d,h]=(0,t.useState)(!1);return(0,t.useEffect)((()=>a.A.onMessageOfType("initializedRepository",(()=>{a.A.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()})).dispose),[]),(0,t.useEffect)((()=>a.A.onMessageOfType("failedToInitializeRepository",(()=>{h(!0)})).dispose),[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("span",{className:"welcome-text",children:["Initialize Graphite in ",(0,e.jsx)("strong",{children:s})," to get started."]}),(0,e.jsx)("span",{className:"welcome-text-small",children:"Select a trunk branch, which you will open pull requests against."}),l&&l.length>0?(0,e.jsxs)("select",{value:c,onChange:e=>{u(e.currentTarget.value)},children:[(0,e.jsx)("option",{value:"",disabled:!0,selected:!0,hidden:!0,children:"Select a trunk branch"}),l.map((t=>(0,e.jsx)("option",{value:t,children:t},t)))]}):null,(0,e.jsx)(i.Ls,{appearance:"primary",disabled:!c,title:c?void 0:"Must select a trunk branch to continue",onClick:()=>{c&&a.A.postMessage({type:"initializeRepository",trunkBranch:c})},children:"Initialize"}),d?(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"})]})})),$n=(0,u.sH)({isInstalling:!1,errorMessage:void 0}),Yn=e=>{(0,u.h5)((()=>$n.isInstalling=!0)),a.A.postMessage({type:"installCli",method:e});const t=a.A.onMessageOfType("installCliResult",(e=>{t.dispose(),(0,u.h5)((()=>$n.isInstalling=!1)),"error"!==e.result?Qn():(0,u.h5)((()=>$n.errorMessage=e.error))}))},Wn=()=>Yn("brew"),Gn=()=>Yn("npm"),Qn=()=>{a.A.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},Xn=(0,o.PA)((function(){const t="vscode"===(0,m.m)().platformName;return(0,e.jsx)(Fn,{children:t?(0,e.jsx)(Jn,{}):(0,e.jsx)("span",{className:"welcome-text",children:"Graphite Interactive cannot find your Graphite CLI installation."})})})),Jn=(0,o.PA)((function(){return $n.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:$n.errorMessage}),(0,e.jsx)(i.Ls,{appearance:"primary",onClick:(0,u.XI)((()=>$n.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"})]}),$n.isInstalling?(0,e.jsx)(Rt,{children:(0,e.jsx)(Tt,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ls,{disabled:$n.isInstalling,appearance:"primary",onClick:Wn,children:"Run brew installation"}),(0,e.jsx)(i.Ls,{disabled:$n.isInstalling,appearance:"primary",onClick:Gn,children:"Run npm installation"}),(0,e.jsx)(i.Ls,{disabled:$n.isInstalling,appearance:"secondary",onClick:Qn,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."]})," "]})]})})),Zn=(0,u.sH)({isUpdating:!1,errorMessage:void 0}),er=()=>{(0,u.h5)((()=>Zn.isUpdating=!0)),a.A.postMessage({type:"updateCli"});const e=a.A.onMessageOfType("updateCliResult",(t=>{e.dispose(),(0,u.h5)((()=>Zn.isUpdating=!1)),"error"!==t.result?tr():(0,u.h5)((()=>Zn.errorMessage=t.error))}))},tr=()=>{a.A.postMessage({type:"platform/executeVSCodeCommand",command:"graphite.reload-gti",args:[]}),window.location.reload()},nr=(0,o.PA)((function(){return(0,e.jsx)(Fn,{children:(0,e.jsx)(rr,{})})})),rr=(0,o.PA)((function(){return Zn.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:Zn.errorMessage}),(0,e.jsx)(i.Ls,{appearance:"primary",onClick:(0,u.XI)((()=>Zn.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."}),Zn.isUpdating?(0,e.jsx)(Rt,{children:(0,e.jsx)(Tt,{})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Ls,{disabled:Zn.isUpdating,appearance:"primary",onClick:er,children:"Update"}),(0,e.jsx)(i.Ls,{disabled:Zn.isUpdating,appearance:"secondary",onClick:tr,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"})]})]})]})})),ir=(0,ie.s)({default:"",effects:[e=>{let{setSelf:t}=e;const n=a.A.onMessageOfType("fetchedUpgradePrompt",(e=>{t(e.message)}));return()=>n.dispose()},()=>a.A.onSetup((()=>a.A.postMessage({type:"fetchUpgradePrompt"})))]}),or=(0,o.PA)((function(){const t=(0,m.m)(),n=F.Cy.get(),r=function(t){let{platform:n,repoInfo:r,reconnectStatus:o,diffFetchError:s}=t;if("reconnecting"===o.type)return{title:(0,e.jsx)(e.Fragment,{children:"Connection to server was lost"}),error:new Error("Attempting to reconnect...")};if("error"===o.type)return"Invalid token"===o.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(o.error)};if(s){if("success"===(null==r?void 0:r.type)&&"github"===r.codeReviewSystem.type){const t=(0,e.jsx)(i.Ls,{appearance:"secondary",onClick:e=>{n.openExternalLink("https://graphite.dev/docs/graphite-cli"),e.preventDefault(),e.stopPropagation()},children:(0,e.jsx)(e.Fragment,{children:"Learn more"})});if(s.message.startsWith("NotAuthenticatedError")){const n=new Error("Log in to gh CLI with `gh auth login` to allow requests to GitHub");return n.stack=s.stack,{title:(0,e.jsx)(e.Fragment,{children:"Not Authenticated to GitHub with `gh` CLI"}),error:n,buttons:[t],trackErrorName:"GhCliNotAuthenticated"}}if(s.message.startsWith("GhNotInstalledError")){const n=new Error("Install the `gh` CLI to make requests to GitHub");return n.stack=s.stack,{title:(0,e.jsx)(e.Fragment,{children:"Unable to fetch data from GitHub"}),error:n,buttons:[t],trackErrorName:"GhCliNotInstalled"}}}return{title:(0,e.jsx)(e.Fragment,{children:"Failed to fetch Diffs"}),error:s,trackErrorName:"DiffFetchFailed"}}}({platform:t,repoInfo:F.p4.get(),reconnectStatus:n,diffFetchError:ue.get().error});return null==r?null:(0,e.jsx)(sr,{info:r})})),sr=(0,o.PA)((function(t){let{info:n}=t;return R((()=>{null!=n.trackErrorName&&l.error("TopLevelErrorShown",n.trackErrorName,n.error)}),1e3,[n.trackErrorName,n.error]),(0,e.jsx)(p.P,{title:n.title,error:n.error,buttons:n.buttons})})),ar=(0,o.PA)((function(){const n=(0,m.m)(),r=F.p4.get(),o=ir.get(),s=o.indexOf(":")+1,a=function(){const e=(0,t.useRef)(null);return(0,t.useEffect)((()=>{const t=e.current;if(null==t)return;const n=new ResizeObserver((e=>{const[t]=e;t&&v.set(t.contentRect.width)}));return n.observe(t),()=>n.unobserve(t)}),[e]),e}(),l=Bn.get();return(0,e.jsxs)("div",{className:"main-content-area",ref:a,children:[(0,e.jsx)(or,{}),o?(0,e.jsx)(c,{title:o.substring(0,s||void 0),buttons:[(0,e.jsx)(i.Ls,{appearance:"secondary",onClick: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||!l?(0,e.jsx)(lr,{repoError:r&&"success"!==r.type?r:void 0}):(0,e.jsx)(bn,{})]})})),lr=(0,o.PA)((function(t){let{repoError:n}=t;return R((()=>{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)(Hn,{cwd:n.cwd}):"invalidCommand"===n.type?(0,e.jsx)(Xn,{}):"invalidVersion"===n.type?(0,e.jsx)(nr,{}):(0,e.jsx)(p.P,{title:(0,e.jsx)(e.Fragment,{children:"Something went wrong"}),error:n.error}):(0,e.jsx)(Vn,{})}));r.createRoot(document.getElementById("root")).render((0,e.jsx)((function(){return(0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(m.V,{children:(0,e.jsx)(g,{children:(0,e.jsx)(w,{children:(0,e.jsxs)(p.t,{children:[(0,e.jsx)(Mn,{}),(0,e.jsx)(ar,{}),(0,e.jsx)(kt,{}),(0,e.jsx)(At,{}),(0,e.jsx)("div",{className:"tooltip-root-container","data-testid":"tooltip-root-container"}),(0,e.jsx)(Cn,{}),(0,e.jsx)(E,{}),(0,e.jsx)(f,{})]})})})})})}),{}))})(),{}})()));