@withgraphite/graphite-cli 1.7.14 → 1.7.15

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 +0,0 @@
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,(()=>(()=>{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:()=>S,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:[O("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:[O("mergeConflicts",((e,t)=>{let{setSelf:n}=t;n(e)}))]}),x=(0,s.s)({default:{fetchStartTimestamp:0,fetchCompletedTimestamp:0,commits:[]},effects:[O("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)),S=(0,i.EW)((()=>{const e=new Map;return C.get().forEach((t=>{e.set(t.branch,t)})),e}));function O(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))S(e);else if(/^rename /.test(n))O(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 S(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 O(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){S[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(a,e))})),c}var k,S={$$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"),S=Symbol.for("react.profiler"),O=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 S: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 O: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 Se(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 Oe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function Ee(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,Se(e),t)for(e=0;e<t.length;e++)Se(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,St,Ot=!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 St(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(){Ot=!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,Ot||(Ot=!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:Sn,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 Sn(){return kn}var On=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:Sn,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(On),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:Sn})),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){Oe(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 Sr(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 Or=Sr("animationend"),Er=Sr("animationiteration"),Ar=Sr("animationstart"),Tr=Sr("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(Or,"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 Or: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 Si(e){0>Ci||(e.current=xi[Ci],xi[Ci]=null,Ci--)}function Oi(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(){Si(Ti),Si(Ai)}function Pi(e,t,n){if(Ai.current!==Ei)throw Error(o(168));Oi(Ai,t),Oi(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,Oi(Ai,e),Oi(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,Si(Ti),Si(Ai),Oi(Ai,e)):Si(Ti),Oi(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,So=null,Oo=null;function Eo(){Oo=So=ko=null}function Ao(e){var t=Co.current;Si(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,Oo=So=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(Oo!==e)if(e={context:e,memoizedValue:t,next:null},null===So){if(null===ko)throw Error(o(308));So=e,ko.dependencies={lanes:0,firstContext:e}}else So=So.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(Oi(Wo,t),Oi(Yo,e),Oi($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)}Si($o),Oi($o,t)}function Xo(){Si($o),Si(Yo),Si(Wo)}function Jo(e){Go(Wo.current);var t=Go($o.current),n=le(t,e.type);t!==n&&(Oi(Yo,e),Oi($o,n))}function Zo(e){Yo.current===e&&(Si($o),Si(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,Os.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(o(349));30&ss||Ss(n,t,i)}return i}function Ss(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 Os(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||Ss(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,Os.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=Sc.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 Oa(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,Oi(jl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Oi(jl,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oi(jl,Il),Il|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Oi(jl,Il),Il|=r;return _a(e,t,i,n),t.child}function Sa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(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){Sa(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),Oi(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(Oi(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(),Si(Ti),Si(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(Si(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(Si(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 Oi(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,Oi(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(),Si(Ti),Si(Ai),rs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zo(t),null;case 13:if(Si(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 Si(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,Sl=_.ReactCurrentDispatcher,Ol=_.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(),Sl.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,Si(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(),Si(Ti),Si(Ai),rs();break;case 5:Zo(r);break;case 4:Xo();break;case 13:case 19:Si(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,Ol.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=Sl.current;return Sl.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,Sl.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,Ol.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,Ol.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 Sc(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 Oc(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),Oc(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),Oc(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 S:return(e=Dc(12,n,t,2|i)).elementType=S,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 O: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;Oi(Co,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oi(es,1&es.current),t.flags|=128,null):0!==(n&t.child.childLanes)?La(e,t,n):(Oi(es,1&es.current),null!==(e=Ka(e,t,n))?e.sibling:null);Oi(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),Oi(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=Oa(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,Oa(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),Sa(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,Oi(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},St=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,Oe,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 S(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 O(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&&(O(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(!O(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=S,t.createFactory=function(e){var t=S.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=O,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 S(e){return e instanceof Map}function O(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}):S(e)?Pe.map(e,{name:n}):O(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 Se=fe("observable"),Oe=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}):S(e)?Pe.map(e,{name:n,deep:!1}):O(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(Se);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)?Se.decorate_20223_(e,t):b(t)?void H(e,t,Se):un(e)?e:_(e)?Pe.object(e,t,n):Array.isArray(e)?Pe.array(e,t):S(e)?Pe.map(e,t):O(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(Oe),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:On,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:On,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:On,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:On,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){St();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),St())},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 St(){pt.inBatch>0||pt.isRunningReactions||kt(Ot)}function Ot(){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 Sn="splice",On="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:Sn,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:On,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:Sn,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:On,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?On: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:On,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)})):S(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(S(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)||O(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:On,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:On,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():S(e)||qn(e)||O(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(O),O=-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,S=null,O=-1,E=5,A=-1;function T(){return!(t.unstable_now()-A<E)}function R(){if(null!==S){var e=t.unstable_now();A=e;var n=!0;try{n=S(!0,e)}finally{n?C():(k=!1,S=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){S=e,k||(k=!0,C())}function P(e,n){O=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(O),O=-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:()=>Ss,qz:()=>Os,uw:()=>Es,yT:()=>As,nK:()=>Ts,eH:()=>Rs,u1:()=>Ds,nD:()=>Is,yO:()=>js});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 T(t,e)}return e=>new D(e)})();const S=Symbol("prependToAdoptedStyleSheets");function O(e){const t=[],n=[];return e.forEach((e=>(e[S]?t:n).push(e))),{prepend:t,append:n}}let E=(e,t)=>{const{prepend:n,append:r}=O(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},A=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(p.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),E=(e,t)=>{const{prepend:n,append:r}=O(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},A=(e,t)=>{for(const n of t){const t=e.adoptedStyleSheets.indexOf(n);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class T 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){E(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){A(e,this.styleSheets),super.removeStylesFrom(e)}}let R=0;class D 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(++R)}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 I=Object.freeze({locate:a()}),j={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},P={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 N{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=j)}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(I.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 N(e,r)):t.push(new N(e,r.property,r.attribute,r.mode,r.converter))}}return t}}function M(e,t){let n;function r(e,t){arguments.length>1&&(n.property=t),I.locate(e.constructor).push(n)}return arguments.length>1?(n={},void r(e,t)):(n=void 0===e?{}:e,r)}const L={mode:"open"},z={},F=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 B{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=N.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?L:null===t.shadowOptions?void 0:Object.assign(Object.assign({},L),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?z:Object.assign(Object.assign({},z),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!!F.getByType(this.type)}define(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:customElements;const t=this.type;if(F.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 V(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}B.forType=F.getByType;const U=new WeakMap,H={bubbles:!0,composed:!0,cancelable:!0};function K(e){return e.shadowRoot||U.get(e)||null}class q 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&&U.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=K(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=K(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},H),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=K(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=B.forType(e.constructor);if(void 0===n)throw new Error("Missing FASTElement definition.");return e.$fastController=new q(e,n)}}function $(e){return class extends e{constructor(){super(),q.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 Y=Object.assign($(HTMLElement),{from:e=>$(e),define:(e,t)=>new B(e,t).define().type}),W=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=W.get(n);void 0===r&&W.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=W.get(t);if(void 0!==n)return n.get(e)});class G{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,_e(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 le(r,e,t))}}function Q(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;o<r;++o)i=n[o],Ae(i)||(t[i]=e[i]);return t}const X=Object.freeze({none(e){throw Error("".concat(e.toString()," not registered, did you forget to add @singleton()?"))},singleton:e=>new le(e,1,e),transient:e=>new le(e,2,e)}),J=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:X.singleton})}),Z=new Map;function ee(e){return t=>Reflect.getOwnMetadata(e,t)}let te=null;const ne=Object.freeze({createContainer:e=>new be(null,Object.assign({},J.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ne.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(me,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ne.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new be(e,Object.assign({},J.default,t,{parentLocator:ne.findParentContainer})):te||(te=new be(null,Object.assign({},J.default,t,{parentLocator:()=>null}))),getDesignParamtypes:ee("design:paramtypes"),getAnnotationParamtypes:ee("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=Z.get(e);if(void 0===t){const n=e.inject;if(void 0===n){const n=ne.getDesignParamtypes(e),r=ne.getAnnotationParamtypes(e);if(void 0===n)if(void 0===r){const n=Object.getPrototypeOf(e);t="function"==typeof n&&n!==Function.prototype?Q(ne.getDependencies(n)):[]}else t=Q(r);else if(void 0===r)t=Q(n);else{t=Q(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],Ae(s)||(t[s]=r[s])}}else t=Q(n);Z.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?ne.findResponsibleContainer(this):ne.getOrCreateDOMContainer();if(e=o.get(n),this[i]=e,r&&this instanceof Y){const r=this.$fastController,o=()=>{ne.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||ke,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?ne.defineProperty(e,t,o,i):ne.getOrCreateAnnotationParamTypes(e)[n]=o};return o.$isInterface=!0,o.friendlyName=null==r?"(anonymous)":r,null!=n&&(o.register=function(e,t){return n(new G(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=ne.getOrCreateAnnotationParamTypes(e),i=t[0];void 0!==i&&(n[r]=i)}else if(n)ne.defineProperty(e,n,t[0]);else{const n=r?ne.getOrCreateAnnotationParamTypes(r.value):ne.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 we.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe;return e.register=function(t){return we.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e}}),re=ne.createInterface("Container");function ie(e){return function(t){const n=function(e,t,r){ne.inject(n)(e,t,r)};return n.$isResolver=!0,n.resolve=function(n,r){return e(t,n,r)},n}}ne.inject;const oe={scoped:!1};function se(e,t,n){ne.inject(se)(e,t,n)}function ae(e,t){return t.getFactory(e).construct(t)}ie(((e,t,n)=>()=>n.get(e))),ie(((e,t,n)=>n.has(e,!0)?n.get(e):void 0)),se.$isResolver=!0,se.resolve=()=>{},ie(((e,t,n)=>{const r=ae(e,t),i=new le(e,0,r);return n.registerResolver(e,i),r})),ie(((e,t,n)=>ae(e,t)));class le{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 ce(e){return this.get(e)}function ue(e,t){return t(e)}class de{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(ce,e)):new this.Type(...this.dependencies.map(ce,e),...t),null==this.transformers?n:this.transformers.reduce(ue,n)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const he={$isResolver:!0,resolve:(e,t)=>t};function fe(e){return"function"==typeof e.register}function pe(e){return function(e){return fe(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const ve=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"]),me="__DI_LOCATE_PARENT__",ge=new Map;class be{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(re,he),e instanceof Node&&e.addEventListener(me,(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],Se(e))if(fe(e))e.register(this,o);else if(void 0!==e.prototype)we.singleton(e,e).register(this);else for(t=Object.keys(e),r=0,i=t.length;r<i;++r)n=e[t[r]],Se(n)&&(fe(n)?n.register(this,o):this.register(n));return--this.registerDepth,this}registerResolver(e,t){xe(e);const n=this.resolvers,r=n.get(e);return null==r?n.set(e,t):r instanceof le&&4===r.strategy?r.state.push(t):n.set(e,new le(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(xe(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=pe(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(xe(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=pe(e)?this:n;return t=this.jitRegister(e,r),t.resolve(n,this)}n=n.parent}throw new Error("Unable to resolve key: ".concat(String(e)))}getAll(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xe(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(Ce(r,i,n))),i=i.parent;return t}for(;null!=i;){if(r=i.resolvers.get(e),null!=r)return Ce(r,i,n);if(i=i.parent,null==i)return s}return s}getFactory(e){let t=ge.get(e);if(void 0===t){if(Oe(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."));ge.set(e,t=new de(e,ne.getDependencies(e)))}return t}registerFactory(e,t){ge.set(e,t)}createChild(e){return new be(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(ve.has(e.name))throw new Error("Attempted to jitRegister an intrinsic type: ".concat(e.name,". Did you forget to add @inject(Key)"));if(fe(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 ye=new WeakMap;function _e(e){return function(t,n,r){if(ye.has(r))return ye.get(r);const i=e(t,n,r);return ye.set(r,i),i}}const we=Object.freeze({instance:(e,t)=>new le(e,0,t),singleton:(e,t)=>new le(e,1,t),transient:(e,t)=>new le(e,2,t),callback:(e,t)=>new le(e,3,t),cachedCallback:(e,t)=>new le(e,3,_e(t)),aliasTo:(e,t)=>new le(t,5,e)});function xe(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 Ce(e,t,n){if(e instanceof le&&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 ke="(anonymous)";function Se(e){return"object"==typeof e&&null!==e||"function"==typeof e}const Oe=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}}(),Ee={};function Ae(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=Ee[e];if(void 0!==t)return t;const n=e.length;if(0===n)return Ee[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 Ee[e]=!1;return Ee[e]=!0}default:return!1}}function Te(e){return"".concat(e.toLowerCase(),":presentation")}const Re=new Map,De=Object.freeze({define(e,t,n){const r=Te(e);void 0===Re.get(r)?Re.set(r,t):Re.set(r,!1),n.register(we.instance(r,t))},forTag(e,t){const n=Te(e),r=Re.get(n);return!1===r?ne.findResponsibleContainer(t).get(n):r||null}});class Ie{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 je extends Y{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=De.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 Ne(t===je?class extends je{}:t,e,n)}}}function Pe(e,t,n){return"function"==typeof e?e(t,n):e}V([b],je.prototype,"template",void 0),V([b],je.prototype,"styles",void 0);class Ne{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 Ie(Pe(n.template,e,n),Pe(n.styles,e,n));e.definePresentation(t);let i=Pe(n.shadowOptions,e,n);e.shadowRootMode&&(i?r.shadowOptions||(i.mode=e.shadowRootMode):null!==i&&(i={mode:e.shadowRootMode})),e.defineElement({elementOptions:Pe(n.elementOptions,e,n),shadowOptions:i,attributes:Pe(n.attributes,e,n)})}})}}const Me=new Set(["children","localName","ref","style","className"]),Le=Object.freeze(Object.create(null)),ze="_default",Fe=new Map;function Be(e,t){if(!t.name){const n=B.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 Ve(e){return e.events||(e.events={})}function Ue(e,t,n){return!Me.has(n)||(console.warn("".concat(Be(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 He=n(5043);class Ke extends je{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)}}}V([M({attribute:"fill"})],Ke.prototype,"fill",void 0),V([M({attribute:"color"})],Ke.prototype,"color",void 0),V([M({mode:"boolean"})],Ke.prototype,"circular",void 0);var qe=n(7528);class $e{constructor(){this.targetIndex=0}}class Ye extends $e{constructor(){super(...arguments),this.createPlaceholder=p.createInterpolationPlaceholder}}class We extends $e{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 Ge(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 Qe(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function Xe(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function Je(){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 Ze(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function et(e){p.setAttribute(this.target,this.targetName,e)}function tt(e){p.setBooleanAttribute(this.target,this.targetName,e)}function nt(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 rt(e){this.target[this.targetName]=e}function it(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 ot extends Ye{constructor(e){super(),this.binding=e,this.bind=Ge,this.unbind=Xe,this.updateTarget=et,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=rt,"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=tt;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=Qe,this.unbind=Ze;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=it)}}targetAtContent(){this.updateTarget=nt,this.unbind=Je}createBehavior(e){return new st(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class st{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 at=null;class lt{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){at=this}static borrow(e){const t=at||new lt;return t.directives=e,t.reset(),at=null,t}}function ct(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 ot(((e,t)=>{let i="";for(let o=0;o<n;++o)i+=r[o](e,t);return i}));return i.targetName=t,i}const ut=f.length;function dt(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+ut)}""!==s&&r.push(s)}return r}function ht(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=dt(e,a);let c=null;null===l?n&&(c=new ot((()=>a)),c.targetName=s.name):c=ct(l),null!==c&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function ft(e,t,n){const r=dt(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 pt=document.createRange();class vt{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){pt.setStartBefore(e[0].firstChild),pt.setEndAfter(e[e.length-1].lastChild),pt.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 mt{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=lt.borrow(t);ht(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:ht(r,s);break;case 3:ft(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 vt(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 gt=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function bt(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 mt){const e=o;o=()=>e}if("function"==typeof o&&(o=new ot(o)),o instanceof Ye){const e=gt.exec(i);null!==e&&(o.targetName=e[2])}o instanceof $e?(n+=o.createPlaceholder(t.length),t.push(o)):n+=o}return n+=e[e.length-1],new mt(n,t)}var yt;const _t=(e,t)=>bt(yt||(yt=(0,qe.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 wt{createCSS(){return""}createBehavior(){}}function xt(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 wt){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 Ct(e){return"".concat(":host([hidden]){display:none}",":host{display:").concat(e,"}")}function kt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}const St=document.createElement("div");class Ot{setProperty(e,t){p.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){p.queueUpdate((()=>this.target.removeProperty(e)))}}class Et extends Ot{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class At extends Ot{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 Tt{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}}V([b],Tt.prototype,"target",void 0);class Rt{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 Dt{setProperty(e,t){Dt.properties[e]=t;for(const n of Dt.roots.values())Pt.getOrCreate(Dt.normalizeRoot(n)).setProperty(e,t)}removeProperty(e){delete Dt.properties[e];for(const t of Dt.roots.values())Pt.getOrCreate(Dt.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Dt;if(!t.has(e)){t.add(e);const n=Pt.getOrCreate(this.normalizeRoot(e));for(const e in Dt.properties)n.setProperty(e,Dt.properties[e])}}static unregisterRoot(e){const{roots:t}=Dt;if(t.has(e)){t.delete(e);const n=Pt.getOrCreate(Dt.normalizeRoot(e));for(const e in Dt.properties)n.removeProperty(e)}}static normalizeRoot(e){return e===St?document:e}}Dt.roots=new Set,Dt.properties={};const It=new WeakMap,jt=p.supportsAdoptedStyleSheets?class extends Ot{constructor(e){super();const t=new CSSStyleSheet;t[S]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(x.create([t]))}}:Tt,Pt=Object.freeze({getOrCreate(e){if(It.has(e))return It.get(e);let t;return t=e===St?new Dt:e instanceof Document?p.supportsAdoptedStyleSheets?new Et:new At:e instanceof Y?new jt(e):new Rt(e),It.set(e,t),t}});class Nt extends wt{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=Nt.uniqueId(),Nt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Nt({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 Nt.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=Bt.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 Nt&&(t=this.alias(t)),Bt.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Bt.existsFor(e)&&Bt.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(St,e),this}subscribe(e,t){const n=this.getOrCreateSubscriberSet(t);t&&!Bt.existsFor(t)&&Bt.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)}}Nt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),Nt.tokensById=new Map;class Mt{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(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,w))}catch(e){console.error(e)}}}class Lt{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),g.getNotifier(this).notify(e.id)}all(){return this.values.entries()}}const zt=new WeakMap,Ft=new WeakMap;class Bt{constructor(e){this.target=e,this.store=new Lt,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const n=Nt.getTokenById(t);n&&(n.notify(this.target),this.updateCSSTokenReflection(e,n))}},zt.set(e,this),g.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof Y?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return zt.get(e)||new Bt(e)}static existsFor(e){return zt.has(e)}static findParent(e){if(St!==e.target){let t=kt(e.target);for(;null!==t;){if(zt.has(t))return zt.get(t);t=kt(t)}return Bt.getOrCreate(St)}return null}static findClosestAssignedNode(e,t){let n=t;do{if(n.has(e))return n;n=n.parent?n.parent:n.target!==St?Bt.getOrCreate(St):null}while(null!==n);return null}get parent(){return Ft.get(this)||null}updateCSSTokenReflection(e,t){if(Nt.isCSSDesignToken(t)){const n=this.parent,r=this.isReflecting(t);if(n){const i=n.get(t),o=e.get(t);i===o||r?i===o&&r&&this.stopReflectToCSS(t):this.reflectToCSS(t)}else r||this.reflectToCSS(t)}}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=Bt.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){Nt.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Nt.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=Bt.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&Ft.get(this).removeChild(this);for(const e of this.bindingObservers.keys())this.tearDownBindingObserver(e)}appendChild(e){e.parent&&Ft.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));Ft.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),e.updateCSSTokenReflection(e.store,t)}removeChild(e){const t=this.children.indexOf(e);if(-1!==t&&this.children.splice(t,1),g.getNotifier(this.store).unsubscribe(e),e.parent!==this)return!1;const n=Ft.delete(e);for(const[t]of this.store.all())e.hydrate(t,e.getRaw(t)),e.updateCSSTokenReflection(e.store,t);return n}contains(e){return function(e,t){let n=t;for(;null!==n;){if(n===e)return!0;n=kt(n)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Bt.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Bt.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const n=Nt.getTokenById(t);n&&(this.hydrate(n,this.getRaw(n)),this.updateCSSTokenReflection(this.store,n))}hydrate(e,t){if(!this.has(e)){const n=this.bindingObservers.get(e);Nt.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 Mt(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)}}Bt.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){Pt.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Bt.getOrCreate(t).get(e)))}remove(e,t){Pt.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},V([b],Bt.prototype,"children",void 0);const Vt=Object.freeze({create:function(e){return Nt.from(e)},notifyConnection:e=>!(!e.isConnected||!Bt.existsFor(e)||(Bt.getOrCreate(e).bind(),0)),notifyDisconnection:e=>!(e.isConnected||!Bt.existsFor(e)||(Bt.getOrCreate(e).unbind(),0)),registerRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:St;Dt.registerRoot(e)},unregisterRoot(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:St;Dt.unregisterRoot(e)}});function Ut(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 Ht=new Map;let Kt=!1;function qt(e,t){const n=Vt.create(e);if(t){if(t.includes("--fake-vscode-token")){const e="id"+Math.random().toString(16).slice(2);t="".concat(t,"-").concat(e)}Ht.set(t,n)}return Kt||(function(e){window.addEventListener("load",(()=>{new MutationObserver((()=>{Ut(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Ut(e)}))}(Ht),Kt=!0),n}const $t=qt("background","--vscode-editor-background").withDefault("#1e1e1e"),Yt=qt("border-width").withDefault(1),Wt=qt("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Gt=(qt("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),qt("corner-radius").withDefault(0)),Qt=qt("design-unit").withDefault(4),Xt=qt("disabled-opacity").withDefault(.4),Jt=qt("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Zt=qt("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"),en=(qt("font-weight","--vscode-font-weight").withDefault("400"),qt("foreground","--vscode-foreground").withDefault("#cccccc")),tn=qt("input-height").withDefault("26"),nn=qt("input-min-width").withDefault("100px"),rn=qt("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),on=qt("type-ramp-base-line-height").withDefault("normal"),sn=qt("type-ramp-minus1-font-size").withDefault("11px"),an=qt("type-ramp-minus1-line-height").withDefault("16px"),ln=(qt("type-ramp-minus2-font-size").withDefault("9px"),qt("type-ramp-minus2-line-height").withDefault("16px"),qt("type-ramp-plus1-font-size").withDefault("16px"),qt("type-ramp-plus1-line-height").withDefault("24px"),qt("scrollbarWidth").withDefault("10px")),cn=qt("scrollbarHeight").withDefault("10px"),un=qt("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),dn=qt("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),hn=qt("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),fn=qt("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),pn=qt("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),vn=qt("button-border","--vscode-button-border").withDefault("transparent"),mn=qt("button-icon-background").withDefault("transparent"),gn=qt("button-icon-corner-radius").withDefault("5px"),bn=qt("button-icon-outline-offset").withDefault(0),yn=qt("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),_n=qt("button-icon-padding").withDefault("3px"),wn=qt("button-primary-background","--vscode-button-background").withDefault("#0e639c"),xn=qt("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Cn=qt("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),kn=qt("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Sn=qt("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),On=qt("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),En=qt("button-padding-horizontal").withDefault("11px"),An=qt("button-padding-vertical").withDefault("4px"),Tn=qt("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Rn=qt("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Dn=qt("checkbox-corner-radius").withDefault(3),In=(qt("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),qt("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771")),jn=qt("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Pn=qt("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Nn=qt("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Mn=qt("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Ln=qt("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),zn=(qt("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),qt("dropdown-list-max-height").withDefault("200px")),Fn=qt("input-background","--vscode-input-background").withDefault("#3c3c3c"),Bn=qt("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),Vn=(qt("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),qt("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff")),Un=qt("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),Hn=qt("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),Kn=qt("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),qn=qt("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),$n=qt("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),Yn=(qt("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),qt("panel-view-border","--vscode-panel-border").withDefault("#80808059"),qt("tag-corner-radius").withDefault("2px"));var Wn;const Gn=class extends Ke{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}.compose({baseName:"badge",template:_t,styles:(e,t)=>xt(Wn||(Wn=(0,qe.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"])),Ct("inline-block"),Zt,sn,an,fn,Yt,vn,pn,Qt,Qt,Qt)});Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;class Qn{}V([M({attribute:"aria-atomic"})],Qn.prototype,"ariaAtomic",void 0),V([M({attribute:"aria-busy"})],Qn.prototype,"ariaBusy",void 0),V([M({attribute:"aria-controls"})],Qn.prototype,"ariaControls",void 0),V([M({attribute:"aria-current"})],Qn.prototype,"ariaCurrent",void 0),V([M({attribute:"aria-describedby"})],Qn.prototype,"ariaDescribedby",void 0),V([M({attribute:"aria-details"})],Qn.prototype,"ariaDetails",void 0),V([M({attribute:"aria-disabled"})],Qn.prototype,"ariaDisabled",void 0),V([M({attribute:"aria-errormessage"})],Qn.prototype,"ariaErrormessage",void 0),V([M({attribute:"aria-flowto"})],Qn.prototype,"ariaFlowto",void 0),V([M({attribute:"aria-haspopup"})],Qn.prototype,"ariaHaspopup",void 0),V([M({attribute:"aria-hidden"})],Qn.prototype,"ariaHidden",void 0),V([M({attribute:"aria-invalid"})],Qn.prototype,"ariaInvalid",void 0),V([M({attribute:"aria-keyshortcuts"})],Qn.prototype,"ariaKeyshortcuts",void 0),V([M({attribute:"aria-label"})],Qn.prototype,"ariaLabel",void 0),V([M({attribute:"aria-labelledby"})],Qn.prototype,"ariaLabelledby",void 0),V([M({attribute:"aria-live"})],Qn.prototype,"ariaLive",void 0),V([M({attribute:"aria-owns"})],Qn.prototype,"ariaOwns",void 0),V([M({attribute:"aria-relevant"})],Qn.prototype,"ariaRelevant",void 0),V([M({attribute:"aria-roledescription"})],Qn.prototype,"ariaRoledescription",void 0);class Xn{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Jn(e){return new We("fast-ref",Xn,e)}var Zn,er,tr,nr;class rr{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const ir=(e,t)=>bt(Zn||(Zn=(0,qe.A)(['\n <span\n part="end"\n ',"\n class=",'\n >\n <slot name="end" ',' @slotchange="','">\n ',"\n </slot>\n </span>\n"])),Jn("endContainer"),(e=>t.end?"end":void 0),Jn("end"),(e=>e.handleEndContentChange()),t.end||""),or=(e,t)=>bt(er||(er=(0,qe.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"])),Jn("startContainer"),(e=>t.start?"start":void 0),Jn("start"),(e=>e.handleStartContentChange()),t.start||"");function sr(e){const t=I.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))})),I.locate(n).forEach((e=>t.push(e)))}))}var ar;bt(tr||(tr=(0,qe.A)(['\n <span part="end" ','>\n <slot\n name="end"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),Jn("endContainer"),Jn("end"),(e=>e.handleEndContentChange())),bt(nr||(nr=(0,qe.A)(['\n <span part="start" ','>\n <slot\n name="start"\n ','\n @slotchange="','"\n ></slot>\n </span>\n'])),Jn("startContainer"),Jn("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"}(ar||(ar={}));const lr="ArrowDown",cr="ArrowLeft",ur="ArrowRight",dr="ArrowUp",hr="Enter",fr="Escape",pr="Home",vr="End",mr=" ",gr="Tab",br={ArrowDown:lr,ArrowLeft:cr,ArrowRight:ur,ArrowUp:dr},yr="form-associated-proxy",_r="ElementInternals",wr=_r in window&&"setFormValue"in window[_r].prototype,xr=new WeakMap;function Cr(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 wr}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(!wr)return null;let e=xr.get(this);return e||(e=this.attachInternals(),xr.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(){super.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",yr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",yr)),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===hr&&this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return M({mode:"boolean"})(t.prototype,"disabled"),M({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),M({attribute:"current-value"})(t.prototype,"currentValue"),M(t.prototype,"name"),M({mode:"boolean"})(t.prototype,"required"),b(t.prototype,"value"),t}function kr(e){class t extends(Cr(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 M({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),M({attribute:"current-checked",converter:j})(n.prototype,"currentChecked"),b(n.prototype,"defaultChecked"),b(n.prototype,"checked"),n}class Sr extends je{}class Or extends(Cr(Sr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Er extends Or{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)}))}}V([M({mode:"boolean"})],Er.prototype,"autofocus",void 0),V([M({attribute:"form"})],Er.prototype,"formId",void 0),V([M],Er.prototype,"formaction",void 0),V([M],Er.prototype,"formenctype",void 0),V([M],Er.prototype,"formmethod",void 0),V([M({mode:"boolean"})],Er.prototype,"formnovalidate",void 0),V([M],Er.prototype,"formtarget",void 0),V([M],Er.prototype,"type",void 0),V([b],Er.prototype,"defaultSlottedContent",void 0);class Ar{}function Tr(e){return e?function(t,n,r){return 1===t.nodeType&&t.matches(e)}:function(e,t,n){return 1===e.nodeType}}V([M({attribute:"aria-expanded"})],Ar.prototype,"ariaExpanded",void 0),V([M({attribute:"aria-pressed"})],Ar.prototype,"ariaPressed",void 0),sr(Ar,Qn),sr(Er,rr,Ar);class Rr{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 Dr extends Rr{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 Ir(e){return"string"==typeof e&&(e={property:e}),new We("fast-slotted",Dr,e)}var jr;let Pr;const Nr=function(){if("boolean"==typeof Pr)return Pr;if("undefined"==typeof window||!window.document||!window.document.createElement)return Pr=!1,Pr;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),Pr=!0}catch(e){Pr=!1}finally{document.head.removeChild(e)}return Pr}()?"focus-visible":"focus",Mr="not-allowed";var Lr,zr,Fr,Br,Vr;const Ur=xt(Lr||(Lr=(0,qe.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"])),Ct("inline-flex"),Zt,rn,on,xn,wn,An,En,Yt,vn,Cn,wn,Nr,Yt,Jt,Yt,Xt,wn,Mr,Qt,Qt),Hr=xt(zr||(zr=(0,qe.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"])),wn,xn,Cn,wn,Nr,Yt,Jt,Yt,wn),Kr=xt(Fr||(Fr=(0,qe.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"])),kn,Sn,On,kn,Nr,Yt,Jt,Yt,kn),qr=xt(Br||(Br=(0,qe.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"])),mn,gn,en,yn,Wt,_n,yn,Nr,Yt,Jt,bn,mn);class $r extends Er{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)}([M],$r.prototype,"appearance",void 0);const Yr=$r.compose({baseName:"button",template:(e,t)=>bt(jr||(jr=(0,qe.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),Jn("control"),or(0,t),Ir("defaultSlottedContent"),ir(0,t)),styles:(e,t)=>xt(Vr||(Vr=(0,qe.A)(["\n\t","\n\t","\n\t","\n\t","\n"])),Ur,Hr,Kr,qr),shadowOptions:{delegatesFocus:!0}});class Wr extends je{}class Gr extends(kr(Wr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Qr extends Gr{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{this.readOnly||e.key!==mr||(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 Xr,Jr;V([M({attribute:"readonly",mode:"boolean"})],Qr.prototype,"readOnly",void 0),V([b],Qr.prototype,"defaultSlottedNodes",void 0),V([b],Qr.prototype,"indeterminate",void 0);const Zr=class extends Qr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}.compose({baseName:"checkbox",template:(e,t)=>bt(Xr||(Xr=(0,qe.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"),Ir("defaultSlottedNodes")),styles:(e,t)=>xt(Jr||(Jr=(0,qe.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"])),Ct("inline-flex"),Qt,rn,on,Qt,Qt,Dn,Yt,Rn,Tn,Zt,en,Qt,Qt,en,en,Tn,Rn,Tn,Jt,Nr,Yt,Jt,Mr,Xt),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 ei(e,t,n){return{index:e,removed:t,addedCount:n}}function ti(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=ei(t,[],0);for(;i<o;)e.removed.push(r[i++]);return[e]}if(i===o)return[ei(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=ei(f,[],0)),h.addedCount++,f++,h.removed.push(r[p]),p++;break;case 2:void 0===h&&(h=ei(f,[],0)),h.addedCount++,f++;break;case 3:void 0===h&&(h=ei(f,[],0)),h.removed.push(r[p]),p++}return void 0!==h&&d.push(h),d}const ni=Array.prototype.push;function ri(e,t,n,r){const i=ei(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);ni.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);ni.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 ii=!1;function oi(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 si 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];ri(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(ti(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):ti(this.source,0,this.source.length,t,0,t.length);this.notify(n)}}function ai(e,t,n,r){e.bind(t[n],r)}function li(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 ci{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=ai,this.itemsBindingObserver=g.binding(t,this,n),this.templateBindingObserver=g.binding(r,this,i),o.positioning&&(this.bindView=li)}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||(vt.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 ui extends $e{constructor(e,t,n){super(),this.itemsBinding=e,this.templateBinding=t,this.options=n,this.createPlaceholder=p.createBlockPlaceholder,function(){if(ii)return;ii=!0,g.setArrayObserverFactory((e=>new si(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(ei(this.length,[n],0)),n},e.push=function(){const e=n.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(oi(ei(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(ei(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(oi(ei(+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(oi(ei(0,[],arguments.length),this)),e}}(),this.isItemsBindingVolatile=g.isVolatileBinding(e),this.isTemplateBindingVolatile=g.isVolatileBinding(t)}createBehavior(e){return new ci(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}const di="focus",hi="focusin",fi="focusout",pi="keydown",vi="sticky",mi="default",gi="columnheader",bi="default";class yi extends je{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=yi.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=yi.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 ui((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(di,this.handleFocus),this.addEventListener(pi,this.handleKeydown),this.addEventListener(fi,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(di,this.handleFocus),this.removeEventListener(pi,this.handleKeydown),this.removeEventListener(fi,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 dr:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case lr: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===vi&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case pr:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case vr: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===vi?"sticky-header":"header",void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}yi.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:"".concat(t)}))),V([M({attribute:"no-tabbing",mode:"boolean"})],yi.prototype,"noTabbing",void 0),V([M({attribute:"generate-header"})],yi.prototype,"generateHeader",void 0),V([M({attribute:"grid-template-columns"})],yi.prototype,"gridTemplateColumns",void 0),V([b],yi.prototype,"rowsData",void 0),V([b],yi.prototype,"columnDefinitions",void 0),V([b],yi.prototype,"rowItemTemplate",void 0),V([b],yi.prototype,"cellItemTemplate",void 0),V([b],yi.prototype,"headerCellItemTemplate",void 0),V([b],yi.prototype,"focusRowIndex",void 0),V([b],yi.prototype,"focusColumnIndex",void 0),V([b],yi.prototype,"defaultRowItemTemplate",void 0),V([b],yi.prototype,"rowElementTag",void 0),V([b],yi.prototype,"rowElements",void 0);class _i extends Rr{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 wi(e){return"string"==typeof e&&(e={property:e}),new We("fast-children",_i,e)}class xi extends je{constructor(){super(...arguments),this.rowType=bi,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 ui((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(fi,this.handleFocusout),this.addEventListener(pi,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(fi,this.handleFocusout),this.removeEventListener(pi,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 cr:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case ur:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case pr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case vr:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===bi&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===bi&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}var Ci,ki,Si,Oi;V([M({attribute:"grid-template-columns"})],xi.prototype,"gridTemplateColumns",void 0),V([M({attribute:"row-type"})],xi.prototype,"rowType",void 0),V([b],xi.prototype,"rowData",void 0),V([b],xi.prototype,"columnDefinitions",void 0),V([b],xi.prototype,"cellItemTemplate",void 0),V([b],xi.prototype,"headerCellItemTemplate",void 0),V([b],xi.prototype,"rowIndex",void 0),V([b],xi.prototype,"isActiveRow",void 0),V([b],xi.prototype,"activeCellItemTemplate",void 0),V([b],xi.prototype,"defaultCellItemTemplate",void 0),V([b],xi.prototype,"defaultHeaderCellItemTemplate",void 0),V([b],xi.prototype,"cellElements",void 0);const Ei=bt(Si||(Si=(0,qe.A)(["\n <template>\n ","\n </template>\n"])),(e=>null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey])),Ai=bt(Oi||(Oi=(0,qe.A)(["\n <template>\n ","\n </template>\n"])),(e=>null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title));class Ti extends je{constructor(){super(...arguments),this.cellType=mi,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(hi,this.handleFocusin),this.addEventListener(fi,this.handleFocusout),this.addEventListener(pi,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(hi,this.handleFocusin),this.removeEventListener(fi,this.handleFocusout),this.removeEventListener(pi,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===gi){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===mi&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===gi&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case hr:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===gi){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 fr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case gi:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Ai.render(this,this);break;case void 0:case"rowheader":case mi:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Ei.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}var Ri,Di,Ii,ji,Pi,Ni,Mi;V([M({attribute:"cell-type"})],Ti.prototype,"cellType",void 0),V([M({attribute:"grid-column"})],Ti.prototype,"gridColumn",void 0),V([b],Ti.prototype,"rowData",void 0),V([b],Ti.prototype,"columnDefinition",void 0);const Li=class extends yi{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}.compose({baseName:"data-grid",baseClass:yi,template:(e,t)=>{const n=function(e){const t=e.tagFor(xi);return bt(Ci||(Ci=(0,qe.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(xi);return bt(ki||(ki=(0,qe.A)(['\n <template\n role="grid"\n tabindex="0"\n :rowElementTag="','"\n :defaultRowItemTemplate="','"\n ',"\n >\n <slot></slot>\n </template>\n "])),(()=>r),n,wi({property:"rowElements",filter:Tr("[role=row]")}))},styles:(e,t)=>xt(Pi||(Pi=(0,qe.A)(["\n\t:host {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t}\n"])))}),zi=class extends xi{}.compose({baseName:"data-grid-row",baseClass:xi,template:(e,t)=>{const n=function(e){const t=e.tagFor(Ti);return bt(Ri||(Ri=(0,qe.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(Ti);return bt(Di||(Di=(0,qe.A)(["\n <",'\n cell-type="columnheader"\n grid-column="','"\n :columnDefinition="','"\n ></',">\n"])),t,((e,t)=>t.index+1),(e=>e),t)}(e);return bt(Ii||(Ii=(0,qe.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,wi({property:"cellElements",filter:Tr('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')}),Ir("slottedCellElements"))},styles:(e,t)=>xt(Ni||(Ni=(0,qe.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"])),Qt,$t,Pn,Wt)}),Fi=class extends Ti{}.compose({baseName:"data-grid-cell",baseClass:Ti,template:(e,t)=>bt(ji||(ji=(0,qe.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)=>xt(Mi||(Mi=(0,qe.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"])),Qt,Qt,en,Zt,rn,on,Yt,Gt,Nr,In,Yt,Jt,jn,Nr,jn)}),Bi="horizontal";class Vi extends je{constructor(){super(...arguments),this.role="separator",this.orientation=Bi}}var Ui,Hi;V([M],Vi.prototype,"role",void 0),V([M],Vi.prototype,"orientation",void 0);const Ki=class extends Vi{}.compose({baseName:"divider",template:(e,t)=>bt(Ui||(Ui=(0,qe.A)(['\n <template role="','" aria-orientation="','"></template>\n'])),(e=>e.role),(e=>e.orientation)),styles:(e,t)=>xt(Hi||(Hi=(0,qe.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"])),Ct("block"),Yt,Nn,Qt)});let qi=0;function $i(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(qi++)}function Yi(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 Wi extends je{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}}V([b],Wi.prototype,"checked",void 0),V([b],Wi.prototype,"content",void 0),V([b],Wi.prototype,"defaultSelected",void 0),V([M({mode:"boolean"})],Wi.prototype,"disabled",void 0),V([M({attribute:"selected",mode:"boolean"})],Wi.prototype,"selectedAttribute",void 0),V([b],Wi.prototype,"selected",void 0),V([M({attribute:"value",mode:"fromView"})],Wi.prototype,"initialValue",void 0);class Gi{}V([b],Gi.prototype,"ariaChecked",void 0),V([b],Gi.prototype,"ariaPosInSet",void 0),V([b],Gi.prototype,"ariaSelected",void 0),V([b],Gi.prototype,"ariaSetSize",void 0),sr(Gi,Qn),sr(Wi,rr,Gi);class Qi extends je{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&&(Qi.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),Qi.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 pr:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case lr:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case dr:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case vr:e.preventDefault(),this.selectLastOption();break;case gr:return this.focusAndScrollOptionIntoView(),!0;case hr:case fr:return!0;case mr: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(Qi.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)=>(Yi(t)&&e.push(t),e)),[]);const n="".concat(this.options.length);this.options.forEach(((e,t)=>{e.id||(e.id=$i("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}}}Qi.slottedOptionFilter=e=>Yi(e)&&!e.hidden,Qi.TYPE_AHEAD_TIMEOUT_MS=1e3,V([M({mode:"boolean"})],Qi.prototype,"disabled",void 0),V([b],Qi.prototype,"selectedIndex",void 0),V([b],Qi.prototype,"selectedOptions",void 0),V([b],Qi.prototype,"slottedOptions",void 0),V([b],Qi.prototype,"typeaheadBuffer",void 0);class Xi{}function Ji(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}V([b],Xi.prototype,"ariaActiveDescendant",void 0),V([b],Xi.prototype,"ariaDisabled",void 0),V([b],Xi.prototype,"ariaExpanded",void 0),V([b],Xi.prototype,"ariaMultiSelectable",void 0),sr(Xi,Qn),sr(Qi,Xi);class Zi extends Qi{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=Ji(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=Ji(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=Ji(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=Ji(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 pr:return void this.checkFirstOption(n);case lr:return void this.checkNextOption(n);case dr:return void this.checkPreviousOption(n);case vr:return void this.checkLastOption(n);case gr:return this.focusAndScrollOptionIntoView(),!0;case fr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case mr: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)}}V([b],Zi.prototype,"activeIndex",void 0),V([M({mode:"boolean"})],Zi.prototype,"multiple",void 0),V([M({converter:P})],Zi.prototype,"size",void 0);class eo extends Zi{}class to extends(Cr(eo)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}const no="above";class ro extends to{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=$i("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?no:"below",this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===no?~~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(Qi.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 mr:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case pr:case vr:e.preventDefault();break;case hr:e.preventDefault(),this.open=!this.open;break;case fr:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case gr: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===lr||t===dr)}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")}}V([M({attribute:"open",mode:"boolean"})],ro.prototype,"open",void 0),V([function(e,t,n){return Object.assign({},n,{get:function(){return g.trackVolatile(),n.get.apply(this)}})}],ro.prototype,"collapsible",null),V([b],ro.prototype,"control",void 0),V([M({attribute:"position"})],ro.prototype,"positionAttribute",void 0),V([b],ro.prototype,"position",void 0),V([b],ro.prototype,"maxHeight",void 0);class io{}V([b],io.prototype,"ariaControls",void 0),sr(io,Xi),sr(ro,rr,io);const oo=e=>"function"==typeof e,so=()=>null;function ao(e){return void 0===e?so:oo(e)?e:()=>e}function lo(e,t,n){const r=oo(e)?e:()=>e,i=ao(t),o=ao(n);return(e,t)=>r(e,t)?i(e,t):o(e,t)}var co,uo,ho;const fo=class extends ro{}.compose({baseName:"dropdown",template:(e,t)=>bt(co||(co=(0,qe.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)),lo((e=>e.collapsible),bt(uo||(uo=(0,qe.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),Jn("control"),or(0,t),(e=>e.displayValue),t.indicator||"",ir(0,t))),(e=>e.listboxId),(e=>e.disabled),(e=>!!e.collapsible&&!e.open),Jn("listbox"),Ir({filter:Qi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})),styles:(e,t)=>xt(ho||(ho=(0,qe.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"])),Ct("inline-flex"),Mn,en,Zt,tn,nn,Yt,Ln,Gt,rn,on,Mn,Yt,Jt,Gt,zn,Qt,Nr,Jt,Mn,Ln,Nr,In,Yt,Jt,jn,Mr,Xt,Mr,Mn,en,Jt,Jt,tn,tn,Qt,Qt),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 po extends je{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()}}V([M],po.prototype,"download",void 0),V([M],po.prototype,"href",void 0),V([M],po.prototype,"hreflang",void 0),V([M],po.prototype,"ping",void 0),V([M],po.prototype,"referrerpolicy",void 0),V([M],po.prototype,"rel",void 0),V([M],po.prototype,"target",void 0),V([M],po.prototype,"type",void 0),V([b],po.prototype,"defaultSlottedContent",void 0);class vo{}var mo,go;V([M({attribute:"aria-expanded"})],vo.prototype,"ariaExpanded",void 0),sr(vo,Qn),sr(po,rr,vo);const bo=class extends po{}.compose({baseName:"link",template:(e,t)=>bt(mo||(mo=(0,qe.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),Jn("control"),or(0,t),Ir("defaultSlottedContent"),ir(0,t)),styles:(e,t)=>xt(go||(go=(0,qe.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"])),Ct("inline-flex"),Un,Zt,rn,on,Yt,Gt,Vn,Vn,Nr,Yt,Jt),shadowOptions:{delegatesFocus:!0}});var yo,_o;const wo=class extends Wi{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}.compose({baseName:"option",template:(e,t)=>bt(yo||(yo=(0,qe.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(" ")),or(0,t),Ir("content"),ir(0,t)),styles:(e,t)=>xt(_o||(_o=(0,qe.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"])),Ct("inline-flex"),Gt,Yt,en,rn,on,Qt,Qt,Nr,Jt,In,en,In,Yt,Jt,jn,In,jn,In,Yt,Jt,jn,In,en,Mr,Xt)}),xo="horizontal";class Co extends je{constructor(){super(...arguments),this.orientation=xo,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.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(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,this.activeid=t)}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 cr:e.preventDefault(),this.adjustBackward(e);break;case ur:e.preventDefault(),this.adjustForward(e)}else switch(e.key){case dr:e.preventDefault(),this.adjustBackward(e);break;case lr:e.preventDefault(),this.adjustForward(e)}switch(e.key){case pr:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case vr: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($i())}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:"panel-".concat($i())}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===xo}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){const t=this.tabs.filter((e=>this.isFocusableElement(e))),n=t.indexOf(this.activetab),r=(i=t.length-1,o=n+e,Math.min(Math.max(o,0),i));var i,o;const s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}var ko,So,Oo,Eo,Ao,To,Ro;V([M],Co.prototype,"orientation",void 0),V([M],Co.prototype,"activeid",void 0),V([b],Co.prototype,"tabs",void 0),V([b],Co.prototype,"tabpanels",void 0),V([M({mode:"boolean"})],Co.prototype,"activeindicator",void 0),V([b],Co.prototype,"activeIndicatorRef",void 0),V([b],Co.prototype,"showActiveIndicator",void 0),sr(Co,rr);class Do extends je{}V([M({mode:"boolean"})],Do.prototype,"disabled",void 0);class Io extends je{}const jo=class extends Co{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=xo),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}.compose({baseName:"panels",template:(e,t)=>bt(ko||(ko=(0,qe.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),or(0,t),Ir("tabs"),lo((e=>e.showActiveIndicator),bt(So||(So=(0,qe.A)(["\n <div\n ",'\n class="activeIndicator"\n part="activeIndicator"\n ></div>\n '])),Jn("activeIndicatorRef"))),ir(0,t),Ir("tabpanels")),styles:(e,t)=>xt(Ao||(Ao=(0,qe.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"])),Ct("grid"),Zt,rn,on,en,Qt,Qt,Qt,Qt,qn,Gt)}),Po=class extends Do{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}.compose({baseName:"panel-tab",template:(e,t)=>bt(Oo||(Oo=(0,qe.A)(['\n <template slot="tab" role="tab" aria-disabled="','">\n <slot></slot>\n </template>\n'])),(e=>e.disabled)),styles:(e,t)=>xt(To||(To=(0,qe.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"])),Ct("inline-flex"),Zt,rn,on,Qt,Qt,$n,Gt,Yt,qn,qn,qn,qn,qn,Nr,Yt,Kn,Qt)}),No=class extends Io{}.compose({baseName:"panel-view",template:(e,t)=>bt(Eo||(Eo=(0,qe.A)(['\n <template slot="tabpanel" role="tabpanel">\n <slot></slot>\n </template>\n']))),styles:(e,t)=>xt(Ro||(Ro=(0,qe.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"])),Ct("flex"),Yt,rn,on,Qt)});class Mo extends je{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 Lo,zo,Fo,Bo;V([M({converter:P})],Mo.prototype,"value",void 0),V([M({converter:P})],Mo.prototype,"min",void 0),V([M({converter:P})],Mo.prototype,"max",void 0),V([M({mode:"boolean"})],Mo.prototype,"paused",void 0),V([b],Mo.prototype,"percentComplete",void 0);const Vo=class extends Mo{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)=>bt(Lo||(Lo=(0,qe.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":""),lo((e=>"number"==typeof e.value),bt(zo||(zo=(0,qe.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),bt(Fo||(Fo=(0,qe.A)(['\n <slot name="indeterminate" slot="indeterminate">\n ',"\n </slot>\n "])),t.indeterminateIndicator||""))),styles:(e,t)=>xt(Bo||(Bo=(0,qe.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"])),Ct("flex"),Qt,Qt,Qt,Hn,Qt),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 Uo extends je{}class Ho extends(kr(Uo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ko extends Ho{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(e.key!==mr)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 qo,$o;V([M({attribute:"readonly",mode:"boolean"})],Ko.prototype,"readOnly",void 0),V([b],Ko.prototype,"name",void 0),V([b],Ko.prototype,"defaultSlottedNodes",void 0);const Yo=class extends Ko{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}.compose({baseName:"radio",template:(e,t)=>bt(qo||(qo=(0,qe.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"),Ir("defaultSlottedNodes")),styles:(e,t)=>xt($o||($o=(0,qe.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"])),Ct("inline-flex"),rn,on,Qt,Tn,Yt,Rn,Qt,Qt,en,Zt,Qt,Qt,en,Qt,Tn,Rn,Tn,Jt,Nr,Yt,Jt,Tn,Yt,Rn,Tn,Yt,Rn,Tn,Yt,Jt,Nr,Yt,Jt,Mr,Xt),checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});var Wo,Go,Qo;!function(e){e.ltr="ltr",e.rtl="rtl"}(Wo||(Wo={}));class Xo extends je{constructor(){super(...arguments),this.orientation=Bi,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===ur,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===cr,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 br&&this.isInsideFoundationToolbar)return!0;switch(t){case hr:this.checkFocusedRadio();break;case ur:case lr:this.direction===Wo.ltr?this.moveRight(e):this.moveLeft(e);break;case cr:case dr:this.direction===Wo.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?Wo.rtl:Wo.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]}}}V([M({attribute:"readonly",mode:"boolean"})],Xo.prototype,"readOnly",void 0),V([M({attribute:"disabled",mode:"boolean"})],Xo.prototype,"disabled",void 0),V([M],Xo.prototype,"name",void 0),V([M],Xo.prototype,"value",void 0),V([M],Xo.prototype,"orientation",void 0),V([b],Xo.prototype,"childItems",void 0),V([b],Xo.prototype,"slottedRadioButtons",void 0);const Jo=class extends Xo{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)=>bt(Go||(Go=(0,qe.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===Bi?"horizontal":"vertical"),Ir({property:"slottedRadioButtons",filter:Tr("[role=radio]")})),styles:(e,t)=>xt(Qo||(Qo=(0,qe.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"])),Ct("flex"),Qt,en,rn,Qt)});var Zo;const es=class extends Ke{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}.compose({baseName:"tag",template:_t,styles:(e,t)=>xt(Zo||(Zo=(0,qe.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"])),Ct("inline-block"),Zt,sn,an,fn,Yt,vn,Yn,pn,Qt,Qt)});class ts extends je{}class ns extends(Cr(ts)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class rs extends ns{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)}}V([M({attribute:"readonly",mode:"boolean"})],rs.prototype,"readOnly",void 0),V([M({mode:"boolean"})],rs.prototype,"autofocus",void 0),V([M],rs.prototype,"placeholder",void 0),V([M],rs.prototype,"type",void 0),V([M],rs.prototype,"list",void 0),V([M({converter:P})],rs.prototype,"maxlength",void 0),V([M({converter:P})],rs.prototype,"minlength",void 0),V([M],rs.prototype,"pattern",void 0),V([M({converter:P})],rs.prototype,"size",void 0),V([M({mode:"boolean"})],rs.prototype,"spellcheck",void 0),V([b],rs.prototype,"defaultSlottedNodes",void 0);class is{}sr(is,Qn),sr(rs,rr,is);class os extends je{}class ss extends(Cr(os)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const as="none";class ls extends ss{constructor(){super(...arguments),this.resize=as,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 cs,us;V([M({mode:"boolean"})],ls.prototype,"readOnly",void 0),V([M],ls.prototype,"resize",void 0),V([M({mode:"boolean"})],ls.prototype,"autofocus",void 0),V([M({attribute:"form"})],ls.prototype,"formId",void 0),V([M],ls.prototype,"list",void 0),V([M({converter:P})],ls.prototype,"maxlength",void 0),V([M({converter:P})],ls.prototype,"minlength",void 0),V([M],ls.prototype,"name",void 0),V([M],ls.prototype,"placeholder",void 0),V([M({converter:P,mode:"fromView"})],ls.prototype,"cols",void 0),V([M({converter:P,mode:"fromView"})],ls.prototype,"rows",void 0),V([M({mode:"boolean"})],ls.prototype,"spellcheck",void 0),V([b],ls.prototype,"defaultSlottedNodes",void 0),sr(ls,is);const ds=class extends ls{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}.compose({baseName:"text-area",template:(e,t)=>bt(cs||(cs=(0,qe.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!==as?"resize-".concat(e.resize):""),(e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"),Ir("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()),Jn("control")),styles:(e,t)=>xt(us||(us=(0,qe.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"])),Ct("inline-block"),Zt,Bn,Fn,Gt,Yt,Ln,rn,on,Qt,nn,Fn,Ln,Fn,Jt,Nr,ln,cn,Fn,un,dn,hn,Jt,en,rn,on,Mr,Xt,Ln),shadowOptions:{delegatesFocus:!0}});function hs(e,t,n){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}var fs,ps;const vs=class extends rs{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}.compose({baseName:"text-field",template:(e,t)=>bt(fs||(fs=(0,qe.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"),Ir({property:"defaultSlottedNodes",filter:hs}),or(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),Jn("control"),ir(0,t)),styles:(e,t)=>xt(ps||(ps=(0,qe.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"])),Ct("inline-block"),Zt,Bn,Fn,Gt,Yt,Ln,tn,nn,Qt,Qt,rn,on,Nr,en,rn,on,Qt,Qt,Qt,Qt,Fn,Ln,Fn,Jt,Jt,Mr,Xt,Ln),shadowOptions:{delegatesFocus:!0}}),ms=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),gs=new Map,bs=new Map;let ys=null;const _s=ne.createInterface((e=>e.cachedCallback((e=>(null===ys&&(ys=new xs(null,e)),ys))))),ws=Object.freeze({tagFor:e=>bs.get(e),responsibleFor:e=>e.$$designSystem$$||ne.findResponsibleContainer(e).get(_s),getOrCreate(e){if(!e)return null===ys&&(ys=ne.getOrCreateDOMContainer().get(_s)),ys;const t=e.$$designSystem$$;if(t)return t;const n=ne.getOrCreateDOMContainer(e);if(n.has(_s,!1))return n.get(_s);{const t=new xs(e,n);return n.register(we.instance(_s,t)),t}}});class xs{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ms.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=gs.get(h),p=!0;for(;f;){const e=n(h,d,f);switch(e){case ms.ignoreDuplicate:return;case ms.definitionCallbackOnly:p=!1,f=void 0;break;default:h=e,f=gs.get(h)}}p&&((bs.has(d)||d===je)&&(d=class extends d{}),gs.set(h,d),bs.set(d,h),u&&bs.set(u,h)),t.push(new Cs(e,h,d,r,c,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&Vt.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 Cs{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){De.define(this.name,e,this.container)}defineElement(e){this.definition=new B(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return ws.tagFor(e)}}const{wrap:ks}=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 Ne&&(t?t.register(r):n.push(r),r=r.type);const a=Fe.get(r);if(a){const e=a.get(null!==(o=i.name)&&void 0!==o?o:ze);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||Le,o=Ve(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(Ve(t))));else{const n=new Set(Object.keys(Ve(t))),r=g.getAccessors(e.prototype);if(r.length>0)for(const i of r)Ue(e,t,i.name)&&n.add(i.name);else for(const r in e.prototype)!(r in HTMLElement.prototype)&&Ue(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(Be(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 Fe.has(r)||Fe.set(r,new Map),Fe.get(r).set(null!==(s=i.name)&&void 0!==s?s:ze,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=[]}}}}(He,ws.getOrCreate(void 0).withPrefix("vscode"));ks(Gn(),{name:"vscode-badge"});const Ss=ks(Yr(),{name:"vscode-button"}),Os=ks(Zr(),{name:"vscode-checkbox",events:{onChange:"change"}}),Es=(ks(Li(),{name:"vscode-data-grid"}),ks(Fi(),{name:"vscode-data-grid-cell"}),ks(zi(),{name:"vscode-data-grid-row"}),ks(Ki(),{name:"vscode-divider"})),As=ks(fo(),{name:"vscode-dropdown",events:{onChange:"change"}}),Ts=ks(bo(),{name:"vscode-link"}),Rs=ks(wo(),{name:"vscode-option"}),Ds=(ks(jo(),{name:"vscode-panels",events:{onChange:"change"}}),ks(Po(),{name:"vscode-panel-tab"}),ks(No(),{name:"vscode-panel-view"}),ks(Vo(),{name:"vscode-progress-ring"}),ks(Yo(),{name:"vscode-radio",events:{onChange:"change"}})),Is=ks(Jo(),{name:"vscode-radio-group",events:{onChange:"change"}}),js=(ks(es(),{name:"vscode-tag"}),ks(ds(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}}),ks(vs(),{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:()=>Sn,default:()=>Sr,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)},S=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),O=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=S,k.Indexed=O,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),Oe===Se&&(Oe=0,Ee={}),Oe++,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,Se=255,Oe=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)?S:x(e)?O: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=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){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 St(e,t)}function wt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return St(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 St(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)?St(n,[r],t):e?e(n,r,i):r}}(n))}function St(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?O:S,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 Ot(){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 St(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}(S);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=Ot,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}(O);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=S(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 Sn=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}(O);Sn.isStack=kn;var On,En=Sn.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 On||(On=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(S(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 Sn(_(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=S(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(S,{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=S.prototype;Gn[y]=!0,Gn[L]=Wn.entries,Gn.toJSON=Yn,Gn.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Pn(O,{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=O.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(S(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),S(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=Ot,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 Sr={version:Cr,Collection:k,Iterable:k,Seq:Y,Map:Pt,OrderedMap:yn,List:on,Stack:Sn,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 S(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 O=u.sH.box(null,{deep:!1}),E=(0,o.PA)((function(){const n=O.get(),r=(0,t.useRef)(null),o=()=>{(null==n?void 0:n.visible)&&(n.deferred.resolve(void 0),O.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),O.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),O.set(Object.assign(Object.assign({},n),{visible:!1}))}})}return(0,e.jsxs)(S,{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)))}))},Se=u.sH.set();function Oe(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)((()=>{Se.clear(),i.map((e=>Se.add(e.branch)))})),c(!0)}),0)},t=()=>{Se.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&&Se.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)(Oe,{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||St,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(St,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,{})})]})})),St=120;function Ot(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)(Ot,{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=Se.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]),S=(0,t.useCallback)((()=>{ke(f.branch)}),[f.branch]),O=de(f.branch),E="Submit ".concat(O.length>1?"".concat(O.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)(Oe,{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)(Oe,{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)&&O.length>0&&!pe(f.branch)&&(0,e.jsx)(Oe,{toHighlight:O,title:E,children:(0,e.jsx)(i.Ls,{appearance:"icon",onClick:e=>{e.stopPropagation(),S()},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)(S,{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 Sn extends I{constructor(e){super("TrackOperation"),this.options=e}getArgs(){return["track",this.options.branchToTrack,"--parent",this.options.parent]}}Sn.opName="Track";const On=(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=On.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 Sn({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.com/settings"):t.openExternalLink("https://app.graphite.com/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=On.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,{})]})})})})})}),{}))})(),{}})()));