@a9n-shoji/rvw 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +6 -3
- package/dist/cli.mjs +188 -19
- package/dist/cli.mjs.map +4 -4
- package/dist/web/assets/DocumentViewer-B4LdSL1l.js +1560 -0
- package/dist/web/assets/{MarkdownTable-DVJ0_MIC.js → MarkdownTable-CdbKPft2.js} +1 -1
- package/dist/web/assets/WalkthroughViewer-D1LlSQw2.js +1 -0
- package/dist/web/assets/{abnfDiagram-N423BO3Z-6dQzEuPV.js → abnfDiagram-N423BO3Z-CE1nZSC9.js} +1 -1
- package/dist/web/assets/architecture-TIHT7OUA-edLV2Zq-.js +1 -0
- package/dist/web/assets/{architectureDiagram-T3A2C74G-DP7hHV7T.js → architectureDiagram-T3A2C74G-B88qYFUo.js} +1 -1
- package/dist/web/assets/{blockDiagram-VBNYF7ZC-ZbwzVKWP.js → blockDiagram-VBNYF7ZC-BaX0rhbb.js} +1 -1
- package/dist/web/assets/{c4Diagram-5PPSVZJV-HVD9_uV4.js → c4Diagram-5PPSVZJV-C1ppBaEC.js} +1 -1
- package/dist/web/assets/channel-J8FHSJDG.js +1 -0
- package/dist/web/assets/{chunk-2GRJ4B5K-Bkxs2d4J.js → chunk-2GRJ4B5K-D2TTocfh.js} +1 -1
- package/dist/web/assets/{chunk-4I5QYGJK-BJHE6zC_.js → chunk-4I5QYGJK-ikT25rPN.js} +1 -1
- package/dist/web/assets/{chunk-5RXB4S5H-B-52dfCQ.js → chunk-5RXB4S5H-CGlPaulj.js} +1 -1
- package/dist/web/assets/{chunk-6Q2QTUOP-BpD0vQ66.js → chunk-6Q2QTUOP-BuuMeCo2.js} +1 -1
- package/dist/web/assets/{chunk-7Z6QIM7H-BTI1qgAO.js → chunk-7Z6QIM7H-DT3BAZ4L.js} +1 -1
- package/dist/web/assets/{chunk-GF5L2VYU-B8BxoCCx.js → chunk-GF5L2VYU-mIdlxzfr.js} +1 -1
- package/dist/web/assets/{chunk-I66GZJ75-zwi-Xf01.js → chunk-I66GZJ75-CGl1hx4J.js} +1 -1
- package/dist/web/assets/{chunk-JQJVKLGR-D9mKBWUz.js → chunk-JQJVKLGR-BLG6gAfx.js} +1 -1
- package/dist/web/assets/{chunk-KBJHAD2P-Qmtir3qc.js → chunk-KBJHAD2P-D_MPzBJx.js} +1 -1
- package/dist/web/assets/{chunk-NSK5VX7P-SP2vZdAo.js → chunk-NSK5VX7P-CiYiU8wP.js} +1 -1
- package/dist/web/assets/{chunk-QR6OTTB3-uVDCHurs.js → chunk-QR6OTTB3-BK8Tnvcc.js} +1 -1
- package/dist/web/assets/{chunk-UBXNYLIW-CtNzBWOU.js → chunk-UBXNYLIW-BuzttTFk.js} +1 -1
- package/dist/web/assets/{chunk-W5SLKNZC-BPfDqbmK.js → chunk-W5SLKNZC-UidmFHe2.js} +1 -1
- package/dist/web/assets/{chunk-WRU74C26-BZkEOexq.js → chunk-WRU74C26-nox7WFnh.js} +1 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-CmTWSnH0.js +1 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-CmTWSnH0.js +1 -0
- package/dist/web/assets/{cynefin-VYW2F7L2-BRisCyqC.js → cynefin-VYW2F7L2-wDMibS5s.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-MW4NZA55-ClIrmCkB.js → cynefinDiagram-MW4NZA55-CBTrdvOE.js} +1 -1
- package/dist/web/assets/{dagre-VZM6K2ZE-X31uC_JB.js → dagre-VZM6K2ZE-Bbgn4Rr7.js} +1 -1
- package/dist/web/assets/{diagram-7IWD3JNH-DBQFjl0i.js → diagram-7IWD3JNH-Bm9AuXb9.js} +1 -1
- package/dist/web/assets/{diagram-B4RE2ZJO-BZ7934Wg.js → diagram-B4RE2ZJO-D3lZ-r-H.js} +1 -1
- package/dist/web/assets/{diagram-LBJQPF4R-CcJqH9aY.js → diagram-LBJQPF4R-D-GaynX7.js} +1 -1
- package/dist/web/assets/{diagram-Q27KOJAE-DzM7eiil.js → diagram-Q27KOJAE-BeZRiu1d.js} +1 -1
- package/dist/web/assets/{diagram-UB23O5K3-CVCV-d3m.js → diagram-UB23O5K3-C3GP7iMe.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-BXEA7PRR-D8xb9FBp.js → ebnfDiagram-BXEA7PRR-BJWg0NVU.js} +1 -1
- package/dist/web/assets/{erDiagram-JOGREHBK-1l-G_PMG.js → erDiagram-JOGREHBK-XPmhUeB_.js} +1 -1
- package/dist/web/assets/eventmodeling-45OFAUF4-C3c4qddw.js +1 -0
- package/dist/web/assets/flowDiagram-UKHOOZJN-DMA-a1zf.js +1 -0
- package/dist/web/assets/{ganttDiagram-PKOTCBZU-CDJ9a1tp.js → ganttDiagram-PKOTCBZU-CL-xEo-M.js} +1 -1
- package/dist/web/assets/{gitGraph-TEB2WS4Q-DOeTh5wB.js → gitGraph-TEB2WS4Q-BVRyuIx3.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-DS77QQ5N-DYLxc8Nz.js → gitGraphDiagram-DS77QQ5N-BVNIEupW.js} +1 -1
- package/dist/web/assets/{index-9cOaPesh.js → index-D8GJBw23.js} +98 -98
- package/dist/web/assets/{index-kK3hngnz.css → index-DMD2vvQW.css} +1 -1
- package/dist/web/assets/{info-DKCQHKI2-B5u97QuQ.js → info-DKCQHKI2-BKBUVpfc.js} +1 -1
- package/dist/web/assets/{infoDiagram-6WML65LV-zosKW2OD.js → infoDiagram-6WML65LV-_dTFnzSE.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-VYcc_au8.js → ishikawaDiagram-WSZJBQD7-DIRgD4hO.js} +1 -1
- package/dist/web/assets/{journeyDiagram-NVQOT4AX-C_nU8kP4.js → journeyDiagram-NVQOT4AX-bp7nZrfR.js} +1 -1
- package/dist/web/assets/{kanban-definition-27J2QSJJ-DybKaWfx.js → kanban-definition-27J2QSJJ-C6mZIo8S.js} +1 -1
- package/dist/web/assets/{line-DWsGplGj.js → line-DWTym7eJ.js} +1 -1
- package/dist/web/assets/{mermaid-parser.core-D_T_3oIQ.js → mermaid-parser.core-CbecsNA1.js} +3 -3
- package/dist/web/assets/{mermaid.core-BoLGzxB5.js → mermaid.core-CdRuLyYI.js} +4 -4
- package/dist/web/assets/{mindmap-definition-FAOFIHXS-CsdpqPIa.js → mindmap-definition-FAOFIHXS-CU2P1z-9.js} +1 -1
- package/dist/web/assets/{packet-7NZHBO7P-CReAEF1h.js → packet-7NZHBO7P-CZsup6Od.js} +1 -1
- package/dist/web/assets/{pegDiagram-VL7TDLO6-CE9-NPMu.js → pegDiagram-VL7TDLO6-DTTyttpe.js} +1 -1
- package/dist/web/assets/{pie-RZYD4A2V-GYixXUka.js → pie-RZYD4A2V-DgrIiWZA.js} +1 -1
- package/dist/web/assets/{pieDiagram-7S7Q4E2Y-CqaAKNg2.js → pieDiagram-7S7Q4E2Y-BBNFyPT1.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-CIZ2JOQS-eRMHJqfj.js → quadrantDiagram-CIZ2JOQS-ejp-Aa2l.js} +1 -1
- package/dist/web/assets/{radar-I7S5WNFK-BwHxP0iK.js → radar-I7S5WNFK-Cp_hfjrI.js} +1 -1
- package/dist/web/assets/{railroad-3IZDKUUU-AHc3O4Oz.js → railroad-3IZDKUUU-Dw-oMal2.js} +1 -1
- package/dist/web/assets/railroad-abnf-AHOZXSZD-BN-ZBhE0.js +1 -0
- package/dist/web/assets/railroad-ebnf-EBAXGLYW-CG97zyI2.js +1 -0
- package/dist/web/assets/railroad-peg-LSFZ7HO6-DHLQ1evQ.js +1 -0
- package/dist/web/assets/{railroadDiagram-AXF67PYL-BhAxCokG.js → railroadDiagram-AXF67PYL-DkBUaj6Z.js} +1 -1
- package/dist/web/assets/{requirementDiagram-LRYGKXZP-BRW-kYhg.js → requirementDiagram-LRYGKXZP-Dff1ex_h.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-W5VNT64P-DfnYLbDJ.js → sankeyDiagram-W5VNT64P-DptSL9Bc.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-SI44F4Z6-WEkIPSg8.js → sequenceDiagram-SI44F4Z6-DEnPcs3U.js} +1 -1
- package/dist/web/assets/{stateDiagram-OKZ733FA-CdN7veIN.js → stateDiagram-OKZ733FA-BwJO1MKA.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-LaSNqvWy.js +1 -0
- package/dist/web/assets/{swimlanes-SLNWSIFB-g9wWLf5Y.js → swimlanes-SLNWSIFB-BosKiwZA.js} +1 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-C5OBtBlv.js +8 -0
- package/dist/web/assets/{timeline-definition-Z64GVDOM-DjkKZIPE.js → timeline-definition-Z64GVDOM-C5isAn4X.js} +1 -1
- package/dist/web/assets/{treeView-QDETBFTQ-WARa9r09.js → treeView-QDETBFTQ-zEyUXRc4.js} +1 -1
- package/dist/web/assets/{treemap-6X3UGDF4-CTFjdb6k.js → treemap-6X3UGDF4-B-X0EQSE.js} +1 -1
- package/dist/web/assets/{vennDiagram-T6HMQDX7-CI9QrBwu.js → vennDiagram-T6HMQDX7-QMdGieCa.js} +1 -1
- package/dist/web/assets/{wardley-OPB4EBWU-Cfo_Nnla.js → wardley-OPB4EBWU-BaeAF8d8.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-T6FBY63Y-CzGJ4fzZ.js → wardleyDiagram-T6FBY63Y-DTQ_uLUq.js} +1 -1
- package/dist/web/assets/{xychartDiagram-ELKLHX3M-BXCiD7gJ.js → xychartDiagram-ELKLHX3M-BMdBWzib.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +17 -15
- package/skills/rvw-watch-comments/SKILL.md +71 -32
- package/skills/rvw-watch-comments/agents/openai.yaml +2 -2
- package/skills/rvw-watch-comments/scripts/auto-ack.mjs +0 -0
- package/skills/rvw-watch-comments/scripts/preflight.mjs +0 -0
- package/skills/rvw-watch-comments/scripts/watch-driver.mjs +223 -48
- package/skills/rvw-watch-comments/scripts/watch-state.mjs +13 -2
- package/dist/web/assets/DocumentViewer-ADzspLC4.js +0 -1560
- package/dist/web/assets/WalkthroughViewer-yQibj2tK.js +0 -1
- package/dist/web/assets/architecture-TIHT7OUA-DEoBuEnc.js +0 -1
- package/dist/web/assets/channel-DjgdV-zW.js +0 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-B6Qjam7Y.js +0 -1
- package/dist/web/assets/classDiagram-v2-OCEON4UE-B6Qjam7Y.js +0 -1
- package/dist/web/assets/eventmodeling-45OFAUF4-ndNeUBOZ.js +0 -1
- package/dist/web/assets/flowDiagram-UKHOOZJN-BVxK_6Tu.js +0 -1
- package/dist/web/assets/railroad-abnf-AHOZXSZD-ZKY5olmV.js +0 -1
- package/dist/web/assets/railroad-ebnf-EBAXGLYW-CrG1UCMo.js +0 -1
- package/dist/web/assets/railroad-peg-LSFZ7HO6-CoY6MIbj.js +0 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-0xn0gbpn.js +0 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-YJ3yh_d3.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-CdRuLyYI.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-B6xuSHsQ.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-I66GZJ75-CGl1hx4J.js","assets/chunk-NSK5VX7P-CiYiU8wP.js","assets/dist-v5Q1xZ2K.js","assets/chunk-4I5QYGJK-ikT25rPN.js","assets/chunk-WRU74C26-nox7WFnh.js","assets/chunk-7BUUIJ7U-Bb538aSH.js","assets/chunk-UBXNYLIW-BuzttTFk.js","assets/chunk-W5SLKNZC-UidmFHe2.js","assets/chunk-QR6OTTB3-BK8Tnvcc.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-7Z6QIM7H-DT3BAZ4L.js","assets/line-DWTym7eJ.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/DocumentViewer-B4LdSL1l.js","assets/MarkdownTable-CdbKPft2.js","assets/WalkthroughViewer-D1LlSQw2.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},i=new class extends r{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},a={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},o=new class{#e=a;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function s(e){setTimeout(e,0)}var c=typeof window>`u`||`Deno`in globalThis;function l(){}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return typeof e==`number`&&e>=0&&e!==1/0}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function p(e,t){return typeof e==`function`?e(t):e}function m(e,t){return typeof e==`function`?e(t):e}function h(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==_(o,t.options))return!1}else if(!y(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function g(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(a))return!1}else if(!y(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function _(e,t){return(t?.queryKeyHashFn||v)(e)}function v(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function y(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!y(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!y(e[r],t[r]))return!1;return!0}return!1}var b=Object.prototype.hasOwnProperty;function x(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=C(e)&&C(t);if(!r&&!(w(e)&&w(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:b.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=x(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function S(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function C(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!T(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!T(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function T(e){return Object.prototype.toString.call(e)===`[object Object]`}function E(e){return new Promise(t=>{o.setTimeout(t,e)})}function D(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:x(e,t)}function O(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ee(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var te=Symbol();function ne(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===te?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function re(e,t){return typeof e==`function`?e(...t):!!e}function k(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var A=(()=>{let e=()=>c;return{isServer(){return e()},setIsServer(t){e=t}}})();function j(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ie=s;function ae(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ie,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var M=ae(),oe=new class extends r{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function se(e){return Math.min(1e3*2**e,3e4)}function ce(e){return(e??`online`)!==`online`||oe.isOnline()}var le=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ue(e){let t=!1,n=0,r,a=j(),o=()=>a.status!==`pending`,s=t=>{if(!o()){let n=new le(t);p(n),e.onCancel?.(n)}},c=()=>{t=!0},l=()=>{t=!1},u=()=>i.isFocused()&&(e.networkMode===`always`||oe.isOnline())&&e.canRun(),d=()=>ce(e.networkMode)&&e.canRun(),f=e=>{o()||(r?.(),a.resolve(e))},p=e=>{o()||(r?.(),a.reject(e))},m=()=>new Promise(t=>{r=e=>{(o()||u())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),h=()=>{if(o())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(f).catch(r=>{if(o())return;let i=e.retry??(A.isServer()?0:3),a=e.retryDelay??se,s=typeof a==`function`?a(n,r):a,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){p(r);return}n++,e.onFail?.(n,r),E(s).then(()=>u()?void 0:m()).then(()=>{t?p(r):h()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:l,canStart:d,start:()=>(d()?h():m().then(h),a)}}var de=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.gcTime)&&(this.#e=o.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(A.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(o.clearTimeout(this.#e),this.#e=void 0)}};function fe(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{k(e,()=>t.signal,()=>n=!0)},u=ne(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ee:O;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?me:pe,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:pe(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function pe(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function me(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var he=class extends de{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ve(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ve(this.options);e.data!==void 0&&(this.setState(_e(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=D(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(l).catch(l):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>m(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===te||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>p(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!f(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ne(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?fe(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ue({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof le&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof le){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ge(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,..._e(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),M.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ge(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ce(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function _e(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ve(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ye=class extends r{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=j(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xe(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Se(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Se(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof m(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!S(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ce(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||m(this.options.enabled,this.#t)!==m(t.enabled,this.#t)||p(this.options.staleTime,this.#t)!==p(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||m(this.options.enabled,this.#t)!==m(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Te(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l)),t}#g(){this.#b();let e=p(this.options.staleTime,this.#t);if(A.isServer()||this.#r.isStale||!d(e))return;let t=f(this.#r.dataUpdatedAt,e)+1;this.#d=o.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(A.isServer()||m(this.options.enabled,this.#t)===!1||!d(this.#p)||this.#p===0)&&(this.#f=o.setInterval(()=>{(this.options.refetchIntervalInBackground||i.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(o.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(o.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&xe(e,t),o=i&&Ce(e,n,t,r);(a||o)&&(l={...l,...ge(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:h}=l;d=l.data;let g=!1;if(t.placeholderData!==void 0&&d===void 0&&h===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,g=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(h=`success`,d=D(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!g){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=D(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),h=`error`);let _=l.fetchStatus===`fetching`,v=h===`pending`,y=h===`error`,b=v&&_,x=d!==void 0,S={status:h,fetchStatus:l.fetchStatus,isPending:v,isSuccess:h===`success`,isError:y,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:_,isRefetching:_&&!v,isLoadingError:y&&!x,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:y&&x,isStale:we(e,t),refetch:this.refetch,promise:this.#o,isEnabled:m(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=S.data!==void 0,r=S.status===`error`&&!t,i=e=>{r?e.reject(S.error):t&&e.resolve(S.data)},a=()=>{let e=this.#o=S.promise=j();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||S.data!==o.value)&&a();break;case`rejected`:(!r||S.error!==o.reason)&&a()}}return S}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!S(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){M.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function be(e,t){return m(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||m(t.retryOnMount,e)!==!1)}function xe(e,t){return be(e,t)||e.state.data!==void 0&&Se(e,t,t.refetchOnMount)}function Se(e,t,n){if(m(t.enabled,e)!==!1&&p(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&we(e,t)}return!1}function Ce(e,t,n,r){return(e!==t||m(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&we(e,n)}function we(e,t){return m(t.enabled,e)!==!1&&e.isStaleByTime(p(t.staleTime,e))}function Te(e,t){return!S(e.getCurrentResult(),t)}var Ee=class extends de{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||De(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ue({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),M.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function De(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Oe=class extends r{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ee({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=ke(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=ke(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=ke(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=ke(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){M.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>g(t,e))}findAll(e={}){return this.getAll().filter(t=>g(e,t))}notify(e){M.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return M.batch(()=>Promise.all(e.map(e=>e.continue().catch(l))))}};function ke(e){return e.options.scope?.id}var Ae=class extends r{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),S(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&v(t.mutationKey)!==v(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??De();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){M.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function je(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function Me(e,t,n){let r=e.slice(0);return r[t]=n,r}var Ne=class extends r{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,M.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!S(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(je(e,n).forEach(e=>{e.destroy()}),je(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=x(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new ye(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=Me(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&M.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Pe=class extends r{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??_(r,t),a=this.get(i);return a||(a=new he({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){M.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){M.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){M.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){M.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Fe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Pe,this.#t=e.mutationCache||new Oe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=i.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=oe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(p(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=u(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return M.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;M.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return M.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=M.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(l).catch(l)}invalidateQueries(e,t={}){return M.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=M.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(l)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(l)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(p(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(l).catch(l)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(l).catch(l)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return oe.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(v(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{y(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(v(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{y(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=_(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===te&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ie=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function re(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function k(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,k(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),k(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=k(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=k(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return k(re(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return k(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function j(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ie=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ae={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ae,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:j}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,ie)}catch(e){ie(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),Le=n(((e,t)=>{t.exports=Ie()})),Re=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ze=n(((e,t)=>{t.exports=Re()})),N=t(Le(),1),P=ze(),Be=N.createContext(void 0),Ve=e=>{let t=N.useContext(Be);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},He=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,P.jsx)(Be.Provider,{value:e,children:t})),Ue=N.createContext(!1),We=()=>N.useContext(Ue);Ue.Provider;function Ge(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ke=N.createContext(Ge()),qe=()=>N.useContext(Ke),Je=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?re(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ye=e=>{N.useEffect(()=>{e.clearReset()},[e])},Xe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||re(n,[e.error,r])),Ze=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Qe=(e,t)=>e.isLoading&&e.isFetching&&!t,$e=(e,t)=>e?.suspense&&t.isPending,et=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tt({queries:e,...t},n){let r=Ve(n),i=We(),a=qe(),o=N.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{Ze(e);let t=r.getQueryCache().get(e.queryHash);Je(e,a,t)}),Ye(a);let[s]=N.useState(()=>new Ne(r,o,t)),[c,u,d]=s.getOptimisticResult(o,t.combine),f=!i&&t.subscribed!==!1;N.useSyncExternalStore(N.useCallback(e=>f?s.subscribe(M.batchCalls(e)):l,[s,f]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),N.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let p=c.some((e,t)=>$e(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&$e(n,e)?et(n,new ye(r,n),a):[]}):[];if(p.length>0)throw Promise.all(p);let m=c.find((e,t)=>{let n=o[t];return n&&Xe({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m?.error)throw m.error;return u(d())}function nt(e,t,n){let r=We(),i=qe(),a=Ve(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ze(o),Je(o,i,s),Ye(i);let u=!a.getQueryCache().get(o.queryHash),[d]=N.useState(()=>new t(a,o)),f=d.getOptimisticResult(o),p=!r&&c;if(N.useSyncExternalStore(N.useCallback(e=>{let t=p?d.subscribe(M.batchCalls(e)):l;return d.updateResult(),t},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),N.useEffect(()=>{d.setOptions(o)},[o,d]),$e(o,f))throw et(o,d,i);if(Xe({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,f),o.experimental_prefetchInRender&&!A.isServer()&&Qe(f,r)&&(u?et(o,d,i):s?.promise)?.catch(l).finally(()=>{d.updateResult()}),o.notifyOnChangeProps?f:d.trackResult(f)}function rt(e,t){return nt(e,ye,t)}function it(e,t){let n=Ve(t),[r]=N.useState(()=>new Ae(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);let i=N.useSyncExternalStore(N.useCallback(e=>r.subscribe(M.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=N.useCallback((e,t)=>{r.mutate(e,t).catch(l)},[r]);if(i.error&&re(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var at=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.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}},e.unstable_requestPaint=function(){g=!0},e.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}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ot=n(((e,t)=>{t.exports=at()})),st=n((e=>{var t=Le();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),ct=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=st()})),lt=n((e=>{var t=ot(),n=Le(),r=ct();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function ee(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var te=Symbol.for(`react.client.reference`);function ne(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ne(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var re=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},ie=[],ae=-1;function M(e){return{current:e}}function oe(e){0>ae||(e.current=ie[ae],ie[ae]=null,ae--)}function se(e,t){ae++,ie[ae]=e.current,e.current=t}var ce=M(null),le=M(null),ue=M(null),de=M(null);function fe(e,t){switch(se(ue,t),se(le,e),se(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Gd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}oe(ce),se(ce,e)}function pe(){oe(ce),oe(le),oe(ue)}function me(e){e.memoizedState!==null&&se(de,e);var t=ce.current,n=Gd(t,e.type);t!==n&&(se(le,e),se(ce,n))}function he(e){le.current===e&&(oe(ce),oe(le)),de.current===e&&(oe(de),tp._currentValue=j)}var ge,_e;function ve(e){if(ge===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||``,_e=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+ge+e+_e}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -7,7 +7,7 @@ import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";(function(){let
|
|
|
7
7
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function xe(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function Se(e){try{var t=``,n=null;do t+=xe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
8
|
Error generating stack: `+e.message+`
|
|
9
9
|
`+e.stack}}var Ce=Object.prototype.hasOwnProperty,we=t.unstable_scheduleCallback,Te=t.unstable_cancelCallback,Ee=t.unstable_shouldYield,De=t.unstable_requestPaint,Oe=t.unstable_now,ke=t.unstable_getCurrentPriorityLevel,Ae=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Fe=t.log,Ie=t.unstable_setDisableYieldValue,Re=null,ze=null;function N(e){if(typeof Fe==`function`&&Ie(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var P=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-P(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-P(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-P(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=A.p;return e===0?(e=window.event,e===void 0?32:_p(e.type)):e}function st(e,t){var n=A.p;try{return A.p=e,t()}finally{A.p=n}}var lt=Math.random().toString(36).slice(2),ut=`__reactFiber$`+lt,dt=`__reactProps$`+lt,ft=`__reactContainer$`+lt,pt=`__reactEvents$`+lt,mt=`__reactListeners$`+lt,ht=`__reactHandles$`+lt,gt=`__reactResources$`+lt,_t=`__reactMarker$`+lt;function vt(e){delete e[ut],delete e[dt],delete e[pt],delete e[mt],delete e[ht]}function yt(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mf(e);e!==null;){if(n=e[ut])return n;e=mf(e)}return t}e=n,n=e.parentNode}return null}function bt(e){if(e=e[ut]||e[ft]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function St(e){var t=e[gt];return t||=e[gt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ct(e){e[_t]=!0}var wt=new Set,Tt={};function Et(e,t){Dt(e,t),Dt(e+`Capture`,t)}function Dt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Ot=RegExp(`^[: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]*$`),kt={},At={};function jt(e){return Ce.call(At,e)?!0:Ce.call(kt,e)?!1:Ot.test(e)?At[e]=!0:(kt[e]=!0,!1)}function Mt(e,t,n){if(jt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Nt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Pt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ft(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function It(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Lt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rt(e){if(!e._valueTracker){var t=It(e)?`checked`:`value`;e._valueTracker=Lt(e,t,``+e[t])}}function zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=It(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Bt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Vt=/[\n"\\]/g;function Ht(e){return e.replace(Vt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ut(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ft(t)):e.value!==``+Ft(t)&&(e.value=``+Ft(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Gt(e,o,Ft(n)):Gt(e,o,Ft(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ft(s):e.removeAttribute(`name`)}function Wt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Rt(e);return}n=n==null?``:``+Ft(n),t=t==null?n:``+Ft(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Rt(e)}function Gt(e,t,n){t===`number`&&Bt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Kt(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=``+Ft(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qt(e,t,n){if(t!=null&&(t=``+Ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ft(n)}function Jt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(re(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ft(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Rt(e)}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Zt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Xt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Zt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Zt(e,o,t[o])}function $t(e){if(e.indexOf(`-`)===-1)return!1;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 en=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),tn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function nn(e){return tn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function rn(){}var F=null;function an(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var on=null,I=null;function sn(e){var t=bt(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ut(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[dt]||null;if(!a)throw Error(i(90));Ut(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&zt(r)}break a;case`textarea`:qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}}}var cn=!1;function ln(e,t,n){if(cn)return e(t,n);cn=!0;try{return e(t)}finally{if(cn=!1,(on!==null||I!==null)&&(xu(),on&&(t=on,e=I,I=on=null,sn(t),e)))for(t=0;t<e.length;t++)sn(e[t])}}function un(e,t){var n=e.stateNode;if(n===null)return null;var r=n[dt]||null;if(r===null)return null;n=r[t];a: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)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),fn=!1;if(dn)try{var pn={};Object.defineProperty(pn,"passive",{get:function(){fn=!0}}),window.addEventListener(`test`,pn,pn),window.removeEventListener(`test`,pn,pn)}catch{fn=!1}var mn=null,hn=null,gn=null;function _n(){if(gn)return gn;var e,t=hn,n=t.length,r,i=`value`in mn?mn.value:mn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return gn=i.slice(e,1<r?1-r:void 0)}function vn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yn(){return!0}function bn(){return!1}function xn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?yn:bn,this.isPropagationStopped=bn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=yn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=yn)},persist:function(){},isPersistent:yn}),t}var Sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cn=xn(Sn),wn=f({},Sn,{view:0,detail:0}),Tn=xn(wn),En,Dn,On,kn=f({},wn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==On&&(On&&e.type===`mousemove`?(En=e.screenX-On.screenX,Dn=e.screenY-On.screenY):Dn=En=0,On=e),En)},movementY:function(e){return`movementY`in e?e.movementY:Dn}}),An=xn(kn),jn=xn(f({},kn,{dataTransfer:0})),Mn=xn(f({},wn,{relatedTarget:0})),Nn=xn(f({},Sn,{animationName:0,elapsedTime:0,pseudoElement:0})),Pn=xn(f({},Sn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Fn=xn(f({},Sn,{data:0})),In={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Ln={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`},Rn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rn[e])?!!t[e]:!1}function Bn(){return zn}var Vn=xn(f({},wn,{key:function(e){if(e.key){var t=In[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=vn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Ln[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bn,charCode:function(e){return e.type===`keypress`?vn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?vn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Hn=xn(f({},kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Un=xn(f({},wn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bn})),Wn=xn(f({},Sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Gn=xn(f({},kn,{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})),Kn=xn(f({},Sn,{newState:0,oldState:0})),qn=[9,13,27,32],Jn=dn&&`CompositionEvent`in window,Yn=null;dn&&`documentMode`in document&&(Yn=document.documentMode);var Xn=dn&&`TextEvent`in window&&!Yn,Zn=dn&&(!Jn||Yn&&8<Yn&&11>=Yn),Qn=` `,$n=!1;function er(e,t){switch(e){case`keyup`:return qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var nr=!1;function rr(e,t){switch(e){case`compositionend`:return tr(t);case`keypress`:return t.which===32?($n=!0,Qn):null;case`textInput`:return e=t.data,e===Qn&&$n?null:e;default:return null}}function ir(e,t){if(nr)return e===`compositionend`||!Jn&&er(e,t)?(e=_n(),gn=hn=mn=null,nr=!1,e):null;switch(e){case`paste`: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 Zn&&t.locale!==`ko`?null:t.data;default:return null}}var ar={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 or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ar[e.type]:t===`textarea`}function sr(e,t,n,r){on?I?I.push(r):I=[r]:on=r,t=Od(t,`onChange`),0<t.length&&(n=new Cn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var cr=null,lr=null;function ur(e){bd(e,0)}function dr(e){if(zt(xt(e)))return e}function fr(e,t){if(e===`change`)return t}var pr=!1;if(dn){var mr;if(dn){var hr=`oninput`in document;if(!hr){var gr=document.createElement(`div`);gr.setAttribute(`oninput`,`return;`),hr=typeof gr.oninput==`function`}mr=hr}else mr=!1;pr=mr&&(!document.documentMode||9<document.documentMode)}function _r(){cr&&(cr.detachEvent(`onpropertychange`,vr),lr=cr=null)}function vr(e){if(e.propertyName===`value`&&dr(lr)){var t=[];sr(t,lr,e,an(e)),ln(ur,t)}}function yr(e,t,n){e===`focusin`?(_r(),cr=t,lr=n,cr.attachEvent(`onpropertychange`,vr)):e===`focusout`&&_r()}function br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return dr(lr)}function xr(e,t){if(e===`click`)return dr(t)}function Sr(e,t){if(e===`input`||e===`change`)return dr(t)}function Cr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var wr=typeof Object.is==`function`?Object.is:Cr;function Tr(e,t){if(wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!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(!Ce.call(t,i)||!wr(e[i],t[i]))return!1}return!0}function Er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dr(e,t){var n=Er(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Er(n)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bt(e.document)}return t}function Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var jr=dn&&`documentMode`in document&&11>=document.documentMode,Mr=null,Nr=null,Pr=null,Fr=!1;function Ir(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||Mr==null||Mr!==Bt(r)||(r=Mr,`selectionStart`in r&&Ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pr&&Tr(Pr,r)||(Pr=r,r=Od(Nr,`onSelect`),0<r.length&&(t=new Cn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Mr)))}function Lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Rr={animationend:Lr(`Animation`,`AnimationEnd`),animationiteration:Lr(`Animation`,`AnimationIteration`),animationstart:Lr(`Animation`,`AnimationStart`),transitionrun:Lr(`Transition`,`TransitionRun`),transitionstart:Lr(`Transition`,`TransitionStart`),transitioncancel:Lr(`Transition`,`TransitionCancel`),transitionend:Lr(`Transition`,`TransitionEnd`)},zr={},Br={};dn&&(Br=document.createElement(`div`).style,`AnimationEvent`in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),`TransitionEvent`in window||delete Rr.transitionend.transition);function Vr(e){if(zr[e])return zr[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Br)return zr[e]=t[n];return e}var Hr=Vr(`animationend`),Ur=Vr(`animationiteration`),L=Vr(`animationstart`),Wr=Vr(`transitionrun`),R=Vr(`transitionstart`),Gr=Vr(`transitioncancel`),Kr=Vr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle 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(` `);Jr.push(`scrollEnd`);function z(e,t){qr.set(e,t),Et(t,[e])}var Yr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-P(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<fu)throw fu=0,pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(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.refCleanup=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 si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.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=e.flags&65011712,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ui(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Kf(e,n,ce.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=si(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return fi(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=si(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=si(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=si(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function fi(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function pi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function mi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:Se(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:Se(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function Di(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Oi(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-P(r)-1;r&=~(1<<i),n+=1;var a=32-P(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-P(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,Pi=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ut]=e,t[dt]=r,n){case`dialog`:xd(`cancel`,t),xd(`close`,t);break;case`iframe`:case`object`:case`embed`:xd(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)xd(vd[n],t);break;case`source`:xd(`error`,t);break;case`img`:case`image`:case`link`:xd(`error`,t),xd(`load`,t);break;case`details`:xd(`toggle`,t);break;case`input`:xd(`invalid`,t),Wt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:xd(`invalid`,t);break;case`textarea`:xd(`invalid`,t),Jt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Pd(t.textContent,n)?(r.popover!=null&&(xd(`beforetoggle`,t),xd(`toggle`,t)),r.onScroll!=null&&xd(`scroll`,t),r.onScrollEnd!=null&&xd(`scrollend`,t),r.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Mi=Mi.return}}function Vi(e){if(e!==Mi)return!1;if(!Pi)return Bi(e),Pi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Kd(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=pf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=pf(e)}else t===27?(t=Ni,ef(e.type)?(e=ff,ff=null,Ni=e):Ni=t):Ni=Mi?df(e.stateNode.nextSibling):null;return!0}function Hi(){Ni=Mi=null,Pi=!1}function Ui(){var e=Fi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=M(null),Ki=null,qi=null;function Ji(e,t,n){se(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,oe(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;wr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===de.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[tp]:e.push(tp))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!wr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=fd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=k.S;k.S=function(e,t){tu=Oe(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=M(null);function ya(){var e=va.current;return e===null?K.pooledCache:e}function ba(e,t){t===null?se(va,va.current):se(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(rn,rn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(rn,rn);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=di(n.type,n.key,n.props,null,e.mode,r),Fa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=pi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=di(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case h:return t=hi(t,e.mode,n),t.return=e,t;case T:return t=Oa(t),f(e,t,n)}if(re(t)||ee(t))return t=fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===b)return f(e,na(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Oa(n),p(e,t,n,r)}if(re(n)||ee(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===b)return p(e,t,na(e,n),r);Ia(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Oa(r),_(e,t,n,r,i)}if(re(r)||ee(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Pa(r),i);if(r.$$typeof===b)return _(e,t,n,na(t,r),i);Ia(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Pi&&Di(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Pi&&Di(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Pi&&Di(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Pi&&Di(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Pi&&Di(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Pi&&Di(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Oa(o),x(e,r,o,c)}if(re(o))return v(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Pa(o),c);if(o.$$typeof===b)return x(e,r,na(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=x(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Bl&p)===p:(r&p)===p){p!==0&&p===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ba=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=M(null),$a=M(0);function eo(e,t){e=Wl,se($a,e),se(Qa,t),Wl=e|t.baseLanes}function to(){se($a,Wl),se(Qa,Qa.current)}function no(){Wl=$a.current,oe(Qa),oe($a)}var ro=M(null),io=null;function ao(e){var t=e.alternate;se(uo,uo.current&1),se(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){se(uo,uo.current),se(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(se(uo,uo.current),se(ro,e),io===null&&(io=e)):co(e)}function co(){se(uo,uo.current),se(ro,ro.current)}function lo(e){oe(ro),io===e&&(io=null),oe(uo)}var uo=M(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cf(n)||lf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,B=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return po=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Hs:Us,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){k.H=Vs;var t=mo!==null&&mo.next!==null;if(po=0,ho=mo=B=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||oc||(e=e.dependencies,e!==null&&$i(e)&&(oc=!0))}function Do(e,t,n,r){B=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=Ws,o=t(n,r)}while(_o);return o}function Oo(){var e=k.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(B.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}po=0,ho=mo=B=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?B.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?B.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw B.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?B.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Da(xo,e,t),t=B,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Hs:Us),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===b)return ta(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),B.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=D;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(Bl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,B.lanes|=p,Kl|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,B.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!wr(o,e.memoizedState)&&(oc=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);wr(o,t.memoizedState)||(oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=B,a=No(),o=Pi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!wr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,oc=!0),a=a.queue,ps(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),K===null)throw Error(i(349));o||po&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=Po(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wr(e,n)}catch{return!0}}function qo(e){var t=ni(e,2);t!==null&&gu(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){N(!0);try{n()}finally{N(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Rs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};k.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=k.T,o={};k.T=o;try{var s=n(i,r),c=k.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),k.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(Pi){var n=K.formState;if(n!==null){a:{var r=B;if(Pi){if(Ni){b:{for(var i=Ni,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=df(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=df(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Fs.bind(null,B,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,B,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),mo,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Sa?wa:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=No(),n=mo;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=Po(),B.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ls(){return No().memoizedState}function us(e,t,n,r){var i=Mo();B.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(B.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=Po(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=No().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){N(!0);try{e()}finally{N(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||po&1073741824&&!(Bl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),B.lanes|=e,Kl|=e,n)}function ws(e,t,n,r){return wr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(Bl&261930)?(oc=!0,e.memoizedState=n):(e=hu(),B.lanes|=e,Kl|=e,t):(e=Cs(e,n,r),wr(e,t)||(oc=!0),e)}function Ts(e,t,n,r,i){var a=A.p;A.p=a!==0&&8>a?a:8;var o=k.T,s={};k.T=s,Ls(e,!1,t,n);try{var c=i(),l=k.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,ga(c,r),mu(e)):Is(e,t,r,mu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{A.p=a,o!==null&&s.types!==null&&(o.types=s.types),k.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,j,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:j},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},mu())}function As(){return ta(tp)}function js(){return No().memoizedState}function Ms(){return No().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(gu(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ti(e,t,n,r),n!==null&&(gu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,mu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,wr(s,o))return ei(e,t,i,0),K===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return gu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&gu(t,e,2)}function Rs(e){var t=e.alternate;return e===B||t!==null&&t===B}function zs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var Vs={readContext:ta,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Vs.useEffectEvent=Co;var Hs={readContext:ta,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){N(!0);try{e()}finally{N(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){N(!0);try{n(t)}finally{N(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,B,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,a=Mo();if(Pi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));Bl&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=K.identifierPrefix;if(Pi){var n=Ei,r=Ti;n=(r&~(1<<32-P(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ns.bind(null,B)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Us={readContext:ta,use:Io,useCallback:xs,useContext:ta,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Us.useEffectEvent=hs;var Ws={readContext:ta,use:Io,useCallback:xs,useContext:ta,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=No();return mo===null?Cs(n,e,t):ws(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Ws.useEffectEvent=hs;function Gs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(gu(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(gu(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(gu(t,e,n),Ga(t,e,n))}};function qs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Tr(n,r)||!Tr(i,a):!0}function Js(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ks.enqueueReplaceState(t,t.state,null)}function Ys(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Xs(e){Yr(e)}function Zs(e){console.error(e)}function Qs(e){Yr(e)}function $s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){$s(e,t)},n}function nc(e){return e=Ua(e),e.tag=3,e}function rc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ec(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),X(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),X(e,r,a)),!1}throw Error(i(435,n.tag))}return X(e,r,a),Ou(),!1}if(Pi)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=tc(e.stateNode,r,a),Ka(e,a),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=tc(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=nc(a),rc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var ac=Error(i(461)),oc=!1;function sc(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!oc?(Ao(e,t,i),Mc(e,t,i)):(Pi&&s&&ki(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Nc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Tr:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Tr(a,r)&&e.ref===t.ref){if(oc=!1,t.pendingProps=r=a,Nc(e,i))e.flags&131072&&(oc=!0);else return t.lanes=e.lanes,Mc(e,t,i)}}return vc(e,t,n,r,i)}function dc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return Ra(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Pi){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(oo(t),(e=Ni)?(e=sf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a){if(t.flags&256)t.flags&=-257,t=hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(oc||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,oc||a){if(r=K,r!==null&&(s=nt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),gu(r,e,s),ac;Ou(),t=hc(e,t,n)}else e=o.treeContext,Ni=df(s.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=mc(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return ea(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!oc?(Ao(e,t,i),Mc(e,t,i)):(Pi&&r&&ki(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!oc?(Ao(e,t,a),Mc(e,t,a)):(Pi&&r&&ki(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ks,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Gs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ks.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ys(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Js(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Gs(t,n,d,r),l=t.memoizedState),(c=Ba||qs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=Ys(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Js(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Gs(t,n,s,r),p=t.memoizedState),(u=Ba||qs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,_c(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return Hi(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:xa()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(uo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Pi){if(a?ao(t):co(t),(e=Ni)?(e=sf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return lf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=fi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(ao(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=fi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),lf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(oc||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,oc||s){if(s=K,s!==null&&(r=nt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),gu(s,e,r),ac;cf(c)||Ou(),t=Oc(e,t,n)}else cf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=df(c.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=fi(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Ra(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Ac(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,se(uo,o),sc(e,t,r,n),r=Pi?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&$i(e)))}function Pc(e,t,n){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:me(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),se(uo,uo.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Mc(e,t,n)}function Fc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)oc=!0;else{if(!Nc(e,n)&&!(t.flags&128))return oc=!1,Pc(e,t,n);oc=!!(e.flags&131072)}}else oc=!1,Pi&&t.flags&1048576&&Oi(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=Ys(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=cc(null,t,e,r,n);break a}if(a===w){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=ne(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ys(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),Ja(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=xc(e,t,r,n);break a}if(r!==a){a=_i(Error(i(424)),t),Wi(a),t=xc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=df(e.firstChild),Mi=t,Pi=!0,Fi=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=Mf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Pi||(n=t.type,e=t.pendingProps,r=Ud(ue.current).createElement(n),r[ut]=t,r[dt]=e,Ld(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=Mf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return me(t),e===null&&Pi&&(r=t.stateNode=hf(t.type,t.pendingProps,ue.current),Mi=t,Ii=!0,a=Ni,ef(t.type)?(ff=a,Ni=df(r.firstChild)):Ni=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pi&&((a=r=Ni)&&(r=af(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=df(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),me(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Kd(a,o)?r=null:s!==null&&Kd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),tp._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&Pi&&((e=n=Ni)&&(n=of(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ri(t)),null;case 13:return Tc(e,t,n);case 4:return fe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=K,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw ka=Ta,Ca}}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!qf(t)){if(Tu())e.flags|=8192;else throw ka=Ta,Ca}}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Xl|=t)}function Bc(e,t){if(!Pi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)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 Hc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vc(t),null;case 1:return Vc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),pe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),Vc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(Vc(t),Lc(t,a,null,r,n)):(Vc(t),Rc(t,o))):o?o===e.memoizedState?(Vc(t),t.flags&=-16777217):(Ic(t),Vc(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),Vc(t),Lc(t,a,e,r,n)),null;case 27:if(he(t),n=ue.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}e=ce.current,Vi(t)?zi(t,e):(e=hf(a,r,n),t.stateNode=e,Ic(t))}return Vc(t),null;case 5:if(he(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Vc(t),null}if(o=ce.current,Vi(t))zi(t,o);else{var s=Ud(ue.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ut]=t,o[dt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ld(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return Vc(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ue.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Ri(t,!0)}else e=Ud(e).createTextNode(r),e[ut]=t,t.stateNode=e}return Vc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ut]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return Vc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ut]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Vc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),Vc(t),null);case 4:return pe(),e===null&&wd(t.stateNode.containerInfo),Vc(t),null;case 10:return Yi(t.type),Vc(t),null;case 19:if(oe(uo),r=t.memoizedState,r===null)return Vc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Bc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Bc(r,!1),e=o.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return se(uo,uo.current&1|2),Pi&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Oe()>nu&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Pi)return Vc(t),null}else 2*Oe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Vc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Oe(),e.sibling=null,n=uo.current,se(uo,a?n&1|2:n&1),Pi&&Di(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Vc(t),t.subtreeFlags&6&&(t.flags|=8192)):Vc(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),Vc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Uc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),pe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(uo),null;case 4:return pe(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&oe(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Wc(e,t){switch(Ai(t),t.tag){case 3:Yi(sa),pe();break;case 26:case 27:case 5:he(t);break;case 4:pe();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:oe(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&oe(va);break;case 24:Yi(sa)}}function Gc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Kc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Ku(e,e.return,t)}}}function Jc(e,t,n){n.props=Ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Yc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Xc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}}function Zc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Qc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[dt]=t}catch(t){Ku(e,e.return,t)}}function $c(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ef(e.type)||e.tag===4}function el(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||$c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ef(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rn));else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ld(t,r,n),t[ut]=e,t[dt]=n}catch(t){Ku(e,e.return,t)}}var il=!1,al=!1,ol=!1,sl=typeof WeakSet==`function`?WeakSet:Set,cl=null;function ll(e,t){if(e=e.containerInfo,Vd=up,e=kr(e),Ar(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Hd={focusedElem:e,selectionRange:n},up=!1,cl=t;cl!==null;)if(t=cl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,cl=e;else for(;cl!==null;){switch(t=cl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ys(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)rf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:rf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,cl=e;break}cl=t.return}}function ul(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Gc(5,n);break;case 1:if(Cl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Ys(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}}r&64&&qc(n),r&512&&Yc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&rl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Zc(n),r&512&&Yc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&V(e,n);break;case 13:Cl(e,n),r&4&&gl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),uf(e,n))));break;case 22:if(r=n.memoizedState!==null||il,!r){t=t!==null&&t.memoizedState!==null||al,i=il;var a=al;il=r,(al=t)&&!a?wl(e,n,!!(n.subtreeFlags&8772)):Cl(e,n),il=i,al=a}break;case 30:break;default:Cl(e,n)}}function dl(e){var t=e.alternate;t!==null&&(e.alternate=null,dl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var fl=null,pl=!1;function ml(e,t,n){for(n=n.child;n!==null;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:al||Xc(n,t),ml(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:al||Xc(n,t);var r=fl,i=pl;ef(n.type)&&(fl=n.stateNode,pl=!1),ml(e,t,n),gf(n.stateNode),fl=r,pl=i;break;case 5:al||Xc(n,t);case 6:if(r=fl,i=pl,fl=null,ml(e,t,n),fl=r,pl=i,fl!==null){if(pl)try{(fl.nodeType===9?fl.body:fl.nodeName===`HTML`?fl.ownerDocument.body:fl).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{fl.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}}break;case 18:fl!==null&&(pl?(e=fl,tf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Ip(e)):tf(fl,n.stateNode));break;case 4:r=fl,i=pl,fl=n.stateNode.containerInfo,pl=!0,ml(e,t,n),fl=r,pl=i;break;case 0:case 11:case 14:case 15:Kc(2,n,t),al||Kc(4,n,t),ml(e,t,n);break;case 1:al||(Xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Jc(n,t,r)),ml(e,t,n);break;case 21:ml(e,t,n);break;case 22:al=(r=al)||n.memoizedState!==null,ml(e,t,n),al=r;break;default:ml(e,t,n)}}function V(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ip(e)}catch(e){Ku(t,t.return,e)}}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ip(e)}catch(e){Ku(t,t.return,e)}}function _l(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sl),t;default:throw Error(i(435,e.tag))}}function vl(e,t){var n=_l(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function yl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(ef(c.type)){fl=c.stateNode,pl=!1;break a}break;case 5:fl=c.stateNode,pl=!1;break a;case 3:case 4:fl=c.stateNode.containerInfo,pl=!0;break a}c=c.return}if(fl===null)throw Error(i(160));hl(o,s,a),fl=null,pl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xl(t,e),t=t.sibling}var bl=null;function xl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yl(t,e),H(e),r&4&&(Kc(3,e,e.return),Gc(3,e),Kc(5,e,e.return));break;case 1:yl(t,e),H(e),r&512&&(al||n===null||Xc(n,n.return)),r&64&&il&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=bl;if(yl(t,e),H(e),r&512&&(al||n===null||Xc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[_t]||o[ut]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Ld(o,r,n),o[ut]=e,Ct(o),r=o;break a;case`link`:var s=Wf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Wf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ut]=e,Ct(o),r=o}e.stateNode=r}else Gf(a,e.type,e.stateNode)}else e.stateNode=zf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Gf(a,e.type,e.stateNode):zf(a,r,e.memoizedProps))}break;case 27:yl(t,e),H(e),r&512&&(al||n===null||Xc(n,n.return)),n!==null&&r&4&&Qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yl(t,e),H(e),r&512&&(al||n===null||Xc(n,n.return)),e.flags&32){a=e.stateNode;try{Yt(a,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(ol=!0);break;case 6:if(yl(t,e),H(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Uf=null,a=bl,bl=yf(t.containerInfo),yl(t,e),bl=a,H(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ip(t.containerInfo)}catch(t){Ku(e,e.return,t)}ol&&(ol=!1,Sl(e));break;case 4:r=bl,bl=yf(e.stateNode.containerInfo),yl(t,e),H(e),bl=r;break;case 12:yl(t,e),H(e);break;case 31:yl(t,e),H(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 13:yl(t,e),H(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=Oe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=il,d=al;if(il=u||a,al=d||l,yl(t,e),al=d,il=u,H(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||il||al||U(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?nf(m,!0):nf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,vl(e,n))));break;case 19:yl(t,e),H(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vl(e,r)));break;case 30:break;case 21:break;default:yl(t,e),H(e)}}function H(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if($c(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;nl(e,el(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Yt(o,``),n.flags&=-33),nl(e,el(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;tl(e,el(e),s);break;default:throw Error(i(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ul(e,t.alternate,t),t=t.sibling}function U(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Kc(4,t,t.return),U(t);break;case 1:Xc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Jc(t,t.return,n),U(t);break;case 27:gf(t.stateNode);case 26:case 5:Xc(t,t.return),U(t);break;case 22:t.memoizedState===null&&U(t);break;case 30:U(t);break;default:U(t)}e=e.sibling}}function wl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Gc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&qc(a),Yc(a,a.return);break;case 27:rl(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Zc(a),Yc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&V(i,a);break;case 13:wl(i,a,n),n&&o&4&&gl(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Yc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Gc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:kl(a,o,s,c,i),Gc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&Jf(n,bl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=bl;bl=yf(e.stateNode.containerInfo),Ml(e,t,n),bl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cl=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Kc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];cl=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Kc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;cl!==null;){var n=cl;switch(n.tag){case 0:case 11:case 15:Kc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,cl=r;else a:for(n=e;cl!==null;){r=cl;var i=r.sibling,a=r.return;if(dl(r),r===n){cl=null;break a}if(i!==null){i.return=a,cl=i;break a}cl=a}}}var W={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,Bl=0,Vl=0,J=null,Hl=!1,Ul=!1,Y=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return G&2&&Bl!==0?Bl&-Bl:k.T===null?at():fd()}function hu(){if(Yl===0){if(!(Bl&536870912)||Pi){var e=We;We<<=1,!(We&3932160)&&(We=262144),Yl=e}else Yl=536870912}return e=ro.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===K&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Bl,Yl,!1)),Qe(e,n),(!(G&2)||e!==K)&&(e===K&&(!(G&2)&&(ql|=n),Gl===4&&bu(e,Bl,Yl,!1)),id(e))}function _u(e,t,n){if(G&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Je(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Ul&&!r&&bu(e,t,0,!1);break}if(n=e.current.alternate,o&&!yu(n)){a=ku(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Y&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Hl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-Oe(),10<a)){if(bu(r,t,Yl,!Hl),qe(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Yd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Hl,o,`Throttled`,-0,0),a);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Hl,o,null,-0,0)}break}while(1);id(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},Nl(t,a,d);var m=(a&62914560)===a?eu-Oe():(a&4194048)===a?tu-Oe():0;if(m=Xf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!wr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-P(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function xu(){return G&6?!0:(ad(0,!1),!1)}function Su(){if(q!==null){if(Vl===0)var e=q.return;else e=q,qi=Ki=null,jo(e),Ma=null,Na=0,e=q;for(;e!==null;)Wc(e.alternate,e),e=e.return;q=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),K=e,q=n=li(e.current,null),Bl=t,Vl=0,J=null,Hl=!1,Ul=Je(e,t),Y=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-P(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,$r(),n}function wu(e,t){B=null,k.H=Vs,t===Sa||t===wa?(t=Aa(),Vl=3):t===Ca?(t=Aa(),Vl=4):Vl=t===ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,J=t,q===null&&(Gl=1,$s(e,_i(t,e.current)))}function Tu(){var e=ro.current;return e===null?!0:(Bl&4194048)===Bl?io===null:(Bl&62914560)===Bl||Bl&536870912?e===io:!1}function Eu(){var e=k.H;return k.H=Vs,e===null?Vs:e}function Du(){var e=k.A;return k.A=W,e}function Ou(){Gl=4,Hl||(Bl&4194048)!==Bl&&ro.current!==null||(Ul=!0),!(Kl&134217727)&&!(ql&134217727)||K===null||bu(K,Bl,Yl,!1)}function ku(e,t,n){var r=G;G|=2;var i=Eu(),a=Du();(K!==e||Bl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(Vl!==0&&q!==null){var s=q,c=J;switch(Vl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Vl;if(Vl=0,J=null,Fu(e,s,c,l),n&&Ul){o=0;break a}break;default:l=Vl,Vl=0,J=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,G=r,k.H=i,k.A=a,q===null&&(K=null,Bl=0,$r()),o}function Au(){for(;q!==null;)Nu(q)}function ju(e,t){var n=G;G|=2;var r=Eu(),a=Du();K!==e||Bl!==t?(ru=null,nu=Oe()+500,Cu(e,t)):Ul=Je(e,t);a:do try{if(Vl!==0&&q!==null){t=q;var o=J;b:switch(Vl){case 1:Vl=0,J=null,Fu(e,t,o,1);break;case 2:case 9:if(Ea(o)){Vl=0,J=null,Pu(t);break}t=function(){Vl!==2&&Vl!==9||K!==e||(Vl=7),id(e)},o.then(t,t);break a;case 3:Vl=7;break a;case 4:Vl=5;break a;case 7:Ea(o)?(Vl=0,J=null,Pu(t)):(Vl=0,J=null,Fu(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?qf(s):c.stateNode.complete){Vl=0,J=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Iu(u))}break b}}Vl=0,J=null,Fu(e,t,o,5);break;case 6:Vl=0,J=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return qi=Ki=null,k.H=r,k.A=a,G=n,q===null?(K=null,Bl=0,$r(),Gl):0}function Mu(){for(;q!==null&&!Ee();)Nu(q)}function Nu(e){var t=Fc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,Bl);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,Bl);break;case 5:jo(t);default:Wc(n,t),t=q=ui(t,Wl),t=Fc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Fu(e,t,n,r){qi=Ki=null,jo(t),Ma=null,Na=0;var i=t.return;try{if(ic(e,i,t,n,Bl)){Gl=1,$s(e,_i(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;Gl=1,$s(e,_i(n,e.current)),q=null;return}t.flags&32768?(Pi||r===1?e=!0:Ul||Bl&536870912?e=!1:(Hl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Hl);return}e=t.return;var n=Hc(t.alternate,t,Wl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Uc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);Gl=6,q=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,$e(e,n,o,s,c,l),e===K&&(q=K=null,Bl=0),su=t,ou=e,cu=n,lu=o,uu=a,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(Me,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=k.T,k.T=null,a=A.p,A.p=2,s=G,G|=4;try{ll(e,t,n)}finally{G=s,A.p=a,k.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=G;G|=4;try{xl(t,e);var a=Hd,o=kr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Or(s.ownerDocument.documentElement,s)){if(c!==null&&Ar(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Dr(s,h),v=Dr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}up=!!Vd,Hd=Vd=null}finally{G=i,A.p=r,k.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=k.T,k.T=null;var r=A.p;A.p=2;var i=G;G|=4;try{ul(e,t.alternate,t)}finally{G=i,A.p=r,k.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,De();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),it(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=k.T,i=A.p,A.p=2,k.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{k.T=t,A.p=i}}cu&3&&Uu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=it(cu),r=k.T,a=A.p;try{A.p=32>n?32:n,k.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,G&6)throw Error(i(331));var c=G;if(G|=4,Il(o.current),Ol(o,o.current,s,n),G=c,ad(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{A.p=a,k.T=r,Hu(e,t)}}function Gu(e,t,n){t=_i(n,t),t=tc(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Qe(e,2),id(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=_i(n,e),n=nc(2),r=Wa(t,n,2),r!==null&&(rc(n,r,t,e),Qe(r,2),id(r));break}}t=t.return}}function X(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Y=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(Bl&n)===n&&(Gl===4||Gl===3&&(Bl&62914560)===Bl&&300>Oe()-eu?!(G&2)&&Cu(e,0):Jl|=n,Xl===Bl&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=Xe()),e=ni(e,t),e!==null&&(Qe(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return we(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-P(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Bl,a=qe(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,ud(r,a))}r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Jd()&&(e=rd);for(var t=Oe(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-P(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=Bl,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Vl===2||Vl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Te(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Te(r),it(n)){case 2:case 8:n=je;break;case 32:n=Me;break;case 268435456:n=Pe;break;default:n=Me}return r=ld.bind(null,e),n=we(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Te(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Bl;return r=qe(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,Oe()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Qd(function(){G&6?we(Ae,od):sd()})}function fd(){if(rd===0){var e=fa;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:nn(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[dt]||null).action),o=r.submitter;o&&(t=(t=o[dt]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Cn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Jr.length;gd++){var _d=Jr[gd];z(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}z(Hr,`onAnimationEnd`),z(Ur,`onAnimationIteration`),z(L,`onAnimationStart`),z(`dblclick`,`onDoubleClick`),z(`focusin`,`onFocus`),z(`focusout`,`onBlur`),z(Wr,`onTransitionRun`),z(R,`onTransitionStart`),z(Gr,`onTransitionCancel`),z(Kr,`onTransitionEnd`),Dt(`onMouseEnter`,[`mouseout`,`mouseover`]),Dt(`onMouseLeave`,[`mouseout`,`mouseover`]),Dt(`onPointerEnter`,[`pointerout`,`pointerover`]),Dt(`onPointerLeave`,[`pointerout`,`pointerover`]),Et(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Et(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Et(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Et(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function xd(e,t){var n=t[pt];n===void 0&&(n=t[pt]=new Set);var r=e+`__bubble`;n.has(r)||(Td(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),Td(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function wd(e){if(!e[Cd]){e[Cd]=!0,wt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function Td(e,t,n,r){switch(_p(t)){case 2:var i=dp;break;case 8:i=fp;break;default:i=pp}n=i.bind(null,t,n,e),i=void 0,!fn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ed(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=yt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}ln(function(){var r=a,i=an(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=Cn,u=e;switch(e){case`keypress`:if(vn(n)===0)break a;case`keydown`:case`keyup`:l=Vn;break;case`focusin`:u=`focus`,l=Mn;break;case`focusout`:u=`blur`,l=Mn;break;case`beforeblur`:case`afterblur`:l=Mn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=An;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=jn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Un;break;case Hr:case Ur:case L:l=Nn;break;case Kr:l=Wn;break;case`scroll`:case`scrollend`:l=Tn;break;case`wheel`:l=Gn;break;case`copy`:case`cut`:case`paste`:l=Pn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Hn;break;case`toggle`:case`beforetoggle`:l=Kn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=un(m,p),g!=null&&d.push(Dd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==F&&(u=n.relatedTarget||n.fromElement)&&(yt(u)||u[ft]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?yt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=An,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Hn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:xt(l),h=u==null?c:xt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,yt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=kd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ad(s,c,l,d,!1),u!==null&&f!==null&&Ad(s,f,u,d,!0)}}a:{if(c=r?xt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=fr;else if(or(c)){if(pr)v=Sr;else{v=br;var y=yr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&$t(r.elementType)&&(v=fr):v=xr;if(v&&=v(e,r)){sr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Gt(c,`number`,c.value)}switch(y=r?xt(r):window,e){case`focusin`:(or(y)||y.contentEditable===`true`)&&(Mr=y,Nr=r,Pr=null);break;case`focusout`:Pr=Nr=Mr=null;break;case`mousedown`:Fr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Fr=!1,Ir(s,n,i);break;case`selectionchange`:if(jr)break;case`keydown`:case`keyup`:Ir(s,n,i)}var b;if(Jn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else nr?er(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Zn&&n.locale!==`ko`&&(nr||x!==`onCompositionStart`?x===`onCompositionEnd`&&nr&&(b=_n()):(mn=i,hn=`value`in mn?mn.value:mn.textContent,nr=!0)),y=Od(r,x),0<y.length&&(x=new Fn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=tr(n),b!==null&&(x.data=b)))),(b=Xn?rr(e,n):ir(e,n))&&(x=Od(r,`onBeforeInput`),0<x.length&&(y=new Fn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),hd(s,e,r,n,i)}bd(s,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Od(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=un(e,n),i!=null&&r.unshift(Dd(e,i,a)),i=un(e,t),i!=null&&r.push(Dd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ad(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=un(n,a),l!=null&&o.unshift(Dd(n,l,c))):i||(l=un(n,a),l!=null&&o.push(Dd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jd=/\r\n?/g,Md=/\u0000|\uFFFD/g;function Nd(e){return(typeof e==`string`?e:``+e).replace(jd,`
|
|
10
|
-
`).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Fd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Yt(e,``+r);break;case`className`:Nt(e,`class`,r);break;case`tabIndex`:Nt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Nt(e,n,r);break;case`style`:Qt(e,r,o);break;case`data`:if(t!==`object`){Nt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Fd(e,t,`name`,a.name,a,null),Fd(e,t,`formEncType`,a.formEncType,a,null),Fd(e,t,`formMethod`,a.formMethod,a,null),Fd(e,t,`formTarget`,a.formTarget,a,null)):(Fd(e,t,`encType`,a.encType,a,null),Fd(e,t,`method`,a.method,a,null),Fd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=nn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:xd(`beforetoggle`,e),xd(`toggle`,e),Mt(e,`popover`,r);break;case`xlinkActuate`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Mt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=en.get(n)||n,Mt(e,n,r))}}function Id(e,t,n,r,a,o){switch(n){case`style`:Qt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[dt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Mt(e,n,r)}}}function Ld(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:xd(`error`,e),xd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,o,s,n,null)}}a&&Fd(e,t,`srcSet`,n.srcSet,n,null),r&&Fd(e,t,`src`,n.src,n,null);return;case`input`:xd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Fd(e,t,r,d,n,null)}}Wt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in xd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Fd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Kt(e,!!r,n,!0):Kt(e,!!r,t,!1);return;case`textarea`:for(s in xd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Fd(e,t,s,c,n,null)}Jt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Fd(e,t,l,r,n,null)}return;case`dialog`:xd(`beforetoggle`,e),xd(`toggle`,e),xd(`cancel`,e),xd(`close`,e);break;case`iframe`:case`object`:xd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)xd(vd[r],e);break;case`image`:xd(`error`,e),xd(`load`,e);break;case`details`:xd(`toggle`,e);break;case`embed`:case`source`:case`link`:xd(`error`,e),xd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,u,r,n,null)}return;default:if($t(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Id(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Fd(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Fd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Fd(e,t,p,m,r,f)}}Ut(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Fd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Fd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Kt(e,!!n,n?[]:``,!1):Kt(e,!!n,t,!0)):Kt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Fd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Fd(e,t,s,a,r,o)}qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Fd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Fd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Fd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Fd(e,t,u,p,r,m)}return;default:if($t(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Id(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Id(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Fd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Fd(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Bd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Vd=null,Hd=null;function Ud(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Gd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Kd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qd=null;function Jd(){var e=window.event;return e&&e.type===`popstate`?e!==qd&&(qd=e,!0):(qd=null,!1)}var Yd=typeof setTimeout==`function`?setTimeout:void 0,Xd=typeof clearTimeout==`function`?clearTimeout:void 0,Zd=typeof Promise==`function`?Promise:void 0,Qd=typeof queueMicrotask==`function`?queueMicrotask:Zd===void 0?Yd:function(e){return Zd.resolve(null).then(e).catch($d)};function $d(e){setTimeout(function(){throw e})}function ef(e){return e===`head`}function tf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Ip(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)gf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,gf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&gf(e.ownerDocument.body)}n=i}while(n);Ip(t)}function nf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function rf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:rf(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function af(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[_t])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=df(e.nextSibling),e===null)break}return null}function of(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=df(e.nextSibling),e===null))return null;return e}function sf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=df(e.nextSibling),e===null))return null;return e}function cf(e){return e.data===`$?`||e.data===`$~`}function lf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function uf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function df(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var ff=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return df(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function hf(e,t,n){switch(t=Ud(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=A.d;A.d={f:xf,r:Sf,D:Tf,C:Ef,L:Df,m:Of,X:Af,S:kf,M:jf};function xf(){var e=bf.f(),t=xu();return e||t}function Sf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=Ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Tf(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Ef(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Df(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ht(n.imageSizes)+`"]`)):i+=`[href="`+Ht(e)+`"]`;var a=i;switch(t){case`style`:a=Nf(e);break;case`script`:a=Lf(e)}_f.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Pf(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Ld(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Of(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ht(r)+`"][href="`+Ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!_f.has(a)&&(e=f({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function kf(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=St(r).hoistableStyles,a=Nf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Pf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);Ct(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Af(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=St(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),Ct(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=St(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),Ct(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t,n,r){var a=(a=ue.current)?yf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Nf(n.href),n=St(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Nf(n.href);var o=St(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Pf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_f.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=St(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Nf(e){return`href="`+Ht(e)+`"`}function Pf(e){return`link[rel="stylesheet"][`+e+`]`}function Ff(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),Ct(t),e.head.appendChild(t))}function Lf(e){return`[src="`+Ht(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ht(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Ld(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Nf(n.href);var o=e.querySelector(Pf(a));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;r=Ff(n),(a=_f.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,Ct(a),a):(r=n,(a=_f.get(o))&&(r=f({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Ld(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Uf=null;function Wf(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[_t]||a[ut]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Jf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Nf(r.href),a=t.querySelector(Pf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Zf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ct(a);return}a=t.ownerDocument||t,r=Ff(r),(i=_f.get(i))&&Vf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Zf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Yf=0;function Xf(e,t){return e.stylesheets&&e.count===0&&$f(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Yf===0&&(Yf=62500*Bd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Yf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$f(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qf=null;function $f(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qf=new Map,t.forEach(ep,e),Qf=null,Zf.call(e))}function ep(e,t){if(!(t.state.loading&4)){var n=Qf.get(e);if(n)var r=n.get(null);else{n=new Map,Qf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Zf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var tp={$$typeof:b,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function np(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function rp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new np(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function ip(e){return e?(e=ai,e):ai}function ap(e,t,n,r,i,a){i=ip(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(gu(n,e,t),Ga(n,e,t))}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sp(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&gu(t,e,67108864),sp(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=mu();t=rt(t);var n=ni(e,t);n!==null&&gu(n,e,t),sp(e,t)}}var up=!0;function dp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,pp(e,t,n,r)}finally{A.p=a,k.T=i}}function fp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,pp(e,t,n,r)}finally{A.p=a,k.T=i}}function pp(e,t,n,r){if(up){var i=mp(r);if(i===null)Ed(e,t,r,hp,n),Ep(e,r);else if(Op(i,e,t,n,r))r.stopPropagation();else if(Ep(e,r),t&4&&-1<Tp.indexOf(e)){for(;i!==null;){var a=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-P(o);s.entanglements[1]|=c,o&=~c}id(a),!(G&6)&&(nu=Oe()+500,ad(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&gu(s,a,2),xu(),sp(a,2)}if(a=mp(r),a===null&&Ed(e,t,r,hp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function mp(e){return e=an(e),gp(e)}var hp=null;function gp(e){if(hp=null,e=yt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return hp=e,null}function _p(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ke()){case Ae:return 2;case je:return 8;case Me:case Ne:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var vp=!1,yp=null,bp=null,xp=null,Sp=new Map,Cp=new Map,wp=[],Tp=`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`.split(` `);function Ep(e,t){switch(e){case`focusin`:case`focusout`:yp=null;break;case`dragenter`:case`dragleave`:bp=null;break;case`mouseover`:case`mouseout`:xp=null;break;case`pointerover`:case`pointerout`:Sp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Cp.delete(t.pointerId)}}function Dp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=bt(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Op(e,t,n,r,i){switch(t){case`focusin`:return yp=Dp(yp,e,t,n,r,i),!0;case`dragenter`:return bp=Dp(bp,e,t,n,r,i),!0;case`mouseover`:return xp=Dp(xp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Sp.set(a,Dp(Sp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Cp.set(a,Dp(Cp.get(a)||null,e,t,n,r,i)),!0}return!1}function kp(e){var t=yt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,st(e.priority,function(){lp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){lp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);F=r,n.target.dispatchEvent(r),F=null}else return t=bt(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){Ap(e)&&n.delete(t)}function Mp(){vp=!1,yp!==null&&Ap(yp)&&(yp=null),bp!==null&&Ap(bp)&&(bp=null),xp!==null&&Ap(xp)&&(xp=null),Sp.forEach(jp),Cp.forEach(jp)}function Np(e,n){e.blockedOn===n&&(e.blockedOn=null,vp||(vp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mp)))}var Pp=null;function Fp(e){Pp!==e&&(Pp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Pp===e&&(Pp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(gp(r||n)===null)continue;break}var a=bt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ip(e){function t(t){return Np(t,e)}yp!==null&&Np(yp,e),bp!==null&&Np(bp,e),xp!==null&&Np(xp,e),Sp.forEach(t),Cp.forEach(t);for(var n=0;n<wp.length;n++){var r=wp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wp.length&&(n=wp[0],n.blockedOn===null);)kp(n),n.blockedOn===null&&wp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[dt]||null;if(typeof a==`function`)o||Fp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[dt]||null)s=o.formAction;else if(gp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Fp(n)}}}function Lp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Rp(e){this._internalRoot=e}zp.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ap(n,mu(),e,t,null,null)},zp.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),xu(),t[ft]=null}};function zp(e){this._internalRoot=e}zp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wp.length&&t!==0&&t<wp[n].priority;n++);wp.splice(n,0,e),n===0&&kp(e)}};var Bp=n.version;if(Bp!==`19.2.8`)throw Error(i(527,Bp,`19.2.8`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Vp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Hp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hp.isDisabled&&Hp.supportsFiber)try{Re=Hp.inject(Vp),ze=Hp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Xs,s=Zs,c=Qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=rp(e,1,!1,null,null,n,r,null,o,s,c,Lp),e[ft]=t.current,wd(e),new Rp(t)}})),ut=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lt()})),dt=n(((e,t)=>{((e,n)=>{typeof define==`function`&&define.amd?define([],n):typeof t==`object`&&t.exports?t.exports=n():e.fuzzysort=n()})(e,e=>{var t=(e,t)=>{if(!e||!t)return j;var n=p(e);ne(t)||(t=f(t));var r=n.bitflags;return(r&t._bitflags)===r?h(n,t):j},n=(e,t,n)=>{if(!e)return n?.all?m(t,n):A;var r=p(e),i=r.bitflags,a=r.containsSpace,o=u(n?.threshold||0),c=n?.limit||re,l=0,d=0,g=t.length;function _(e){l<c?(ae.add(e),++l):(++d,e._score>ae.peek()._score&&ae.replaceTop(e))}if(n?.key)for(var v=n.key,y=0;y<g;++y){var b=t[y],x=te(b,v);if(x&&(ne(x)||(x=f(x)),(i&x._bitflags)===i)){var S=h(r,x);S!==j&&(S._score<o||(S.obj=b,_(S)))}}else if(n?.keys){var C=n.keys,w=C.length;outer:for(var y=0;y<g;++y){for(var b=t[y],T=0,M=0;M<w;++M){var v=C[M],x=te(b,v);if(!x){O[M]=ie;continue}ne(x)||(x=f(x)),O[M]=x,T|=x._bitflags}if((i&T)===i){if(a)for(let e=0;e<r.spaceSearches.length;e++)E[e]=k;for(var M=0;M<w;++M){if(x=O[M],x===ie){ee[M]=ie;continue}if(ee[M]=h(r,x,!1,a),ee[M]===j){ee[M]=ie;continue}if(a)for(let e=0;e<r.spaceSearches.length;e++){if(D[e]>-1e3&&E[e]>k){var oe=(E[e]+D[e])/4;oe>E[e]&&(E[e]=oe)}D[e]>E[e]&&(E[e]=D[e])}}if(a){for(let e=0;e<r.spaceSearches.length;e++)if(E[e]===k)continue outer}else{var se=!1;for(let e=0;e<w;e++)if(ee[e]._score!==k){se=!0;break}if(!se)continue}var ce=new s(w);for(let e=0;e<w;e++)ce[e]=ee[e];if(a){var le=0;for(let e=0;e<r.spaceSearches.length;e++)le+=E[e]}else{var le=k;for(let e=0;e<w;e++){var S=ce[e];if(S._score>-1e3&&le>k){var oe=(le+S._score)/4;oe>le&&(le=oe)}S._score>le&&(le=S._score)}}if(ce.obj=b,ce._score=le,n?.scoreFn){if(le=n.scoreFn(ce),!le)continue;le=u(le),ce._score=le}le<o||_(ce)}}}else for(var y=0;y<g;++y){var x=t[y];if(x&&(ne(x)||(x=f(x)),(i&x._bitflags)===i)){var S=h(r,x);S!==j&&(S._score<o||_(S))}}if(l===0)return A;for(var ue=Array(l),y=l-1;y>=0;--y)ue[y]=ae.poll();return ue.total=l+d,ue},r=(e,t=`<b>`,n=`</b>`)=>{for(var r=typeof t==`function`?t:void 0,i=e.target,a=i.length,o=e.indexes,s=``,c=0,l=0,u=!1,d=[],f=0;f<a;++f){var p=i[f];if(o[l]===f){if(++l,u||(u=!0,r?(d.push(s),s=``):s+=t),l===o.length){r?(s+=p,d.push(r(s,c++)),s=``,d.push(i.substr(f+1))):s+=p+n+i.substr(f+1);break}}else u&&(u=!1,r?(d.push(r(s,c++)),s=``):s+=n);s+=p}return r?d:s},i=e=>{typeof e==`number`?e=``+e:typeof e!=`string`&&(e=``);var t=v(e);return c(e,{_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_bitflags:t.bitflags})},a=()=>{x.clear(),S.clear()};class o{get indexes(){return this._indexes.slice(0,this._indexes.len).sort((e,t)=>e-t)}set indexes(e){return this._indexes=e}highlight(e,t){return r(this,e,t)}get score(){return l(this._score)}set score(e){this._score=u(e)}}class s extends Array{get score(){return l(this._score)}set score(e){this._score=u(e)}}var c=(e,t)=>{let n=new o;return n.target=e,n.obj=t.obj??j,n._score=t._score??k,n._indexes=t._indexes??[],n._targetLower=t._targetLower??``,n._targetLowerCodes=t._targetLowerCodes??j,n._nextBeginningIndexes=t._nextBeginningIndexes??j,n._bitflags=t._bitflags??0,n},l=e=>e===k?0:e>1?e:Math.E**(((-e+1)**.04307-1)*-2),u=e=>e===0?k:e>1?e:1-(Math.log(e)/-2+1)**(1/.04307),d=e=>{typeof e==`number`?e=``+e:typeof e!=`string`&&(e=``),e=e.trim();var t=v(e),n=[];if(t.containsSpace){var r=e.split(/\s+/);r=[...new Set(r)];for(var i=0;i<r.length;i++)if(r[i]!==``){var a=v(r[i]);n.push({lowerCodes:a.lowerCodes,_lower:r[i].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,_lower:t._lower,containsSpace:t.containsSpace,bitflags:t.bitflags,spaceSearches:n}},f=e=>{if(e.length>999)return i(e);var t=x.get(e);return t===void 0?(t=i(e),x.set(e,t),t):t},p=e=>{if(e.length>999)return d(e);var t=S.get(e);return t===void 0?(t=d(e),S.set(e,t),t):t},m=(e,t)=>{var n=[];n.total=e.length;var r=t?.limit||re;if(t?.key)for(var i=0;i<e.length;i++){var a=e[i],o=te(a,t.key);if(o!=j){ne(o)||(o=f(o));var l=c(o.target,{_score:o._score,obj:a});if(n.push(l),n.length>=r)return n}}else if(t?.keys)for(var i=0;i<e.length;i++){for(var a=e[i],u=new s(t.keys.length),d=t.keys.length-1;d>=0;--d){var o=te(a,t.keys[d]);if(!o){u[d]=ie;continue}ne(o)||(o=f(o)),o._score=k,o._indexes.len=0,u[d]=o}if(u.obj=a,u._score=k,n.push(u),n.length>=r)return n}else for(var i=0;i<e.length;i++){var o=e[i];if(o!=j&&(ne(o)||(o=f(o)),o._score=k,o._indexes.len=0,n.push(o),n.length>=r))return n}return n},h=(e,t,n=!1,r=!1)=>{if(n===!1&&e.containsSpace)return g(e,t,r);for(var i=e._lower,a=e.lowerCodes,s=a[0],c=t._targetLowerCodes,l=a.length,u=c.length,d=0,f=0,p=0;;){var m=s===c[f];if(m){if(C[p++]=f,++d,d===l)break;s=a[d]}if(++f,f>=u)return j}var d=0,h=!1,_=0,v=t._nextBeginningIndexes;v===j&&(v=t._nextBeginningIndexes=b(t.target)),f=C[0]===0?0:v[C[0]-1];var y=0;if(f!==u)for(;;)if(f>=u){if(d<=0||(++y,y>200))break;--d;var x=w[--_];f=v[x]}else{var m=a[d]===c[f];if(m){if(w[_++]=f,++d,d===l){h=!0;break}++f}else f=v[f]}var S=l<=1?-1:t._targetLower.indexOf(i,C[0]),T=!!~S,E=T?S===0||t._nextBeginningIndexes[S-1]===S:!1;if(T&&!E){for(var D=0;D<v.length;D=v[D])if(!(D<=S)){for(var O=0;O<l&&a[O]===t._targetLowerCodes[D+O];O++);if(O===l){S=D,E=!0;break}}}var ee=e=>{for(var t=0,n=0,r=1;r<l;++r)e[r]-e[r-1]!==1&&(t-=e[r],++n);var i=e[l-1]-e[0]-(l-1);if(t-=(12+i)*n,e[0]!==0&&(t-=e[0]*e[0]*.2),!h)t*=1e3;else{for(var a=1,r=v[0];r<u;r=v[r])++a;a>24&&(t*=(a-24)*10)}return t-=(u-l)/2,T&&(t/=1+l*l*1),E&&(t/=1+l*l*1),t-=(u-l)/2,t};if(!h){if(T)for(var D=0;D<l;++D)C[D]=S+D;var te=C,ne=ee(te)}else if(E){for(var D=0;D<l;++D)C[D]=S+D;var te=C,ne=ee(C)}else var te=w,ne=ee(w);t._score=ne;for(var D=0;D<l;++D)t._indexes[D]=te[D];t._indexes.len=l;let re=new o;return re.target=t.target,re._score=t._score,re._indexes=t._indexes,re},g=(e,t,n)=>{for(var r=new Set,i=0,a=j,o=0,s=e.spaceSearches,c=s.length,l=0,u=()=>{for(let e=l-1;e>=0;e--)t._nextBeginningIndexes[T[e*2+0]]=T[e*2+1]},d=!1,f=0;f<c;++f){D[f]=k;var p=s[f];if(a=h(p,t),n){if(a===j)continue;d=!0}else if(a===j)return u(),j;if(f!==c-1){var m=a._indexes,g=!0;for(let e=0;e<m.len-1;e++)if(m[e+1]-m[e]!==1){g=!1;break}if(g){var _=m[m.len-1]+1,v=t._nextBeginningIndexes[_-1];for(let e=_-1;e>=0&&v===t._nextBeginningIndexes[e];e--)t._nextBeginningIndexes[e]=_,T[l*2+0]=e,T[l*2+1]=v,l++}}i+=a._score/c,D[f]=a._score/c,a._indexes[0]<o&&(i-=(o-a._indexes[0])*2),o=a._indexes[0];for(var y=0;y<a._indexes.len;++y)r.add(a._indexes[y])}if(n&&!d)return j;u();var b=h(e,t,!0);if(b!==j&&b._score>i){if(n)for(var f=0;f<c;++f)D[f]=b._score/c;return b}n&&(a=t),a._score=i;var f=0;for(let e of r)a._indexes[f++]=e;return a._indexes.len=f,a},_=e=>e.replace(/\p{Script=Latin}+/gu,e=>e.normalize(`NFD`)).replace(/[\u0300-\u036f]/g,``),v=e=>{e=_(e);for(var t=e.length,n=e.toLowerCase(),r=[],i=0,a=!1,o=0;o<t;++o){var s=r[o]=n.charCodeAt(o);if(s===32){a=!0;continue}var c=s>=97&&s<=122?s-97:s>=48&&s<=57?26:s<=127?30:31;i|=1<<c}return{lowerCodes:r,bitflags:i,containsSpace:a,_lower:n}},y=e=>{for(var t=e.length,n=[],r=0,i=!1,a=!1,o=0;o<t;++o){var s=e.charCodeAt(o),c=s>=65&&s<=90,l=c||s>=97&&s<=122||s>=48&&s<=57,u=c&&!i||!a||!l;i=c,a=l,u&&(n[r++]=o)}return n},b=e=>{e=_(e);for(var t=e.length,n=y(e),r=[],i=n[0],a=0,o=0;o<t;++o)i>o?r[o]=i:(i=n[++a],r[o]=i===void 0?t:i);return r},x=new Map,S=new Map,C=[],w=[],T=[],E=[],D=[],O=[],ee=[],te=(e,t)=>{var n=e[t];if(n!==void 0)return n;if(typeof t==`function`)return t(e);var r=t;Array.isArray(t)||(r=t.split(`.`));for(var i=r.length,a=-1;e&&++a<i;)e=e[r[a]];return e},ne=e=>typeof e==`object`&&typeof e._bitflags==`number`,re=1/0,k=-re,A=[];A.total=0;var j=null,ie=i(``),ae=(e=>{var t=[],n=0,r={},i=e=>{for(var r=0,i=t[r],a=1;a<n;){var o=a+1;r=a,o<n&&t[o]._score<t[a]._score&&(r=o),t[r-1>>1]=t[r],a=1+(r<<1)}for(var s=r-1>>1;r>0&&i._score<t[s]._score;s=(r=s)-1>>1)t[r]=t[s];t[r]=i};return r.add=(e=>{var r=n;t[n++]=e;for(var i=r-1>>1;r>0&&e._score<t[i]._score;i=(r=i)-1>>1)t[r]=t[i];t[r]=e}),r.poll=(e=>{if(n!==0){var r=t[0];return t[0]=t[--n],i(),r}}),r.peek=(e=>{if(n!==0)return t[0]}),r.replaceTop=(e=>{t[0]=e,i()}),r})();return{single:t,go:n,prepare:i,cleanup:a}})})),ft=ut(),pt=t(dt(),1);function mt(e){return e.newPath??e.oldPath}var ht=class extends Error{code;details;suggestions;constructor(e,t,n,r=[]){super(e),this.code=t,this.details=n,this.suggestions=r}},gt="rvwのローカルサーバーに接続できません。表示済みの内容はそのまま保持されています。`rvw open`から起動し直してください。";function _t(e){if(!(e instanceof TypeError))return!1;let t=e.message.toLowerCase();return t.includes(`failed to fetch`)||t.includes(`load failed`)||t.includes(`networkerror`)}async function vt(e,t){let n;try{n=await fetch(e,t)}catch(e){throw _t(e)?new ht(gt,`LOCAL_SERVER_UNAVAILABLE`):e}let r=await n.json();if(!n.ok||!r.ok)throw new ht(r.error?.message??`HTTP ${n.status}`,r.error?.code??`HTTP_ERROR`,r.error?.details,r.error?.suggestions??[]);return r}function yt(e){return{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)}}function bt(e){let t=new URLSearchParams({kind:e.kind,pullRequestId:e.pullRequestId});return e.kind===`repository-file`&&(t.set(`sourceOid`,e.sourceOid),t.set(`path`,e.path)),`/api/pull-requests/${e.pullRequestId}/document?${t.toString()}`}function xt({error:e}){if(!e)return null;let t=e instanceof Error?e.message:`予期しないエラーが発生しました。`,n=e instanceof ht?e.code:null,r=e instanceof ht?e.suggestions:[];return(0,P.jsxs)(`div`,{className:`error-notice`,role:`alert`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`strong`,{children:`処理に失敗しました。`}),n&&(0,P.jsx)(`code`,{children:n})]}),(0,P.jsx)(`p`,{children:t}),r.length>0&&(0,P.jsx)(`ul`,{children:r.map(e=>(0,P.jsx)(`li`,{children:e},e))})]})}function St(e,t,n){e.key!==`Enter`||!e.metaKey&&!e.ctrlKey||e.repeat||e.nativeEvent.isComposing||(e.preventDefault(),t&&n())}function Ct(){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M1.75 2.5A1.75 1.75 0 0 1 3.5.75h9A1.75 1.75 0 0 1 14.25 2.5v7A1.75 1.75 0 0 1 12.5 11.25H7.06l-3.88 3.1A.75.75 0 0 1 2 13.77v-2.7A1.75 1.75 0 0 1 1.75 9.5v-7Zm1.75-.25a.25.25 0 0 0-.25.25v7c0 .14.11.25.25.25V12.2l3.03-2.42a.75.75 0 0 1 .47-.17h5.5a.25.25 0 0 0 .25-.25V2.5a.25.25 0 0 0-.25-.25h-9Z`})})}function wt({body:e,label:t,disabled:n=!1,pending:r,error:i,validationError:a,placement:o,onBodyChange:s,onCancel:c,onSubmit:l}){let u=!!e.trim()&&!n&&!r;return(0,P.jsxs)(`div`,{className:`inline-comment-composer inline-comment-composer--${o}`,children:[(0,P.jsx)(`strong`,{children:t}),(0,P.jsx)(`textarea`,{autoFocus:!0,rows:4,value:e,onChange:e=>s(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&!e.nativeEvent.isComposing){e.preventDefault(),c();return}St(e,u,l)},placeholder:`コメントを入力(Markdown対応)`,"aria-label":t}),a&&(0,P.jsx)(`p`,{className:`form-error`,children:a}),(0,P.jsx)(xt,{error:i}),(0,P.jsxs)(`div`,{className:`inline-comment-actions`,children:[(0,P.jsx)(`button`,{type:`button`,className:`button--quiet`,disabled:r,onPointerDown:e=>{e.preventDefault(),c()},onClick:c,children:`キャンセル`}),(0,P.jsx)(`button`,{type:`button`,disabled:!u,onClick:l,children:`コメント`})]})]})}var Tt=new Map,Et=new Map,Dt=new Map,Ot=new Set,kt=new Map;function At(e){return e.kind===`pull-request-markdown`?[`pull-request-markdown`]:e.kind===`walkthrough`?[`walkthrough`,e.id,e.sourceOid]:[`repository-file`,e.path,e.oldPath??null,e.newPath??null,e.sourceOid??null,e.comparisonPolicy??null]}function jt(e){return JSON.stringify([At(e.activeDocument),e.selectedOid,e.oldOid,e.displayMode])}function Mt(e){return kt.get(e)??0}function Nt(e){let t=Mt(e),n=Dt.get(e);if(n?.revision===t)return n;let r={revision:t,body:``,focused:!1};return Dt.set(e,r),r}function Pt(){for(let e of Ot)e()}function Ft(e){return Ot.add(e),()=>Ot.delete(e)}function It(e,t){return Et.get(e)?.get(t)??Nt(e)}function Lt(e,t,n){if(n.revision!==Mt(e))return;let r=It(e,t);if(r.body===n.body&&r.focused===n.focused)return;let i=Et.get(e);i||(i=new Map,Et.set(e,i)),n.body||n.focused?i.set(t,n):i.delete(t),i.size===0&&Et.delete(e),Pt()}function Rt(e,t){let n=Et.get(e);if(!n)return;let r=!1;for(let e of n.keys())e.endsWith(`:${t}`)&&(n.delete(e),r=!0);r&&(n.size===0&&Et.delete(e),Pt())}function zt(e,t){return Tt.get(e)?.get(t)}function Bt(e,t,n,r){if(n!==Mt(e))return;let i=Tt.get(e);i||(i=new Map,Tt.set(e,i)),i.set(t,r)}function Vt(e,t,n){if(n!==Mt(e))return;let r=Tt.get(e);r?.delete(t),r?.size===0&&Tt.delete(e)}function Ht(e){Tt.delete(e),Et.delete(e),kt.set(e,Mt(e)+1),Dt.delete(e),Pt()}function Ut(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function Wt(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Gt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qt={};function Jt(e,t){return((t||qt).jsx?Kt:Gt).test(e)}var Yt=/[ \t\n\f\r]/g;function Xt(e){return typeof e==`object`?e.type===`text`&&Zt(e.value):Zt(e)}function Zt(e){return e.replace(Yt,``)===``}var Qt=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Qt.prototype.normal={},Qt.prototype.property={},Qt.prototype.space=void 0;function $t(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Qt(n,r,t)}function en(e){return e.toLowerCase()}var tn=class{constructor(e,t){this.attribute=t,this.property=e}};tn.prototype.attribute=``,tn.prototype.booleanish=!1,tn.prototype.boolean=!1,tn.prototype.commaOrSpaceSeparated=!1,tn.prototype.commaSeparated=!1,tn.prototype.defined=!1,tn.prototype.mustUseProperty=!1,tn.prototype.number=!1,tn.prototype.overloadedBoolean=!1,tn.prototype.property=``,tn.prototype.spaceSeparated=!1,tn.prototype.space=void 0;var nn=e({boolean:()=>F,booleanish:()=>an,commaOrSpaceSeparated:()=>ln,commaSeparated:()=>cn,number:()=>I,overloadedBoolean:()=>on,spaceSeparated:()=>sn}),rn=0,F=un(),an=un(),on=un(),I=un(),sn=un(),cn=un(),ln=un();function un(){return 2**++rn}var dn=Object.keys(nn),fn=class extends tn{constructor(e,t,n,r){let i=-1;if(super(e,t),pn(this,`space`,r),typeof n==`number`)for(;++i<dn.length;){let e=dn[i];pn(this,dn[i],(n&nn[e])===nn[e])}}};fn.prototype.defined=!0;function pn(e,t,n){n&&(e[t]=n)}function mn(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new fn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[en(r)]=r,n[en(a.attribute)]=r}return new Qt(t,n,e.space)}var hn=mn({properties:{ariaActiveDescendant:null,ariaAtomic:an,ariaAutoComplete:null,ariaBusy:an,ariaChecked:an,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:sn,ariaCurrent:null,ariaDescribedBy:sn,ariaDetails:null,ariaDisabled:an,ariaDropEffect:sn,ariaErrorMessage:null,ariaExpanded:an,ariaFlowTo:sn,ariaGrabbed:an,ariaHasPopup:null,ariaHidden:an,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sn,ariaLevel:I,ariaLive:null,ariaModal:an,ariaMultiLine:an,ariaMultiSelectable:an,ariaOrientation:null,ariaOwns:sn,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:an,ariaReadOnly:an,ariaRelevant:null,ariaRequired:an,ariaRoleDescription:sn,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:an,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function gn(e,t){return t in e?e[t]:t}function _n(e,t){return gn(e,t.toLowerCase())}var vn=mn({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:cn,acceptCharset:sn,accessKey:sn,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alpha:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:sn,autoFocus:F,autoPlay:F,blocking:sn,capture:null,charSet:null,checked:F,cite:null,className:sn,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:an,controls:F,controlsList:sn,coords:I|cn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:on,draggable:an,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:sn,height:I,hidden:on,high:I,href:null,hrefLang:null,htmlFor:sn,httpEquiv:sn,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:sn,itemRef:sn,itemScope:F,itemType:sn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:F,optimum:I,pattern:null,ping:sn,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:sn,required:F,reversed:F,rows:I,rowSpan:I,sandbox:sn,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootCustomElementRegistry:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shadowRootSerializable:F,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:an,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:an,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sn,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:an,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:F,disablePictureInPicture:F,disableRemotePlayback:F,exportParts:cn,part:sn,prefix:null,property:null,results:I,security:null,unselectable:null},space:`html`,transform:_n}),yn=mn({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:ln,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:sn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:cn,g2:cn,glyphName:cn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ln,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ln,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ln,rev:ln,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ln,requiredFeatures:ln,requiredFonts:ln,requiredFormats:ln,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ln,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ln,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ln,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:gn}),bn=mn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),xn=mn({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:_n}),Sn=mn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Cn={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},wn=/[A-Z]/g,Tn=/-[a-z]/g,En=/^data[-\w.:]+$/i;function Dn(e,t){let n=en(t),r=t,i=tn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&En.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Tn,kn);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Tn.test(e)){let n=e.replace(wn,On);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=fn}return new i(r,t)}function On(e){return`-`+e.toLowerCase()}function kn(e){return e.charAt(1).toUpperCase()}var An=$t([hn,vn,bn,xn,Sn],`html`),jn=$t([hn,yn,bn,xn,Sn],`svg`);function Mn(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Nn(e){return e.join(` `).trim()}var Pn=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
10
|
+
`).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Fd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Yt(e,``+r);break;case`className`:Nt(e,`class`,r);break;case`tabIndex`:Nt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Nt(e,n,r);break;case`style`:Qt(e,r,o);break;case`data`:if(t!==`object`){Nt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Fd(e,t,`name`,a.name,a,null),Fd(e,t,`formEncType`,a.formEncType,a,null),Fd(e,t,`formMethod`,a.formMethod,a,null),Fd(e,t,`formTarget`,a.formTarget,a,null)):(Fd(e,t,`encType`,a.encType,a,null),Fd(e,t,`method`,a.method,a,null),Fd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=nn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:xd(`beforetoggle`,e),xd(`toggle`,e),Mt(e,`popover`,r);break;case`xlinkActuate`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Mt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=en.get(n)||n,Mt(e,n,r))}}function Id(e,t,n,r,a,o){switch(n){case`style`:Qt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[dt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Mt(e,n,r)}}}function Ld(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:xd(`error`,e),xd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,o,s,n,null)}}a&&Fd(e,t,`srcSet`,n.srcSet,n,null),r&&Fd(e,t,`src`,n.src,n,null);return;case`input`:xd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Fd(e,t,r,d,n,null)}}Wt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in xd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Fd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Kt(e,!!r,n,!0):Kt(e,!!r,t,!1);return;case`textarea`:for(s in xd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Fd(e,t,s,c,n,null)}Jt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Fd(e,t,l,r,n,null)}return;case`dialog`:xd(`beforetoggle`,e),xd(`toggle`,e),xd(`cancel`,e),xd(`close`,e);break;case`iframe`:case`object`:xd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)xd(vd[r],e);break;case`image`:xd(`error`,e),xd(`load`,e);break;case`details`:xd(`toggle`,e);break;case`embed`:case`source`:case`link`:xd(`error`,e),xd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,u,r,n,null)}return;default:if($t(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Id(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Fd(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Fd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Fd(e,t,p,m,r,f)}}Ut(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Fd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Fd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Kt(e,!!n,n?[]:``,!1):Kt(e,!!n,t,!0)):Kt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Fd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Fd(e,t,s,a,r,o)}qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Fd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Fd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Fd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Fd(e,t,u,p,r,m)}return;default:if($t(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Id(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Id(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Fd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Fd(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Bd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Vd=null,Hd=null;function Ud(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Gd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Kd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qd=null;function Jd(){var e=window.event;return e&&e.type===`popstate`?e!==qd&&(qd=e,!0):(qd=null,!1)}var Yd=typeof setTimeout==`function`?setTimeout:void 0,Xd=typeof clearTimeout==`function`?clearTimeout:void 0,Zd=typeof Promise==`function`?Promise:void 0,Qd=typeof queueMicrotask==`function`?queueMicrotask:Zd===void 0?Yd:function(e){return Zd.resolve(null).then(e).catch($d)};function $d(e){setTimeout(function(){throw e})}function ef(e){return e===`head`}function tf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Ip(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)gf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,gf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&gf(e.ownerDocument.body)}n=i}while(n);Ip(t)}function nf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function rf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:rf(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function af(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[_t])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=df(e.nextSibling),e===null)break}return null}function of(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=df(e.nextSibling),e===null))return null;return e}function sf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=df(e.nextSibling),e===null))return null;return e}function cf(e){return e.data===`$?`||e.data===`$~`}function lf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function uf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function df(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var ff=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return df(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function hf(e,t,n){switch(t=Ud(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=A.d;A.d={f:xf,r:Sf,D:Tf,C:Ef,L:Df,m:Of,X:Af,S:kf,M:jf};function xf(){var e=bf.f(),t=xu();return e||t}function Sf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=Ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Tf(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Ef(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Df(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ht(n.imageSizes)+`"]`)):i+=`[href="`+Ht(e)+`"]`;var a=i;switch(t){case`style`:a=Nf(e);break;case`script`:a=Lf(e)}_f.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Pf(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Ld(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Of(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ht(r)+`"][href="`+Ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!_f.has(a)&&(e=f({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function kf(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=St(r).hoistableStyles,a=Nf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Pf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);Ct(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Af(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=St(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),Ct(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=St(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),Ct(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t,n,r){var a=(a=ue.current)?yf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Nf(n.href),n=St(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Nf(n.href);var o=St(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Pf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_f.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=St(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Nf(e){return`href="`+Ht(e)+`"`}function Pf(e){return`link[rel="stylesheet"][`+e+`]`}function Ff(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),Ct(t),e.head.appendChild(t))}function Lf(e){return`[src="`+Ht(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ht(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Ld(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Nf(n.href);var o=e.querySelector(Pf(a));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;r=Ff(n),(a=_f.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,Ct(a),a):(r=n,(a=_f.get(o))&&(r=f({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Ld(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Uf=null;function Wf(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[_t]||a[ut]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Jf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Nf(r.href),a=t.querySelector(Pf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Zf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ct(a);return}a=t.ownerDocument||t,r=Ff(r),(i=_f.get(i))&&Vf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Zf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Yf=0;function Xf(e,t){return e.stylesheets&&e.count===0&&$f(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Yf===0&&(Yf=62500*Bd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Yf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$f(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qf=null;function $f(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qf=new Map,t.forEach(ep,e),Qf=null,Zf.call(e))}function ep(e,t){if(!(t.state.loading&4)){var n=Qf.get(e);if(n)var r=n.get(null);else{n=new Map,Qf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Zf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var tp={$$typeof:b,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function np(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function rp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new np(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function ip(e){return e?(e=ai,e):ai}function ap(e,t,n,r,i,a){i=ip(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(gu(n,e,t),Ga(n,e,t))}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sp(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&gu(t,e,67108864),sp(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=mu();t=rt(t);var n=ni(e,t);n!==null&&gu(n,e,t),sp(e,t)}}var up=!0;function dp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=2,pp(e,t,n,r)}finally{A.p=a,k.T=i}}function fp(e,t,n,r){var i=k.T;k.T=null;var a=A.p;try{A.p=8,pp(e,t,n,r)}finally{A.p=a,k.T=i}}function pp(e,t,n,r){if(up){var i=mp(r);if(i===null)Ed(e,t,r,hp,n),Ep(e,r);else if(Op(i,e,t,n,r))r.stopPropagation();else if(Ep(e,r),t&4&&-1<Tp.indexOf(e)){for(;i!==null;){var a=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-P(o);s.entanglements[1]|=c,o&=~c}id(a),!(G&6)&&(nu=Oe()+500,ad(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&gu(s,a,2),xu(),sp(a,2)}if(a=mp(r),a===null&&Ed(e,t,r,hp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function mp(e){return e=an(e),gp(e)}var hp=null;function gp(e){if(hp=null,e=yt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return hp=e,null}function _p(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ke()){case Ae:return 2;case je:return 8;case Me:case Ne:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var vp=!1,yp=null,bp=null,xp=null,Sp=new Map,Cp=new Map,wp=[],Tp=`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`.split(` `);function Ep(e,t){switch(e){case`focusin`:case`focusout`:yp=null;break;case`dragenter`:case`dragleave`:bp=null;break;case`mouseover`:case`mouseout`:xp=null;break;case`pointerover`:case`pointerout`:Sp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Cp.delete(t.pointerId)}}function Dp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=bt(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Op(e,t,n,r,i){switch(t){case`focusin`:return yp=Dp(yp,e,t,n,r,i),!0;case`dragenter`:return bp=Dp(bp,e,t,n,r,i),!0;case`mouseover`:return xp=Dp(xp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Sp.set(a,Dp(Sp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Cp.set(a,Dp(Cp.get(a)||null,e,t,n,r,i)),!0}return!1}function kp(e){var t=yt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,st(e.priority,function(){lp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,st(e.priority,function(){lp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);F=r,n.target.dispatchEvent(r),F=null}else return t=bt(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){Ap(e)&&n.delete(t)}function Mp(){vp=!1,yp!==null&&Ap(yp)&&(yp=null),bp!==null&&Ap(bp)&&(bp=null),xp!==null&&Ap(xp)&&(xp=null),Sp.forEach(jp),Cp.forEach(jp)}function Np(e,n){e.blockedOn===n&&(e.blockedOn=null,vp||(vp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mp)))}var Pp=null;function Fp(e){Pp!==e&&(Pp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Pp===e&&(Pp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(gp(r||n)===null)continue;break}var a=bt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ip(e){function t(t){return Np(t,e)}yp!==null&&Np(yp,e),bp!==null&&Np(bp,e),xp!==null&&Np(xp,e),Sp.forEach(t),Cp.forEach(t);for(var n=0;n<wp.length;n++){var r=wp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wp.length&&(n=wp[0],n.blockedOn===null);)kp(n),n.blockedOn===null&&wp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[dt]||null;if(typeof a==`function`)o||Fp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[dt]||null)s=o.formAction;else if(gp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Fp(n)}}}function Lp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Rp(e){this._internalRoot=e}zp.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ap(n,mu(),e,t,null,null)},zp.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),xu(),t[ft]=null}};function zp(e){this._internalRoot=e}zp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wp.length&&t!==0&&t<wp[n].priority;n++);wp.splice(n,0,e),n===0&&kp(e)}};var Bp=n.version;if(Bp!==`19.2.8`)throw Error(i(527,Bp,`19.2.8`));A.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Vp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:k,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Hp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hp.isDisabled&&Hp.supportsFiber)try{Re=Hp.inject(Vp),ze=Hp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Xs,s=Zs,c=Qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=rp(e,1,!1,null,null,n,r,null,o,s,c,Lp),e[ft]=t.current,wd(e),new Rp(t)}})),ut=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lt()})),dt=n(((e,t)=>{((e,n)=>{typeof define==`function`&&define.amd?define([],n):typeof t==`object`&&t.exports?t.exports=n():e.fuzzysort=n()})(e,e=>{var t=(e,t)=>{if(!e||!t)return j;var n=p(e);ne(t)||(t=f(t));var r=n.bitflags;return(r&t._bitflags)===r?h(n,t):j},n=(e,t,n)=>{if(!e)return n?.all?m(t,n):A;var r=p(e),i=r.bitflags,a=r.containsSpace,o=u(n?.threshold||0),c=n?.limit||re,l=0,d=0,g=t.length;function _(e){l<c?(ae.add(e),++l):(++d,e._score>ae.peek()._score&&ae.replaceTop(e))}if(n?.key)for(var v=n.key,y=0;y<g;++y){var b=t[y],x=te(b,v);if(x&&(ne(x)||(x=f(x)),(i&x._bitflags)===i)){var S=h(r,x);S!==j&&(S._score<o||(S.obj=b,_(S)))}}else if(n?.keys){var C=n.keys,w=C.length;outer:for(var y=0;y<g;++y){for(var b=t[y],T=0,M=0;M<w;++M){var v=C[M],x=te(b,v);if(!x){O[M]=ie;continue}ne(x)||(x=f(x)),O[M]=x,T|=x._bitflags}if((i&T)===i){if(a)for(let e=0;e<r.spaceSearches.length;e++)E[e]=k;for(var M=0;M<w;++M){if(x=O[M],x===ie){ee[M]=ie;continue}if(ee[M]=h(r,x,!1,a),ee[M]===j){ee[M]=ie;continue}if(a)for(let e=0;e<r.spaceSearches.length;e++){if(D[e]>-1e3&&E[e]>k){var oe=(E[e]+D[e])/4;oe>E[e]&&(E[e]=oe)}D[e]>E[e]&&(E[e]=D[e])}}if(a){for(let e=0;e<r.spaceSearches.length;e++)if(E[e]===k)continue outer}else{var se=!1;for(let e=0;e<w;e++)if(ee[e]._score!==k){se=!0;break}if(!se)continue}var ce=new s(w);for(let e=0;e<w;e++)ce[e]=ee[e];if(a){var le=0;for(let e=0;e<r.spaceSearches.length;e++)le+=E[e]}else{var le=k;for(let e=0;e<w;e++){var S=ce[e];if(S._score>-1e3&&le>k){var oe=(le+S._score)/4;oe>le&&(le=oe)}S._score>le&&(le=S._score)}}if(ce.obj=b,ce._score=le,n?.scoreFn){if(le=n.scoreFn(ce),!le)continue;le=u(le),ce._score=le}le<o||_(ce)}}}else for(var y=0;y<g;++y){var x=t[y];if(x&&(ne(x)||(x=f(x)),(i&x._bitflags)===i)){var S=h(r,x);S!==j&&(S._score<o||_(S))}}if(l===0)return A;for(var ue=Array(l),y=l-1;y>=0;--y)ue[y]=ae.poll();return ue.total=l+d,ue},r=(e,t=`<b>`,n=`</b>`)=>{for(var r=typeof t==`function`?t:void 0,i=e.target,a=i.length,o=e.indexes,s=``,c=0,l=0,u=!1,d=[],f=0;f<a;++f){var p=i[f];if(o[l]===f){if(++l,u||(u=!0,r?(d.push(s),s=``):s+=t),l===o.length){r?(s+=p,d.push(r(s,c++)),s=``,d.push(i.substr(f+1))):s+=p+n+i.substr(f+1);break}}else u&&(u=!1,r?(d.push(r(s,c++)),s=``):s+=n);s+=p}return r?d:s},i=e=>{typeof e==`number`?e=``+e:typeof e!=`string`&&(e=``);var t=v(e);return c(e,{_targetLower:t._lower,_targetLowerCodes:t.lowerCodes,_bitflags:t.bitflags})},a=()=>{x.clear(),S.clear()};class o{get indexes(){return this._indexes.slice(0,this._indexes.len).sort((e,t)=>e-t)}set indexes(e){return this._indexes=e}highlight(e,t){return r(this,e,t)}get score(){return l(this._score)}set score(e){this._score=u(e)}}class s extends Array{get score(){return l(this._score)}set score(e){this._score=u(e)}}var c=(e,t)=>{let n=new o;return n.target=e,n.obj=t.obj??j,n._score=t._score??k,n._indexes=t._indexes??[],n._targetLower=t._targetLower??``,n._targetLowerCodes=t._targetLowerCodes??j,n._nextBeginningIndexes=t._nextBeginningIndexes??j,n._bitflags=t._bitflags??0,n},l=e=>e===k?0:e>1?e:Math.E**(((-e+1)**.04307-1)*-2),u=e=>e===0?k:e>1?e:1-(Math.log(e)/-2+1)**(1/.04307),d=e=>{typeof e==`number`?e=``+e:typeof e!=`string`&&(e=``),e=e.trim();var t=v(e),n=[];if(t.containsSpace){var r=e.split(/\s+/);r=[...new Set(r)];for(var i=0;i<r.length;i++)if(r[i]!==``){var a=v(r[i]);n.push({lowerCodes:a.lowerCodes,_lower:r[i].toLowerCase(),containsSpace:!1})}}return{lowerCodes:t.lowerCodes,_lower:t._lower,containsSpace:t.containsSpace,bitflags:t.bitflags,spaceSearches:n}},f=e=>{if(e.length>999)return i(e);var t=x.get(e);return t===void 0?(t=i(e),x.set(e,t),t):t},p=e=>{if(e.length>999)return d(e);var t=S.get(e);return t===void 0?(t=d(e),S.set(e,t),t):t},m=(e,t)=>{var n=[];n.total=e.length;var r=t?.limit||re;if(t?.key)for(var i=0;i<e.length;i++){var a=e[i],o=te(a,t.key);if(o!=j){ne(o)||(o=f(o));var l=c(o.target,{_score:o._score,obj:a});if(n.push(l),n.length>=r)return n}}else if(t?.keys)for(var i=0;i<e.length;i++){for(var a=e[i],u=new s(t.keys.length),d=t.keys.length-1;d>=0;--d){var o=te(a,t.keys[d]);if(!o){u[d]=ie;continue}ne(o)||(o=f(o)),o._score=k,o._indexes.len=0,u[d]=o}if(u.obj=a,u._score=k,n.push(u),n.length>=r)return n}else for(var i=0;i<e.length;i++){var o=e[i];if(o!=j&&(ne(o)||(o=f(o)),o._score=k,o._indexes.len=0,n.push(o),n.length>=r))return n}return n},h=(e,t,n=!1,r=!1)=>{if(n===!1&&e.containsSpace)return g(e,t,r);for(var i=e._lower,a=e.lowerCodes,s=a[0],c=t._targetLowerCodes,l=a.length,u=c.length,d=0,f=0,p=0;;){var m=s===c[f];if(m){if(C[p++]=f,++d,d===l)break;s=a[d]}if(++f,f>=u)return j}var d=0,h=!1,_=0,v=t._nextBeginningIndexes;v===j&&(v=t._nextBeginningIndexes=b(t.target)),f=C[0]===0?0:v[C[0]-1];var y=0;if(f!==u)for(;;)if(f>=u){if(d<=0||(++y,y>200))break;--d;var x=w[--_];f=v[x]}else{var m=a[d]===c[f];if(m){if(w[_++]=f,++d,d===l){h=!0;break}++f}else f=v[f]}var S=l<=1?-1:t._targetLower.indexOf(i,C[0]),T=!!~S,E=T?S===0||t._nextBeginningIndexes[S-1]===S:!1;if(T&&!E){for(var D=0;D<v.length;D=v[D])if(!(D<=S)){for(var O=0;O<l&&a[O]===t._targetLowerCodes[D+O];O++);if(O===l){S=D,E=!0;break}}}var ee=e=>{for(var t=0,n=0,r=1;r<l;++r)e[r]-e[r-1]!==1&&(t-=e[r],++n);var i=e[l-1]-e[0]-(l-1);if(t-=(12+i)*n,e[0]!==0&&(t-=e[0]*e[0]*.2),!h)t*=1e3;else{for(var a=1,r=v[0];r<u;r=v[r])++a;a>24&&(t*=(a-24)*10)}return t-=(u-l)/2,T&&(t/=1+l*l*1),E&&(t/=1+l*l*1),t-=(u-l)/2,t};if(!h){if(T)for(var D=0;D<l;++D)C[D]=S+D;var te=C,ne=ee(te)}else if(E){for(var D=0;D<l;++D)C[D]=S+D;var te=C,ne=ee(C)}else var te=w,ne=ee(w);t._score=ne;for(var D=0;D<l;++D)t._indexes[D]=te[D];t._indexes.len=l;let re=new o;return re.target=t.target,re._score=t._score,re._indexes=t._indexes,re},g=(e,t,n)=>{for(var r=new Set,i=0,a=j,o=0,s=e.spaceSearches,c=s.length,l=0,u=()=>{for(let e=l-1;e>=0;e--)t._nextBeginningIndexes[T[e*2+0]]=T[e*2+1]},d=!1,f=0;f<c;++f){D[f]=k;var p=s[f];if(a=h(p,t),n){if(a===j)continue;d=!0}else if(a===j)return u(),j;if(f!==c-1){var m=a._indexes,g=!0;for(let e=0;e<m.len-1;e++)if(m[e+1]-m[e]!==1){g=!1;break}if(g){var _=m[m.len-1]+1,v=t._nextBeginningIndexes[_-1];for(let e=_-1;e>=0&&v===t._nextBeginningIndexes[e];e--)t._nextBeginningIndexes[e]=_,T[l*2+0]=e,T[l*2+1]=v,l++}}i+=a._score/c,D[f]=a._score/c,a._indexes[0]<o&&(i-=(o-a._indexes[0])*2),o=a._indexes[0];for(var y=0;y<a._indexes.len;++y)r.add(a._indexes[y])}if(n&&!d)return j;u();var b=h(e,t,!0);if(b!==j&&b._score>i){if(n)for(var f=0;f<c;++f)D[f]=b._score/c;return b}n&&(a=t),a._score=i;var f=0;for(let e of r)a._indexes[f++]=e;return a._indexes.len=f,a},_=e=>e.replace(/\p{Script=Latin}+/gu,e=>e.normalize(`NFD`)).replace(/[\u0300-\u036f]/g,``),v=e=>{e=_(e);for(var t=e.length,n=e.toLowerCase(),r=[],i=0,a=!1,o=0;o<t;++o){var s=r[o]=n.charCodeAt(o);if(s===32){a=!0;continue}var c=s>=97&&s<=122?s-97:s>=48&&s<=57?26:s<=127?30:31;i|=1<<c}return{lowerCodes:r,bitflags:i,containsSpace:a,_lower:n}},y=e=>{for(var t=e.length,n=[],r=0,i=!1,a=!1,o=0;o<t;++o){var s=e.charCodeAt(o),c=s>=65&&s<=90,l=c||s>=97&&s<=122||s>=48&&s<=57,u=c&&!i||!a||!l;i=c,a=l,u&&(n[r++]=o)}return n},b=e=>{e=_(e);for(var t=e.length,n=y(e),r=[],i=n[0],a=0,o=0;o<t;++o)i>o?r[o]=i:(i=n[++a],r[o]=i===void 0?t:i);return r},x=new Map,S=new Map,C=[],w=[],T=[],E=[],D=[],O=[],ee=[],te=(e,t)=>{var n=e[t];if(n!==void 0)return n;if(typeof t==`function`)return t(e);var r=t;Array.isArray(t)||(r=t.split(`.`));for(var i=r.length,a=-1;e&&++a<i;)e=e[r[a]];return e},ne=e=>typeof e==`object`&&typeof e._bitflags==`number`,re=1/0,k=-re,A=[];A.total=0;var j=null,ie=i(``),ae=(e=>{var t=[],n=0,r={},i=e=>{for(var r=0,i=t[r],a=1;a<n;){var o=a+1;r=a,o<n&&t[o]._score<t[a]._score&&(r=o),t[r-1>>1]=t[r],a=1+(r<<1)}for(var s=r-1>>1;r>0&&i._score<t[s]._score;s=(r=s)-1>>1)t[r]=t[s];t[r]=i};return r.add=(e=>{var r=n;t[n++]=e;for(var i=r-1>>1;r>0&&e._score<t[i]._score;i=(r=i)-1>>1)t[r]=t[i];t[r]=e}),r.poll=(e=>{if(n!==0){var r=t[0];return t[0]=t[--n],i(),r}}),r.peek=(e=>{if(n!==0)return t[0]}),r.replaceTop=(e=>{t[0]=e,i()}),r})();return{single:t,go:n,prepare:i,cleanup:a}})})),ft=ut(),pt=t(dt(),1);function mt(e){return e.newPath??e.oldPath}var ht=class extends Error{code;details;suggestions;constructor(e,t,n,r=[]){super(e),this.code=t,this.details=n,this.suggestions=r}},gt="rvwのローカルサーバーに接続できません。表示済みの内容はそのまま保持されています。`rvw open`から起動し直してください。";function _t(e){if(!(e instanceof TypeError))return!1;let t=e.message.toLowerCase();return t.includes(`failed to fetch`)||t.includes(`load failed`)||t.includes(`networkerror`)}async function vt(e,t){let n;try{n=await fetch(e,t)}catch(e){throw _t(e)?new ht(gt,`LOCAL_SERVER_UNAVAILABLE`):e}let r=await n.json();if(!n.ok||!r.ok)throw new ht(r.error?.message??`HTTP ${n.status}`,r.error?.code??`HTTP_ERROR`,r.error?.details,r.error?.suggestions??[]);return r}function yt(e){return{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)}}function bt(e){let t=new URLSearchParams({kind:e.kind,pullRequestId:e.pullRequestId});return e.kind===`repository-file`&&(t.set(`sourceOid`,e.sourceOid),t.set(`path`,e.path)),`/api/pull-requests/${e.pullRequestId}/document?${t.toString()}`}function xt({error:e}){if(!e)return null;let t=e instanceof Error?e.message:`予期しないエラーが発生しました。`,n=e instanceof ht?e.code:null,r=e instanceof ht?e.suggestions:[];return(0,P.jsxs)(`div`,{className:`error-notice`,role:`alert`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`strong`,{children:`処理に失敗しました。`}),n&&(0,P.jsx)(`code`,{children:n})]}),(0,P.jsx)(`p`,{children:t}),r.length>0&&(0,P.jsx)(`ul`,{children:r.map(e=>(0,P.jsx)(`li`,{children:e},e))})]})}function St(e,t,n){e.key!==`Enter`||!e.metaKey&&!e.ctrlKey||e.repeat||e.nativeEvent.isComposing||(e.preventDefault(),t&&n())}function Ct(){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M1.75 2.5A1.75 1.75 0 0 1 3.5.75h9A1.75 1.75 0 0 1 14.25 2.5v7A1.75 1.75 0 0 1 12.5 11.25H7.06l-3.88 3.1A.75.75 0 0 1 2 13.77v-2.7A1.75 1.75 0 0 1 1.75 9.5v-7Zm1.75-.25a.25.25 0 0 0-.25.25v7c0 .14.11.25.25.25V12.2l3.03-2.42a.75.75 0 0 1 .47-.17h5.5a.25.25 0 0 0 .25-.25V2.5a.25.25 0 0 0-.25-.25h-9Z`})})}function wt({body:e,label:t,disabled:n=!1,pending:r,error:i,validationError:a,placement:o,onBodyChange:s,onCancel:c,onSubmit:l}){let u=!!e.trim()&&!n&&!r;return(0,P.jsxs)(`div`,{className:`inline-comment-composer inline-comment-composer--${o}`,children:[(0,P.jsx)(`strong`,{children:t}),(0,P.jsx)(`textarea`,{autoFocus:!0,rows:4,value:e,onChange:e=>s(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&!e.nativeEvent.isComposing){e.preventDefault(),c();return}St(e,u,l)},placeholder:`コメントを入力(Markdown対応)`,"aria-label":t}),a&&(0,P.jsx)(`p`,{className:`form-error`,children:a}),(0,P.jsx)(xt,{error:i}),(0,P.jsxs)(`div`,{className:`inline-comment-actions`,children:[(0,P.jsx)(`button`,{type:`button`,className:`button--quiet`,disabled:r,onPointerDown:e=>{e.preventDefault(),c()},onClick:c,children:`キャンセル`}),(0,P.jsx)(`button`,{type:`button`,disabled:!u,onClick:l,children:`コメント`})]})]})}var Tt=new Map,Et=new Map,Dt=new Map,Ot=new Set,kt=new Map;function At(e){return e.kind===`pull-request-markdown`?[`pull-request-markdown`]:e.kind===`walkthrough`?[`walkthrough`,e.id,e.sourceOid]:[`repository-file`,e.path,e.oldPath??null,e.newPath??null,e.sourceOid??null,e.comparisonPolicy??null]}function jt(e){return JSON.stringify([e.pane,At(e.activeDocument),e.selectedOid,e.oldOid,e.displayMode])}function Mt(e){return kt.get(e)??0}function Nt(e){let t=Mt(e),n=Dt.get(e);if(n?.revision===t)return n;let r={revision:t,body:``,focused:!1};return Dt.set(e,r),r}function Pt(){for(let e of Ot)e()}function Ft(e){return Ot.add(e),()=>Ot.delete(e)}function It(e,t){return Et.get(e)?.get(t)??Nt(e)}function Lt(e,t,n){if(n.revision!==Mt(e))return;let r=It(e,t);if(r.body===n.body&&r.focused===n.focused)return;let i=Et.get(e);i||(i=new Map,Et.set(e,i)),n.body||n.focused?i.set(t,n):i.delete(t),i.size===0&&Et.delete(e),Pt()}function Rt(e,t){let n=Et.get(e);if(!n)return;let r=!1;for(let e of n.keys())e.endsWith(`:${t}`)&&(n.delete(e),r=!0);r&&(n.size===0&&Et.delete(e),Pt())}function zt(e,t){return Tt.get(e)?.get(t)}function Bt(e,t,n,r){if(n!==Mt(e))return;let i=Tt.get(e);i||(i=new Map,Tt.set(e,i)),i.set(t,r)}function Vt(e,t,n){if(n!==Mt(e))return;let r=Tt.get(e);r?.delete(t),r?.size===0&&Tt.delete(e)}function Ht(e){Tt.delete(e),Et.delete(e),kt.set(e,Mt(e)+1),Dt.delete(e),Pt()}function Ut(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function Wt(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Gt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qt={};function Jt(e,t){return((t||qt).jsx?Kt:Gt).test(e)}var Yt=/[ \t\n\f\r]/g;function Xt(e){return typeof e==`object`?e.type===`text`&&Zt(e.value):Zt(e)}function Zt(e){return e.replace(Yt,``)===``}var Qt=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Qt.prototype.normal={},Qt.prototype.property={},Qt.prototype.space=void 0;function $t(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Qt(n,r,t)}function en(e){return e.toLowerCase()}var tn=class{constructor(e,t){this.attribute=t,this.property=e}};tn.prototype.attribute=``,tn.prototype.booleanish=!1,tn.prototype.boolean=!1,tn.prototype.commaOrSpaceSeparated=!1,tn.prototype.commaSeparated=!1,tn.prototype.defined=!1,tn.prototype.mustUseProperty=!1,tn.prototype.number=!1,tn.prototype.overloadedBoolean=!1,tn.prototype.property=``,tn.prototype.spaceSeparated=!1,tn.prototype.space=void 0;var nn=e({boolean:()=>F,booleanish:()=>an,commaOrSpaceSeparated:()=>ln,commaSeparated:()=>cn,number:()=>I,overloadedBoolean:()=>on,spaceSeparated:()=>sn}),rn=0,F=un(),an=un(),on=un(),I=un(),sn=un(),cn=un(),ln=un();function un(){return 2**++rn}var dn=Object.keys(nn),fn=class extends tn{constructor(e,t,n,r){let i=-1;if(super(e,t),pn(this,`space`,r),typeof n==`number`)for(;++i<dn.length;){let e=dn[i];pn(this,dn[i],(n&nn[e])===nn[e])}}};fn.prototype.defined=!0;function pn(e,t,n){n&&(e[t]=n)}function mn(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new fn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[en(r)]=r,n[en(a.attribute)]=r}return new Qt(t,n,e.space)}var hn=mn({properties:{ariaActiveDescendant:null,ariaAtomic:an,ariaAutoComplete:null,ariaBusy:an,ariaChecked:an,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:sn,ariaCurrent:null,ariaDescribedBy:sn,ariaDetails:null,ariaDisabled:an,ariaDropEffect:sn,ariaErrorMessage:null,ariaExpanded:an,ariaFlowTo:sn,ariaGrabbed:an,ariaHasPopup:null,ariaHidden:an,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:sn,ariaLevel:I,ariaLive:null,ariaModal:an,ariaMultiLine:an,ariaMultiSelectable:an,ariaOrientation:null,ariaOwns:sn,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:an,ariaReadOnly:an,ariaRelevant:null,ariaRequired:an,ariaRoleDescription:sn,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:an,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function gn(e,t){return t in e?e[t]:t}function _n(e,t){return gn(e,t.toLowerCase())}var vn=mn({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:cn,acceptCharset:sn,accessKey:sn,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alpha:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:sn,autoFocus:F,autoPlay:F,blocking:sn,capture:null,charSet:null,checked:F,cite:null,className:sn,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:an,controls:F,controlsList:sn,coords:I|cn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:on,draggable:an,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:sn,height:I,hidden:on,high:I,href:null,hrefLang:null,htmlFor:sn,httpEquiv:sn,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:sn,itemRef:sn,itemScope:F,itemType:sn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:F,optimum:I,pattern:null,ping:sn,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:sn,required:F,reversed:F,rows:I,rowSpan:I,sandbox:sn,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootCustomElementRegistry:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shadowRootSerializable:F,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:an,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:an,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:sn,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:an,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:F,disablePictureInPicture:F,disableRemotePlayback:F,exportParts:cn,part:sn,prefix:null,property:null,results:I,security:null,unselectable:null},space:`html`,transform:_n}),yn=mn({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:ln,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:sn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:cn,g2:cn,glyphName:cn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ln,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:sn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ln,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ln,rev:ln,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ln,requiredFeatures:ln,requiredFonts:ln,requiredFormats:ln,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ln,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ln,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ln,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:gn}),bn=mn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),xn=mn({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:_n}),Sn=mn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Cn={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},wn=/[A-Z]/g,Tn=/-[a-z]/g,En=/^data[-\w.:]+$/i;function Dn(e,t){let n=en(t),r=t,i=tn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&En.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Tn,kn);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Tn.test(e)){let n=e.replace(wn,On);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=fn}return new i(r,t)}function On(e){return`-`+e.toLowerCase()}function kn(e){return e.charAt(1).toUpperCase()}var An=$t([hn,vn,bn,xn,Sn],`html`),jn=$t([hn,yn,bn,xn,Sn],`svg`);function Mn(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Nn(e){return e.join(` `).trim()}var Pn=n(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
11
11
|
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),Fn=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Pn());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),In=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Ln=n(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Fn()),r=In();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Rn=Bn(`end`),zn=Bn(`start`);function Bn(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Vn(e){let t=zn(e),n=Rn(e);if(t&&n)return{start:t,end:n}}function Hn(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Wn(e.position):`start`in e||`end`in e?Wn(e):`line`in e||`column`in e?Un(e):``}function Un(e){return Gn(e&&e.line)+`:`+Gn(e&&e.column)}function Wn(e){return Un(e&&e.start)+`-`+Un(e&&e.end)}function Gn(e){return e&&typeof e==`number`?e:1}var Kn=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Hn(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Kn.prototype.file=``,Kn.prototype.name=``,Kn.prototype.reason=``,Kn.prototype.message=``,Kn.prototype.stack=``,Kn.prototype.column=void 0,Kn.prototype.line=void 0,Kn.prototype.ancestors=void 0,Kn.prototype.cause=void 0,Kn.prototype.fatal=void 0,Kn.prototype.place=void 0,Kn.prototype.ruleId=void 0,Kn.prototype.source=void 0;var qn=t(Ln(),1),Jn={}.hasOwnProperty,Yn=new Map,Xn=/[A-Z]/g,Zn=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Qn=new Set([`td`,`th`]);function $n(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=ur(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=lr(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?jn:An,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=er(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function er(e,t,n){if(t.type===`element`)return tr(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return nr(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return ir(e,t,n);if(t.type===`mdxjsEsm`)return rr(e,t);if(t.type===`root`)return ar(e,t,n);if(t.type===`text`)return or(e,t)}function tr(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=jn,e.schema=i),e.ancestors.push(t);let a=gr(e,t.tagName,!1),o=dr(e,t),s=pr(e,t);return Zn.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Xt(e)})),sr(e,o,a,t),cr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function nr(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}_r(e,t.position)}function rr(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_r(e,t.position)}function ir(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=jn,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:gr(e,t.name,!0),o=fr(e,t),s=pr(e,t);return sr(e,o,a,t),cr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ar(e,t,n){let r={};return cr(r,pr(e,t)),e.create(t,e.Fragment,r,n)}function or(e,t){return t.value}function sr(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function cr(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function lr(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function ur(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=zn(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function dr(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Jn.call(t.properties,i)){let a=mr(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Qn.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function fr(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else _r(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else _r(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function pr(e,t){let n=[],r=-1,i=e.passKeys?new Map:Yn;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=er(e,a,o);s!==void 0&&n.push(s)}return n}function mr(e,t,n){let r=Dn(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Wt(n):Nn(n)),r.property===`style`){let t=typeof n==`object`?n:hr(e,String(n));return e.stylePropertyNameCase===`css`&&(t=vr(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Cn[r.property]||r.property:r.attribute,n]}}function hr(e,t){try{return(0,qn.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Kn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function gr(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Jt(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Jt(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Jn.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);_r(e)}function _r(e,t){let n=new Kn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function vr(e){let t={},n;for(n in e)Jn.call(e,n)&&(t[yr(n)]=e[n]);return t}function yr(e){let t=e.replace(Xn,br);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function br(e){return`-`+e.toLowerCase()}var xr={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Sr={};function Cr(e,t){let n=t||Sr;return wr(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function wr(e,t,n){if(Er(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Tr(e.children,t,n)}return Array.isArray(e)?Tr(e,t,n):``}function Tr(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=wr(e[i],t,n);return r.join(``)}function Er(e){return!!(e&&typeof e==`object`)}var Dr=document.createElement(`i`);function Or(e){let t=`&`+e+`;`;Dr.innerHTML=t;let n=Dr.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function kr(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ar(e,t){return e.length>0?(kr(e,e.length,0,t),e):t}var jr={}.hasOwnProperty;function Mr(e){let t={},n=-1;for(;++n<e.length;)Nr(t,e[n]);return t}function Nr(e,t){let n;for(n in t){let r=(jr.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){jr.call(r,a)||(r[a]=[]);let e=i[a];Pr(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Pr(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);kr(e,0,0,r)}function Fr(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Ir(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Lr=qr(/[A-Za-z]/),Rr=qr(/[\dA-Za-z]/),zr=qr(/[#-'*+\--9=?A-Z^-~]/);function Br(e){return e!==null&&(e<32||e===127)}var Vr=qr(/\d/),Hr=qr(/[\dA-Fa-f]/),Ur=qr(/[!-/:-@[-`{-~]/);function L(e){return e!==null&&e<-2}function Wr(e){return e!==null&&(e<0||e===32)}function R(e){return e===-2||e===-1||e===32}var Gr=qr(/\p{P}|\p{S}/u),Kr=qr(/\s/);function qr(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Jr(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Rr(e.charCodeAt(n+1))&&Rr(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function z(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return R(r)?(e.enter(n),s(r)):t(r)}function s(r){return R(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Yr={tokenize:Xr};function Xr(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),z(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return L(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Zr={tokenize:$r},Qr={tokenize:ei};function $r(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return kr(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qr,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Qr,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return L(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;kr(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ei(e,t,n){return z(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function ti(e){if(e===null||Wr(e)||Kr(e))return 1;if(Gr(e))return 2}function ni(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var ri={name:`attention`,resolveAll:ii,tokenize:ai};function ii(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};oi(d,-c),oi(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ar(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Ar(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Ar(l,ni(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ar(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Ar(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,kr(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function ai(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ti(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=ti(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function oi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var si={name:`autolink`,tokenize:ci};function ci(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Lr(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Rr(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Rr(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Br(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):zr(t)?(e.consume(t),l):n(t)}function u(e){return Rr(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Rr(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var li={partial:!0,tokenize:ui};function ui(e,t,n){return r;function r(t){return R(t)?z(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||L(e)?t(e):n(e)}}var di={continuation:{tokenize:pi},exit:mi,name:`blockQuote`,tokenize:fi};function fi(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return R(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function pi(e,t,n){let r=this;return i;function i(t){return R(t)?z(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(di,t,n)(r)}}function mi(e){e.exit(`blockQuote`)}var hi={name:`characterEscape`,tokenize:gi};function gi(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ur(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var _i={name:`characterReference`,tokenize:vi};function vi(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Rr,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Hr,u):(e.enter(`characterReferenceValue`),a=7,o=Vr,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Rr&&!Or(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var yi={partial:!0,tokenize:Si},bi={concrete:!0,name:`codeFenced`,tokenize:xi};function xi(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),R(t)?z(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||L(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(yi,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||L(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):R(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),z(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||L(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||L(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&R(t)?z(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||L(t)?e.check(yi,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||L(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),R(t)?z(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),R(t)?z(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||L(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Si(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Ci={name:`codeIndented`,tokenize:Ti},wi={partial:!0,tokenize:Ei};function Ti(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),z(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):L(t)?e.attempt(wi,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||L(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function Ei(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):L(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):z(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):L(e)?i(e):n(e)}}var Di={name:`codeText`,previous:ki,resolve:Oi,tokenize:Ai};function Oi(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ki(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Ai(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):L(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||L(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var ji=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Mi(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Mi(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Mi(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Mi(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Mi(this.left,t.reverse())}}}};function Mi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ni(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ji(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Pi(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return kr(e,0,1/0,u.slice(0)),!l}function Pi(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Fi={resolve:Li,tokenize:Ri},Ii={partial:!0,tokenize:zi};function Li(e){return Ni(e),e}function Ri(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):L(t)?e.check(Ii,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function zi(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),z(e,a,`linePrefix`)}function a(i){if(i===null||L(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Bi(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Br(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||L(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Wr(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Br(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Vi(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):L(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||L(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!R(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Hi(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):L(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),z(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||L(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Ui(e,t){let n;return r;function r(i){return L(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):R(i)?z(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Wi={name:`definition`,tokenize:Ki},Gi={partial:!0,tokenize:qi};function Ki(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Vi.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Ir(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Wr(t)?Ui(e,l)(t):l(t)}function l(t){return Bi(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Gi,d,d)(t)}function d(t){return R(t)?z(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||L(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function qi(e,t,n){return r;function r(t){return Wr(t)?Ui(e,i)(t):n(t)}function i(t){return Hi(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return R(t)?z(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||L(e)?t(e):n(e)}}var Ji={name:`hardBreakEscape`,tokenize:Yi};function Yi(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return L(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Xi={name:`headingAtx`,resolve:Zi,tokenize:Qi};function Zi(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},kr(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Qi(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Wr(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||L(n)?(e.exit(`atxHeading`),t(n)):R(n)?z(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Wr(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var $i=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),ea=[`pre`,`script`,`style`,`textarea`],ta={concrete:!0,name:`htmlFlow`,resolveTo:ia,tokenize:aa},na={partial:!0,tokenize:sa},ra={partial:!0,tokenize:oa};function ia(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function aa(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ie):Lr(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Lr(a)?(e.consume(a),i=4,r.interrupt?t:ie):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ie):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return Lr(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Wr(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&ea.includes(l)?(i=1,r.interrupt?t(s):O(s)):$i.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Rr(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return R(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Lr(t)?(e.consume(t),b):R(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Rr(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):R(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):R(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||L(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Wr(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||R(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||L(t)?O(t):R(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),ie):t===93&&i===5?(e.consume(t),j):L(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(na,M,ee)(t)):t===null||L(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(ra,te,M)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||L(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function re(t){return t===45?(e.consume(t),ie):O(t)}function k(t){return t===47?(e.consume(t),o=``,A):O(t)}function A(t){if(t===62){let n=o.toLowerCase();return ea.includes(n)?(e.consume(t),ae):O(t)}return Lr(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):O(t)}function j(t){return t===93?(e.consume(t),ie):O(t)}function ie(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),ie):O(t)}function ae(t){return t===null||L(t)?(e.exit(`htmlFlowData`),M(t)):(e.consume(t),ae)}function M(n){return e.exit(`htmlFlow`),t(n)}}function oa(e,t,n){let r=this;return i;function i(t){return L(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function sa(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(li,t,n)}}var ca={name:`htmlText`,tokenize:la};function la(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Lr(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Lr(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):L(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):L(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):L(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):L(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return Lr(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Rr(t)?(e.consume(t),S):C(t)}function C(t){return L(t)?(o=C,k(t)):R(t)?(e.consume(t),C):re(t)}function w(t){return t===45||Rr(t)?(e.consume(t),w):t===47||t===62||Wr(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),re):t===58||t===95||Lr(t)?(e.consume(t),E):L(t)?(o=T,k(t)):R(t)?(e.consume(t),T):re(t)}function E(t){return t===45||t===46||t===58||t===95||Rr(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):L(t)?(o=D,k(t)):R(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):L(t)?(o=O,k(t)):R(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):L(t)?(o=ee,k(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Wr(t)?T(t):(e.consume(t),te)}function ne(e){return e===47||e===62||Wr(e)?T(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return R(t)?z(e,j,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):j(t)}function j(t){return e.enter(`htmlTextData`),o(t)}}var ua={name:`labelEnd`,resolveAll:ma,resolveTo:ha,tokenize:ga},da={tokenize:_a},fa={tokenize:va},pa={tokenize:ya};function ma(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&kr(e,0,e.length,n),e}function ha(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Ar(s,e.slice(a+1,a+r+3)),s=Ar(s,[[`enter`,u,t]]),s=Ar(s,ni(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Ar(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Ar(s,e.slice(o+1)),s=Ar(s,[[`exit`,c,t]]),kr(e,a,e.length,s),e}function ga(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Ir(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(da,u,o?u:d)(t):t===91?e.attempt(fa,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(pa,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function _a(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Wr(t)?Ui(e,a)(t):a(t)}function a(t){return t===41?u(t):Bi(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Wr(t)?Ui(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Hi(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Wr(t)?Ui(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function va(e,t,n){let r=this;return i;function i(t){return Vi.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Ir(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function ya(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var ba={name:`labelStartImage`,resolveAll:ua.resolveAll,tokenize:xa};function xa(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Sa={name:`labelStartLink`,resolveAll:ua.resolveAll,tokenize:Ca};function Ca(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var wa={name:`lineEnding`,tokenize:Ta};function Ta(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),z(e,t,`linePrefix`)}}var Ea={name:`thematicBreak`,tokenize:Da};function Da(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||L(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),R(t)?z(e,s,`whitespace`)(t):s(t))}}var Oa={continuation:{tokenize:Ma},exit:Pa,name:`list`,tokenize:ja},ka={partial:!0,tokenize:Fa},Aa={partial:!0,tokenize:Na};function ja(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Vr(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Ea,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Vr(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(li,r.interrupt?n:u,e.attempt(ka,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return R(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Ma(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(li,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,z(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!R(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Aa,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,z(e,e.attempt(Oa,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Na(e,t,n){let r=this;return z(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Pa(e){e.exit(this.containerState.type)}function Fa(e,t,n){let r=this;return z(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!R(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ia={name:`setextUnderline`,resolveTo:La,tokenize:Ra};function La(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Ra(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),R(t)?z(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||L(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var za={tokenize:Ba};function Ba(e){let t=this,n=e.attempt(li,r,e.attempt(this.parser.constructs.flowInitial,i,z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Fi,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Va={resolveAll:Ga()},Ha=Wa(`string`),Ua=Wa(`text`);function Wa(e){return{resolveAll:Ga(e===`text`?Ka:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Ga(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ka(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var qa=e({attentionMarkers:()=>to,contentInitial:()=>Ya,disable:()=>no,document:()=>Ja,flow:()=>Za,flowInitial:()=>Xa,insideSpan:()=>eo,string:()=>Qa,text:()=>$a}),Ja={42:Oa,43:Oa,45:Oa,48:Oa,49:Oa,50:Oa,51:Oa,52:Oa,53:Oa,54:Oa,55:Oa,56:Oa,57:Oa,62:di},Ya={91:Wi},Xa={[-2]:Ci,[-1]:Ci,32:Ci},Za={35:Xi,42:Ea,45:[Ia,Ea],60:ta,61:Ia,95:Ea,96:bi,126:bi},Qa={38:_i,92:hi},$a={[-5]:wa,[-4]:wa,[-3]:wa,33:ba,38:_i,42:ri,60:[si,ca],91:Sa,92:[Ji,hi],93:ua,95:ri,96:Di},eo={null:[ri,Va]},to={null:[42,95]},no={null:[]};function ro(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Ar(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=ni(a,l.events,l),l.events):[]}function f(e,t){return ao(p(e),t)}function p(e){return io(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){L(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&kr(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function io(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function ao(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
12
12
|
`;break;case-3:o=`\r
|
|
13
13
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function oo(e){let t={constructs:Mr([qa,...(e||{}).extensions||[]]),content:n(Yr),defined:[],document:n(Zr),flow:n(za),lazy:{},string:n(Ha),text:n(Ua)};return t;function n(e){return n;function n(n){return ro(t,e,n)}}}function so(e){for(;!Ni(e););return e}var co=/[\0\t\n\r]/g;function lo(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(co.lastIndex=u,c=co.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var uo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fo(e){return e.replace(uo,po)}function po(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Fr(n.slice(t?2:1),t?16:10)}return Or(n)||e}var B={}.hasOwnProperty;function mo(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),ho(n)(so(oo(n).document().write(lo()(e,t,!0))))}function ho(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ve),blockQuote:a(pe),characterEscape:T,characterReference:T,codeFenced:a(me),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(me,o),codeText:a(he,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(_e),hardBreakEscape:a(ye),hardBreakTrailing:a(ye),htmlFlow:a(be,o),htmlFlowData:T,htmlText:a(be,o),htmlTextData:T,image:a(xe),label:o,link:a(Se),listItem:a(we),listItemValue:f,listOrdered:a(Ce,d),listUnordered:a(Ce),paragraph:a(Te),reference:oe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ve),strong:a(Ee),thematicBreak:a(Oe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:fe,autolinkProtocol:de,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:le,characterReference:ue,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ne),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(ee),htmlFlowData:E,htmlText:c(te),htmlTextData:E,image:c(k),label:j,labelText:A,lineEnding:D,link:c(re),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:se,resourceDestinationString:ie,resourceTitleString:ae,resource:M,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};_o(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];B.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||yo).call(a,void 0,e[0])}for(r.position={start:go(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:go(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:go(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||yo).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Hn({start:e.start,end:e.end})+`): it’s not open`);n.position.end=go(e.end)}function u(){return Cr(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ir(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=De(),n.position={start:go(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=go(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=go(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=fo(t),n.identifier=Ir(t).toLowerCase()}function j(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function M(){this.data.inReference=void 0}function oe(){this.data.referenceType=`collapsed`}function se(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ir(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ce(e){this.data.characterReferenceType=e.type}function le(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Fr(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Or(t);let i=this.stack[this.stack.length-1];i.value+=r}function ue(e){let t=this.stack.pop();t.position.end=go(e.end)}function de(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function pe(){return{type:`blockquote`,children:[]}}function me(){return{type:`code`,lang:null,meta:null,value:``}}function he(){return{type:`inlineCode`,value:``}}function ge(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function _e(){return{type:`emphasis`,children:[]}}function ve(){return{type:`heading`,depth:0,children:[]}}function ye(){return{type:`break`}}function be(){return{type:`html`,value:``}}function xe(){return{type:`image`,title:null,url:``,alt:null}}function Se(){return{type:`link`,title:null,url:``,children:[]}}function Ce(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function we(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Te(){return{type:`paragraph`,children:[]}}function Ee(){return{type:`strong`,children:[]}}function De(){return{type:`text`,value:``}}function Oe(){return{type:`thematicBreak`}}}function go(e){return{line:e.line,column:e.column,offset:e.offset}}function _o(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?_o(e,r):vo(e,r)}}function vo(e,t){let n;for(n in t)if(B.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function yo(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Hn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Hn({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Hn({start:t.start,end:t.end})+`) is still open`)}function bo(e){let t=this;t.parser=n;function n(n){return mo(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function xo(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function So(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
@@ -36,240 +36,240 @@ Error generating stack: `+e.message+`
|
|
|
36
36
|
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
37
37
|
`,...a.current()});return/^[\t ]/.test(l)&&(l=mh(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}bh.peek=xh;function bh(e){return e.value||``}function xh(){return`<`}Sh.peek=Ch;function Sh(e,t,n,r){let i=dh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Ch(){return`!`}wh.peek=Th;function wh(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Th(){return`!`}Eh.peek=Dh;function Eh(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Dh(){return"`"}function Oh(e,t){let n=Cr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}kh.peek=Ah;function kh(e,t,n,r){let i=dh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Oh(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Ah(e,t,n){return Oh(e,n)?`<`:`[`}jh.peek=Mh;function jh(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Mh(){return`[`}function Nh(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ph(e){let t=Nh(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Fh(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ih(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Lh(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Fh(n):Nh(n),s=e.ordered?o===`.`?`)`:`.`:Ph(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Ih(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Rh(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function zh(e,t,n,r){let i=Rh(n),a=n.bulletCurrent||Nh(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Bh(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Vh=ms([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Hh(e,t,n,r){return(e.children.some(function(e){return Vh(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Uh(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Wh.peek=Gh;function Wh(e,t,n,r){let i=Uh(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=hh(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=mh(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=hh(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+mh(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Gh(e,t,n){return n.options.strong||`*`}function Kh(e,t,n,r){return n.safe(e.value,r)}function qh(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Jh(e,t,n){let r=(Ih(n)+(n.options.ruleSpaces?` `:``)).repeat(qh(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Yh={blockquote:th,break:ah,code:lh,definition:fh,emphasis:gh,hardBreak:ah,heading:yh,html:bh,image:Sh,imageReference:wh,inlineCode:Eh,link:kh,linkReference:jh,list:Lh,listItem:zh,paragraph:Bh,root:Hh,strong:Wh,text:Kh,thematicBreak:Jh};function Xh(){return{enter:{table:Zh,tableData:tg,tableHeader:tg,tableRow:$h},exit:{codeText:ng,table:Qh,tableData:eg,tableHeader:eg,tableRow:eg}}}function Zh(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Qh(e){this.exit(e),this.data.inTable=void 0}function $h(e){this.enter({type:`tableRow`,children:[]},e)}function eg(e){this.exit(e)}function tg(e){this.enter({type:`tableCell`,children:[]},e)}function ng(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rg));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rg(e,t){return t===`|`?t:e}function ig(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
38
38
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
39
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Qm(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Yh.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function ag(){return{exit:{taskListCheckValueChecked:sg,taskListCheckValueUnchecked:sg,paragraph:cg}}}function og(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:lg}}}function sg(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function cg(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function lg(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Yh.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function ug(){return[gm(),Bm(),Gm(),Xh(),ag()]}function dg(e){return{extensions:[_m(),Vm(e),Km(),ig(e),og()]}}var fg={tokenize:Eg,partial:!0},pg={tokenize:Dg,partial:!0},mg={tokenize:Og,partial:!0},hg={tokenize:kg,partial:!0},gg={tokenize:Ag,partial:!0},_g={name:`wwwAutolink`,tokenize:wg,previous:jg},vg={name:`protocolAutolink`,tokenize:Tg,previous:Mg},yg={name:`emailAutolink`,tokenize:Cg,previous:Ng},bg={};function xg(){return{text:bg}}for(var Sg=48;Sg<123;)bg[Sg]=yg,Sg++,Sg===58?Sg=65:Sg===91&&(Sg=97);bg[43]=yg,bg[45]=yg,bg[46]=yg,bg[95]=yg,bg[72]=[yg,vg],bg[104]=[yg,vg],bg[87]=[yg,_g],bg[119]=[yg,_g];function Cg(e,t,n){let r=this,i,a;return o;function o(t){return!Pg(t)||!Ng.call(r,r.previous)||Fg(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Pg(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(gg,u,l)(t):t===45||t===95||Rr(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Lr(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function wg(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!jg.call(r,r.previous)||Fg(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(fg,e.attempt(pg,e.attempt(mg,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Tg(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Mg.call(r,r.previous)&&!Fg(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Lr(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Br(t)||Wr(t)||Kr(t)||Gr(t)?n(t):e.attempt(pg,e.attempt(mg,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Eg(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Dg(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(hg,c,s)(t):t===null||Wr(t)||Kr(t)||t!==45&&Gr(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Og(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(hg,t,a)(o):o===null||Wr(o)||Kr(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function kg(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Wr(o)||Kr(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Wr(e)||Kr(e)?t(e):r(e)}function a(e){return Lr(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Lr(t)?(e.consume(t),o):n(t)}}function Ag(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Rr(e)?n(e):t(e)}}function jg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Wr(e)}function Mg(e){return!Lr(e)}function Ng(e){return!(e===47||Pg(e))}function Pg(e){return e===43||e===45||e===46||e===95||Rr(e)}function Fg(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Ig={tokenize:Wg,partial:!0};function Lg(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Vg,continuation:{tokenize:Hg},exit:Ug}},text:{91:{name:`gfmFootnoteCall`,tokenize:Bg},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Rg,resolveTo:zg}}}}function Rg(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Ir(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function zg(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Bg(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Wr(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Ir(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Wr(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Vg(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Wr(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Ir(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Wr(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),z(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Hg(e,t,n){return e.check(li,t,e.attempt(Ig,t,n))}function Ug(e){e.exit(`gfmFootnoteDefinition`)}function Wg(e,t,n){let r=this;return z(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Gg(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&kr(o,o.length,0,ni(s,e.slice(r+1,n),t)),kr(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),kr(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=ti(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=ti(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Kg=class{constructor(){this.map=[]}add(e,t,n){qg(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function qg(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Jg(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Yg(){return{flow:{null:{name:`table`,tokenize:Xg,resolveAll:Zg}}}}function Xg(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):L(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):R(t)?z(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Wr(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,R(t)?z(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return R(t)?z(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||L(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return R(t)?z(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||L(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||L(n)?(e.exit(`tableRow`),t(n)):R(n)?z(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Wr(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Zg(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Kg;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&($g(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Qg(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Qg(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Qg(f,t,o,i,n,d)):(o[0]=o[1],d=Qg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&$g(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Jg(t.events,n))}return e}function Qg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},e_(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=e_(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=e_(t.events,n[2]),a=e_(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},e_(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function $g(e,t,n,r,i){let a=[],o=e_(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function e_(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var t_={name:`tasklistCheck`,tokenize:r_};function n_(){return{text:{91:t_}}}function r_(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Wr(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return L(r)?t(r):R(r)?e.check({tokenize:i_},t,n)(r):n(r)}}function i_(e,t,n){return z(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function a_(e){return Mr([xg(),Lg(),Gg(e),Yg(),n_()])}var o_={};function s_(e){let t=this,n=e||o_,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(a_(n)),a.push(ug()),o.push(dg(n))}var c_=/^[A-Za-z][A-Za-z\d+.-]*:/;function l_(e,t,n){return`/api/pull-requests/${e}/markdown-asset?${new URLSearchParams({sourceOid:t,path:n}).toString()}`}function u_(e,t){return!!(e&&Math.hypot(t.x-e.x,t.y-e.y)>4)}function d_(e){if(!e)return!1;let t=e.trim();return c_.test(t)||t.startsWith(`//`)}function f_(e,t){if(!e)return null;let n=e.trim();if(n.length===0||n.startsWith(`#`)||n.startsWith(`?`)||d_(n))return null;let r=n.split(/[?#]/,1)[0];if(!r)return null;let i;try{i=decodeURIComponent(r).replaceAll(`\\`,`/`)}catch{return null}let a=i.startsWith(`/`)?[]:t?.split(`/`).slice(0,-1).filter(Boolean)??[];for(let e of i.split(`/`))if(!(!e||e===`.`)){if(e===`..`){if(a.length===0)return null;a.pop();continue}if(e.includes(`\0`))return null;a.push(e)}return a.length>0?a.join(`/`):null}var p_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
39
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Qm(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Yh.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function ag(){return{exit:{taskListCheckValueChecked:sg,taskListCheckValueUnchecked:sg,paragraph:cg}}}function og(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:lg}}}function sg(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function cg(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function lg(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Yh.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function ug(){return[gm(),Bm(),Gm(),Xh(),ag()]}function dg(e){return{extensions:[_m(),Vm(e),Km(),ig(e),og()]}}var fg={tokenize:Eg,partial:!0},pg={tokenize:Dg,partial:!0},mg={tokenize:Og,partial:!0},hg={tokenize:kg,partial:!0},gg={tokenize:Ag,partial:!0},_g={name:`wwwAutolink`,tokenize:wg,previous:jg},vg={name:`protocolAutolink`,tokenize:Tg,previous:Mg},yg={name:`emailAutolink`,tokenize:Cg,previous:Ng},bg={};function xg(){return{text:bg}}for(var Sg=48;Sg<123;)bg[Sg]=yg,Sg++,Sg===58?Sg=65:Sg===91&&(Sg=97);bg[43]=yg,bg[45]=yg,bg[46]=yg,bg[95]=yg,bg[72]=[yg,vg],bg[104]=[yg,vg],bg[87]=[yg,_g],bg[119]=[yg,_g];function Cg(e,t,n){let r=this,i,a;return o;function o(t){return!Pg(t)||!Ng.call(r,r.previous)||Fg(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Pg(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(gg,u,l)(t):t===45||t===95||Rr(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Lr(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function wg(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!jg.call(r,r.previous)||Fg(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(fg,e.attempt(pg,e.attempt(mg,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Tg(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Mg.call(r,r.previous)&&!Fg(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Lr(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Br(t)||Wr(t)||Kr(t)||Gr(t)?n(t):e.attempt(pg,e.attempt(mg,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Eg(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Dg(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(hg,c,s)(t):t===null||Wr(t)||Kr(t)||t!==45&&Gr(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Og(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(hg,t,a)(o):o===null||Wr(o)||Kr(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function kg(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Wr(o)||Kr(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Wr(e)||Kr(e)?t(e):r(e)}function a(e){return Lr(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Lr(t)?(e.consume(t),o):n(t)}}function Ag(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Rr(e)?n(e):t(e)}}function jg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Wr(e)}function Mg(e){return!Lr(e)}function Ng(e){return!(e===47||Pg(e))}function Pg(e){return e===43||e===45||e===46||e===95||Rr(e)}function Fg(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var Ig={tokenize:Wg,partial:!0};function Lg(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Vg,continuation:{tokenize:Hg},exit:Ug}},text:{91:{name:`gfmFootnoteCall`,tokenize:Bg},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Rg,resolveTo:zg}}}}function Rg(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Ir(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function zg(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Bg(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Wr(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Ir(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Wr(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Vg(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Wr(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Ir(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Wr(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),z(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Hg(e,t,n){return e.check(li,t,e.attempt(Ig,t,n))}function Ug(e){e.exit(`gfmFootnoteDefinition`)}function Wg(e,t,n){let r=this;return z(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Gg(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&kr(o,o.length,0,ni(s,e.slice(r+1,n),t)),kr(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),kr(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=ti(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=ti(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Kg=class{constructor(){this.map=[]}add(e,t,n){qg(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function qg(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Jg(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Yg(){return{flow:{null:{name:`table`,tokenize:Xg,resolveAll:Zg}}}}function Xg(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):L(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):R(t)?z(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Wr(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,R(t)?z(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return R(t)?z(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||L(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return R(t)?z(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||L(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||L(n)?(e.exit(`tableRow`),t(n)):R(n)?z(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Wr(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Zg(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Kg;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&($g(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Qg(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Qg(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Qg(f,t,o,i,n,d)):(o[0]=o[1],d=Qg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&$g(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Jg(t.events,n))}return e}function Qg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},e_(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=e_(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=e_(t.events,n[2]),a=e_(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},e_(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function $g(e,t,n,r,i){let a=[],o=e_(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function e_(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var t_={name:`tasklistCheck`,tokenize:r_};function n_(){return{text:{91:t_}}}function r_(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Wr(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return L(r)?t(r):R(r)?e.check({tokenize:i_},t,n)(r):n(r)}}function i_(e,t,n){return z(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function a_(e){return Mr([xg(),Lg(),Gg(e),Yg(),n_()])}var o_={};function s_(e){let t=this,n=e||o_,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(a_(n)),a.push(ug()),o.push(dg(n))}var c_=[`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.avif`,`.svg`],l_=/^\/user-attachments\/assets\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;new TextDecoder(`utf-8`,{fatal:!0});function u_(e){let t=e.toLowerCase();return c_.some(e=>t.endsWith(e))}function d_(e){if(!e?.startsWith(`https://github.com/`))return null;let t;try{t=new URL(e)}catch{return null}return t.protocol!==`https:`||t.hostname!==`github.com`||t.username!==``||t.password!==``||t.port!==``||t.search!==``||t.hash!==``||!l_.test(t.pathname)?null:t.href}var f_=/^[A-Za-z][A-Za-z\d+.-]*:/;function p_(e,t,n){return`/api/pull-requests/${e}/markdown-asset?${new URLSearchParams({sourceOid:t,path:n}).toString()}`}function m_(e,t){let n=d_(t);return n?`/api/pull-requests/${e}/github-attachment?${new URLSearchParams({url:n}).toString()}`:null}function h_(e,t){return!!(e&&Math.hypot(t.x-e.x,t.y-e.y)>4)}function g_(e){if(!e)return!1;let t=e.trim();return f_.test(t)||t.startsWith(`//`)}function __(e,t){if(!e)return null;let n=e.trim();if(n.length===0||n.startsWith(`#`)||n.startsWith(`?`)||g_(n))return null;let r=n.split(/[?#]/,1)[0];if(!r)return null;let i;try{i=decodeURIComponent(r).replaceAll(`\\`,`/`)}catch{return null}let a=i.startsWith(`/`)?[]:t?.split(`/`).slice(0,-1).filter(Boolean)??[];for(let e of i.split(`/`))if(!(!e||e===`.`)){if(e===`..`){if(a.length===0)return null;a.pop();continue}if(e.includes(`\0`))return null;a.push(e)}return a.length>0?a.join(`/`):null}var v_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
40
40
|
<path fill="currentColor" d="M15.1 11.55a.5.5 0 0 1 0 .9l-6.65 3.33-.11.04a1 1 0 0 1-.68 0l-.1-.04L.9 12.45a.5.5 0 0 1 0-.9l1.98-1 1.68.85-1.2.6L8 14.32 12.65 12l-1.21-.6 1.68-.84z"/>
|
|
41
41
|
<path fill="currentColor" fill-rule="evenodd" d="M7.55.22a1 1 0 0 1 .9 0l6.66 3.33a.5.5 0 0 1 0 .9L8.45 7.78l-.11.04a1 1 0 0 1-.68 0l-.1-.04L.9 4.45a.5.5 0 0 1 0-.9zM3.35 4 8 6.32 12.65 4 8 1.68z" clip-rule="evenodd"/>
|
|
42
42
|
<path fill="currentColor" d="M15.1 7.55a.5.5 0 0 1 0 .9l-6.65 3.33a1 1 0 0 1-.9 0L.9 8.45a.5.5 0 0 1 0-.9l1.98-1 4.23 2.12a2 2 0 0 0 1.79 0l4.22-2.11z" class="fg"/>
|
|
43
43
|
</svg>
|
|
44
|
-
`,
|
|
44
|
+
`,y_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
45
45
|
<path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
|
|
46
46
|
<path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
|
|
47
47
|
</svg>
|
|
48
|
-
`,
|
|
48
|
+
`,b_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
49
49
|
<path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
|
|
50
50
|
</svg>
|
|
51
|
-
`,
|
|
51
|
+
`,x_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
52
52
|
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
53
53
|
<path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
|
|
54
54
|
</svg>
|
|
55
|
-
`,
|
|
55
|
+
`,S_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
56
56
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1c5.77 0 7 1.24 7 7s-1.24 7-7 7-7-1.24-7-7 1.24-7 7-7M6 4a.5.5 0 0 0-.5.5v.56c-.82.18-1.5.82-1.5 1.69 0 .52.24.92.6 1.2q.55.39 1.3.54.61.14.88.35.23.17.22.41c0 .33-.36.75-1 .75s-1-.42-1-.75a.5.5 0 0 0-1 0c0 .87.68 1.5 1.5 1.7v.55a.5.5 0 0 0 1 0v-.56c.82-.18 1.5-.82 1.5-1.69 0-.52-.24-.92-.6-1.2a3 3 0 0 0-1.3-.54q-.61-.14-.88-.35Q4.99 7 5 6.75C5 6.42 5.36 6 6 6s1 .42 1 .75a.5.5 0 0 0 1 0c0-.87-.68-1.5-1.5-1.7V4.5A.5.5 0 0 0 6 4m2.5 7a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z" clip-rule="evenodd"/>
|
|
57
57
|
</svg>
|
|
58
|
-
`,
|
|
58
|
+
`,C_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
59
59
|
<path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
|
|
60
60
|
</svg>
|
|
61
|
-
`,
|
|
61
|
+
`,w_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
62
62
|
<path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
|
|
63
63
|
<path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
|
|
64
64
|
</svg>
|
|
65
|
-
`,
|
|
65
|
+
`,T_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
66
66
|
<path fill="currentColor" d="M8.2 8.3q1.54 0 1.55 1.14-.02 1.13-1.5 1.14H6.78V8.3zm0-2.88c.79 0 1.23.35 1.23 1 0 .68-.52 1.06-1.45 1.06h-1.2V5.42z"/>
|
|
67
67
|
<path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5zM5.97 4.54a.3.3 0 0 0-.2.08.3.3 0 0 0-.07.2v6.36q0 .1.08.2.07.08.19.08h2.51c1.48 0 2.37-.74 2.37-1.96 0-.92-.64-1.58-1.58-1.69v-.04c.7-.11 1.24-.77 1.24-1.5 0-1.05-.81-1.73-2.04-1.73z" clip-rule="evenodd"/>
|
|
68
68
|
</svg>
|
|
69
|
-
`,
|
|
69
|
+
`,E_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
70
70
|
<path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
|
|
71
71
|
</svg>
|
|
72
|
-
`,
|
|
72
|
+
`,D_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
73
73
|
<path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
|
|
74
74
|
<path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
|
|
75
75
|
<path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
|
|
76
76
|
</svg>
|
|
77
|
-
`,
|
|
77
|
+
`,O_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
78
78
|
<path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14" class="bg" opacity=".2"/>
|
|
79
79
|
<path fill="currentColor" d="M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36a1.7 1.7 0 0 1-.55.88 1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.1.1 0 0 1 .11.04.1.1 0 0 1 .04.1M6.15 8.96a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5" class="fg"/>
|
|
80
80
|
</svg>
|
|
81
|
-
`,
|
|
81
|
+
`,k_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
82
82
|
<path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
|
|
83
83
|
</svg>
|
|
84
|
-
`,
|
|
84
|
+
`,A_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
85
85
|
<path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
|
|
86
86
|
</svg>
|
|
87
|
-
`,
|
|
87
|
+
`,j_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
88
88
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1q1.99-.02 3.35.27c.91.2 1.67.54 2.26 1.13s.92 1.34 1.12 2.25Q15.01 6.01 15 8a13 13 0 0 1-.27 3.35c-.2.91-.54 1.67-1.12 2.26s-1.34.92-2.26 1.12Q9.99 15.01 8 15a13 13 0 0 1-3.35-.27 4.4 4.4 0 0 1-2.25-1.12 4.4 4.4 0 0 1-1.13-2.26Q.99 9.99 1 8c.01-1.99.07-2.44.27-3.35S1.8 2.98 2.4 2.4a4.4 4.4 0 0 1 2.25-1.13Q6.01.99 8 1" class="subtract" clip-rule="evenodd" opacity=".2"/>
|
|
89
89
|
<path fill="currentColor" d="M6.15 5.15a.5.5 0 1 1 .7.7L4.71 8l2.14 2.15a.5.5 0 1 1-.7.7l-2.5-2.5a.5.5 0 0 1 0-.7zm3 0a.5.5 0 0 1 .7 0l2.5 2.5a.5.5 0 0 1 0 .7l-2.5 2.5a.5.5 0 1 1-.7-.7L11.29 8 9.15 5.85a.5.5 0 0 1 0-.7" class="vector-stroke"/>
|
|
90
90
|
</svg>
|
|
91
|
-
`,
|
|
91
|
+
`,M_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
92
92
|
<path fill="currentColor" d="M9.63 2.02a.5.5 0 0 1 .35.61l-3 11a.5.5 0 0 1-.96-.26l3-11a.5.5 0 0 1 .61-.35M4.15 4.65a.5.5 0 1 1 .7.7L2.21 8l2.64 2.65a.5.5 0 1 1-.7.7l-3-3a.5.5 0 0 1 0-.7zm7 0a.5.5 0 0 1 .7 0l3 3a.5.5 0 0 1 0 .7l-3 3a.5.5 0 1 1-.7-.7L13.79 8l-2.64-2.65a.5.5 0 0 1 0-.7"/>
|
|
93
93
|
</svg>
|
|
94
|
-
`,
|
|
94
|
+
`,N_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
95
95
|
<path fill="currentColor" fill-rule="evenodd" d="M8 0c6.59 0 8 1.41 8 8s-1.41 8-8 8-8-1.41-8-8V1a1 1 0 0 1 1-1zM4.05 5.23q-.46 0-.82.16a2 2 0 0 0-.63.47q-.25.32-.4.77a4 4 0 0 0-.13 1.03v1q0 .57.13 1.03.13.45.38.76.26.3.62.47t.82.16q.61 0 1.03-.23t.66-.66.25-1.06H4.92q-.02.42-.11.65a.6.6 0 0 1-.28.34 1 1 0 0 1-.5.1 1 1 0 0 1-.44-.1 1 1 0 0 1-.28-.3 2 2 0 0 1-.15-.48 4 4 0 0 1-.05-.69v-1q0-.4.06-.7a1 1 0 0 1 .16-.48 1 1 0 0 1 .3-.28q.18-.09.42-.09.32 0 .5.1a.6.6 0 0 1 .27.36q.09.24.1.66h1.05q-.04-.64-.26-1.08a1.6 1.6 0 0 0-.64-.68q-.4-.23-1.02-.23m4.1 0q-.39 0-.71.12a2 2 0 0 0-.55.32 1.4 1.4 0 0 0-.37.5 2 2 0 0 0-.12.64q0 .36.13.63t.36.47.52.35.62.28q.28.12.46.23.17.1.27.21l.12.24q.04.13.04.3a1 1 0 0 1-.07.36.5.5 0 0 1-.23.25 1 1 0 0 1-.4.09q-.2 0-.37-.05a1 1 0 0 1-.28-.17 1 1 0 0 1-.17-.3 2 2 0 0 1-.06-.46H6.3q0 .47.15.82t.42.57.6.34.74.11.72-.11a2 2 0 0 0 .56-.32q.23-.2.35-.5.12-.28.12-.64a2 2 0 0 0-.1-.63 1.4 1.4 0 0 0-.3-.5 2 2 0 0 0-.49-.4 4 4 0 0 0-.69-.32L8 7.49l-.3-.19-.18-.21-.07-.27q0-.21.08-.37a.6.6 0 0 1 .23-.26 1 1 0 0 1 .4-.1q.25 0 .42.12t.24.31.07.46h1.05q0-.5-.22-.89a1.6 1.6 0 0 0-.6-.62q-.4-.23-.95-.23m4.04 0q-.4 0-.72.11a2 2 0 0 0-.55.32 1.4 1.4 0 0 0-.37.5 2 2 0 0 0-.12.64q0 .36.13.63t.36.47.53.35.62.29q.27.1.45.22.18.1.27.21l.12.25q.04.12.04.3a1 1 0 0 1-.07.36.5.5 0 0 1-.22.24 1 1 0 0 1-.4.1q-.2 0-.37-.06a1 1 0 0 1-.28-.17 1 1 0 0 1-.18-.3 2 2 0 0 1-.06-.46h-1.04q0 .47.15.82t.42.57.6.34.74.11.72-.1q.33-.12.56-.33.23-.2.35-.5.12-.28.12-.64a2 2 0 0 0-.1-.63 1.4 1.4 0 0 0-.3-.5 2 2 0 0 0-.49-.4 4 4 0 0 0-.69-.32l-.39-.17-.29-.19a1 1 0 0 1-.2-.21l-.06-.27q0-.2.08-.37a.6.6 0 0 1 .23-.26 1 1 0 0 1 .4-.1q.25 0 .42.12a.6.6 0 0 1 .24.32q.07.2.07.45h1.05q0-.5-.22-.89a1.6 1.6 0 0 0-.6-.62q-.4-.23-.95-.23" clip-rule="evenodd"/>
|
|
96
96
|
</svg>
|
|
97
|
-
`,
|
|
97
|
+
`,P_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
98
98
|
<path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
|
|
99
99
|
<path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
|
|
100
100
|
</svg>
|
|
101
|
-
`,
|
|
101
|
+
`,F_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
102
102
|
<path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
|
|
103
103
|
<path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
|
|
104
104
|
</svg>
|
|
105
|
-
`,
|
|
105
|
+
`,I_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
106
106
|
<path fill="currentColor" d="M7.25 3a.75.75 0 0 1 .75.75V8h4.25a.75.75 0 0 1 .75.75v3.75a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 2 12.5v-8A1.5 1.5 0 0 1 3.5 3zM3 12.5a.5.5 0 0 0 .5.5H7V9H3zm5 .5h3.5a.5.5 0 0 0 .5-.5V9H8zM3.5 4a.5.5 0 0 0-.5.5V8h4V4zm10-3A1.5 1.5 0 0 1 15 2.5v3.75a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 9 6.25v-4.5A.75.75 0 0 1 9.75 1zM10 6h4V2.5a.5.5 0 0 0-.5-.5H10z"/>
|
|
107
107
|
</svg>
|
|
108
|
-
`,
|
|
108
|
+
`,L_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
109
109
|
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
110
110
|
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
111
111
|
</svg>
|
|
112
|
-
`,
|
|
112
|
+
`,R_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
113
113
|
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5v1.916A5 5 0 0 0 8 15H4.5A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
114
114
|
<path fill="currentColor" fill-rule="evenodd" d="M12 8a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a.5.5 0 0 0-.5.5v1.5H10a.5.5 0 0 0 0 1h1.5V14a.5.5 0 0 0 1 0v-1.5H14a.5.5 0 0 0 0-1h-1.5V10a.5.5 0 0 0-.5-.5" class="fg" clip-rule="evenodd"/>
|
|
115
115
|
</svg>
|
|
116
|
-
`,
|
|
116
|
+
`,z_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
117
117
|
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
118
118
|
<path fill="currentColor" d="M7.146 8.146a.5.5 0 0 1 .707.708L6.707 10H10.5a.5.5 0 0 1 0 1H6.707l1.146 1.146a.5.5 0 1 1-.707.707l-2-2a.5.5 0 0 1 0-.707zM9.5 1a.5.5 0 0 1 .353.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
|
|
119
119
|
</svg>
|
|
120
|
-
`,
|
|
120
|
+
`,B_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
121
121
|
<path fill="currentColor" d="M7.15 7.15a.5.5 0 1 1 .7.7L6.71 9h3.79a.5.5 0 0 1 0 1H6.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2a.5.5 0 0 1 0-.7z"/>
|
|
122
122
|
<path fill="currentColor" fill-rule="evenodd" d="M9.5 1a.5.5 0 0 1 .35.15l4 4a.5.5 0 0 1 .15.35v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1zm-5 1A1.5 1.5 0 0 0 3 3.5v9A1.5 1.5 0 0 0 4.5 14h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2z" clip-rule="evenodd"/>
|
|
123
123
|
</svg>
|
|
124
|
-
`,
|
|
124
|
+
`,V_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
125
125
|
<path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
|
|
126
126
|
<path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
|
|
127
127
|
</svg>
|
|
128
|
-
`,
|
|
128
|
+
`,H_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
129
129
|
<path fill="currentColor" d="M9.501 1c.132 0 .26.053.353.146l4 4a.5.5 0 0 1 .147.354v7a2.5 2.5 0 0 1-2.5 2.5h-7c-1.38 0-2.5-1.12-2.501-2.5v-9C2 2.12 3.12 1 4.501 1zm-5 1a1.5 1.5 0 0 0-1.5 1.5v9a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2zM11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5z"/>
|
|
130
130
|
</svg>
|
|
131
|
-
`,
|
|
131
|
+
`,U_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
132
132
|
<path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
|
|
133
133
|
<path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
|
|
134
134
|
</svg>
|
|
135
|
-
`,
|
|
135
|
+
`,W_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
136
136
|
<path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1z"/>
|
|
137
137
|
<path fill="currentColor" fill-rule="evenodd" d="M9.5 1a.5.5 0 0 1 .35.15l4 4a.5.5 0 0 1 .15.35v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1zm-5 1A1.5 1.5 0 0 0 3 3.5v9A1.5 1.5 0 0 0 4.5 14h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2z" clip-rule="evenodd"/>
|
|
138
138
|
</svg>
|
|
139
|
-
`,
|
|
139
|
+
`,G_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
140
140
|
<path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
|
|
141
141
|
<path fill="currentColor" d="M7 9s.5 1.017.5 1.9c0 .884-.672 1.6-1.5 1.6s-1.5-.716-1.5-1.6c0-.883.5-1.9.5-1.9h1V8h1zM6 8H5V7h1zm1-1H6V6h1zM6 6H5V5h1zm3.5-5a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1zM7 5H6V4h1zM6 4H5V3h1zm1-1H6V2h1zM6 2H5V1h1z"/>
|
|
142
142
|
</svg>
|
|
143
|
-
`,
|
|
143
|
+
`,K_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
144
144
|
<path fill="currentColor" d="M7 9s.5 1.017.5 1.9c0 .884-.672 1.6-1.5 1.6s-1.5-.716-1.5-1.6c0-.883.5-1.9.5-1.9h1V8h1zM6 8H5V7h1zm1-1H6V6h1zM6 6H5V5h1zm1-1H6V4h1zM6 4H5V3h1z"/>
|
|
145
145
|
<path fill="currentColor" fill-rule="evenodd" d="M9.501 1c.132 0 .26.053.353.146l4 4a.5.5 0 0 1 .147.354v7a2.5 2.5 0 0 1-2.5 2.5h-7c-1.38 0-2.5-1.12-2.501-2.5v-9C2 2.12 3.12 1 4.501 1zm-5 1a1.5 1.5 0 0 0-1.5 1.5v9a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2H7v1H6V2z" clip-rule="evenodd"/>
|
|
146
146
|
</svg>
|
|
147
|
-
`,
|
|
147
|
+
`,q_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
148
148
|
<path fill="currentColor" fill-rule="evenodd" d="M9.5 1a.5.5 0 0 1 .35.15l4 4a.5.5 0 0 1 .15.35v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1zm-5 1A1.5 1.5 0 0 0 3 3.5v9A1.5 1.5 0 0 0 4.5 14h7a1.5 1.5 0 0 0 1.5-1.5V6h-2a2 2 0 0 1-2-2V2z" clip-rule="evenodd"/>
|
|
149
149
|
</svg>
|
|
150
|
-
`,
|
|
150
|
+
`,J_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
151
151
|
<path fill="currentColor" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6h14z" class="fg"/>
|
|
152
152
|
<path fill="currentColor" d="M4.59 2a2 2 0 0 1 1.02.28l1.8 1.08a1 1 0 0 0 .5.14H12A2 2 0 0 1 13.94 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
|
|
153
153
|
</svg>
|
|
154
|
-
`,
|
|
154
|
+
`,Y_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
155
155
|
<path fill="currentColor" d="M14.26 6a1.5 1.5 0 0 1 1.43 1.93l-1.39 4.65A2 2 0 0 1 12.38 14H2.46a2 2 0 0 1-1.93-2.52L1.72 7.1A1.5 1.5 0 0 1 3.17 6z" class="fg"/>
|
|
156
156
|
<path fill="currentColor" d="M4.59 2a2 2 0 0 1 1.02.28l1.8 1.08a1 1 0 0 0 .5.14H12A2 2 0 0 1 13.94 5H3.17A2.5 2.5 0 0 0 .75 6.85L0 9.62V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
|
|
157
157
|
</svg>
|
|
158
|
-
`,
|
|
158
|
+
`,X_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
159
159
|
<path fill="currentColor" fill-rule="evenodd" d="M4.59 2a2 2 0 0 1 1.02.28l1.8 1.08a1 1 0 0 0 .5.14h4.1a2 2 0 0 1 2 2V6h.25a1.5 1.5 0 0 1 1.43 1.93l-1.39 4.65A2 2 0 0 1 12.38 14H2a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zM2 3a1 1 0 0 0-1 1v5.93l.81-2.84A1.5 1.5 0 0 1 3.25 6H13v-.5a1 1 0 0 0-1-1H7.92a2 2 0 0 1-1.03-.28L5.1 3.14A1 1 0 0 0 4.59 3z" clip-rule="evenodd"/>
|
|
160
160
|
</svg>
|
|
161
|
-
`,
|
|
161
|
+
`,Z_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
162
162
|
<path fill="currentColor" d="M14 7.416A5 5 0 0 0 7.417 14H2a2 2 0 0 1-2-2V6h14zM4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z"/>
|
|
163
163
|
<path fill="currentColor" fill-rule="evenodd" d="M12 8a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a.5.5 0 0 0-.5.5v1.5H10a.5.5 0 0 0 0 1h1.5V14a.5.5 0 0 0 1 0v-1.5H14a.5.5 0 0 0 0-1h-1.5V10a.5.5 0 0 0-.5-.5" class="fg" clip-rule="evenodd"/>
|
|
164
164
|
</svg>
|
|
165
|
-
`,
|
|
165
|
+
`,Q_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
166
166
|
<path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
|
|
167
167
|
<path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
|
|
168
168
|
</svg>
|
|
169
|
-
|
|
169
|
+
`,$_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
170
170
|
<path fill="currentColor" fill-rule="evenodd" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12a2 2 0 0 1 2 2V12a2 2 0 0 1-2 2H2a2 2 0 0 1-.403-.041A2 2 0 0 1 0 12v-1.25h1v-1H0V4a2 2 0 0 1 2-2zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zM2 3a1 1 0 0 0-1 1v2h12v-.5a1 1 0 0 0-1-1H7.915a2 2 0 0 1-1.028-.285L5.099 3.143A1 1 0 0 0 4.585 3z" clip-rule="evenodd"/>
|
|
171
171
|
</svg>
|
|
172
|
-
`,
|
|
172
|
+
`,ev=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
173
173
|
<path fill="currentColor" fill-rule="evenodd" d="M4.59 2a2 2 0 0 1 1.02.28l1.8 1.08a1 1 0 0 0 .5.14H12a2 2 0 0 1 2 2V12a2 2 0 0 1-2 2H2a2 2 0 0 1-.4-.04A2 2 0 0 1 0 12V4a2 2 0 0 1 2-2zM2 3a1 1 0 0 0-1 1v2h12v-.5a1 1 0 0 0-1-1H7.92a2 2 0 0 1-1.03-.28l-1.8-1.08A1 1 0 0 0 4.6 3z" clip-rule="evenodd"/>
|
|
174
174
|
</svg>
|
|
175
|
-
`,
|
|
175
|
+
`,tv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
176
176
|
<path fill="currentColor" d="M14 15H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2.2a2 2 0 0 1 1.38.552l.34.325a2 2 0 0 0 1.38.552H14a2 2 0 0 1 2 2V13a2 2 0 0 1-2 2" class="fg"/>
|
|
177
177
|
<path fill="currentColor" d="M4.4 1a1.5 1.5 0 0 1 1.035.414l.63.6A1.5 1.5 0 0 0 7.1 2.43H11a2 2 0 0 1 2 2v1h-2.9a.5.5 0 0 1-.345-.138l-.631-.602A2.5 2.5 0 0 0 7.4 4H4.5A2.5 2.5 0 0 0 2 6.5V11a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z" class="bg" opacity=".4"/>
|
|
178
178
|
</svg>
|
|
179
|
-
`,
|
|
179
|
+
`,nv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
180
180
|
<path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
|
|
181
181
|
</svg>
|
|
182
|
-
`,
|
|
182
|
+
`,rv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
183
183
|
<path fill="currentColor" d="M9.04 1.93c-.1-1.24-1.98-1.24-2.08 0-.07.89-1.24 1.25-1.84.57-.84-.95-2.37.12-1.69 1.17.5.76-.23 1.71-1.13 1.5-1.26-.29-1.84 1.43-.65 1.9a.99.99 0 0 1 0 1.86c-1.2.47-.6 2.19.65 1.9.9-.21 1.62.73 1.13 1.5-.68 1.05.85 2.11 1.69 1.17.6-.68 1.77-.32 1.84.57.1 1.24 1.98 1.24 2.08 0 .07-.89 1.24-1.25 1.84-.57.84.94 2.36-.12 1.69-1.17-.5-.77.23-1.71 1.13-1.5 1.26.29 1.84-1.43.65-1.9a.99.99 0 0 1 0-1.86c1.2-.47.6-2.19-.65-1.9-.9.21-1.62-.73-1.13-1.5.68-1.05-.85-2.11-1.69-1.17-.6.68-1.77.32-1.84-.57M8 10.6c-1.5 0-2.73-1.17-2.73-2.61S6.5 5.39 8 5.39 10.73 6.56 10.73 8 9.5 10.61 8 10.61"/>
|
|
184
184
|
</svg>
|
|
185
|
-
|
|
185
|
+
`,iv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
186
186
|
<path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
|
|
187
187
|
</svg>
|
|
188
|
-
`,
|
|
188
|
+
`,av=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
189
189
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
|
|
190
190
|
</svg>
|
|
191
|
-
`,
|
|
191
|
+
`,ov=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 32 32">
|
|
192
192
|
<path fill="currentColor" d="M4.5 28.5 2 0h28l-2.5 28.5L16 32"/>
|
|
193
193
|
<path fill="currentColor" d="m25 6-.32 3.5H10.94l.32 3.63h13.1L23.35 24l-7.32 2-7.44-2-.45-5.56h3.57l.25 2.81 4.07 1.06 3.94-1.06.45-4.56H7.95L7 6z"/>
|
|
194
194
|
</svg>
|
|
195
|
-
`,
|
|
195
|
+
`,sv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
196
196
|
<path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
|
|
197
197
|
<path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
|
|
198
198
|
</svg>
|
|
199
|
-
`,
|
|
199
|
+
`,cv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
200
200
|
<path fill="currentColor" d="M5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"/>
|
|
201
201
|
<path fill="currentColor" fill-rule="evenodd" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 1 11.5v-7A2.5 2.5 0 0 1 3.5 2zm-9 1A1.5 1.5 0 0 0 2 4.5v6.92L4.5 8.5 7 11l3.5-4.5L14 10V4.5A1.5 1.5 0 0 0 12.5 3z" clip-rule="evenodd"/>
|
|
202
202
|
</svg>
|
|
203
|
-
`,
|
|
203
|
+
`,lv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
204
204
|
<path fill="currentColor" fill-rule="evenodd" d="M8 0c6.59 0 8 1.41 8 8s-1.41 8-8 8-8-1.41-8-8 1.41-8 8-8M6.17 5.1v4.45q0 .34-.08.57a1 1 0 0 1-.22.37.5.5 0 0 1-.35.12 1 1 0 0 1-.33-.1.6.6 0 0 1-.23-.3 2 2 0 0 1-.08-.57H3.7q0 .66.23 1.1.24.42.65.64.42.2.94.2t.93-.23a1.7 1.7 0 0 0 .65-.7q.25-.46.24-1.1V5.1zm3.96-.09q-.44 0-.8.13t-.62.37a2 2 0 0 0-.41.56q-.14.32-.14.72t.14.7.41.53.59.4.7.32q.3.12.5.25.2.12.31.24a1 1 0 0 1 .14.27q.04.15.04.34 0 .22-.08.4a.6.6 0 0 1-.25.28 1 1 0 0 1-.45.1q-.23 0-.41-.05a1 1 0 0 1-.32-.2 1 1 0 0 1-.2-.34 2 2 0 0 1-.06-.5H8.04q0 .52.17.91t.47.64.69.39q.39.12.82.12.45 0 .81-.12a2 2 0 0 0 .63-.36q.26-.24.4-.56a2 2 0 0 0 .13-.72q0-.4-.1-.72a2 2 0 0 0-.34-.55 2 2 0 0 0-.55-.45 5 5 0 0 0-.78-.37l-.44-.19-.33-.21a1 1 0 0 1-.22-.24 1 1 0 0 1-.07-.3q0-.24.08-.42a.6.6 0 0 1 .26-.29 1 1 0 0 1 .45-.1q.29 0 .48.12a.7.7 0 0 1 .26.35q.1.23.1.52h1.16q0-.56-.24-1a2 2 0 0 0-.68-.7Q10.75 5 10.13 5" clip-rule="evenodd"/>
|
|
205
205
|
</svg>
|
|
206
|
-
`,
|
|
206
|
+
`,uv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
207
207
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
|
|
208
208
|
</svg>
|
|
209
|
-
`,
|
|
209
|
+
`,dv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
210
210
|
<path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
|
|
211
211
|
<path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
|
|
212
212
|
</svg>
|
|
213
|
-
`,
|
|
213
|
+
`,fv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
214
214
|
<path fill="currentColor" d="M8 1c5.77 0 7 1.24 7 7s-1.24 7-7 7-7-1.24-7-7V2a1 1 0 0 1 1-1zM4.18 5.5C2.86 5.5 2.5 6.04 2.5 8c0 2.05.3 2.5 1.68 2.5 1.19 0 1.47-.24 1.56-1.3h-.76c-.07.48-.22.6-.8.6-.74 0-.9-.34-.9-1.8s.16-1.79.9-1.79c.54 0 .68.12.76.64h.76c-.08-1.1-.36-1.35-1.52-1.35m3.73 0c-1.37 0-1.67.24-1.67 1.29 0 .91.3 1.17 1.69 1.47.76.18.93.33.93.85 0 .56-.17.68-.93.68-.78 0-.96-.11-1-.6h-.72c-.02 1.07.27 1.31 1.66 1.31 1.42 0 1.73-.25 1.73-1.4 0-1-.3-1.28-1.66-1.58-.79-.18-.96-.31-.96-.73 0-.48.17-.58.95-.58.67 0 .83.08.85.42h.73C9.5 5.7 9.2 5.5 7.91 5.5m3.9 0c-1.37 0-1.67.24-1.67 1.29 0 .91.3 1.17 1.68 1.47.77.18.94.33.94.85 0 .56-.17.68-.94.68s-.96-.11-.99-.6h-.73c-.02 1.07.28 1.31 1.67 1.31 1.42 0 1.73-.25 1.73-1.4 0-1-.3-1.28-1.66-1.58-.79-.18-.96-.31-.96-.73 0-.48.17-.58.94-.58.68 0 .84.08.85.42h.74c-.03-.92-.31-1.13-1.6-1.13"/>
|
|
215
215
|
</svg>
|
|
216
|
-
`,
|
|
216
|
+
`,pv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
217
217
|
<path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
|
|
218
218
|
</svg>
|
|
219
|
-
`,
|
|
219
|
+
`,mv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
220
220
|
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
221
221
|
<path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
|
|
222
222
|
</svg>
|
|
223
|
-
`,
|
|
223
|
+
`,hv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
224
224
|
<path fill="currentColor" d="m9.41 6.8-.43 2.4h-2.4l.44-2.4z"/>
|
|
225
225
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1c5.76 0 7 1.24 7 7s-1.24 7-7 7-7-1.24-7-7 1.24-7 7-7m2.48 2.76a.5.5 0 0 0-.59.4L9.6 5.8H7.2l.27-1.46a.5.5 0 0 0-.98-.18l-.3 1.64H4.93a.5.5 0 0 0 0 1h1.08l-.44 2.4H4.25a.5.5 0 0 0 0 1h1.14l-.27 1.46a.5.5 0 0 0 .99.18l.3-1.64H8.8l-.27 1.46a.5.5 0 0 0 .98.18l.3-1.64h1.26a.5.5 0 0 0 0-1H9.99l.44-2.4h1.32a.5.5 0 0 0 0-1h-1.14l.27-1.46a.5.5 0 0 0-.4-.58" clip-rule="evenodd"/>
|
|
226
226
|
</svg>
|
|
227
|
-
`,
|
|
227
|
+
`,gv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
228
228
|
<path fill="currentColor" fill-rule="evenodd" d="m14.5 1-1 12L8 15l-5.5-2-1-12z" class="bg" clip-rule="evenodd" opacity=".25"/>
|
|
229
229
|
<path fill="currentColor" fill-rule="evenodd" d="m3.5 3 .48 5.34h6.23l-.22 2.29-1.97.53-2.04-.53-.13-1.41H4.07L4.3 12l3.73 1 3.65-1 .51-5.44H5.63l-.16-1.81h6.87L12.5 3z" class="fg" clip-rule="evenodd"/>
|
|
230
230
|
</svg>
|
|
231
|
-
`,
|
|
231
|
+
`,_v=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
232
232
|
<path fill="currentColor" fill-rule="evenodd" d="m14.5 1-1 12L8 15l-5.5-2-1-12zm-11 2 .48 5.34h6.23l-.22 2.29-1.97.53-2.04-.53-.13-1.41H4.07L4.3 12l3.73 1 3.65-1 .51-5.44H5.63l-.16-1.81h6.87L12.5 3z" class="subtract" clip-rule="evenodd"/>
|
|
233
233
|
</svg>
|
|
234
|
-
`,
|
|
234
|
+
`,vv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
235
235
|
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
236
236
|
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
|
|
237
237
|
</svg>
|
|
238
|
-
`,
|
|
238
|
+
`,yv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
239
239
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1c5.77 0 7 1.24 7 7s-1.24 7-7 7-7-1.24-7-7 1.24-7 7-7M6.28 5.09v4.3c0 .84-.17 1.02-.94 1.02-.7 0-.85-.16-.85-.92H3.5c-.03 1.49.3 1.81 1.86 1.81 1.57 0 1.91-.33 1.91-1.87V5.09zM10.31 5c-1.77 0-2.16.3-2.16 1.62 0 1.15.39 1.48 2.18 1.86 1 .22 1.2.4 1.2 1.07 0 .7-.2.85-1.2.85s-1.24-.13-1.28-.76h-.94c-.03 1.36.36 1.66 2.15 1.66 1.83 0 2.24-.31 2.24-1.75 0-1.27-.39-1.62-2.15-2-1.02-.23-1.24-.4-1.24-.92 0-.6.22-.74 1.22-.74.87 0 1.08.1 1.1.53h.95C12.35 5.26 11.98 5 10.31 5" clip-rule="evenodd"/>
|
|
240
240
|
</svg>
|
|
241
|
-
`,
|
|
241
|
+
`,bv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
242
242
|
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
243
243
|
</svg>
|
|
244
|
-
`,
|
|
244
|
+
`,xv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
245
245
|
<path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
|
|
246
246
|
<path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
|
|
247
247
|
</svg>
|
|
248
|
-
`,
|
|
248
|
+
`,Sv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
249
249
|
<path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
|
|
250
250
|
</svg>
|
|
251
|
-
`,
|
|
251
|
+
`,Cv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
252
252
|
<path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
|
|
253
253
|
</svg>
|
|
254
|
-
`,
|
|
254
|
+
`,wv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
255
255
|
<path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
|
|
256
256
|
</svg>
|
|
257
|
-
`,
|
|
257
|
+
`,Tv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
258
258
|
<path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
|
|
259
259
|
<path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
|
|
260
260
|
</svg>
|
|
261
|
-
`,
|
|
261
|
+
`,Ev=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
262
262
|
<path fill="currentColor" d="M8 1c5.77 0 7 1.24 7 7s-1.24 7-7 7-7-1.24-7-7 1.24-7 7-7m2.31 4c-1.77 0-2.16.3-2.16 1.62 0 1.15.39 1.48 2.18 1.86 1 .22 1.2.4 1.2 1.07 0 .7-.2.85-1.2.85s-1.24-.13-1.28-.76h-.94c-.03 1.36.36 1.66 2.15 1.66 1.83 0 2.24-.31 2.24-1.75 0-1.27-.39-1.62-2.15-2-1.02-.23-1.24-.4-1.24-.92 0-.6.22-.74 1.22-.74.87 0 1.08.1 1.1.53h.95C12.35 5.26 11.98 5 10.31 5m-6.81.09v.9h1.61v5.22h.98V5.99h1.62v-.9z" opacity=".2"/>
|
|
263
263
|
<path fill="currentColor" fill-rule="evenodd" d="M8 1c5.77 0 7 1.24 7 7s-1.24 7-7 7-7-1.24-7-7 1.24-7 7-7m2.31 4c-1.77 0-2.16.3-2.16 1.62 0 1.15.39 1.48 2.18 1.86 1 .22 1.2.4 1.2 1.07 0 .7-.2.85-1.2.85s-1.24-.13-1.28-.76h-.94c-.03 1.36.36 1.66 2.15 1.66 1.83 0 2.24-.31 2.24-1.75 0-1.27-.39-1.62-2.15-2-1.02-.23-1.24-.4-1.24-.92 0-.6.22-.74 1.22-.74.87 0 1.08.1 1.1.53h.95C12.35 5.26 11.98 5 10.31 5m-6.81.09v.9h1.61v5.22h.98V5.99h1.62v-.9z" clip-rule="evenodd"/>
|
|
264
264
|
</svg>
|
|
265
|
-
`,
|
|
265
|
+
`,Dv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
266
266
|
<path fill="currentColor" d="M0 12V4h2l2.5 2.5L7 4h2v8H7V7.5l-2.5 2-2.5-2V12zm10-3.5 3 3.5 3-3.5h-2V4h-2v4.5z"/>
|
|
267
267
|
</svg>
|
|
268
|
-
`,
|
|
268
|
+
`,Ov=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
269
269
|
<path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
|
|
270
270
|
<path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
|
|
271
271
|
</svg>
|
|
272
|
-
`,
|
|
272
|
+
`,kv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
273
273
|
<defs>
|
|
274
274
|
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
275
275
|
<stop stop-color="currentColor"/>
|
|
@@ -280,105 +280,105 @@ Error generating stack: `+e.message+`
|
|
|
280
280
|
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
281
281
|
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
282
282
|
</svg>
|
|
283
|
-
`,
|
|
283
|
+
`,Av=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
284
284
|
<path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
|
|
285
285
|
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
286
286
|
</svg>
|
|
287
|
-
`,
|
|
287
|
+
`,jv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
288
288
|
<path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm11 12h-2.5V5.5H8V13H3V3h10z"/>
|
|
289
289
|
</svg>
|
|
290
|
-
`,
|
|
290
|
+
`,Mv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
291
291
|
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .68-.1l.04.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5z"/>
|
|
292
292
|
</svg>
|
|
293
|
-
`,
|
|
293
|
+
`,Nv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
294
294
|
<path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
|
|
295
295
|
</svg>
|
|
296
|
-
`,
|
|
296
|
+
`,Pv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
297
297
|
<path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
|
|
298
298
|
</svg>
|
|
299
|
-
`,
|
|
299
|
+
`,Fv=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" fill="none" viewBox="0 0 15 16">
|
|
300
300
|
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
301
301
|
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
302
302
|
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
303
303
|
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
304
304
|
</svg>
|
|
305
|
-
`,
|
|
305
|
+
`,Iv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
306
306
|
<path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
|
|
307
307
|
<path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
|
|
308
308
|
</svg>
|
|
309
|
-
`,
|
|
309
|
+
`,Lv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
310
310
|
<path fill="currentColor" d="M3.65 10.7a1.65 1.65 0 1 1 0 3.3 1.65 1.65 0 0 1 0-3.3M2 6.06A7.95 7.95 0 0 1 9.95 14H7.62A5.6 5.6 0 0 0 2 8.38zM2 2a12 12 0 0 1 12 12h-2.4A9.6 9.6 0 0 0 2 4.4z"/>
|
|
311
311
|
</svg>
|
|
312
|
-
`,
|
|
312
|
+
`,Rv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
313
313
|
<path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
|
|
314
314
|
</svg>
|
|
315
|
-
`,
|
|
315
|
+
`,zv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
316
316
|
<path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
|
|
317
317
|
<path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
|
|
318
318
|
<path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
|
|
319
319
|
</svg>
|
|
320
|
-
`,
|
|
320
|
+
`,Bv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
321
321
|
<path fill="currentColor" d="M8 1c1.81 0 3.22.13 4.28.54a3.7 3.7 0 0 1 2.22 2.29q.32.9.42 2.13Q15 6.87 15 8q.02 2.02-.27 3.38-.28 1.38-1.12 2.23c-.84.85-1.3.91-2.23 1.12q-1.36.29-3.38.27a13 13 0 0 1-3.38-.27q-1.38-.28-2.23-1.12c-.85-.84-.91-1.3-1.12-2.23Q1 10.02 1 8q0-1.12.08-2.04.1-1.23.42-2.13a3.7 3.7 0 0 1 2.22-2.29C4.78 1.13 6.2 1 8 1m5.98 8.18a3 3 0 0 1-.88.85c-1.13.77-2.8.97-5.1.97s-3.97-.2-5.1-.97a3 3 0 0 1-.88-.85q.05 1.16.23 1.99c.18.8.46 1.34.85 1.73s.93.67 1.73.85c.81.18 1.84.25 3.17.25s2.36-.07 3.17-.25c.8-.18 1.34-.46 1.73-.85s.67-.93.85-1.73q.18-.82.23-2m-.14-3.82q-.59.73-1.56 1.1C11.22 6.88 9.8 7 8 7s-3.22-.13-4.28-.54a4 4 0 0 1-1.56-1.1q-.05.3-.08.64c.16 1.75.59 2.67 1.38 3.2.85.58 2.23.8 4.54.8s3.69-.22 4.54-.8c.8-.53 1.22-1.45 1.38-3.2q-.03-.34-.08-.65M8 2c-1.8 0-3.04.13-3.91.47A2.6 2.6 0 0 0 2.5 4c.32.76.8 1.23 1.58 1.53C4.96 5.87 6.2 6 8 6s3.04-.13 3.91-.47A2.6 2.6 0 0 0 13.5 4a2.6 2.6 0 0 0-1.58-1.53C11.04 2.13 9.8 2 8 2"/>
|
|
322
322
|
</svg>
|
|
323
|
-
`,
|
|
323
|
+
`,Vv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
324
324
|
<path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
|
|
325
325
|
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
326
326
|
</svg>
|
|
327
|
-
`,
|
|
327
|
+
`,Hv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
328
328
|
<path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
|
|
329
329
|
</svg>
|
|
330
|
-
`,
|
|
330
|
+
`,Uv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
331
331
|
<path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
|
|
332
332
|
<path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
|
|
333
333
|
</svg>
|
|
334
|
-
`,
|
|
334
|
+
`,Wv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
335
335
|
<path fill="currentColor" d="M8 1a1.28 1.28 0 0 1 .9 2.19V5.8l1.86-1.85a1.28 1.28 0 1 1 1.28 1.28L10.2 7.09h2.62a1.28 1.28 0 1 1 0 1.82H10.2l1.85 1.85a1.28 1.28 0 1 1-1.28 1.28L8.91 10.2v2.62a1.28 1.28 0 1 1-1.82 0V10.2l-1.85 1.85a1.28 1.28 0 1 1-1.28-1.28L5.8 8.91H3.2a1.28 1.28 0 1 1 0-1.82h2.6L3.96 5.24a1.28 1.28 0 1 1 1.28-1.28L7.09 5.8V3.2A1.28 1.28 0 0 1 8 1"/>
|
|
336
336
|
</svg>
|
|
337
|
-
`,
|
|
337
|
+
`,Gv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
338
338
|
<path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
|
|
339
339
|
<path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
|
|
340
340
|
</svg>
|
|
341
|
-
`,
|
|
341
|
+
`,Kv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
342
342
|
<path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
|
|
343
343
|
</svg>
|
|
344
|
-
`,
|
|
344
|
+
`,qv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
345
345
|
<path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
|
|
346
346
|
</svg>
|
|
347
|
-
`,
|
|
347
|
+
`,Jv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
348
348
|
<path fill="currentColor" fill-rule="evenodd" d="M8 0c6.59 0 8 1.41 8 8s-1.41 8-8 8-8-1.41-8-8 1.41-8 8-8m2.32 5.01q-.44 0-.8.13t-.63.37a2 2 0 0 0-.4.56q-.15.32-.15.72t.14.7.41.53.6.4.7.32q.3.12.5.25.2.12.3.24a1 1 0 0 1 .14.27q.04.15.04.34 0 .22-.08.4a.6.6 0 0 1-.25.28 1 1 0 0 1-.44.1q-.24 0-.42-.05a1 1 0 0 1-.32-.2 1 1 0 0 1-.2-.34 2 2 0 0 1-.06-.5H8.23q0 .52.17.91t.47.64.68.39q.4.12.82.12.45 0 .82-.12.37-.13.63-.36.26-.24.4-.56.13-.33.13-.72a2 2 0 0 0-.11-.72 2 2 0 0 0-.34-.55 2 2 0 0 0-.55-.45 5 5 0 0 0-.78-.37l-.44-.19-.33-.21a1 1 0 0 1-.21-.24 1 1 0 0 1-.08-.3q0-.24.09-.42a.6.6 0 0 1 .26-.29 1 1 0 0 1 .45-.1q.29 0 .47.12a.7.7 0 0 1 .27.35q.09.23.09.52h1.17q0-.56-.24-1a2 2 0 0 0-.69-.7Q10.94 5 10.32 5m-6.79.1v.98h1.59v5.41h1.17v-5.4H7.9V5.1z" clip-rule="evenodd"/>
|
|
349
349
|
</svg>
|
|
350
|
-
`,
|
|
350
|
+
`,Yv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
351
351
|
<path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
|
|
352
352
|
</svg>
|
|
353
|
-
`,
|
|
353
|
+
`,Xv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
354
354
|
<path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
|
|
355
355
|
<path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
|
|
356
356
|
<path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
|
|
357
357
|
</svg>
|
|
358
|
-
`,
|
|
358
|
+
`,Zv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
359
359
|
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
360
360
|
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
361
361
|
</svg>
|
|
362
|
-
`,
|
|
362
|
+
`,Qv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
363
363
|
<path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
|
|
364
364
|
<path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
|
|
365
365
|
<path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
|
|
366
366
|
</svg>
|
|
367
|
-
|
|
367
|
+
`,$v=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
368
368
|
<path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0zM4.12 13h.99l.77-3.4h.02l.7 3.4h.97l1.25-5h-.96l-.76 3.45L6.37 8h-.91l-.8 3.4h-.02L3.98 8H3zm4.55 0h.97l.26-1.11h1.75l.33 1.11H13l-1.53-5H9.93zm2.74-1.93H10.1l.42-1.84h.41z"/>
|
|
369
369
|
</svg>
|
|
370
|
-
`,
|
|
370
|
+
`,ey=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
371
371
|
<path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
|
|
372
372
|
<path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
|
|
373
373
|
</svg>
|
|
374
|
-
`,
|
|
374
|
+
`,ty=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
375
375
|
<path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
|
|
376
376
|
</svg>
|
|
377
|
-
`,
|
|
377
|
+
`,ny=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
378
378
|
<path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
|
|
379
379
|
<path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
|
|
380
380
|
</svg>
|
|
381
|
-
`,Z={gray:{400:`#adadb1`,500:`#8E8E95`,600:`#84848A`,700:`#79797F`,800:`#6C6C71`},red:{400:`#ff6762`,600:`#d52c36`},vermilion:{400:`#ff8c5b`,600:`#d5512f`},orange:{400:`#ffa359`,600:`#d47628`},yellow:{400:`#ffd452`,600:`#d5a910`},green:{400:`#5ecc71`,600:`#199f43`},mint:{400:`#61d5c0`,600:`#16a994`},teal:{400:`#64d1db`,600:`#17a5af`},cyan:{400:`#68cdf2`,600:`#1ca1c7`},blue:{400:`#69b1ff`,600:`#1a85d4`},indigo:{400:`#9d6afb`,600:`#693acf`},purple:{400:`#d568ea`,600:`#a631be`},pink:{400:`#ff678d`,600:`#d32a61`},brown:{400:`#c3987b`,600:`#956b4f`}};Z.gray[400],Z.gray[800];function Q(e){return{dark:e[400],light:e[600]}}function Qv(e,t){return{fg:Q(e),bg:Q(t)}}var $v=[{name:`lang-javascript-duo`,color:Q(Z.yellow),fileExtensions:[`js`,`cjs`,`mjs`,`jsx`]},{name:`lang-typescript-duo`,color:Q(Z.blue),fileExtensions:[`ts`,`cts`,`mts`,`tsx`]},{name:`lang-css-duo`,color:Q(Z.indigo),fileExtensions:[`css`,`scss`,`sass`,`less`,`postcss`,`styl`]},{name:`bash-duo`,color:Q(Z.gray),fileExtensions:[`sh`,`bash`,`zsh`,`fish`,`ksh`,`csh`],fileNames:[`.bashrc`,`.bash_profile`,`.zshrc`,`.zshenv`,`.zprofile`]},{name:`svg-2`,color:Q(Z.orange),opacity:.75,fileExtensions:[`svg`]}],ey=[{name:`astro`,color:Qv(Z.purple,Z.pink),fileExtensions:[`astro`]},{name:`bootstrap-duo`,color:Q(Z.indigo),fileNames:[`bootstrap.min.css`,`bootstrap.css`,`bootstrap.min.js`,`bootstrap.js`,`bootstrap.bundle.min.js`,`bootstrap.bundle.js`]},{name:`react`,color:Q(Z.cyan),fileExtensions:[`jsx`,`tsx`]},{name:`svelte`,color:Q(Z.red),fileExtensions:[`svelte`]},{name:`vue`,color:Q(Z.green),fileExtensions:[`vue`]}],ty=[{name:`graphql`,color:Q(Z.pink),fileExtensions:[`graphql`,`gql`]},{name:`sass`,color:Q(Z.pink),fileExtensions:[`scss`,`sass`]},{name:`terraform`,color:Q(Z.indigo),fileExtensions:[`tf`,`tfvars`,`tfstate`],fileNames:[`.terraform.lock.hcl`]},{name:`wasm-duo`,color:Q(Z.indigo),fileExtensions:[`wasm`,`wat`,`wast`]},{name:`yml`,color:Q(Z.red),fileExtensions:[`yml`,`yaml`]},{name:`zig`,color:Q(Z.orange),fileExtensions:[`zig`]}],ny=[{name:`npm`,color:Q(Z.red),opacity:.75,fileNames:[`package.json`,`package-lock.json`,`.npmrc`,`.npmignore`]},{name:`eslint`,color:Q(Z.indigo),fileNames:[`.eslintrc`,`.eslintrc.json`,`.eslintrc.yml`,`.eslintrc.yaml`,`.eslintrc.js`,`.eslintrc.cjs`,`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`.eslintignore`]},{name:`prettier`,color:Q(Z.teal),fileNames:[`.prettierrc`,`.prettierrc.json`,`.prettierrc.yml`,`.prettierrc.yaml`,`.prettierrc.js`,`.prettierrc.cjs`,`.prettierrc.mjs`,`.prettierrc.toml`,`prettier.config.js`,`prettier.config.cjs`,`prettier.config.mjs`,`.prettierignore`]},{name:`stylelint`,fileNames:[`.stylelintrc`,`.stylelintrc.json`,`.stylelintrc.yml`,`.stylelintrc.yaml`,`.stylelintrc.js`,`.stylelintrc.cjs`,`.stylelintrc.mjs`,`stylelint.config.js`,`stylelint.config.cjs`,`stylelint.config.mjs`,`.stylelintignore`]},{name:`vite`,color:Q(Z.purple),opacity:.75,fileNames:[`vite.config.js`,`vite.config.ts`,`vite.config.mjs`,`vite.config.mts`]},{name:`svgo`,color:Q(Z.green),fileNames:[`svgo.config.js`,`svgo.config.mjs`,`svgo.config.cjs`,`svgo.config.ts`]},{name:`babel`,color:Q(Z.yellow),fileNames:[`.babelrc`,`.babelrc.json`,`babel.config.js`,`babel.config.json`,`babel.config.cjs`,`babel.config.mjs`]},{name:`docker`,color:Q(Z.blue),fileNames:[`Dockerfile`,`.dockerignore`,`docker-compose.yml`,`docker-compose.yaml`,`docker-compose.override.yml`,`compose.yml`,`compose.yaml`]},{name:`tailwind`,color:Q(Z.cyan),fileNames:[`tailwind.config.js`,`tailwind.config.ts`,`tailwind.config.mjs`,`tailwind.config.cjs`]},{name:`nextjs`,fileNames:[`next.config.js`,`next.config.ts`,`next.config.mjs`,`next.config.mts`]},{name:`webpack`,color:Qv(Z.blue,Z.cyan),fileNames:[`webpack.config.js`,`webpack.config.ts`,`webpack.config.mjs`,`webpack.config.cjs`,`webpack.config.babel.js`]},{name:`postcss`,color:Q(Z.red),fileNames:[`postcss.config.js`,`postcss.config.cjs`,`postcss.config.mjs`,`postcss.config.ts`,`.postcssrc`,`.postcssrc.json`,`.postcssrc.yml`,`.postcssrc.yaml`]},{name:`biome`,color:Q(Z.blue),fileNames:[`biome.json`,`biome.jsonc`]},{name:`bun-duo`,color:Q(Z.brown),fileNames:[`bunfig.toml`,`bun.lockb`,`bun.lock`]},{name:`oxc`,color:Q(Z.cyan),fileNames:[`.oxlintrc.json`]},{name:`browserslist-duo`,color:Q(Z.yellow),fileNames:[`.browserslistrc`]},{name:`claude`,color:Q(Z.orange),fileNames:[`CLAUDE.md`]},{name:`vscode`,color:Q(Z.blue),fileExtensions:[`code-workspace`]}],ry=[...$v,...ey,...ty,...ny],iy=[{name:`lang-javascript-duo`,color:Q(Z.yellow),fileExtensions:[`js`,`cjs`,`mjs`,`jsx`]},{name:`lang-typescript-duo`,color:Q(Z.cyan),fileExtensions:[`ts`,`cts`,`mts`,`tsx`]},{name:`lang-css-duo`,color:Q(Z.indigo),fileExtensions:[`css`,`scss`,`sass`,`less`,`postcss`,`styl`]},{name:`lang-html-duo`,color:Q(Z.orange),fileExtensions:[`html`,`htm`,`xhtml`]},{name:`lang-markdown`,fileExtensions:[`md`,`mdx`,`markdown`]},{name:`lang-swift`,color:Q(Z.orange),fileExtensions:[`swift`]},{name:`lang-rust`,color:Q(Z.orange),fileExtensions:[`rs`]},{name:`lang-go`,color:Q(Z.cyan),fileExtensions:[`go`]},{name:`lang-c`,color:Q(Z.blue),fileExtensions:[`c`,`h`]},{name:`lang-cpp`,svgName:`lang-c`,color:Q(Z.blue),fileExtensions:[`cpp`,`cc`,`cxx`,`hpp`,`hh`,`hxx`,`inl`]},{name:`lang-csharp`,svgName:`lang-c`,color:Q(Z.purple),fileExtensions:[`cs`]},{name:`lang-objc`,svgName:`lang-c`,color:Q(Z.vermilion),fileExtensions:[`m`,`mm`]},{name:`lang-python`,color:Qv(Z.blue,Z.yellow),fileExtensions:[`py`,`pyw`,`pyi`,`pyx`]},{name:`lang-ruby`,color:Q(Z.red),opacity:.75,fileExtensions:[`rb`,`erb`,`gemspec`,`rake`],fileNames:[`Gemfile`,`Rakefile`]},{name:`file-symlink-duo`},{name:`server-duo`,fileExtensions:[`db`,`sql`,`sqlite`,`sqlite3`]},{name:`file-table-duo`,fileExtensions:[`csv`,`tsv`,`xls`,`xlsx`,`ods`]},{name:`file-zip-duo`,fileExtensions:[`zip`,`tar`,`gz`,`tgz`,`bz2`,`xz`,`7z`,`rar`,`jar`,`war`]},{name:`font`,fileExtensions:[`ttf`,`otf`,`woff`,`woff2`,`eot`]},{name:`bash-duo`,color:Q(Z.green),fileExtensions:[`sh`,`bash`,`zsh`,`fish`,`ksh`,`csh`],fileNames:[`.bashrc`,`.bash_profile`,`.zshrc`,`.zshenv`,`.zprofile`]},{name:`svg-2`,fileExtensions:[`svg`]},{name:`braces`,fileExtensions:[`json`,`jsonc`,`json5`,`jsonl`]},{name:`git`,color:Q(Z.vermilion),fileNames:[`.gitignore`,`.gitattributes`,`.gitmodules`,`.gitkeep`]}],ay=[{name:`file-duo`},{name:`file-text-duo`,fileExtensions:[`txt`,`md`,`mdx`,`markdown`,`rst`,`rtf`,`log`,`csv`,`tsv`,`ini`,`cfg`,`conf`,`env`,`env.local`,`env.development`,`env.production`,`editorconfig`,`LICENSE`,`AUTHORS`,`CONTRIBUTORS`,`CHANGELOG`]},{name:`image-duo`,fileExtensions:[`png`,`jpg`,`jpeg`,`gif`,`svg`,`webp`,`avif`,`ico`,`icns`,`bmp`,`tiff`,`tif`]},{name:`folder-duo`},{name:`folder-open-duo`}],oy={dark:`#adadb1`,light:`#6c6c71`},sy=[...ay,...iy,...ry],cy=new Map,ly=new Map,uy=new Map;for(let e of sy){cy.set(e.name,e);for(let t of e.fileNames??[])ly.set(t,e),ly.set(t.toLocaleLowerCase(),e);for(let t of e.fileExtensions??[])uy.set(t.toLocaleLowerCase(),e)}function dy(e){return e?`fg`in e?{foreground:e.fg,background:e.bg}:{foreground:e,background:e}:{foreground:oy,background:oy}}function fy(e){return{name:e.name,svgName:e.svgName??e.name,...dy(e.color)}}function py(e){let t=e.replaceAll(`\\`,`/`).replace(/\/+$/u,``);return t.split(`/`).at(-1)??t}function my(e){let t=e.toLocaleLowerCase(),n=[];for(let e=t.indexOf(`.`);e>=0;e=t.indexOf(`.`,e+1)){let r=t.slice(e+1);r&&n.push(r)}return n.length===0&&n.push(t),n}function hy(e){let t=cy.get(e);if(!t)throw Error(`vscode-icons definition is missing: ${e}`);return fy(t)}function gy(e,t=`file`){if(t===`symlink`)return hy(`file-symlink-duo`);if(t===`submodule`)return{name:`submodule`,svgName:`IconLayers3Middle`,foreground:oy,background:oy};let n=py(e),r=ly.get(n)??ly.get(n.toLocaleLowerCase());if(r)return fy(r);for(let e of my(n)){let t=uy.get(e);if(t)return fy(t)}return hy(`file-duo`)}function _y(e){return hy(e?`folder-open-duo`:`folder-duo`)}var vy=new Map(Object.entries(Object.assign({"/node_modules/@pierre/vscode-icons/svgs/IconLayers3Middle.svg":p_,"/node_modules/@pierre/vscode-icons/svgs/astro.svg":m_,"/node_modules/@pierre/vscode-icons/svgs/babel.svg":h_,"/node_modules/@pierre/vscode-icons/svgs/bash-duo.svg":g_,"/node_modules/@pierre/vscode-icons/svgs/bash.svg":__,"/node_modules/@pierre/vscode-icons/svgs/biome.svg":v_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap-duo.svg":y_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap.svg":b_,"/node_modules/@pierre/vscode-icons/svgs/braces.svg":x_,"/node_modules/@pierre/vscode-icons/svgs/browserslist-duo.svg":S_,"/node_modules/@pierre/vscode-icons/svgs/bun-duo.svg":C_,"/node_modules/@pierre/vscode-icons/svgs/bun.svg":w_,"/node_modules/@pierre/vscode-icons/svgs/claude.svg":T_,"/node_modules/@pierre/vscode-icons/svgs/code-block-duo.svg":E_,"/node_modules/@pierre/vscode-icons/svgs/code.svg":D_,"/node_modules/@pierre/vscode-icons/svgs/css.svg":O_,"/node_modules/@pierre/vscode-icons/svgs/docker.svg":k_,"/node_modules/@pierre/vscode-icons/svgs/eslint.svg":A_,"/node_modules/@pierre/vscode-icons/svgs/extension.svg":j_,"/node_modules/@pierre/vscode-icons/svgs/file-duo.svg":M_,"/node_modules/@pierre/vscode-icons/svgs/file-plus-duo.svg":N_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink-duo.svg":P_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink.svg":F_,"/node_modules/@pierre/vscode-icons/svgs/file-table-duo.svg":I_,"/node_modules/@pierre/vscode-icons/svgs/file-table.svg":L_,"/node_modules/@pierre/vscode-icons/svgs/file-text-duo.svg":R_,"/node_modules/@pierre/vscode-icons/svgs/file-text.svg":z_,"/node_modules/@pierre/vscode-icons/svgs/file-zip-duo.svg":B_,"/node_modules/@pierre/vscode-icons/svgs/file-zip.svg":V_,"/node_modules/@pierre/vscode-icons/svgs/file.svg":H_,"/node_modules/@pierre/vscode-icons/svgs/folder-duo.svg":U_,"/node_modules/@pierre/vscode-icons/svgs/folder-open-duo.svg":W_,"/node_modules/@pierre/vscode-icons/svgs/folder-open.svg":G_,"/node_modules/@pierre/vscode-icons/svgs/folder-plus-duo.svg":K_,"/node_modules/@pierre/vscode-icons/svgs/folder-zip-duo.svg":q_,"/node_modules/@pierre/vscode-icons/svgs/folder-zip.svg":J_,"/node_modules/@pierre/vscode-icons/svgs/folder.svg":Y_,"/node_modules/@pierre/vscode-icons/svgs/folders.svg":X_,"/node_modules/@pierre/vscode-icons/svgs/font.svg":Z_,"/node_modules/@pierre/vscode-icons/svgs/gear.svg":Q_,"/node_modules/@pierre/vscode-icons/svgs/git.svg":$_,"/node_modules/@pierre/vscode-icons/svgs/graphql.svg":ev,"/node_modules/@pierre/vscode-icons/svgs/html.svg":tv,"/node_modules/@pierre/vscode-icons/svgs/image-duo.svg":nv,"/node_modules/@pierre/vscode-icons/svgs/image.svg":rv,"/node_modules/@pierre/vscode-icons/svgs/javascript.svg":iv,"/node_modules/@pierre/vscode-icons/svgs/lang-c.svg":av,"/node_modules/@pierre/vscode-icons/svgs/lang-css-duo.svg":ov,"/node_modules/@pierre/vscode-icons/svgs/lang-css.svg":sv,"/node_modules/@pierre/vscode-icons/svgs/lang-go.svg":cv,"/node_modules/@pierre/vscode-icons/svgs/lang-html-duo.svg":lv,"/node_modules/@pierre/vscode-icons/svgs/lang-html.svg":uv,"/node_modules/@pierre/vscode-icons/svgs/lang-html5-duo.svg":dv,"/node_modules/@pierre/vscode-icons/svgs/lang-html5.svg":fv,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript-duo.svg":pv,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript.svg":mv,"/node_modules/@pierre/vscode-icons/svgs/lang-markdown.svg":hv,"/node_modules/@pierre/vscode-icons/svgs/lang-python.svg":gv,"/node_modules/@pierre/vscode-icons/svgs/lang-ruby.svg":_v,"/node_modules/@pierre/vscode-icons/svgs/lang-rust.svg":vv,"/node_modules/@pierre/vscode-icons/svgs/lang-swift.svg":yv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript-duo.svg":bv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript.svg":xv,"/node_modules/@pierre/vscode-icons/svgs/markdown.svg":Sv,"/node_modules/@pierre/vscode-icons/svgs/mcp.svg":Cv,"/node_modules/@pierre/vscode-icons/svgs/nextjs.svg":wv,"/node_modules/@pierre/vscode-icons/svgs/npm-duo.svg":Tv,"/node_modules/@pierre/vscode-icons/svgs/npm.svg":Ev,"/node_modules/@pierre/vscode-icons/svgs/oxc-fill.svg":Dv,"/node_modules/@pierre/vscode-icons/svgs/oxc.svg":Ov,"/node_modules/@pierre/vscode-icons/svgs/postcss.svg":kv,"/node_modules/@pierre/vscode-icons/svgs/prettier.svg":Av,"/node_modules/@pierre/vscode-icons/svgs/react.svg":jv,"/node_modules/@pierre/vscode-icons/svgs/rss.svg":Mv,"/node_modules/@pierre/vscode-icons/svgs/sass.svg":Nv,"/node_modules/@pierre/vscode-icons/svgs/server-duo.svg":Pv,"/node_modules/@pierre/vscode-icons/svgs/server.svg":Fv,"/node_modules/@pierre/vscode-icons/svgs/stylelint.svg":Iv,"/node_modules/@pierre/vscode-icons/svgs/svelte.svg":Lv,"/node_modules/@pierre/vscode-icons/svgs/svg-2.svg":Rv,"/node_modules/@pierre/vscode-icons/svgs/svg.svg":zv,"/node_modules/@pierre/vscode-icons/svgs/svgo.svg":Bv,"/node_modules/@pierre/vscode-icons/svgs/tailwind.svg":Vv,"/node_modules/@pierre/vscode-icons/svgs/terraform.svg":Hv,"/node_modules/@pierre/vscode-icons/svgs/typescript.svg":Uv,"/node_modules/@pierre/vscode-icons/svgs/vite.svg":Wv,"/node_modules/@pierre/vscode-icons/svgs/vscode.svg":Gv,"/node_modules/@pierre/vscode-icons/svgs/vue.svg":Kv,"/node_modules/@pierre/vscode-icons/svgs/wasm-duo.svg":qv,"/node_modules/@pierre/vscode-icons/svgs/wasm.svg":Jv,"/node_modules/@pierre/vscode-icons/svgs/webpack.svg":Yv,"/node_modules/@pierre/vscode-icons/svgs/yml.svg":Xv,"/node_modules/@pierre/vscode-icons/svgs/zig.svg":Zv})).map(([e,t])=>{let n=e.split(`/`).at(-1);if(!n)throw Error(`vscode-icons SVG path is invalid: ${e}`);return[n.replace(/\.svg$/u,``),t]}));function yy(e){return{"--file-icon-dark-bg":e.background.dark,"--file-icon-dark-fg":e.foreground.dark,"--file-icon-light-bg":e.background.light,"--file-icon-light-fg":e.foreground.light}}function by({icon:e}){let t=vy.get(e.svgName);if(!t)throw Error(`vscode-icons SVG is missing: ${e.svgName}`);if(!t.trimStart().startsWith(`<svg`)||/<(?:foreignObject|script)\b|\son[a-z]+\s*=/iu.test(t))throw Error(`vscode-icons SVG is unsafe: ${e.svgName}`);return(0,P.jsx)(`span`,{className:`tree-entry-icon file-type-icon file-type-icon--${e.name}`,"data-file-icon":e.name,style:yy(e),"aria-hidden":`true`,dangerouslySetInnerHTML:{__html:t}})}function xy({path:e=``,kind:t}){return(0,P.jsx)(by,{icon:gy(e,t)})}function Sy({expanded:e}){return(0,P.jsx)(by,{icon:_y(e)})}var Cy=new Map,wy={...Vp,protocols:{...Vp.protocols,href:[...Vp.protocols?.href??[],`rvw-ref`]}};function Ty(e){return e?.startsWith(`rvw-ref:`)?e.slice(8):null}function Ey(e){return e.startLine===null||e.endLine===null?null:e.startLine===e.endLine?`L${e.startLine}`:`L${e.startLine}–${e.endLine}`}function Dy(e){let t=Ey(e);return t?`${e.path}:${t}`:e.path}function Oy({reference:e,children:t,className:n,onOpen:r}){return(0,P.jsxs)(`button`,{className:[`code-inline-reference`,n].filter(Boolean).join(` `),title:Dy(e),onPointerDown:e=>{e.button===0&&Cy.set(e.pointerId,{x:e.clientX,y:e.clientY})},onPointerUp:t=>{let n=Cy.get(t.pointerId);Cy.delete(t.pointerId),!(!n||Math.hypot(t.clientX-n.x,t.clientY-n.y)>4)&&(t.preventDefault(),t.stopPropagation(),r(e,t.metaKey||t.ctrlKey))},onPointerCancel:e=>{Cy.delete(e.pointerId)},onClick:t=>{t.preventDefault(),t.detail===0&&r(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:[(0,P.jsx)(xy,{path:e.path,kind:`file`}),(0,P.jsx)(`span`,{children:t}),(0,P.jsx)(`small`,{children:Ey(e)??`File`})]})}function ky({alt:e,title:t,sourceAttributes:n}){let r=e?.trim()||t?.trim()||`説明なし`;return(0,P.jsxs)(`span`,{...n,className:`markdown-image-placeholder`,role:`img`,"aria-label":`画像: ${r}(自動読み込み停止)`,children:[`画像を自動読み込みしません: `,r]})}var Ay=`modulepreload`,jy=function(e){return`/`+e},My={},Ny=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=jy(t,n),t=s(t),t in My)return;My[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ay,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Py=Promise.resolve(),Fy=`(prefers-color-scheme: dark)`;function Iy(){let[e,t]=(0,N.useState)(()=>window.matchMedia(Fy).matches);return(0,N.useEffect)(()=>{let e=window.matchMedia(Fy),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function Ly({source:e,themePreference:t,renderIdPrefix:n,errorClassName:r,onRendered:i,...a}){let o=(0,N.useId)().replace(/[^A-Za-z0-9]/g,``),[s,c]=(0,N.useState)(null),[l,u]=(0,N.useState)(null),d=Iy(),f=t===`dark`||t===`system`&&d;return(0,N.useEffect)(()=>u(null),[f,e]),(0,N.useEffect)(()=>{if(!s)return;let t=!1;u(null);let r=`${n}${o}`;return Py=Py.then(async()=>{let{default:n}=await Ny(async()=>{let{default:e}=await import(`./mermaid.core-BoLGzxB5.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]));n.initialize({startOnLoad:!1,suppressErrorRendering:!0,securityLevel:`strict`,theme:f?`dark`:`base`,flowchart:{htmlLabels:!1,curve:`basis`},themeVariables:f?{primaryColor:`#1f2937`,primaryTextColor:`#f0f6fc`,lineColor:`#8c959f`}:{primaryColor:`#eef5ff`,primaryTextColor:`#24292f`,lineColor:`#57606a`}});let a=await n.render(r,e);t||(s.innerHTML=a.svg,i?.(s))}).catch(e=>{t||u(e instanceof Error?e.message:`diagramを表示できません。`)}).finally(()=>{document.getElementById(`d${r}`)?.remove(),document.getElementById(`i${r}`)?.remove()}),()=>{t=!0}},[s,f,o,i,n,e]),l?(0,P.jsx)(`div`,{className:r,children:l}):(0,P.jsx)(`div`,{...a,ref:c})}function Ry(e){return N.Children.toArray(e).map(e=>typeof e==`string`||typeof e==`number`?String(e):(0,N.isValidElement)(e)?Ry(e.props.children):``).join(``)}function zy({source:e,themePreference:t}){let n=(0,N.useRef)(null),[r,i]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let e=n.current;if(!e)return;if(!(`IntersectionObserver`in window)){i(!0);return}let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(i(!0),t.disconnect())},{rootMargin:`160px`});return t.observe(e),()=>t.disconnect()},[]),(0,P.jsxs)(`div`,{className:`comment-mermaid-shell`,ref:n,children:[(0,P.jsx)(`div`,{className:`comment-mermaid-toolbar`,children:`Mermaid diagram`}),r?(0,P.jsx)(Ly,{className:`comment-mermaid`,role:`img`,"aria-label":`Mermaid diagram`,source:e,themePreference:t,renderIdPrefix:`rvwComment`,errorClassName:`comment-mermaid-error`}):(0,P.jsx)(`div`,{className:`comment-mermaid-placeholder`,children:`diagramを準備しています…`})]})}function By({body:e,pullRequestId:t,sourceOid:n,sourcePath:r,references:i,themePreference:a,onOpenCodeReference:o,onOpenRepositoryLink:s}){let c=(0,N.useRef)(null),l=(0,N.useMemo)(()=>new Map(i.map(e=>[e.id,e])),[i]),u=(0,N.useMemo)(()=>({table:({children:e,node:t,...n})=>(0,P.jsx)(`div`,{className:`comment-markdown-table-scroll`,children:(0,P.jsx)(`table`,{...n,children:e})}),a:({href:e,children:t,node:i,...a})=>{let u=Ty(e);if(u!==null){let e=l.get(u);return e&&o?(0,P.jsx)(Oy,{reference:e,className:`comment-inline-reference`,onOpen:o,children:t}):(0,P.jsx)(`span`,{children:t})}let d=f_(e,r);if(!d){if(!e)return(0,P.jsx)(`span`,{children:t});let n=d_(e);return(0,P.jsx)(`a`,{...a,href:e,target:n?`_blank`:void 0,rel:n?`noopener noreferrer`:void 0,children:t})}return s?(0,P.jsx)(`a`,{...a,href:e,onPointerDown:e=>{e.button===0&&(c.current={x:e.clientX,y:e.clientY})},onPointerUp:e=>{if(e.button!==0||!c.current)return;let t=u_(c.current,{x:e.clientX,y:e.clientY});if(c.current=null,t){e.currentTarget.dataset.rvwLinkDragged=`true`;return}e.preventDefault(),s(d,n,e.metaKey||e.ctrlKey)},onPointerCancel:()=>{c.current=null},onClick:e=>{if(e.preventDefault(),e.currentTarget.dataset.rvwLinkDragged===`true`){delete e.currentTarget.dataset.rvwLinkDragged;return}e.detail===0&&s(d,n,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:t}):(0,P.jsx)(`span`,{className:`comment-markdown-unavailable-link`,title:d,children:t})},img:({src:e,alt:i,title:a,node:o,...s})=>{let c=f_(e,r);return c?(0,P.jsx)(`img`,{...s,src:l_(t,n,c),alt:i??``,title:a}):(0,P.jsx)(ky,{alt:i,title:a,sourceAttributes:{}})},pre:({children:e,node:t,...n})=>{let r=N.Children.count(e)===1?N.Children.only(e):null;return!(0,N.isValidElement)(r)||!r.props.className?.split(/\s+/u).includes(`language-mermaid`)?(0,P.jsx)(`pre`,{...n,children:e}):(0,P.jsx)(zy,{source:Ry(r.props.children).trim(),themePreference:a})}}),[o,s,t,l,n,r,a]);return(0,P.jsx)(`div`,{className:`comment-markdown`,children:(0,P.jsx)(Cc,{rehypePlugins:[zp,[im,wy]],remarkPlugins:[s_,fm],urlTransform:e=>e.startsWith(`rvw-ref:`)?e:Dc(e),components:u,children:e})})}var Vy=new Map,Hy=new Set,Uy=2400;function Wy(e,t){if(e.target.kind===`pull-request`||e.target.startLine===null)return null;let n=t&&!t.outdated?t.range:null,r=n?.startLine??e.target.startLine,i=n?.endLine??e.target.endLine??r;return r===i?`L${r}`:`L${r}–${i}`}function Gy(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return[e.target.walkthroughTitle,Wy(e,t)??`ウォークスルー全体`].join(` · `);let r=t?.path??(e.target.documentKind===`pull-request-markdown`?`Pull Request.md`:e.target.path),i=Wy(e,t)??`文書全体`;return[r,n===`deletions`?`変更前`:n===`additions`?`変更後`:null,i].filter(Boolean).join(` · `)}function Ky(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return Wy(e,t)??`ウォークスルー全体`;let r=Wy(e,t)??(e.target.documentKind===`pull-request-markdown`?`文書全体`:`ファイル全体`);return n===`deletions`?`変更前 · ${r}`:r}function qy(e){return e.target.kind===`pull-request`?`Pull Request.mdを開く`:`コメント対象を開く`}function Jy(e){let t=new Date(e);return Number.isNaN(t.valueOf())?e:new Intl.DateTimeFormat(`ja-JP`,{month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(t)}function Yy({comment:e,post:t,markdownSourceOid:n,themePreference:r,onOpenCodeReference:i,onOpenRepositoryLink:a}){let[o,s]=(0,N.useState)(null),c=(0,N.useRef)(null),l=e.target.kind===`document`&&e.target.documentKind===`repository-file`?e.target:null,u=t.relatedCommitOid??l?.sourceOid??n??e.createdHeadOid;(0,N.useEffect)(()=>()=>{c.current!==null&&window.clearTimeout(c.current)},[]);let d=async(e,t)=>{if(!i)return;let n=await i(u,e,t);n&&(c.current!==null&&window.clearTimeout(c.current),s(n),c.current=window.setTimeout(()=>{s(null),c.current=null},Uy))};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(By,{body:t.body,pullRequestId:e.pullRequestId,sourceOid:u,sourcePath:l?.path??null,references:t.references,themePreference:r,onOpenCodeReference:(e,t)=>{d(e,t)},onOpenRepositoryLink:a}),o&&(0,P.jsx)(`div`,{className:`code-reference-notice comment-reference-notice`,role:`status`,children:o})]})}function Xy({comment:e,variant:t=`sidebar`,placement:n=null,side:r=null,markdownSourceOid:i,themePreference:a,onOpenCodeReference:o,onOpenTarget:s,onOpenRepositoryLink:c,onDeleted:l,onActiveChange:u}){let d=Ve(),f=`${t}:${e.id}`,p=(0,N.useSyncExternalStore)(Ft,()=>It(e.pullRequestId,f),()=>It(e.pullRequestId,f)),m=p.body,h=(0,N.useRef)(null),[g,_]=(0,N.useState)(()=>{if(t===`sidebar`)return!0;let n=Vy.get(e.id);return n?.commentUpdatedAt===e.updatedAt?n.expanded:e.resolvedAt===null}),v=(0,N.useRef)(e.updatedAt),y=(0,N.useRef)(null),[b,x]=(0,N.useState)(null),[S,C]=(0,N.useState)(null),[w,T]=(0,N.useState)(null),[E,D]=(0,N.useState)(``),[O,ee]=(0,N.useState)(null),te=t===`sidebar`||g,ne=(0,N.useRef)(te),re=e.posts.find(e=>e.isRoot)??e.posts[0],k=e.posts.filter(e=>!e.isRoot).length,A=n?.outdated??!1;(0,N.useLayoutEffect)(()=>{!p.focused||document.activeElement===h.current||(h.current?.focus(),h.current?.setSelectionRange(m.length,m.length))},[m.length,p.focused]),(0,N.useEffect)(()=>{if(t!==`inline`||v.current===e.updatedAt)return;let n=e.resolvedAt===null;Vy.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),_(n),v.current=e.updatedAt},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{if(t!==`inline`||!Hy.has(e.id))return;Hy.delete(e.id);let n=window.requestAnimationFrame(()=>{y.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{let e=te&&!ne.current;if(ne.current=te,!e||t!==`inline`)return;let n=window.requestAnimationFrame(()=>{y.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[te,t]),(0,N.useEffect)(()=>{if(!b)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-comment-menu="${b}"]`)||x(null))},t=e=>{e.key===`Escape`&&(e.preventDefault(),Array.from(y.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===b)?.querySelector(`.comment-more-trigger`)?.focus(),x(null))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[b]),(0,N.useLayoutEffect)(()=>{if(!b){C(null);return}let e=Array.from(y.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===b),t=e?.querySelector(`.comment-more-menu`);if(!e||!t)return;t.matches(`:popover-open`)||t.showPopover();let n=()=>{let n=8,r=window.innerWidth-8,i=window.innerHeight-8,a=8;for(let t=e.parentElement;t;t=t.parentElement){let e=window.getComputedStyle(t);if(![e.overflow,e.overflowX,e.overflowY].some(e=>/^(auto|clip|hidden|scroll)$/u.test(e)))continue;let o=t.getBoundingClientRect();n=Math.max(n,o.top+8),r=Math.min(r,o.right-8),i=Math.min(i,o.bottom-8),a=Math.max(a,o.left+8)}let o=e.getBoundingClientRect(),s=t.getBoundingClientRect(),c=o.top-n,l=i-o.bottom,u=s.height+3>l&&c>l,d=u?o.top-s.height-3:o.bottom+3,f=Math.max(n,i-s.height),p=Math.max(a,r-s.width),m={postId:b,top:Math.min(Math.max(d,n),f),left:Math.min(Math.max(o.right-s.width,a),p),opensUpward:u};C(e=>e?.postId===m.postId&&e.top===m.top&&e.left===m.left&&e.opensUpward===m.opensUpward?e:m)};return n(),S?.postId===b&&document.activeElement===e.querySelector(`.comment-more-trigger`)&&t.querySelector(`[role=menuitem]`)?.focus(),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0)}},[S,b,te]);let j=async()=>{await Promise.all([d.invalidateQueries({queryKey:[`comments`]}),d.invalidateQueries({queryKey:[`change-sequence`]}),d.invalidateQueries({queryKey:[`annotations`]}),d.invalidateQueries({queryKey:[`comment-placement`]})])},ie=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/posts`,yt({body:m,authorLabel:`You`,relatedCommitOid:null})),onSuccess:async()=>{let n=It(e.pullRequestId,f);Lt(e.pullRequestId,f,{revision:n.revision,body:``,focused:n.focused}),t===`inline`&&Hy.add(e.id),await j()}}),ae=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/${e.resolvedAt?`reopen`:`resolve`}`,yt({})),onSuccess:j}),M=it({mutationFn:async({postId:t,body:n})=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({body:n}),method:`PATCH`}),onSuccess:async()=>{T(null),D(``),await j()}}),oe=it({mutationFn:async t=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{x(null),await j()}}),se=it({mutationFn:async()=>await vt(`/api/comments/${e.id}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{Rt(e.pullRequestId,e.id),l?.(),await j()}}),ce=async()=>{await navigator.clipboard.writeText(`rvw Skillを使って、次のコメントを確認してください。\n\n${e.ref}`),x(null),ee(`参照をコピーしました`),window.setTimeout(()=>ee(null),1600)},le=e=>{_(!0),T(e.id),D(e.body),x(null),M.reset()},ue=()=>{let e=k>0?`\n返信${k}件もすべて削除されます。`:``;window.confirm(`このコメントスレッドを削除します。${e}\nコピー済みの参照は無効になります。\n\nこの操作は元に戻せません。`)&&se.mutate()},de=e=>{window.confirm(`この返信を削除します。
|
|
381
|
+
`,Z={gray:{400:`#adadb1`,500:`#8E8E95`,600:`#84848A`,700:`#79797F`,800:`#6C6C71`},red:{400:`#ff6762`,600:`#d52c36`},vermilion:{400:`#ff8c5b`,600:`#d5512f`},orange:{400:`#ffa359`,600:`#d47628`},yellow:{400:`#ffd452`,600:`#d5a910`},green:{400:`#5ecc71`,600:`#199f43`},mint:{400:`#61d5c0`,600:`#16a994`},teal:{400:`#64d1db`,600:`#17a5af`},cyan:{400:`#68cdf2`,600:`#1ca1c7`},blue:{400:`#69b1ff`,600:`#1a85d4`},indigo:{400:`#9d6afb`,600:`#693acf`},purple:{400:`#d568ea`,600:`#a631be`},pink:{400:`#ff678d`,600:`#d32a61`},brown:{400:`#c3987b`,600:`#956b4f`}};Z.gray[400],Z.gray[800];function Q(e){return{dark:e[400],light:e[600]}}function ry(e,t){return{fg:Q(e),bg:Q(t)}}var iy=[{name:`lang-javascript-duo`,color:Q(Z.yellow),fileExtensions:[`js`,`cjs`,`mjs`,`jsx`]},{name:`lang-typescript-duo`,color:Q(Z.blue),fileExtensions:[`ts`,`cts`,`mts`,`tsx`]},{name:`lang-css-duo`,color:Q(Z.indigo),fileExtensions:[`css`,`scss`,`sass`,`less`,`postcss`,`styl`]},{name:`bash-duo`,color:Q(Z.gray),fileExtensions:[`sh`,`bash`,`zsh`,`fish`,`ksh`,`csh`],fileNames:[`.bashrc`,`.bash_profile`,`.zshrc`,`.zshenv`,`.zprofile`]},{name:`svg-2`,color:Q(Z.orange),opacity:.75,fileExtensions:[`svg`]}],ay=[{name:`astro`,color:ry(Z.purple,Z.pink),fileExtensions:[`astro`]},{name:`bootstrap-duo`,color:Q(Z.indigo),fileNames:[`bootstrap.min.css`,`bootstrap.css`,`bootstrap.min.js`,`bootstrap.js`,`bootstrap.bundle.min.js`,`bootstrap.bundle.js`]},{name:`react`,color:Q(Z.cyan),fileExtensions:[`jsx`,`tsx`]},{name:`svelte`,color:Q(Z.red),fileExtensions:[`svelte`]},{name:`vue`,color:Q(Z.green),fileExtensions:[`vue`]}],oy=[{name:`graphql`,color:Q(Z.pink),fileExtensions:[`graphql`,`gql`]},{name:`sass`,color:Q(Z.pink),fileExtensions:[`scss`,`sass`]},{name:`terraform`,color:Q(Z.indigo),fileExtensions:[`tf`,`tfvars`,`tfstate`],fileNames:[`.terraform.lock.hcl`]},{name:`wasm-duo`,color:Q(Z.indigo),fileExtensions:[`wasm`,`wat`,`wast`]},{name:`yml`,color:Q(Z.red),fileExtensions:[`yml`,`yaml`]},{name:`zig`,color:Q(Z.orange),fileExtensions:[`zig`]}],sy=[{name:`npm`,color:Q(Z.red),opacity:.75,fileNames:[`package.json`,`package-lock.json`,`.npmrc`,`.npmignore`]},{name:`eslint`,color:Q(Z.indigo),fileNames:[`.eslintrc`,`.eslintrc.json`,`.eslintrc.yml`,`.eslintrc.yaml`,`.eslintrc.js`,`.eslintrc.cjs`,`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`.eslintignore`]},{name:`prettier`,color:Q(Z.teal),fileNames:[`.prettierrc`,`.prettierrc.json`,`.prettierrc.yml`,`.prettierrc.yaml`,`.prettierrc.js`,`.prettierrc.cjs`,`.prettierrc.mjs`,`.prettierrc.toml`,`prettier.config.js`,`prettier.config.cjs`,`prettier.config.mjs`,`.prettierignore`]},{name:`stylelint`,fileNames:[`.stylelintrc`,`.stylelintrc.json`,`.stylelintrc.yml`,`.stylelintrc.yaml`,`.stylelintrc.js`,`.stylelintrc.cjs`,`.stylelintrc.mjs`,`stylelint.config.js`,`stylelint.config.cjs`,`stylelint.config.mjs`,`.stylelintignore`]},{name:`vite`,color:Q(Z.purple),opacity:.75,fileNames:[`vite.config.js`,`vite.config.ts`,`vite.config.mjs`,`vite.config.mts`]},{name:`svgo`,color:Q(Z.green),fileNames:[`svgo.config.js`,`svgo.config.mjs`,`svgo.config.cjs`,`svgo.config.ts`]},{name:`babel`,color:Q(Z.yellow),fileNames:[`.babelrc`,`.babelrc.json`,`babel.config.js`,`babel.config.json`,`babel.config.cjs`,`babel.config.mjs`]},{name:`docker`,color:Q(Z.blue),fileNames:[`Dockerfile`,`.dockerignore`,`docker-compose.yml`,`docker-compose.yaml`,`docker-compose.override.yml`,`compose.yml`,`compose.yaml`]},{name:`tailwind`,color:Q(Z.cyan),fileNames:[`tailwind.config.js`,`tailwind.config.ts`,`tailwind.config.mjs`,`tailwind.config.cjs`]},{name:`nextjs`,fileNames:[`next.config.js`,`next.config.ts`,`next.config.mjs`,`next.config.mts`]},{name:`webpack`,color:ry(Z.blue,Z.cyan),fileNames:[`webpack.config.js`,`webpack.config.ts`,`webpack.config.mjs`,`webpack.config.cjs`,`webpack.config.babel.js`]},{name:`postcss`,color:Q(Z.red),fileNames:[`postcss.config.js`,`postcss.config.cjs`,`postcss.config.mjs`,`postcss.config.ts`,`.postcssrc`,`.postcssrc.json`,`.postcssrc.yml`,`.postcssrc.yaml`]},{name:`biome`,color:Q(Z.blue),fileNames:[`biome.json`,`biome.jsonc`]},{name:`bun-duo`,color:Q(Z.brown),fileNames:[`bunfig.toml`,`bun.lockb`,`bun.lock`]},{name:`oxc`,color:Q(Z.cyan),fileNames:[`.oxlintrc.json`]},{name:`browserslist-duo`,color:Q(Z.yellow),fileNames:[`.browserslistrc`]},{name:`claude`,color:Q(Z.orange),fileNames:[`CLAUDE.md`]},{name:`vscode`,color:Q(Z.blue),fileExtensions:[`code-workspace`]}],cy=[...iy,...ay,...oy,...sy],ly=[{name:`lang-javascript-duo`,color:Q(Z.yellow),fileExtensions:[`js`,`cjs`,`mjs`,`jsx`]},{name:`lang-typescript-duo`,color:Q(Z.cyan),fileExtensions:[`ts`,`cts`,`mts`,`tsx`]},{name:`lang-css-duo`,color:Q(Z.indigo),fileExtensions:[`css`,`scss`,`sass`,`less`,`postcss`,`styl`]},{name:`lang-html-duo`,color:Q(Z.orange),fileExtensions:[`html`,`htm`,`xhtml`]},{name:`lang-markdown`,fileExtensions:[`md`,`mdx`,`markdown`]},{name:`lang-swift`,color:Q(Z.orange),fileExtensions:[`swift`]},{name:`lang-rust`,color:Q(Z.orange),fileExtensions:[`rs`]},{name:`lang-go`,color:Q(Z.cyan),fileExtensions:[`go`]},{name:`lang-c`,color:Q(Z.blue),fileExtensions:[`c`,`h`]},{name:`lang-cpp`,svgName:`lang-c`,color:Q(Z.blue),fileExtensions:[`cpp`,`cc`,`cxx`,`hpp`,`hh`,`hxx`,`inl`]},{name:`lang-csharp`,svgName:`lang-c`,color:Q(Z.purple),fileExtensions:[`cs`]},{name:`lang-objc`,svgName:`lang-c`,color:Q(Z.vermilion),fileExtensions:[`m`,`mm`]},{name:`lang-python`,color:ry(Z.blue,Z.yellow),fileExtensions:[`py`,`pyw`,`pyi`,`pyx`]},{name:`lang-ruby`,color:Q(Z.red),opacity:.75,fileExtensions:[`rb`,`erb`,`gemspec`,`rake`],fileNames:[`Gemfile`,`Rakefile`]},{name:`file-symlink-duo`},{name:`server-duo`,fileExtensions:[`db`,`sql`,`sqlite`,`sqlite3`]},{name:`file-table-duo`,fileExtensions:[`csv`,`tsv`,`xls`,`xlsx`,`ods`]},{name:`file-zip-duo`,fileExtensions:[`zip`,`tar`,`gz`,`tgz`,`bz2`,`xz`,`7z`,`rar`,`jar`,`war`]},{name:`font`,fileExtensions:[`ttf`,`otf`,`woff`,`woff2`,`eot`]},{name:`bash-duo`,color:Q(Z.green),fileExtensions:[`sh`,`bash`,`zsh`,`fish`,`ksh`,`csh`],fileNames:[`.bashrc`,`.bash_profile`,`.zshrc`,`.zshenv`,`.zprofile`]},{name:`svg-2`,fileExtensions:[`svg`]},{name:`braces`,fileExtensions:[`json`,`jsonc`,`json5`,`jsonl`]},{name:`git`,color:Q(Z.vermilion),fileNames:[`.gitignore`,`.gitattributes`,`.gitmodules`,`.gitkeep`]}],uy=[{name:`file-duo`},{name:`file-text-duo`,fileExtensions:[`txt`,`md`,`mdx`,`markdown`,`rst`,`rtf`,`log`,`csv`,`tsv`,`ini`,`cfg`,`conf`,`env`,`env.local`,`env.development`,`env.production`,`editorconfig`,`LICENSE`,`AUTHORS`,`CONTRIBUTORS`,`CHANGELOG`]},{name:`image-duo`,fileExtensions:[`png`,`jpg`,`jpeg`,`gif`,`svg`,`webp`,`avif`,`ico`,`icns`,`bmp`,`tiff`,`tif`]},{name:`folder-duo`},{name:`folder-open-duo`}],dy={dark:`#adadb1`,light:`#6c6c71`},fy=[...uy,...ly,...cy],py=new Map,my=new Map,hy=new Map;for(let e of fy){py.set(e.name,e);for(let t of e.fileNames??[])my.set(t,e),my.set(t.toLocaleLowerCase(),e);for(let t of e.fileExtensions??[])hy.set(t.toLocaleLowerCase(),e)}function gy(e){return e?`fg`in e?{foreground:e.fg,background:e.bg}:{foreground:e,background:e}:{foreground:dy,background:dy}}function _y(e){return{name:e.name,svgName:e.svgName??e.name,...gy(e.color)}}function vy(e){let t=e.replaceAll(`\\`,`/`).replace(/\/+$/u,``);return t.split(`/`).at(-1)??t}function yy(e){let t=e.toLocaleLowerCase(),n=[];for(let e=t.indexOf(`.`);e>=0;e=t.indexOf(`.`,e+1)){let r=t.slice(e+1);r&&n.push(r)}return n.length===0&&n.push(t),n}function by(e){let t=py.get(e);if(!t)throw Error(`vscode-icons definition is missing: ${e}`);return _y(t)}function xy(e,t=`file`){if(t===`symlink`)return by(`file-symlink-duo`);if(t===`submodule`)return{name:`submodule`,svgName:`IconLayers3Middle`,foreground:dy,background:dy};let n=vy(e),r=my.get(n)??my.get(n.toLocaleLowerCase());if(r)return _y(r);for(let e of yy(n)){let t=hy.get(e);if(t)return _y(t)}return by(`file-duo`)}function Sy(e){return by(e?`folder-open-duo`:`folder-duo`)}var Cy=new Map(Object.entries(Object.assign({"/node_modules/@pierre/vscode-icons/svgs/IconLayers3Middle.svg":v_,"/node_modules/@pierre/vscode-icons/svgs/astro.svg":y_,"/node_modules/@pierre/vscode-icons/svgs/babel.svg":b_,"/node_modules/@pierre/vscode-icons/svgs/bash-duo.svg":x_,"/node_modules/@pierre/vscode-icons/svgs/bash.svg":S_,"/node_modules/@pierre/vscode-icons/svgs/biome.svg":C_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap-duo.svg":w_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap.svg":T_,"/node_modules/@pierre/vscode-icons/svgs/braces.svg":E_,"/node_modules/@pierre/vscode-icons/svgs/browserslist-duo.svg":D_,"/node_modules/@pierre/vscode-icons/svgs/bun-duo.svg":O_,"/node_modules/@pierre/vscode-icons/svgs/bun.svg":k_,"/node_modules/@pierre/vscode-icons/svgs/claude.svg":A_,"/node_modules/@pierre/vscode-icons/svgs/code-block-duo.svg":j_,"/node_modules/@pierre/vscode-icons/svgs/code.svg":M_,"/node_modules/@pierre/vscode-icons/svgs/css.svg":N_,"/node_modules/@pierre/vscode-icons/svgs/docker.svg":P_,"/node_modules/@pierre/vscode-icons/svgs/eslint.svg":F_,"/node_modules/@pierre/vscode-icons/svgs/extension.svg":I_,"/node_modules/@pierre/vscode-icons/svgs/file-duo.svg":L_,"/node_modules/@pierre/vscode-icons/svgs/file-plus-duo.svg":R_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink-duo.svg":z_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink.svg":B_,"/node_modules/@pierre/vscode-icons/svgs/file-table-duo.svg":V_,"/node_modules/@pierre/vscode-icons/svgs/file-table.svg":H_,"/node_modules/@pierre/vscode-icons/svgs/file-text-duo.svg":U_,"/node_modules/@pierre/vscode-icons/svgs/file-text.svg":W_,"/node_modules/@pierre/vscode-icons/svgs/file-zip-duo.svg":G_,"/node_modules/@pierre/vscode-icons/svgs/file-zip.svg":K_,"/node_modules/@pierre/vscode-icons/svgs/file.svg":q_,"/node_modules/@pierre/vscode-icons/svgs/folder-duo.svg":J_,"/node_modules/@pierre/vscode-icons/svgs/folder-open-duo.svg":Y_,"/node_modules/@pierre/vscode-icons/svgs/folder-open.svg":X_,"/node_modules/@pierre/vscode-icons/svgs/folder-plus-duo.svg":Z_,"/node_modules/@pierre/vscode-icons/svgs/folder-zip-duo.svg":Q_,"/node_modules/@pierre/vscode-icons/svgs/folder-zip.svg":$_,"/node_modules/@pierre/vscode-icons/svgs/folder.svg":ev,"/node_modules/@pierre/vscode-icons/svgs/folders.svg":tv,"/node_modules/@pierre/vscode-icons/svgs/font.svg":nv,"/node_modules/@pierre/vscode-icons/svgs/gear.svg":rv,"/node_modules/@pierre/vscode-icons/svgs/git.svg":iv,"/node_modules/@pierre/vscode-icons/svgs/graphql.svg":av,"/node_modules/@pierre/vscode-icons/svgs/html.svg":ov,"/node_modules/@pierre/vscode-icons/svgs/image-duo.svg":sv,"/node_modules/@pierre/vscode-icons/svgs/image.svg":cv,"/node_modules/@pierre/vscode-icons/svgs/javascript.svg":lv,"/node_modules/@pierre/vscode-icons/svgs/lang-c.svg":uv,"/node_modules/@pierre/vscode-icons/svgs/lang-css-duo.svg":dv,"/node_modules/@pierre/vscode-icons/svgs/lang-css.svg":fv,"/node_modules/@pierre/vscode-icons/svgs/lang-go.svg":pv,"/node_modules/@pierre/vscode-icons/svgs/lang-html-duo.svg":mv,"/node_modules/@pierre/vscode-icons/svgs/lang-html.svg":hv,"/node_modules/@pierre/vscode-icons/svgs/lang-html5-duo.svg":gv,"/node_modules/@pierre/vscode-icons/svgs/lang-html5.svg":_v,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript-duo.svg":vv,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript.svg":yv,"/node_modules/@pierre/vscode-icons/svgs/lang-markdown.svg":bv,"/node_modules/@pierre/vscode-icons/svgs/lang-python.svg":xv,"/node_modules/@pierre/vscode-icons/svgs/lang-ruby.svg":Sv,"/node_modules/@pierre/vscode-icons/svgs/lang-rust.svg":Cv,"/node_modules/@pierre/vscode-icons/svgs/lang-swift.svg":wv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript-duo.svg":Tv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript.svg":Ev,"/node_modules/@pierre/vscode-icons/svgs/markdown.svg":Dv,"/node_modules/@pierre/vscode-icons/svgs/mcp.svg":Ov,"/node_modules/@pierre/vscode-icons/svgs/nextjs.svg":kv,"/node_modules/@pierre/vscode-icons/svgs/npm-duo.svg":Av,"/node_modules/@pierre/vscode-icons/svgs/npm.svg":jv,"/node_modules/@pierre/vscode-icons/svgs/oxc-fill.svg":Mv,"/node_modules/@pierre/vscode-icons/svgs/oxc.svg":Nv,"/node_modules/@pierre/vscode-icons/svgs/postcss.svg":Pv,"/node_modules/@pierre/vscode-icons/svgs/prettier.svg":Fv,"/node_modules/@pierre/vscode-icons/svgs/react.svg":Iv,"/node_modules/@pierre/vscode-icons/svgs/rss.svg":Lv,"/node_modules/@pierre/vscode-icons/svgs/sass.svg":Rv,"/node_modules/@pierre/vscode-icons/svgs/server-duo.svg":zv,"/node_modules/@pierre/vscode-icons/svgs/server.svg":Bv,"/node_modules/@pierre/vscode-icons/svgs/stylelint.svg":Vv,"/node_modules/@pierre/vscode-icons/svgs/svelte.svg":Hv,"/node_modules/@pierre/vscode-icons/svgs/svg-2.svg":Uv,"/node_modules/@pierre/vscode-icons/svgs/svg.svg":Wv,"/node_modules/@pierre/vscode-icons/svgs/svgo.svg":Gv,"/node_modules/@pierre/vscode-icons/svgs/tailwind.svg":Kv,"/node_modules/@pierre/vscode-icons/svgs/terraform.svg":qv,"/node_modules/@pierre/vscode-icons/svgs/typescript.svg":Jv,"/node_modules/@pierre/vscode-icons/svgs/vite.svg":Yv,"/node_modules/@pierre/vscode-icons/svgs/vscode.svg":Xv,"/node_modules/@pierre/vscode-icons/svgs/vue.svg":Zv,"/node_modules/@pierre/vscode-icons/svgs/wasm-duo.svg":Qv,"/node_modules/@pierre/vscode-icons/svgs/wasm.svg":$v,"/node_modules/@pierre/vscode-icons/svgs/webpack.svg":ey,"/node_modules/@pierre/vscode-icons/svgs/yml.svg":ty,"/node_modules/@pierre/vscode-icons/svgs/zig.svg":ny})).map(([e,t])=>{let n=e.split(`/`).at(-1);if(!n)throw Error(`vscode-icons SVG path is invalid: ${e}`);return[n.replace(/\.svg$/u,``),t]}));function wy(e){return{"--file-icon-dark-bg":e.background.dark,"--file-icon-dark-fg":e.foreground.dark,"--file-icon-light-bg":e.background.light,"--file-icon-light-fg":e.foreground.light}}function Ty({icon:e}){let t=Cy.get(e.svgName);if(!t)throw Error(`vscode-icons SVG is missing: ${e.svgName}`);if(!t.trimStart().startsWith(`<svg`)||/<(?:foreignObject|script)\b|\son[a-z]+\s*=/iu.test(t))throw Error(`vscode-icons SVG is unsafe: ${e.svgName}`);return(0,P.jsx)(`span`,{className:`tree-entry-icon file-type-icon file-type-icon--${e.name}`,"data-file-icon":e.name,style:wy(e),"aria-hidden":`true`,dangerouslySetInnerHTML:{__html:t}})}function Ey({path:e=``,kind:t}){return(0,P.jsx)(Ty,{icon:xy(e,t)})}function Dy({expanded:e}){return(0,P.jsx)(Ty,{icon:Sy(e)})}var Oy=new Map,ky={...Vp,protocols:{...Vp.protocols,href:[...Vp.protocols?.href??[],`rvw-ref`]}};function Ay(e){return e?.startsWith(`rvw-ref:`)?e.slice(8):null}function jy(e){return e.startLine===null||e.endLine===null?null:e.startLine===e.endLine?`L${e.startLine}`:`L${e.startLine}–${e.endLine}`}function My(e){let t=jy(e);return t?`${e.path}:${t}`:e.path}function Ny({reference:e,children:t,className:n,onOpen:r}){return(0,P.jsxs)(`button`,{className:[`code-inline-reference`,n].filter(Boolean).join(` `),title:My(e),onPointerDown:e=>{e.button===0&&Oy.set(e.pointerId,{x:e.clientX,y:e.clientY})},onPointerUp:t=>{let n=Oy.get(t.pointerId);Oy.delete(t.pointerId),!(!n||Math.hypot(t.clientX-n.x,t.clientY-n.y)>4)&&(t.preventDefault(),t.stopPropagation(),r(e,t.metaKey||t.ctrlKey))},onPointerCancel:e=>{Oy.delete(e.pointerId)},onClick:t=>{t.preventDefault(),t.detail===0&&r(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:[(0,P.jsx)(Ey,{path:e.path,kind:`file`}),(0,P.jsx)(`span`,{children:t}),(0,P.jsx)(`small`,{children:jy(e)??`File`})]})}function Py({alt:e,title:t,sourceAttributes:n,reason:r=`blocked`}){let i=e?.trim()||t?.trim()||`説明なし`,a=r===`load-error`?`画像を読み込めません`:`画像を自動読み込みしません`;return(0,P.jsxs)(`span`,{...n,className:`markdown-image-placeholder`,role:`img`,"aria-label":`画像: ${i}(${r===`load-error`?`読み込み失敗`:`自動読み込み停止`})`,children:[a,`: `,i]})}function Fy({src:e,alt:t,title:n,sourceAttributes:r,...i}){let[a,o]=(0,N.useState)(null),s=a===e;return(0,N.useEffect)(()=>{a!==null&&a!==e&&o(null)},[a,e]),s?(0,P.jsx)(Py,{alt:t,title:n,sourceAttributes:r,reason:`load-error`}):(0,P.jsx)(`img`,{...r,...i,src:e,alt:t??``,title:n,onError:()=>o(e)})}var Iy=`modulepreload`,Ly=function(e){return`/`+e},Ry={},zy=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ly(t,n),t=s(t),t in Ry)return;Ry[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Iy,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},By=Promise.resolve(),Vy=`(prefers-color-scheme: dark)`;function Hy(){let[e,t]=(0,N.useState)(()=>window.matchMedia(Vy).matches);return(0,N.useEffect)(()=>{let e=window.matchMedia(Vy),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function Uy({source:e,themePreference:t,renderIdPrefix:n,errorClassName:r,onRendered:i,...a}){let o=(0,N.useId)().replace(/[^A-Za-z0-9]/g,``),[s,c]=(0,N.useState)(null),[l,u]=(0,N.useState)(null),d=Hy(),f=t===`dark`||t===`system`&&d;return(0,N.useEffect)(()=>u(null),[f,e]),(0,N.useEffect)(()=>{if(!s)return;let t=!1;u(null);let r=`${n}${o}`;return By=By.then(async()=>{let{default:n}=await zy(async()=>{let{default:e}=await import(`./mermaid.core-CdRuLyYI.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]));n.initialize({startOnLoad:!1,suppressErrorRendering:!0,securityLevel:`strict`,theme:f?`dark`:`base`,flowchart:{htmlLabels:!1,curve:`basis`},themeVariables:f?{primaryColor:`#1f2937`,primaryTextColor:`#f0f6fc`,lineColor:`#8c959f`}:{primaryColor:`#eef5ff`,primaryTextColor:`#24292f`,lineColor:`#57606a`}});let a=await n.render(r,e);t||(s.innerHTML=a.svg,i?.(s))}).catch(e=>{t||u(e instanceof Error?e.message:`diagramを表示できません。`)}).finally(()=>{document.getElementById(`d${r}`)?.remove(),document.getElementById(`i${r}`)?.remove()}),()=>{t=!0}},[s,f,o,i,n,e]),l?(0,P.jsx)(`div`,{className:r,children:l}):(0,P.jsx)(`div`,{...a,ref:c})}function Wy(e){return N.Children.toArray(e).map(e=>typeof e==`string`||typeof e==`number`?String(e):(0,N.isValidElement)(e)?Wy(e.props.children):``).join(``)}function Gy({source:e,themePreference:t}){let n=(0,N.useRef)(null),[r,i]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let e=n.current;if(!e)return;if(!(`IntersectionObserver`in window)){i(!0);return}let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(i(!0),t.disconnect())},{rootMargin:`160px`});return t.observe(e),()=>t.disconnect()},[]),(0,P.jsxs)(`div`,{className:`comment-mermaid-shell`,ref:n,children:[(0,P.jsx)(`div`,{className:`comment-mermaid-toolbar`,children:`Mermaid diagram`}),r?(0,P.jsx)(Uy,{className:`comment-mermaid`,role:`img`,"aria-label":`Mermaid diagram`,source:e,themePreference:t,renderIdPrefix:`rvwComment`,errorClassName:`comment-mermaid-error`}):(0,P.jsx)(`div`,{className:`comment-mermaid-placeholder`,children:`diagramを準備しています…`})]})}function Ky({body:e,pullRequestId:t,sourceOid:n,sourcePath:r,references:i,themePreference:a,onOpenCodeReference:o,onOpenRepositoryLink:s}){let c=(0,N.useRef)(null),l=(0,N.useMemo)(()=>new Map(i.map(e=>[e.id,e])),[i]),u=(0,N.useMemo)(()=>({table:({children:e,node:t,...n})=>(0,P.jsx)(`div`,{className:`comment-markdown-table-scroll`,children:(0,P.jsx)(`table`,{...n,children:e})}),a:({href:e,children:t,node:i,...a})=>{let u=Ay(e);if(u!==null){let e=l.get(u);return e&&o?(0,P.jsx)(Ny,{reference:e,className:`comment-inline-reference`,onOpen:o,children:t}):(0,P.jsx)(`span`,{children:t})}let d=__(e,r);if(!d){if(!e)return(0,P.jsx)(`span`,{children:t});let n=g_(e);return(0,P.jsx)(`a`,{...a,href:e,target:n?`_blank`:void 0,rel:n?`noopener noreferrer`:void 0,children:t})}return s?(0,P.jsx)(`a`,{...a,href:e,onPointerDown:e=>{e.button===0&&(c.current={x:e.clientX,y:e.clientY})},onPointerUp:e=>{if(e.button!==0||!c.current)return;let t=h_(c.current,{x:e.clientX,y:e.clientY});if(c.current=null,t){e.currentTarget.dataset.rvwLinkDragged=`true`;return}e.preventDefault(),s(d,n,e.metaKey||e.ctrlKey)},onPointerCancel:()=>{c.current=null},onClick:e=>{if(e.preventDefault(),e.currentTarget.dataset.rvwLinkDragged===`true`){delete e.currentTarget.dataset.rvwLinkDragged;return}e.detail===0&&s(d,n,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:t}):(0,P.jsx)(`span`,{className:`comment-markdown-unavailable-link`,title:d,children:t})},img:({src:e,alt:i,title:a,node:o,...s})=>{let c=__(e,r);return c?(0,P.jsx)(Fy,{...s,src:p_(t,n,c),alt:i,title:a,sourceAttributes:{}}):(0,P.jsx)(Py,{alt:i,title:a,sourceAttributes:{}})},pre:({children:e,node:t,...n})=>{let r=N.Children.count(e)===1?N.Children.only(e):null;return!(0,N.isValidElement)(r)||!r.props.className?.split(/\s+/u).includes(`language-mermaid`)?(0,P.jsx)(`pre`,{...n,children:e}):(0,P.jsx)(Gy,{source:Wy(r.props.children).trim(),themePreference:a})}}),[o,s,t,l,n,r,a]);return(0,P.jsx)(`div`,{className:`comment-markdown`,children:(0,P.jsx)(Cc,{rehypePlugins:[zp,[im,ky]],remarkPlugins:[s_,fm],urlTransform:e=>e.startsWith(`rvw-ref:`)?e:Dc(e),components:u,children:e})})}var qy=new Map,Jy=new Set,Yy=2400;function Xy(e,t){if(e.target.kind===`pull-request`||e.target.startLine===null)return null;let n=t&&!t.outdated?t.range:null,r=n?.startLine??e.target.startLine,i=n?.endLine??e.target.endLine??r;return r===i?`L${r}`:`L${r}–${i}`}function Zy(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return[e.target.walkthroughTitle,Xy(e,t)??`ウォークスルー全体`].join(` · `);let r=t?.path??(e.target.documentKind===`pull-request-markdown`?`Pull Request.md`:e.target.path),i=Xy(e,t)??`文書全体`;return[r,n===`deletions`?`変更前`:n===`additions`?`変更後`:null,i].filter(Boolean).join(` · `)}function Qy(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return Xy(e,t)??`ウォークスルー全体`;let r=Xy(e,t)??(e.target.documentKind===`pull-request-markdown`?`文書全体`:`ファイル全体`);return n===`deletions`?`変更前 · ${r}`:r}function $y(e){return e.target.kind===`pull-request`?`Pull Request.mdを開く`:`コメント対象を開く`}function eb(e){let t=new Date(e);return Number.isNaN(t.valueOf())?e:new Intl.DateTimeFormat(`ja-JP`,{month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(t)}function tb({comment:e,post:t,markdownSourceOid:n,themePreference:r,onOpenCodeReference:i,onOpenRepositoryLink:a}){let[o,s]=(0,N.useState)(null),c=(0,N.useRef)(null),l=e.target.kind===`document`&&e.target.documentKind===`repository-file`?e.target:null,u=t.relatedCommitOid??l?.sourceOid??n??e.createdHeadOid;(0,N.useEffect)(()=>()=>{c.current!==null&&window.clearTimeout(c.current)},[]);let d=async(e,t)=>{if(!i)return;let n=await i(u,e,t);n&&(c.current!==null&&window.clearTimeout(c.current),s(n),c.current=window.setTimeout(()=>{s(null),c.current=null},Yy))};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ky,{body:t.body,pullRequestId:e.pullRequestId,sourceOid:u,sourcePath:l?.path??null,references:t.references,themePreference:r,onOpenCodeReference:(e,t)=>{d(e,t)},onOpenRepositoryLink:a}),o&&(0,P.jsx)(`div`,{className:`code-reference-notice comment-reference-notice`,role:`status`,children:o})]})}function nb({comment:e,variant:t=`sidebar`,placement:n=null,side:r=null,markdownSourceOid:i,themePreference:a,onOpenCodeReference:o,onOpenTarget:s,onOpenRepositoryLink:c,onDeleted:l,onActiveChange:u}){let d=Ve(),f=`${t}:${e.id}`,p=(0,N.useSyncExternalStore)(Ft,()=>It(e.pullRequestId,f),()=>It(e.pullRequestId,f)),m=p.body,h=(0,N.useRef)(null),[g,_]=(0,N.useState)(()=>{if(t===`sidebar`)return!0;let n=qy.get(e.id);return n?.commentUpdatedAt===e.updatedAt?n.expanded:e.resolvedAt===null}),v=(0,N.useRef)(e.updatedAt),y=(0,N.useRef)(null),[b,x]=(0,N.useState)(null),[S,C]=(0,N.useState)(null),[w,T]=(0,N.useState)(null),[E,D]=(0,N.useState)(``),[O,ee]=(0,N.useState)(null),te=t===`sidebar`||g,ne=(0,N.useRef)(te),re=e.posts.find(e=>e.isRoot)??e.posts[0],k=e.posts.filter(e=>!e.isRoot).length,A=n?.outdated??!1;(0,N.useLayoutEffect)(()=>{!p.focused||document.activeElement===h.current||(h.current?.focus(),h.current?.setSelectionRange(m.length,m.length))},[m.length,p.focused]),(0,N.useEffect)(()=>{if(t!==`inline`||v.current===e.updatedAt)return;let n=e.resolvedAt===null;qy.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),_(n),v.current=e.updatedAt},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{if(t!==`inline`||!Jy.has(e.id))return;Jy.delete(e.id);let n=window.requestAnimationFrame(()=>{y.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{let e=te&&!ne.current;if(ne.current=te,!e||t!==`inline`)return;let n=window.requestAnimationFrame(()=>{y.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[te,t]),(0,N.useEffect)(()=>{if(!b)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-comment-menu="${b}"]`)||x(null))},t=e=>{e.key===`Escape`&&(e.preventDefault(),Array.from(y.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===b)?.querySelector(`.comment-more-trigger`)?.focus(),x(null))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[b]),(0,N.useLayoutEffect)(()=>{if(!b){C(null);return}let e=Array.from(y.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===b),t=e?.querySelector(`.comment-more-menu`);if(!e||!t)return;t.matches(`:popover-open`)||t.showPopover();let n=()=>{let n=8,r=window.innerWidth-8,i=window.innerHeight-8,a=8;for(let t=e.parentElement;t;t=t.parentElement){let e=window.getComputedStyle(t);if(![e.overflow,e.overflowX,e.overflowY].some(e=>/^(auto|clip|hidden|scroll)$/u.test(e)))continue;let o=t.getBoundingClientRect();n=Math.max(n,o.top+8),r=Math.min(r,o.right-8),i=Math.min(i,o.bottom-8),a=Math.max(a,o.left+8)}let o=e.getBoundingClientRect(),s=t.getBoundingClientRect(),c=o.top-n,l=i-o.bottom,u=s.height+3>l&&c>l,d=u?o.top-s.height-3:o.bottom+3,f=Math.max(n,i-s.height),p=Math.max(a,r-s.width),m={postId:b,top:Math.min(Math.max(d,n),f),left:Math.min(Math.max(o.right-s.width,a),p),opensUpward:u};C(e=>e?.postId===m.postId&&e.top===m.top&&e.left===m.left&&e.opensUpward===m.opensUpward?e:m)};return n(),S?.postId===b&&document.activeElement===e.querySelector(`.comment-more-trigger`)&&t.querySelector(`[role=menuitem]`)?.focus(),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0)}},[S,b,te]);let j=async()=>{await Promise.all([d.invalidateQueries({queryKey:[`comments`]}),d.invalidateQueries({queryKey:[`change-sequence`]}),d.invalidateQueries({queryKey:[`annotations`]}),d.invalidateQueries({queryKey:[`comment-placement`]})])},ie=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/posts`,yt({body:m,authorLabel:`You`,relatedCommitOid:null})),onSuccess:async()=>{let n=It(e.pullRequestId,f);Lt(e.pullRequestId,f,{revision:n.revision,body:``,focused:n.focused}),t===`inline`&&Jy.add(e.id),await j()}}),ae=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/${e.resolvedAt?`reopen`:`resolve`}`,yt({})),onSuccess:j}),M=it({mutationFn:async({postId:t,body:n})=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({body:n}),method:`PATCH`}),onSuccess:async()=>{T(null),D(``),await j()}}),oe=it({mutationFn:async t=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{x(null),await j()}}),se=it({mutationFn:async()=>await vt(`/api/comments/${e.id}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{Rt(e.pullRequestId,e.id),l?.(),await j()}}),ce=async()=>{await navigator.clipboard.writeText(`rvw Skillを使って、次のコメントを確認してください。\n\n${e.ref}`),x(null),ee(`参照をコピーしました`),window.setTimeout(()=>ee(null),1600)},le=e=>{_(!0),T(e.id),D(e.body),x(null),M.reset()},ue=()=>{let e=k>0?`\n返信${k}件もすべて削除されます。`:``;window.confirm(`このコメントスレッドを削除します。${e}\nコピー済みの参照は無効になります。\n\nこの操作は元に戻せません。`)&&se.mutate()},de=e=>{window.confirm(`この返信を削除します。
|
|
382
382
|
|
|
383
|
-
この操作は元に戻せません。`)&&oe.mutate(e)},fe=
|
|
384
|
-
`)}`),b(!0),window.setTimeout(()=>b(!1),1600)},te=e=>{f(e),m(new Set)},ne=()=>{v(``),g(!1),O.reset()};return(0,P.jsxs)(`section`,{className:`comment-sidebar`,children:[(0,P.jsxs)(`div`,{className:`segmented comment-state-filter`,children:[(0,P.jsxs)(`button`,{className:d?``:`active`,onClick:()=>te(!1),children:[`未解決 `,(0,P.jsx)(`span`,{children:x})]}),(0,P.jsxs)(`button`,{className:d?`active`:``,onClick:()=>te(!0),children:[`解決済み `,(0,P.jsx)(`span`,{children:S})]})]}),(0,P.jsxs)(`div`,{className:`comment-list-toolbar`,children:[C.length>0&&(0,P.jsxs)(`label`,{className:`comment-select-all`,children:[(0,P.jsx)(`input`,{ref:u,type:`checkbox`,checked:E,onChange:e=>m(e.target.checked?new Set(C.map(e=>e.id)):new Set)}),`すべて選択`]}),(0,P.jsx)(`button`,{className:`button--quiet comment-pr-create`,"aria-expanded":h,onClick:()=>g(e=>!e),children:`+ PR全体`})]}),h&&(0,P.jsxs)(`div`,{className:`pr-comment-composer`,children:[(0,P.jsx)(`label`,{children:`Pull Request全体へコメント`}),(0,P.jsx)(`textarea`,{autoFocus:!0,rows:3,value:_,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&!e.nativeEvent.isComposing){e.preventDefault(),ne();return}St(e,!!_.trim()&&!O.isPending,()=>O.mutate())},placeholder:`Pull Request全体へのコメント`}),(0,P.jsxs)(`div`,{className:`pr-comment-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:O.isPending,onClick:ne,children:`キャンセル`}),(0,P.jsx)(`button`,{disabled:!_.trim()||O.isPending,onClick:()=>O.mutate(),children:`コメント`})]}),(0,P.jsx)(xt,{error:O.error})]}),(0,P.jsxs)(`div`,{className:`comment-list`,children:[C.length===0&&(0,P.jsx)(`p`,{className:`empty-state`,children:`コメントはありません。`}),C.map(e=>(0,P.jsx)(Qy,{comment:e,pullRequestId:n,selectedOid:r,selected:p.has(e.id),markdownSourceOid:e.target.kind===`walkthrough`?T.get(e.target.walkthroughId):void 0,themePreference:i,onCommentActiveChange:a,onOpenCodeReference:o,onSelect:t=>{let n=new Set(p);t?n.add(e.id):n.delete(e.id),m(n)},onOpenTarget:t=>s(e,t),onOpenRepositoryLink:c,onDeleted:()=>{m(t=>{let n=new Set(t);return n.delete(e.id),n})}},e.id))]}),w.length>0&&(0,P.jsx)(`button`,{className:`button--wide comment-copy-selection`,onClick:()=>void ee(),children:y?`コピーしました`:`選択した${w.length}件の参照をコピー`})]})}var eb={kind:`pull-request-markdown`};function $(e){return e.kind===`pull-request-markdown`?`pull-request-markdown`:e.kind===`walkthrough`?`walkthrough:${e.id}`:`file:${e.path}`}function tb(e){return e.kind===`pull-request-markdown`?`Pull Request.md`:e.kind===`walkthrough`?e.title:e.path}function nb(e){let t=tb(e);return t.split(`/`).at(-1)??t}function rb(){return{documents:[eb],panes:{[$(eb)]:`left`},active:{left:eb,right:null},focusedPane:`left`,navigationRevision:{left:0,right:0}}}function ib(e,t,n=!1){return t===e?e:{...t,navigationRevision:{left:e.navigationRevision.left+Number(n||e.active.left!==t.active.left),right:e.navigationRevision.right+Number(n||e.active.right!==t.active.right)}}}function ab(e){return e===`left`?`right`:`left`}function ob(e){let t=e.documents.filter(t=>(e.panes[$(t)]??`left`)===`left`),n=e.documents.filter(t=>e.panes[$(t)]===`right`);return t.length>0||n.length===0?e:{...e,panes:Object.fromEntries(e.documents.map(e=>[$(e),`left`])),active:{left:e.active.right??n[0]??null,right:null},focusedPane:`left`}}function sb(e,t,n){let r=$(t),i=e.documents.findIndex(e=>$(e)===r),a=i<0?[...e.documents,t]:e.documents.map((e,n)=>n===i?t:e),o=e.panes[r],s={...e.panes,[r]:n},c={...e.active,[n]:t};return o&&o!==n&&e.active[o]&&$(e.active[o])===r&&(c[o]=a.find(e=>$(e)!==r&&s[$(e)]===o)??null),ob({...e,documents:a,panes:s,active:c,focusedPane:n})}function cb(e,t){let n=$(t),r=e.documents.findIndex(e=>$(e)===n);if(r<0)return e;let i=e.panes[n]??`left`,a=e.documents.filter(e=>$(e)!==n),o={...e.panes};delete o[n];let s={...e.active};if(s[i]&&$(s[i])===n){let e=a.filter(e=>o[$(e)]===i);s[i]=e[Math.min(r,e.length-1)]??e.at(-1)??null}let c=e.focusedPane===i&&!s[i]?i===`left`?`right`:`left`:e.focusedPane;return ob({...e,documents:a,panes:o,active:s,focusedPane:c})}function lb(e){return e.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:e.kind===`walkthrough`?e:{kind:`repository-file`,path:e.path}}function ub(e,t){let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)):``,r=n.split(`/`).filter(Boolean);for(let e=1;e<=r.length;e+=1){let n=r.slice(-e).join(`/`);if(t.every(t=>(t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):``).split(`/`).filter(Boolean).slice(-e).join(`/`)!==n))return n}return n}function db(e){return e.kind===`pull-request-markdown`?`PR本文`:e.kind===`walkthrough`?`Walkthrough ${e.id.slice(0,8)}`:`repository`}function fb(e,t){let n=$(e),r=nb(e),i=tb(e),a=t.filter(e=>$(e)!==n&&nb(e)===r);if(a.length===0)return{displayLabel:r,accessibleLabel:i};if(a.some(e=>tb(e)===i)){let t=db(e);return{displayLabel:`${r} · ${t}`,accessibleLabel:`${i}(${t})`,identityQualifier:t}}return{displayLabel:`${r} · ${ub(i,a.map(e=>tb(e)))||`root`}`,accessibleLabel:i}}function pb(e,t){let n=new Map;for(let e of t){let t=mt(e);t&&n.set(t,e.kind)}let r=e.map(e=>{let t=n.get(e.path);return t?{...e,changeKind:t}:e}),i=new Set(e.map(e=>e.path));for(let e of t){let t=mt(e);e.kind===`deleted`&&t&&!i.has(t)&&r.push({path:t,entryKind:`file`,changeKind:`deleted`})}return r}var mb={added:`追加`,deleted:`削除`,modified:`変更`,renamed:`名前変更`,"type-changed":`種類変更`};function hb(e,t){return e.kind===t.kind?e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:`base`}):e.kind===`directory`?-1:1}function gb(e){return{kind:`directory`,name:e.name,path:e.path,children:[...e.children.values()].map(e=>e.kind===`mutable-directory`?gb(e):e).sort(hb)}}function _b(e){let t={kind:`mutable-directory`,name:``,path:``,children:new Map};for(let n of e){let e=n.path.split(`/`).filter(Boolean);if(e.length===0)continue;let r=t;for(let[t,i]of e.entries()){let a=e.slice(0,t+1).join(`/`);if(t===e.length-1){r.children.set(i,{kind:`file`,name:i,path:n.path,entryKind:n.entryKind,...n.changeKind?{changeKind:n.changeKind}:{}});continue}let o=r.children.get(i);if(o?.kind===`mutable-directory`){r=o;continue}let s={kind:`mutable-directory`,name:i,path:a,children:new Map};r.children.set(i,s),r=s}}return[...t.children.values()].map(e=>e.kind===`mutable-directory`?gb(e):e).sort(hb)}function vb(e){let t=new Set,n=e=>{e.kind!==`file`&&(t.add(e.path),e.children.forEach(n))};return e.forEach(n),t}function yb(e,t,n){let r=[],i=(e,a)=>{r.push({node:e,depth:a}),e.kind===`directory`&&(n||t.has(e.path))&&e.children.forEach(e=>i(e,a+1))};return e.forEach(e=>i(e,0)),r}function bb(e,t,n,r,i){if(e<=0)return{start:0,end:0};let a=Math.min(e-1,Math.max(0,Math.floor(t/r))),o=Math.min(e,Math.max(a+1,Math.ceil((t+n)/r)));return{start:Math.max(0,a-i),end:Math.min(e,o+i)}}function xb(e,t){if(!e)return new Set;let n=e.split(`/`).filter(Boolean),r=new Set;for(let e=1;e<n.length;e+=1){let i=n.slice(0,e).join(`/`);t.has(i)&&r.add(i)}return r}function Sb({expanded:e}){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:e?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 3.97a.75.75 0 0 1 1.06 0L8 7.19l3.22-3.22a.75.75 0 1 1 1.06 1.06L8.53 8.78a.75.75 0 0 1-1.06 0L3.72 5.03a.75.75 0 0 1 0-1.06Z`}),(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 8.97a.75.75 0 0 1 1.06 0L8 12.19l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z`})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 7.03a.75.75 0 0 0 1.06 0L8 3.81l3.22 3.22a.75.75 0 1 0 1.06-1.06L8.53 2.22a.75.75 0 0 0-1.06 0L3.72 5.97a.75.75 0 0 0 0 1.06Z`}),(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 12.03a.75.75 0 0 0 1.06 0L8 8.81l3.22 3.22a.75.75 0 1 0 1.06-1.06L8.53 7.22a.75.75 0 0 0-1.06 0l-3.75 3.75a.75.75 0 0 0 0 1.06Z`})]})})}function Cb({kind:e}){let t=mb[e];return(0,P.jsx)(`span`,{className:`file-change-icon file-change-icon--${e}`,title:t,role:`img`,"aria-label":t,"data-change-kind":e,children:(0,P.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:[e===`added`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`}),(0,P.jsx)(`path`,{d:`M8 5v6M5 8h6`})]}),e===`deleted`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`}),(0,P.jsx)(`path`,{d:`M5 8h6`})]}),e===`modified`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{d:`m3 10.5-.5 3 3-.5L12 6.5 9.5 4z`}),(0,P.jsx)(`path`,{d:`m8.5 5 2.5 2.5`})]}),e===`renamed`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{d:`M2 5h9M9 2.75 11.25 5 9 7.25`}),(0,P.jsx)(`path`,{d:`M14 11H5m2 2.25L4.75 11 7 8.75`})]}),e===`type-changed`&&(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(`path`,{d:`m8 2 5 3-5 3-5-3zM3 8l5 3 5-3M3 11l5 3 5-3`})})]})})}var wb=31,Tb=10,Eb=400;function Db({files:e,activePath:t,filtering:n,initiallyExpanded:r,onOpenFile:i}){let a=(0,N.useMemo)(()=>_b(e),[e]),o=(0,N.useMemo)(()=>vb(a),[a]),[s,c]=(0,N.useState)(()=>r===`all`?new Set(o):xb(t,o)),l=(0,N.useMemo)(()=>yb(a,s,n),[s,n,a]),u=l.length>Eb,d=(0,N.useRef)(null),[f,p]=(0,N.useState)({offset:0,height:600});(0,N.useEffect)(()=>{let e=d.current,t=e?.closest(`.sidebar-stack-body`);if(!e||!t||!u)return;let n=null,r=()=>{n=null;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=Math.max(r.top,i.top),o=Math.min(r.bottom,i.bottom),s={offset:Math.max(0,i.top-r.top),height:Math.max(0,o-a)};p(e=>Math.abs(e.offset-s.offset)<.5&&Math.abs(e.height-s.height)<.5?e:s)},i=()=>{n===null&&(n=window.requestAnimationFrame(r))};r(),t.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,i);let a=new ResizeObserver(i);return a.observe(t),a.observe(e),()=>{n!==null&&window.cancelAnimationFrame(n),a.disconnect(),t.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,i)}},[l.length,u]);let m=u?bb(l.length,f.offset,f.height,wb,Tb):{start:0,end:l.length},h=(0,N.useMemo)(()=>xb(t,o),[t,o]);(0,N.useEffect)(()=>{h.size!==0&&c(e=>[...h].every(t=>e.has(t))?e:new Set([...e,...h]))},[h]);let g=o.size>0&&[...o].every(e=>s.has(e)),_=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},v=({node:e,depth:r},a)=>{let o={top:`${a*wb}px`,paddingLeft:`${8+r*14}px`};if(e.kind===`file`)return(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row file-tree-file${t===e.path?` active`:``}`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),i(e.path,!0))},onClick:t=>{!t.metaKey&&!t.ctrlKey&&i(e.path,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},title:e.path,"aria-label":e.path,style:o,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`}),(0,P.jsxs)(`span`,{className:`file-tree-icon-group`,children:[(0,P.jsx)(xy,{path:e.path,kind:e.entryKind}),e.changeKind&&(0,P.jsx)(Cb,{kind:e.changeKind})]}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.name})]},e.path);let c=n||s.has(e.path);return(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row file-tree-directory`,onClick:()=>_(e.path),title:e.path,"aria-label":`${e.path} フォルダ`,"aria-expanded":c,style:o,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`,children:c?`▾`:`▸`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group`,"aria-hidden":`true`,children:(0,P.jsx)(Sy,{expanded:c})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.name})]},e.path)};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`file-tree-summary`,children:[(0,P.jsxs)(`span`,{children:[e.length,`ファイル`]}),(0,P.jsx)(`button`,{type:`button`,disabled:o.size===0||n,"aria-label":g?`ファイルツリーをすべて折りたたむ`:`ファイルツリーをすべて展開`,title:n?`ファイル名の絞り込み中はすべて展開します`:g?`すべて折りたたむ`:`すべて展開`,onClick:()=>c(g?new Set:new Set(o)),children:(0,P.jsx)(Sb,{expanded:g})})]}),(0,P.jsx)(`div`,{ref:d,className:`file-tree-virtualized`,"data-file-tree-row-count":l.length,"data-virtualized":u?`true`:`false`,style:{height:`${l.length*wb}px`},children:l.slice(m.start,m.end).map((e,t)=>v(e,m.start+t))})]})}var Ob=(0,N.memo)(Db);Ob.displayName=`FileTree`;function kb({className:e=``}){return(0,P.jsx)(`svg`,{className:e,"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M2.75 1.5A1.25 1.25 0 0 0 1.5 2.75v10.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25H2.75Zm.25 2h10v7.75H8.8l-2.05 1.7v-1.7H3V3.5Zm2.25 1.25a.75.75 0 1 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 2.75a.75.75 0 1 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z`})})}function Ab({walkthroughs:e,pullRequestActive:t,activeWalkthroughId:n,onOpenPullRequest:r,onOpen:i}){let[a,o]=(0,N.useState)(!1);return(0,P.jsxs)(`nav`,{className:`review-tree-items`,"aria-label":`レビュー文書`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row review-tree-item review-tree-pull-request${t?` active`:``}`,onMouseDown:e=>{!e.metaKey&&!e.ctrlKey||(e.preventDefault(),r(!0))},onClick:e=>{!e.metaKey&&!e.ctrlKey&&r(!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},title:`Pull Request.md`,"aria-label":`Pull Request.md`,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group`,"aria-hidden":`true`,children:(0,P.jsx)(xy,{path:`Pull Request.md`,kind:`file`})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:`Pull Request.md`})]}),(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row review-tree-item review-tree-walkthroughs`,"aria-expanded":a,"aria-label":`ウォークスルー ${e.length}`,disabled:e.length===0,onClick:()=>o(e=>!e),onKeyDown:e=>{e.key!==`Escape`||!a||(e.preventDefault(),o(!1))},children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`,children:a?`▾`:`▸`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group review-tree-walkthrough-icon`,"aria-hidden":`true`,children:(0,P.jsx)(kb,{})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:`ウォークスルー`}),(0,P.jsx)(`span`,{className:`review-tree-count`,children:e.length})]}),a&&(0,P.jsx)(`div`,{className:`review-tree-walkthrough-list`,children:e.map(e=>(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row review-tree-item review-tree-walkthrough${n===e.id?` active`:``}`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),i(e,!0))},onClick:t=>{t.metaKey||t.ctrlKey||i(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},title:`${e.title}\n${e.authorLabel??`Agent`} · ${e.sourceOid.slice(0,8)}`,"aria-label":e.title,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group review-tree-walkthrough-icon`,"aria-hidden":`true`,children:(0,P.jsx)(kb,{})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.title})]},e.id))})]})}function jb(){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.22 3.22a.75.75 0 1 1-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 0 1-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z`})})}function Mb(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,P.jsx)(`circle`,{cx:`3`,cy:`8`,r:`1.35`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.35`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`13`,cy:`8`,r:`1.35`,fill:`currentColor`})]})}function Nb({paneId:e,documents:t,activeDocument:n,changeKindsByPath:r,onActivate:i,onClose:a,onCloseOthers:o,onCloseAll:s,onMove:c,onDropDocument:l,onDragStartDocument:u,onDragEndDocument:d}){let[f,p]=(0,N.useState)(!1),m=(0,N.useRef)(null),h=(0,N.useRef)(null),g=(0,N.useRef)(new Map),_=n?$(n):null,v=e===`left`?`right`:`left`,y=v===`right`?`右`:`左`,b=t=>{t.preventDefault();let n=t.dataTransfer.getData(`application/x-rvw-document-tab`);n&&l(n,e)},x=e=>{let n=t[e];if(!n)return;let r=$(n);i(n),window.requestAnimationFrame(()=>g.current.get(r)?.focus())},S=(e,n)=>{if(t.length===0)return;let r=null;e.key===`ArrowRight`&&(r=(n+1)%t.length),e.key===`ArrowLeft`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),r!==null&&(e.preventDefault(),x(r))};return(0,N.useEffect)(()=>{_&&g.current.get(_)?.scrollIntoView({block:`nearest`,inline:`nearest`})},[_,t.length]),(0,N.useLayoutEffect)(()=>{f&&m.current?.querySelector(`[role^="menuitem"]:not(:disabled)`)?.focus()},[f]),(0,N.useEffect)(()=>{if(!f)return;let e=e=>{m.current?.contains(e.target)||p(!1)},t=e=>{e.key===`Escape`&&(p(!1),h.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[f]),(0,P.jsxs)(`div`,{className:`document-tabs-shell`,"data-pane":e,onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect=`move`},onDrop:b,children:[(0,P.jsx)(`nav`,{className:`document-tabs`,role:`tablist`,"aria-label":`開いている文書`,children:t.map((e,n)=>{let o=$(e),s=tb(e),c=fb(e,t),l=e.kind===`repository-file`?r.get(e.path):void 0;return(0,P.jsxs)(`div`,{className:`document-tab${o===_?` active`:``}`,draggable:!0,onDragStart:e=>{e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`application/x-rvw-document-tab`,o),u(o)},onDragEnd:d,children:[(0,P.jsxs)(`button`,{ref:e=>{e?g.current.set(o,e):g.current.delete(o)},className:`document-tab-activate`,role:`tab`,"aria-selected":o===_,"aria-label":c.accessibleLabel,tabIndex:o===_?0:-1,onClick:()=>i(e),onKeyDown:e=>S(e,n),children:[(0,P.jsxs)(`span`,{className:`document-tab-icon-group`,"aria-hidden":`true`,children:[e.kind===`walkthrough`?(0,P.jsx)(kb,{}):(0,P.jsx)(xy,{path:s,kind:`file`}),l&&(0,P.jsx)(Cb,{kind:l})]}),(0,P.jsx)(`span`,{className:`document-tab-label`,title:s,children:c.displayLabel})]}),(0,P.jsx)(`button`,{className:`document-tab-close`,"aria-label":`${c.accessibleLabel}を閉じる`,onClick:()=>a(e),children:(0,P.jsx)(jb,{})})]},o)})}),(0,P.jsxs)(`div`,{className:`document-tabs-menu`,ref:m,children:[(0,P.jsx)(`button`,{ref:h,className:`document-tabs-menu-toggle`,"aria-label":`${e===`left`?`左`:`右`}ペインの操作`,"aria-haspopup":`menu`,"aria-expanded":f,onClick:()=>p(e=>!e),children:(0,P.jsx)(Mb,{})}),f&&(0,P.jsxs)(`div`,{className:`document-tabs-menu-popover`,role:`menu`,onKeyDown:e=>{let t=[...e.currentTarget.querySelectorAll(`[role^="menuitem"]:not(:disabled)`)];if(t.length===0)return;let n=t.indexOf(document.activeElement),r=null;e.key===`ArrowDown`&&(r=(n+1)%t.length),e.key===`ArrowUp`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),r!==null&&(e.preventDefault(),t[r]?.focus())},children:[(0,P.jsxs)(`button`,{role:`menuitem`,disabled:!n,onClick:()=>{n&&c(n,v),p(!1)},children:[`選択中のタブを`,y,`ペインへ移動`]}),(0,P.jsx)(`div`,{className:`document-tabs-menu-separator`}),(0,P.jsx)(`button`,{role:`menuitem`,disabled:!n||t.length<=1,onClick:()=>{n&&o(n),p(!1)},children:`他のタブをすべて閉じる`}),(0,P.jsx)(`button`,{role:`menuitem`,disabled:t.length===0,onClick:()=>{s(),p(!1)},children:`このペインのタブをすべて閉じる`}),(0,P.jsx)(`div`,{className:`document-tabs-menu-separator`}),t.length===0?(0,P.jsx)(`span`,{children:`開いている文書はありません。`}):t.map(e=>{let n=$(e),a=fb(e,t),o=e.kind===`repository-file`?r.get(e.path):void 0;return(0,P.jsxs)(`button`,{role:`menuitem`,"aria-label":a.accessibleLabel,className:n===_?`active`:``,onClick:()=>{i(e),p(!1)},children:[(0,P.jsxs)(`span`,{className:`document-tab-icon-group`,"aria-hidden":`true`,children:[e.kind===`walkthrough`?(0,P.jsx)(kb,{}):(0,P.jsx)(xy,{path:tb(e),kind:`file`}),o&&(0,P.jsx)(Cb,{kind:o})]}),(0,P.jsx)(`span`,{className:`document-tabs-menu-label`,children:a.accessibleLabel})]},n)})]})]})]})}var Pb=class extends N.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){console.error(`${this.props.label}の遅延読み込みに失敗しました。`,e,t.componentStack)}render(){return this.state.failed?(0,P.jsxs)(`div`,{className:`viewer-unavailable`,children:[(0,P.jsx)(`span`,{children:`LOAD`}),(0,P.jsxs)(`p`,{children:[this.props.label,`を読み込めませんでした。`]}),(0,P.jsx)(`button`,{onClick:()=>window.location.reload(),children:`ページを再読み込み`})]}):this.props.children}};function Fb(e){let t=e.lastIndexOf(`/`);return t<0?{fileName:e,directory:``}:{fileName:e.slice(t+1),directory:e.slice(0,t)}}function Ib(e){let t=new Map;for(let n of e){let e=`${n.document.kind}:${n.path}`,r=t.get(e);if(r){r.results.push(n),r.matchCount+=n.matches.length;continue}t.set(e,{key:e,path:n.path,results:[n],matchCount:n.matches.length})}return[...t.values()]}function Lb({expanded:e}){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:e?`M3.72 5.97a.75.75 0 0 1 1.06 0L8 9.19l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0L3.72 7.03a.75.75 0 0 1 0-1.06Z`:`M5.97 3.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 1 1-1.06-1.06L9.19 8 5.97 4.78a.75.75 0 0 1 0-1.06Z`})})}function Rb({result:e}){let t=[],n=0;for(let[r,i]of e.matches.entries())i.start<n||i.end<=i.start||i.end>e.text.length||(i.start>n&&t.push(e.text.slice(n,i.start)),t.push((0,P.jsx)(`mark`,{children:e.text.slice(i.start,i.end)},`${i.start}:${i.end}:${r}`)),n=i.end);return n<e.text.length&&t.push(e.text.slice(n)),(0,P.jsx)(P.Fragment,{children:t})}function zb({inputRef:e,query:t,matchCase:n,wholeWord:r,changeKindsByPath:i,response:a,isFetching:o,error:s,onQueryChange:c,onMatchCaseChange:l,onWholeWordChange:u,onOpenResult:d}){let f=(0,N.useMemo)(()=>Ib(a?.results??[]),[a?.results]),[p,m]=(0,N.useState)(()=>new Set);(0,N.useEffect)(()=>{m(new Set)},[n,t,r]);let h=f.every(e=>!p.has(e.key)),g=t.trim();return(0,P.jsxs)(`div`,{className:`search-panel`,children:[(0,P.jsxs)(`div`,{className:`search-input-shell`,children:[(0,P.jsx)(`input`,{ref:e,"aria-label":`全文検索`,value:t,onChange:e=>c(e.target.value),placeholder:`全文検索`,spellCheck:!1}),(0,P.jsxs)(`div`,{className:`search-options`,"aria-label":`検索オプション`,children:[(0,P.jsx)(`button`,{className:n?`active`:``,type:`button`,"aria-label":`大文字小文字を区別`,"aria-pressed":n,title:`大文字小文字を区別`,onClick:()=>l(!n),children:`Aa`}),(0,P.jsx)(`button`,{className:r?`active`:``,type:`button`,"aria-label":`単語単位で検索`,"aria-pressed":r,title:`単語単位で検索`,onClick:()=>u(!r),children:(0,P.jsx)(`span`,{"aria-hidden":`true`,children:`ab`})})]})]}),g&&(0,P.jsxs)(`div`,{className:`search-summary`,"aria-live":`polite`,children:[(0,P.jsx)(`span`,{children:o&&!a?`検索しています…`:`${a?.matchCount??0}件・${f.length}ファイル`}),o&&a&&(0,P.jsx)(`span`,{className:`search-refreshing`,children:`更新中…`}),(0,P.jsx)(`button`,{type:`button`,disabled:f.length===0,"aria-label":h?`検索結果をすべて折りたたむ`:`検索結果をすべて展開`,title:h?`すべて折りたたむ`:`すべて展開`,onClick:()=>m(h?new Set(f.map(e=>e.key)):new Set),children:(0,P.jsx)(Sb,{expanded:h})})]}),(0,P.jsx)(xt,{error:s}),a?.truncated&&(0,P.jsx)(`p`,{className:`truncated`,children:`上限で打ち切りました。`}),g&&!o&&!s&&a?.results.length===0&&(0,P.jsx)(`p`,{className:`search-empty`,children:`一致する結果はありません。`}),f.length>0&&(0,P.jsx)(`div`,{className:`search-results`,"aria-label":`全文検索結果`,children:f.map(e=>{let t=!p.has(e.key),{fileName:n,directory:r}=Fb(e.path),a=e.results[0]?.document.kind===`repository-file`?i.get(e.path):void 0;return(0,P.jsxs)(`section`,{className:`search-result-group`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`search-result-file`,"aria-expanded":t,"aria-label":`${e.path}、${e.matchCount}件`,onClick:()=>m(t=>{let n=new Set(t);return n.has(e.key)?n.delete(e.key):n.add(e.key),n}),children:[(0,P.jsx)(`span`,{className:`search-result-chevron`,children:(0,P.jsx)(Lb,{expanded:t})}),(0,P.jsxs)(`span`,{className:`search-result-file-icon-group`,"aria-hidden":`true`,children:[(0,P.jsx)(xy,{path:e.path,kind:`file`}),a&&(0,P.jsx)(Cb,{kind:a})]}),(0,P.jsxs)(`span`,{className:`search-result-file-label`,children:[(0,P.jsx)(`strong`,{children:n}),r&&(0,P.jsx)(`span`,{className:`search-result-directory`,title:r,children:r})]}),(0,P.jsx)(`span`,{className:`search-result-count`,children:e.matchCount})]}),t&&(0,P.jsx)(`div`,{className:`search-result-lines`,children:e.results.map(e=>(0,P.jsxs)(`button`,{type:`button`,className:`search-result-line`,"aria-label":`${e.path} ${e.line}行`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),d(e,!0))},onClick:t=>{!t.metaKey&&!t.ctrlKey&&d(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:[(0,P.jsx)(`span`,{className:`search-result-line-number`,children:e.line}),(0,P.jsx)(`code`,{children:(0,P.jsx)(Rb,{result:e})})]},`${e.path}:${e.line}`))})]},e.key)})})]})}function Bb(e){let t=e.lastIndexOf(`/`);return t<0?{name:e,directory:``}:{name:e.slice(t+1),directory:e.slice(0,t)}}function Vb(e,t,n=100){let r=t.trim();if(!r)return[...e].sort((e,t)=>e.isActive===t.isActive?e.isOpen===t.isOpen?e.path.localeCompare(t.path):e.isOpen?-1:1:e.isActive?-1:1).slice(0,n).map(e=>({candidate:e,nameMatch:null,pathMatch:null}));let i=r.toLocaleLowerCase();return pt.default.go(r,e,{keys:[`name`,`path`],limit:n,threshold:.08,scoreFn:e=>{let t=e.obj,n=e[0]?.score??0,r=e[1]?.score??0,a=t.name.toLocaleLowerCase(),o=a===i?.3:0,s=a.startsWith(i)?.16:0;return Math.max(n+.1+o+s,r)}}).map(e=>({candidate:e.obj,nameMatch:e[0]??null,pathMatch:e[1]??null}))}function Hb({value:e,indexes:t,offset:n=0}){let r=new Set((t??[]).filter(t=>t>=n&&t<n+e.length).map(e=>e-n));if(r.size===0)return e;let i=[],a=``,o=r.has(0),s=e=>{a&&=(i.push(o?(0,P.jsx)(`mark`,{children:a},e):(0,P.jsx)(N.Fragment,{children:a},e)),``)};for(let t=0;t<e.length;t+=1){let n=r.has(t);n!==o&&(s(t),o=n),a+=e[t]}return s(e.length),i}function Ub(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:[(0,P.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.75`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,P.jsx)(`path`,{d:`m10.5 10.5 3.25 3.25`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function Wb(e,t,n,r,i){let a=$(e),o=Bb(t.path);return{...t,...o,key:a,document:e,...i?{identityQualifier:i}:{},isActive:a===n,isOpen:r.has(a)}}function Gb(e,t,n){let r=[{document:{kind:`pull-request-markdown`},file:{path:`Pull Request.md`,entryKind:`file`}},...e.map(e=>({document:{kind:`repository-file`,path:e.path},file:e}))],i=new Map;for(let{document:e}of r){let t=tb(e);i.set(t,(i.get(t)??0)+1)}let a=n?$(n):null,o=new Set(t.map(e=>$(e)));return r.map(({document:e,file:t})=>{let n=tb(e),r=(i.get(n)??0)>1?db(e):void 0;return Wb(e,t,a,o,r)})}function Kb({open:e,returnFocusElement:t,files:n,openDocuments:r,activeDocument:i,activePane:a,loading:o,error:s,onClose:c,onOpen:l}){let[u,d]=(0,N.useState)(``),[f,p]=(0,N.useState)(0),m=(0,N.useRef)(null),h=(0,N.useRef)(null),g=(0,N.useRef)(null),_=(0,N.useMemo)(()=>Gb(n,r,i),[i,n,r]),v=(0,N.useMemo)(()=>Vb(_,u),[_,u]),y=v[f]??null,b=a===`left`?`左ペイン`:`右ペイン`;if((0,N.useEffect)(()=>{if(!e)return;g.current=t??(document.activeElement instanceof HTMLElement?document.activeElement:null),d(``),p(0);let n=window.requestAnimationFrame(()=>m.current?.focus());return()=>{window.cancelAnimationFrame(n),g.current?.isConnected&&g.current.focus()}},[e,t]),(0,N.useEffect)(()=>{p(0)},[u]),(0,N.useEffect)(()=>{f>=v.length&&p(Math.max(0,v.length-1))},[f,v.length]),(0,N.useEffect)(()=>{h.current?.scrollIntoView({block:`nearest`})},[f]),!e)return null;let x=e=>{e&&(l(e.candidate.document),c())},S=e=>{v.length!==0&&p(t=>(t+e+v.length)%v.length)};return(0,P.jsx)(`div`,{className:`quick-open-backdrop`,onMouseDown:c,children:(0,P.jsxs)(`section`,{className:`quick-open-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`ファイルを開く`,onMouseDown:e=>e.stopPropagation(),children:[(0,P.jsxs)(`div`,{className:`quick-open-input-shell`,children:[(0,P.jsx)(Ub,{}),(0,P.jsx)(`input`,{ref:m,role:`combobox`,"aria-label":`ファイル名で検索`,"aria-autocomplete":`list`,"aria-expanded":`true`,"aria-controls":`quick-open-results`,"aria-activedescendant":y?`quick-open-result-${f}`:void 0,value:u,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`ArrowDown`?(e.preventDefault(),S(1)):e.key===`ArrowUp`?(e.preventDefault(),S(-1)):e.key===`PageDown`?(e.preventDefault(),S(10)):e.key===`PageUp`?(e.preventDefault(),S(-10)):e.key===`Home`?(e.preventDefault(),p(0)):e.key===`End`?(e.preventDefault(),p(Math.max(0,v.length-1))):e.key===`Enter`?(e.preventDefault(),x(y)):e.key===`Escape`?(e.preventDefault(),c()):e.key===`Tab`&&e.preventDefault()},placeholder:`ファイル名を入力して移動`,autoComplete:`off`,spellCheck:!1}),u&&(0,P.jsx)(`button`,{className:`quick-open-clear`,"aria-label":`入力を消去`,onClick:()=>{d(``),m.current?.focus()},children:`×`})]}),(0,P.jsxs)(`div`,{className:`quick-open-summary`,children:[(0,P.jsx)(`span`,{children:u?`${v.length}件の一致`:`開いている文書と全ファイル`}),(0,P.jsxs)(`span`,{children:[b,`に開く`]})]}),(0,P.jsx)(`div`,{className:`quick-open-results`,id:`quick-open-results`,role:`listbox`,children:s?(0,P.jsxs)(`div`,{className:`quick-open-state`,role:`status`,children:[(0,P.jsx)(`strong`,{children:`ファイル一覧を読み込めませんでした。`}),(0,P.jsx)(`span`,{children:s.message})]}):v.length>0?v.map((e,t)=>{let{candidate:n,nameMatch:r,pathMatch:i}=e,a=t===f;return(0,P.jsxs)(`button`,{ref:a?h:void 0,id:`quick-open-result-${t}`,className:`quick-open-result${a?` selected`:``}`,role:`option`,"aria-selected":a,"aria-label":`${n.path}${n.identityQualifier?`(${n.identityQualifier})`:``}${n.isOpen?`、開いています`:``}`,tabIndex:-1,onMouseEnter:()=>p(t),onMouseDown:e=>e.preventDefault(),onClick:()=>x(e),children:[(0,P.jsxs)(`span`,{className:`quick-open-icon-group`,"aria-hidden":`true`,children:[(0,P.jsx)(xy,{path:n.path,kind:n.entryKind}),n.changeKind&&(0,P.jsx)(Cb,{kind:n.changeKind})]}),(0,P.jsxs)(`span`,{className:`quick-open-copy`,children:[(0,P.jsx)(`strong`,{children:(0,P.jsx)(Hb,{value:n.name,indexes:r?.indexes??i?.indexes,offset:r?0:n.path.length-n.name.length})}),n.directory?(0,P.jsx)(`span`,{children:(0,P.jsx)(Hb,{value:n.directory,indexes:i?.indexes,offset:0})}):n.identityQualifier?(0,P.jsx)(`span`,{children:n.identityQualifier}):null]}),n.isActive?(0,P.jsx)(`span`,{className:`quick-open-badge`,children:`選択中`}):n.isOpen?(0,P.jsx)(`span`,{className:`quick-open-open-dot`,title:`開いています`,"aria-hidden":`true`}):null]},n.key)}):o&&!u?(0,P.jsx)(`div`,{className:`quick-open-state`,role:`status`,children:`ファイル一覧を読み込んでいます…`}):(0,P.jsxs)(`div`,{className:`quick-open-state`,role:`status`,children:[(0,P.jsx)(`strong`,{children:`一致するファイルはありません。`}),(0,P.jsx)(`span`,{children:`文字を減らすか、パスの一部を入力してください。`})]})}),(0,P.jsxs)(`footer`,{className:`quick-open-footer`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`kbd`,{children:`↑`}),(0,P.jsx)(`kbd`,{children:`↓`}),` 選択`]}),(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`kbd`,{children:`Enter`}),` 開く`]}),(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`kbd`,{children:`Esc`}),` 閉じる`]})]})]})})}var qb=[`light`,`dark`,`system`];function Jb(e){return qb.some(t=>t===e)}var Yb=`rvw.theme`;function Xb(e){return Jb(e)?e:`system`}function Zb(){try{return Xb(window.localStorage.getItem(Yb))}catch(e){return console.warn(`テーマ設定を読み込めませんでした。システム設定を使用します。`,e),`system`}}function Qb(e){try{window.localStorage.setItem(Yb,e)}catch(e){console.warn(`テーマ設定を保存できませんでした。`,e)}}function $b(e){document.documentElement.dataset.theme=e}var ex=`x-rvw-viewer-id`,tx=crypto.randomUUID();function nx(){return{headers:{[ex]:tx}}}var rx=!1;function ix(){rx||(rx=!0,window.addEventListener(`pagehide`,()=>{let e=JSON.stringify({viewerId:tx}),t=new Blob([e],{type:`application/json`});navigator.sendBeacon(`/api/meta/viewers/release`,t)||fetch(`/api/meta/viewers/release`,{method:`POST`,headers:{"content-type":`application/json`},body:e,keepalive:!0}).catch(()=>void 0)}),window.addEventListener(`pageshow`,e=>{e.persisted&&(tx=crypto.randomUUID(),fetch(`/api/meta/change-sequence`,nx()).catch(()=>void 0))}))}function ax(e,t){let n=new Map(e.map(e=>[e.oid,e])),r=new Set,i=[...n.get(t)?.parentOids??[]];for(;i.length>0;){let e=i.pop();!e||r.has(e)||(r.add(e),i.push(...n.get(e)?.parentOids??[]))}return r}function ox(e,t){let n=ax(e,t);return e.find(e=>e.oid===t||n.has(e.oid))?.oid??null}function sx(e,t){return!t||!e.some(e=>e.oid===t)?null:e[0]?.oid??null}function cx(e,t,n){if(!n)return null;let r=e.findIndex(e=>e.oid===n);return r<0?null:r===0?t:e[r]?.parentOids[0]??null}function lx(e,t,n){let r=e.findIndex(e=>e.oid===t),i=e.findIndex(e=>e.oid===n);if(r<0||i<0)return null;let a=Math.min(r,i),o=Math.max(r,i);return{startOid:e[a].oid,endOid:e[o].oid}}function ux(e){return e.slice(0,8)}function dx(e,t){let n=e?.kind===`repository-file`&&e.comparisonPolicy!==`exact-source`,r=n?t.changedFiles?.find(t=>mt(t)===e.path||t.oldPath===e.path||t.newPath===e.path):void 0,i=t.documentDisplayMode!==`full`&&e?.kind===`repository-file`&&e.comparisonPolicy===`exact-source`,a=e?.kind===`repository-file`?e.sourceOid:void 0,o=a!==void 0&&a!==t.selectedOid,s=t.documentDisplayMode!==`full`&&n&&t.changedFilesLoaded&&!r,c=t.documentDisplayMode!==`full`&&e?.kind===`pull-request-markdown`||s,l=o?`参照元 ${ux(a)} ≠ 対象 ${ux(t.selectedOid)}${i?` · 全文表示`:c?` · 差分なし · 全文表示`:``}`:i?`参照元commit · 全文表示`:c?`差分なし · 全文表示`:null,u=t.documentDisplayMode===`full`&&r?.kind===`deleted`?`このファイルは選択範囲の末尾で削除されているため、全文は利用できません。変更表示で削除前の内容を確認してください。`:null,d=i||c?`full`:t.displayMode,f=e?.kind===`repository-file`&&s?{...e,sourceOid:t.selectedOid}:e?.kind===`repository-file`&&r?{...e,path:mt(r)??e.path,oldPath:r.oldPath,newPath:r.newPath}:e;return{activeChange:r,fullViewNotice:l,fullViewUnavailableMessage:u,effectiveDisplayMode:d,viewerDocument:f,walkthrough:f?.kind===`walkthrough`?t.walkthroughDetails.get(f.id):void 0,walkthroughLoading:f?.kind===`walkthrough`&&t.loadingWalkthroughIds.has(f.id)}}function fx(e){let[t,n]=(0,N.useState)(rb),r=(0,N.useRef)(t),i=(0,N.useCallback)(e=>{n(t=>ib(t,typeof e==`function`?e(t):e,typeof e!=`function`))},[]);return(0,N.useLayoutEffect)(()=>{r.current=t},[t]),{workspace:t,workspaceRef:r,setWorkspace:i,activateDocument:(0,N.useCallback)((t,n)=>{e(),i(e=>{let r=n??e.panes[$(t)]??e.focusedPane;return{...e,active:{...e.active,[r]:t},focusedPane:r}})},[e,i]),openDocument:(0,N.useCallback)((t,n)=>{e(),i(e=>{let r=$(t);return sb(e,t,n??e.panes[r]??e.focusedPane)})},[e,i]),closeDocument:(0,N.useCallback)(t=>{e(),i(e=>cb(e,t))},[e,i]),closePaneDocuments:(0,N.useCallback)((t,n=null)=>{e(),i(e=>{let r=n?$(n):null;return e.documents.filter(n=>{let i=$(n);return(e.panes[i]??`left`)===t&&i!==r}).reduce(cb,e)})},[e,i]),moveDocument:(0,N.useCallback)((t,n)=>{e(),i(e=>sb(e,t,n))},[e,i]),dropDocument:(0,N.useCallback)((e,t)=>{i(n=>{let r=n.documents.find(t=>$(t)===e);return r?sb(n,r,t):n})},[i])}}var px=`rvwReading`;function mx(e,t){return e.kind===t.kind?e.kind===`pull-request-markdown`||t.kind===`pull-request-markdown`?e.kind===t.kind:e.kind===`walkthrough`||t.kind===`walkthrough`?e.kind===`walkthrough`&&t.kind===`walkthrough`&&e.id===t.id:e.path===t.path&&e.oldPath===t.oldPath&&e.newPath===t.newPath&&e.sourceOid===t.sourceOid&&e.comparisonPolicy===t.comparisonPolicy:!1}function hx(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gx(e){return e==null||typeof e==`string`}function _x(e){return!hx(e)||typeof e.kind!=`string`?null:e.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:e.kind===`walkthrough`?typeof e.id==`string`&&typeof e.title==`string`&&typeof e.sourceOid==`string`?{kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid}:null:e.kind!==`repository-file`||typeof e.path!=`string`||!gx(e.oldPath)||!gx(e.newPath)||e.sourceOid!==void 0&&typeof e.sourceOid!=`string`||e.comparisonPolicy!==void 0&&e.comparisonPolicy!==`selected-range`&&e.comparisonPolicy!==`exact-source`?null:{kind:`repository-file`,path:e.path,...e.oldPath===void 0?{}:{oldPath:e.oldPath},...e.newPath===void 0?{}:{newPath:e.newPath},...e.sourceOid===void 0?{}:{sourceOid:e.sourceOid},...e.comparisonPolicy===void 0?{}:{comparisonPolicy:e.comparisonPolicy}}}function vx(e){if(!hx(e))return null;if(e.kind===`scroll`)return typeof e.top==`number`&&Number.isFinite(e.top)&&e.top>=0?{kind:`scroll`,top:e.top}:null;if(e.kind!==`line`)return null;let t=e.line===null||Number.isInteger(e.line)&&Number(e.line)>0,n=e.endLine===void 0||Number.isInteger(e.endLine)&&Number(e.endLine)>0&&e.line!==null&&Number(e.endLine)>=Number(e.line);return!t||!n?null:{kind:`line`,line:e.line,...e.endLine===void 0?{}:{endLine:Number(e.endLine)}}}function yx(e,t){return{...hx(e)?e:{},[px]:t}}function bx(e,t){if(!hx(e))return null;let n=e[px];if(!hx(n)||n.version!==1||n.pullRequestId!==t||n.pane!==`left`&&n.pane!==`right`)return null;let r=_x(n.document),i=vx(n.locator);return!r||!i?null:{version:1,pullRequestId:t,pane:n.pane,document:r,locator:i}}var xx=(0,N.lazy)(async()=>({default:(await Ny(()=>import(`./DocumentViewer-ADzspLC4.js`),__vite__mapDeps([18,3,19]))).DocumentViewer})),Sx=(0,N.lazy)(async()=>({default:(await Ny(()=>import(`./WalkthroughViewer-yQibj2tK.js`),__vite__mapDeps([20,3,19]))).WalkthroughViewer}));function Cx(e){return mt(e)??`(unknown)`}function wx(e){return e.slice(0,8)}var Tx=330,Ex=240,Dx=560,Ox=500,kx=50,Ax=280;function jx(e,t,n){return Math.min(n,Math.max(t,e))}function Mx(){return window.innerWidth<=850?280:Tx}function Nx(e,t){let[n,r]=(0,N.useState)(e);return(0,N.useEffect)(()=>{let n=window.setTimeout(()=>r(e),t);return()=>window.clearTimeout(n)},[t,e]),n}function Px(){return(0,P.jsx)(`svg`,{className:`sidebar-stack-icon`,"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M1.75 2.5A1.75 1.75 0 0 1 3.5.75h9a1.75 1.75 0 0 1 1.75 1.75v7a1.75 1.75 0 0 1-1.75 1.75H7.06l-3.88 3.1A.75.75 0 0 1 2 13.77v-2.7A1.75 1.75 0 0 1 1.75 9.5v-7Zm1.75-.25a.25.25 0 0 0-.25.25v7c0 .14.11.25.25.25V12.2l3.03-2.42a.75.75 0 0 1 .47-.17h5.5a.25.25 0 0 0 .25-.25V2.5a.25.25 0 0 0-.25-.25h-9Z`})})}function Fx({expanded:e}){return(0,P.jsx)(`svg`,{className:`sidebar-stack-chevron`,"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:e?`M3.72 5.97a.75.75 0 0 1 1.06 0L8 9.19l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0L3.72 7.03a.75.75 0 0 1 0-1.06Z`:`M5.97 3.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 1 1-1.06-1.06L9.19 8 5.97 4.78a.75.75 0 0 1 0-1.06Z`})})}function Ix(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:[(0,P.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.75`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,P.jsx)(`path`,{d:`m10.5 10.5 3.25 3.25`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function Lx(){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{d:`M9.75 3.25 5 8l4.75 4.75`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`})})}function Rx(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:[(0,P.jsx)(`circle`,{cx:`3`,cy:`8`,r:`1.4`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.4`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`13`,cy:`8`,r:`1.4`,fill:`currentColor`})]})}function zx({commits:e,selectedStartOid:t,selectedEndOid:n,latestHeadOid:r,specialSelected:i,specialSelectionLabel:a,onChange:o}){let[s,c]=(0,N.useState)(!1),[l,u]=(0,N.useState)(null),d=(0,N.useRef)(null),f=(0,N.useMemo)(()=>new Intl.DateTimeFormat(`ja-JP`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}),[]),p=e.findIndex(e=>e.oid===t),m=e.findIndex(e=>e.oid===n),h=p>=0&&m>=p,g=h?m-p+1:1,_=e[p],v=e[m],y=n===r,b=h&&p===0&&y?`PR全体`:y?`最新`:null,x=i?`${a} · ${wx(n)}`:g===1?`${v?.subject??`commit`} · ${wx(n)}`:`${_?.subject??`commit`} … ${v?.subject??`commit`}`;(0,N.useEffect)(()=>{if(!s)return;let e=e=>{d.current?.contains(e.target)||c(!1)},t=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[s]),(0,N.useEffect)(()=>{if(!l)return;let e=()=>{u(null),c(!1)};return window.addEventListener(`pointerup`,e,{once:!0}),window.addEventListener(`pointercancel`,e,{once:!0}),()=>{window.removeEventListener(`pointerup`,e),window.removeEventListener(`pointercancel`,e)}},[l]);let S=(t,n)=>{let r=lx(e,t,n);r&&o(r.startOid,r.endOid)},C=(e,t)=>{if(e.button===0){if(e.preventDefault(),e.shiftKey){S(n,t),c(!1);return}u(t),o(t,t)}},w=e=>{l&&S(l,e)},T=(e,t)=>{S(t?n:e,e),c(!1)},E=e[0]?.oid,D=r&&e.some(e=>e.oid===r)?r:e.at(-1)?.oid;return(0,P.jsxs)(`div`,{className:`commit-range-picker`,ref:d,children:[(0,P.jsxs)(`button`,{className:`commit-range-trigger`,"aria-label":`対象commit: ${x}${g>1?`、${g} commits`:``}${b?`、${b}`:``}`,"aria-haspopup":`dialog`,"aria-expanded":s,onClick:()=>c(e=>!e),children:[(0,P.jsx)(`span`,{className:`commit-range-summary`,children:x}),g>1&&(0,P.jsxs)(`span`,{className:`commit-range-count`,children:[g,` commits`]}),b&&(0,P.jsx)(`span`,{className:`commit-selection-badge`,children:b}),(0,P.jsx)(`span`,{className:`commit-range-chevron`,"aria-hidden":`true`,children:`▾`})]}),s&&(0,P.jsxs)(`div`,{className:`commit-range-popover`,role:`dialog`,"aria-label":`対象commitを選択`,children:[(0,P.jsxs)(`div`,{className:`commit-range-shortcuts`,children:[(0,P.jsx)(`button`,{disabled:!E||!D,onClick:()=>{E&&D&&o(E,D),c(!1)},children:`PR全体`}),(0,P.jsx)(`button`,{disabled:!D,onClick:()=>{D&&o(D,D),c(!1)},children:`最新だけ`})]}),(0,P.jsx)(`p`,{className:`commit-range-hint`,children:`クリックで1件・ドラッグで連続範囲を選択`}),(0,P.jsxs)(`div`,{className:`commit-range-list`,role:`listbox`,"aria-multiselectable":`true`,children:[i&&(0,P.jsxs)(`div`,{className:`commit-range-special`,"aria-current":`true`,children:[a,` · `,wx(n)]}),[...e].reverse().map((t,n)=>{let i=e.length-n-1,a=h&&i>=p&&i<=m,o=a?p===m?`single`:i===m?`end`:i===p?`start`:`middle`:null,s=t.oid===r;return(0,P.jsxs)(`button`,{className:`commit-range-option${a?` selected`:``}${o?` commit-range-option--${o}`:``}`,role:`option`,"aria-selected":a,"aria-label":`${t.subject}、${wx(t.oid)}${s?`、最新`:``}`,onPointerDown:e=>C(e,t.oid),onPointerEnter:()=>w(t.oid),onClick:e=>{e.detail===0&&T(t.oid,e.shiftKey)},children:[(0,P.jsx)(`span`,{className:`commit-range-option-indicator`,"aria-hidden":`true`}),(0,P.jsxs)(`span`,{className:`commit-range-option-copy`,children:[(0,P.jsx)(`strong`,{children:t.subject}),(0,P.jsxs)(`span`,{className:`commit-range-option-meta`,children:[(0,P.jsx)(`code`,{children:wx(t.oid)}),(0,P.jsx)(`time`,{dateTime:t.authoredAt,children:f.format(new Date(t.authoredAt))})]})]}),s&&(0,P.jsx)(`span`,{className:`commit-latest-badge`,children:`最新`})]},t.oid)})]})]})]})}function Bx({selectedOid:e,selectedStartOid:t,commits:n,latestHeadOid:r,specialSelected:i,specialSelectionLabel:a,documentDisplayMode:o,diffStyle:s,comparisonAvailable:c,diffViewAvailable:l,onCommitRangeChange:u,onDisplayModeChange:d,onDiffStyleChange:f}){return(0,P.jsxs)(`section`,{className:`review-scope-bar`,"aria-label":`レビュー範囲`,children:[(0,P.jsxs)(`div`,{className:`review-scope-control review-scope-commits`,children:[(0,P.jsx)(`span`,{children:`対象commit`}),(0,P.jsx)(zx,{commits:n,selectedStartOid:t,selectedEndOid:e,latestHeadOid:r,specialSelected:i,specialSelectionLabel:a,onChange:u})]}),(0,P.jsxs)(`div`,{className:`review-scope-control review-scope-display`,children:[(0,P.jsx)(`span`,{children:`表示`}),(0,P.jsxs)(`div`,{className:`segmented`,"aria-label":`文書表示`,children:[(0,P.jsx)(`button`,{className:o===`full`?`active`:``,"aria-pressed":o===`full`,onClick:()=>d(`full`),children:`全文`}),(0,P.jsx)(`button`,{className:o===`diff`?`active`:``,"aria-pressed":o===`diff`,disabled:!c,onClick:()=>d(`diff`),children:`変更`})]})]}),(0,P.jsxs)(`div`,{className:`review-scope-control review-scope-style`,children:[(0,P.jsx)(`span`,{children:`Diff表示`}),(0,P.jsxs)(`div`,{className:`segmented diff-style-modes`,"aria-label":`Diff表示`,children:[(0,P.jsx)(`button`,{className:s===`unified`?`active`:``,"aria-pressed":s===`unified`,disabled:!l,onClick:()=>{d(`diff`),f(`unified`)},children:`stacked`}),(0,P.jsx)(`button`,{className:s===`split`?`active`:``,"aria-pressed":s===`split`,disabled:!l,onClick:()=>{d(`diff`),f(`split`)},children:`split`})]})]})]})}var Vx=[{preference:`light`,label:`ライトモード`},{preference:`dark`,label:`ダークモード`},{preference:`system`,label:`システム`}],Hx=3e3;function Ux(e){return e instanceof ht&&e.code===`PULL_REQUEST_NOT_FOUND`?"Pull Requestが見つかりません。`rvw open`から起動し直してください。":e instanceof Error?e.message:`PR commitがありません。`}function Wx({initialThemePreference:e}){let t=Ve(),n=new URL(window.location.href).searchParams.get(`pullRequestId`),r=!!(n&&/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n)),i=r?n:null,[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(null),[l,u]=(0,N.useState)(`full`),[d,f]=(0,N.useState)(`unified`),[p,m]=(0,N.useState)(!0),[h,g]=(0,N.useState)(!1),[_,v]=(0,N.useState)(`files`),[y,b]=(0,N.useState)(`changed`),[x,S]=(0,N.useState)(null),C=(0,N.useRef)(x),w=(0,N.useRef)(null);C.current=x;let{workspace:T,workspaceRef:E,setWorkspace:D,activateDocument:O,openDocument:ee,closeDocument:te,closePaneDocuments:ne,moveDocument:re,dropDocument:k}=fx((0,N.useCallback)(()=>{C.current=null,w.current=null,S(null)},[])),[A,j]=(0,N.useState)(Mx),[ie,ae]=(0,N.useState)(kx),[M,oe]=(0,N.useState)(null),[se,ce]=(0,N.useState)(null),[le,ue]=(0,N.useState)(``),[de,fe]=(0,N.useState)(!1),[pe,me]=(0,N.useState)(null),[he,ge]=(0,N.useState)(``),[_e,ve]=(0,N.useState)(!1),[ye,be]=(0,N.useState)(!1),[xe,Se]=(0,N.useState)(!1),[Ce,we]=(0,N.useState)(0),[Te,Ee]=(0,N.useState)(null),[De,Oe]=(0,N.useState)(e),[ke,Ae]=(0,N.useState)(null),je=(0,N.useCallback)((e,t)=>{Ae(n=>t?e:n===e?null:n)},[]),Me=(0,N.useRef)(!1),Ne=(0,N.useRef)(!1),Pe=(0,N.useRef)(null),Fe=(0,N.useRef)(null),Ie=(0,N.useRef)(null),Le=(0,N.useRef)(null),Re=(0,N.useRef)(null),ze=(0,N.useRef)(0),Be=(0,N.useRef)({left:0,right:0}),He=Nx(he.trim(),250),Ue=T.documents,We=T.focusedPane,Ge=T.active[We],Ke=(0,N.useRef)({left:null,right:null}),qe=(0,N.useRef)(new Map),Je=(0,N.useRef)(!1),Ye=(0,N.useRef)(null),Xe=T.active.left?$(T.active.left):null,Ze=T.active.right?$(T.active.right):null;(0,N.useLayoutEffect)(()=>{let e=Ke.current.left;!e||!Xe||(e.scrollTop=qe.current.get(Xe)??0)},[Xe,Ce]),(0,N.useLayoutEffect)(()=>{let e=Ke.current.right;!e||!Ze||(e.scrollTop=qe.current.get(Ze)??0)},[Ce,Ze]);let Qe=(0,N.useCallback)(()=>{if(!i)return null;let e=E.current,t=e.focusedPane,n=e.active[t];if(!n)return null;let r=$(n),a=C.current,o=Ke.current[t]?.scrollTop??qe.current.get(r)??0,s=w.current,c=a?.documentKey===r&&(!s||s.requestId!==a.requestId||s.documentKey!==r||s.pane!==t||Math.abs(s.top-o)<=1),l=a?.documentKey===r&&c?{kind:`line`,line:a.line,...a.endLine===void 0?{}:{endLine:a.endLine}}:{kind:`scroll`,top:o};return{version:1,pullRequestId:i,pane:t,document:n,locator:l}},[i]),$e=(0,N.useCallback)((e,t)=>{let n=C.current,r=E.current.active[e];!n||n.requestId!==t||!r||$(r)!==n.documentKey||(w.current={requestId:t,documentKey:n.documentKey,pane:e,top:Ke.current[e]?.scrollTop??qe.current.get(n.documentKey)??0})},[E]),et=(0,N.useCallback)(()=>{Ye.current!==null&&(window.clearTimeout(Ye.current),Ye.current=null)},[]),nt=(0,N.useCallback)(()=>{if(!Je.current)return;let e=Qe();e&&window.history.replaceState(yx(window.history.state,e),``)},[Qe]),at=(0,N.useCallback)(()=>{Je.current&&(et(),Ye.current=window.setTimeout(()=>{Ye.current=null,nt()},150))},[et,nt]),ot=(0,N.useCallback)((e,t,n,r)=>{if(!i||!Je.current)return;et();let a=E.current,o=a.active[a.focusedPane];nt();let s={version:1,pullRequestId:i,pane:t,document:e,locator:n};if(n.kind===`scroll`&&o&&a.focusedPane===t&&mx(o,e)){window.history.replaceState(yx(window.history.state,s),``);return}let c=new URL(window.location.href);c.hash=r??``,window.history.pushState(yx(window.history.state,s),``,c)},[et,i,nt]),st=(0,N.useCallback)((e,t,n)=>{ze.current+=1;let r={documentKey:e,line:t.line,...t.endLine===void 0?{}:{endLine:t.endLine},requestId:ze.current,resetHorizontal:n};w.current=null,C.current=r,S(r)},[]),ct=(0,N.useCallback)((e,t,n,r=!0)=>{let i=E.current,a=$(e),o=t??i.panes[a]??i.focusedPane,s=n??{kind:`scroll`,top:qe.current.get(a)??0};ot(e,o,s),ee(e,o),s.kind===`line`&&st(a,s,r)},[ee,ot,st]),lt=(0,N.useCallback)((e,t,n,r)=>{let i=$(e),a={kind:`line`,line:n};ot(e,t,a,r),st(i,a,!0)},[ot,st]),ut=(0,N.useCallback)((e,t)=>ct(e,t),[ct]),dt=(0,N.useCallback)((e,t)=>{let n=E.current,r=t??n.panes[$(e)]??n.focusedPane;ot(e,r,{kind:`scroll`,top:qe.current.get($(e))??0}),O(e,r)},[O,ot]);(0,N.useEffect)(()=>{if(!Te)return;let e=window.setTimeout(()=>Ee(null),Hx);return()=>window.clearTimeout(e)},[Te]);let ft=(0,N.useCallback)((e,t)=>{k(e,t),ce(null)},[k]),mt=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.max(Ex,Math.min(Dx,n.width-Ox));j(jx(e-n.left,Ex,r))},gt=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.min(Ax,Math.max(160,(n.width-48)/2))/n.width*100,i=(e-n.left)/n.width*100;ae(jx(i,r,100-r))},_t=e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),oe(null)},St=rt({queryKey:[`theme-preference`],queryFn:async()=>await vt(`/api/preferences/theme`)});(0,N.useEffect)(()=>{let e=St.data?.themePreference;e&&(Oe(e),$b(e),Qb(e))},[St.data?.themePreference]);let Ct=it({mutationFn:async e=>await vt(`/api/preferences/theme`,yt({themePreference:e})),onSuccess:e=>{t.setQueryData([`theme-preference`],e)}}),wt=e=>{Oe(e),$b(e),Qb(e),Ct.mutate(e)},Tt=rt({queryKey:[`pull-request`,i],queryFn:async()=>await vt(`/api/pull-requests/${i}`),enabled:!!i}),Et=Tt.data?.commits??[],Dt=Tt.data?.comparisonBaseOid??null,Ot=Tt.data?.headOid??null,kt=Tt.data?.pullRequest.latestTitle;(0,N.useEffect)(()=>{document.title=kt?`rvw: ${kt}`:`rvw`},[kt]);let At=Et.findIndex(e=>e.oid===a),jt=Et[At],Mt=Et.findIndex(e=>e.oid===s),Nt=a?ox(Et,a):null,Pt=Mt>=0&&Mt<=At,Ft=cx(Et,Dt,s);(0,N.useEffect)(()=>{let e=Pe.current;if(Ot&&(!a||a===e)){let e=!!(Ne.current&&a&&s===a),t=Et.some(e=>e.oid===s);o(Ot),c(Ne.current?e?Ot:t?s:ox(Et,Ot):sx(Et,Ot))}Pe.current=Ot},[Et,Ot,s,a]),(0,N.useEffect)(()=>{Pt||c(Nt)},[Nt,Pt]);let It=l===`full`?`full`:Mt===0?`pull-request`:`range`,Lt=(0,N.useCallback)(e=>{et();let t=E.current,n=$(e.document),r=t.panes[n]??e.pane;if(e.locator.kind===`scroll`&&qe.current.set(n,e.locator.top),ee(e.document,r),e.locator.kind===`line`){st(n,e.locator,!0);return}let i=e.locator.top;window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{let e=E.current.panes[n]??r,t=Ke.current[e];t&&(t.scrollTop=i)})})},[et,ee,st]);(0,N.useEffect)(()=>{let e=window.history.scrollRestoration;return window.history.scrollRestoration=`manual`,()=>{et(),window.history.scrollRestoration=e}},[et]),(0,N.useEffect)(()=>{if(!i)return;let e=e=>{let t=bx(e.state,i);t&&Lt(t)};return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[i,Lt]),(0,N.useEffect)(()=>{if(!i||!Tt.isSuccess||!a||Je.current)return;Je.current=!0;let e=Qe();if(!e)return;let t=new URL(window.location.href);t.hash=``,window.history.replaceState(yx(window.history.state,e),``,t)},[Qe,i,Tt.isSuccess,a]),(0,N.useEffect)(()=>{let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[]),(0,N.useEffect)(()=>{let e=e=>{!(e.metaKey||e.ctrlKey)||e.shiftKey||e.altKey||e.key.toLowerCase()!==`p`||(e.preventDefault(),Se(!1),me(null),fe(!0))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,N.useEffect)(()=>{let e=e=>{!(e.metaKey||e.ctrlKey)||!e.shiftKey||e.key.toLowerCase()!==`f`||(e.preventDefault(),m(!0),v(`search`),window.requestAnimationFrame(()=>{Re.current?.focus(),Re.current?.select()}))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,N.useLayoutEffect)(()=>{xe&&Ie.current?.querySelector(`[role^="menuitem"]:not(:disabled)`)?.focus()},[xe]),(0,N.useEffect)(()=>{if(!xe)return;let e=e=>{Ie.current?.contains(e.target)||Se(!1)},t=e=>{e.key===`Escape`&&(Se(!1),Le.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[xe]);let Rt=e=>{let t=[...e.currentTarget.querySelectorAll(`[role^="menuitem"]:not(:disabled)`)];if(t.length===0)return;let n=t.indexOf(document.activeElement),r=null;e.key===`ArrowDown`&&(r=(n+1)%t.length),e.key===`ArrowUp`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),r!==null&&(e.preventDefault(),t[r]?.focus())},zt=(e,t)=>{let n=lx(Et,e,t);n&&(Ne.current=!0,c(n.startOid),o(n.endOid),n.endOid!==a&&(S(null),D(e=>({...e,documents:e.documents.map(lb),active:{left:e.active.left?lb(e.active.left):null,right:e.active.right?lb(e.active.right):null}}))))},Bt=rt({queryKey:[`tree`,i,a],queryFn:async()=>await vt(`/api/pull-requests/${i}/tree?oid=${encodeURIComponent(a)}`),enabled:!!(i&&a)}),Vt=rt({queryKey:[`changed-files`,i,Ft,a],queryFn:async()=>await vt(`/api/pull-requests/${i}/changed-files?oldOid=${encodeURIComponent(Ft)}&newOid=${encodeURIComponent(a)}`),enabled:!!(i&&Ft&&a&&At>=0&&Ft!==a)}),Ut=rt({queryKey:[`change-sequence`],queryFn:async()=>await vt(`/api/meta/change-sequence`,nx()),refetchInterval:1e3,refetchIntervalInBackground:!0,networkMode:`always`});(0,N.useEffect)(()=>{let e=Ut.data?.changeSequence;if(e===void 0)return;let n=Fe.current;Fe.current=e,n!==null&&n!==e&&(t.invalidateQueries({queryKey:[`pull-request`]}),t.invalidateQueries({queryKey:[`document`]}),t.invalidateQueries({queryKey:[`annotations`]}),t.invalidateQueries({queryKey:[`comment-placement`]}),t.invalidateQueries({queryKey:[`search`]}),t.invalidateQueries({queryKey:[`walkthroughs`]}),t.invalidateQueries({queryKey:[`walkthrough`]}))},[Ut.data?.changeSequence,t]);let Wt=rt({queryKey:[`comments`,i,Ut.data?.changeSequence],queryFn:async()=>await vt(`/api/pull-requests/${i}/comments?resolved=all`),enabled:!!i,placeholderData:e=>e?.comments.every(e=>e.pullRequestId===i)?e:void 0}),Gt=Wt.data?.comments??[],Kt=Gt.filter(e=>!e.resolvedAt).length,qt=rt({queryKey:[`walkthroughs`,i],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs`),enabled:!!i}),Jt=qt.data?.walkthroughs??[];(0,N.useEffect)(()=>{if(!qt.isSuccess)return;let e=new Map(Jt.map(e=>[e.id,e]));D(t=>{let n=t;for(let r of t.documents)r.kind===`walkthrough`&&!e.has(r.id)&&(n=cb(n,r));let r=t=>{if(t?.kind!==`walkthrough`)return t;let n=e.get(t.id);return n?{kind:`walkthrough`,id:n.id,title:n.title,sourceOid:n.sourceOid}:null};return{...n,documents:n.documents.map(e=>r(e)),active:{left:r(n.active.left),right:r(n.active.right)}}})},[qt.data?.walkthroughs,qt.isSuccess]);let Yt=(0,N.useMemo)(()=>Ue.filter(e=>e.kind===`walkthrough`).map(e=>e.id),[Ue]),Xt=tt({queries:Yt.map(e=>({queryKey:[`walkthrough`,i,e],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs/${e}`),enabled:!!i}))}),Zt=new Map,Qt=new Set;Yt.forEach((e,t)=>{let n=Xt[t],r=n?.data?.walkthrough;r&&Zt.set(e,r),n?.isPending&&Qt.add(e)});let $t=(0,N.useMemo)(()=>{let e=Vt.data?.files??[];return pb((Bt.data?.entries??[]).map(e=>({path:e.path,entryKind:e.kind})),e)},[Vt.data?.files,Bt.data?.entries]),en=(0,N.useMemo)(()=>y===`changed`?(Vt.data?.files??[]).map(e=>({path:Cx(e),entryKind:`file`,changeKind:e.kind})):$t,[$t,Vt.data?.files,y]),tn=(0,N.useMemo)(()=>{let e=new Map;for(let t of Vt.data?.files??[])e.set(Cx(t),t.kind),t.oldPath&&e.set(t.oldPath,t.kind),t.newPath&&e.set(t.newPath,t.kind);return e},[Vt.data?.files]),nn=(0,N.useMemo)(()=>{if(!le.trim())return en;let e=new Set(pt.default.go(le,en.map(e=>e.path),{limit:100}).map(e=>e.target));return en.filter(t=>e.has(t.path))},[le,en]),rn=rt({queryKey:[`search`,i,a,He,_e,ye],queryFn:async({signal:e})=>{let t=new URLSearchParams({oid:a,q:He,matchCase:String(_e),wholeWord:String(ye)});return await vt(`/api/pull-requests/${i}/search?${t.toString()}`,{signal:e})},enabled:!!(i&&a&&He)}),F=it({mutationFn:async e=>await vt(`/api/pull-requests/${i}/refresh`,yt({})),onSuccess:async(e,n)=>{let r=a===Ot,i=s===a,l=s;if(await Promise.all([t.invalidateQueries({queryKey:[`pull-request`]}),t.invalidateQueries({queryKey:[`document`]}),t.invalidateQueries({queryKey:[`annotations`]}),t.invalidateQueries({queryKey:[`comment-placement`]}),t.invalidateQueries({queryKey:[`search`]})]),r||!a){o(e.headOid);let t=e.commits.some(e=>e.oid===l);c(Ne.current?i?e.headOid:t?l:ox(e.commits,e.headOid):sx(e.commits,e.headOid))}n.announce&&Ee(`GitHubと同期しました · ${new Intl.DateTimeFormat(`ja-JP`,{hour:`2-digit`,minute:`2-digit`}).format(new Date)}`)}});(0,N.useEffect)(()=>{!Tt.data||Me.current||(Me.current=!0,F.mutate({announce:!1}))},[Tt.data]);let an=it({mutationFn:async()=>{let e=await fetch(`/api/pull-requests/${i}/reset`,yt({yes:!1})),t=await e.json();if(e.status!==409||!t.counts)throw new ht(t.error?.message??`HTTP ${e.status}`,t.error?.code??`HTTP_ERROR`,t.error?.details,t.error?.suggestions??[]);let n=t.counts;return window.confirm(`ローカルレビュー状態を削除して再構築します。\n\nコメント ${n.comments??0}\n返信 ${n.posts??0}\nコメント内コード参照 ${n.commentReferences??0}\n対象 ${n.targets??0}\nウォークスルー ${n.walkthroughs??0}\nウォークスルーコード参照 ${n.walkthroughReferences??0}\nGit ref ${n.gitRefs??0}\n\nこの操作は元に戻せません。`)?await vt(`/api/pull-requests/${i}/reset`,yt({yes:!0})):null},onSuccess:async e=>{e&&(Ht(e.pullRequest.id),qe.current.clear(),we(e=>e+1),D(rb()),S(null),Ne.current=!1,o(e.pullRequest.latestHeadOid),c(sx(e.commits,e.pullRequest.latestHeadOid)),u(`full`),await t.invalidateQueries())}}),on=(0,N.useCallback)((e,t=!1)=>{y===`changed`&&u(`diff`),ut({kind:`repository-file`,path:e},t?`right`:void 0)},[ut,y]),I=(0,N.useCallback)((e,t,n)=>{ut({kind:`repository-file`,path:e,sourceOid:t,comparisonPolicy:`exact-source`},n)},[ut]),sn=(0,N.useCallback)((e,t,n)=>I(e,t,n?`right`:`left`),[I]),cn=(0,N.useCallback)((e,t,n)=>I(e,t,n?`left`:`right`),[I]),ln=(0,N.useCallback)((e,t,n)=>I(e,t,n?`right`:E.current.focusedPane),[I]),un=(e,t=!1)=>{let n=e.document.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:{kind:`repository-file`,path:e.path},r=E.current,i=$(n),o=r.documents.find(e=>$(e)===i?e.kind!==`repository-file`||e.sourceOid===void 0||e.sourceOid===a:!1)??n,s=t?`right`:r.panes[i]??r.focusedPane,c=r.active[s],l=!c||$(c)!==i;ct(o,s,{kind:`line`,line:e.line},l)},dn=(e,t)=>{let n=e.target,r=(e,t,n)=>{ct(e,void 0,{kind:`line`,line:t,...n===null?{}:{endLine:n}})};if(g(!0),Ae(e.id),n.kind===`pull-request`){r({kind:`pull-request-markdown`},null,null);return}let i=t?t.range?.startLine??null:n.startLine,a=t?t.range?.endLine??null:n.endLine;if(n.kind===`walkthrough`){let e=Jt.find(e=>e.id===n.walkthroughId);e&&r({kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid},i,a);return}if(n.documentKind===`pull-request-markdown`){r({kind:`pull-request-markdown`},i,a);return}r({kind:`repository-file`,path:n.path,sourceOid:n.sourceOid,comparisonPolicy:`exact-source`},i,a)},fn=(0,N.useCallback)((e,t=!1)=>{ut({kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid},t?`right`:void 0)},[ut]),pn=(0,N.useCallback)(async(e,n,r,i,a)=>{Be.current[i]+=1;let o=Be.current[i],s=E.current.navigationRevision[i],c=()=>o===Be.current[i]&&E.current.navigationRevision[i]===s,l={kind:`repository-file`,pullRequestId:e,sourceOid:n,path:r.path};try{let e=await t.fetchQuery({queryKey:[`document`,l],queryFn:async()=>(await vt(bt(l))).document});if(!c())return null;if(e.availability!==`available`)return e.availability===`missing`?`リンク切れ · ${r.path}`:`参照先を表示できません · ${r.path}`}catch(e){return c()?e instanceof ht&&[`COMMIT_NOT_FOUND`,`DOCUMENT_NOT_FOUND`,`NOT_FOUND`].includes(e.code)?`リンク切れ · ${r.path}`:`参照先を開けません · ${r.path}`:null}let u={kind:`repository-file`,path:r.path,sourceOid:n,comparisonPolicy:a},d=$(u),f=E.current.active[i],p=!f||$(f)!==d;return ct(u,i,{kind:`line`,line:r.startLine,...r.endLine===null?{}:{endLine:r.endLine}},p),null},[ct,t]),mn=(0,N.useCallback)((e,t,n)=>pn(e.pullRequestId,e.sourceOid,t,n,`selected-range`),[pn]),hn=(0,N.useCallback)((e,t,n)=>mn(e,t,n?`right`:`left`),[mn]),gn=(0,N.useCallback)((e,t,n)=>mn(e,t,n?`left`:`right`),[mn]),_n=(0,N.useCallback)((e,t,n)=>i?pn(i,e,t,n,`exact-source`):Promise.resolve(`参照先を開けません · ${t.path}`),[pn,i]),vn=(0,N.useCallback)((e,t,n)=>_n(e,t,n?`right`:`left`),[_n]),yn=(0,N.useCallback)((e,t,n)=>_n(e,t,n?`left`:`right`),[_n]),bn=(0,N.useCallback)((e,t,n)=>_n(e,t,n?`right`:E.current.focusedPane),[_n]);if(!n)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:"Pull Request IDがURLにありません。`rvw open`から起動してください。"})]});if(!r||!i)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:"Pull Request IDの形式が正しくありません。`rvw open`から起動し直してください。"})]});if(Tt.isLoading)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:`レビュー状態を読み込んでいます…`})]});if(Tt.error||!Tt.data||!a)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:Ux(Tt.error)})]});let xn=Tt.data.pullRequest,Sn={documentDisplayMode:l,displayMode:It,selectedOid:a,changedFiles:Vt.data?.files,changedFilesLoaded:Vt.isSuccess,walkthroughDetails:Zt,loadingWalkthroughIds:Qt},Cn={left:dx(T.active.left,Sn),right:dx(T.active.right,Sn)},wn=jt===void 0,Tn=!!(!wn&&Ft&&Ft!==a&&Object.values(T.active).some(e=>e!==null&&e.kind!==`walkthrough`)),En=!!(Tn&&Object.values(Cn).some(e=>e.viewerDocument?.kind===`repository-file`&&e.activeChange)),Dn=F.error??an.error??St.error??Ct.error??Ut.error,On=Ue.some(e=>T.panes[$(e)]===`right`)||se!==null,kn=e=>{let t=Ue.filter(t=>(T.panes[$(t)]??`left`)===e),n=T.active[e],r=Cn[e],i=r.viewerDocument;return(0,P.jsxs)(`section`,{ref:t=>{Ke.current[e]=t},onScroll:t=>{i&&(qe.current.set($(i),t.currentTarget.scrollTop),E.current.focusedPane===e&&at())},className:`document-pane${We===e?` active`:``}${t.length===0?` empty`:``}`,"data-pane":e,"aria-label":`${e===`left`?`左`:`右`}のコードペイン`,onPointerDown:()=>D(t=>t.focusedPane===e?t:{...t,focusedPane:e}),children:[(0,P.jsx)(Nb,{paneId:e,documents:t,activeDocument:n,changeKindsByPath:tn,onActivate:t=>dt(t,e),onClose:te,onCloseOthers:t=>ne(e,t),onCloseAll:()=>ne(e),onMove:re,onDropDocument:ft,onDragStartDocument:ce,onDragEndDocument:()=>ce(null)}),i?.kind===`walkthrough`&&r.walkthrough?(0,P.jsx)(Pb,{label:`ウォークスルー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`ウォークスルーを準備しています…`}),children:(0,P.jsx)(Sx,{walkthrough:r.walkthrough,comments:Gt,activeCommentId:ke,navigationTarget:x?.documentKey===$(i)?x:null,onNavigationApplied:t=>$e(e,t),themePreference:De,onCommentActiveChange:je,onOpenReference:e===`left`?hn:gn,onOpenCommentCodeReference:e===`left`?vn:yn,onOpenRepositoryLink:e===`left`?sn:cn,onDeleted:()=>te(i)})})}):i?.kind===`walkthrough`?(0,P.jsxs)(`div`,{className:`empty-document-viewer`,children:[(0,P.jsx)(`strong`,{children:r.walkthroughLoading?`ウォークスルーを読み込んでいます…`:`ウォークスルーを読み込めませんでした。`}),!r.walkthroughLoading&&(0,P.jsx)(`span`,{children:`サイドバーからもう一度開いてください。`})]}):i?(0,P.jsx)(Pb,{label:`文書ビューアー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`文書を準備しています…`}),children:(0,P.jsx)(xx,{pullRequestId:xn.id,selectedOid:a,oldOid:Ft,activeDocument:i,displayMode:r.effectiveDisplayMode,diffStyle:d,comments:Gt,activeCommentId:ke,fullViewNotice:r.fullViewNotice,fullViewUnavailableMessage:r.fullViewUnavailableMessage,themePreference:De,onCommentActiveChange:je,navigationTarget:x?.documentKey===$(i)?x:null,onNavigationApplied:t=>$e(e,t),onOpenMarkdownFragment:(t,n)=>lt(i,e,t,n),onOpenCodeReference:e===`left`?vn:yn,onOpenRepositoryLink:(t,n,r)=>I(t,n,r?ab(e):e)},`${Ce}:${e}:${a}:${Ft}:${r.effectiveDisplayMode}:${$(i)}:${i.kind===`repository-file`?`${i.sourceOid??``}:${i.comparisonPolicy??``}`:``}`)})}):(0,P.jsxs)(`div`,{className:`empty-document-viewer document-pane-drop-target`,children:[(0,P.jsx)(`strong`,{children:se?`ここへドロップ`:`${e===`left`?`左`:`右`}ペイン`}),(0,P.jsx)(`span`,{children:`タブを移動するか、Cmd/Ctrl+クリックで文書を開けます。`})]})]})};return(0,P.jsxs)(`main`,{className:`app-shell`,children:[(0,P.jsx)(`a`,{className:`skip-link`,href:`#review-main-content`,children:`レビュー本文へ移動`}),(0,P.jsxs)(`header`,{className:`topbar`,children:[(0,P.jsxs)(`div`,{className:`brand`,children:[(0,P.jsx)(`span`,{className:`brand-mark`,children:`r`}),(0,P.jsx)(`strong`,{children:`rvw`})]}),(0,P.jsxs)(`div`,{className:`pr-heading`,children:[(0,P.jsxs)(`span`,{children:[xn.owner,`/`,xn.repository,` · #`,xn.number]}),(0,P.jsx)(`h1`,{children:(0,P.jsx)(`a`,{href:xn.url,target:`_blank`,rel:`noopener noreferrer`,children:xn.latestTitle})})]}),(0,P.jsx)(Bx,{selectedOid:a,selectedStartOid:s??a,commits:Et,latestHeadOid:Ot,specialSelected:wn,specialSelectionLabel:Ge?.kind===`walkthrough`?`Walkthrough source`:`コメント元`,documentDisplayMode:l,diffStyle:d,comparisonAvailable:Tn,diffViewAvailable:En,onCommitRangeChange:zt,onDisplayModeChange:u,onDiffStyleChange:f}),(0,P.jsxs)(`div`,{className:`topbar-menu`,ref:Ie,children:[(0,P.jsx)(`button`,{ref:Le,className:`topbar-menu-toggle`,"aria-label":`その他の操作`,"aria-haspopup":`menu`,"aria-expanded":xe,onClick:()=>Se(e=>!e),children:(0,P.jsx)(Rx,{})}),xe&&(0,P.jsxs)(`div`,{className:`topbar-menu-popover`,role:`menu`,onKeyDown:Rt,children:[(0,P.jsxs)(`button`,{role:`menuitem`,className:`topbar-menu-command`,onClick:()=>{Se(!1),me(Le.current),fe(!0)},children:[(0,P.jsx)(`span`,{children:`ファイルを開く…`}),(0,P.jsx)(`kbd`,{children:`⌘ / Ctrl P`})]}),(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>{Se(!1),Ee(null),F.mutate({announce:!0})},disabled:F.isPending,children:`GitHubと同期`}),(0,P.jsxs)(`div`,{className:`topbar-menu-section`,role:`group`,"aria-label":`UIテーマ`,children:[(0,P.jsx)(`span`,{className:`topbar-menu-section-label`,children:`UIテーマ`}),Vx.map(e=>(0,P.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":De===e.preference,disabled:Ct.isPending,onClick:()=>{wt(e.preference),Se(!1)},children:[(0,P.jsx)(`span`,{children:e.label}),(0,P.jsx)(`span`,{className:`topbar-menu-check`,"aria-hidden":`true`,children:De===e.preference?`✓`:``})]},e.preference))]}),(0,P.jsx)(`button`,{className:`topbar-menu-danger`,role:`menuitem`,onClick:()=>{Se(!1),an.mutate()},disabled:an.isPending,children:`ローカル状態を削除して再構築`})]})]})]}),de&&(0,P.jsx)(Kb,{open:!0,returnFocusElement:pe,files:$t,openDocuments:Ue,activeDocument:Ge,activePane:We,loading:Bt.isPending,error:Bt.error,onClose:()=>fe(!1),onOpen:e=>ut(e,We)}),(0,P.jsx)(xt,{error:Dn}),Te&&(0,P.jsx)(`div`,{className:`sync-feedback`,role:`status`,children:Te}),(0,P.jsxs)(`div`,{className:`workspace${M?` is-resizing`:``}`,style:{"--sidebar-width":`${A}px`},children:[(0,P.jsxs)(`aside`,{className:`sidebar`,"aria-label":`レビューサイドバー`,children:[(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--code${p?` is-expanded`:``}`,children:[(0,P.jsxs)(`div`,{className:`sidebar-stack-header`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":p,onClick:()=>m(e=>!e),children:[(0,P.jsx)(xy,{kind:`file`}),(0,P.jsx)(`span`,{children:_===`search`?`コード検索`:`エクスプローラー`}),(0,P.jsx)(Fx,{expanded:p})]}),(0,P.jsx)(`button`,{type:`button`,className:`sidebar-stack-action${_===`search`?` active`:``}`,"aria-label":_===`search`?`ファイルツリーに戻る`:`コード検索を開く`,"aria-pressed":_===`search`,title:_===`search`?`ファイルツリーに戻る`:`コード検索 (⌘ / Ctrl Shift F)`,onClick:()=>{if(_===`search`){v(`files`);return}m(!0),v(`search`),window.requestAnimationFrame(()=>{Re.current?.focus(),Re.current?.select()})},children:_===`search`?(0,P.jsx)(Lx,{}):(0,P.jsx)(Ix,{})})]}),(0,P.jsx)(`div`,{className:`sidebar-stack-body sidebar-code-body`,hidden:!p||_!==`files`,children:(0,P.jsxs)(`div`,{className:`file-panel`,children:[(0,P.jsx)(Ab,{walkthroughs:Jt,pullRequestActive:Ge?.kind===`pull-request-markdown`,activeWalkthroughId:Ge?.kind===`walkthrough`?Ge.id:null,onOpenPullRequest:e=>{if(e){ut({kind:`pull-request-markdown`},`right`);return}ut({kind:`pull-request-markdown`})},onOpen:fn}),(0,P.jsx)(xt,{error:qt.error}),(0,P.jsx)(`input`,{value:le,onChange:e=>ue(e.target.value),placeholder:`ファイル名を検索`}),(0,P.jsxs)(`label`,{className:`file-scope-checkbox`,children:[(0,P.jsx)(`input`,{type:`checkbox`,checked:y===`all`,onChange:e=>b(e.target.checked?`all`:`changed`)}),(0,P.jsx)(`span`,{children:`変更のないファイルも表示`})]}),(0,P.jsx)(xt,{error:y===`changed`?Vt.error:Bt.error}),(0,P.jsx)(`nav`,{className:`file-tree`,children:(0,P.jsx)(Ob,{files:nn,activePath:Ge?.kind===`repository-file`?Ge.path:null,filtering:!!le.trim(),initiallyExpanded:y===`changed`?`all`:`active-file`,onOpenFile:on},`${s}:${a}:${y}:${y===`changed`?Vt.dataUpdatedAt:Bt.dataUpdatedAt}`)})]})}),(0,P.jsx)(`div`,{className:`sidebar-stack-body sidebar-code-body`,hidden:!p||_!==`search`,children:(0,P.jsx)(zb,{inputRef:Re,query:he,matchCase:_e,wholeWord:ye,changeKindsByPath:tn,response:He?rn.data:void 0,isFetching:!!(He&&rn.isFetching),error:He?rn.error:null,onQueryChange:ge,onMatchCaseChange:ve,onWholeWordChange:be,onOpenResult:un})})]}),(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--comments${h?` is-expanded`:``}`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":h,onClick:()=>g(e=>!e),children:[(0,P.jsx)(Px,{}),(0,P.jsx)(`span`,{children:`コメント`}),(0,P.jsx)(`span`,{className:`sidebar-stack-count`,children:Kt}),(0,P.jsx)(Fx,{expanded:h})]}),(0,P.jsxs)(`div`,{className:`sidebar-stack-body`,hidden:!h,children:[(0,P.jsx)(xt,{error:Wt.error}),(0,P.jsx)($y,{comments:Gt,walkthroughs:Jt,pullRequestId:xn.id,selectedOid:a,themePreference:De,onCommentActiveChange:je,onOpenCodeReference:bn,onOpenTarget:dn,onOpenRepositoryLink:ln})]})]})]}),(0,P.jsx)(`div`,{className:`horizontal-resize-handle sidebar-resize-handle${M===`sidebar`?` active`:``}`,role:`separator`,"aria-label":`サイドバーの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":Ex,"aria-valuemax":Dx,"aria-valuenow":Math.round(A),tabIndex:0,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),oe(`sidebar`),mt(e.clientX,e.currentTarget.parentElement))},onPointerMove:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&mt(e.clientX,e.currentTarget.parentElement)},onPointerUp:_t,onPointerCancel:_t,onLostPointerCapture:()=>oe(null),onDoubleClick:()=>j(Mx()),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),j(t=>jx(t+(e.key===`ArrowLeft`?-16:16),Ex,Dx)))}}),(0,P.jsxs)(`section`,{id:`review-main-content`,tabIndex:-1,className:`main-view${On?` two-pane`:``}${M===`panes`?` is-resizing`:``}`,style:On?{gridTemplateColumns:`minmax(${Ax}px, ${ie}fr) 6px minmax(${Ax}px, ${100-ie}fr)`}:void 0,children:[kn(`left`),On&&(0,P.jsx)(`div`,{className:`horizontal-resize-handle pane-resize-handle${M===`panes`?` active`:``}`,role:`separator`,"aria-label":`左右ペインの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(ie),tabIndex:0,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),oe(`panes`),gt(e.clientX,e.currentTarget.parentElement))},onPointerMove:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&>(e.clientX,e.currentTarget.parentElement)},onPointerUp:_t,onPointerCancel:_t,onLostPointerCapture:()=>oe(null),onDoubleClick:()=>ae(kx),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),ae(t=>jx(t+(e.key===`ArrowLeft`?-2:2),20,80)))}}),On&&kn(`right`)]})]})]})}ix();var Gx=new Fe({defaultOptions:{queries:{retry:1,staleTime:500},mutations:{retry:!1}}}),Kx=document.getElementById(`root`);if(!Kx)throw Error(`root elementがありません。`);async function qx(){let e=Zb();$b(e);try{let e=await vt(`/api/preferences/theme`);return Qb(e.themePreference),Gx.setQueryData([`theme-preference`],e),e.themePreference}catch(t){return console.warn(`共有テーマ設定を読み込めませんでした。ブラウザーの設定を使用します。`,t),e}}qx().then(e=>{$b(e),(0,ft.createRoot)(Kx).render((0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(He,{client:Gx,children:(0,P.jsx)(Wx,{initialThemePreference:e})})}))});export{Mt as A,ct as B,Nn as C,Xt as D,Dn as E,wt as F,Le as G,rt as H,xt as I,vt as L,zt as M,Bt as N,Wt as O,Ct as P,bt as R,Dc as S,jn as T,Ve as U,it as V,ze as W,im as _,ky as a,el as b,wy as c,l_ as d,u_ as f,fm as g,pm as h,Ny as i,Vt as j,jt as k,xy as l,s_ as m,Xy as n,Oy as o,f_ as p,Ly as r,Ty as s,kb as t,d_ as u,zp as v,An as w,Cc as x,ml as y,yt as z};
|
|
383
|
+
この操作は元に戻せません。`)&&oe.mutate(e)},fe=Zy(e,n,r),pe=t===`inline`?Qy(e,n,r):fe,me=(0,P.jsxs)(P.Fragment,{children:[t===`inline`&&(0,P.jsx)(`span`,{className:`comment-thread-chevron`,"aria-hidden":`true`,children:te?`⌄`:`›`}),(0,P.jsxs)(`span`,{className:`comment-thread-summary-copy`,children:[(0,P.jsx)(`span`,{className:`comment-thread-target`,children:pe}),t===`sidebar`&&(0,P.jsxs)(P.Fragment,{children:[!te&&(0,P.jsx)(`span`,{className:`comment-thread-excerpt`,children:re?.body??`コメント`}),(0,P.jsxs)(`span`,{className:`comment-thread-meta`,children:[re?.authorLabel??`Unknown`,` · `,k,`返信 · 最終更新`,` `,eb(e.updatedAt)]})]})]})]}),he=(e,t)=>{let n=e.isRoot?`コメントのその他の操作`:`${t}件目の返信のその他の操作`,r=b===e.id,i=S?.postId===e.id?S:null;return(0,P.jsxs)(`div`,{className:`comment-more`,"data-comment-menu":e.id,children:[(0,P.jsx)(`button`,{className:`comment-more-trigger`,"aria-label":n,"aria-haspopup":`menu`,"aria-expanded":r,onClick:()=>{C(null),x(t=>t===e.id?null:e.id)},children:`…`}),r&&(0,P.jsxs)(`div`,{className:`comment-more-menu${i?.opensUpward?` opens-upward`:``}`,role:`menu`,"aria-label":n,popover:`manual`,onKeyDown:e=>{if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(e.currentTarget.querySelectorAll(`[role=menuitem]`));if(t.length===0)return;e.preventDefault();let n=t.indexOf(document.activeElement);t[e.key===`Home`?0:e.key===`End`?t.length-1:e.key===`ArrowUp`?(n-1+t.length)%t.length:(n+1)%t.length]?.focus()},style:{top:i?.top??0,left:i?.left??0,visibility:i?`visible`:`hidden`},children:[e.isRoot&&(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>void ce(),children:`参照をコピー`}),(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>le(e),children:`編集`}),e.isRoot?(0,P.jsx)(`button`,{className:`is-danger`,role:`menuitem`,onClick:ue,children:`削除`}):(0,P.jsx)(`button`,{className:`is-danger`,role:`menuitem`,onClick:()=>de(e.id),children:`削除`})]})]})};return(0,P.jsxs)(`article`,{ref:y,className:`comment-thread comment-thread--${t}${te?` is-expanded`:` is-collapsed`}`,"data-comment-id":e.id,onPointerEnter:()=>u?.(e.id,!0),onPointerLeave:t=>{t.currentTarget.contains(document.activeElement)||u?.(e.id,!1)},onFocusCapture:()=>u?.(e.id,!0),onBlurCapture:t=>{let n=t.relatedTarget;(!(n instanceof Node)||!t.currentTarget.contains(n))&&!t.currentTarget.matches(`:hover`)&&u?.(e.id,!1)},children:[(0,P.jsxs)(`header`,{className:`comment-thread-header`,children:[t===`inline`?(0,P.jsx)(`button`,{className:`comment-thread-toggle`,"aria-expanded":te,"aria-label":`${fe}のコメントを${te?`折りたたむ`:`展開`}`,onClick:()=>_(t=>{let n=!t;return qy.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),n}),children:me}):(0,P.jsx)(`div`,{className:`comment-thread-summary`,children:me}),(0,P.jsxs)(`div`,{className:`comment-thread-header-actions`,children:[!te&&O&&(0,P.jsx)(`span`,{className:`comment-action-feedback comment-action-feedback--header`,role:`status`,children:O}),(0,P.jsxs)(`div`,{className:`comment-thread-badges`,children:[A&&(0,P.jsx)(`span`,{className:`badge badge--outdated`,children:`Outdated`}),(t===`sidebar`||e.resolvedAt)&&(0,P.jsx)(`span`,{className:e.resolvedAt?`badge badge--resolved`:`badge`,children:e.resolvedAt?`解決済み`:`未解決`})]}),re&&he(re,0)]})]}),te&&(0,P.jsxs)(`div`,{className:`comment-thread-content`,children:[A&&(0,P.jsx)(`p`,{className:`comment-outdated-note`,children:e.target.kind===`walkthrough`?`現在のウォークスルーでは位置を特定できません。作成時の選択範囲を確認してください。`:`現在の文書では位置を特定できません。コメント対象を開くと、コメント時点の文書を確認できます。`}),(e.target.kind===`document`&&e.target.documentKind===`pull-request-markdown`||e.target.kind===`walkthrough`)&&e.target.quotedText&&A&&(0,P.jsxs)(`div`,{className:`comment-source-quote`,children:[(0,P.jsx)(`small`,{children:`コメント作成時の選択範囲`}),(0,P.jsx)(`pre`,{children:e.target.quotedText})]}),(0,P.jsx)(`div`,{className:`comment-posts`,children:e.posts.map((t,n)=>(0,P.jsxs)(`div`,{className:`comment-post`,children:[(0,P.jsxs)(`div`,{className:`comment-post-meta`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`strong`,{children:t.authorLabel??`Unknown`}),t.updatedAt!==t.createdAt&&(0,P.jsx)(`small`,{children:`編集済み`})]}),(0,P.jsxs)(`span`,{className:`comment-post-meta-end`,children:[(0,P.jsx)(`time`,{dateTime:t.createdAt,children:eb(t.createdAt)}),!t.isRoot&&he(t,n)]})]}),w===t.id?(0,P.jsxs)(`div`,{className:`comment-edit-composer`,children:[(0,P.jsx)(`textarea`,{autoFocus:!0,rows:3,value:E,"aria-label":t.isRoot?`コメントを編集`:`返信を編集`,onChange:e=>D(e.target.value),onKeyDown:e=>St(e,!!E.trim()&&!M.isPending,()=>M.mutate({postId:t.id,body:E}))}),(0,P.jsxs)(`div`,{className:`comment-edit-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:M.isPending,onClick:()=>{T(null),D(``),M.reset()},children:`キャンセル`}),(0,P.jsx)(`button`,{disabled:!E.trim()||M.isPending,onClick:()=>M.mutate({postId:t.id,body:E}),children:`保存`})]})]}):(0,P.jsx)(tb,{comment:e,post:t,markdownSourceOid:i,themePreference:a,onOpenCodeReference:o,onOpenRepositoryLink:c}),t.relatedCommitOid&&(0,P.jsxs)(`small`,{children:[`commit `,t.relatedCommitOid.slice(0,8)]})]},t.id))}),(0,P.jsxs)(`div`,{className:`comment-reply-composer`,children:[(0,P.jsx)(`textarea`,{ref:h,value:m,onChange:t=>{let n=It(e.pullRequestId,f);Lt(e.pullRequestId,f,{...n,body:t.target.value})},onFocus:()=>{let t=It(e.pullRequestId,f);Lt(e.pullRequestId,f,{...t,focused:!0})},onBlur:()=>{let t=It(e.pullRequestId,f);Lt(e.pullRequestId,f,{...t,focused:!1})},onKeyDown:e=>St(e,!!m.trim()&&!ie.isPending,()=>ie.mutate()),placeholder:`返信を入力`,"aria-label":`${fe}へ返信`,rows:1}),(0,P.jsx)(`button`,{"aria-label":`${fe}の${t===`sidebar`?`サイドバー`:`コード内`}から返信を送信`,disabled:!m.trim()||ie.isPending,onClick:()=>ie.mutate(),children:`返信`})]}),(0,P.jsxs)(`div`,{className:`comment-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:ae.isPending,onClick:()=>ae.mutate(),children:e.resolvedAt?`再度開く`:`解決`}),s&&(0,P.jsx)(`button`,{className:`button--quiet`,onMouseDown:e=>{!e.metaKey&&!e.ctrlKey||(e.preventDefault(),s(!0))},onClick:e=>{!e.metaKey&&!e.ctrlKey&&s(!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:$y(e)}),O&&(0,P.jsx)(`span`,{className:`comment-action-feedback`,role:`status`,children:O})]}),(0,P.jsx)(xt,{error:ie.error??ae.error??M.error??oe.error??se.error})]})]})}function rb(e){return e.target.kind===`pull-request`?`Pull Request全体`:e.target.kind===`walkthrough`?e.target.walkthroughTitle:e.target.documentKind===`pull-request-markdown`?`Pull Request.md`:e.target.path}function ib({comment:e,pullRequestId:t,selectedOid:n,selected:r,markdownSourceOid:i,themePreference:a,onSelect:o,onCommentActiveChange:s,onOpenCodeReference:c,onOpenTarget:l,onOpenRepositoryLink:u,onDeleted:d}){let f=rt({queryKey:[`comment-placement`,e.id,n],queryFn:async()=>await vt(`/api/comments/${e.id}/placement?kind=commit&pullRequestId=${t}&oid=${n}`)});return(0,P.jsxs)(`div`,{className:`comment-list-item${r?` is-selected`:``}`,onClick:e=>{let t=e.target;t instanceof Element&&(t.closest(`button, input, textarea, select, a, label, [role='menuitem']`)||t.closest(`.comment-thread`)&&window.getSelection()?.isCollapsed&&o(!r))},children:[(0,P.jsx)(`label`,{className:`comment-select-toggle`,children:(0,P.jsx)(`input`,{type:`checkbox`,checked:r,"aria-label":`${rb(e)}のコメントを選択`,onChange:e=>o(e.target.checked)})}),(0,P.jsx)(nb,{comment:e,variant:`sidebar`,placement:f.data?.placement??null,markdownSourceOid:i,themePreference:a,onActiveChange:s,onOpenCodeReference:c,onOpenTarget:e=>l(f.data?.placement??null,e),onOpenRepositoryLink:u,onDeleted:d}),f.error&&(0,P.jsx)(xt,{error:f.error})]})}function ab({comments:e,walkthroughs:t,pullRequestId:n,selectedOid:r,themePreference:i,onCommentActiveChange:a,onOpenCodeReference:o,onOpenTarget:s,onOpenRepositoryLink:c}){let l=Ve(),u=(0,N.useRef)(null),[d,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(()=>new Set),[h,g]=(0,N.useState)(!1),[_,v]=(0,N.useState)(``),[y,b]=(0,N.useState)(!1),x=e.filter(e=>e.resolvedAt===null).length,S=e.length-x,C=(0,N.useMemo)(()=>e.filter(e=>d?e.resolvedAt!==null:e.resolvedAt===null),[e,d]),w=C.filter(e=>p.has(e.id)),T=(0,N.useMemo)(()=>new Map(t.map(e=>[e.id,e.sourceOid])),[t]),E=C.length>0&&w.length===C.length,D=w.length>0&&!E;(0,N.useEffect)(()=>{u.current&&(u.current.indeterminate=D)},[D]);let O=it({mutationFn:async()=>await vt(`/api/comments`,yt({pullRequestId:n,target:{kind:`pull-request`},body:_,authorLabel:`You`})),onSuccess:async()=>{v(``),g(!1),await l.invalidateQueries({queryKey:[`comments`]}),await l.invalidateQueries({queryKey:[`change-sequence`]})}}),ee=async()=>{await navigator.clipboard.writeText(`rvw Skillを使って、次のコメントを確認してください。\n\n${w.map(e=>e.ref).join(`
|
|
384
|
+
`)}`),b(!0),window.setTimeout(()=>b(!1),1600)},te=e=>{f(e),m(new Set)},ne=()=>{v(``),g(!1),O.reset()};return(0,P.jsxs)(`section`,{className:`comment-sidebar`,children:[(0,P.jsxs)(`div`,{className:`segmented comment-state-filter`,children:[(0,P.jsxs)(`button`,{className:d?``:`active`,onClick:()=>te(!1),children:[`未解決 `,(0,P.jsx)(`span`,{children:x})]}),(0,P.jsxs)(`button`,{className:d?`active`:``,onClick:()=>te(!0),children:[`解決済み `,(0,P.jsx)(`span`,{children:S})]})]}),(0,P.jsxs)(`div`,{className:`comment-list-toolbar`,children:[C.length>0&&(0,P.jsxs)(`label`,{className:`comment-select-all`,children:[(0,P.jsx)(`input`,{ref:u,type:`checkbox`,checked:E,onChange:e=>m(e.target.checked?new Set(C.map(e=>e.id)):new Set)}),`すべて選択`]}),(0,P.jsx)(`button`,{className:`button--quiet comment-pr-create`,"aria-expanded":h,onClick:()=>g(e=>!e),children:`+ PR全体`})]}),h&&(0,P.jsxs)(`div`,{className:`pr-comment-composer`,children:[(0,P.jsx)(`label`,{children:`Pull Request全体へコメント`}),(0,P.jsx)(`textarea`,{autoFocus:!0,rows:3,value:_,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&!e.nativeEvent.isComposing){e.preventDefault(),ne();return}St(e,!!_.trim()&&!O.isPending,()=>O.mutate())},placeholder:`Pull Request全体へのコメント`}),(0,P.jsxs)(`div`,{className:`pr-comment-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:O.isPending,onClick:ne,children:`キャンセル`}),(0,P.jsx)(`button`,{disabled:!_.trim()||O.isPending,onClick:()=>O.mutate(),children:`コメント`})]}),(0,P.jsx)(xt,{error:O.error})]}),(0,P.jsxs)(`div`,{className:`comment-list`,children:[C.length===0&&(0,P.jsx)(`p`,{className:`empty-state`,children:`コメントはありません。`}),C.map(e=>(0,P.jsx)(ib,{comment:e,pullRequestId:n,selectedOid:r,selected:p.has(e.id),markdownSourceOid:e.target.kind===`walkthrough`?T.get(e.target.walkthroughId):void 0,themePreference:i,onCommentActiveChange:a,onOpenCodeReference:o,onSelect:t=>{let n=new Set(p);t?n.add(e.id):n.delete(e.id),m(n)},onOpenTarget:(t,n)=>s(e,t,n),onOpenRepositoryLink:c,onDeleted:()=>{m(t=>{let n=new Set(t);return n.delete(e.id),n})}},e.id))]}),w.length>0&&(0,P.jsx)(`button`,{className:`button--wide comment-copy-selection`,onClick:()=>void ee(),children:y?`コピーしました`:`選択した${w.length}件の参照をコピー`})]})}var ob={kind:`pull-request-markdown`};function $(e){return e.kind===`pull-request-markdown`?`pull-request-markdown`:e.kind===`walkthrough`?`walkthrough:${e.id}`:`file:${e.path}`}function sb(e,t){return`${e}:${$(t)}`}function cb(e){return e.kind===`pull-request-markdown`?`Pull Request.md`:e.kind===`walkthrough`?e.title:e.path}function lb(e){let t=cb(e);return t.split(`/`).at(-1)??t}function ub(){return{documents:{left:[ob],right:[]},active:{left:ob,right:null},focusedPane:`left`,navigationRevision:{left:0,right:0}}}function db(e,t,n=!1){return t===e?e:{...t,navigationRevision:{left:e.navigationRevision.left+Number(n||e.active.left!==t.active.left),right:e.navigationRevision.right+Number(n||e.active.right!==t.active.right)}}}function fb(e){return e===`left`?`right`:`left`}function pb(e,t,n){let r=$(t);return e.documents[n].find(e=>$(e)===r)}function mb(e,t){return[`left`,`right`].filter(n=>pb(e,t,n))}function hb(e,t){return pb(e,t,e.focusedPane)?e.focusedPane:mb(e,t)[0]??e.focusedPane}function gb(e){return e.documents.left.length>0||e.documents.right.length===0?e:{...e,documents:{left:e.documents.right,right:[]},active:{left:e.active.right??e.documents.right[0]??null,right:null},focusedPane:`left`}}function _b(e,t,n){let r=$(t),i=e.documents[n].findIndex(e=>$(e)===r),a=i<0?[...e.documents[n],t]:e.documents[n].map((e,n)=>n===i?t:e);return{...e,documents:{...e.documents,[n]:a},active:{...e.active,[n]:t},focusedPane:n}}function vb(e,t,n,r){if(n===r)return _b(e,t,r);let i=$(t),a=e.documents[n].findIndex(e=>$(e)===i);if(a<0)return e;let o=e.documents[n].filter(e=>$(e)!==i),s=e.documents[r].findIndex(e=>$(e)===i),c=s<0?[...e.documents[r],t]:e.documents[r].map((e,n)=>n===s?t:e),l={...e.active,[r]:t};return e.active[n]&&$(e.active[n])===i&&(l[n]=o[Math.min(a,o.length-1)]??o.at(-1)??null),gb({...e,documents:{...e.documents,[n]:o,[r]:c},active:l,focusedPane:r})}function yb(e,t,n){let r=$(t),i=n??[`left`,`right`].find(n=>e.documents[n].some(e=>e===t))??(pb(e,t,e.focusedPane)?e.focusedPane:mb(e,t)[0]);if(!i)return e;let a=e.documents[i].findIndex(e=>$(e)===r);if(a<0)return e;let o=e.documents[i].filter(e=>$(e)!==r),s={...e.active};s[i]&&$(s[i])===r&&(s[i]=o[Math.min(a,o.length-1)]??o.at(-1)??null);let c=e.focusedPane===i&&!s[i]?fb(i):e.focusedPane;return gb({...e,documents:{...e.documents,[i]:o},active:s,focusedPane:c})}function bb(e){return e.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:e.kind===`walkthrough`?e:{kind:`repository-file`,path:e.path}}function xb(e,t){let n=e.includes(`/`)?e.slice(0,e.lastIndexOf(`/`)):``,r=n.split(`/`).filter(Boolean);for(let e=1;e<=r.length;e+=1){let n=r.slice(-e).join(`/`);if(t.every(t=>(t.includes(`/`)?t.slice(0,t.lastIndexOf(`/`)):``).split(`/`).filter(Boolean).slice(-e).join(`/`)!==n))return n}return n}function Sb(e){return e.kind===`pull-request-markdown`?`PR本文`:e.kind===`walkthrough`?`Walkthrough ${e.id.slice(0,8)}`:`repository`}function Cb(e,t){let n=$(e),r=lb(e),i=cb(e),a=t.filter(e=>$(e)!==n&&lb(e)===r);if(a.length===0)return{displayLabel:r,accessibleLabel:i};if(a.some(e=>cb(e)===i)){let t=Sb(e);return{displayLabel:`${r} · ${t}`,accessibleLabel:`${i}(${t})`,identityQualifier:t}}return{displayLabel:`${r} · ${xb(i,a.map(e=>cb(e)))||`root`}`,accessibleLabel:i}}function wb(e,t){let n=new Map;for(let e of t){let t=mt(e);t&&n.set(t,e.kind)}let r=e.map(e=>{let t=n.get(e.path);return t?{...e,changeKind:t}:e}),i=new Set(e.map(e=>e.path));for(let e of t){let t=mt(e);e.kind===`deleted`&&t&&!i.has(t)&&r.push({path:t,entryKind:`file`,changeKind:`deleted`})}return r}var Tb={added:`追加`,deleted:`削除`,modified:`変更`,renamed:`名前変更`,"type-changed":`種類変更`};function Eb(e,t){return e.kind===t.kind?e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:`base`}):e.kind===`directory`?-1:1}function Db(e){return{kind:`directory`,name:e.name,path:e.path,children:[...e.children.values()].map(e=>e.kind===`mutable-directory`?Db(e):e).sort(Eb)}}function Ob(e){let t={kind:`mutable-directory`,name:``,path:``,children:new Map};for(let n of e){let e=n.path.split(`/`).filter(Boolean);if(e.length===0)continue;let r=t;for(let[t,i]of e.entries()){let a=e.slice(0,t+1).join(`/`);if(t===e.length-1){r.children.set(i,{kind:`file`,name:i,path:n.path,entryKind:n.entryKind,...n.changeKind?{changeKind:n.changeKind}:{}});continue}let o=r.children.get(i);if(o?.kind===`mutable-directory`){r=o;continue}let s={kind:`mutable-directory`,name:i,path:a,children:new Map};r.children.set(i,s),r=s}}return[...t.children.values()].map(e=>e.kind===`mutable-directory`?Db(e):e).sort(Eb)}function kb(e){let t=new Set,n=e=>{e.kind!==`file`&&(t.add(e.path),e.children.forEach(n))};return e.forEach(n),t}function Ab(e,t,n){let r=[],i=(e,a)=>{r.push({node:e,depth:a}),e.kind===`directory`&&(n||t.has(e.path))&&e.children.forEach(e=>i(e,a+1))};return e.forEach(e=>i(e,0)),r}function jb(e,t,n,r,i){if(e<=0)return{start:0,end:0};let a=Math.min(e-1,Math.max(0,Math.floor(t/r))),o=Math.min(e,Math.max(a+1,Math.ceil((t+n)/r)));return{start:Math.max(0,a-i),end:Math.min(e,o+i)}}function Mb(e,t){if(!e)return new Set;let n=e.split(`/`).filter(Boolean),r=new Set;for(let e=1;e<n.length;e+=1){let i=n.slice(0,e).join(`/`);t.has(i)&&r.add(i)}return r}function Nb({expanded:e}){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:e?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 3.97a.75.75 0 0 1 1.06 0L8 7.19l3.22-3.22a.75.75 0 1 1 1.06 1.06L8.53 8.78a.75.75 0 0 1-1.06 0L3.72 5.03a.75.75 0 0 1 0-1.06Z`}),(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 8.97a.75.75 0 0 1 1.06 0L8 12.19l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z`})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 7.03a.75.75 0 0 0 1.06 0L8 3.81l3.22 3.22a.75.75 0 1 0 1.06-1.06L8.53 2.22a.75.75 0 0 0-1.06 0L3.72 5.97a.75.75 0 0 0 0 1.06Z`}),(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 12.03a.75.75 0 0 0 1.06 0L8 8.81l3.22 3.22a.75.75 0 1 0 1.06-1.06L8.53 7.22a.75.75 0 0 0-1.06 0l-3.75 3.75a.75.75 0 0 0 0 1.06Z`})]})})}function Pb({kind:e}){let t=Tb[e];return(0,P.jsx)(`span`,{className:`file-change-icon file-change-icon--${e}`,title:t,role:`img`,"aria-label":t,"data-change-kind":e,children:(0,P.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:[e===`added`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`}),(0,P.jsx)(`path`,{d:`M8 5v6M5 8h6`})]}),e===`deleted`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`}),(0,P.jsx)(`path`,{d:`M5 8h6`})]}),e===`modified`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{d:`m3 10.5-.5 3 3-.5L12 6.5 9.5 4z`}),(0,P.jsx)(`path`,{d:`m8.5 5 2.5 2.5`})]}),e===`renamed`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`path`,{d:`M2 5h9M9 2.75 11.25 5 9 7.25`}),(0,P.jsx)(`path`,{d:`M14 11H5m2 2.25L4.75 11 7 8.75`})]}),e===`type-changed`&&(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(`path`,{d:`m8 2 5 3-5 3-5-3zM3 8l5 3 5-3M3 11l5 3 5-3`})})]})})}var Fb=31,Ib=10,Lb=400;function Rb({files:e,activePath:t,filtering:n,initiallyExpanded:r,onOpenFile:i}){let a=(0,N.useMemo)(()=>Ob(e),[e]),o=(0,N.useMemo)(()=>kb(a),[a]),[s,c]=(0,N.useState)(()=>r===`all`?new Set(o):Mb(t,o)),l=(0,N.useMemo)(()=>Ab(a,s,n),[s,n,a]),u=l.length>Lb,d=(0,N.useRef)(null),[f,p]=(0,N.useState)({offset:0,height:600});(0,N.useEffect)(()=>{let e=d.current,t=e?.closest(`.sidebar-stack-body`);if(!e||!t||!u)return;let n=null,r=()=>{n=null;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=Math.max(r.top,i.top),o=Math.min(r.bottom,i.bottom),s={offset:Math.max(0,i.top-r.top),height:Math.max(0,o-a)};p(e=>Math.abs(e.offset-s.offset)<.5&&Math.abs(e.height-s.height)<.5?e:s)},i=()=>{n===null&&(n=window.requestAnimationFrame(r))};r(),t.addEventListener(`scroll`,i,{passive:!0}),window.addEventListener(`resize`,i);let a=new ResizeObserver(i);return a.observe(t),a.observe(e),()=>{n!==null&&window.cancelAnimationFrame(n),a.disconnect(),t.removeEventListener(`scroll`,i),window.removeEventListener(`resize`,i)}},[l.length,u]);let m=u?jb(l.length,f.offset,f.height,Fb,Ib):{start:0,end:l.length},h=(0,N.useMemo)(()=>Mb(t,o),[t,o]);(0,N.useEffect)(()=>{h.size!==0&&c(e=>[...h].every(t=>e.has(t))?e:new Set([...e,...h]))},[h]);let g=o.size>0&&[...o].every(e=>s.has(e)),_=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},v=({node:e,depth:r},a)=>{let o={top:`${a*Fb}px`,paddingLeft:`${8+r*14}px`};if(e.kind===`file`)return(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row file-tree-file${t===e.path?` active`:``}`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),i(e.path,!0))},onClick:t=>{!t.metaKey&&!t.ctrlKey&&i(e.path,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},title:e.path,"aria-label":e.path,style:o,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`}),(0,P.jsxs)(`span`,{className:`file-tree-icon-group`,children:[(0,P.jsx)(Ey,{path:e.path,kind:e.entryKind}),e.changeKind&&(0,P.jsx)(Pb,{kind:e.changeKind})]}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.name})]},e.path);let c=n||s.has(e.path);return(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row file-tree-directory`,onClick:()=>_(e.path),title:e.path,"aria-label":`${e.path} フォルダ`,"aria-expanded":c,style:o,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`,children:c?`▾`:`▸`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group`,"aria-hidden":`true`,children:(0,P.jsx)(Dy,{expanded:c})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.name})]},e.path)};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`file-tree-summary`,children:[(0,P.jsxs)(`span`,{children:[e.length,`ファイル`]}),(0,P.jsx)(`button`,{type:`button`,disabled:o.size===0||n,"aria-label":g?`ファイルツリーをすべて折りたたむ`:`ファイルツリーをすべて展開`,title:n?`ファイル名の絞り込み中はすべて展開します`:g?`すべて折りたたむ`:`すべて展開`,onClick:()=>c(g?new Set:new Set(o)),children:(0,P.jsx)(Nb,{expanded:g})})]}),(0,P.jsx)(`div`,{ref:d,className:`file-tree-virtualized`,"data-file-tree-row-count":l.length,"data-virtualized":u?`true`:`false`,style:{height:`${l.length*Fb}px`},children:l.slice(m.start,m.end).map((e,t)=>v(e,m.start+t))})]})}var zb=(0,N.memo)(Rb);zb.displayName=`FileTree`;function Bb({className:e=``}){return(0,P.jsx)(`svg`,{className:e,"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M2.75 1.5A1.25 1.25 0 0 0 1.5 2.75v10.5c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25H2.75Zm.25 2h10v7.75H8.8l-2.05 1.7v-1.7H3V3.5Zm2.25 1.25a.75.75 0 1 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 2.75a.75.75 0 1 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z`})})}function Vb({walkthroughs:e,pullRequestActive:t,activeWalkthroughId:n,onOpenPullRequest:r,onOpen:i}){let[a,o]=(0,N.useState)(!1);return(0,P.jsxs)(`nav`,{className:`review-tree-items`,"aria-label":`レビュー文書`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row review-tree-item review-tree-pull-request${t?` active`:``}`,onMouseDown:e=>{!e.metaKey&&!e.ctrlKey||(e.preventDefault(),r(!0))},onClick:e=>{!e.metaKey&&!e.ctrlKey&&r(!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},title:`Pull Request.md`,"aria-label":`Pull Request.md`,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group`,"aria-hidden":`true`,children:(0,P.jsx)(Ey,{path:`Pull Request.md`,kind:`file`})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:`Pull Request.md`})]}),(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row review-tree-item review-tree-walkthroughs`,"aria-expanded":a,"aria-label":`ウォークスルー ${e.length}`,disabled:e.length===0,onClick:()=>o(e=>!e),onKeyDown:e=>{e.key!==`Escape`||!a||(e.preventDefault(),o(!1))},children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`,children:a?`▾`:`▸`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group review-tree-walkthrough-icon`,"aria-hidden":`true`,children:(0,P.jsx)(Bb,{})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:`ウォークスルー`}),(0,P.jsx)(`span`,{className:`review-tree-count`,children:e.length})]}),a&&(0,P.jsx)(`div`,{className:`review-tree-walkthrough-list`,children:e.map(e=>(0,P.jsxs)(`button`,{type:`button`,className:`file-tree-row review-tree-item review-tree-walkthrough${n===e.id?` active`:``}`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),i(e,!0))},onClick:t=>{t.metaKey||t.ctrlKey||i(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},title:`${e.title}\n${e.authorLabel??`Agent`} · ${e.sourceOid.slice(0,8)}`,"aria-label":e.title,children:[(0,P.jsx)(`span`,{className:`directory-chevron`,"aria-hidden":`true`}),(0,P.jsx)(`span`,{className:`file-tree-icon-group review-tree-walkthrough-icon`,"aria-hidden":`true`,children:(0,P.jsx)(Bb,{})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.title})]},e.id))})]})}function Hb(){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.22 3.22a.75.75 0 1 1-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 0 1-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z`})})}function Ub(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,width:`16`,height:`16`,children:[(0,P.jsx)(`circle`,{cx:`3`,cy:`8`,r:`1.35`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.35`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`13`,cy:`8`,r:`1.35`,fill:`currentColor`})]})}function Wb({paneId:e,documents:t,activeDocument:n,changeKindsByPath:r,onActivate:i,onClose:a,onCloseOthers:o,onCloseAll:s,onMove:c,onDropDocument:l,onDragStartDocument:u,onDragEndDocument:d}){let[f,p]=(0,N.useState)(!1),m=(0,N.useRef)(null),h=(0,N.useRef)(null),g=(0,N.useRef)(new Map),_=n?$(n):null,v=e===`left`?`right`:`left`,y=v===`right`?`右`:`左`,b=t=>{t.preventDefault();let n=t.dataTransfer.getData(`application/x-rvw-document-tab`),r=t.dataTransfer.getData(`application/x-rvw-document-pane`);n&&(r===`left`||r===`right`)&&l(n,r,e)},x=e=>{let n=t[e];if(!n)return;let r=$(n);i(n),window.requestAnimationFrame(()=>g.current.get(r)?.focus())},S=(e,n)=>{if(t.length===0)return;let r=null;e.key===`ArrowRight`&&(r=(n+1)%t.length),e.key===`ArrowLeft`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),r!==null&&(e.preventDefault(),x(r))};return(0,N.useEffect)(()=>{_&&g.current.get(_)?.scrollIntoView({block:`nearest`,inline:`nearest`})},[_,t.length]),(0,N.useLayoutEffect)(()=>{f&&m.current?.querySelector(`[role^="menuitem"]:not(:disabled)`)?.focus()},[f]),(0,N.useEffect)(()=>{if(!f)return;let e=e=>{m.current?.contains(e.target)||p(!1)},t=e=>{e.key===`Escape`&&(p(!1),h.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[f]),(0,P.jsxs)(`div`,{className:`document-tabs-shell`,"data-pane":e,onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect=`move`},onDrop:b,children:[(0,P.jsx)(`nav`,{className:`document-tabs`,role:`tablist`,"aria-label":`開いている文書`,children:t.map((n,o)=>{let s=$(n),c=cb(n),l=Cb(n,t),f=n.kind===`repository-file`?r.get(n.path):void 0;return(0,P.jsxs)(`div`,{className:`document-tab${s===_?` active`:``}`,draggable:!0,onDragStart:t=>{t.dataTransfer.effectAllowed=`move`,t.dataTransfer.setData(`application/x-rvw-document-tab`,s),t.dataTransfer.setData(`application/x-rvw-document-pane`,e),u(s)},onDragEnd:d,children:[(0,P.jsxs)(`button`,{ref:e=>{e?g.current.set(s,e):g.current.delete(s)},className:`document-tab-activate`,role:`tab`,"aria-selected":s===_,"aria-label":l.accessibleLabel,tabIndex:s===_?0:-1,onClick:()=>i(n),onKeyDown:e=>S(e,o),children:[(0,P.jsxs)(`span`,{className:`document-tab-icon-group`,"aria-hidden":`true`,children:[n.kind===`walkthrough`?(0,P.jsx)(Bb,{}):(0,P.jsx)(Ey,{path:c,kind:`file`}),f&&(0,P.jsx)(Pb,{kind:f})]}),(0,P.jsx)(`span`,{className:`document-tab-label`,title:c,children:l.displayLabel})]}),(0,P.jsx)(`button`,{className:`document-tab-close`,"aria-label":`${l.accessibleLabel}を閉じる`,onClick:()=>a(n),children:(0,P.jsx)(Hb,{})})]},s)})}),(0,P.jsxs)(`div`,{className:`document-tabs-menu`,ref:m,children:[(0,P.jsx)(`button`,{ref:h,className:`document-tabs-menu-toggle`,"aria-label":`${e===`left`?`左`:`右`}ペインの操作`,"aria-haspopup":`menu`,"aria-expanded":f,onClick:()=>p(e=>!e),children:(0,P.jsx)(Ub,{})}),f&&(0,P.jsxs)(`div`,{className:`document-tabs-menu-popover`,role:`menu`,onKeyDown:e=>{let t=[...e.currentTarget.querySelectorAll(`[role^="menuitem"]:not(:disabled)`)];if(t.length===0)return;let n=t.indexOf(document.activeElement),r=null;e.key===`ArrowDown`&&(r=(n+1)%t.length),e.key===`ArrowUp`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),r!==null&&(e.preventDefault(),t[r]?.focus())},children:[(0,P.jsxs)(`button`,{role:`menuitem`,disabled:!n,onClick:()=>{n&&c(n,v),p(!1)},children:[`選択中のタブを`,y,`ペインへ移動`]}),(0,P.jsx)(`div`,{className:`document-tabs-menu-separator`}),(0,P.jsx)(`button`,{role:`menuitem`,disabled:!n||t.length<=1,onClick:()=>{n&&o(n),p(!1)},children:`他のタブをすべて閉じる`}),(0,P.jsx)(`button`,{role:`menuitem`,disabled:t.length===0,onClick:()=>{s(),p(!1)},children:`このペインのタブをすべて閉じる`}),(0,P.jsx)(`div`,{className:`document-tabs-menu-separator`}),t.length===0?(0,P.jsx)(`span`,{children:`開いている文書はありません。`}):t.map(e=>{let n=$(e),a=Cb(e,t),o=e.kind===`repository-file`?r.get(e.path):void 0;return(0,P.jsxs)(`button`,{role:`menuitem`,"aria-label":a.accessibleLabel,className:n===_?`active`:``,onClick:()=>{i(e),p(!1)},children:[(0,P.jsxs)(`span`,{className:`document-tab-icon-group`,"aria-hidden":`true`,children:[e.kind===`walkthrough`?(0,P.jsx)(Bb,{}):(0,P.jsx)(Ey,{path:cb(e),kind:`file`}),o&&(0,P.jsx)(Pb,{kind:o})]}),(0,P.jsx)(`span`,{className:`document-tabs-menu-label`,children:a.accessibleLabel})]},n)})]})]})]})}var Gb=class extends N.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){console.error(`${this.props.label}の遅延読み込みに失敗しました。`,e,t.componentStack)}render(){return this.state.failed?(0,P.jsxs)(`div`,{className:`viewer-unavailable`,children:[(0,P.jsx)(`span`,{children:`LOAD`}),(0,P.jsxs)(`p`,{children:[this.props.label,`を読み込めませんでした。`]}),(0,P.jsx)(`button`,{onClick:()=>window.location.reload(),children:`ページを再読み込み`})]}):this.props.children}};function Kb(e){let t=e.lastIndexOf(`/`);return t<0?{fileName:e,directory:``}:{fileName:e.slice(t+1),directory:e.slice(0,t)}}function qb(e){let t=new Map;for(let n of e){let e=`${n.document.kind}:${n.path}`,r=t.get(e);if(r){r.results.push(n),r.matchCount+=n.matches.length;continue}t.set(e,{key:e,path:n.path,results:[n],matchCount:n.matches.length})}return[...t.values()]}function Jb({expanded:e}){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:e?`M3.72 5.97a.75.75 0 0 1 1.06 0L8 9.19l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0L3.72 7.03a.75.75 0 0 1 0-1.06Z`:`M5.97 3.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 1 1-1.06-1.06L9.19 8 5.97 4.78a.75.75 0 0 1 0-1.06Z`})})}function Yb({result:e}){let t=[],n=0;for(let[r,i]of e.matches.entries())i.start<n||i.end<=i.start||i.end>e.text.length||(i.start>n&&t.push(e.text.slice(n,i.start)),t.push((0,P.jsx)(`mark`,{children:e.text.slice(i.start,i.end)},`${i.start}:${i.end}:${r}`)),n=i.end);return n<e.text.length&&t.push(e.text.slice(n)),(0,P.jsx)(P.Fragment,{children:t})}function Xb({inputRef:e,query:t,matchCase:n,wholeWord:r,changeKindsByPath:i,response:a,isFetching:o,error:s,onQueryChange:c,onMatchCaseChange:l,onWholeWordChange:u,onOpenResult:d}){let f=(0,N.useMemo)(()=>qb(a?.results??[]),[a?.results]),[p,m]=(0,N.useState)(()=>new Set);(0,N.useEffect)(()=>{m(new Set)},[n,t,r]);let h=f.every(e=>!p.has(e.key)),g=t.trim();return(0,P.jsxs)(`div`,{className:`search-panel`,children:[(0,P.jsxs)(`div`,{className:`search-input-shell`,children:[(0,P.jsx)(`input`,{ref:e,"aria-label":`全文検索`,value:t,onChange:e=>c(e.target.value),placeholder:`全文検索`,spellCheck:!1}),(0,P.jsxs)(`div`,{className:`search-options`,"aria-label":`検索オプション`,children:[(0,P.jsx)(`button`,{className:n?`active`:``,type:`button`,"aria-label":`大文字小文字を区別`,"aria-pressed":n,title:`大文字小文字を区別`,onClick:()=>l(!n),children:`Aa`}),(0,P.jsx)(`button`,{className:r?`active`:``,type:`button`,"aria-label":`単語単位で検索`,"aria-pressed":r,title:`単語単位で検索`,onClick:()=>u(!r),children:(0,P.jsx)(`span`,{"aria-hidden":`true`,children:`ab`})})]})]}),g&&(0,P.jsxs)(`div`,{className:`search-summary`,"aria-live":`polite`,children:[(0,P.jsx)(`span`,{children:o&&!a?`検索しています…`:`${a?.matchCount??0}件・${f.length}ファイル`}),o&&a&&(0,P.jsx)(`span`,{className:`search-refreshing`,children:`更新中…`}),(0,P.jsx)(`button`,{type:`button`,disabled:f.length===0,"aria-label":h?`検索結果をすべて折りたたむ`:`検索結果をすべて展開`,title:h?`すべて折りたたむ`:`すべて展開`,onClick:()=>m(h?new Set(f.map(e=>e.key)):new Set),children:(0,P.jsx)(Nb,{expanded:h})})]}),(0,P.jsx)(xt,{error:s}),a?.truncated&&(0,P.jsx)(`p`,{className:`truncated`,children:`上限で打ち切りました。`}),g&&!o&&!s&&a?.results.length===0&&(0,P.jsx)(`p`,{className:`search-empty`,children:`一致する結果はありません。`}),f.length>0&&(0,P.jsx)(`div`,{className:`search-results`,"aria-label":`全文検索結果`,children:f.map(e=>{let t=!p.has(e.key),{fileName:n,directory:r}=Kb(e.path),a=e.results[0]?.document.kind===`repository-file`?i.get(e.path):void 0;return(0,P.jsxs)(`section`,{className:`search-result-group`,children:[(0,P.jsxs)(`button`,{type:`button`,className:`search-result-file`,"aria-expanded":t,"aria-label":`${e.path}、${e.matchCount}件`,onClick:()=>m(t=>{let n=new Set(t);return n.has(e.key)?n.delete(e.key):n.add(e.key),n}),children:[(0,P.jsx)(`span`,{className:`search-result-chevron`,children:(0,P.jsx)(Jb,{expanded:t})}),(0,P.jsxs)(`span`,{className:`search-result-file-icon-group`,"aria-hidden":`true`,children:[(0,P.jsx)(Ey,{path:e.path,kind:`file`}),a&&(0,P.jsx)(Pb,{kind:a})]}),(0,P.jsxs)(`span`,{className:`search-result-file-label`,children:[(0,P.jsx)(`strong`,{children:n}),r&&(0,P.jsx)(`span`,{className:`search-result-directory`,title:r,children:r})]}),(0,P.jsx)(`span`,{className:`search-result-count`,children:e.matchCount})]}),t&&(0,P.jsx)(`div`,{className:`search-result-lines`,children:e.results.map(e=>(0,P.jsxs)(`button`,{type:`button`,className:`search-result-line`,"aria-label":`${e.path} ${e.line}行`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),d(e,!0))},onClick:t=>{!t.metaKey&&!t.ctrlKey&&d(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:[(0,P.jsx)(`span`,{className:`search-result-line-number`,children:e.line}),(0,P.jsx)(`code`,{children:(0,P.jsx)(Yb,{result:e})})]},`${e.path}:${e.line}`))})]},e.key)})})]})}function Zb(e){let t=e.lastIndexOf(`/`);return t<0?{name:e,directory:``}:{name:e.slice(t+1),directory:e.slice(0,t)}}function Qb(e,t,n=100){let r=t.trim();if(!r)return[...e].sort((e,t)=>e.isActive===t.isActive?e.isOpen===t.isOpen?e.path.localeCompare(t.path):e.isOpen?-1:1:e.isActive?-1:1).slice(0,n).map(e=>({candidate:e,nameMatch:null,pathMatch:null}));let i=r.toLocaleLowerCase();return pt.default.go(r,e,{keys:[`name`,`path`],limit:n,threshold:.08,scoreFn:e=>{let t=e.obj,n=e[0]?.score??0,r=e[1]?.score??0,a=t.name.toLocaleLowerCase(),o=a===i?.3:0,s=a.startsWith(i)?.16:0;return Math.max(n+.1+o+s,r)}}).map(e=>({candidate:e.obj,nameMatch:e[0]??null,pathMatch:e[1]??null}))}function $b({value:e,indexes:t,offset:n=0}){let r=new Set((t??[]).filter(t=>t>=n&&t<n+e.length).map(e=>e-n));if(r.size===0)return e;let i=[],a=``,o=r.has(0),s=e=>{a&&=(i.push(o?(0,P.jsx)(`mark`,{children:a},e):(0,P.jsx)(N.Fragment,{children:a},e)),``)};for(let t=0;t<e.length;t+=1){let n=r.has(t);n!==o&&(s(t),o=n),a+=e[t]}return s(e.length),i}function ex(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:[(0,P.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.75`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,P.jsx)(`path`,{d:`m10.5 10.5 3.25 3.25`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function tx(e,t,n,r,i){let a=$(e),o=Zb(t.path);return{...t,...o,key:a,document:e,...i?{identityQualifier:i}:{},isActive:a===n,isOpen:r.has(a)}}function nx(e,t,n){let r=[{document:{kind:`pull-request-markdown`},file:{path:`Pull Request.md`,entryKind:`file`}},...e.map(e=>({document:{kind:`repository-file`,path:e.path},file:e}))],i=new Map;for(let{document:e}of r){let t=cb(e);i.set(t,(i.get(t)??0)+1)}let a=n?$(n):null,o=new Set(t.map(e=>$(e)));return r.map(({document:e,file:t})=>{let n=cb(e),r=(i.get(n)??0)>1?Sb(e):void 0;return tx(e,t,a,o,r)})}function rx({open:e,returnFocusElement:t,files:n,openDocuments:r,activeDocument:i,loading:a,error:o,onClose:s,onOpen:c}){let[l,u]=(0,N.useState)(``),[d,f]=(0,N.useState)(0),p=(0,N.useRef)(null),m=(0,N.useRef)(null),h=(0,N.useRef)(null),g=(0,N.useMemo)(()=>nx(n,r,i),[i,n,r]),_=(0,N.useMemo)(()=>Qb(g,l),[g,l]),v=_[d]??null;if((0,N.useEffect)(()=>{if(!e)return;h.current=t??(document.activeElement instanceof HTMLElement?document.activeElement:null),u(``),f(0);let n=window.requestAnimationFrame(()=>p.current?.focus());return()=>{window.cancelAnimationFrame(n),h.current?.isConnected&&h.current.focus()}},[e,t]),(0,N.useEffect)(()=>{f(0)},[l]),(0,N.useEffect)(()=>{d>=_.length&&f(Math.max(0,_.length-1))},[d,_.length]),(0,N.useEffect)(()=>{m.current?.scrollIntoView({block:`nearest`})},[d]),!e)return null;let y=(e,t=!1)=>{e&&(c(e.candidate.document,t),s())},b=e=>{_.length!==0&&f(t=>(t+e+_.length)%_.length)};return(0,P.jsx)(`div`,{className:`quick-open-backdrop`,onMouseDown:s,children:(0,P.jsxs)(`section`,{className:`quick-open-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`ファイルを開く`,onMouseDown:e=>e.stopPropagation(),children:[(0,P.jsxs)(`div`,{className:`quick-open-input-shell`,children:[(0,P.jsx)(ex,{}),(0,P.jsx)(`input`,{ref:p,role:`combobox`,"aria-label":`ファイル名で検索`,"aria-autocomplete":`list`,"aria-expanded":`true`,"aria-controls":`quick-open-results`,"aria-activedescendant":v?`quick-open-result-${d}`:void 0,value:l,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`ArrowDown`?(e.preventDefault(),b(1)):e.key===`ArrowUp`?(e.preventDefault(),b(-1)):e.key===`PageDown`?(e.preventDefault(),b(10)):e.key===`PageUp`?(e.preventDefault(),b(-10)):e.key===`Home`?(e.preventDefault(),f(0)):e.key===`End`?(e.preventDefault(),f(Math.max(0,_.length-1))):e.key===`Enter`?(e.preventDefault(),y(v)):e.key===`Escape`?(e.preventDefault(),s()):e.key===`Tab`&&e.preventDefault()},placeholder:`ファイル名を入力して移動`,autoComplete:`off`,spellCheck:!1}),l&&(0,P.jsx)(`button`,{className:`quick-open-clear`,"aria-label":`入力を消去`,onClick:()=>{u(``),p.current?.focus()},children:`×`})]}),(0,P.jsxs)(`div`,{className:`quick-open-summary`,children:[(0,P.jsx)(`span`,{children:l?`${_.length}件の一致`:`開いている文書と全ファイル`}),(0,P.jsx)(`span`,{children:`Enter / クリック: 左 · Cmd/Ctrl+クリック: 右`})]}),(0,P.jsx)(`div`,{className:`quick-open-results`,id:`quick-open-results`,role:`listbox`,children:o?(0,P.jsxs)(`div`,{className:`quick-open-state`,role:`status`,children:[(0,P.jsx)(`strong`,{children:`ファイル一覧を読み込めませんでした。`}),(0,P.jsx)(`span`,{children:o.message})]}):_.length>0?_.map((e,t)=>{let{candidate:n,nameMatch:r,pathMatch:i}=e,a=t===d;return(0,P.jsxs)(`button`,{ref:a?m:void 0,id:`quick-open-result-${t}`,className:`quick-open-result${a?` selected`:``}`,role:`option`,"aria-selected":a,"aria-label":`${n.path}${n.identityQualifier?`(${n.identityQualifier})`:``}${n.isOpen?`、開いています`:``}`,tabIndex:-1,onMouseEnter:()=>f(t),onMouseDown:t=>{t.preventDefault(),(t.metaKey||t.ctrlKey)&&y(e,!0)},onClick:t=>{!t.metaKey&&!t.ctrlKey&&y(e)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:[(0,P.jsxs)(`span`,{className:`quick-open-icon-group`,"aria-hidden":`true`,children:[(0,P.jsx)(Ey,{path:n.path,kind:n.entryKind}),n.changeKind&&(0,P.jsx)(Pb,{kind:n.changeKind})]}),(0,P.jsxs)(`span`,{className:`quick-open-copy`,children:[(0,P.jsx)(`strong`,{children:(0,P.jsx)($b,{value:n.name,indexes:r?.indexes??i?.indexes,offset:r?0:n.path.length-n.name.length})}),n.directory?(0,P.jsx)(`span`,{children:(0,P.jsx)($b,{value:n.directory,indexes:i?.indexes,offset:0})}):n.identityQualifier?(0,P.jsx)(`span`,{children:n.identityQualifier}):null]}),n.isActive?(0,P.jsx)(`span`,{className:`quick-open-badge`,children:`選択中`}):n.isOpen?(0,P.jsx)(`span`,{className:`quick-open-open-dot`,title:`開いています`,"aria-hidden":`true`}):null]},n.key)}):a&&!l?(0,P.jsx)(`div`,{className:`quick-open-state`,role:`status`,children:`ファイル一覧を読み込んでいます…`}):(0,P.jsxs)(`div`,{className:`quick-open-state`,role:`status`,children:[(0,P.jsx)(`strong`,{children:`一致するファイルはありません。`}),(0,P.jsx)(`span`,{children:`文字を減らすか、パスの一部を入力してください。`})]})}),(0,P.jsxs)(`footer`,{className:`quick-open-footer`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`kbd`,{children:`↑`}),(0,P.jsx)(`kbd`,{children:`↓`}),` 選択`]}),(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`kbd`,{children:`Enter`}),` 開く`]}),(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`kbd`,{children:`Esc`}),` 閉じる`]})]})]})})}var ix=[`light`,`dark`,`system`];function ax(e){return ix.some(t=>t===e)}var ox=`rvw.theme`;function sx(e){return ax(e)?e:`system`}function cx(){try{return sx(window.localStorage.getItem(ox))}catch(e){return console.warn(`テーマ設定を読み込めませんでした。システム設定を使用します。`,e),`system`}}function lx(e){try{window.localStorage.setItem(ox,e)}catch(e){console.warn(`テーマ設定を保存できませんでした。`,e)}}function ux(e){document.documentElement.dataset.theme=e}var dx=`x-rvw-viewer-id`,fx=crypto.randomUUID();function px(){return{headers:{[dx]:fx}}}var mx=!1;function hx(){mx||(mx=!0,window.addEventListener(`pagehide`,()=>{let e=JSON.stringify({viewerId:fx}),t=new Blob([e],{type:`application/json`});navigator.sendBeacon(`/api/meta/viewers/release`,t)||fetch(`/api/meta/viewers/release`,{method:`POST`,headers:{"content-type":`application/json`},body:e,keepalive:!0}).catch(()=>void 0)}),window.addEventListener(`pageshow`,e=>{e.persisted&&(fx=crypto.randomUUID(),fetch(`/api/meta/change-sequence`,px()).catch(()=>void 0))}))}function gx(e,t){let n=new Map(e.map(e=>[e.oid,e])),r=new Set,i=[...n.get(t)?.parentOids??[]];for(;i.length>0;){let e=i.pop();!e||r.has(e)||(r.add(e),i.push(...n.get(e)?.parentOids??[]))}return r}function _x(e,t){let n=gx(e,t);return e.find(e=>e.oid===t||n.has(e.oid))?.oid??null}function vx(e,t){return!t||!e.some(e=>e.oid===t)?null:e[0]?.oid??null}function yx(e,t,n){if(!n)return null;let r=e.findIndex(e=>e.oid===n);return r<0?null:r===0?t:e[r]?.parentOids[0]??null}function bx(e,t,n){let r=e.findIndex(e=>e.oid===t),i=e.findIndex(e=>e.oid===n);if(r<0||i<0)return null;let a=Math.min(r,i),o=Math.max(r,i);return{startOid:e[a].oid,endOid:e[o].oid}}function xx(e){return e.slice(0,8)}function Sx(e,t){let n=e?.kind===`repository-file`&&e.comparisonPolicy!==`exact-source`,r=n?t.changedFiles?.find(t=>mt(t)===e.path||t.oldPath===e.path||t.newPath===e.path):void 0,i=t.documentDisplayMode!==`full`&&e?.kind===`repository-file`&&e.comparisonPolicy===`exact-source`,a=e?.kind===`repository-file`?e.sourceOid:void 0,o=a!==void 0&&a!==t.selectedOid,s=t.documentDisplayMode!==`full`&&n&&t.changedFilesLoaded&&!r,c=t.documentDisplayMode!==`full`&&e?.kind===`pull-request-markdown`||s,l=o?`参照元 ${xx(a)} ≠ 対象 ${xx(t.selectedOid)}${i?` · 全文表示`:c?` · 差分なし · 全文表示`:``}`:i?`参照元commit · 全文表示`:c?`差分なし · 全文表示`:null,u=t.documentDisplayMode===`full`&&r?.kind===`deleted`?`このファイルは選択範囲の末尾で削除されているため、全文は利用できません。変更表示で削除前の内容を確認してください。`:null,d=i||c?`full`:t.displayMode,f=e?.kind===`repository-file`&&s?{...e,sourceOid:t.selectedOid}:e?.kind===`repository-file`&&r?{...e,path:mt(r)??e.path,oldPath:r.oldPath,newPath:r.newPath}:e;return{activeChange:r,fullViewNotice:l,fullViewUnavailableMessage:u,effectiveDisplayMode:d,viewerDocument:f,walkthrough:f?.kind===`walkthrough`?t.walkthroughDetails.get(f.id):void 0,walkthroughLoading:f?.kind===`walkthrough`&&t.loadingWalkthroughIds.has(f.id)}}function Cx(e){let[t,n]=(0,N.useState)(ub),r=(0,N.useRef)(t),i=(0,N.useCallback)(e=>{n(t=>db(t,typeof e==`function`?e(t):e,typeof e!=`function`))},[]);return(0,N.useLayoutEffect)(()=>{r.current=t},[t]),{workspace:t,workspaceRef:r,setWorkspace:i,activateDocument:(0,N.useCallback)((t,n)=>{e([n??hb(r.current,t)]),i(e=>{let r=n??hb(e,t),i=pb(e,t,r)??t;return{...e,active:{...e.active,[r]:i},focusedPane:r}})},[e,i]),openDocument:(0,N.useCallback)((t,n)=>{e([n??hb(r.current,t)]),i(e=>_b(e,t,n??hb(e,t)))},[e,i]),closeDocument:(0,N.useCallback)((t,n)=>{e(n?[n]:[`left`,`right`]),i(e=>yb(e,t,n))},[e,i]),closePaneDocuments:(0,N.useCallback)((t,n=null)=>{e([t]),i(e=>{let r=n?$(n):null;return e.documents[t].filter(e=>$(e)!==r).reduce((e,n)=>yb(e,n,t),e)})},[e,i]),moveDocument:(0,N.useCallback)((t,n,r)=>{e([n,r]),i(e=>vb(e,t,n,r))},[e,i]),dropDocument:(0,N.useCallback)((t,n,r)=>{e([n,r]),i(e=>{let i=e.documents[n].find(e=>$(e)===t);return i?vb(e,i,n,r):e})},[e,i])}}var wx=`rvwReading`;function Tx(e,t){return e.kind===t.kind?e.kind===`pull-request-markdown`||t.kind===`pull-request-markdown`?e.kind===t.kind:e.kind===`walkthrough`||t.kind===`walkthrough`?e.kind===`walkthrough`&&t.kind===`walkthrough`&&e.id===t.id:e.path===t.path&&e.oldPath===t.oldPath&&e.newPath===t.newPath&&e.sourceOid===t.sourceOid&&e.comparisonPolicy===t.comparisonPolicy:!1}function Ex(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Dx(e){return e==null||typeof e==`string`}function Ox(e){return!Ex(e)||typeof e.kind!=`string`?null:e.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:e.kind===`walkthrough`?typeof e.id==`string`&&typeof e.title==`string`&&typeof e.sourceOid==`string`?{kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid}:null:e.kind!==`repository-file`||typeof e.path!=`string`||!Dx(e.oldPath)||!Dx(e.newPath)||e.sourceOid!==void 0&&typeof e.sourceOid!=`string`||e.comparisonPolicy!==void 0&&e.comparisonPolicy!==`selected-range`&&e.comparisonPolicy!==`exact-source`?null:{kind:`repository-file`,path:e.path,...e.oldPath===void 0?{}:{oldPath:e.oldPath},...e.newPath===void 0?{}:{newPath:e.newPath},...e.sourceOid===void 0?{}:{sourceOid:e.sourceOid},...e.comparisonPolicy===void 0?{}:{comparisonPolicy:e.comparisonPolicy}}}function kx(e){if(!Ex(e))return null;if(e.kind===`scroll`)return typeof e.top==`number`&&Number.isFinite(e.top)&&e.top>=0?{kind:`scroll`,top:e.top}:null;if(e.kind!==`line`)return null;let t=e.line===null||Number.isInteger(e.line)&&Number(e.line)>0,n=e.endLine===void 0||Number.isInteger(e.endLine)&&Number(e.endLine)>0&&e.line!==null&&Number(e.endLine)>=Number(e.line);return!t||!n?null:{kind:`line`,line:e.line,...e.endLine===void 0?{}:{endLine:Number(e.endLine)}}}function Ax(e,t){return{...Ex(e)?e:{},[wx]:t}}function jx(e,t){if(!Ex(e))return null;let n=e[wx];if(!Ex(n)||n.version!==1||n.pullRequestId!==t||n.pane!==`left`&&n.pane!==`right`)return null;let r=Ox(n.document),i=kx(n.locator);return!r||!i?null:{version:1,pullRequestId:t,pane:n.pane,document:r,locator:i}}var Mx=(0,N.lazy)(async()=>({default:(await zy(()=>import(`./DocumentViewer-B4LdSL1l.js`),__vite__mapDeps([18,3,19]))).DocumentViewer})),Nx=(0,N.lazy)(async()=>({default:(await zy(()=>import(`./WalkthroughViewer-D1LlSQw2.js`),__vite__mapDeps([20,3,19]))).WalkthroughViewer}));function Px(e){return mt(e)??`(unknown)`}function Fx(e){return e.slice(0,8)}var Ix=330,Lx=240,Rx=560,zx=500,Bx=50,Vx=280;function Hx(e,t,n){return Math.min(n,Math.max(t,e))}function Ux(){return window.innerWidth<=850?280:Ix}function Wx(e,t){let[n,r]=(0,N.useState)(e);return(0,N.useEffect)(()=>{let n=window.setTimeout(()=>r(e),t);return()=>window.clearTimeout(n)},[t,e]),n}function Gx(){return(0,P.jsx)(`svg`,{className:`sidebar-stack-icon`,"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:`M1.75 2.5A1.75 1.75 0 0 1 3.5.75h9a1.75 1.75 0 0 1 1.75 1.75v7a1.75 1.75 0 0 1-1.75 1.75H7.06l-3.88 3.1A.75.75 0 0 1 2 13.77v-2.7A1.75 1.75 0 0 1 1.75 9.5v-7Zm1.75-.25a.25.25 0 0 0-.25.25v7c0 .14.11.25.25.25V12.2l3.03-2.42a.75.75 0 0 1 .47-.17h5.5a.25.25 0 0 0 .25-.25V2.5a.25.25 0 0 0-.25-.25h-9Z`})})}function Kx({expanded:e}){return(0,P.jsx)(`svg`,{className:`sidebar-stack-chevron`,"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{fill:`currentColor`,d:e?`M3.72 5.97a.75.75 0 0 1 1.06 0L8 9.19l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0L3.72 7.03a.75.75 0 0 1 0-1.06Z`:`M5.97 3.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 1 1-1.06-1.06L9.19 8 5.97 4.78a.75.75 0 0 1 0-1.06Z`})})}function qx(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:[(0,P.jsx)(`circle`,{cx:`7`,cy:`7`,r:`4.75`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,P.jsx)(`path`,{d:`m10.5 10.5 3.25 3.25`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function Jx(){return(0,P.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:(0,P.jsx)(`path`,{d:`M9.75 3.25 5 8l4.75 4.75`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`})})}function Yx(){return(0,P.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 16 16`,children:[(0,P.jsx)(`circle`,{cx:`3`,cy:`8`,r:`1.4`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.4`,fill:`currentColor`}),(0,P.jsx)(`circle`,{cx:`13`,cy:`8`,r:`1.4`,fill:`currentColor`})]})}function Xx({commits:e,selectedStartOid:t,selectedEndOid:n,latestHeadOid:r,specialSelected:i,specialSelectionLabel:a,onChange:o}){let[s,c]=(0,N.useState)(!1),[l,u]=(0,N.useState)(null),d=(0,N.useRef)(null),f=(0,N.useMemo)(()=>new Intl.DateTimeFormat(`ja-JP`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}),[]),p=e.findIndex(e=>e.oid===t),m=e.findIndex(e=>e.oid===n),h=p>=0&&m>=p,g=h?m-p+1:1,_=e[p],v=e[m],y=n===r,b=h&&p===0&&y?`PR全体`:y?`最新`:null,x=i?`${a} · ${Fx(n)}`:g===1?`${v?.subject??`commit`} · ${Fx(n)}`:`${_?.subject??`commit`} … ${v?.subject??`commit`}`;(0,N.useEffect)(()=>{if(!s)return;let e=e=>{d.current?.contains(e.target)||c(!1)},t=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[s]),(0,N.useEffect)(()=>{if(!l)return;let e=()=>{u(null),c(!1)};return window.addEventListener(`pointerup`,e,{once:!0}),window.addEventListener(`pointercancel`,e,{once:!0}),()=>{window.removeEventListener(`pointerup`,e),window.removeEventListener(`pointercancel`,e)}},[l]);let S=(t,n)=>{let r=bx(e,t,n);r&&o(r.startOid,r.endOid)},C=(e,t)=>{if(e.button===0){if(e.preventDefault(),e.shiftKey){S(n,t),c(!1);return}u(t),o(t,t)}},w=e=>{l&&S(l,e)},T=(e,t)=>{S(t?n:e,e),c(!1)},E=e[0]?.oid,D=r&&e.some(e=>e.oid===r)?r:e.at(-1)?.oid;return(0,P.jsxs)(`div`,{className:`commit-range-picker`,ref:d,children:[(0,P.jsxs)(`button`,{className:`commit-range-trigger`,"aria-label":`対象commit: ${x}${g>1?`、${g} commits`:``}${b?`、${b}`:``}`,"aria-haspopup":`dialog`,"aria-expanded":s,onClick:()=>c(e=>!e),children:[(0,P.jsx)(`span`,{className:`commit-range-summary`,children:x}),g>1&&(0,P.jsxs)(`span`,{className:`commit-range-count`,children:[g,` commits`]}),b&&(0,P.jsx)(`span`,{className:`commit-selection-badge`,children:b}),(0,P.jsx)(`span`,{className:`commit-range-chevron`,"aria-hidden":`true`,children:`▾`})]}),s&&(0,P.jsxs)(`div`,{className:`commit-range-popover`,role:`dialog`,"aria-label":`対象commitを選択`,children:[(0,P.jsxs)(`div`,{className:`commit-range-shortcuts`,children:[(0,P.jsx)(`button`,{disabled:!E||!D,onClick:()=>{E&&D&&o(E,D),c(!1)},children:`PR全体`}),(0,P.jsx)(`button`,{disabled:!D,onClick:()=>{D&&o(D,D),c(!1)},children:`最新だけ`})]}),(0,P.jsx)(`p`,{className:`commit-range-hint`,children:`クリックで1件・ドラッグで連続範囲を選択`}),(0,P.jsxs)(`div`,{className:`commit-range-list`,role:`listbox`,"aria-multiselectable":`true`,children:[i&&(0,P.jsxs)(`div`,{className:`commit-range-special`,"aria-current":`true`,children:[a,` · `,Fx(n)]}),[...e].reverse().map((t,n)=>{let i=e.length-n-1,a=h&&i>=p&&i<=m,o=a?p===m?`single`:i===m?`end`:i===p?`start`:`middle`:null,s=t.oid===r;return(0,P.jsxs)(`button`,{className:`commit-range-option${a?` selected`:``}${o?` commit-range-option--${o}`:``}`,role:`option`,"aria-selected":a,"aria-label":`${t.subject}、${Fx(t.oid)}${s?`、最新`:``}`,onPointerDown:e=>C(e,t.oid),onPointerEnter:()=>w(t.oid),onClick:e=>{e.detail===0&&T(t.oid,e.shiftKey)},children:[(0,P.jsx)(`span`,{className:`commit-range-option-indicator`,"aria-hidden":`true`}),(0,P.jsxs)(`span`,{className:`commit-range-option-copy`,children:[(0,P.jsx)(`strong`,{children:t.subject}),(0,P.jsxs)(`span`,{className:`commit-range-option-meta`,children:[(0,P.jsx)(`code`,{children:Fx(t.oid)}),(0,P.jsx)(`time`,{dateTime:t.authoredAt,children:f.format(new Date(t.authoredAt))})]})]}),s&&(0,P.jsx)(`span`,{className:`commit-latest-badge`,children:`最新`})]},t.oid)})]})]})]})}function Zx({selectedOid:e,selectedStartOid:t,commits:n,latestHeadOid:r,specialSelected:i,specialSelectionLabel:a,documentDisplayMode:o,diffStyle:s,comparisonAvailable:c,diffViewAvailable:l,onCommitRangeChange:u,onDisplayModeChange:d,onDiffStyleChange:f}){return(0,P.jsxs)(`section`,{className:`review-scope-bar`,"aria-label":`レビュー範囲`,children:[(0,P.jsxs)(`div`,{className:`review-scope-control review-scope-commits`,children:[(0,P.jsx)(`span`,{children:`対象commit`}),(0,P.jsx)(Xx,{commits:n,selectedStartOid:t,selectedEndOid:e,latestHeadOid:r,specialSelected:i,specialSelectionLabel:a,onChange:u})]}),(0,P.jsxs)(`div`,{className:`review-scope-control review-scope-display`,children:[(0,P.jsx)(`span`,{children:`表示`}),(0,P.jsxs)(`div`,{className:`segmented`,"aria-label":`文書表示`,children:[(0,P.jsx)(`button`,{className:o===`full`?`active`:``,"aria-pressed":o===`full`,onClick:()=>d(`full`),children:`全文`}),(0,P.jsx)(`button`,{className:o===`diff`?`active`:``,"aria-pressed":o===`diff`,disabled:!c,onClick:()=>d(`diff`),children:`変更`})]})]}),(0,P.jsxs)(`div`,{className:`review-scope-control review-scope-style`,children:[(0,P.jsx)(`span`,{children:`Diff表示`}),(0,P.jsxs)(`div`,{className:`segmented diff-style-modes`,"aria-label":`Diff表示`,children:[(0,P.jsx)(`button`,{className:s===`unified`?`active`:``,"aria-pressed":s===`unified`,disabled:!l,onClick:()=>{d(`diff`),f(`unified`)},children:`stacked`}),(0,P.jsx)(`button`,{className:s===`split`?`active`:``,"aria-pressed":s===`split`,disabled:!l,onClick:()=>{d(`diff`),f(`split`)},children:`split`})]})]})]})}var Qx=[{preference:`light`,label:`ライトモード`},{preference:`dark`,label:`ダークモード`},{preference:`system`,label:`システム`}],$x=3e3;function eS(e){return e instanceof ht&&e.code===`PULL_REQUEST_NOT_FOUND`?"Pull Requestが見つかりません。`rvw open`から起動し直してください。":e instanceof Error?e.message:`PR commitがありません。`}function tS({initialThemePreference:e}){let t=Ve(),n=new URL(window.location.href).searchParams.get(`pullRequestId`),r=!!(n&&/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n)),i=r?n:null,[a,o]=(0,N.useState)(null),[s,c]=(0,N.useState)(null),[l,u]=(0,N.useState)(`full`),[d,f]=(0,N.useState)(`unified`),[p,m]=(0,N.useState)(!0),[h,g]=(0,N.useState)(!1),[_,v]=(0,N.useState)(`files`),[y,b]=(0,N.useState)(`changed`),[x,S]=(0,N.useState)({left:null,right:null}),C=(0,N.useRef)(x),w=(0,N.useRef)({left:null,right:null});C.current=x;let T=(0,N.useCallback)(e=>{let t=[...new Set(e)],n={...C.current};for(let e of t)n[e]=null,w.current[e]=null;C.current=n,S(e=>t.every(t=>e[t]===null)?e:{...e,...Object.fromEntries(t.map(e=>[e,null]))})},[]),{workspace:E,workspaceRef:D,setWorkspace:O,activateDocument:ee,openDocument:te,closeDocument:ne,closePaneDocuments:re,moveDocument:k,dropDocument:A}=Cx(T),[j,ie]=(0,N.useState)(Ux),[ae,M]=(0,N.useState)(Bx),[oe,se]=(0,N.useState)(null),[ce,le]=(0,N.useState)(null),[ue,de]=(0,N.useState)(``),[fe,pe]=(0,N.useState)(!1),[me,he]=(0,N.useState)(null),[ge,_e]=(0,N.useState)(``),[ve,ye]=(0,N.useState)(!1),[be,xe]=(0,N.useState)(!1),[Se,Ce]=(0,N.useState)(!1),[we,Te]=(0,N.useState)(0),[Ee,De]=(0,N.useState)(null),[Oe,ke]=(0,N.useState)(e),[Ae,je]=(0,N.useState)(null),Me=(0,N.useCallback)((e,t)=>{je(n=>t?e:n===e?null:n)},[]),Ne=(0,N.useRef)(!1),Pe=(0,N.useRef)(!1),Fe=(0,N.useRef)(null),Ie=(0,N.useRef)(null),Le=(0,N.useRef)(null),Re=(0,N.useRef)(null),ze=(0,N.useRef)(null),Be=(0,N.useRef)(0),He=(0,N.useRef)({left:0,right:0}),Ue=Wx(ge.trim(),250),We=(0,N.useMemo)(()=>[...E.documents.left,...E.documents.right],[E.documents.left,E.documents.right]),Ge=E.focusedPane,Ke=E.active[Ge],qe=(0,N.useRef)({left:null,right:null}),Je=(0,N.useRef)(new Map),Ye=(0,N.useRef)(!1),Xe=(0,N.useRef)(null),Ze=E.active.left?sb(`left`,E.active.left):null,Qe=E.active.right?sb(`right`,E.active.right):null,$e=(0,N.useRef)(E);(0,N.useLayoutEffect)(()=>{let e=$e.current;for(let t of[`left`,`right`]){let n=t===`left`?`right`:`left`;for(let r of e.documents[t]){let i=$(r),a=E.documents[t].some(e=>$(e)===i),o=e.documents[n].some(e=>$(e)===i),s=E.documents[n].some(e=>$(e)===i);if(a||o||!s)continue;let c=sb(t,r),l=Je.current.get(c);l!==void 0&&Je.current.set(sb(n,r),l)}}$e.current=E},[E]),(0,N.useLayoutEffect)(()=>{let e=qe.current.left;!e||!Ze||(e.scrollTop=Je.current.get(Ze)??0)},[Ze,we]),(0,N.useLayoutEffect)(()=>{let e=qe.current.right;!e||!Qe||(e.scrollTop=Je.current.get(Qe)??0)},[we,Qe]);let et=(0,N.useCallback)(()=>{if(!i)return null;let e=D.current,t=e.focusedPane,n=e.active[t];if(!n)return null;let r=$(n),a=sb(t,n),o=C.current[t],s=qe.current[t]?.scrollTop??Je.current.get(a)??0,c=w.current[t],l=o?.pane===t&&o.documentKey===r&&(!c||c.requestId!==o.requestId||c.documentKey!==r||c.pane!==t||Math.abs(c.top-s)<=1),u=o?.documentKey===r&&l?{kind:`line`,line:o.line,...o.endLine===void 0?{}:{endLine:o.endLine}}:{kind:`scroll`,top:s};return{version:1,pullRequestId:i,pane:t,document:n,locator:u}},[i]),nt=(0,N.useCallback)((e,t)=>{let n=C.current[e],r=D.current.active[e];!n||n.requestId!==t||n.pane!==e||!r||$(r)!==n.documentKey||(w.current[e]={requestId:t,documentKey:n.documentKey,pane:e,top:qe.current[e]?.scrollTop??Je.current.get(sb(e,r))??0})},[D]),at=(0,N.useCallback)(()=>{Xe.current!==null&&(window.clearTimeout(Xe.current),Xe.current=null)},[]),ot=(0,N.useCallback)(()=>{if(!Ye.current)return;let e=et();e&&window.history.replaceState(Ax(window.history.state,e),``)},[et]),st=(0,N.useCallback)(()=>{Ye.current&&(at(),Xe.current=window.setTimeout(()=>{Xe.current=null,ot()},150))},[at,ot]),ct=(0,N.useCallback)((e,t,n,r)=>{if(!i||!Ye.current)return;at();let a=D.current,o=a.active[a.focusedPane];ot();let s={version:1,pullRequestId:i,pane:t,document:e,locator:n};if(n.kind===`scroll`&&o&&a.focusedPane===t&&Tx(o,e)){window.history.replaceState(Ax(window.history.state,s),``);return}let c=new URL(window.location.href);c.hash=r??``,window.history.pushState(Ax(window.history.state,s),``,c)},[at,i,ot]),lt=(0,N.useCallback)((e,t,n,r)=>{Be.current+=1;let i={documentKey:e,pane:t,line:n.line,...n.endLine===void 0?{}:{endLine:n.endLine},requestId:Be.current,resetHorizontal:r};w.current[t]=null;let a={...C.current,[t]:i};C.current=a,S(a)},[]),ut=(0,N.useCallback)((e,t,n,r=!0)=>{let i=$(e),a=t??`left`,o=n??{kind:`scroll`,top:Je.current.get(sb(a,e))??0};ct(e,a,o),te(e,a),o.kind===`line`&<(i,a,o,r)},[te,ct,lt]),dt=(0,N.useCallback)((e,t,n,r)=>{let i=$(e),a={kind:`line`,line:n};ct(e,t,a,r),lt(i,t,a,!0)},[ct,lt]),ft=(0,N.useCallback)((e,t)=>ut(e,t),[ut]),mt=(0,N.useCallback)((e,t)=>{let n=D.current,r=t??hb(n,e);ct(e,r,{kind:`scroll`,top:Je.current.get(sb(r,e))??0}),ee(e,r)},[ee,ct]);(0,N.useEffect)(()=>{if(!Ee)return;let e=window.setTimeout(()=>De(null),$x);return()=>window.clearTimeout(e)},[Ee]);let gt=(0,N.useCallback)((e,t,n)=>{A(e,t,n),le(null)},[A]),_t=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.max(Lx,Math.min(Rx,n.width-zx));ie(Hx(e-n.left,Lx,r))},St=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.min(Vx,Math.max(160,(n.width-48)/2))/n.width*100,i=(e-n.left)/n.width*100;M(Hx(i,r,100-r))},Ct=e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),se(null)},wt=rt({queryKey:[`theme-preference`],queryFn:async()=>await vt(`/api/preferences/theme`)});(0,N.useEffect)(()=>{let e=wt.data?.themePreference;e&&(ke(e),ux(e),lx(e))},[wt.data?.themePreference]);let Tt=it({mutationFn:async e=>await vt(`/api/preferences/theme`,yt({themePreference:e})),onSuccess:e=>{t.setQueryData([`theme-preference`],e)}}),Et=e=>{ke(e),ux(e),lx(e),Tt.mutate(e)},Dt=rt({queryKey:[`pull-request`,i],queryFn:async()=>await vt(`/api/pull-requests/${i}`),enabled:!!i}),Ot=Dt.data?.commits??[],kt=Dt.data?.comparisonBaseOid??null,At=Dt.data?.headOid??null,jt=Dt.data?.pullRequest.latestTitle;(0,N.useEffect)(()=>{document.title=jt?`rvw: ${jt}`:`rvw`},[jt]);let Mt=Ot.findIndex(e=>e.oid===a),Nt=Ot[Mt],Pt=Ot.findIndex(e=>e.oid===s),Ft=a?_x(Ot,a):null,It=Pt>=0&&Pt<=Mt,Lt=yx(Ot,kt,s);(0,N.useEffect)(()=>{let e=Fe.current;if(At&&(!a||a===e)){let e=!!(Pe.current&&a&&s===a),t=Ot.some(e=>e.oid===s);o(At),c(Pe.current?e?At:t?s:_x(Ot,At):vx(Ot,At))}Fe.current=At},[Ot,At,s,a]),(0,N.useEffect)(()=>{It||c(Ft)},[Ft,It]);let Rt=l===`full`?`full`:Pt===0?`pull-request`:`range`,zt=(0,N.useCallback)(e=>{at();let t=D.current,n=$(e.document),r=mb(t,e.document),i=r.includes(e.pane)?e.pane:r[0]??e.pane;if(e.locator.kind===`scroll`&&Je.current.set(sb(i,e.document),e.locator.top),te(e.document,i),e.locator.kind===`line`){lt(n,i,e.locator,!0);return}let a=e.locator.top;window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{let e=qe.current[i];e&&(e.scrollTop=a)})})},[at,te,lt]);(0,N.useEffect)(()=>{let e=window.history.scrollRestoration;return window.history.scrollRestoration=`manual`,()=>{at(),window.history.scrollRestoration=e}},[at]),(0,N.useEffect)(()=>{if(!i)return;let e=e=>{let t=jx(e.state,i);t&&zt(t)};return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[i,zt]),(0,N.useEffect)(()=>{if(!i||!Dt.isSuccess||!a||Ye.current)return;Ye.current=!0;let e=et();if(!e)return;let t=new URL(window.location.href);t.hash=``,window.history.replaceState(Ax(window.history.state,e),``,t)},[et,i,Dt.isSuccess,a]),(0,N.useEffect)(()=>{let e=e=>{e.preventDefault(),e.returnValue=``};return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[]),(0,N.useEffect)(()=>{let e=e=>{!(e.metaKey||e.ctrlKey)||e.shiftKey||e.altKey||e.key.toLowerCase()!==`p`||(e.preventDefault(),Ce(!1),he(null),pe(!0))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,N.useEffect)(()=>{let e=e=>{!(e.metaKey||e.ctrlKey)||!e.shiftKey||e.key.toLowerCase()!==`f`||(e.preventDefault(),m(!0),v(`search`),window.requestAnimationFrame(()=>{ze.current?.focus(),ze.current?.select()}))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,N.useLayoutEffect)(()=>{Se&&Le.current?.querySelector(`[role^="menuitem"]:not(:disabled)`)?.focus()},[Se]),(0,N.useEffect)(()=>{if(!Se)return;let e=e=>{Le.current?.contains(e.target)||Ce(!1)},t=e=>{e.key===`Escape`&&(Ce(!1),Re.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[Se]);let Bt=e=>{let t=[...e.currentTarget.querySelectorAll(`[role^="menuitem"]:not(:disabled)`)];if(t.length===0)return;let n=t.indexOf(document.activeElement),r=null;e.key===`ArrowDown`&&(r=(n+1)%t.length),e.key===`ArrowUp`&&(r=(n-1+t.length)%t.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=t.length-1),r!==null&&(e.preventDefault(),t[r]?.focus())},Vt=(e,t)=>{let n=bx(Ot,e,t);n&&(Pe.current=!0,c(n.startOid),o(n.endOid),n.endOid!==a&&(T([`left`,`right`]),O(e=>({...e,documents:{left:e.documents.left.map(bb),right:e.documents.right.map(bb)},active:{left:e.active.left?bb(e.active.left):null,right:e.active.right?bb(e.active.right):null}}))))},Ut=rt({queryKey:[`tree`,i,a],queryFn:async()=>await vt(`/api/pull-requests/${i}/tree?oid=${encodeURIComponent(a)}`),enabled:!!(i&&a)}),Wt=rt({queryKey:[`changed-files`,i,Lt,a],queryFn:async()=>await vt(`/api/pull-requests/${i}/changed-files?oldOid=${encodeURIComponent(Lt)}&newOid=${encodeURIComponent(a)}`),enabled:!!(i&&Lt&&a&&Mt>=0&&Lt!==a)}),Gt=rt({queryKey:[`change-sequence`],queryFn:async()=>await vt(`/api/meta/change-sequence`,px()),refetchInterval:1e3,refetchIntervalInBackground:!0,networkMode:`always`});(0,N.useEffect)(()=>{let e=Gt.data?.changeSequence;if(e===void 0)return;let n=Ie.current;Ie.current=e,n!==null&&n!==e&&(t.invalidateQueries({queryKey:[`pull-request`]}),t.invalidateQueries({queryKey:[`document`]}),t.invalidateQueries({queryKey:[`annotations`]}),t.invalidateQueries({queryKey:[`comment-placement`]}),t.invalidateQueries({queryKey:[`search`]}),t.invalidateQueries({queryKey:[`walkthroughs`]}),t.invalidateQueries({queryKey:[`walkthrough`]}))},[Gt.data?.changeSequence,t]);let Kt=rt({queryKey:[`comments`,i,Gt.data?.changeSequence],queryFn:async()=>await vt(`/api/pull-requests/${i}/comments?resolved=all`),enabled:!!i,placeholderData:e=>e?.comments.every(e=>e.pullRequestId===i)?e:void 0}),qt=Kt.data?.comments??[],Jt=qt.filter(e=>!e.resolvedAt).length,Yt=rt({queryKey:[`walkthroughs`,i],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs`),enabled:!!i}),Xt=Yt.data?.walkthroughs??[];(0,N.useEffect)(()=>{if(!Yt.isSuccess)return;let e=new Map(Xt.map(e=>[e.id,e]));O(t=>{let n=t=>{if(t?.kind!==`walkthrough`)return t;let n=e.get(t.id);return n?{kind:`walkthrough`,id:n.id,title:n.title,sourceOid:n.sourceOid}:null},r={left:t.documents.left.map(n).filter(e=>e!==null),right:t.documents.right.map(n).filter(e=>e!==null)},i=(e,t)=>{let i=n(t);return i&&r[e].some(e=>$(e)===$(i))?i:r[e][0]??null};return gb({...t,documents:{left:r.left,right:r.right},active:{left:i(`left`,t.active.left),right:i(`right`,t.active.right)}})})},[Yt.data?.walkthroughs,Yt.isSuccess]);let Zt=(0,N.useMemo)(()=>[...new Set(We.filter(e=>e.kind===`walkthrough`).map(e=>e.id))],[We]),Qt=tt({queries:Zt.map(e=>({queryKey:[`walkthrough`,i,e],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs/${e}`),enabled:!!i}))}),$t=new Map,en=new Set;Zt.forEach((e,t)=>{let n=Qt[t],r=n?.data?.walkthrough;r&&$t.set(e,r),n?.isPending&&en.add(e)});let tn=(0,N.useMemo)(()=>{let e=Wt.data?.files??[];return wb((Ut.data?.entries??[]).map(e=>({path:e.path,entryKind:e.kind})),e)},[Wt.data?.files,Ut.data?.entries]),nn=(0,N.useMemo)(()=>y===`changed`?(Wt.data?.files??[]).map(e=>({path:Px(e),entryKind:`file`,changeKind:e.kind})):tn,[tn,Wt.data?.files,y]),rn=(0,N.useMemo)(()=>{let e=new Map;for(let t of Wt.data?.files??[])e.set(Px(t),t.kind),t.oldPath&&e.set(t.oldPath,t.kind),t.newPath&&e.set(t.newPath,t.kind);return e},[Wt.data?.files]),F=(0,N.useMemo)(()=>{if(!ue.trim())return nn;let e=new Set(pt.default.go(ue,nn.map(e=>e.path),{limit:100}).map(e=>e.target));return nn.filter(t=>e.has(t.path))},[ue,nn]),an=rt({queryKey:[`search`,i,a,Ue,ve,be],queryFn:async({signal:e})=>{let t=new URLSearchParams({oid:a,q:Ue,matchCase:String(ve),wholeWord:String(be)});return await vt(`/api/pull-requests/${i}/search?${t.toString()}`,{signal:e})},enabled:!!(i&&a&&Ue)}),on=it({mutationFn:async e=>await vt(`/api/pull-requests/${i}/refresh`,yt({})),onSuccess:async(e,n)=>{let r=a===At,i=s===a,l=s;if(await Promise.all([t.invalidateQueries({queryKey:[`pull-request`]}),t.invalidateQueries({queryKey:[`document`]}),t.invalidateQueries({queryKey:[`annotations`]}),t.invalidateQueries({queryKey:[`comment-placement`]}),t.invalidateQueries({queryKey:[`search`]})]),r||!a){o(e.headOid);let t=e.commits.some(e=>e.oid===l);c(Pe.current?i?e.headOid:t?l:_x(e.commits,e.headOid):vx(e.commits,e.headOid))}n.announce&&De(`GitHubと同期しました · ${new Intl.DateTimeFormat(`ja-JP`,{hour:`2-digit`,minute:`2-digit`}).format(new Date)}`)}});(0,N.useEffect)(()=>{!Dt.data||Ne.current||(Ne.current=!0,on.mutate({announce:!1}))},[Dt.data]);let I=it({mutationFn:async()=>{let e=await fetch(`/api/pull-requests/${i}/reset`,yt({yes:!1})),t=await e.json();if(e.status!==409||!t.counts)throw new ht(t.error?.message??`HTTP ${e.status}`,t.error?.code??`HTTP_ERROR`,t.error?.details,t.error?.suggestions??[]);let n=t.counts;return window.confirm(`ローカルレビュー状態を削除して再構築します。\n\nコメント ${n.comments??0}\n返信 ${n.posts??0}\nコメント内コード参照 ${n.commentReferences??0}\n対象 ${n.targets??0}\nウォークスルー ${n.walkthroughs??0}\nウォークスルーコード参照 ${n.walkthroughReferences??0}\nGit ref ${n.gitRefs??0}\n\nこの操作は元に戻せません。`)?await vt(`/api/pull-requests/${i}/reset`,yt({yes:!0})):null},onSuccess:async e=>{e&&(Ht(e.pullRequest.id),Je.current.clear(),Te(e=>e+1),O(ub()),T([`left`,`right`]),Pe.current=!1,o(e.pullRequest.latestHeadOid),c(vx(e.commits,e.pullRequest.latestHeadOid)),u(`full`),await t.invalidateQueries())}}),sn=(0,N.useCallback)((e,t=!1)=>{y===`changed`&&u(`diff`),ft({kind:`repository-file`,path:e},t?`right`:void 0)},[ft,y]),cn=(0,N.useCallback)((e,t,n)=>{ft({kind:`repository-file`,path:e,sourceOid:t,comparisonPolicy:`exact-source`},n)},[ft]),ln=(0,N.useCallback)((e,t,n)=>cn(e,t,n?`right`:`left`),[cn]),un=(e,t=!1)=>{let n=e.document.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:{kind:`repository-file`,path:e.path},r=D.current,i=$(n),o=t?`right`:`left`,s=r.documents[o].find(e=>$(e)===i?e.kind!==`repository-file`||e.sourceOid===void 0||e.sourceOid===a:!1)??n,c=r.active[o],l=!c||$(c)!==i;ut(s,o,{kind:`line`,line:e.line},l)},dn=(e,t,n)=>{let r=e.target,i=n?`right`:`left`,a=(e,t,n)=>{ut(e,i,{kind:`line`,line:t,...n===null?{}:{endLine:n}})};if(g(!0),je(e.id),r.kind===`pull-request`){a({kind:`pull-request-markdown`},null,null);return}let o=t?t.range?.startLine??null:r.startLine,s=t?t.range?.endLine??null:r.endLine;if(r.kind===`walkthrough`){let e=Xt.find(e=>e.id===r.walkthroughId);e&&a({kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid},o,s);return}if(r.documentKind===`pull-request-markdown`){a({kind:`pull-request-markdown`},o,s);return}a({kind:`repository-file`,path:r.path,sourceOid:r.sourceOid,comparisonPolicy:`exact-source`},o,s)},fn=(0,N.useCallback)((e,t=!1)=>{ft({kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid},t?`right`:void 0)},[ft]),pn=(0,N.useCallback)(async(e,n,r,i,a)=>{He.current[i]+=1;let o=He.current[i],s=D.current.navigationRevision[i],c=()=>o===He.current[i]&&D.current.navigationRevision[i]===s,l={kind:`repository-file`,pullRequestId:e,sourceOid:n,path:r.path};try{let e=await t.fetchQuery({queryKey:[`document`,l],queryFn:async()=>(await vt(bt(l))).document});if(!c())return null;if(e.availability!==`available`)return e.availability===`missing`?`リンク切れ · ${r.path}`:`参照先を表示できません · ${r.path}`}catch(e){return c()?e instanceof ht&&[`COMMIT_NOT_FOUND`,`DOCUMENT_NOT_FOUND`,`NOT_FOUND`].includes(e.code)?`リンク切れ · ${r.path}`:`参照先を開けません · ${r.path}`:null}let u={kind:`repository-file`,path:r.path,sourceOid:n,comparisonPolicy:a},d=$(u),f=D.current.active[i],p=!f||$(f)!==d;return ut(u,i,{kind:`line`,line:r.startLine,...r.endLine===null?{}:{endLine:r.endLine}},p),null},[ut,t]),mn=(0,N.useCallback)((e,t,n)=>pn(e.pullRequestId,e.sourceOid,t,n,`selected-range`),[pn]),hn=(0,N.useCallback)((e,t,n)=>mn(e,t,n?`right`:`left`),[mn]),gn=(0,N.useCallback)((e,t,n)=>i?pn(i,e,t,n,`exact-source`):Promise.resolve(`参照先を開けません · ${t.path}`),[pn,i]),_n=(0,N.useCallback)((e,t,n)=>gn(e,t,n?`right`:`left`),[gn]);if(!n)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:"Pull Request IDがURLにありません。`rvw open`から起動してください。"})]});if(!r||!i)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:"Pull Request IDの形式が正しくありません。`rvw open`から起動し直してください。"})]});if(Dt.isLoading)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:`レビュー状態を読み込んでいます…`})]});if(Dt.error||!Dt.data||!a)return(0,P.jsxs)(`main`,{className:`fatal-state`,children:[(0,P.jsx)(`h1`,{children:`rvw`}),(0,P.jsx)(`p`,{children:eS(Dt.error)})]});let vn=Dt.data.pullRequest,yn={documentDisplayMode:l,displayMode:Rt,selectedOid:a,changedFiles:Wt.data?.files,changedFilesLoaded:Wt.isSuccess,walkthroughDetails:$t,loadingWalkthroughIds:en},bn={left:Sx(E.active.left,yn),right:Sx(E.active.right,yn)},xn=Nt===void 0,Sn=!!(!xn&&Lt&&Lt!==a&&Object.values(E.active).some(e=>e!==null&&e.kind!==`walkthrough`)),Cn=!!(Sn&&Object.values(bn).some(e=>e.viewerDocument?.kind===`repository-file`&&e.activeChange)),wn=on.error??I.error??wt.error??Tt.error??Gt.error,Tn=E.documents.right.length>0||ce!==null,En=e=>{let t=E.documents[e],n=E.active[e],r=bn[e],i=r.viewerDocument;return(0,P.jsxs)(`section`,{ref:t=>{qe.current[e]=t},onScroll:t=>{i&&(Je.current.set(sb(e,i),t.currentTarget.scrollTop),D.current.focusedPane===e&&st())},className:`document-pane${Ge===e?` active`:``}${t.length===0?` empty`:``}`,"data-pane":e,"aria-label":`${e===`left`?`左`:`右`}のコードペイン`,onPointerDown:()=>O(t=>t.focusedPane===e?t:{...t,focusedPane:e}),children:[(0,P.jsx)(Wb,{paneId:e,documents:t,activeDocument:n,changeKindsByPath:rn,onActivate:t=>mt(t,e),onClose:t=>ne(t,e),onCloseOthers:t=>re(e,t),onCloseAll:()=>re(e),onMove:(t,n)=>k(t,e,n),onDropDocument:gt,onDragStartDocument:le,onDragEndDocument:()=>le(null)}),i?.kind===`walkthrough`&&r.walkthrough?(0,P.jsx)(Gb,{label:`ウォークスルー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`ウォークスルーを準備しています…`}),children:(0,P.jsx)(Nx,{walkthrough:r.walkthrough,comments:qt,activeCommentId:Ae,navigationTarget:x[e]?.documentKey===$(i)?x[e]:null,onNavigationApplied:t=>nt(e,t),themePreference:Oe,onCommentActiveChange:Me,onOpenReference:hn,onOpenCommentCodeReference:_n,onOpenRepositoryLink:ln,onDeleted:()=>ne(i,e)})})}):i?.kind===`walkthrough`?(0,P.jsxs)(`div`,{className:`empty-document-viewer`,children:[(0,P.jsx)(`strong`,{children:r.walkthroughLoading?`ウォークスルーを読み込んでいます…`:`ウォークスルーを読み込めませんでした。`}),!r.walkthroughLoading&&(0,P.jsx)(`span`,{children:`サイドバーからもう一度開いてください。`})]}):i?(0,P.jsx)(Gb,{label:`文書ビューアー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`文書を準備しています…`}),children:(0,P.jsx)(Mx,{pullRequestId:vn.id,paneId:e,selectedOid:a,oldOid:Lt,activeDocument:i,displayMode:r.effectiveDisplayMode,diffStyle:d,comments:qt,activeCommentId:Ae,fullViewNotice:r.fullViewNotice,fullViewUnavailableMessage:r.fullViewUnavailableMessage,themePreference:Oe,onCommentActiveChange:Me,navigationTarget:x[e]?.documentKey===$(i)?x[e]:null,onNavigationApplied:t=>nt(e,t),onOpenMarkdownFragment:(t,n)=>dt(i,e,t,n),onOpenCodeReference:_n,onOpenRepositoryLink:ln},`${we}:${e}:${a}:${Lt}:${r.effectiveDisplayMode}:${$(i)}:${i.kind===`repository-file`?`${i.sourceOid??``}:${i.comparisonPolicy??``}`:``}`)})}):(0,P.jsxs)(`div`,{className:`empty-document-viewer document-pane-drop-target`,children:[(0,P.jsx)(`strong`,{children:ce?`ここへドロップ`:`${e===`left`?`左`:`右`}ペイン`}),(0,P.jsx)(`span`,{children:`タブを移動するか、Cmd/Ctrl+クリックで文書を開けます。`})]})]})};return(0,P.jsxs)(`main`,{className:`app-shell`,children:[(0,P.jsx)(`a`,{className:`skip-link`,href:`#review-main-content`,children:`レビュー本文へ移動`}),(0,P.jsxs)(`header`,{className:`topbar`,children:[(0,P.jsxs)(`div`,{className:`brand`,children:[(0,P.jsx)(`span`,{className:`brand-mark`,children:`r`}),(0,P.jsx)(`strong`,{children:`rvw`})]}),(0,P.jsxs)(`div`,{className:`pr-heading`,children:[(0,P.jsxs)(`span`,{children:[vn.owner,`/`,vn.repository,` · #`,vn.number]}),(0,P.jsx)(`h1`,{children:(0,P.jsx)(`a`,{href:vn.url,target:`_blank`,rel:`noopener noreferrer`,children:vn.latestTitle})})]}),(0,P.jsx)(Zx,{selectedOid:a,selectedStartOid:s??a,commits:Ot,latestHeadOid:At,specialSelected:xn,specialSelectionLabel:Ke?.kind===`walkthrough`?`Walkthrough source`:`コメント元`,documentDisplayMode:l,diffStyle:d,comparisonAvailable:Sn,diffViewAvailable:Cn,onCommitRangeChange:Vt,onDisplayModeChange:u,onDiffStyleChange:f}),(0,P.jsxs)(`div`,{className:`topbar-menu`,ref:Le,children:[(0,P.jsx)(`button`,{ref:Re,className:`topbar-menu-toggle`,"aria-label":`その他の操作`,"aria-haspopup":`menu`,"aria-expanded":Se,onClick:()=>Ce(e=>!e),children:(0,P.jsx)(Yx,{})}),Se&&(0,P.jsxs)(`div`,{className:`topbar-menu-popover`,role:`menu`,onKeyDown:Bt,children:[(0,P.jsxs)(`button`,{role:`menuitem`,className:`topbar-menu-command`,onClick:()=>{Ce(!1),he(Re.current),pe(!0)},children:[(0,P.jsx)(`span`,{children:`ファイルを開く…`}),(0,P.jsx)(`kbd`,{children:`⌘ / Ctrl P`})]}),(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>{Ce(!1),De(null),on.mutate({announce:!0})},disabled:on.isPending,children:`GitHubと同期`}),(0,P.jsxs)(`div`,{className:`topbar-menu-section`,role:`group`,"aria-label":`UIテーマ`,children:[(0,P.jsx)(`span`,{className:`topbar-menu-section-label`,children:`UIテーマ`}),Qx.map(e=>(0,P.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":Oe===e.preference,disabled:Tt.isPending,onClick:()=>{Et(e.preference),Ce(!1)},children:[(0,P.jsx)(`span`,{children:e.label}),(0,P.jsx)(`span`,{className:`topbar-menu-check`,"aria-hidden":`true`,children:Oe===e.preference?`✓`:``})]},e.preference))]}),(0,P.jsx)(`button`,{className:`topbar-menu-danger`,role:`menuitem`,onClick:()=>{Ce(!1),I.mutate()},disabled:I.isPending,children:`ローカル状態を削除して再構築`})]})]})]}),fe&&(0,P.jsx)(rx,{open:!0,returnFocusElement:me,files:tn,openDocuments:We,activeDocument:Ke,loading:Ut.isPending,error:Ut.error,onClose:()=>pe(!1),onOpen:(e,t)=>ft(e,t?`right`:`left`)}),(0,P.jsx)(xt,{error:wn}),Ee&&(0,P.jsx)(`div`,{className:`sync-feedback`,role:`status`,children:Ee}),(0,P.jsxs)(`div`,{className:`workspace${oe?` is-resizing`:``}`,style:{"--sidebar-width":`${j}px`},children:[(0,P.jsxs)(`aside`,{className:`sidebar`,"aria-label":`レビューサイドバー`,children:[(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--code${p?` is-expanded`:``}`,children:[(0,P.jsxs)(`div`,{className:`sidebar-stack-header`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":p,onClick:()=>m(e=>!e),children:[(0,P.jsx)(Ey,{kind:`file`}),(0,P.jsx)(`span`,{children:_===`search`?`コード検索`:`エクスプローラー`}),(0,P.jsx)(Kx,{expanded:p})]}),(0,P.jsx)(`button`,{type:`button`,className:`sidebar-stack-action${_===`search`?` active`:``}`,"aria-label":_===`search`?`ファイルツリーに戻る`:`コード検索を開く`,"aria-pressed":_===`search`,title:_===`search`?`ファイルツリーに戻る`:`コード検索 (⌘ / Ctrl Shift F)`,onClick:()=>{if(_===`search`){v(`files`);return}m(!0),v(`search`),window.requestAnimationFrame(()=>{ze.current?.focus(),ze.current?.select()})},children:_===`search`?(0,P.jsx)(Jx,{}):(0,P.jsx)(qx,{})})]}),(0,P.jsx)(`div`,{className:`sidebar-stack-body sidebar-code-body`,hidden:!p||_!==`files`,children:(0,P.jsxs)(`div`,{className:`file-panel`,children:[(0,P.jsx)(Vb,{walkthroughs:Xt,pullRequestActive:Ke?.kind===`pull-request-markdown`,activeWalkthroughId:Ke?.kind===`walkthrough`?Ke.id:null,onOpenPullRequest:e=>{if(e){ft({kind:`pull-request-markdown`},`right`);return}ft({kind:`pull-request-markdown`})},onOpen:fn}),(0,P.jsx)(xt,{error:Yt.error}),(0,P.jsx)(`input`,{value:ue,onChange:e=>de(e.target.value),placeholder:`ファイル名を検索`}),(0,P.jsxs)(`label`,{className:`file-scope-checkbox`,children:[(0,P.jsx)(`input`,{type:`checkbox`,checked:y===`all`,onChange:e=>b(e.target.checked?`all`:`changed`)}),(0,P.jsx)(`span`,{children:`変更のないファイルも表示`})]}),(0,P.jsx)(xt,{error:y===`changed`?Wt.error:Ut.error}),(0,P.jsx)(`nav`,{className:`file-tree`,children:(0,P.jsx)(zb,{files:F,activePath:Ke?.kind===`repository-file`?Ke.path:null,filtering:!!ue.trim(),initiallyExpanded:y===`changed`?`all`:`active-file`,onOpenFile:sn},`${s}:${a}:${y}:${y===`changed`?Wt.dataUpdatedAt:Ut.dataUpdatedAt}`)})]})}),(0,P.jsx)(`div`,{className:`sidebar-stack-body sidebar-code-body`,hidden:!p||_!==`search`,children:(0,P.jsx)(Xb,{inputRef:ze,query:ge,matchCase:ve,wholeWord:be,changeKindsByPath:rn,response:Ue?an.data:void 0,isFetching:!!(Ue&&an.isFetching),error:Ue?an.error:null,onQueryChange:_e,onMatchCaseChange:ye,onWholeWordChange:xe,onOpenResult:un})})]}),(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--comments${h?` is-expanded`:``}`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":h,onClick:()=>g(e=>!e),children:[(0,P.jsx)(Gx,{}),(0,P.jsx)(`span`,{children:`コメント`}),(0,P.jsx)(`span`,{className:`sidebar-stack-count`,children:Jt}),(0,P.jsx)(Kx,{expanded:h})]}),(0,P.jsxs)(`div`,{className:`sidebar-stack-body`,hidden:!h,children:[(0,P.jsx)(xt,{error:Kt.error}),(0,P.jsx)(ab,{comments:qt,walkthroughs:Xt,pullRequestId:vn.id,selectedOid:a,themePreference:Oe,onCommentActiveChange:Me,onOpenCodeReference:_n,onOpenTarget:dn,onOpenRepositoryLink:ln})]})]})]}),(0,P.jsx)(`div`,{className:`horizontal-resize-handle sidebar-resize-handle${oe===`sidebar`?` active`:``}`,role:`separator`,"aria-label":`サイドバーの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":Lx,"aria-valuemax":Rx,"aria-valuenow":Math.round(j),tabIndex:0,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),se(`sidebar`),_t(e.clientX,e.currentTarget.parentElement))},onPointerMove:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&_t(e.clientX,e.currentTarget.parentElement)},onPointerUp:Ct,onPointerCancel:Ct,onLostPointerCapture:()=>se(null),onDoubleClick:()=>ie(Ux()),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),ie(t=>Hx(t+(e.key===`ArrowLeft`?-16:16),Lx,Rx)))}}),(0,P.jsxs)(`section`,{id:`review-main-content`,tabIndex:-1,className:`main-view${Tn?` two-pane`:``}${oe===`panes`?` is-resizing`:``}`,style:Tn?{gridTemplateColumns:`minmax(${Vx}px, ${ae}fr) 6px minmax(${Vx}px, ${100-ae}fr)`}:void 0,children:[En(`left`),Tn&&(0,P.jsx)(`div`,{className:`horizontal-resize-handle pane-resize-handle${oe===`panes`?` active`:``}`,role:`separator`,"aria-label":`左右ペインの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(ae),tabIndex:0,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),se(`panes`),St(e.clientX,e.currentTarget.parentElement))},onPointerMove:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&St(e.clientX,e.currentTarget.parentElement)},onPointerUp:Ct,onPointerCancel:Ct,onLostPointerCapture:()=>se(null),onDoubleClick:()=>M(Bx),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),M(t=>Hx(t+(e.key===`ArrowLeft`?-2:2),20,80)))}}),Tn&&En(`right`)]})]})]})}hx();var nS=new Fe({defaultOptions:{queries:{retry:1,staleTime:500},mutations:{retry:!1}}}),rS=document.getElementById(`root`);if(!rS)throw Error(`root elementがありません。`);async function iS(){let e=cx();ux(e);try{let e=await vt(`/api/preferences/theme`);return lx(e.themePreference),nS.setQueryData([`theme-preference`],e),e.themePreference}catch(t){return console.warn(`共有テーマ設定を読み込めませんでした。ブラウザーの設定を使用します。`,t),e}}iS().then(e=>{ux(e),(0,ft.createRoot)(rS).render((0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(He,{client:nS,children:(0,P.jsx)(tS,{initialThemePreference:e})})}))});export{Xt as A,vt as B,el as C,An as D,Nn as E,zt as F,rt as G,yt as H,Bt as I,Le as J,Ve as K,Ct as L,jt as M,Mt as N,jn as O,Vt as P,wt as R,ml as S,Dc as T,ct as U,bt as V,it as W,s_ as _,Fy as a,im as b,Ay as c,m_ as d,g_ as f,u_ as g,__ as h,zy as i,Wt as j,Dn as k,ky as l,h_ as m,nb as n,Py as o,p_ as p,ze as q,Uy as r,Ny as s,Bb as t,Ey as u,pm as v,Cc as w,zp as x,fm as y,xt as z};
|