@a9n-shoji/rvw 0.2.0 → 0.2.1
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 +21 -0
- package/README.md +10 -6
- package/dist/cli.mjs +492 -307
- package/dist/cli.mjs.map +3 -3
- package/dist/web/assets/{DocumentViewer-CNgHpCuL.js → DocumentViewer-DvrDlIpR.js} +33 -33
- package/dist/web/assets/{markdown-source-map-_dS1q5Dg.js → MarkdownTable-DbDc9VoP.js} +2 -2
- package/dist/web/assets/WalkthroughViewer-aDUeKC3B.js +1 -0
- package/dist/web/assets/{abnfDiagram-N423BO3Z-0v-ndtqQ.js → abnfDiagram-N423BO3Z-fQDP4qYL.js} +1 -1
- package/dist/web/assets/architecture-TIHT7OUA-CuFS9GkN.js +1 -0
- package/dist/web/assets/{architectureDiagram-T3A2C74G-WSNJ-tZE.js → architectureDiagram-T3A2C74G-D3Aon3Nd.js} +1 -1
- package/dist/web/assets/{blockDiagram-VBNYF7ZC-lmMbEUwI.js → blockDiagram-VBNYF7ZC-DS1DcAqy.js} +1 -1
- package/dist/web/assets/{c4Diagram-5PPSVZJV-BrN5YVV8.js → c4Diagram-5PPSVZJV-BHQWz7l2.js} +1 -1
- package/dist/web/assets/channel-CTWz7tRI.js +1 -0
- package/dist/web/assets/{chunk-2GRJ4B5K-gt2JPyrH.js → chunk-2GRJ4B5K-CaahxDVT.js} +1 -1
- package/dist/web/assets/{chunk-4I5QYGJK-Cg5GZ_-7.js → chunk-4I5QYGJK-Bat5hdXD.js} +1 -1
- package/dist/web/assets/{chunk-5RXB4S5H-BdhRGvxW.js → chunk-5RXB4S5H-jyonN41f.js} +1 -1
- package/dist/web/assets/{chunk-6Q2QTUOP-B1DYWNVJ.js → chunk-6Q2QTUOP-BBo9TYzL.js} +1 -1
- package/dist/web/assets/{chunk-7Z6QIM7H-D2YImamZ.js → chunk-7Z6QIM7H-CGSwsKhC.js} +1 -1
- package/dist/web/assets/{chunk-GF5L2VYU-CWtwL_CM.js → chunk-GF5L2VYU-Cuca3bAY.js} +1 -1
- package/dist/web/assets/{chunk-I66GZJ75-DdoGlxMt.js → chunk-I66GZJ75-DRdqLSyH.js} +1 -1
- package/dist/web/assets/{chunk-JQJVKLGR-CVWAp3XP.js → chunk-JQJVKLGR-8xhLkhs2.js} +1 -1
- package/dist/web/assets/{chunk-KBJHAD2P-BBacwg3J.js → chunk-KBJHAD2P-oOV-3e5-.js} +1 -1
- package/dist/web/assets/{chunk-NSK5VX7P-1AsXiBV3.js → chunk-NSK5VX7P-CXit1l3q.js} +1 -1
- package/dist/web/assets/{chunk-QR6OTTB3-DL2s5pNp.js → chunk-QR6OTTB3-DcdCU-01.js} +1 -1
- package/dist/web/assets/{chunk-UBXNYLIW-mu3fkNQI.js → chunk-UBXNYLIW-i72Hgljr.js} +1 -1
- package/dist/web/assets/{chunk-W5SLKNZC-BAwhMBBb.js → chunk-W5SLKNZC-DetAQo7M.js} +1 -1
- package/dist/web/assets/{chunk-WRU74C26-C7IeXZaP.js → chunk-WRU74C26-DDUvJFNs.js} +1 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-BJQv9QuO.js +1 -0
- package/dist/web/assets/classDiagram-v2-OCEON4UE-BJQv9QuO.js +1 -0
- package/dist/web/assets/{cynefin-VYW2F7L2-DNisGvNv.js → cynefin-VYW2F7L2-fd-v6ani.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-MW4NZA55-BA27gOTz.js → cynefinDiagram-MW4NZA55-DRsVpAC3.js} +1 -1
- package/dist/web/assets/{dagre-VZM6K2ZE-vo_1YAuM.js → dagre-VZM6K2ZE-BnRSs_fe.js} +1 -1
- package/dist/web/assets/{diagram-7IWD3JNH-DLLdUj0_.js → diagram-7IWD3JNH-D1g0PR4y.js} +1 -1
- package/dist/web/assets/{diagram-B4RE2ZJO-BV0WyNA-.js → diagram-B4RE2ZJO-DuDKsQLp.js} +1 -1
- package/dist/web/assets/{diagram-LBJQPF4R-DXxKSx2U.js → diagram-LBJQPF4R-COpzgGe7.js} +1 -1
- package/dist/web/assets/{diagram-Q27KOJAE-DsQ2GzIK.js → diagram-Q27KOJAE-DR2vRbPE.js} +1 -1
- package/dist/web/assets/{diagram-UB23O5K3-DfjElFP1.js → diagram-UB23O5K3-hs4VGPP7.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-BXEA7PRR-cYu0XV1a.js → ebnfDiagram-BXEA7PRR-B_4NlK9q.js} +1 -1
- package/dist/web/assets/{erDiagram-JOGREHBK-DnsLBHaV.js → erDiagram-JOGREHBK-JyoZ3U-o.js} +1 -1
- package/dist/web/assets/eventmodeling-45OFAUF4-CfUhQK5g.js +1 -0
- package/dist/web/assets/flowDiagram-UKHOOZJN-FFZ82SPa.js +1 -0
- package/dist/web/assets/{ganttDiagram-PKOTCBZU-CVD5gq3E.js → ganttDiagram-PKOTCBZU-f37I0Twm.js} +1 -1
- package/dist/web/assets/{gitGraph-TEB2WS4Q-C_j0n-Kw.js → gitGraph-TEB2WS4Q-B_QWjr7j.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-DS77QQ5N-qACevJmW.js → gitGraphDiagram-DS77QQ5N-AZsaC0hu.js} +1 -1
- package/dist/web/assets/{index-Coye1BY5.js → index-CY_JoUL3.js} +98 -98
- package/dist/web/assets/index-kK3hngnz.css +1 -0
- package/dist/web/assets/{info-DKCQHKI2-Cmkbz3Yi.js → info-DKCQHKI2-BRfisbEI.js} +1 -1
- package/dist/web/assets/{infoDiagram-6WML65LV-CDrAem7M.js → infoDiagram-6WML65LV-CaIb64N5.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-DXgCnFqW.js → ishikawaDiagram-WSZJBQD7-BoJrcTja.js} +1 -1
- package/dist/web/assets/{journeyDiagram-NVQOT4AX-1KW-I7DV.js → journeyDiagram-NVQOT4AX-CRR1dZy8.js} +1 -1
- package/dist/web/assets/{kanban-definition-27J2QSJJ-CCt75OuF.js → kanban-definition-27J2QSJJ-D5skDuP4.js} +1 -1
- package/dist/web/assets/{line-DQfkDi_r.js → line-BKKx0vSh.js} +1 -1
- package/dist/web/assets/{mermaid-parser.core-B7TMMtY0.js → mermaid-parser.core-DvZnIth0.js} +3 -3
- package/dist/web/assets/{mermaid.core-B93x-7Mk.js → mermaid.core-hykiOF_o.js} +4 -4
- package/dist/web/assets/{mindmap-definition-FAOFIHXS-Dyt28V6S.js → mindmap-definition-FAOFIHXS-BN2LQ4Yn.js} +1 -1
- package/dist/web/assets/{packet-7NZHBO7P-zQ0u35s3.js → packet-7NZHBO7P-CS5I0NlV.js} +1 -1
- package/dist/web/assets/{pegDiagram-VL7TDLO6-et0KHGIE.js → pegDiagram-VL7TDLO6-WvOdhbxo.js} +1 -1
- package/dist/web/assets/{pie-RZYD4A2V-uur86LkQ.js → pie-RZYD4A2V-BwNAZrQ1.js} +1 -1
- package/dist/web/assets/{pieDiagram-7S7Q4E2Y-c027WPTB.js → pieDiagram-7S7Q4E2Y-CbyrZjm7.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-CIZ2JOQS-BtSV4E-0.js → quadrantDiagram-CIZ2JOQS-CW9YBxAO.js} +1 -1
- package/dist/web/assets/{radar-I7S5WNFK-B_g0VZMF.js → radar-I7S5WNFK-DBoCLDNH.js} +1 -1
- package/dist/web/assets/{railroad-3IZDKUUU-VFLsM_Em.js → railroad-3IZDKUUU-BOjpYyDz.js} +1 -1
- package/dist/web/assets/railroad-abnf-AHOZXSZD-DQhDS2pf.js +1 -0
- package/dist/web/assets/railroad-ebnf-EBAXGLYW-Dtt2kOaN.js +1 -0
- package/dist/web/assets/railroad-peg-LSFZ7HO6-nfH8zno6.js +1 -0
- package/dist/web/assets/{railroadDiagram-AXF67PYL-uOtnxRbQ.js → railroadDiagram-AXF67PYL-BdOOOq8o.js} +1 -1
- package/dist/web/assets/{requirementDiagram-LRYGKXZP-DGSZAsj4.js → requirementDiagram-LRYGKXZP-DIYlSrTb.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-W5VNT64P-CCDk8Vxt.js → sankeyDiagram-W5VNT64P-Cc1IGxp_.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-SI44F4Z6-Ce-Jzdk5.js → sequenceDiagram-SI44F4Z6-CJsPO9Z9.js} +1 -1
- package/dist/web/assets/{stateDiagram-OKZ733FA-BYpYzyEa.js → stateDiagram-OKZ733FA-B033gpHZ.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-wS01qj3t.js +1 -0
- package/dist/web/assets/{swimlanes-SLNWSIFB-BL-CUc6d.js → swimlanes-SLNWSIFB-C0Tstg7e.js} +1 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-DoAqfWAd.js +8 -0
- package/dist/web/assets/{timeline-definition-Z64GVDOM-p9pkof_K.js → timeline-definition-Z64GVDOM-BA3y-16W.js} +1 -1
- package/dist/web/assets/{treeView-QDETBFTQ-dRhXTU9p.js → treeView-QDETBFTQ-BUNq-JXr.js} +1 -1
- package/dist/web/assets/{treemap-6X3UGDF4-CZHe3dIh.js → treemap-6X3UGDF4-FIR_NbUo.js} +1 -1
- package/dist/web/assets/{vennDiagram-T6HMQDX7-ipODJegx.js → vennDiagram-T6HMQDX7-IeFFjnlq.js} +1 -1
- package/dist/web/assets/{wardley-OPB4EBWU-CxHlVjkF.js → wardley-OPB4EBWU-DQAX4LKo.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-T6FBY63Y-YarkIncH.js → wardleyDiagram-T6FBY63Y-guGPPMAG.js} +1 -1
- package/dist/web/assets/{xychartDiagram-ELKLHX3M-Cw1M-7a4.js → xychartDiagram-ELKLHX3M-Cj0v359_.js} +1 -1
- package/dist/web/index.html +2 -2
- package/migrations/010_comment_post_references.sql +17 -0
- package/package.json +1 -1
- package/skills/rvw/SKILL.md +35 -3
- package/skills/rvw-walkthrough/SKILL.md +1 -1
- package/skills/rvw-watch-comments/SKILL.md +186 -67
- package/skills/rvw-watch-comments/scripts/auto-ack.mjs +211 -0
- package/skills/rvw-watch-comments/scripts/preflight.mjs +108 -0
- package/skills/rvw-watch-comments/scripts/rvw-command.mjs +80 -0
- package/skills/rvw-watch-comments/scripts/watch-driver.mjs +272 -0
- package/skills/rvw-watch-comments/scripts/watch-state.mjs +111 -8
- package/dist/web/assets/WalkthroughViewer-BVB3ETHG.js +0 -1
- package/dist/web/assets/architecture-TIHT7OUA-BjGWtjPU.js +0 -1
- package/dist/web/assets/channel-DkH22XO0.js +0 -1
- package/dist/web/assets/classDiagram-JCYQIIEL-C6Z4rmZR.js +0 -1
- package/dist/web/assets/classDiagram-v2-OCEON4UE-C6Z4rmZR.js +0 -1
- package/dist/web/assets/eventmodeling-45OFAUF4-BUAcQ5NU.js +0 -1
- package/dist/web/assets/flowDiagram-UKHOOZJN-hAe9ojjP.js +0 -1
- package/dist/web/assets/index-DFdYNMZE.css +0 -1
- package/dist/web/assets/railroad-abnf-AHOZXSZD-TVRi9_2L.js +0 -1
- package/dist/web/assets/railroad-ebnf-EBAXGLYW-B5B-JrS4.js +0 -1
- package/dist/web/assets/railroad-peg-LSFZ7HO6-CfIpa6ba.js +0 -1
- package/dist/web/assets/stateDiagram-v2-UEYNNEHI-BJFG9cb2.js +0 -1
- package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-BS8L8fb1.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-hykiOF_o.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-B6xuSHsQ.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-I66GZJ75-DRdqLSyH.js","assets/chunk-NSK5VX7P-CXit1l3q.js","assets/dist-v5Q1xZ2K.js","assets/chunk-4I5QYGJK-Bat5hdXD.js","assets/chunk-WRU74C26-DDUvJFNs.js","assets/chunk-7BUUIJ7U-Bb538aSH.js","assets/chunk-UBXNYLIW-i72Hgljr.js","assets/chunk-W5SLKNZC-DetAQo7M.js","assets/chunk-QR6OTTB3-DcdCU-01.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-7Z6QIM7H-CGSwsKhC.js","assets/line-BKKx0vSh.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/DocumentViewer-DvrDlIpR.js","assets/MarkdownTable-DbDc9VoP.js","assets/WalkthroughViewer-aDUeKC3B.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(`
|
|
@@ -36,243 +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=Xm(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}nh.peek=rh;function nh(e){return e.value||``}function rh(){return`<`}ih.peek=ah;function ih(e,t,n,r){let i=qm(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 ah(){return`!`}oh.peek=sh;function oh(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 sh(){return`!`}ch.peek=lh;function ch(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 lh(){return"`"}function uh(e,t){let n=ar(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))}dh.peek=fh;function dh(e,t,n,r){let i=qm(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(uh(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 fh(e,t,n){return uh(e,n)?`<`:`[`}ph.peek=mh;function ph(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 hh(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 gh(e){let t=hh(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 _h(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function vh(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 yh(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?_h(n):hh(n),s=e.ordered?o===`.`?`)`:`.`:gh(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),vh(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 bh(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 xh(e,t,n,r){let i=bh(n),a=n.bulletCurrent||hh(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 Sh(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Ch=Zo([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function wh(e,t,n,r){return(e.children.some(function(e){return Ch(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Th(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Eh.peek=Dh;function Eh(e,t,n,r){let i=Th(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=Zm(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Xm(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Zm(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Xm(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Dh(e,t,n){return n.options.strong||`*`}function Oh(e,t,n,r){return n.safe(e.value,r)}function kh(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 Ah(e,t,n){let r=(vh(n)+(n.options.ruleSpaces?` `:``)).repeat(kh(n));return n.options.ruleSpaces?r.slice(0,-1):r}var jh={blockquote:Lm,break:Vm,code:Gm,definition:Jm,emphasis:Qm,hardBreak:Vm,heading:th,html:nh,image:ih,imageReference:oh,inlineCode:ch,link:dh,linkReference:ph,list:yh,listItem:xh,paragraph:Sh,root:wh,strong:Eh,text:Oh,thematicBreak:Ah};function Mh(){return{enter:{table:Nh,tableData:Lh,tableHeader:Lh,tableRow:Fh},exit:{codeText:Rh,table:Ph,tableData:Ih,tableHeader:Ih,tableRow:Ih}}}function Nh(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 Ph(e){this.exit(e),this.data.inTable=void 0}function Fh(e){this.enter({type:`tableRow`,children:[]},e)}function Ih(e){this.exit(e)}function Lh(e){this.enter({type:`tableCell`,children:[]},e)}function Rh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,zh));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function zh(e,t){return t===`|`?t:e}function Bh(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 Pm(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=jh.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Vh(){return{exit:{taskListCheckValueChecked:Uh,taskListCheckValueUnchecked:Uh,paragraph:Wh}}}function Hh(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Gh}}}function Uh(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Wh(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 Gh(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=jh.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 Kh(){return[Qp(),Sm(),Dm(),Mh(),Vh()]}function qh(e){return{extensions:[$p(),Cm(e),Om(),Bh(e),Hh()]}}var Jh={tokenize:cg,partial:!0},Yh={tokenize:lg,partial:!0},Xh={tokenize:ug,partial:!0},Zh={tokenize:dg,partial:!0},Qh={tokenize:fg,partial:!0},$h={name:`wwwAutolink`,tokenize:og,previous:pg},eg={name:`protocolAutolink`,tokenize:sg,previous:mg},tg={name:`emailAutolink`,tokenize:ag,previous:hg},ng={};function rg(){return{text:ng}}for(var ig=48;ig<123;)ng[ig]=tg,ig++,ig===58?ig=65:ig===91&&(ig=97);ng[43]=tg,ng[45]=tg,ng[46]=tg,ng[95]=tg,ng[72]=[tg,eg],ng[104]=[tg,eg],ng[87]=[tg,$h],ng[119]=[tg,$h];function ag(e,t,n){let r=this,i,a;return o;function o(t){return!gg(t)||!hg.call(r,r.previous)||_g(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return gg(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Qh,u,l)(t):t===45||t===95||br(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&&yr(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function og(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!pg.call(r,r.previous)||_g(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Jh,e.attempt(Yh,e.attempt(Xh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function sg(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&mg.call(r,r.previous)&&!_g(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(yr(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||Sr(t)||Er(t)||Or(t)||Dr(t)?n(t):e.attempt(Yh,e.attempt(Xh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function cg(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 lg(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Zh,c,s)(t):t===null||Er(t)||Or(t)||t!==45&&Dr(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 ug(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(Zh,t,a)(o):o===null||Er(o)||Or(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function dg(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||Er(o)||Or(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Er(e)||Or(e)?t(e):r(e)}function a(e){return yr(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):yr(t)?(e.consume(t),o):n(t)}}function fg(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return br(e)?n(e):t(e)}}function pg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Er(e)}function mg(e){return!yr(e)}function hg(e){return!(e===47||gg(e))}function gg(e){return e===43||e===45||e===46||e===95||br(e)}function _g(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 vg={tokenize:Eg,partial:!0};function yg(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Cg,continuation:{tokenize:wg},exit:Tg}},text:{91:{name:`gfmFootnoteCall`,tokenize:Sg},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bg,resolveTo:xg}}}}function bg(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=vr(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 xg(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 Sg(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||Er(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(vr(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Er(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 Cg(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||Er(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=vr(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Er(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),jr(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function wg(e,t,n){return e.check(Kr,t,e.attempt(vg,t,n))}function Tg(e){e.exit(`gfmFootnoteDefinition`)}function Eg(e,t,n){let r=this;return jr(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 Dg(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&&dr(o,o.length,0,zr(s,e.slice(r+1,n),t)),dr(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),dr(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=Rr(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=Rr(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Og=class{constructor(){this.map=[]}add(e,t,n){kg(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 kg(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 Ag(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 jg(){return{flow:{null:{name:`table`,tokenize:Mg,resolveAll:Ng}}}}function Mg(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)?jr(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||Er(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)?jr(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)?jr(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)?jr(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)?jr(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Er(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 Ng(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 Og;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Fg(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=Pg(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=Pg(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=Pg(f,t,o,i,n,d)):(o[0]=o[1],d=Pg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Fg(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=Ag(t.events,n))}return e}function Pg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Ig(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Ig(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=Ig(t.events,n[2]),a=Ig(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({},Ig(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Fg(e,t,n,r,i){let a=[],o=Ig(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 Ig(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Lg={name:`tasklistCheck`,tokenize:zg};function Rg(){return{text:{91:Lg}}}function zg(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 Er(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:Bg},t,n)(r):n(r)}}function Bg(e,t,n){return jr(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Vg(e){return mr([rg(),yg(),Dg(e),jg(),Rg()])}var Hg={};function Ug(e){let t=this,n=e||Hg,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Vg(n)),a.push(Kh()),o.push(qh(n))}var Wg=/^[A-Za-z][A-Za-z\d+.-]*:/;function Gg(e,t,n){return`/api/pull-requests/${e}/markdown-asset?${new URLSearchParams({sourceOid:t,path:n}).toString()}`}function Kg(e,t){return!!(e&&Math.hypot(t.x-e.x,t.y-e.y)>4)}function qg(e){if(!e)return!1;let t=e.trim();return Wg.test(t)||t.startsWith(`//`)}function Jg(e,t){if(!e)return null;let n=e.trim();if(n.length===0||n.startsWith(`#`)||n.startsWith(`?`)||qg(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}function Yg({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 Xg=`modulepreload`,Zg=function(e){return`/`+e},Qg={},$g=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=Zg(t,n),t=s(t),t in Qg)return;Qg[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`:Xg,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)})},e_=Promise.resolve(),t_=`(prefers-color-scheme: dark)`;function n_(){let[e,t]=(0,N.useState)(()=>window.matchMedia(t_).matches);return(0,N.useEffect)(()=>{let e=window.matchMedia(t_),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function r_({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=n_(),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 e_=e_.then(async()=>{let{default:n}=await $g(async()=>{let{default:e}=await import(`./mermaid.core-B93x-7Mk.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 i_(e){return N.Children.toArray(e).map(e=>typeof e==`string`||typeof e==`number`?String(e):(0,N.isValidElement)(e)?i_(e.props.children):``).join(``)}function a_({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)(r_,{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 o_({body:e,pullRequestId:t,sourceOid:n,sourcePath:r,themePreference:i,onOpenRepositoryLink:a}){let o=(0,N.useRef)(null),s=(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,...s})=>{let c=Jg(e,r);if(!c){if(!e)return(0,P.jsx)(`span`,{children:t});let n=qg(e);return(0,P.jsx)(`a`,{...s,href:e,target:n?`_blank`:void 0,rel:n?`noopener noreferrer`:void 0,children:t})}return a?(0,P.jsx)(`a`,{...s,href:e,onPointerDown:e=>{e.button===0&&(o.current={x:e.clientX,y:e.clientY})},onPointerUp:e=>{if(e.button!==0||!o.current)return;let t=Kg(o.current,{x:e.clientX,y:e.clientY});if(o.current=null,t){e.currentTarget.dataset.rvwLinkDragged=`true`;return}e.preventDefault(),a(c,n,e.metaKey||e.ctrlKey)},onPointerCancel:()=>{o.current=null},onClick:e=>{if(e.preventDefault(),e.currentTarget.dataset.rvwLinkDragged===`true`){delete e.currentTarget.dataset.rvwLinkDragged;return}e.detail===0&&a(c,n,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},children:t}):(0,P.jsx)(`span`,{className:`comment-markdown-unavailable-link`,title:c,children:t})},img:({src:e,alt:i,title:a,node:o,...s})=>{let c=Jg(e,r);return c?(0,P.jsx)(`img`,{...s,src:Gg(t,n,c),alt:i??``,title:a}):(0,P.jsx)(Yg,{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)(a_,{source:i_(r.props.children).trim(),themePreference:i})}}),[a,t,n,r,i]);return(0,P.jsx)(`div`,{className:`comment-markdown`,children:(0,P.jsx)(oc,{rehypePlugins:[xp,Bp],remarkPlugins:[Ug,Jp],components:s,children:e})})}var s_=new Map,c_=new Set;function l_(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 u_(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return[e.target.walkthroughTitle,l_(e,t)??`ウォークスルー全体`].join(` · `);let r=t?.path??(e.target.documentKind===`pull-request-markdown`?`Pull Request.md`:e.target.path),i=l_(e,t)??`文書全体`;return[r,n===`deletions`?`変更前`:n===`additions`?`変更後`:null,i].filter(Boolean).join(` · `)}function d_(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return l_(e,t)??`ウォークスルー全体`;let r=l_(e,t)??(e.target.documentKind===`pull-request-markdown`?`文書全体`:`ファイル全体`);return n===`deletions`?`変更前 · ${r}`:r}function f_(e){return e.target.kind===`pull-request`?`Pull Request.mdを開く`:`コメント対象を開く`}function p_(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 m_({comment:e,post:t,markdownSourceOid:n,themePreference:r,onOpenRepositoryLink:i}){let a=e.target.kind===`document`&&e.target.documentKind===`repository-file`?e.target:null,o=t.relatedCommitOid??a?.sourceOid??n??e.createdHeadOid;return(0,P.jsx)(o_,{body:t.body,pullRequestId:e.pullRequestId,sourceOid:o,sourcePath:a?.path??null,themePreference:r,onOpenRepositoryLink:i})}function h_({comment:e,variant:t=`sidebar`,placement:n=null,side:r=null,markdownSourceOid:i,themePreference:a,onOpenTarget:o,onOpenRepositoryLink:s,onDeleted:c,onActiveChange:l}){let u=Ve(),[d,f]=(0,N.useState)(``),[p,m]=(0,N.useState)(()=>{if(t===`sidebar`)return!0;let n=s_.get(e.id);return n?.commentUpdatedAt===e.updatedAt?n.expanded:e.resolvedAt===null}),h=(0,N.useRef)(e.updatedAt),g=(0,N.useRef)(null),[_,v]=(0,N.useState)(null),[y,b]=(0,N.useState)(null),[x,S]=(0,N.useState)(null),[C,w]=(0,N.useState)(``),[T,E]=(0,N.useState)(null),D=t===`sidebar`||p,O=(0,N.useRef)(D),ee=e.posts.find(e=>e.isRoot)??e.posts[0],te=e.posts.filter(e=>!e.isRoot).length,ne=n?.outdated??!1;(0,N.useEffect)(()=>{if(t!==`inline`||h.current===e.updatedAt)return;let n=e.resolvedAt===null;s_.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),m(n),h.current=e.updatedAt},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{if(t!==`inline`||!c_.has(e.id))return;c_.delete(e.id);let n=window.requestAnimationFrame(()=>{g.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{let e=D&&!O.current;if(O.current=D,!e||t!==`inline`)return;let n=window.requestAnimationFrame(()=>{g.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[D,t]),(0,N.useEffect)(()=>{if(!_)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-comment-menu="${_}"]`)||v(null))},t=e=>{e.key===`Escape`&&(e.preventDefault(),Array.from(g.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===_)?.querySelector(`.comment-more-trigger`)?.focus(),v(null))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[_]),(0,N.useLayoutEffect)(()=>{if(!_){b(null);return}let e=Array.from(g.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===_),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:_,top:Math.min(Math.max(d,n),f),left:Math.min(Math.max(o.right-s.width,a),p),opensUpward:u};b(e=>e?.postId===m.postId&&e.top===m.top&&e.left===m.left&&e.opensUpward===m.opensUpward?e:m)};return n(),y?.postId===_&&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)}},[y,_,D]);let re=async()=>{await Promise.all([u.invalidateQueries({queryKey:[`comments`]}),u.invalidateQueries({queryKey:[`change-sequence`]}),u.invalidateQueries({queryKey:[`annotations`]}),u.invalidateQueries({queryKey:[`comment-placement`]})])},k=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/posts`,yt({body:d,authorLabel:`You`,relatedCommitOid:null})),onSuccess:async()=>{f(``),t===`inline`&&c_.add(e.id),await re()}}),A=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/${e.resolvedAt?`reopen`:`resolve`}`,yt({})),onSuccess:re}),j=it({mutationFn:async({postId:t,body:n})=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({body:n}),method:`PATCH`}),onSuccess:async()=>{S(null),w(``),await re()}}),ie=it({mutationFn:async t=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{v(null),await re()}}),ae=it({mutationFn:async()=>await vt(`/api/comments/${e.id}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{c?.(),await re()}}),M=async()=>{await navigator.clipboard.writeText(`rvw Skillを使って、次のコメントを確認してください。\n\n${e.ref}`),v(null),E(`参照をコピーしました`),window.setTimeout(()=>E(null),1600)},oe=e=>{m(!0),S(e.id),w(e.body),v(null),j.reset()},se=()=>{let e=te>0?`\n返信${te}件もすべて削除されます。`:``;window.confirm(`このコメントスレッドを削除します。${e}\nコピー済みの参照は無効になります。\n\nこの操作は元に戻せません。`)&&ae.mutate()},ce=e=>{window.confirm(`この返信を削除します。
|
|
40
|
-
|
|
41
|
-
この操作は元に戻せません。`)&&ie.mutate(e)},le=u_(e,n,r),ue=t===`inline`?d_(e,n,r):le,de=(0,P.jsxs)(P.Fragment,{children:[t===`inline`&&(0,P.jsx)(`span`,{className:`comment-thread-chevron`,"aria-hidden":`true`,children:D?`⌄`:`›`}),(0,P.jsxs)(`span`,{className:`comment-thread-summary-copy`,children:[(0,P.jsx)(`span`,{className:`comment-thread-target`,children:ue}),t===`sidebar`&&(0,P.jsxs)(P.Fragment,{children:[!D&&(0,P.jsx)(`span`,{className:`comment-thread-excerpt`,children:ee?.body??`コメント`}),(0,P.jsxs)(`span`,{className:`comment-thread-meta`,children:[ee?.authorLabel??`Unknown`,` · `,te,`返信 · 最終更新`,` `,p_(e.updatedAt)]})]})]})]}),fe=(e,t)=>{let n=e.isRoot?`コメントのその他の操作`:`${t}件目の返信のその他の操作`,r=_===e.id,i=y?.postId===e.id?y: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:()=>{b(null),v(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 M(),children:`参照をコピー`}),(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>oe(e),children:`編集`}),e.isRoot?(0,P.jsx)(`button`,{className:`is-danger`,role:`menuitem`,onClick:se,children:`削除`}):(0,P.jsx)(`button`,{className:`is-danger`,role:`menuitem`,onClick:()=>ce(e.id),children:`削除`})]})]})};return(0,P.jsxs)(`article`,{ref:g,className:`comment-thread comment-thread--${t}${D?` is-expanded`:` is-collapsed`}`,"data-comment-id":e.id,onPointerEnter:()=>l?.(e.id,!0),onPointerLeave:t=>{t.currentTarget.contains(document.activeElement)||l?.(e.id,!1)},onFocusCapture:()=>l?.(e.id,!0),onBlurCapture:t=>{let n=t.relatedTarget;(!(n instanceof Node)||!t.currentTarget.contains(n))&&!t.currentTarget.matches(`:hover`)&&l?.(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":D,"aria-label":`${le}のコメントを${D?`折りたたむ`:`展開`}`,onClick:()=>m(t=>{let n=!t;return s_.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),n}),children:de}):(0,P.jsx)(`div`,{className:`comment-thread-summary`,children:de}),(0,P.jsxs)(`div`,{className:`comment-thread-header-actions`,children:[!D&&T&&(0,P.jsx)(`span`,{className:`comment-action-feedback comment-action-feedback--header`,role:`status`,children:T}),(0,P.jsxs)(`div`,{className:`comment-thread-badges`,children:[ne&&(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?`解決済み`:`未解決`})]}),ee&&fe(ee,0)]})]}),D&&(0,P.jsxs)(`div`,{className:`comment-thread-content`,children:[ne&&(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&&ne&&(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:p_(t.createdAt)}),!t.isRoot&&fe(t,n)]})]}),x===t.id?(0,P.jsxs)(`div`,{className:`comment-edit-composer`,children:[(0,P.jsx)(`textarea`,{autoFocus:!0,rows:3,value:C,"aria-label":t.isRoot?`コメントを編集`:`返信を編集`,onChange:e=>w(e.target.value),onKeyDown:e=>St(e,!!C.trim()&&!j.isPending,()=>j.mutate({postId:t.id,body:C}))}),(0,P.jsxs)(`div`,{className:`comment-edit-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:j.isPending,onClick:()=>{S(null),w(``),j.reset()},children:`キャンセル`}),(0,P.jsx)(`button`,{disabled:!C.trim()||j.isPending,onClick:()=>j.mutate({postId:t.id,body:C}),children:`保存`})]})]}):(0,P.jsx)(m_,{comment:e,post:t,markdownSourceOid:i,themePreference:a,onOpenRepositoryLink:s}),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`,{value:d,onChange:e=>f(e.target.value),onKeyDown:e=>St(e,!!d.trim()&&!k.isPending,()=>k.mutate()),placeholder:`返信を入力`,"aria-label":`${le}へ返信`,rows:1}),(0,P.jsx)(`button`,{"aria-label":`${le}の${t===`sidebar`?`サイドバー`:`コード内`}から返信を送信`,disabled:!d.trim()||k.isPending,onClick:()=>k.mutate(),children:`返信`})]}),(0,P.jsxs)(`div`,{className:`comment-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:A.isPending,onClick:()=>A.mutate(),children:e.resolvedAt?`再度開く`:`解決`}),o&&(0,P.jsx)(`button`,{className:`button--quiet`,onClick:o,children:f_(e)}),T&&(0,P.jsx)(`span`,{className:`comment-action-feedback`,role:`status`,children:T})]}),(0,P.jsx)(xt,{error:k.error??A.error??j.error??ie.error??ae.error})]})]})}function g_(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 __({comment:e,pullRequestId:t,selectedOid:n,selected:r,markdownSourceOid:i,themePreference:a,onSelect:o,onCommentActiveChange:s,onOpenTarget:c,onOpenRepositoryLink:l,onDeleted:u}){let d=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":`${g_(e)}のコメントを選択`,onChange:e=>o(e.target.checked)})}),(0,P.jsx)(h_,{comment:e,variant:`sidebar`,placement:d.data?.placement??null,markdownSourceOid:i,themePreference:a,onActiveChange:s,onOpenTarget:()=>c(d.data?.placement??null),onOpenRepositoryLink:l,onDeleted:u}),d.error&&(0,P.jsx)(xt,{error:d.error})]})}function v_({comments:e,walkthroughs:t,pullRequestId:n,selectedOid:r,themePreference:i,onCommentActiveChange:a,onOpenTarget:o,onOpenRepositoryLink:s}){let c=Ve(),l=(0,N.useRef)(null),[u,d]=(0,N.useState)(!1),[f,p]=(0,N.useState)(()=>new Set),[m,h]=(0,N.useState)(!1),[g,_]=(0,N.useState)(``),[v,y]=(0,N.useState)(!1),b=e.filter(e=>e.resolvedAt===null).length,x=e.length-b,S=(0,N.useMemo)(()=>e.filter(e=>u?e.resolvedAt!==null:e.resolvedAt===null),[e,u]),C=S.filter(e=>f.has(e.id)),w=(0,N.useMemo)(()=>new Map(t.map(e=>[e.id,e.sourceOid])),[t]),T=S.length>0&&C.length===S.length,E=C.length>0&&!T;(0,N.useEffect)(()=>{l.current&&(l.current.indeterminate=E)},[E]);let D=it({mutationFn:async()=>await vt(`/api/comments`,yt({pullRequestId:n,target:{kind:`pull-request`},body:g,authorLabel:`You`})),onSuccess:async()=>{_(``),h(!1),await c.invalidateQueries({queryKey:[`comments`]}),await c.invalidateQueries({queryKey:[`change-sequence`]})}}),O=async()=>{await navigator.clipboard.writeText(`rvw Skillを使って、次のコメントを確認してください。\n\n${C.map(e=>e.ref).join(`
|
|
42
|
-
`)}`),y(!0),window.setTimeout(()=>y(!1),1600)},ee=e=>{d(e),p(new Set)},te=()=>{_(``),h(!1),D.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:u?``:`active`,onClick:()=>ee(!1),children:[`未解決 `,(0,P.jsx)(`span`,{children:b})]}),(0,P.jsxs)(`button`,{className:u?`active`:``,onClick:()=>ee(!0),children:[`解決済み `,(0,P.jsx)(`span`,{children:x})]})]}),(0,P.jsxs)(`div`,{className:`comment-list-toolbar`,children:[S.length>0&&(0,P.jsxs)(`label`,{className:`comment-select-all`,children:[(0,P.jsx)(`input`,{ref:l,type:`checkbox`,checked:T,onChange:e=>p(e.target.checked?new Set(S.map(e=>e.id)):new Set)}),`すべて選択`]}),(0,P.jsx)(`button`,{className:`button--quiet comment-pr-create`,"aria-expanded":m,onClick:()=>h(e=>!e),children:`+ PR全体`})]}),m&&(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:g,onChange:e=>_(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&!e.nativeEvent.isComposing){e.preventDefault(),te();return}St(e,!!g.trim()&&!D.isPending,()=>D.mutate())},placeholder:`Pull Request全体へのコメント`}),(0,P.jsxs)(`div`,{className:`pr-comment-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:D.isPending,onClick:te,children:`キャンセル`}),(0,P.jsx)(`button`,{disabled:!g.trim()||D.isPending,onClick:()=>D.mutate(),children:`コメント`})]}),(0,P.jsx)(xt,{error:D.error})]}),(0,P.jsxs)(`div`,{className:`comment-list`,children:[S.length===0&&(0,P.jsx)(`p`,{className:`empty-state`,children:`コメントはありません。`}),S.map(e=>(0,P.jsx)(__,{comment:e,pullRequestId:n,selectedOid:r,selected:f.has(e.id),markdownSourceOid:e.target.kind===`walkthrough`?w.get(e.target.walkthroughId):void 0,themePreference:i,onCommentActiveChange:a,onSelect:t=>{let n=new Set(f);t?n.add(e.id):n.delete(e.id),p(n)},onOpenTarget:t=>o(e,t),onOpenRepositoryLink:s,onDeleted:()=>{p(t=>{let n=new Set(t);return n.delete(e.id),n})}},e.id))]}),C.length>0&&(0,P.jsx)(`button`,{className:`button--wide comment-copy-selection`,onClick:()=>void O(),children:v?`コピーしました`:`選択した${C.length}件の参照をコピー`})]})}var y_={kind:`pull-request-markdown`};function Z(e){return e.kind===`pull-request-markdown`?`pull-request-markdown`:e.kind===`walkthrough`?`walkthrough:${e.id}`:`file:${e.path}`}function b_(e){return e.kind===`pull-request-markdown`?`Pull Request.md`:e.kind===`walkthrough`?e.title:e.path}function x_(e){let t=b_(e);return t.split(`/`).at(-1)??t}function S_(){return{documents:[y_],panes:{[Z(y_)]:`left`},active:{left:y_,right:null},focusedPane:`left`,navigationRevision:{left:0,right:0}}}function C_(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 w_(e){return e===`left`?`right`:`left`}function T_(e){let t=e.documents.filter(t=>(e.panes[Z(t)]??`left`)===`left`),n=e.documents.filter(t=>e.panes[Z(t)]===`right`);return t.length>0||n.length===0?e:{...e,panes:Object.fromEntries(e.documents.map(e=>[Z(e),`left`])),active:{left:e.active.right??n[0]??null,right:null},focusedPane:`left`}}function E_(e,t,n){let r=Z(t),i=e.documents.findIndex(e=>Z(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]&&Z(e.active[o])===r&&(c[o]=a.find(e=>Z(e)!==r&&s[Z(e)]===o)??null),T_({...e,documents:a,panes:s,active:c,focusedPane:n})}function D_(e,t){let n=Z(t),r=e.documents.findIndex(e=>Z(e)===n);if(r<0)return e;let i=e.panes[n]??`left`,a=e.documents.filter(e=>Z(e)!==n),o={...e.panes};delete o[n];let s={...e.active};if(s[i]&&Z(s[i])===n){let e=a.filter(e=>o[Z(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 T_({...e,documents:a,panes:o,active:s,focusedPane:c})}function O_(e){return e.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:e.kind===`walkthrough`?e:{kind:`repository-file`,path:e.path}}function k_(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 A_(e){return e.kind===`pull-request-markdown`?`PR本文`:e.kind===`walkthrough`?`Walkthrough ${e.id.slice(0,8)}`:`repository`}function j_(e,t){let n=Z(e),r=x_(e),i=b_(e),a=t.filter(e=>Z(e)!==n&&x_(e)===r);if(a.length===0)return{displayLabel:r,accessibleLabel:i};if(a.some(e=>b_(e)===i)){let t=A_(e);return{displayLabel:`${r} · ${t}`,accessibleLabel:`${i}(${t})`,identityQualifier:t}}return{displayLabel:`${r} · ${k_(i,a.map(e=>b_(e)))||`root`}`,accessibleLabel:i}}var M_=`<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 Pm(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=jh.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Vh(){return{exit:{taskListCheckValueChecked:Uh,taskListCheckValueUnchecked:Uh,paragraph:Wh}}}function Hh(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Gh}}}function Uh(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Wh(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 Gh(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=jh.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 Kh(){return[Qp(),Sm(),Dm(),Mh(),Vh()]}function qh(e){return{extensions:[$p(),Cm(e),Om(),Bh(e),Hh()]}}var Jh={tokenize:cg,partial:!0},Yh={tokenize:lg,partial:!0},Xh={tokenize:ug,partial:!0},Zh={tokenize:dg,partial:!0},Qh={tokenize:fg,partial:!0},$h={name:`wwwAutolink`,tokenize:og,previous:pg},eg={name:`protocolAutolink`,tokenize:sg,previous:mg},tg={name:`emailAutolink`,tokenize:ag,previous:hg},ng={};function rg(){return{text:ng}}for(var ig=48;ig<123;)ng[ig]=tg,ig++,ig===58?ig=65:ig===91&&(ig=97);ng[43]=tg,ng[45]=tg,ng[46]=tg,ng[95]=tg,ng[72]=[tg,eg],ng[104]=[tg,eg],ng[87]=[tg,$h],ng[119]=[tg,$h];function ag(e,t,n){let r=this,i,a;return o;function o(t){return!gg(t)||!hg.call(r,r.previous)||_g(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return gg(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Qh,u,l)(t):t===45||t===95||br(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&&yr(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function og(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!pg.call(r,r.previous)||_g(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Jh,e.attempt(Yh,e.attempt(Xh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function sg(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&mg.call(r,r.previous)&&!_g(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(yr(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||Sr(t)||Er(t)||Or(t)||Dr(t)?n(t):e.attempt(Yh,e.attempt(Xh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function cg(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 lg(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Zh,c,s)(t):t===null||Er(t)||Or(t)||t!==45&&Dr(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 ug(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(Zh,t,a)(o):o===null||Er(o)||Or(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function dg(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||Er(o)||Or(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Er(e)||Or(e)?t(e):r(e)}function a(e){return yr(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):yr(t)?(e.consume(t),o):n(t)}}function fg(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return br(e)?n(e):t(e)}}function pg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Er(e)}function mg(e){return!yr(e)}function hg(e){return!(e===47||gg(e))}function gg(e){return e===43||e===45||e===46||e===95||br(e)}function _g(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 vg={tokenize:Eg,partial:!0};function yg(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Cg,continuation:{tokenize:wg},exit:Tg}},text:{91:{name:`gfmFootnoteCall`,tokenize:Sg},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bg,resolveTo:xg}}}}function bg(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=vr(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 xg(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 Sg(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||Er(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(vr(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Er(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 Cg(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||Er(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=vr(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Er(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),jr(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function wg(e,t,n){return e.check(Kr,t,e.attempt(vg,t,n))}function Tg(e){e.exit(`gfmFootnoteDefinition`)}function Eg(e,t,n){let r=this;return jr(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 Dg(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&&dr(o,o.length,0,zr(s,e.slice(r+1,n),t)),dr(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),dr(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=Rr(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=Rr(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Og=class{constructor(){this.map=[]}add(e,t,n){kg(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 kg(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 Ag(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 jg(){return{flow:{null:{name:`table`,tokenize:Mg,resolveAll:Ng}}}}function Mg(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)?jr(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||Er(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)?jr(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)?jr(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)?jr(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)?jr(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Er(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 Ng(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 Og;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Fg(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=Pg(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=Pg(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=Pg(f,t,o,i,n,d)):(o[0]=o[1],d=Pg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Fg(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=Ag(t.events,n))}return e}function Pg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Ig(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Ig(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=Ig(t.events,n[2]),a=Ig(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({},Ig(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Fg(e,t,n,r,i){let a=[],o=Ig(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 Ig(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Lg={name:`tasklistCheck`,tokenize:zg};function Rg(){return{text:{91:Lg}}}function zg(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 Er(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:Bg},t,n)(r):n(r)}}function Bg(e,t,n){return jr(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Vg(e){return mr([rg(),yg(),Dg(e),jg(),Rg()])}var Hg={};function Ug(e){let t=this,n=e||Hg,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Vg(n)),a.push(Kh()),o.push(qh(n))}var Wg=/^[A-Za-z][A-Za-z\d+.-]*:/;function Gg(e,t,n){return`/api/pull-requests/${e}/markdown-asset?${new URLSearchParams({sourceOid:t,path:n}).toString()}`}function Kg(e,t){return!!(e&&Math.hypot(t.x-e.x,t.y-e.y)>4)}function qg(e){if(!e)return!1;let t=e.trim();return Wg.test(t)||t.startsWith(`//`)}function Jg(e,t){if(!e)return null;let n=e.trim();if(n.length===0||n.startsWith(`#`)||n.startsWith(`?`)||qg(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 Yg=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
43
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"/>
|
|
44
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"/>
|
|
45
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"/>
|
|
46
43
|
</svg>
|
|
47
|
-
`,
|
|
44
|
+
`,Xg=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
48
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"/>
|
|
49
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"/>
|
|
50
47
|
</svg>
|
|
51
|
-
`,
|
|
48
|
+
`,Zg=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
52
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"/>
|
|
53
50
|
</svg>
|
|
54
|
-
`,
|
|
51
|
+
`,Qg=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
55
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"/>
|
|
56
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"/>
|
|
57
54
|
</svg>
|
|
58
|
-
|
|
55
|
+
`,$g=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
59
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"/>
|
|
60
57
|
</svg>
|
|
61
|
-
`,
|
|
58
|
+
`,e_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
62
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"/>
|
|
63
60
|
</svg>
|
|
64
|
-
`,
|
|
61
|
+
`,t_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
65
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"/>
|
|
66
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"/>
|
|
67
64
|
</svg>
|
|
68
|
-
`,
|
|
65
|
+
`,n_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
69
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"/>
|
|
70
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"/>
|
|
71
68
|
</svg>
|
|
72
|
-
`,
|
|
69
|
+
`,r_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
73
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"/>
|
|
74
71
|
</svg>
|
|
75
|
-
`,
|
|
72
|
+
`,i_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
76
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"/>
|
|
77
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"/>
|
|
78
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"/>
|
|
79
76
|
</svg>
|
|
80
|
-
`,
|
|
77
|
+
`,a_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
81
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"/>
|
|
82
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"/>
|
|
83
80
|
</svg>
|
|
84
|
-
`,
|
|
81
|
+
`,o_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
85
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"/>
|
|
86
83
|
</svg>
|
|
87
|
-
`,
|
|
84
|
+
`,s_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
88
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"/>
|
|
89
86
|
</svg>
|
|
90
|
-
`,
|
|
87
|
+
`,c_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
91
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"/>
|
|
92
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"/>
|
|
93
90
|
</svg>
|
|
94
|
-
`,
|
|
91
|
+
`,l_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
95
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"/>
|
|
96
93
|
</svg>
|
|
97
|
-
`,
|
|
94
|
+
`,u_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
98
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"/>
|
|
99
96
|
</svg>
|
|
100
|
-
`,
|
|
97
|
+
`,d_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
101
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"/>
|
|
102
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"/>
|
|
103
100
|
</svg>
|
|
104
|
-
`,
|
|
101
|
+
`,f_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
105
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"/>
|
|
106
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"/>
|
|
107
104
|
</svg>
|
|
108
|
-
`,
|
|
105
|
+
`,p_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
109
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"/>
|
|
110
107
|
</svg>
|
|
111
|
-
`,
|
|
108
|
+
`,m_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
112
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"/>
|
|
113
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"/>
|
|
114
111
|
</svg>
|
|
115
|
-
`,
|
|
112
|
+
`,h_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
116
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"/>
|
|
117
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"/>
|
|
118
115
|
</svg>
|
|
119
|
-
|
|
116
|
+
`,g_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
120
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"/>
|
|
121
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"/>
|
|
122
119
|
</svg>
|
|
123
|
-
`,
|
|
120
|
+
`,__=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
124
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"/>
|
|
125
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"/>
|
|
126
123
|
</svg>
|
|
127
|
-
`,
|
|
124
|
+
`,v_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
128
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"/>
|
|
129
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"/>
|
|
130
127
|
</svg>
|
|
131
|
-
`,
|
|
128
|
+
`,y_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
132
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"/>
|
|
133
130
|
</svg>
|
|
134
|
-
`,
|
|
131
|
+
`,b_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
135
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"/>
|
|
136
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"/>
|
|
137
134
|
</svg>
|
|
138
|
-
`,
|
|
135
|
+
`,x_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
139
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"/>
|
|
140
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"/>
|
|
141
138
|
</svg>
|
|
142
|
-
`,
|
|
139
|
+
`,S_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
143
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"/>
|
|
144
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"/>
|
|
145
142
|
</svg>
|
|
146
|
-
`,
|
|
143
|
+
`,C_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
147
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"/>
|
|
148
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"/>
|
|
149
146
|
</svg>
|
|
150
|
-
`,
|
|
147
|
+
`,w_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
151
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"/>
|
|
152
149
|
</svg>
|
|
153
|
-
`,
|
|
150
|
+
`,T_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
154
151
|
<path fill="currentColor" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6h14z" class="fg"/>
|
|
155
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"/>
|
|
156
153
|
</svg>
|
|
157
|
-
`,
|
|
154
|
+
`,E_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
158
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"/>
|
|
159
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"/>
|
|
160
157
|
</svg>
|
|
161
|
-
`,
|
|
158
|
+
`,D_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
162
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"/>
|
|
163
160
|
</svg>
|
|
164
|
-
`,
|
|
161
|
+
`,O_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
165
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"/>
|
|
166
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"/>
|
|
167
164
|
</svg>
|
|
168
|
-
`,
|
|
165
|
+
`,k_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
169
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"/>
|
|
170
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"/>
|
|
171
168
|
</svg>
|
|
172
|
-
`,
|
|
169
|
+
`,A_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
173
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"/>
|
|
174
171
|
</svg>
|
|
175
|
-
`,
|
|
172
|
+
`,j_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
176
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"/>
|
|
177
174
|
</svg>
|
|
178
|
-
`,
|
|
175
|
+
`,M_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
179
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"/>
|
|
180
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"/>
|
|
181
178
|
</svg>
|
|
182
|
-
`,
|
|
179
|
+
`,N_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
183
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"/>
|
|
184
181
|
</svg>
|
|
185
|
-
`,
|
|
182
|
+
`,P_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
186
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"/>
|
|
187
184
|
</svg>
|
|
188
|
-
`,
|
|
185
|
+
`,F_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
189
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"/>
|
|
190
187
|
</svg>
|
|
191
|
-
`,
|
|
188
|
+
`,I_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
192
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"/>
|
|
193
190
|
</svg>
|
|
194
|
-
`,
|
|
191
|
+
`,L_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 32 32">
|
|
195
192
|
<path fill="currentColor" d="M4.5 28.5 2 0h28l-2.5 28.5L16 32"/>
|
|
196
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"/>
|
|
197
194
|
</svg>
|
|
198
|
-
`,
|
|
195
|
+
`,R_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
199
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"/>
|
|
200
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"/>
|
|
201
198
|
</svg>
|
|
202
|
-
`,
|
|
199
|
+
`,z_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
203
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"/>
|
|
204
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"/>
|
|
205
202
|
</svg>
|
|
206
|
-
`,
|
|
203
|
+
`,B_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
207
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"/>
|
|
208
205
|
</svg>
|
|
209
|
-
`,
|
|
206
|
+
`,V_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
210
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"/>
|
|
211
208
|
</svg>
|
|
212
|
-
`,
|
|
209
|
+
`,H_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
213
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"/>
|
|
214
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"/>
|
|
215
212
|
</svg>
|
|
216
|
-
`,
|
|
213
|
+
`,U_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
217
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"/>
|
|
218
215
|
</svg>
|
|
219
|
-
`,
|
|
216
|
+
`,W_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
220
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"/>
|
|
221
218
|
</svg>
|
|
222
|
-
`,
|
|
219
|
+
`,G_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
223
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"/>
|
|
224
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"/>
|
|
225
222
|
</svg>
|
|
226
|
-
`,
|
|
223
|
+
`,K_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
227
224
|
<path fill="currentColor" d="m9.41 6.8-.43 2.4h-2.4l.44-2.4z"/>
|
|
228
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"/>
|
|
229
226
|
</svg>
|
|
230
|
-
`,
|
|
227
|
+
`,q_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
231
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"/>
|
|
232
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"/>
|
|
233
230
|
</svg>
|
|
234
|
-
`,
|
|
231
|
+
`,J_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
235
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"/>
|
|
236
233
|
</svg>
|
|
237
|
-
`,
|
|
234
|
+
`,Y_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
238
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"/>
|
|
239
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"/>
|
|
240
237
|
</svg>
|
|
241
|
-
`,
|
|
238
|
+
`,X_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
242
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"/>
|
|
243
240
|
</svg>
|
|
244
|
-
`,
|
|
241
|
+
`,Z_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
245
242
|
<path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
|
|
246
243
|
</svg>
|
|
247
|
-
`,
|
|
244
|
+
`,Q_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
248
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"/>
|
|
249
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"/>
|
|
250
247
|
</svg>
|
|
251
|
-
|
|
248
|
+
`,$_=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
252
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"/>
|
|
253
250
|
</svg>
|
|
254
|
-
`,
|
|
251
|
+
`,ev=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
255
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"/>
|
|
256
253
|
</svg>
|
|
257
|
-
`,
|
|
254
|
+
`,tv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
258
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"/>
|
|
259
256
|
</svg>
|
|
260
|
-
`,
|
|
257
|
+
`,nv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
261
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"/>
|
|
262
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"/>
|
|
263
260
|
</svg>
|
|
264
|
-
`,
|
|
261
|
+
`,rv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
265
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"/>
|
|
266
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"/>
|
|
267
264
|
</svg>
|
|
268
|
-
`,
|
|
265
|
+
`,iv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
269
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"/>
|
|
270
267
|
</svg>
|
|
271
|
-
`,
|
|
268
|
+
`,av=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
272
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"/>
|
|
273
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"/>
|
|
274
271
|
</svg>
|
|
275
|
-
`,
|
|
272
|
+
`,ov=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
276
273
|
<defs>
|
|
277
274
|
<linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
|
|
278
275
|
<stop stop-color="currentColor"/>
|
|
@@ -283,102 +280,105 @@ Error generating stack: `+e.message+`
|
|
|
283
280
|
<path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
|
|
284
281
|
<path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
|
|
285
282
|
</svg>
|
|
286
|
-
`,
|
|
283
|
+
`,sv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
287
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"/>
|
|
288
285
|
<path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
|
|
289
286
|
</svg>
|
|
290
|
-
`,
|
|
287
|
+
`,cv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
291
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"/>
|
|
292
289
|
</svg>
|
|
293
|
-
`,
|
|
290
|
+
`,lv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
294
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"/>
|
|
295
292
|
</svg>
|
|
296
|
-
`,
|
|
293
|
+
`,uv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
297
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"/>
|
|
298
295
|
</svg>
|
|
299
|
-
`,
|
|
296
|
+
`,dv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
300
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"/>
|
|
301
298
|
</svg>
|
|
302
|
-
`,
|
|
299
|
+
`,fv=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" fill="none" viewBox="0 0 15 16">
|
|
303
300
|
<path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
|
|
304
301
|
<path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
|
|
305
302
|
<path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
|
|
306
303
|
<path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
|
|
307
304
|
</svg>
|
|
308
|
-
`,
|
|
305
|
+
`,pv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
309
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"/>
|
|
310
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"/>
|
|
311
308
|
</svg>
|
|
312
|
-
`,
|
|
309
|
+
`,mv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
313
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"/>
|
|
314
311
|
</svg>
|
|
315
|
-
`,
|
|
312
|
+
`,hv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
316
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"/>
|
|
317
314
|
</svg>
|
|
318
|
-
|
|
315
|
+
`,gv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
319
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"/>
|
|
320
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"/>
|
|
321
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"/>
|
|
322
319
|
</svg>
|
|
323
|
-
`,
|
|
320
|
+
`,_v=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
324
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"/>
|
|
325
322
|
</svg>
|
|
326
|
-
`,
|
|
323
|
+
`,vv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
327
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"/>
|
|
328
325
|
<path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
|
|
329
326
|
</svg>
|
|
330
|
-
`,
|
|
327
|
+
`,yv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
331
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"/>
|
|
332
329
|
</svg>
|
|
333
|
-
`,
|
|
330
|
+
`,bv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
334
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"/>
|
|
335
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"/>
|
|
336
333
|
</svg>
|
|
337
|
-
`,
|
|
334
|
+
`,xv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
338
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"/>
|
|
339
336
|
</svg>
|
|
340
|
-
`,
|
|
337
|
+
`,Sv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
341
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"/>
|
|
342
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"/>
|
|
343
340
|
</svg>
|
|
344
|
-
`,
|
|
341
|
+
`,Cv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
345
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"/>
|
|
346
343
|
</svg>
|
|
347
|
-
`,
|
|
344
|
+
`,wv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
348
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"/>
|
|
349
346
|
</svg>
|
|
350
|
-
`,
|
|
347
|
+
`,Tv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
351
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"/>
|
|
352
349
|
</svg>
|
|
353
|
-
`,
|
|
350
|
+
`,Ev=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
354
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"/>
|
|
355
352
|
</svg>
|
|
356
|
-
`,
|
|
353
|
+
`,Dv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
357
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"/>
|
|
358
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"/>
|
|
359
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"/>
|
|
360
357
|
</svg>
|
|
361
|
-
`,
|
|
358
|
+
`,Ov=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
362
359
|
<path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
|
|
363
360
|
<path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
|
|
364
361
|
</svg>
|
|
365
|
-
`,
|
|
362
|
+
`,kv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
366
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"/>
|
|
367
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"/>
|
|
368
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"/>
|
|
369
366
|
</svg>
|
|
370
|
-
`,
|
|
367
|
+
`,Av=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
371
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"/>
|
|
372
369
|
</svg>
|
|
373
|
-
`,
|
|
370
|
+
`,jv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
374
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"/>
|
|
375
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"/>
|
|
376
373
|
</svg>
|
|
377
|
-
`,
|
|
374
|
+
`,Mv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
378
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"/>
|
|
379
376
|
</svg>
|
|
380
|
-
`,
|
|
377
|
+
`,Nv=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
|
|
381
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"/>
|
|
382
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"/>
|
|
383
380
|
</svg>
|
|
384
|
-
`,Q={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`}};Q.gray[400],Q.gray[800];function $(e){return{dark:e[400],light:e[600]}}function _y(e,t){return{fg:$(e),bg:$(t)}}var vy=[{name:`lang-javascript-duo`,color:$(Q.yellow),fileExtensions:[`js`,`cjs`,`mjs`,`jsx`]},{name:`lang-typescript-duo`,color:$(Q.blue),fileExtensions:[`ts`,`cts`,`mts`,`tsx`]},{name:`lang-css-duo`,color:$(Q.indigo),fileExtensions:[`css`,`scss`,`sass`,`less`,`postcss`,`styl`]},{name:`bash-duo`,color:$(Q.gray),fileExtensions:[`sh`,`bash`,`zsh`,`fish`,`ksh`,`csh`],fileNames:[`.bashrc`,`.bash_profile`,`.zshrc`,`.zshenv`,`.zprofile`]},{name:`svg-2`,color:$(Q.orange),opacity:.75,fileExtensions:[`svg`]}],yy=[{name:`astro`,color:_y(Q.purple,Q.pink),fileExtensions:[`astro`]},{name:`bootstrap-duo`,color:$(Q.indigo),fileNames:[`bootstrap.min.css`,`bootstrap.css`,`bootstrap.min.js`,`bootstrap.js`,`bootstrap.bundle.min.js`,`bootstrap.bundle.js`]},{name:`react`,color:$(Q.cyan),fileExtensions:[`jsx`,`tsx`]},{name:`svelte`,color:$(Q.red),fileExtensions:[`svelte`]},{name:`vue`,color:$(Q.green),fileExtensions:[`vue`]}],by=[{name:`graphql`,color:$(Q.pink),fileExtensions:[`graphql`,`gql`]},{name:`sass`,color:$(Q.pink),fileExtensions:[`scss`,`sass`]},{name:`terraform`,color:$(Q.indigo),fileExtensions:[`tf`,`tfvars`,`tfstate`],fileNames:[`.terraform.lock.hcl`]},{name:`wasm-duo`,color:$(Q.indigo),fileExtensions:[`wasm`,`wat`,`wast`]},{name:`yml`,color:$(Q.red),fileExtensions:[`yml`,`yaml`]},{name:`zig`,color:$(Q.orange),fileExtensions:[`zig`]}],xy=[{name:`npm`,color:$(Q.red),opacity:.75,fileNames:[`package.json`,`package-lock.json`,`.npmrc`,`.npmignore`]},{name:`eslint`,color:$(Q.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.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.purple),opacity:.75,fileNames:[`vite.config.js`,`vite.config.ts`,`vite.config.mjs`,`vite.config.mts`]},{name:`svgo`,color:$(Q.green),fileNames:[`svgo.config.js`,`svgo.config.mjs`,`svgo.config.cjs`,`svgo.config.ts`]},{name:`babel`,color:$(Q.yellow),fileNames:[`.babelrc`,`.babelrc.json`,`babel.config.js`,`babel.config.json`,`babel.config.cjs`,`babel.config.mjs`]},{name:`docker`,color:$(Q.blue),fileNames:[`Dockerfile`,`.dockerignore`,`docker-compose.yml`,`docker-compose.yaml`,`docker-compose.override.yml`,`compose.yml`,`compose.yaml`]},{name:`tailwind`,color:$(Q.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:_y(Q.blue,Q.cyan),fileNames:[`webpack.config.js`,`webpack.config.ts`,`webpack.config.mjs`,`webpack.config.cjs`,`webpack.config.babel.js`]},{name:`postcss`,color:$(Q.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.blue),fileNames:[`biome.json`,`biome.jsonc`]},{name:`bun-duo`,color:$(Q.brown),fileNames:[`bunfig.toml`,`bun.lockb`,`bun.lock`]},{name:`oxc`,color:$(Q.cyan),fileNames:[`.oxlintrc.json`]},{name:`browserslist-duo`,color:$(Q.yellow),fileNames:[`.browserslistrc`]},{name:`claude`,color:$(Q.orange),fileNames:[`CLAUDE.md`]},{name:`vscode`,color:$(Q.blue),fileExtensions:[`code-workspace`]}],Sy=[...vy,...yy,...by,...xy],Cy=[{name:`lang-javascript-duo`,color:$(Q.yellow),fileExtensions:[`js`,`cjs`,`mjs`,`jsx`]},{name:`lang-typescript-duo`,color:$(Q.cyan),fileExtensions:[`ts`,`cts`,`mts`,`tsx`]},{name:`lang-css-duo`,color:$(Q.indigo),fileExtensions:[`css`,`scss`,`sass`,`less`,`postcss`,`styl`]},{name:`lang-html-duo`,color:$(Q.orange),fileExtensions:[`html`,`htm`,`xhtml`]},{name:`lang-markdown`,fileExtensions:[`md`,`mdx`,`markdown`]},{name:`lang-swift`,color:$(Q.orange),fileExtensions:[`swift`]},{name:`lang-rust`,color:$(Q.orange),fileExtensions:[`rs`]},{name:`lang-go`,color:$(Q.cyan),fileExtensions:[`go`]},{name:`lang-c`,color:$(Q.blue),fileExtensions:[`c`,`h`]},{name:`lang-cpp`,svgName:`lang-c`,color:$(Q.blue),fileExtensions:[`cpp`,`cc`,`cxx`,`hpp`,`hh`,`hxx`,`inl`]},{name:`lang-csharp`,svgName:`lang-c`,color:$(Q.purple),fileExtensions:[`cs`]},{name:`lang-objc`,svgName:`lang-c`,color:$(Q.vermilion),fileExtensions:[`m`,`mm`]},{name:`lang-python`,color:_y(Q.blue,Q.yellow),fileExtensions:[`py`,`pyw`,`pyi`,`pyx`]},{name:`lang-ruby`,color:$(Q.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.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.vermilion),fileNames:[`.gitignore`,`.gitattributes`,`.gitmodules`,`.gitkeep`]}],wy=[{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`}],Ty={dark:`#adadb1`,light:`#6c6c71`},Ey=[...wy,...Cy,...Sy],Dy=new Map,Oy=new Map,ky=new Map;for(let e of Ey){Dy.set(e.name,e);for(let t of e.fileNames??[])Oy.set(t,e),Oy.set(t.toLocaleLowerCase(),e);for(let t of e.fileExtensions??[])ky.set(t.toLocaleLowerCase(),e)}function Ay(e){return e?`fg`in e?{foreground:e.fg,background:e.bg}:{foreground:e,background:e}:{foreground:Ty,background:Ty}}function jy(e){return{name:e.name,svgName:e.svgName??e.name,...Ay(e.color)}}function My(e){let t=e.replaceAll(`\\`,`/`).replace(/\/+$/u,``);return t.split(`/`).at(-1)??t}function Ny(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 Py(e){let t=Dy.get(e);if(!t)throw Error(`vscode-icons definition is missing: ${e}`);return jy(t)}function Fy(e,t=`file`){if(t===`symlink`)return Py(`file-symlink-duo`);if(t===`submodule`)return{name:`submodule`,svgName:`IconLayers3Middle`,foreground:Ty,background:Ty};let n=My(e),r=Oy.get(n)??Oy.get(n.toLocaleLowerCase());if(r)return jy(r);for(let e of Ny(n)){let t=ky.get(e);if(t)return jy(t)}return Py(`file-duo`)}function Iy(e){return Py(e?`folder-open-duo`:`folder-duo`)}var Ly=new Map(Object.entries(Object.assign({"/node_modules/@pierre/vscode-icons/svgs/IconLayers3Middle.svg":M_,"/node_modules/@pierre/vscode-icons/svgs/astro.svg":N_,"/node_modules/@pierre/vscode-icons/svgs/babel.svg":P_,"/node_modules/@pierre/vscode-icons/svgs/bash-duo.svg":F_,"/node_modules/@pierre/vscode-icons/svgs/bash.svg":I_,"/node_modules/@pierre/vscode-icons/svgs/biome.svg":L_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap-duo.svg":R_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap.svg":z_,"/node_modules/@pierre/vscode-icons/svgs/braces.svg":B_,"/node_modules/@pierre/vscode-icons/svgs/browserslist-duo.svg":V_,"/node_modules/@pierre/vscode-icons/svgs/bun-duo.svg":H_,"/node_modules/@pierre/vscode-icons/svgs/bun.svg":U_,"/node_modules/@pierre/vscode-icons/svgs/claude.svg":W_,"/node_modules/@pierre/vscode-icons/svgs/code-block-duo.svg":G_,"/node_modules/@pierre/vscode-icons/svgs/code.svg":K_,"/node_modules/@pierre/vscode-icons/svgs/css.svg":q_,"/node_modules/@pierre/vscode-icons/svgs/docker.svg":J_,"/node_modules/@pierre/vscode-icons/svgs/eslint.svg":Y_,"/node_modules/@pierre/vscode-icons/svgs/extension.svg":X_,"/node_modules/@pierre/vscode-icons/svgs/file-duo.svg":Z_,"/node_modules/@pierre/vscode-icons/svgs/file-plus-duo.svg":Q_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink-duo.svg":$_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink.svg":ev,"/node_modules/@pierre/vscode-icons/svgs/file-table-duo.svg":tv,"/node_modules/@pierre/vscode-icons/svgs/file-table.svg":nv,"/node_modules/@pierre/vscode-icons/svgs/file-text-duo.svg":rv,"/node_modules/@pierre/vscode-icons/svgs/file-text.svg":iv,"/node_modules/@pierre/vscode-icons/svgs/file-zip-duo.svg":av,"/node_modules/@pierre/vscode-icons/svgs/file-zip.svg":ov,"/node_modules/@pierre/vscode-icons/svgs/file.svg":sv,"/node_modules/@pierre/vscode-icons/svgs/folder-duo.svg":cv,"/node_modules/@pierre/vscode-icons/svgs/folder-open-duo.svg":lv,"/node_modules/@pierre/vscode-icons/svgs/folder-open.svg":uv,"/node_modules/@pierre/vscode-icons/svgs/folder-plus-duo.svg":dv,"/node_modules/@pierre/vscode-icons/svgs/folder-zip-duo.svg":fv,"/node_modules/@pierre/vscode-icons/svgs/folder-zip.svg":pv,"/node_modules/@pierre/vscode-icons/svgs/folder.svg":mv,"/node_modules/@pierre/vscode-icons/svgs/folders.svg":hv,"/node_modules/@pierre/vscode-icons/svgs/font.svg":gv,"/node_modules/@pierre/vscode-icons/svgs/gear.svg":_v,"/node_modules/@pierre/vscode-icons/svgs/git.svg":vv,"/node_modules/@pierre/vscode-icons/svgs/graphql.svg":yv,"/node_modules/@pierre/vscode-icons/svgs/html.svg":bv,"/node_modules/@pierre/vscode-icons/svgs/image-duo.svg":xv,"/node_modules/@pierre/vscode-icons/svgs/image.svg":Sv,"/node_modules/@pierre/vscode-icons/svgs/javascript.svg":Cv,"/node_modules/@pierre/vscode-icons/svgs/lang-c.svg":wv,"/node_modules/@pierre/vscode-icons/svgs/lang-css-duo.svg":Tv,"/node_modules/@pierre/vscode-icons/svgs/lang-css.svg":Ev,"/node_modules/@pierre/vscode-icons/svgs/lang-go.svg":Dv,"/node_modules/@pierre/vscode-icons/svgs/lang-html-duo.svg":Ov,"/node_modules/@pierre/vscode-icons/svgs/lang-html.svg":kv,"/node_modules/@pierre/vscode-icons/svgs/lang-html5-duo.svg":Av,"/node_modules/@pierre/vscode-icons/svgs/lang-html5.svg":jv,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript-duo.svg":Mv,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript.svg":Nv,"/node_modules/@pierre/vscode-icons/svgs/lang-markdown.svg":Pv,"/node_modules/@pierre/vscode-icons/svgs/lang-python.svg":Fv,"/node_modules/@pierre/vscode-icons/svgs/lang-ruby.svg":Iv,"/node_modules/@pierre/vscode-icons/svgs/lang-rust.svg":Lv,"/node_modules/@pierre/vscode-icons/svgs/lang-swift.svg":Rv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript-duo.svg":zv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript.svg":Bv,"/node_modules/@pierre/vscode-icons/svgs/markdown.svg":Vv,"/node_modules/@pierre/vscode-icons/svgs/mcp.svg":Hv,"/node_modules/@pierre/vscode-icons/svgs/nextjs.svg":Uv,"/node_modules/@pierre/vscode-icons/svgs/npm-duo.svg":Wv,"/node_modules/@pierre/vscode-icons/svgs/npm.svg":Gv,"/node_modules/@pierre/vscode-icons/svgs/oxc-fill.svg":Kv,"/node_modules/@pierre/vscode-icons/svgs/oxc.svg":qv,"/node_modules/@pierre/vscode-icons/svgs/postcss.svg":Jv,"/node_modules/@pierre/vscode-icons/svgs/prettier.svg":Yv,"/node_modules/@pierre/vscode-icons/svgs/react.svg":Xv,"/node_modules/@pierre/vscode-icons/svgs/rss.svg":Zv,"/node_modules/@pierre/vscode-icons/svgs/sass.svg":Qv,"/node_modules/@pierre/vscode-icons/svgs/server-duo.svg":$v,"/node_modules/@pierre/vscode-icons/svgs/server.svg":ey,"/node_modules/@pierre/vscode-icons/svgs/stylelint.svg":ty,"/node_modules/@pierre/vscode-icons/svgs/svelte.svg":ny,"/node_modules/@pierre/vscode-icons/svgs/svg-2.svg":ry,"/node_modules/@pierre/vscode-icons/svgs/svg.svg":iy,"/node_modules/@pierre/vscode-icons/svgs/svgo.svg":ay,"/node_modules/@pierre/vscode-icons/svgs/tailwind.svg":oy,"/node_modules/@pierre/vscode-icons/svgs/terraform.svg":sy,"/node_modules/@pierre/vscode-icons/svgs/typescript.svg":cy,"/node_modules/@pierre/vscode-icons/svgs/vite.svg":ly,"/node_modules/@pierre/vscode-icons/svgs/vscode.svg":uy,"/node_modules/@pierre/vscode-icons/svgs/vue.svg":dy,"/node_modules/@pierre/vscode-icons/svgs/wasm-duo.svg":fy,"/node_modules/@pierre/vscode-icons/svgs/wasm.svg":py,"/node_modules/@pierre/vscode-icons/svgs/webpack.svg":my,"/node_modules/@pierre/vscode-icons/svgs/yml.svg":hy,"/node_modules/@pierre/vscode-icons/svgs/zig.svg":gy})).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 Ry(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 zy({icon:e}){let t=Ly.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:Ry(e),"aria-hidden":`true`,dangerouslySetInnerHTML:{__html:t}})}function By({path:e=``,kind:t}){return(0,P.jsx)(zy,{icon:Fy(e,t)})}function Vy({expanded:e}){return(0,P.jsx)(zy,{icon:Iy(e)})}function Hy(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 Uy={added:`追加`,deleted:`削除`,modified:`変更`,renamed:`名前変更`,"type-changed":`種類変更`};function Wy(e,t){return e.kind===t.kind?e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:`base`}):e.kind===`directory`?-1:1}function Gy(e){return{kind:`directory`,name:e.name,path:e.path,children:[...e.children.values()].map(e=>e.kind===`mutable-directory`?Gy(e):e).sort(Wy)}}function Ky(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`?Gy(e):e).sort(Wy)}function qy(e){let t=new Set,n=e=>{e.kind!==`file`&&(t.add(e.path),e.children.forEach(n))};return e.forEach(n),t}function Jy(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 Yy(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 Xy(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 Zy({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 Qy({kind:e}){let t=Uy[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 $y=31,eb=10,tb=400;function nb({files:e,activePath:t,filtering:n,initiallyExpanded:r,onOpenFile:i}){let a=(0,N.useMemo)(()=>Ky(e),[e]),o=(0,N.useMemo)(()=>qy(a),[a]),[s,c]=(0,N.useState)(()=>r===`all`?new Set(o):Xy(t,o)),l=(0,N.useMemo)(()=>Jy(a,s,n),[s,n,a]),u=l.length>tb,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?Yy(l.length,f.offset,f.height,$y,eb):{start:0,end:l.length},h=(0,N.useMemo)(()=>Xy(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*$y}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)(By,{path:e.path,kind:e.entryKind}),e.changeKind&&(0,P.jsx)(Qy,{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)(Vy,{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)(Zy,{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*$y}px`},children:l.slice(m.start,m.end).map((e,t)=>v(e,m.start+t))})]})}var rb=(0,N.memo)(nb);rb.displayName=`FileTree`;function ib({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(e){return e.slice(0,8)}function ob({walkthroughs:e,activeWalkthroughId:t,onOpen:n}){return e.length===0?(0,P.jsx)(`p`,{className:`walkthrough-panel-empty`,children:`Agentからのwalkthroughはまだありません。`}):(0,P.jsx)(`div`,{className:`walkthrough-panel-list`,children:e.map(e=>(0,P.jsxs)(`button`,{className:`walkthrough-panel-item${t===e.id?` active`:``}`,onMouseDown:t=>{!t.metaKey&&!t.ctrlKey||(t.preventDefault(),n(e,!0))},onClick:t=>{!t.metaKey&&!t.ctrlKey&&n(e,!1)},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},"aria-label":e.title,children:[(0,P.jsx)(`span`,{className:`walkthrough-panel-item-icon`,children:(0,P.jsx)(ib,{})}),(0,P.jsxs)(`span`,{className:`walkthrough-panel-item-copy`,children:[(0,P.jsx)(`strong`,{children:e.title}),(0,P.jsxs)(`span`,{children:[e.authorLabel??`Agent`,` · `,ab(e.sourceOid)]})]})]},e.id))})}function sb(){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 cb(){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 lb({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?Z(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=Z(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=Z(e),s=b_(e),c=j_(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)(ib,{}):(0,P.jsx)(By,{path:s,kind:`file`}),l&&(0,P.jsx)(Qy,{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)(sb,{})})]},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)(cb,{})}),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=Z(e),a=j_(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)(ib,{}):(0,P.jsx)(By,{path:b_(e),kind:`file`}),o&&(0,P.jsx)(Qy,{kind:o})]}),(0,P.jsx)(`span`,{className:`document-tabs-menu-label`,children:a.accessibleLabel})]},n)})]})]})]})}var ub=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 db(e){let t=e.lastIndexOf(`/`);return t<0?{fileName:e,directory:``}:{fileName:e.slice(t+1),directory:e.slice(0,t)}}function fb(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 pb(){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:`M6.75 1a5.75 5.75 0 1 0 3.58 10.25l3.71 3.71a.75.75 0 1 0 1.06-1.06l-3.71-3.71A5.75 5.75 0 0 0 6.75 1Zm-4.25 5.75a4.25 4.25 0 1 1 8.5 0 4.25 4.25 0 0 1-8.5 0Z`})})}function mb({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 hb({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 gb(){return(0,P.jsx)(pb,{})}function _b({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)(()=>fb(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)(Zy,{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}=db(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)(mb,{expanded:t})}),(0,P.jsxs)(`span`,{className:`search-result-file-icon-group`,"aria-hidden":`true`,children:[(0,P.jsx)(By,{path:e.path,kind:`file`}),a&&(0,P.jsx)(Qy,{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)(hb,{result:e})})]},`${e.path}:${e.line}`))})]},e.key)})})]})}function vb(e){let t=e.lastIndexOf(`/`);return t<0?{name:e,directory:``}:{name:e.slice(t+1),directory:e.slice(0,t)}}function yb(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 bb({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 xb(){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 Sb(e,t,n,r,i){let a=Z(e),o=vb(t.path);return{...t,...o,key:a,document:e,...i?{identityQualifier:i}:{},isActive:a===n,isOpen:r.has(a)}}function Cb(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=b_(e);i.set(t,(i.get(t)??0)+1)}let a=n?Z(n):null,o=new Set(t.map(e=>Z(e)));return r.map(({document:e,file:t})=>{let n=b_(e),r=(i.get(n)??0)>1?A_(e):void 0;return Sb(e,t,a,o,r)})}function wb({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)(()=>Cb(n,r,i),[i,n,r]),v=(0,N.useMemo)(()=>yb(_,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)(xb,{}),(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)(By,{path:n.path,kind:n.entryKind}),n.changeKind&&(0,P.jsx)(Qy,{kind:n.changeKind})]}),(0,P.jsxs)(`span`,{className:`quick-open-copy`,children:[(0,P.jsx)(`strong`,{children:(0,P.jsx)(bb,{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)(bb,{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 Tb=[`light`,`dark`,`system`];function Eb(e){return Tb.some(t=>t===e)}var Db=`rvw.theme`;function Ob(e){return Eb(e)?e:`system`}function kb(){try{return Ob(window.localStorage.getItem(Db))}catch(e){return console.warn(`テーマ設定を読み込めませんでした。システム設定を使用します。`,e),`system`}}function Ab(e){try{window.localStorage.setItem(Db,e)}catch(e){console.warn(`テーマ設定を保存できませんでした。`,e)}}function jb(e){document.documentElement.dataset.theme=e}var Mb=`x-rvw-viewer-id`,Nb=crypto.randomUUID();function Pb(){return{headers:{[Mb]:Nb}}}var Fb=!1;function Ib(){Fb||(Fb=!0,window.addEventListener(`pagehide`,()=>{let e=JSON.stringify({viewerId:Nb}),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&&(Nb=crypto.randomUUID(),fetch(`/api/meta/change-sequence`,Pb()).catch(()=>void 0))}))}function Lb(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 Rb(e,t){let n=Lb(e,t);return e.find(e=>e.oid===t||n.has(e.oid))?.oid??null}function zb(e,t){return!t||!e.some(e=>e.oid===t)?null:e[0]?.oid??null}function Bb(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 Vb(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}}var Hb=new Map,Ub=new Map;function Wb(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 Gb(e){return JSON.stringify([Wb(e.activeDocument),e.selectedOid,e.oldOid,e.displayMode])}function Kb(e){return Ub.get(e)??0}function qb(e,t){return Hb.get(e)?.get(t)}function Jb(e,t,n,r){if(n!==Kb(e))return;let i=Hb.get(e);i||(i=new Map,Hb.set(e,i)),i.set(t,r)}function Yb(e,t,n){if(n!==Kb(e))return;let r=Hb.get(e);r?.delete(t),r?.size===0&&Hb.delete(e)}function Xb(e){Hb.delete(e),Ub.set(e,Kb(e)+1)}function Zb(e){return e.slice(0,8)}function Qb(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?`参照元 ${Zb(a)} ≠ 対象 ${Zb(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 $b(e){let[t,n]=(0,N.useState)(S_),r=(0,N.useRef)(t),i=(0,N.useCallback)(e=>{n(t=>C_(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[Z(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=Z(t);return E_(e,t,n??e.panes[r]??e.focusedPane)})},[e,i]),closeDocument:(0,N.useCallback)(t=>{e(),i(e=>D_(e,t))},[e,i]),closePaneDocuments:(0,N.useCallback)((t,n=null)=>{e(),i(e=>{let r=n?Z(n):null;return e.documents.filter(n=>{let i=Z(n);return(e.panes[i]??`left`)===t&&i!==r}).reduce(D_,e)})},[e,i]),moveDocument:(0,N.useCallback)((t,n)=>{e(),i(e=>E_(e,t,n))},[e,i]),dropDocument:(0,N.useCallback)((e,t)=>{i(n=>{let r=n.documents.find(t=>Z(t)===e);return r?E_(n,r,t):n})},[i])}}var ex=`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 nx(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function rx(e){return e==null||typeof e==`string`}function ix(e){return!nx(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`||!rx(e.oldPath)||!rx(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 ax(e){if(!nx(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 ox(e,t){return{...nx(e)?e:{},[ex]:t}}function sx(e,t){if(!nx(e))return null;let n=e[ex];if(!nx(n)||n.version!==1||n.pullRequestId!==t||n.pane!==`left`&&n.pane!==`right`)return null;let r=ix(n.document),i=ax(n.locator);return!r||!i?null:{version:1,pullRequestId:t,pane:n.pane,document:r,locator:i}}var cx=(0,N.lazy)(async()=>({default:(await $g(()=>import(`./DocumentViewer-CNgHpCuL.js`),__vite__mapDeps([18,3,19]))).DocumentViewer})),lx=(0,N.lazy)(async()=>({default:(await $g(()=>import(`./WalkthroughViewer-BVB3ETHG.js`),__vite__mapDeps([20,3,19]))).WalkthroughViewer}));function ux(e){return mt(e)??`(unknown)`}function dx(e){return e.slice(0,8)}var fx=330,px=240,mx=560,hx=500,gx=50,_x=280;function vx(e,t,n){return Math.min(n,Math.max(t,e))}function yx(){return window.innerWidth<=850?280:fx}function bx(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 xx(){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 Sx({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 Cx(){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 wx({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} · ${dx(n)}`:g===1?`${v?.subject??`commit`} · ${dx(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=Vb(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,` · `,dx(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}、${dx(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:dx(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 Tx({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)(wx,{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 Ex=[{preference:`light`,label:`ライトモード`},{preference:`dark`,label:`ダークモード`},{preference:`system`,label:`システム`}],Dx=3e3;function Ox(e){return e instanceof ht&&e.code===`PULL_REQUEST_NOT_FOUND`?"Pull Requestが見つかりません。`rvw open`から起動し直してください。":e instanceof Error?e.message:`PR commitがありません。`}function kx({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)(!0),[_,v]=(0,N.useState)(!0),[y,b]=(0,N.useState)(!0),[x,S]=(0,N.useState)(`changed`),[C,w]=(0,N.useState)(null),T=(0,N.useRef)(C),E=(0,N.useRef)(null);T.current=C;let{workspace:D,workspaceRef:O,setWorkspace:ee,activateDocument:te,openDocument:ne,closeDocument:re,closePaneDocuments:k,moveDocument:A,dropDocument:j}=$b((0,N.useCallback)(()=>{T.current=null,E.current=null,w(null)},[])),[ie,ae]=(0,N.useState)(yx),[M,oe]=(0,N.useState)(gx),[se,ce]=(0,N.useState)(null),[le,ue]=(0,N.useState)(null),[de,fe]=(0,N.useState)(``),[pe,me]=(0,N.useState)(!1),[he,ge]=(0,N.useState)(null),[_e,ve]=(0,N.useState)(``),[ye,be]=(0,N.useState)(!1),[xe,Se]=(0,N.useState)(!1),[Ce,we]=(0,N.useState)(!1),[Te,Ee]=(0,N.useState)(0),[De,Oe]=(0,N.useState)(null),[ke,Ae]=(0,N.useState)(e),[je,Me]=(0,N.useState)(null),Ne=(0,N.useCallback)((e,t)=>{Me(n=>t?e:n===e?null:n)},[]),Pe=(0,N.useRef)(!1),Fe=(0,N.useRef)(!1),Ie=(0,N.useRef)(null),Le=(0,N.useRef)(null),Re=(0,N.useRef)(null),ze=(0,N.useRef)(null),Be=(0,N.useRef)(null),He=(0,N.useRef)(0),Ue=(0,N.useRef)({left:0,right:0}),We=bx(_e.trim(),250),Ge=D.documents,Ke=D.focusedPane,qe=D.active[Ke],Je=(0,N.useRef)({left:null,right:null}),Ye=(0,N.useRef)(new Map),Xe=(0,N.useRef)(!1),Ze=(0,N.useRef)(null),Qe=D.active.left?Z(D.active.left):null,$e=D.active.right?Z(D.active.right):null;(0,N.useLayoutEffect)(()=>{let e=Je.current.left;!e||!Qe||(e.scrollTop=Ye.current.get(Qe)??0)},[Qe,Te]),(0,N.useLayoutEffect)(()=>{let e=Je.current.right;!e||!$e||(e.scrollTop=Ye.current.get($e)??0)},[Te,$e]);let et=(0,N.useCallback)(()=>{if(!i)return null;let e=O.current,t=e.focusedPane,n=e.active[t];if(!n)return null;let r=Z(n),a=T.current,o=Je.current[t]?.scrollTop??Ye.current.get(r)??0,s=E.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]),nt=(0,N.useCallback)((e,t)=>{let n=T.current,r=O.current.active[e];!n||n.requestId!==t||!r||Z(r)!==n.documentKey||(E.current={requestId:t,documentKey:n.documentKey,pane:e,top:Je.current[e]?.scrollTop??Ye.current.get(n.documentKey)??0})},[O]),at=(0,N.useCallback)(()=>{Ze.current!==null&&(window.clearTimeout(Ze.current),Ze.current=null)},[]),ot=(0,N.useCallback)(()=>{if(!Xe.current)return;let e=et();e&&window.history.replaceState(ox(window.history.state,e),``)},[et]),st=(0,N.useCallback)(()=>{Xe.current&&(at(),Ze.current=window.setTimeout(()=>{Ze.current=null,ot()},150))},[at,ot]),ct=(0,N.useCallback)((e,t,n,r)=>{if(!i||!Xe.current)return;at();let a=O.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(ox(window.history.state,s),``);return}let c=new URL(window.location.href);c.hash=r??``,window.history.pushState(ox(window.history.state,s),``,c)},[at,i,ot]),lt=(0,N.useCallback)((e,t,n)=>{He.current+=1;let r={documentKey:e,line:t.line,...t.endLine===void 0?{}:{endLine:t.endLine},requestId:He.current,resetHorizontal:n};E.current=null,T.current=r,w(r)},[]),ut=(0,N.useCallback)((e,t,n,r=!0)=>{let i=O.current,a=Z(e),o=t??i.panes[a]??i.focusedPane,s=n??{kind:`scroll`,top:Ye.current.get(a)??0};ct(e,o,s),ne(e,o),s.kind===`line`&<(a,s,r)},[ne,ct,lt]),dt=(0,N.useCallback)((e,t,n,r)=>{let i=Z(e),a={kind:`line`,line:n};ct(e,t,a,r),lt(i,a,!0)},[ct,lt]),ft=(0,N.useCallback)((e,t)=>ut(e,t),[ut]),mt=(0,N.useCallback)((e,t)=>{let n=O.current,r=t??n.panes[Z(e)]??n.focusedPane;ct(e,r,{kind:`scroll`,top:Ye.current.get(Z(e))??0}),te(e,r)},[te,ct]);(0,N.useEffect)(()=>{if(!De)return;let e=window.setTimeout(()=>Oe(null),Dx);return()=>window.clearTimeout(e)},[De]);let gt=(0,N.useCallback)((e,t)=>{j(e,t),ue(null)},[j]),_t=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.max(px,Math.min(mx,n.width-hx));ae(vx(e-n.left,px,r))},St=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.min(_x,Math.max(160,(n.width-48)/2))/n.width*100,i=(e-n.left)/n.width*100;oe(vx(i,r,100-r))},Ct=e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),ce(null)},wt=rt({queryKey:[`theme-preference`],queryFn:async()=>await vt(`/api/preferences/theme`)});(0,N.useEffect)(()=>{let e=wt.data?.themePreference;e&&(Ae(e),jb(e),Ab(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=>{Ae(e),jb(e),Ab(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?Rb(Ot,a):null,It=Pt>=0&&Pt<=Mt,Lt=Bb(Ot,kt,s);(0,N.useEffect)(()=>{let e=Ie.current;if(At&&(!a||a===e)){let e=!!(Fe.current&&a&&s===a),t=Ot.some(e=>e.oid===s);o(At),c(Fe.current?e?At:t?s:Rb(Ot,At):zb(Ot,At))}Ie.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=O.current,n=Z(e.document),r=t.panes[n]??e.pane;if(e.locator.kind===`scroll`&&Ye.current.set(n,e.locator.top),ne(e.document,r),e.locator.kind===`line`){lt(n,e.locator,!0);return}let i=e.locator.top;window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{let e=O.current.panes[n]??r,t=Je.current[e];t&&(t.scrollTop=i)})})},[at,ne,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=sx(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||Xe.current)return;Xe.current=!0;let e=et();if(!e)return;let t=new URL(window.location.href);t.hash=``,window.history.replaceState(ox(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(),we(!1),ge(null),me(!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(),g(!0),window.requestAnimationFrame(()=>{Be.current?.focus(),Be.current?.select()}))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,N.useLayoutEffect)(()=>{Ce&&Re.current?.querySelector(`[role^="menuitem"]:not(:disabled)`)?.focus()},[Ce]),(0,N.useEffect)(()=>{if(!Ce)return;let e=e=>{Re.current?.contains(e.target)||we(!1)},t=e=>{e.key===`Escape`&&(we(!1),ze.current?.focus())};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[Ce]);let F=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())},Bt=(e,t)=>{let n=Vb(Ot,e,t);n&&(Fe.current=!0,c(n.startOid),o(n.endOid),n.endOid!==a&&(w(null),ee(e=>({...e,documents:e.documents.map(O_),active:{left:e.active.left?O_(e.active.left):null,right:e.active.right?O_(e.active.right):null}}))))},Vt=rt({queryKey:[`tree`,i,a],queryFn:async()=>await vt(`/api/pull-requests/${i}/tree?oid=${encodeURIComponent(a)}`),enabled:!!(i&&a)}),I=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)}),Ht=rt({queryKey:[`change-sequence`],queryFn:async()=>await vt(`/api/meta/change-sequence`,Pb()),refetchInterval:1e3,refetchIntervalInBackground:!0,networkMode:`always`});(0,N.useEffect)(()=>{let e=Ht.data?.changeSequence;if(e===void 0)return;let n=Le.current;Le.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`]}))},[Ht.data?.changeSequence,t]);let Ut=rt({queryKey:[`comments`,i,Ht.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}),Wt=Ut.data?.comments??[],Gt=rt({queryKey:[`walkthroughs`,i],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs`),enabled:!!i}),Kt=Gt.data?.walkthroughs??[];(0,N.useEffect)(()=>{if(!Gt.isSuccess)return;let e=new Map(Kt.map(e=>[e.id,e]));ee(t=>{let n=t;for(let r of t.documents)r.kind===`walkthrough`&&!e.has(r.id)&&(n=D_(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)}}})},[Gt.data?.walkthroughs,Gt.isSuccess]);let qt=(0,N.useMemo)(()=>Ge.filter(e=>e.kind===`walkthrough`).map(e=>e.id),[Ge]),Jt=tt({queries:qt.map(e=>({queryKey:[`walkthrough`,i,e],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs/${e}`),enabled:!!i}))}),Yt=new Map,Xt=new Set;qt.forEach((e,t)=>{let n=Jt[t],r=n?.data?.walkthrough;r&&Yt.set(e,r),n?.isPending&&Xt.add(e)});let Zt=(0,N.useMemo)(()=>{let e=I.data?.files??[];return Hy((Vt.data?.entries??[]).map(e=>({path:e.path,entryKind:e.kind})),e)},[I.data?.files,Vt.data?.entries]),Qt=(0,N.useMemo)(()=>x===`changed`?(I.data?.files??[]).map(e=>({path:ux(e),entryKind:`file`,changeKind:e.kind})):Zt,[Zt,I.data?.files,x]),$t=(0,N.useMemo)(()=>{let e=new Map;for(let t of I.data?.files??[])e.set(ux(t),t.kind),t.oldPath&&e.set(t.oldPath,t.kind),t.newPath&&e.set(t.newPath,t.kind);return e},[I.data?.files]),en=(0,N.useMemo)(()=>{if(!de.trim())return Qt;let e=new Set(pt.default.go(de,Qt.map(e=>e.path),{limit:100}).map(e=>e.target));return Qt.filter(t=>e.has(t.path))},[de,Qt]),tn=rt({queryKey:[`search`,i,a,We,ye,xe],queryFn:async({signal:e})=>{let t=new URLSearchParams({oid:a,q:We,matchCase:String(ye),wholeWord:String(xe)});return await vt(`/api/pull-requests/${i}/search?${t.toString()}`,{signal:e})},enabled:!!(i&&a&&We)}),nn=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(Fe.current?i?e.headOid:t?l:Rb(e.commits,e.headOid):zb(e.commits,e.headOid))}n.announce&&Oe(`GitHubと同期しました · ${new Intl.DateTimeFormat(`ja-JP`,{hour:`2-digit`,minute:`2-digit`}).format(new Date)}`)}});(0,N.useEffect)(()=>{!Dt.data||Pe.current||(Pe.current=!0,nn.mutate({announce:!1}))},[Dt.data]);let rn=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.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&&(Xb(e.pullRequest.id),Ye.current.clear(),Ee(e=>e+1),ee(S_()),w(null),Fe.current=!1,o(e.pullRequest.latestHeadOid),c(zb(e.commits,e.pullRequest.latestHeadOid)),u(`full`),await t.invalidateQueries())}}),an=(0,N.useCallback)((e,t=!1)=>{x===`changed`&&u(`diff`),ft({kind:`repository-file`,path:e},t?`right`:void 0)},[ft,x]),on=(0,N.useCallback)((e,t,n)=>{ft({kind:`repository-file`,path:e,sourceOid:t,comparisonPolicy:`exact-source`},n)},[ft]),sn=(0,N.useCallback)((e,t,n)=>on(e,t,n?`right`:`left`),[on]),cn=(0,N.useCallback)((e,t,n)=>on(e,t,n?`left`:`right`),[on]),ln=(0,N.useCallback)((e,t,n)=>on(e,t,n?`right`:O.current.focusedPane),[on]),un=(e,t=!1)=>{let n=e.document.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:{kind:`repository-file`,path:e.path},r=O.current,i=Z(n),o=r.documents.find(e=>Z(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||Z(c)!==i;ut(o,s,{kind:`line`,line:e.line},l)},dn=(e,t)=>{let n=e.target,r=(e,t,n)=>{ut(e,void 0,{kind:`line`,line:t,...n===null?{}:{endLine:n}})};if(v(!0),Me(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=Kt.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)=>{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)=>{Ue.current[r]+=1;let i=Ue.current[r],a=O.current.navigationRevision[r],o=()=>i===Ue.current[r]&&O.current.navigationRevision[r]===a,s={kind:`repository-file`,pullRequestId:e.pullRequestId,sourceOid:e.sourceOid,path:n.path};try{let e=await t.fetchQuery({queryKey:[`document`,s],queryFn:async()=>(await vt(bt(s))).document});if(!o())return null;if(e.availability!==`available`)return e.availability===`missing`?`リンク切れ · ${n.path}`:`参照先を表示できません · ${n.path}`}catch(e){return o()?e instanceof ht&&[`COMMIT_NOT_FOUND`,`DOCUMENT_NOT_FOUND`,`NOT_FOUND`].includes(e.code)?`リンク切れ · ${n.path}`:`参照先を開けません · ${n.path}`:null}let c={kind:`repository-file`,path:n.path,sourceOid:e.sourceOid,comparisonPolicy:`selected-range`},l=Z(c),u=O.current.active[r],d=!u||Z(u)!==l;return ut(c,r,{kind:`line`,line:n.startLine,...n.endLine===null?{}:{endLine:n.endLine}},d),null},[ut,t]),mn=(0,N.useCallback)((e,t,n)=>pn(e,t,n?`right`:`left`),[pn]),hn=(0,N.useCallback)((e,t,n)=>pn(e,t,n?`left`:`right`),[pn]);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:Ox(Dt.error)})]});let gn=Dt.data.pullRequest,_n={documentDisplayMode:l,displayMode:Rt,selectedOid:a,changedFiles:I.data?.files,changedFilesLoaded:I.isSuccess,walkthroughDetails:Yt,loadingWalkthroughIds:Xt},vn={left:Qb(D.active.left,_n),right:Qb(D.active.right,_n)},yn=Nt===void 0,bn=!!(!yn&&Lt&&Lt!==a&&Object.values(D.active).some(e=>e!==null&&e.kind!==`walkthrough`)),xn=!!(bn&&Object.values(vn).some(e=>e.viewerDocument?.kind===`repository-file`&&e.activeChange)),Sn=nn.error??rn.error??wt.error??Tt.error??Ht.error,Cn=Ge.some(e=>D.panes[Z(e)]===`right`)||le!==null,wn=e=>{let t=Ge.filter(t=>(D.panes[Z(t)]??`left`)===e),n=D.active[e],r=vn[e],i=r.viewerDocument;return(0,P.jsxs)(`section`,{ref:t=>{Je.current[e]=t},onScroll:t=>{i&&(Ye.current.set(Z(i),t.currentTarget.scrollTop),O.current.focusedPane===e&&st())},className:`document-pane${Ke===e?` active`:``}${t.length===0?` empty`:``}`,"data-pane":e,"aria-label":`${e===`left`?`左`:`右`}のコードペイン`,onPointerDown:()=>ee(t=>t.focusedPane===e?t:{...t,focusedPane:e}),children:[(0,P.jsx)(lb,{paneId:e,documents:t,activeDocument:n,changeKindsByPath:$t,onActivate:t=>mt(t,e),onClose:re,onCloseOthers:t=>k(e,t),onCloseAll:()=>k(e),onMove:A,onDropDocument:gt,onDragStartDocument:ue,onDragEndDocument:()=>ue(null)}),i?.kind===`walkthrough`&&r.walkthrough?(0,P.jsx)(ub,{label:`ウォークスルー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`ウォークスルーを準備しています…`}),children:(0,P.jsx)(lx,{walkthrough:r.walkthrough,comments:Wt,activeCommentId:je,navigationTarget:C?.documentKey===Z(i)?C:null,onNavigationApplied:t=>nt(e,t),themePreference:ke,onCommentActiveChange:Ne,onOpenReference:e===`left`?mn:hn,onOpenRepositoryLink:e===`left`?sn:cn,onDeleted:()=>re(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)(ub,{label:`文書ビューアー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`文書を準備しています…`}),children:(0,P.jsx)(cx,{pullRequestId:gn.id,selectedOid:a,oldOid:Lt,activeDocument:i,displayMode:r.effectiveDisplayMode,diffStyle:d,comments:Wt,activeCommentId:je,fullViewNotice:r.fullViewNotice,fullViewUnavailableMessage:r.fullViewUnavailableMessage,themePreference:ke,onCommentActiveChange:Ne,navigationTarget:C?.documentKey===Z(i)?C:null,onNavigationApplied:t=>nt(e,t),onOpenMarkdownFragment:(t,n)=>dt(i,e,t,n),onOpenRepositoryLink:(t,n,r)=>on(t,n,r?w_(e):e)},`${Te}:${e}:${a}:${Lt}:${r.effectiveDisplayMode}:${Z(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:le?`ここへドロップ`:`${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:[gn.owner,`/`,gn.repository,` · #`,gn.number]}),(0,P.jsx)(`h1`,{children:(0,P.jsx)(`a`,{href:gn.url,target:`_blank`,rel:`noopener noreferrer`,children:gn.latestTitle})})]}),(0,P.jsx)(Tx,{selectedOid:a,selectedStartOid:s??a,commits:Ot,latestHeadOid:At,specialSelected:yn,specialSelectionLabel:qe?.kind===`walkthrough`?`Walkthrough source`:`コメント元`,documentDisplayMode:l,diffStyle:d,comparisonAvailable:bn,diffViewAvailable:xn,onCommitRangeChange:Bt,onDisplayModeChange:u,onDiffStyleChange:f}),(0,P.jsxs)(`div`,{className:`topbar-menu`,ref:Re,children:[(0,P.jsx)(`button`,{ref:ze,className:`topbar-menu-toggle`,"aria-label":`その他の操作`,"aria-haspopup":`menu`,"aria-expanded":Ce,onClick:()=>we(e=>!e),children:(0,P.jsx)(Cx,{})}),Ce&&(0,P.jsxs)(`div`,{className:`topbar-menu-popover`,role:`menu`,onKeyDown:F,children:[(0,P.jsxs)(`button`,{role:`menuitem`,className:`topbar-menu-command`,onClick:()=>{we(!1),ge(ze.current),me(!0)},children:[(0,P.jsx)(`span`,{children:`ファイルを開く…`}),(0,P.jsx)(`kbd`,{children:`⌘ / Ctrl P`})]}),(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>{we(!1),Oe(null),nn.mutate({announce:!0})},disabled:nn.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テーマ`}),Ex.map(e=>(0,P.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":ke===e.preference,disabled:Tt.isPending,onClick:()=>{Et(e.preference),we(!1)},children:[(0,P.jsx)(`span`,{children:e.label}),(0,P.jsx)(`span`,{className:`topbar-menu-check`,"aria-hidden":`true`,children:ke===e.preference?`✓`:``})]},e.preference))]}),(0,P.jsx)(`button`,{className:`topbar-menu-danger`,role:`menuitem`,onClick:()=>{we(!1),rn.mutate()},disabled:rn.isPending,children:`ローカル状態を削除して再構築`})]})]})]}),pe&&(0,P.jsx)(wb,{open:!0,returnFocusElement:he,files:Zt,openDocuments:Ge,activeDocument:qe,activePane:Ke,loading:Vt.isPending,error:Vt.error,onClose:()=>me(!1),onOpen:e=>ft(e,Ke)}),(0,P.jsx)(xt,{error:Sn}),De&&(0,P.jsx)(`div`,{className:`sync-feedback`,role:`status`,children:De}),(0,P.jsxs)(`div`,{className:`workspace${se?` is-resizing`:``}`,style:{"--sidebar-width":`${ie}px`},children:[(0,P.jsxs)(`aside`,{className:`sidebar`,"aria-label":`レビューサイドバー`,children:[(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--files${p?` is-expanded`:``}`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":p,onClick:()=>m(e=>!e),children:[(0,P.jsx)(By,{kind:`file`}),(0,P.jsx)(`span`,{children:`ファイル`}),(0,P.jsx)(Sx,{expanded:p})]}),(0,P.jsx)(`div`,{className:`sidebar-stack-body`,hidden:!p,children:(0,P.jsxs)(`div`,{className:`file-panel`,children:[(0,P.jsx)(`input`,{value:de,onChange:e=>fe(e.target.value),placeholder:`ファイル名を検索`}),(0,P.jsxs)(`div`,{className:`segmented file-tree-mode`,children:[(0,P.jsx)(`button`,{className:x===`changed`?`active`:``,onClick:()=>S(`changed`),children:`変更ファイル`}),(0,P.jsx)(`button`,{className:x===`all`?`active`:``,onClick:()=>S(`all`),children:`全ファイル`})]}),(0,P.jsx)(xt,{error:x===`changed`?I.error:Vt.error}),(0,P.jsxs)(`nav`,{className:`file-tree`,children:[(0,P.jsxs)(`button`,{className:`file-tree-row file-tree-file${qe?.kind===`pull-request-markdown`?` active`:``}`,onMouseDown:e=>{!e.metaKey&&!e.ctrlKey||(e.preventDefault(),ft({kind:`pull-request-markdown`},`right`))},onClick:e=>{!e.metaKey&&!e.ctrlKey&&ft({kind:`pull-request-markdown`})},onContextMenu:e=>{(e.ctrlKey||e.metaKey)&&e.preventDefault()},"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)(By,{path:`Pull Request.md`,kind:`file`})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:`Pull Request.md`})]}),(0,P.jsx)(rb,{files:en,activePath:qe?.kind===`repository-file`?qe.path:null,filtering:!!de.trim(),initiallyExpanded:x===`changed`?`all`:`active-file`,onOpenFile:an},`${s}:${a}:${x}:${x===`changed`?I.dataUpdatedAt:Vt.dataUpdatedAt}`)]})]})})]}),(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--search${h?` is-expanded`:``}`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":h,onClick:()=>g(e=>!e),children:[(0,P.jsx)(gb,{}),(0,P.jsx)(`span`,{children:`検索`}),tn.data&&We&&(0,P.jsx)(`span`,{className:`sidebar-stack-count`,children:tn.data.matchCount}),(0,P.jsx)(Sx,{expanded:h})]}),(0,P.jsx)(`div`,{className:`sidebar-stack-body`,hidden:!h,children:(0,P.jsx)(_b,{inputRef:Be,query:_e,matchCase:ye,wholeWord:xe,changeKindsByPath:$t,response:We?tn.data:void 0,isFetching:!!(We&&tn.isFetching),error:We?tn.error:null,onQueryChange:ve,onMatchCaseChange:be,onWholeWordChange:Se,onOpenResult:un})})]}),(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--comments${_?` is-expanded`:``}`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":_,onClick:()=>v(e=>!e),children:[(0,P.jsx)(xx,{}),(0,P.jsx)(`span`,{children:`コメント`}),(0,P.jsx)(`span`,{className:`sidebar-stack-count`,children:Wt.filter(e=>!e.resolvedAt).length}),(0,P.jsx)(Sx,{expanded:_})]}),(0,P.jsxs)(`div`,{className:`sidebar-stack-body`,hidden:!_,children:[(0,P.jsx)(xt,{error:Ut.error}),(0,P.jsx)(v_,{comments:Wt,walkthroughs:Kt,pullRequestId:gn.id,selectedOid:a,themePreference:ke,onCommentActiveChange:Ne,onOpenTarget:dn,onOpenRepositoryLink:ln})]})]}),(0,P.jsxs)(`section`,{className:`sidebar-stack sidebar-stack--walkthroughs${y?` is-expanded`:``}`,children:[(0,P.jsxs)(`button`,{className:`sidebar-stack-toggle`,"aria-expanded":y,onClick:()=>b(e=>!e),children:[(0,P.jsx)(ib,{className:`sidebar-stack-icon`}),(0,P.jsx)(`span`,{children:`ウォークスルー`}),(0,P.jsx)(`span`,{className:`sidebar-stack-count`,children:Kt.length}),(0,P.jsx)(Sx,{expanded:y})]}),(0,P.jsxs)(`div`,{className:`sidebar-stack-body`,hidden:!y,children:[(0,P.jsx)(xt,{error:Gt.error}),(0,P.jsx)(ob,{walkthroughs:Kt,activeWalkthroughId:qe?.kind===`walkthrough`?qe.id:null,onOpen:fn})]})]})]}),(0,P.jsx)(`div`,{className:`horizontal-resize-handle sidebar-resize-handle${se===`sidebar`?` active`:``}`,role:`separator`,"aria-label":`サイドバーの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":px,"aria-valuemax":mx,"aria-valuenow":Math.round(ie),tabIndex:0,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),ce(`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:()=>ce(null),onDoubleClick:()=>ae(yx()),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),ae(t=>vx(t+(e.key===`ArrowLeft`?-16:16),px,mx)))}}),(0,P.jsxs)(`section`,{id:`review-main-content`,tabIndex:-1,className:`main-view${Cn?` two-pane`:``}${se===`panes`?` is-resizing`:``}`,style:Cn?{gridTemplateColumns:`minmax(${_x}px, ${M}fr) 6px minmax(${_x}px, ${100-M}fr)`}:void 0,children:[wn(`left`),Cn&&(0,P.jsx)(`div`,{className:`horizontal-resize-handle pane-resize-handle${se===`panes`?` active`:``}`,role:`separator`,"aria-label":`左右ペインの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(M),tabIndex:0,onPointerDown:e=>{e.button===0&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),ce(`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:()=>ce(null),onDoubleClick:()=>oe(gx),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),oe(t=>vx(t+(e.key===`ArrowLeft`?-2:2),20,80)))}}),Cn&&wn(`right`)]})]})]})}Ib();var Ax=new Fe({defaultOptions:{queries:{retry:1,staleTime:500},mutations:{retry:!1}}}),jx=document.getElementById(`root`);if(!jx)throw Error(`root elementがありません。`);async function Mx(){let e=kb();jb(e);try{let e=await vt(`/api/preferences/theme`);return Ab(e.themePreference),Ax.setQueryData([`theme-preference`],e),e.themePreference}catch(t){return console.warn(`共有テーマ設定を読み込めませんでした。ブラウザーの設定を使用します。`,t),e}}Mx().then(e=>{jb(e),(0,ft.createRoot)(jx).render((0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(He,{client:Ax,children:(0,P.jsx)(kx,{initialThemePreference:e})})}))});export{Mt as A,rt as B,Lc as C,fn as D,hn as E,vt as F,ze as H,bt as I,yt as L,Ct as M,wt as N,pn as O,xt as P,ct as R,Zc as S,uc as T,Le as U,Ve as V,Yp as _,Jb as a,Cp as b,h_ as c,Yg as d,qg as f,Ug as g,Jg as h,qb as i,Et as j,ln as k,r_ as l,Kg as m,Kb as n,ib as o,Gg as p,Yb as r,By as s,Gb as t,$g as u,Jp as v,oc as w,xp as x,Bp as y,it as z};
|
|
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 Pv(e,t){return{fg:Q(e),bg:Q(t)}}var Fv=[{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`]}],Iv=[{name:`astro`,color:Pv(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`]}],Lv=[{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`]}],Rv=[{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:Pv(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`]}],zv=[...Fv,...Iv,...Lv,...Rv],Bv=[{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:Pv(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`]}],Vv=[{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`}],Hv={dark:`#adadb1`,light:`#6c6c71`},Uv=[...Vv,...Bv,...zv],Wv=new Map,Gv=new Map,Kv=new Map;for(let e of Uv){Wv.set(e.name,e);for(let t of e.fileNames??[])Gv.set(t,e),Gv.set(t.toLocaleLowerCase(),e);for(let t of e.fileExtensions??[])Kv.set(t.toLocaleLowerCase(),e)}function qv(e){return e?`fg`in e?{foreground:e.fg,background:e.bg}:{foreground:e,background:e}:{foreground:Hv,background:Hv}}function Jv(e){return{name:e.name,svgName:e.svgName??e.name,...qv(e.color)}}function Yv(e){let t=e.replaceAll(`\\`,`/`).replace(/\/+$/u,``);return t.split(`/`).at(-1)??t}function Xv(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 Zv(e){let t=Wv.get(e);if(!t)throw Error(`vscode-icons definition is missing: ${e}`);return Jv(t)}function Qv(e,t=`file`){if(t===`symlink`)return Zv(`file-symlink-duo`);if(t===`submodule`)return{name:`submodule`,svgName:`IconLayers3Middle`,foreground:Hv,background:Hv};let n=Yv(e),r=Gv.get(n)??Gv.get(n.toLocaleLowerCase());if(r)return Jv(r);for(let e of Xv(n)){let t=Kv.get(e);if(t)return Jv(t)}return Zv(`file-duo`)}function $v(e){return Zv(e?`folder-open-duo`:`folder-duo`)}var ey=new Map(Object.entries(Object.assign({"/node_modules/@pierre/vscode-icons/svgs/IconLayers3Middle.svg":Yg,"/node_modules/@pierre/vscode-icons/svgs/astro.svg":Xg,"/node_modules/@pierre/vscode-icons/svgs/babel.svg":Zg,"/node_modules/@pierre/vscode-icons/svgs/bash-duo.svg":Qg,"/node_modules/@pierre/vscode-icons/svgs/bash.svg":$g,"/node_modules/@pierre/vscode-icons/svgs/biome.svg":e_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap-duo.svg":t_,"/node_modules/@pierre/vscode-icons/svgs/bootstrap.svg":n_,"/node_modules/@pierre/vscode-icons/svgs/braces.svg":r_,"/node_modules/@pierre/vscode-icons/svgs/browserslist-duo.svg":i_,"/node_modules/@pierre/vscode-icons/svgs/bun-duo.svg":a_,"/node_modules/@pierre/vscode-icons/svgs/bun.svg":o_,"/node_modules/@pierre/vscode-icons/svgs/claude.svg":s_,"/node_modules/@pierre/vscode-icons/svgs/code-block-duo.svg":c_,"/node_modules/@pierre/vscode-icons/svgs/code.svg":l_,"/node_modules/@pierre/vscode-icons/svgs/css.svg":u_,"/node_modules/@pierre/vscode-icons/svgs/docker.svg":d_,"/node_modules/@pierre/vscode-icons/svgs/eslint.svg":f_,"/node_modules/@pierre/vscode-icons/svgs/extension.svg":p_,"/node_modules/@pierre/vscode-icons/svgs/file-duo.svg":m_,"/node_modules/@pierre/vscode-icons/svgs/file-plus-duo.svg":h_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink-duo.svg":g_,"/node_modules/@pierre/vscode-icons/svgs/file-symlink.svg":__,"/node_modules/@pierre/vscode-icons/svgs/file-table-duo.svg":v_,"/node_modules/@pierre/vscode-icons/svgs/file-table.svg":y_,"/node_modules/@pierre/vscode-icons/svgs/file-text-duo.svg":b_,"/node_modules/@pierre/vscode-icons/svgs/file-text.svg":x_,"/node_modules/@pierre/vscode-icons/svgs/file-zip-duo.svg":S_,"/node_modules/@pierre/vscode-icons/svgs/file-zip.svg":C_,"/node_modules/@pierre/vscode-icons/svgs/file.svg":w_,"/node_modules/@pierre/vscode-icons/svgs/folder-duo.svg":T_,"/node_modules/@pierre/vscode-icons/svgs/folder-open-duo.svg":E_,"/node_modules/@pierre/vscode-icons/svgs/folder-open.svg":D_,"/node_modules/@pierre/vscode-icons/svgs/folder-plus-duo.svg":O_,"/node_modules/@pierre/vscode-icons/svgs/folder-zip-duo.svg":k_,"/node_modules/@pierre/vscode-icons/svgs/folder-zip.svg":A_,"/node_modules/@pierre/vscode-icons/svgs/folder.svg":j_,"/node_modules/@pierre/vscode-icons/svgs/folders.svg":M_,"/node_modules/@pierre/vscode-icons/svgs/font.svg":N_,"/node_modules/@pierre/vscode-icons/svgs/gear.svg":P_,"/node_modules/@pierre/vscode-icons/svgs/git.svg":F_,"/node_modules/@pierre/vscode-icons/svgs/graphql.svg":I_,"/node_modules/@pierre/vscode-icons/svgs/html.svg":L_,"/node_modules/@pierre/vscode-icons/svgs/image-duo.svg":R_,"/node_modules/@pierre/vscode-icons/svgs/image.svg":z_,"/node_modules/@pierre/vscode-icons/svgs/javascript.svg":B_,"/node_modules/@pierre/vscode-icons/svgs/lang-c.svg":V_,"/node_modules/@pierre/vscode-icons/svgs/lang-css-duo.svg":H_,"/node_modules/@pierre/vscode-icons/svgs/lang-css.svg":U_,"/node_modules/@pierre/vscode-icons/svgs/lang-go.svg":W_,"/node_modules/@pierre/vscode-icons/svgs/lang-html-duo.svg":G_,"/node_modules/@pierre/vscode-icons/svgs/lang-html.svg":K_,"/node_modules/@pierre/vscode-icons/svgs/lang-html5-duo.svg":q_,"/node_modules/@pierre/vscode-icons/svgs/lang-html5.svg":J_,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript-duo.svg":Y_,"/node_modules/@pierre/vscode-icons/svgs/lang-javascript.svg":X_,"/node_modules/@pierre/vscode-icons/svgs/lang-markdown.svg":Z_,"/node_modules/@pierre/vscode-icons/svgs/lang-python.svg":Q_,"/node_modules/@pierre/vscode-icons/svgs/lang-ruby.svg":$_,"/node_modules/@pierre/vscode-icons/svgs/lang-rust.svg":ev,"/node_modules/@pierre/vscode-icons/svgs/lang-swift.svg":tv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript-duo.svg":nv,"/node_modules/@pierre/vscode-icons/svgs/lang-typescript.svg":rv,"/node_modules/@pierre/vscode-icons/svgs/markdown.svg":iv,"/node_modules/@pierre/vscode-icons/svgs/mcp.svg":av,"/node_modules/@pierre/vscode-icons/svgs/nextjs.svg":ov,"/node_modules/@pierre/vscode-icons/svgs/npm-duo.svg":sv,"/node_modules/@pierre/vscode-icons/svgs/npm.svg":cv,"/node_modules/@pierre/vscode-icons/svgs/oxc-fill.svg":lv,"/node_modules/@pierre/vscode-icons/svgs/oxc.svg":uv,"/node_modules/@pierre/vscode-icons/svgs/postcss.svg":dv,"/node_modules/@pierre/vscode-icons/svgs/prettier.svg":fv,"/node_modules/@pierre/vscode-icons/svgs/react.svg":pv,"/node_modules/@pierre/vscode-icons/svgs/rss.svg":mv,"/node_modules/@pierre/vscode-icons/svgs/sass.svg":hv,"/node_modules/@pierre/vscode-icons/svgs/server-duo.svg":gv,"/node_modules/@pierre/vscode-icons/svgs/server.svg":_v,"/node_modules/@pierre/vscode-icons/svgs/stylelint.svg":vv,"/node_modules/@pierre/vscode-icons/svgs/svelte.svg":yv,"/node_modules/@pierre/vscode-icons/svgs/svg-2.svg":bv,"/node_modules/@pierre/vscode-icons/svgs/svg.svg":xv,"/node_modules/@pierre/vscode-icons/svgs/svgo.svg":Sv,"/node_modules/@pierre/vscode-icons/svgs/tailwind.svg":Cv,"/node_modules/@pierre/vscode-icons/svgs/terraform.svg":wv,"/node_modules/@pierre/vscode-icons/svgs/typescript.svg":Tv,"/node_modules/@pierre/vscode-icons/svgs/vite.svg":Ev,"/node_modules/@pierre/vscode-icons/svgs/vscode.svg":Dv,"/node_modules/@pierre/vscode-icons/svgs/vue.svg":Ov,"/node_modules/@pierre/vscode-icons/svgs/wasm-duo.svg":kv,"/node_modules/@pierre/vscode-icons/svgs/wasm.svg":Av,"/node_modules/@pierre/vscode-icons/svgs/webpack.svg":jv,"/node_modules/@pierre/vscode-icons/svgs/yml.svg":Mv,"/node_modules/@pierre/vscode-icons/svgs/zig.svg":Nv})).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 ty(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 ny({icon:e}){let t=ey.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:ty(e),"aria-hidden":`true`,dangerouslySetInnerHTML:{__html:t}})}function ry({path:e=``,kind:t}){return(0,P.jsx)(ny,{icon:Qv(e,t)})}function iy({expanded:e}){return(0,P.jsx)(ny,{icon:$v(e)})}var ay=new Map,oy={...Cp,protocols:{...Cp.protocols,href:[...Cp.protocols?.href??[],`rvw-ref`]}};function sy(e){return e?.startsWith(`rvw-ref:`)?e.slice(8):null}function cy(e){return e.startLine===null||e.endLine===null?null:e.startLine===e.endLine?`L${e.startLine}`:`L${e.startLine}–${e.endLine}`}function ly(e){let t=cy(e);return t?`${e.path}:${t}`:e.path}function uy({reference:e,children:t,className:n,onOpen:r}){return(0,P.jsxs)(`button`,{className:[`code-inline-reference`,n].filter(Boolean).join(` `),title:ly(e),onPointerDown:e=>{e.button===0&&ay.set(e.pointerId,{x:e.clientX,y:e.clientY})},onPointerUp:t=>{let n=ay.get(t.pointerId);ay.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=>{ay.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)(ry,{path:e.path,kind:`file`}),(0,P.jsx)(`span`,{children:t}),(0,P.jsx)(`small`,{children:cy(e)??`File`})]})}function dy({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 fy=`modulepreload`,py=function(e){return`/`+e},my={},hy=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=py(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`:fy,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)})},gy=Promise.resolve(),_y=`(prefers-color-scheme: dark)`;function vy(){let[e,t]=(0,N.useState)(()=>window.matchMedia(_y).matches);return(0,N.useEffect)(()=>{let e=window.matchMedia(_y),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function yy({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=vy(),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 gy=gy.then(async()=>{let{default:n}=await hy(async()=>{let{default:e}=await import(`./mermaid.core-hykiOF_o.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 by(e){return N.Children.toArray(e).map(e=>typeof e==`string`||typeof e==`number`?String(e):(0,N.isValidElement)(e)?by(e.props.children):``).join(``)}function xy({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)(yy,{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 Sy({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=sy(e);if(u!==null){let e=l.get(u);return e&&o?(0,P.jsx)(uy,{reference:e,className:`comment-inline-reference`,onOpen:o,children:t}):(0,P.jsx)(`span`,{children:t})}let d=Jg(e,r);if(!d){if(!e)return(0,P.jsx)(`span`,{children:t});let n=qg(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=Kg(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=Jg(e,r);return c?(0,P.jsx)(`img`,{...s,src:Gg(t,n,c),alt:i??``,title:a}):(0,P.jsx)(dy,{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)(xy,{source:by(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)(oc,{rehypePlugins:[xp,[Bp,oy]],remarkPlugins:[Ug,Jp],urlTransform:e=>e.startsWith(`rvw-ref:`)?e:uc(e),components:u,children:e})})}var Cy=new Map,wy=new Set,Ty=2400;function Ey(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 Dy(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return[e.target.walkthroughTitle,Ey(e,t)??`ウォークスルー全体`].join(` · `);let r=t?.path??(e.target.documentKind===`pull-request-markdown`?`Pull Request.md`:e.target.path),i=Ey(e,t)??`文書全体`;return[r,n===`deletions`?`変更前`:n===`additions`?`変更後`:null,i].filter(Boolean).join(` · `)}function Oy(e,t,n){if(e.target.kind===`pull-request`)return`Pull Request全体`;if(e.target.kind===`walkthrough`)return Ey(e,t)??`ウォークスルー全体`;let r=Ey(e,t)??(e.target.documentKind===`pull-request-markdown`?`文書全体`:`ファイル全体`);return n===`deletions`?`変更前 · ${r}`:r}function ky(e){return e.target.kind===`pull-request`?`Pull Request.mdを開く`:`コメント対象を開く`}function Ay(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 jy({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},Ty))};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Sy,{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 My({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,p]=(0,N.useState)(``),[m,h]=(0,N.useState)(()=>{if(t===`sidebar`)return!0;let n=Cy.get(e.id);return n?.commentUpdatedAt===e.updatedAt?n.expanded:e.resolvedAt===null}),g=(0,N.useRef)(e.updatedAt),_=(0,N.useRef)(null),[v,y]=(0,N.useState)(null),[b,x]=(0,N.useState)(null),[S,C]=(0,N.useState)(null),[w,T]=(0,N.useState)(``),[E,D]=(0,N.useState)(null),O=t===`sidebar`||m,ee=(0,N.useRef)(O),te=e.posts.find(e=>e.isRoot)??e.posts[0],ne=e.posts.filter(e=>!e.isRoot).length,re=n?.outdated??!1;(0,N.useEffect)(()=>{if(t!==`inline`||g.current===e.updatedAt)return;let n=e.resolvedAt===null;Cy.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),h(n),g.current=e.updatedAt},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{if(t!==`inline`||!wy.has(e.id))return;wy.delete(e.id);let n=window.requestAnimationFrame(()=>{_.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[e.id,e.resolvedAt,e.updatedAt,t]),(0,N.useLayoutEffect)(()=>{let e=O&&!ee.current;if(ee.current=O,!e||t!==`inline`)return;let n=window.requestAnimationFrame(()=>{_.current?.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`})});return()=>window.cancelAnimationFrame(n)},[O,t]),(0,N.useEffect)(()=>{if(!v)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-comment-menu="${v}"]`)||y(null))},t=e=>{e.key===`Escape`&&(e.preventDefault(),Array.from(_.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===v)?.querySelector(`.comment-more-trigger`)?.focus(),y(null))};return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[v]),(0,N.useLayoutEffect)(()=>{if(!v){x(null);return}let e=Array.from(_.current?.querySelectorAll(`[data-comment-menu]`)??[]).find(e=>e.dataset.commentMenu===v),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:v,top:Math.min(Math.max(d,n),f),left:Math.min(Math.max(o.right-s.width,a),p),opensUpward:u};x(e=>e?.postId===m.postId&&e.top===m.top&&e.left===m.left&&e.opensUpward===m.opensUpward?e:m)};return n(),b?.postId===v&&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)}},[b,v,O]);let k=async()=>{await Promise.all([d.invalidateQueries({queryKey:[`comments`]}),d.invalidateQueries({queryKey:[`change-sequence`]}),d.invalidateQueries({queryKey:[`annotations`]}),d.invalidateQueries({queryKey:[`comment-placement`]})])},A=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/posts`,yt({body:f,authorLabel:`You`,relatedCommitOid:null})),onSuccess:async()=>{p(``),t===`inline`&&wy.add(e.id),await k()}}),j=it({mutationFn:async()=>await vt(`/api/comments/${e.id}/${e.resolvedAt?`reopen`:`resolve`}`,yt({})),onSuccess:k}),ie=it({mutationFn:async({postId:t,body:n})=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({body:n}),method:`PATCH`}),onSuccess:async()=>{C(null),T(``),await k()}}),ae=it({mutationFn:async t=>await vt(`/api/comments/${e.id}/posts/${t}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{y(null),await k()}}),M=it({mutationFn:async()=>await vt(`/api/comments/${e.id}`,{...yt({}),method:`DELETE`}),onSuccess:async()=>{l?.(),await k()}}),oe=async()=>{await navigator.clipboard.writeText(`rvw Skillを使って、次のコメントを確認してください。\n\n${e.ref}`),y(null),D(`参照をコピーしました`),window.setTimeout(()=>D(null),1600)},se=e=>{h(!0),C(e.id),T(e.body),y(null),ie.reset()},ce=()=>{let e=ne>0?`\n返信${ne}件もすべて削除されます。`:``;window.confirm(`このコメントスレッドを削除します。${e}\nコピー済みの参照は無効になります。\n\nこの操作は元に戻せません。`)&&M.mutate()},le=e=>{window.confirm(`この返信を削除します。
|
|
382
|
+
|
|
383
|
+
この操作は元に戻せません。`)&&ae.mutate(e)},ue=Dy(e,n,r),de=t===`inline`?Oy(e,n,r):ue,fe=(0,P.jsxs)(P.Fragment,{children:[t===`inline`&&(0,P.jsx)(`span`,{className:`comment-thread-chevron`,"aria-hidden":`true`,children:O?`⌄`:`›`}),(0,P.jsxs)(`span`,{className:`comment-thread-summary-copy`,children:[(0,P.jsx)(`span`,{className:`comment-thread-target`,children:de}),t===`sidebar`&&(0,P.jsxs)(P.Fragment,{children:[!O&&(0,P.jsx)(`span`,{className:`comment-thread-excerpt`,children:te?.body??`コメント`}),(0,P.jsxs)(`span`,{className:`comment-thread-meta`,children:[te?.authorLabel??`Unknown`,` · `,ne,`返信 · 最終更新`,` `,Ay(e.updatedAt)]})]})]})]}),pe=(e,t)=>{let n=e.isRoot?`コメントのその他の操作`:`${t}件目の返信のその他の操作`,r=v===e.id,i=b?.postId===e.id?b: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:()=>{x(null),y(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 oe(),children:`参照をコピー`}),(0,P.jsx)(`button`,{role:`menuitem`,onClick:()=>se(e),children:`編集`}),e.isRoot?(0,P.jsx)(`button`,{className:`is-danger`,role:`menuitem`,onClick:ce,children:`削除`}):(0,P.jsx)(`button`,{className:`is-danger`,role:`menuitem`,onClick:()=>le(e.id),children:`削除`})]})]})};return(0,P.jsxs)(`article`,{ref:_,className:`comment-thread comment-thread--${t}${O?` 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":O,"aria-label":`${ue}のコメントを${O?`折りたたむ`:`展開`}`,onClick:()=>h(t=>{let n=!t;return Cy.set(e.id,{expanded:n,commentUpdatedAt:e.updatedAt}),n}),children:fe}):(0,P.jsx)(`div`,{className:`comment-thread-summary`,children:fe}),(0,P.jsxs)(`div`,{className:`comment-thread-header-actions`,children:[!O&&E&&(0,P.jsx)(`span`,{className:`comment-action-feedback comment-action-feedback--header`,role:`status`,children:E}),(0,P.jsxs)(`div`,{className:`comment-thread-badges`,children:[re&&(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?`解決済み`:`未解決`})]}),te&&pe(te,0)]})]}),O&&(0,P.jsxs)(`div`,{className:`comment-thread-content`,children:[re&&(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&&re&&(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:Ay(t.createdAt)}),!t.isRoot&&pe(t,n)]})]}),S===t.id?(0,P.jsxs)(`div`,{className:`comment-edit-composer`,children:[(0,P.jsx)(`textarea`,{autoFocus:!0,rows:3,value:w,"aria-label":t.isRoot?`コメントを編集`:`返信を編集`,onChange:e=>T(e.target.value),onKeyDown:e=>St(e,!!w.trim()&&!ie.isPending,()=>ie.mutate({postId:t.id,body:w}))}),(0,P.jsxs)(`div`,{className:`comment-edit-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:ie.isPending,onClick:()=>{C(null),T(``),ie.reset()},children:`キャンセル`}),(0,P.jsx)(`button`,{disabled:!w.trim()||ie.isPending,onClick:()=>ie.mutate({postId:t.id,body:w}),children:`保存`})]})]}):(0,P.jsx)(jy,{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`,{value:f,onChange:e=>p(e.target.value),onKeyDown:e=>St(e,!!f.trim()&&!A.isPending,()=>A.mutate()),placeholder:`返信を入力`,"aria-label":`${ue}へ返信`,rows:1}),(0,P.jsx)(`button`,{"aria-label":`${ue}の${t===`sidebar`?`サイドバー`:`コード内`}から返信を送信`,disabled:!f.trim()||A.isPending,onClick:()=>A.mutate(),children:`返信`})]}),(0,P.jsxs)(`div`,{className:`comment-actions`,children:[(0,P.jsx)(`button`,{className:`button--quiet`,disabled:j.isPending,onClick:()=>j.mutate(),children:e.resolvedAt?`再度開く`:`解決`}),s&&(0,P.jsx)(`button`,{className:`button--quiet`,onClick:s,children:ky(e)}),E&&(0,P.jsx)(`span`,{className:`comment-action-feedback`,role:`status`,children:E})]}),(0,P.jsx)(xt,{error:A.error??j.error??ie.error??ae.error??M.error})]})]})}function Ny(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 Py({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":`${Ny(e)}のコメントを選択`,onChange:e=>o(e.target.checked)})}),(0,P.jsx)(My,{comment:e,variant:`sidebar`,placement:f.data?.placement??null,markdownSourceOid:i,themePreference:a,onActiveChange:s,onOpenCodeReference:c,onOpenTarget:()=>l(f.data?.placement??null),onOpenRepositoryLink:u,onDeleted:d}),f.error&&(0,P.jsx)(xt,{error:f.error})]})}function Fy({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)(Py,{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 Iy={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 Ly(e){return e.kind===`pull-request-markdown`?`Pull Request.md`:e.kind===`walkthrough`?e.title:e.path}function Ry(e){let t=Ly(e);return t.split(`/`).at(-1)??t}function zy(){return{documents:[Iy],panes:{[$(Iy)]:`left`},active:{left:Iy,right:null},focusedPane:`left`,navigationRevision:{left:0,right:0}}}function By(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 Vy(e){return e===`left`?`right`:`left`}function Hy(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 Uy(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),Hy({...e,documents:a,panes:s,active:c,focusedPane:n})}function Wy(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 Hy({...e,documents:a,panes:o,active:s,focusedPane:c})}function Gy(e){return e.kind===`pull-request-markdown`?{kind:`pull-request-markdown`}:e.kind===`walkthrough`?e:{kind:`repository-file`,path:e.path}}function Ky(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 qy(e){return e.kind===`pull-request-markdown`?`PR本文`:e.kind===`walkthrough`?`Walkthrough ${e.id.slice(0,8)}`:`repository`}function Jy(e,t){let n=$(e),r=Ry(e),i=Ly(e),a=t.filter(e=>$(e)!==n&&Ry(e)===r);if(a.length===0)return{displayLabel:r,accessibleLabel:i};if(a.some(e=>Ly(e)===i)){let t=qy(e);return{displayLabel:`${r} · ${t}`,accessibleLabel:`${i}(${t})`,identityQualifier:t}}return{displayLabel:`${r} · ${Ky(i,a.map(e=>Ly(e)))||`root`}`,accessibleLabel:i}}function Yy(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 Xy={added:`追加`,deleted:`削除`,modified:`変更`,renamed:`名前変更`,"type-changed":`種類変更`};function Zy(e,t){return e.kind===t.kind?e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:`base`}):e.kind===`directory`?-1:1}function Qy(e){return{kind:`directory`,name:e.name,path:e.path,children:[...e.children.values()].map(e=>e.kind===`mutable-directory`?Qy(e):e).sort(Zy)}}function $y(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`?Qy(e):e).sort(Zy)}function eb(e){let t=new Set,n=e=>{e.kind!==`file`&&(t.add(e.path),e.children.forEach(n))};return e.forEach(n),t}function tb(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 nb(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 rb(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 ib({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 ab({kind:e}){let t=Xy[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 ob=31,sb=10,cb=400;function lb({files:e,activePath:t,filtering:n,initiallyExpanded:r,onOpenFile:i}){let a=(0,N.useMemo)(()=>$y(e),[e]),o=(0,N.useMemo)(()=>eb(a),[a]),[s,c]=(0,N.useState)(()=>r===`all`?new Set(o):rb(t,o)),l=(0,N.useMemo)(()=>tb(a,s,n),[s,n,a]),u=l.length>cb,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?nb(l.length,f.offset,f.height,ob,sb):{start:0,end:l.length},h=(0,N.useMemo)(()=>rb(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*ob}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)(ry,{path:e.path,kind:e.entryKind}),e.changeKind&&(0,P.jsx)(ab,{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)(iy,{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)(ib,{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*ob}px`},children:l.slice(m.start,m.end).map((e,t)=>v(e,m.start+t))})]})}var ub=(0,N.memo)(lb);ub.displayName=`FileTree`;function db({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 fb({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)(ry,{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)(db,{})}),(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)(db,{})}),(0,P.jsx)(`span`,{className:`file-tree-label`,children:e.title})]},e.id))})]})}function pb(){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 hb({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=Ly(e),c=Jy(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)(db,{}):(0,P.jsx)(ry,{path:s,kind:`file`}),l&&(0,P.jsx)(ab,{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)(pb,{})})]},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=Jy(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)(db,{}):(0,P.jsx)(ry,{path:Ly(e),kind:`file`}),o&&(0,P.jsx)(ab,{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 _b(e){let t=e.lastIndexOf(`/`);return t<0?{fileName:e,directory:``}:{fileName:e.slice(t+1),directory:e.slice(0,t)}}function vb(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 yb({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 bb({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)(()=>vb(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)(ib,{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}=_b(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)(yb,{expanded:t})}),(0,P.jsxs)(`span`,{className:`search-result-file-icon-group`,"aria-hidden":`true`,children:[(0,P.jsx)(ry,{path:e.path,kind:`file`}),a&&(0,P.jsx)(ab,{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)(bb,{result:e})})]},`${e.path}:${e.line}`))})]},e.key)})})]})}function Sb(e){let t=e.lastIndexOf(`/`);return t<0?{name:e,directory:``}:{name:e.slice(t+1),directory:e.slice(0,t)}}function Cb(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 wb({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 Tb(){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 Eb(e,t,n,r,i){let a=$(e),o=Sb(t.path);return{...t,...o,key:a,document:e,...i?{identityQualifier:i}:{},isActive:a===n,isOpen:r.has(a)}}function Db(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=Ly(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=Ly(e),r=(i.get(n)??0)>1?qy(e):void 0;return Eb(e,t,a,o,r)})}function Ob({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)(()=>Db(n,r,i),[i,n,r]),v=(0,N.useMemo)(()=>Cb(_,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)(Tb,{}),(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)(ry,{path:n.path,kind:n.entryKind}),n.changeKind&&(0,P.jsx)(ab,{kind:n.changeKind})]}),(0,P.jsxs)(`span`,{className:`quick-open-copy`,children:[(0,P.jsx)(`strong`,{children:(0,P.jsx)(wb,{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)(wb,{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 kb=[`light`,`dark`,`system`];function Ab(e){return kb.some(t=>t===e)}var jb=`rvw.theme`;function Mb(e){return Ab(e)?e:`system`}function Nb(){try{return Mb(window.localStorage.getItem(jb))}catch(e){return console.warn(`テーマ設定を読み込めませんでした。システム設定を使用します。`,e),`system`}}function Pb(e){try{window.localStorage.setItem(jb,e)}catch(e){console.warn(`テーマ設定を保存できませんでした。`,e)}}function Fb(e){document.documentElement.dataset.theme=e}var Ib=`x-rvw-viewer-id`,Lb=crypto.randomUUID();function Rb(){return{headers:{[Ib]:Lb}}}var zb=!1;function Bb(){zb||(zb=!0,window.addEventListener(`pagehide`,()=>{let e=JSON.stringify({viewerId:Lb}),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&&(Lb=crypto.randomUUID(),fetch(`/api/meta/change-sequence`,Rb()).catch(()=>void 0))}))}function Vb(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 Hb(e,t){let n=Vb(e,t);return e.find(e=>e.oid===t||n.has(e.oid))?.oid??null}function Ub(e,t){return!t||!e.some(e=>e.oid===t)?null:e[0]?.oid??null}function Wb(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 Gb(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}}var Kb=new Map,qb=new Map;function Jb(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 Yb(e){return JSON.stringify([Jb(e.activeDocument),e.selectedOid,e.oldOid,e.displayMode])}function Xb(e){return qb.get(e)??0}function Zb(e,t){return Kb.get(e)?.get(t)}function Qb(e,t,n,r){if(n!==Xb(e))return;let i=Kb.get(e);i||(i=new Map,Kb.set(e,i)),i.set(t,r)}function $b(e,t,n){if(n!==Xb(e))return;let r=Kb.get(e);r?.delete(t),r?.size===0&&Kb.delete(e)}function ex(e){Kb.delete(e),qb.set(e,Xb(e)+1)}function tx(e){return e.slice(0,8)}function nx(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?`参照元 ${tx(a)} ≠ 対象 ${tx(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 rx(e){let[t,n]=(0,N.useState)(zy),r=(0,N.useRef)(t),i=(0,N.useCallback)(e=>{n(t=>By(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 Uy(e,t,n??e.panes[r]??e.focusedPane)})},[e,i]),closeDocument:(0,N.useCallback)(t=>{e(),i(e=>Wy(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(Wy,e)})},[e,i]),moveDocument:(0,N.useCallback)((t,n)=>{e(),i(e=>Uy(e,t,n))},[e,i]),dropDocument:(0,N.useCallback)((e,t)=>{i(n=>{let r=n.documents.find(t=>$(t)===e);return r?Uy(n,r,t):n})},[i])}}var ix=`rvwReading`;function ax(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 ox(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function sx(e){return e==null||typeof e==`string`}function cx(e){return!ox(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`||!sx(e.oldPath)||!sx(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 lx(e){if(!ox(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 ux(e,t){return{...ox(e)?e:{},[ix]:t}}function dx(e,t){if(!ox(e))return null;let n=e[ix];if(!ox(n)||n.version!==1||n.pullRequestId!==t||n.pane!==`left`&&n.pane!==`right`)return null;let r=cx(n.document),i=lx(n.locator);return!r||!i?null:{version:1,pullRequestId:t,pane:n.pane,document:r,locator:i}}var fx=(0,N.lazy)(async()=>({default:(await hy(()=>import(`./DocumentViewer-DvrDlIpR.js`),__vite__mapDeps([18,3,19]))).DocumentViewer})),px=(0,N.lazy)(async()=>({default:(await hy(()=>import(`./WalkthroughViewer-aDUeKC3B.js`),__vite__mapDeps([20,3,19]))).WalkthroughViewer}));function mx(e){return mt(e)??`(unknown)`}function hx(e){return e.slice(0,8)}var gx=330,_x=240,vx=560,yx=500,bx=50,xx=280;function Sx(e,t,n){return Math.min(n,Math.max(t,e))}function Cx(){return window.innerWidth<=850?280:gx}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 Tx(){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 Ex({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 Dx(){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 Ox(){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 kx(){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 Ax({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} · ${hx(n)}`:g===1?`${v?.subject??`commit`} · ${hx(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=Gb(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,` · `,hx(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}、${hx(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:hx(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 jx({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)(Ax,{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 Mx=[{preference:`light`,label:`ライトモード`},{preference:`dark`,label:`ダークモード`},{preference:`system`,label:`システム`}],Nx=3e3;function Px(e){return e instanceof ht&&e.code===`PULL_REQUEST_NOT_FOUND`?"Pull Requestが見つかりません。`rvw open`から起動し直してください。":e instanceof Error?e.message:`PR commitがありません。`}function Fx({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}=rx((0,N.useCallback)(()=>{C.current=null,w.current=null,S(null)},[])),[A,j]=(0,N.useState)(Cx),[ie,ae]=(0,N.useState)(bx),[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=wx(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(ux(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&&ax(o,e)){window.history.replaceState(ux(window.history.state,s),``);return}let c=new URL(window.location.href);c.hash=r??``,window.history.pushState(ux(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),Nx);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(_x,Math.min(vx,n.width-yx));j(Sx(e-n.left,_x,r))},gt=(e,t)=>{let n=t.getBoundingClientRect(),r=Math.min(xx,Math.max(160,(n.width-48)/2))/n.width*100,i=(e-n.left)/n.width*100;ae(Sx(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),Fb(e),Pb(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),Fb(e),Pb(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?Hb(Et,a):null,Pt=Mt>=0&&Mt<=At,Ft=Wb(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:Hb(Et,Ot):Ub(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=dx(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(ux(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=Gb(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(Gy),active:{left:e.active.left?Gy(e.active.left):null,right:e.active.right?Gy(e.active.right):null}}))))},F=rt({queryKey:[`tree`,i,a],queryFn:async()=>await vt(`/api/pull-requests/${i}/tree?oid=${encodeURIComponent(a)}`),enabled:!!(i&&a)}),Bt=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)}),Vt=rt({queryKey:[`change-sequence`],queryFn:async()=>await vt(`/api/meta/change-sequence`,Rb()),refetchInterval:1e3,refetchIntervalInBackground:!0,networkMode:`always`});(0,N.useEffect)(()=>{let e=Vt.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`]}))},[Vt.data?.changeSequence,t]);let I=rt({queryKey:[`comments`,i,Vt.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}),Ht=I.data?.comments??[],Ut=Ht.filter(e=>!e.resolvedAt).length,Wt=rt({queryKey:[`walkthroughs`,i],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs`),enabled:!!i}),Gt=Wt.data?.walkthroughs??[];(0,N.useEffect)(()=>{if(!Wt.isSuccess)return;let e=new Map(Gt.map(e=>[e.id,e]));D(t=>{let n=t;for(let r of t.documents)r.kind===`walkthrough`&&!e.has(r.id)&&(n=Wy(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)}}})},[Wt.data?.walkthroughs,Wt.isSuccess]);let Kt=(0,N.useMemo)(()=>Ue.filter(e=>e.kind===`walkthrough`).map(e=>e.id),[Ue]),qt=tt({queries:Kt.map(e=>({queryKey:[`walkthrough`,i,e],queryFn:async()=>await vt(`/api/pull-requests/${i}/walkthroughs/${e}`),enabled:!!i}))}),Jt=new Map,Yt=new Set;Kt.forEach((e,t)=>{let n=qt[t],r=n?.data?.walkthrough;r&&Jt.set(e,r),n?.isPending&&Yt.add(e)});let Xt=(0,N.useMemo)(()=>{let e=Bt.data?.files??[];return Yy((F.data?.entries??[]).map(e=>({path:e.path,entryKind:e.kind})),e)},[Bt.data?.files,F.data?.entries]),Zt=(0,N.useMemo)(()=>y===`changed`?(Bt.data?.files??[]).map(e=>({path:mx(e),entryKind:`file`,changeKind:e.kind})):Xt,[Xt,Bt.data?.files,y]),Qt=(0,N.useMemo)(()=>{let e=new Map;for(let t of Bt.data?.files??[])e.set(mx(t),t.kind),t.oldPath&&e.set(t.oldPath,t.kind),t.newPath&&e.set(t.newPath,t.kind);return e},[Bt.data?.files]),$t=(0,N.useMemo)(()=>{if(!le.trim())return Zt;let e=new Set(pt.default.go(le,Zt.map(e=>e.path),{limit:100}).map(e=>e.target));return Zt.filter(t=>e.has(t.path))},[le,Zt]),en=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)}),tn=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:Hb(e.commits,e.headOid):Ub(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,tn.mutate({announce:!1}))},[Tt.data]);let nn=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&&(ex(e.pullRequest.id),qe.current.clear(),we(e=>e+1),D(zy()),S(null),Ne.current=!1,o(e.pullRequest.latestHeadOid),c(Ub(e.commits,e.pullRequest.latestHeadOid)),u(`full`),await t.invalidateQueries())}}),rn=(0,N.useCallback)((e,t=!1)=>{y===`changed`&&u(`diff`),ut({kind:`repository-file`,path:e},t?`right`:void 0)},[ut,y]),an=(0,N.useCallback)((e,t,n)=>{ut({kind:`repository-file`,path:e,sourceOid:t,comparisonPolicy:`exact-source`},n)},[ut]),on=(0,N.useCallback)((e,t,n)=>an(e,t,n?`right`:`left`),[an]),sn=(0,N.useCallback)((e,t,n)=>an(e,t,n?`left`:`right`),[an]),cn=(0,N.useCallback)((e,t,n)=>an(e,t,n?`right`:E.current.focusedPane),[an]),ln=(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)},un=(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=Gt.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)},dn=(0,N.useCallback)((e,t=!1)=>{ut({kind:`walkthrough`,id:e.id,title:e.title,sourceOid:e.sourceOid},t?`right`:void 0)},[ut]),fn=(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]),pn=(0,N.useCallback)((e,t,n)=>fn(e.pullRequestId,e.sourceOid,t,n,`selected-range`),[fn]),mn=(0,N.useCallback)((e,t,n)=>pn(e,t,n?`right`:`left`),[pn]),hn=(0,N.useCallback)((e,t,n)=>pn(e,t,n?`left`:`right`),[pn]),gn=(0,N.useCallback)((e,t,n)=>i?fn(i,e,t,n,`exact-source`):Promise.resolve(`参照先を開けません · ${t.path}`),[fn,i]),_n=(0,N.useCallback)((e,t,n)=>gn(e,t,n?`right`:`left`),[gn]),vn=(0,N.useCallback)((e,t,n)=>gn(e,t,n?`left`:`right`),[gn]),yn=(0,N.useCallback)((e,t,n)=>gn(e,t,n?`right`:E.current.focusedPane),[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(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:Px(Tt.error)})]});let bn=Tt.data.pullRequest,xn={documentDisplayMode:l,displayMode:It,selectedOid:a,changedFiles:Bt.data?.files,changedFilesLoaded:Bt.isSuccess,walkthroughDetails:Jt,loadingWalkthroughIds:Yt},Sn={left:nx(T.active.left,xn),right:nx(T.active.right,xn)},Cn=jt===void 0,wn=!!(!Cn&&Ft&&Ft!==a&&Object.values(T.active).some(e=>e!==null&&e.kind!==`walkthrough`)),Tn=!!(wn&&Object.values(Sn).some(e=>e.viewerDocument?.kind===`repository-file`&&e.activeChange)),En=tn.error??nn.error??St.error??Ct.error??Vt.error,Dn=Ue.some(e=>T.panes[$(e)]===`right`)||se!==null,On=e=>{let t=Ue.filter(t=>(T.panes[$(t)]??`left`)===e),n=T.active[e],r=Sn[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)(hb,{paneId:e,documents:t,activeDocument:n,changeKindsByPath:Qt,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)(gb,{label:`ウォークスルー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`ウォークスルーを準備しています…`}),children:(0,P.jsx)(px,{walkthrough:r.walkthrough,comments:Ht,activeCommentId:ke,navigationTarget:x?.documentKey===$(i)?x:null,onNavigationApplied:t=>$e(e,t),themePreference:De,onCommentActiveChange:je,onOpenReference:e===`left`?mn:hn,onOpenCommentCodeReference:e===`left`?_n:vn,onOpenRepositoryLink:e===`left`?on:sn,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)(gb,{label:`文書ビューアー`,children:(0,P.jsx)(N.Suspense,{fallback:(0,P.jsx)(`div`,{className:`viewer-loading`,children:`文書を準備しています…`}),children:(0,P.jsx)(fx,{pullRequestId:bn.id,selectedOid:a,oldOid:Ft,activeDocument:i,displayMode:r.effectiveDisplayMode,diffStyle:d,comments:Ht,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`?_n:vn,onOpenRepositoryLink:(t,n,r)=>an(t,n,r?Vy(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:[bn.owner,`/`,bn.repository,` · #`,bn.number]}),(0,P.jsx)(`h1`,{children:(0,P.jsx)(`a`,{href:bn.url,target:`_blank`,rel:`noopener noreferrer`,children:bn.latestTitle})})]}),(0,P.jsx)(jx,{selectedOid:a,selectedStartOid:s??a,commits:Et,latestHeadOid:Ot,specialSelected:Cn,specialSelectionLabel:Ge?.kind===`walkthrough`?`Walkthrough source`:`コメント元`,documentDisplayMode:l,diffStyle:d,comparisonAvailable:wn,diffViewAvailable:Tn,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)(kx,{})}),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),tn.mutate({announce:!0})},disabled:tn.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テーマ`}),Mx.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),nn.mutate()},disabled:nn.isPending,children:`ローカル状態を削除して再構築`})]})]})]}),de&&(0,P.jsx)(Ob,{open:!0,returnFocusElement:pe,files:Xt,openDocuments:Ue,activeDocument:Ge,activePane:We,loading:F.isPending,error:F.error,onClose:()=>fe(!1),onOpen:e=>ut(e,We)}),(0,P.jsx)(xt,{error:En}),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)(ry,{kind:`file`}),(0,P.jsx)(`span`,{children:_===`search`?`コード検索`:`エクスプローラー`}),(0,P.jsx)(Ex,{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)(Ox,{}):(0,P.jsx)(Dx,{})})]}),(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)(fb,{walkthroughs:Gt,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:dn}),(0,P.jsx)(xt,{error:Wt.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`?Bt.error:F.error}),(0,P.jsx)(`nav`,{className:`file-tree`,children:(0,P.jsx)(ub,{files:$t,activePath:Ge?.kind===`repository-file`?Ge.path:null,filtering:!!le.trim(),initiallyExpanded:y===`changed`?`all`:`active-file`,onOpenFile:rn},`${s}:${a}:${y}:${y===`changed`?Bt.dataUpdatedAt:F.dataUpdatedAt}`)})]})}),(0,P.jsx)(`div`,{className:`sidebar-stack-body sidebar-code-body`,hidden:!p||_!==`search`,children:(0,P.jsx)(xb,{inputRef:Re,query:he,matchCase:_e,wholeWord:ye,changeKindsByPath:Qt,response:He?en.data:void 0,isFetching:!!(He&&en.isFetching),error:He?en.error:null,onQueryChange:ge,onMatchCaseChange:ve,onWholeWordChange:be,onOpenResult:ln})})]}),(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)(Tx,{}),(0,P.jsx)(`span`,{children:`コメント`}),(0,P.jsx)(`span`,{className:`sidebar-stack-count`,children:Ut}),(0,P.jsx)(Ex,{expanded:h})]}),(0,P.jsxs)(`div`,{className:`sidebar-stack-body`,hidden:!h,children:[(0,P.jsx)(xt,{error:I.error}),(0,P.jsx)(Fy,{comments:Ht,walkthroughs:Gt,pullRequestId:bn.id,selectedOid:a,themePreference:De,onCommentActiveChange:je,onOpenCodeReference:yn,onOpenTarget:un,onOpenRepositoryLink:cn})]})]})]}),(0,P.jsx)(`div`,{className:`horizontal-resize-handle sidebar-resize-handle${M===`sidebar`?` active`:``}`,role:`separator`,"aria-label":`サイドバーの幅を変更`,"aria-orientation":`vertical`,"aria-valuemin":_x,"aria-valuemax":vx,"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(Cx()),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),j(t=>Sx(t+(e.key===`ArrowLeft`?-16:16),_x,vx)))}}),(0,P.jsxs)(`section`,{id:`review-main-content`,tabIndex:-1,className:`main-view${Dn?` two-pane`:``}${M===`panes`?` is-resizing`:``}`,style:Dn?{gridTemplateColumns:`minmax(${xx}px, ${ie}fr) 6px minmax(${xx}px, ${100-ie}fr)`}:void 0,children:[On(`left`),Dn&&(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(bx),onKeyDown:e=>{(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&(e.preventDefault(),ae(t=>Sx(t+(e.key===`ArrowLeft`?-2:2),20,80)))}}),Dn&&On(`right`)]})]})]})}Bb();var Ix=new Fe({defaultOptions:{queries:{retry:1,staleTime:500},mutations:{retry:!1}}}),Lx=document.getElementById(`root`);if(!Lx)throw Error(`root elementがありません。`);async function Rx(){let e=Nb();Fb(e);try{let e=await vt(`/api/preferences/theme`);return Pb(e.themePreference),Ix.setQueryData([`theme-preference`],e),e.themePreference}catch(t){return console.warn(`共有テーマ設定を読み込めませんでした。ブラウザーの設定を使用します。`,t),e}}Rx().then(e=>{Fb(e),(0,ft.createRoot)(Lx).render((0,P.jsx)(N.StrictMode,{children:(0,P.jsx)(He,{client:Ix,children:(0,P.jsx)(Fx,{initialThemePreference:e})})}))});export{pn as A,ct as B,xp as C,uc as D,oc as E,wt as F,Le as G,rt as H,xt as I,vt as L,Mt as M,Et as N,hn as O,Ct as P,bt as R,Bp as S,Lc as T,Ve as U,it as V,ze as W,Kg as _,Qb as a,Yp as b,yy as c,uy as d,sy as f,Gg as g,qg as h,Zb as i,ln as j,fn as k,hy as l,ry as m,Xb as n,db as o,oy as p,$b as r,My as s,Yb as t,dy as u,Jg as v,Zc as w,Jp as x,Ug as y,yt as z};
|