@skspwork/config-doc 2.0.9 → 2.2.0-beta.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/package.json +1 -1
- package/packages/web/.next/standalone/.next/app-path-routes-manifest.json +1 -0
- package/packages/web/.next/standalone/.next/routes-manifest.json +6 -0
- package/packages/web/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/packages/web/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/packages/web/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route/app-paths-manifest.json +3 -0
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route/build-manifest.json +11 -0
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route/server-reference-manifest.json +4 -0
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route.js +7 -0
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route.js.map +5 -0
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route.js.nft.json +1 -0
- package/packages/web/.next/standalone/.next/server/app/api/config/associative-arrays/route_client-reference-manifest.js +2 -0
- package/packages/web/.next/standalone/.next/server/app/index.html +1 -1
- package/packages/web/.next/standalone/.next/server/app/index.rsc +3 -3
- package/packages/web/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/packages/web/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/packages/web/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/packages/web/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/packages/web/.next/standalone/.next/server/app-paths-manifest.json +1 -0
- package/packages/web/.next/standalone/.next/server/chunks/[root-of-the-server]__40e87302._.js +1 -1
- package/packages/web/.next/standalone/.next/server/chunks/[root-of-the-server]__444da89e._.js +3 -0
- package/packages/web/.next/standalone/.next/server/chunks/[root-of-the-server]__93da9fce._.js +1 -1
- package/packages/web/.next/standalone/.next/server/chunks/[root-of-the-server]__c9655ac8._.js +1 -1
- package/packages/web/.next/standalone/.next/server/chunks/[root-of-the-server]__e19366f6._.js +1 -1
- package/packages/web/.next/standalone/.next/server/chunks/[root-of-the-server]__e5fda42c._.js +1 -1
- package/packages/web/.next/standalone/.next/server/chunks/_next-internal_server_app_api_config_associative-arrays_route_actions_fdf6aa77.js +3 -0
- package/packages/web/.next/standalone/.next/server/chunks/ssr/app_page_tsx_55b2e5ee._.js +1 -1
- package/packages/web/.next/standalone/.next/server/pages/404.html +1 -1
- package/packages/web/.next/standalone/.next/static/chunks/649fd90358a2f22d.js +1 -0
- package/packages/web/.next/standalone/.next/static/chunks/e5e602185b629fad.css +3 -0
- package/packages/web/.next/standalone/playwright-report/index.html +1 -1
- package/packages/web/.next/static/chunks/649fd90358a2f22d.js +1 -0
- package/packages/web/.next/static/chunks/e5e602185b629fad.css +3 -0
- package/packages/web/.next/standalone/.next/static/chunks/0e2554d0ca1e8263.js +0 -1
- package/packages/web/.next/standalone/.next/static/chunks/f2405a3fccf5f566.css +0 -3
- package/packages/web/.next/static/chunks/0e2554d0ca1e8263.js +0 -1
- package/packages/web/.next/static/chunks/f2405a3fccf5f566.css +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:o="",children:n,iconNode:c,...d},h)=>(0,r.createElement)("svg",{ref:h,...l,width:t,height:t,stroke:e,strokeWidth:i?24*Number(a)/Number(t):a,className:s("lucide",o),...!n&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(n)?n:[n]])),o=(e,t)=>{let l=(0,r.forwardRef)(({className:l,...o},n)=>(0,r.createElement)(i,{ref:n,iconNode:t,className:s(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...o}));return l.displayName=a(e),l},n=o("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),c=o("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);function d({onExportClick:e}){return(0,t.jsx)("header",{className:"bg-white/80 backdrop-blur-md border-b border-gray-200 shadow-sm sticky top-0 z-50",children:(0,t.jsxs)("div",{className:"container mx-auto px-6 py-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("img",{src:"/logo.svg",alt:"ConfigDoc",className:"w-12 h-12 rounded-lg"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"ConfigDoc"}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Configuration Documentation Tool"})]})]}),(0,t.jsxs)("button",{onClick:e,className:"flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-lg hover:from-green-600 hover:to-emerald-700 shadow-md hover:shadow-lg transition-all duration-200 transform",title:"エクスポート",children:[(0,t.jsx)(c,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-medium",children:"エクスポート"})]})]})})}let h=o("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),u=o("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function p({loadedConfigs:e,activeConfigIndex:a,onTabClick:s,onRemoveConfig:l,onAddFileClick:i,onReorder:o}){let[n,c]=(0,r.useState)(null),[d,p]=(0,r.useState)(null),m=()=>{p(null)},f=()=>{c(null),p(null)},x=e.map(e=>e.filePath);return(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 mb-8 hover:shadow-2xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-blue-600 rounded-lg flex items-center justify-center",children:(0,t.jsx)(h,{className:"w-5 h-5 text-white"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"設定ファイル"})]}),(0,t.jsxs)("button",{onClick:i,className:"flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-blue-500 to-blue-600 text-white rounded-lg hover:from-blue-600 hover:to-blue-700 shadow-md hover:shadow-lg transition-all duration-200 transform",children:[(0,t.jsx)(h,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-medium",children:"ファイルを追加"})]})]}),e.length>0?(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:e.map((r,i)=>(0,t.jsxs)("div",{draggable:!0,onDragStart:()=>{c(i)},onDragOver:e=>{e.preventDefault(),null!==n&&n!==i&&p(i)},onDragLeave:m,onDrop:()=>(t=>{if(null===n||n===t){c(null),p(null);return}let r=[...e],[s]=r.splice(n,1);r.splice(t,0,s);let l=a;a===n?l=t:n<a&&t>=a?l=a-1:n>a&&t<=a&&(l=a+1),o(r,l),c(null),p(null)})(i),onDragEnd:f,onClick:()=>s(i),className:`group flex items-center gap-2 px-4 py-2.5 rounded-xl border-2 cursor-grab transition-all duration-200 ${a===i?"bg-gradient-to-r from-blue-50 to-indigo-50 border-blue-400 shadow-md":"bg-white border-gray-200 hover:border-blue-300 hover:shadow-md"} ${n===i?"opacity-50":""} ${d===i?"border-blue-500 border-dashed":""}`,children:[(0,t.jsx)("span",{className:`text-sm font-medium ${a===i?"text-blue-700":"text-gray-700"}`,children:function(e,t){let r=e.split(/[/\\]/).pop()||e,a=t.filter(e=>e.split(/[/\\]/).pop()===r);if(1===a.length)return r;let s=e.split(/[/\\]/);for(let t=1;t<s.length;t++){let r=s.slice(-t-1).join("/");if(0===a.filter(a=>r===a.split(/[/\\]/).slice(-t-1).join("/")&&a!==e).length)return r}return e}(r.filePath,x)}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),l(i)},className:"text-gray-400 hover:text-red-500 transition-colors opacity-0 group-hover:opacity-100",children:(0,t.jsx)(u,{className:"w-4 h-4"})})]},r.filePath))}):(0,t.jsxs)("div",{className:"text-center py-12 bg-gradient-to-br from-gray-50 to-gray-100 rounded-xl border-2 border-dashed border-gray-300",children:[(0,t.jsx)(h,{className:"w-16 h-16 text-gray-400 mx-auto mb-3"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 font-medium",children:"設定ファイルを選択してください"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"「ファイルを追加」ボタンから開始"})]})]})}let m=o("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),f=o("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),x=o("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),g=o("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),b=o("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),y=o("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),j=o("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),v=o("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);function N({label:e,items:a,onItemsChange:s,editButtonTitle:l,editModeDescription:i,inputPlaceholder:o,newItemPlaceholder:n,deleteButtonTitle:c,addButtonTitle:d,duplicateErrorMessage:h,onRename:p,children:f}){let[x,g]=(0,r.useState)(!1),[b,N]=(0,r.useState)([]),[w,k]=(0,r.useState)(""),[C,$]=(0,r.useState)(null),[P,S]=(0,r.useState)(null),T=(0,r.useMemo)(()=>{if(null===C||null===P||C===P)return b.map((e,t)=>({item:e,originalIndex:t}));let e=b.map((e,t)=>({item:e,originalIndex:t})),[t]=e.splice(C,1);return e.splice(P,0,t),e},[b,C,P]),O=()=>{let e=w.trim();e&&!b.some(t=>t.newName===e)&&(N([...b,{originalName:"",newName:e,isNew:!0}]),k(""))},D=()=>{if(null===C||null===P||C===P){$(null),S(null);return}let e=[...b],[t]=e.splice(C,1);e.splice(P,0,t),N(e),$(null),S(null)},A=()=>{$(null),S(null)},M=()=>{let e=b.map(e=>e.newName.trim()).filter(Boolean);return new Set(e).size!==e.length},E=!M()&&!b.some(e=>!e.newName.trim());return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-gray-700",children:e}),!x&&(0,t.jsx)("button",{onClick:()=>{N(a.map(e=>({originalName:e,newName:e,isNew:!1}))),g(!0),k("")},className:"text-gray-500 hover:text-blue-600 transition-colors p-1",title:l,children:(0,t.jsx)(y,{className:"w-4 h-4"})})]}),x?(0,t.jsxs)("div",{className:"space-y-3 p-4 bg-blue-50 rounded-lg border-2 border-blue-200",children:[(0,t.jsxs)("div",{className:"text-xs font-medium text-blue-700 mb-2",children:[i,"(ドラッグで並び替え可能)"]}),(0,t.jsx)("div",{className:"space-y-2",children:T.map(({item:e,originalIndex:r},a)=>{let s=C===r;return(0,t.jsxs)("div",{draggable:!0,onDragStart:()=>{$(r)},onDragOver:e=>{e.preventDefault(),null!==C&&P!==a&&S(a)},onDrop:D,onDragEnd:A,className:`flex items-center gap-2 transition-all ${s?"opacity-50":""}`,children:[(0,t.jsx)("div",{className:"cursor-grab text-gray-400 hover:text-gray-600 p-1",title:"ドラッグして並び替え",children:(0,t.jsx)(v,{className:"w-4 h-4"})}),(0,t.jsx)("input",{type:"text",value:e.newName,onChange:e=>{var t;return t=e.target.value,void N(b.map((e,a)=>a===r?{...e,newName:t}:e))},placeholder:o,className:`flex-1 px-3 py-2 border-2 rounded-lg text-sm focus:ring-2 transition-all duration-200 ${!e.newName.trim()?"border-red-300 focus:border-red-400 focus:ring-red-200":"border-gray-200 focus:border-blue-400 focus:ring-blue-200"}`}),(0,t.jsx)("button",{onClick:()=>{N(b.filter((e,t)=>t!==r))},className:"text-gray-400 hover:text-red-600 transition-colors p-2",title:c,children:(0,t.jsx)(u,{className:"w-4 h-4"})})]},r)})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2 border-t border-blue-200",children:[(0,t.jsx)("input",{type:"text",value:w,onChange:e=>k(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),O())},placeholder:n,className:"flex-1 px-3 py-2 border-2 border-gray-200 rounded-lg text-sm focus:border-blue-400 focus:ring-2 focus:ring-blue-200 transition-all duration-200"}),(0,t.jsx)("button",{onClick:O,disabled:!w.trim()||b.some(e=>e.newName.trim()===w.trim()),className:"px-3 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed",title:d,children:(0,t.jsx)(j,{className:"w-4 h-4"})})]}),M()&&(0,t.jsx)("div",{className:"text-xs text-red-600 mt-2",children:h}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-3 border-t border-blue-200",children:[(0,t.jsxs)("button",{onClick:()=>{let e=[],t={};for(let r of b){let a=r.newName.trim();a&&(e.push(a),r.isNew||r.originalName===a||(t[r.originalName]=a))}let r=w.trim();r&&!e.includes(r)&&e.push(r),p&&Object.keys(t).length>0&&p(t),s(e,Object.keys(t).length>0?t:void 0),g(!1),N([]),k("")},disabled:!E,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2 bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed text-sm font-medium",children:[(0,t.jsx)(m,{className:"w-4 h-4"}),"保存"]}),(0,t.jsx)("button",{onClick:()=>{g(!1),N([]),k(""),$(null),S(null)},className:"flex-1 px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition-colors text-sm font-medium",children:"キャンセル"})]})]}):f]})}function w({selectedTags:e,inheritedTags:r,availableTags:a,onSelectedTagsChange:s,onAvailableTagsChange:l}){return(0,t.jsx)(N,{label:"タグ",items:a,onItemsChange:(t,r)=>{let a=e.map(e=>r&&r[e]?r[e]:e);JSON.stringify(a=a.filter(e=>t.includes(e)))!==JSON.stringify(e)&&s(a),l(t,r)},editButtonTitle:"タグを編集",editModeDescription:"タグの追加・削除・名前変更",inputPlaceholder:"タグ名",newItemPlaceholder:"新しいタグ名を入力",deleteButtonTitle:"タグを削除",addButtonTitle:"タグを追加",duplicateErrorMessage:"同じ名前のタグがあります",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:0===a.length?(0,t.jsx)("div",{className:"text-sm text-gray-500",children:"タグがありません。鉛筆アイコンをクリックして追加してください。"}):a.map(a=>{let l=e.includes(a),i=!l&&(r?.includes(a)||!1);return(0,t.jsxs)("button",{onClick:()=>{e.includes(a)?s(e.filter(e=>e!==a)):s([...e,a])},className:`flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium border-2 transition-all duration-200 ${l?"bg-blue-500 text-white border-blue-600 shadow-md":i?"bg-purple-100 text-purple-700 border-purple-300 shadow-sm":"bg-white text-gray-700 border-gray-200 hover:border-blue-300 hover:bg-blue-50"}`,title:i?"テンプレートから継承(クリックで直接選択に変更)":void 0,children:[(l||i)&&(0,t.jsx)(b,{className:"w-3 h-3"}),(0,t.jsx)("span",{children:a})]},a)})})})}function k({fields:e,inheritedFields:r,projectFields:a,onFieldsChange:s,onUpdateProjectFields:l}){let i=Object.keys(a);return(0,t.jsx)(N,{label:"フィールド",items:i,onItemsChange:(t,r)=>{let a={};if(r)for(let[e,t]of Object.entries(r))a[t]=e;let i={};for(let r of t){let t=a[r]||r;i[r]=e[t]||""}if(s(i),l){let e={};for(let r of t)e[r]="";l(e,r)}},editButtonTitle:"フィールドを編集",editModeDescription:"フィールドの追加・削除・名前変更",inputPlaceholder:"フィールド名",newItemPlaceholder:"新しいフィールド名を入力",deleteButtonTitle:"フィールドを削除",addButtonTitle:"フィールドを追加",duplicateErrorMessage:"同じ名前のフィールドがあります",children:(0,t.jsx)("div",{className:"space-y-3",children:Object.keys(a).map(a=>{let l=e[a]||"",i=r?.[a]||"",o=!l&&!!i;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:[a,o&&(0,t.jsx)("span",{className:"ml-2 text-xs text-purple-500 font-normal",children:"(テンプレートから継承)"})]}),(0,t.jsx)("textarea",{value:l,onChange:t=>{var r;return r=t.target.value,void s({...e,[a]:r})},placeholder:i||`${a}を入力してください`,className:`w-full border-2 rounded-lg p-3 min-h-[80px] text-sm transition-all duration-200 shadow-sm hover:shadow-md ${o?"border-purple-200 bg-purple-50/50 placeholder:text-purple-400":"border-gray-200 focus:border-blue-400 focus:ring-2 focus:ring-blue-200"}`})]},a)})})})}function C({selectedPath:e,editingDoc:r,hasUnsavedChanges:a,availableTags:s,projectFields:l,selectedNodeType:i,isAssociativeArray:o=!1,isDescendantOfAssociativeArray:c=!1,inheritedTags:d,inheritedFields:h,onEditingDocChange:u,onAvailableTagsChange:p,onProjectFieldsChange:b,onSave:y,onToggleAssociativeArray:j,onCopy:v,onPaste:N,canPaste:C,onDelete:$,hasExistingDoc:P}){let S=/\[\d+\]/.test(e);return(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 flex flex-col max-h-[calc(100vh-190px)] hover:shadow-2xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-indigo-500 to-indigo-600 rounded-lg flex items-center justify-center",children:(0,t.jsx)(m,{className:"w-5 h-5 text-white"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"プロパティ詳細"})]}),e&&r&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:v,className:"p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg transition-colors",title:"プロパティ詳細をコピー",children:(0,t.jsx)(f,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:N,disabled:!C,className:`p-2 rounded-lg transition-colors ${C?"text-gray-500 hover:text-gray-700 hover:bg-gray-100":"text-gray-300 cursor-not-allowed"}`,title:"プロパティ詳細を貼り付け",children:(0,t.jsx)(x,{className:"w-4 h-4"})})]})]}),e&&r?(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-h-0",children:[(0,t.jsxs)("div",{className:"flex-shrink-0 pb-4 border-b border-gray-200",children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"パス"}),(0,t.jsx)("div",{className:"text-sm text-gray-700 bg-gradient-to-r from-blue-50 to-indigo-50 p-3 rounded-lg font-mono border border-blue-200 shadow-sm",children:e})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto py-4 space-y-6 min-h-0",children:[(0,t.jsx)(w,{selectedTags:r.tags||[],inheritedTags:d,availableTags:s,onSelectedTagsChange:e=>{u({...r,tags:e})},onAvailableTagsChange:p}),(0,t.jsx)(k,{fields:r.fields||{},inheritedFields:h,projectFields:l,onFieldsChange:e=>{u({...r,fields:e})},onUpdateProjectFields:b}),(0,t.jsxs)("div",{className:"space-y-3 pt-4 border-t border-gray-200",children:[(S||c)&&(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-purple-50 rounded-lg border border-purple-200",children:[(0,t.jsx)("input",{type:"checkbox",id:"isTemplate",checked:r.isTemplate||!1,onChange:e=>u({...r,isTemplate:e.target.checked}),className:"mt-0.5 w-4 h-4 rounded border-purple-300 text-purple-600 focus:ring-purple-500"}),(0,t.jsxs)("label",{htmlFor:"isTemplate",className:"text-sm text-purple-800 cursor-pointer",children:[(0,t.jsx)("span",{className:"font-medium",children:"テンプレートとして保存"}),(0,t.jsx)("span",{className:"block text-xs text-purple-600 mt-0.5",children:"同じ構造の全配列要素にこのドキュメントを適用します"})]})]}),"object"===i&&j&&(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-amber-50 rounded-lg border border-amber-200",children:[(0,t.jsx)("input",{type:"checkbox",id:"isAssociativeArray",checked:o,onChange:t=>j(e,t.target.checked),className:"mt-0.5 w-4 h-4 rounded border-amber-300 text-amber-600 focus:ring-amber-500"}),(0,t.jsxs)("label",{htmlFor:"isAssociativeArray",className:"text-sm text-amber-800 cursor-pointer",children:[(0,t.jsx)("span",{className:"font-medium",children:"連想配列として登録"}),(0,t.jsx)("span",{className:"block text-xs text-amber-600 mt-0.5",children:"キー名を配列インデックスとして扱い、テンプレート展開の対象にします"})]})]})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0 pt-4 border-t border-gray-200",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("button",{onClick:$,disabled:!P,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium rounded-lg transition-colors shadow-sm ${P?"text-red-600 bg-white border border-red-300 hover:bg-red-50":"text-gray-400 bg-gray-100 border border-gray-200 cursor-not-allowed"}`,title:"プロパティ詳細を削除",children:[(0,t.jsx)(g,{className:"w-4 h-4"}),"削除"]}),(0,t.jsxs)("button",{onClick:y,disabled:!a,className:`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg shadow-md transition-all duration-200 ${a?"bg-gradient-to-r from-green-500 to-emerald-600 text-white hover:from-green-600 hover:to-emerald-700 hover:shadow-lg cursor-pointer":"bg-gray-300 text-gray-500 cursor-not-allowed"}`,children:[(0,t.jsx)(m,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-medium",children:"保存"})]})]})})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center flex-1",children:[(0,t.jsx)("div",{className:"w-20 h-20 bg-gradient-to-br from-gray-100 to-gray-200 rounded-full flex items-center justify-center mb-4",children:(0,t.jsx)(n,{className:"w-10 h-10 text-gray-400"})}),(0,t.jsx)("p",{className:"text-sm text-gray-600 font-medium",children:"プロパティを選択してください"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"左側のツリーから項目を選択"})]})]})}let $=o("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),P=o("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),S=o("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),T=o("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);class O{static flattenConfig(e,t=""){let r={};for(let a in e){let s=t?`${t}:${a}`:a,l=e[a];l&&"object"==typeof l?Array.isArray(l)?l.some(e=>e&&"object"==typeof e&&!Array.isArray(e))?l.forEach((e,t)=>{e&&"object"==typeof e&&!Array.isArray(e)&&Object.assign(r,this.flattenConfig(e,`${s}[${t}]`))}):r[s]=l:Object.assign(r,this.flattenConfig(l,s)):r[s]=l}return r}static getAllPropertyPaths(e,t=""){let r=[];for(let a in e){let s=t?`${t}:${a}`:a,l=e[a];r.push(s),l&&"object"==typeof l&&(Array.isArray(l)?l.some(e=>e&&"object"==typeof e&&!Array.isArray(e))&&l.forEach((e,t)=>{if(e&&"object"==typeof e&&!Array.isArray(e)){let a=`${s}[${t}]`;r.push(a),r.push(...this.getAllPropertyPaths(e,a))}}):r.push(...this.getAllPropertyPaths(l,s)))}return r}static buildTree(e,t=""){let r=[];for(let a in e){let s=t?`${t}:${a}`:a,l=e[a];if(l&&"object"==typeof l)if(Array.isArray(l))if(l.some(e=>e&&"object"==typeof e&&!Array.isArray(e))){let e=[];l.forEach((t,r)=>{t&&"object"==typeof t&&!Array.isArray(t)&&e.push({key:`[${r}]`,fullPath:`${s}[${r}]`,value:t,children:this.buildTree(t,`${s}[${r}]`),hasDocumentation:!1,type:"object"})}),r.push({key:a,fullPath:s,value:l,children:e.length>0?e:void 0,hasDocumentation:!1,type:"array"})}else r.push({key:a,fullPath:s,value:l,hasDocumentation:!1,type:"array"});else r.push({key:a,fullPath:s,value:l,children:this.buildTree(l,s),hasDocumentation:!1,type:"object"});else r.push({key:a,fullPath:s,value:l,hasDocumentation:!1,type:typeof l})}return r}}function D(e){return e.replace(/\[\d+\]/g,"[*]")}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t,r){let a=e;return r&&(a=function(e,t,r){let a=[...t].sort((e,t)=>t.basePath.length-e.basePath.length),s=e,l=!0;for(;l;)for(let e of(l=!1,a)){let t=e.basePath;if(t.includes("[*]")){let e=function(e,t,r){let a=t.split(":"),s=[],l=[];for(let e of a)if(e.endsWith("[*]")){let t=e.slice(0,-3);s.push(`${A(t)}:([^:]+)`),l.push(t),l.push("$capture")}else s.push(A(e)),l.push(e);let i=RegExp(`^(${s.join(":")})(:(.+))?$`),o=e.match(i);if(!o)return e;let n=[];for(let e=1;e<o.length;e++)if(o[e]&&!o[e].startsWith(":")&&e>0){let t=o[e];t&&!t.includes(":")&&t!==o[0]&&n.push(t)}let c=e.split(":"),d=t.split(":"),h=[],u=0,p="";for(let t of d)if(t.endsWith("[*]")){let r=t.slice(0,-3);if(c[u]!==r)return e;p=p?`${p}:${r}`:r,++u<c.length&&(h.push({key:c[u],configPath:p}),u++)}else{if(c[u]!==t)return e;p=p?`${p}:${t}`:t,u++}let m=u<c.length?c.slice(u).join(":"):"",f="",x="";for(let t of d)if(t.endsWith("[*]")){let a=t.slice(0,-3);x=x?`${x}:${a}`:a;let s=h.find(e=>e.configPath===x);if(s){let t=E(r,x);if(!t||"object"!=typeof t||Array.isArray(t))return e;{let r=s.key.match(/^([^\[]+)(\[.+)?$/),l=r?r[1]:s.key,i=r&&r[2]||"",o=Object.keys(t).indexOf(l);if(!(o>=0))return e;f=f?`${f}:${a}[${o}]${i}`:`${a}[${o}]${i}`,x=`${x}:${l}`}}}else f=f?`${f}:${t}`:t,x=x?`${x}:${t}`:t;if(m){let e=m.split(":"),t=e[0],a=E(r,x);if(a&&"object"==typeof a&&!Array.isArray(a)){let r=t.match(/^([^\[]+)(\[.+)?$/);if(r){let t=r[1],s=r[2]||"",l=Object.keys(a).indexOf(t);l>=0?(f=`${f}[${l}]${s}`,e.length>1&&(f=`${f}:${e.slice(1).join(":")}`)):f=`${f}:${m}`}else f=`${f}:${m}`}else f=`${f}:${m}`}return f}(s,t,r);if(e!==s){s=e,l=!0;break}continue}let i=function e(t,r,a){for(let s of r)if(t.startsWith(s.basePath+":")&&s.basePath!==t){let l=t.substring(s.basePath.length+1).split(":"),i=l[0],o=E(a,s.basePath);if(o&&"object"==typeof o&&!Array.isArray(o)){let t=Object.keys(o).indexOf(i);if(t>=0){let i=l.slice(1).join(":");return e(`${s.basePath}[${t}]${i?":"+i:""}`,r,a)}}}return t}(t,a,r);if(s.startsWith(i+":")){let e=s.substring(i.length+1).split(":"),a=e[0];if(a.match(/^\[\d+\]/))continue;let o=a.match(/^([^\[]+)(\[.+)?$/);if(!o)continue;let n=o[1],c=o[2]||"",d=E(r,t);if(d&&"object"==typeof d&&!Array.isArray(d)){let t=Object.keys(d).indexOf(n);if(t>=0){let r=e.slice(1).join(":");s=`${i}[${t}]${c}${r?":"+r:""}`,l=!0;break}}}}return s}(a,t,r)),D(a)}function E(e,t){if(!t||!e)return e;let r=t.split(/(?=\[)|:/),a=e;for(let e of r){if(null==a)return;if(e.startsWith("[")&&e.endsWith("]")){let t=parseInt(e.slice(1,-1),10);if(!Array.isArray(a))return;a=a[t]}else if(e&&"object"==typeof a&&e in a)a=a[e];else if(e)return}return a}function F(e,t,r,a){let s=M(e,r,a);if(s!==e){let e=t[s];if(e&&e.isTemplate)return e}for(let[r,a]of Object.entries(t))if(a.isTemplate&&function(e,t){let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,"\\[\\d+\\]");return RegExp(`^${r}$`).test(e)}(e,r))return a}function z(e,t,r){let a=[...t].sort((e,t)=>e.basePath.length-t.basePath.length),s=e,l=!0;for(;l;)for(let e of(l=!1,a)){let t=e.basePath;if(t.includes("[*]")){let e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,"\\[\\*\\]"),r=RegExp(`^(${e})(:(.+))?$`),a=s.match(r);if(a){let e=a[1];a[2];let t=a[3];if(t){let r=t.split(":"),a=r[0];if("[*]"===a||a.startsWith("["))continue;let i=r.slice(1).join(":");s=`${e}[*]${i?":"+i:""}`,l=!0;break}}}else if(s.startsWith(t+":")){let e=s.substring(t.length+1).split(":"),a=e[0];if("[*]"===a||a.startsWith("["))continue;let i=E(r,t);if(i&&"object"==typeof i&&!Array.isArray(i)&&Object.keys(i).includes(a)){let r=e.slice(1).join(":");s=`${t}[*]${r?":"+r:""}`,l=!0;break}}}return s}function W({config:e,docs:a,onSelectProperty:s,onEditProperty:l,selectedPath:i,associativeArrays:o=[]}){let[c,d]=(0,r.useState)(new Set),h=e=>!!(e.tags&&e.tags.length>0||e.fields&&Object.values(e.fields).some(e=>e&&""!==e.trim()))||!1,u=(r,p=0)=>{let m=(t=>{let r=(e=>{for(let t of Object.values(a.properties))if(t.isTemplate&&t.sourceTemplatePath===e)return!0;return!1})(t),s=a.properties[t],l=!!s&&h(s),i=F(t,a.properties,o,e),n=!!i&&h(i);if(s){if(l){let e=n&&i!==s&&!r;return{hasDirectDoc:!0,hasDoc:!0,isTemplate:s.isTemplate||!1,isInherited:e,isTemplateSource:r}}if(s.isTemplate)return{hasDirectDoc:!1,hasDoc:!1,isTemplate:!0,isInherited:!1,isTemplateSource:r}}return n?{hasDirectDoc:!1,hasDoc:!0,isTemplate:!1,isInherited:!r,isTemplateSource:r}:{hasDirectDoc:!1,hasDoc:!1,isTemplate:!1,isInherited:!1,isTemplateSource:r}})(r.fullPath),f=c.has(r.fullPath),x=i===r.fullPath,g=(t=>{if(o.some(e=>e.basePath===t))return!0;let r=z(t,o,e);return!!(r!==t&&o.some(e=>e.basePath===r))||o.some(e=>{if(!e.basePath.includes("[*]"))return!1;let r=e.basePath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,":[^:]+");return RegExp(`^${r}$`).test(t)})})(r.fullPath);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{paddingLeft:`${20*p}px`},className:`group flex items-center gap-2 py-2 px-3 cursor-pointer rounded-lg transition-all duration-150 ${x?"bg-gradient-to-r from-blue-100 to-indigo-100 border-l-4 border-blue-500 shadow-sm":"hover:bg-gradient-to-r hover:from-gray-50 hover:to-gray-100"}`,children:[r.children&&r.children.length>0?(0,t.jsx)("button",{onClick:()=>{var e;let t;return e=r.fullPath,void((t=new Set(c)).has(e)?t.delete(e):t.add(e),d(t))},className:"p-1 hover:bg-blue-100 rounded-md transition-colors",children:f?(0,t.jsx)(P,{className:"w-4 h-4 text-blue-600"}):(0,t.jsx)($,{className:"w-4 h-4 text-gray-600"})}):(0,t.jsx)("div",{className:"w-6"}),(0,t.jsxs)("div",{onClick:()=>s(r.fullPath),className:"flex-1 flex items-center gap-2",children:[(0,t.jsx)("span",{className:`${r.children?"font-bold text-gray-800":"font-medium text-gray-700"}`,children:r.key}),!r.children&&(0,t.jsxs)("span",{className:"text-sm text-gray-500 truncate max-w-[200px]",children:[": ",JSON.stringify(r.value)]}),m.hasDirectDoc&&!m.isTemplate&&!m.isTemplateSource&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-green-100 border border-green-300 rounded-full",children:[(0,t.jsx)(n,{className:"w-3 h-3 text-green-600"}),(0,t.jsx)("span",{className:"text-xs text-green-700 font-medium",children:"Doc"})]}),(m.isTemplate||m.isTemplateSource)&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-purple-100 border border-purple-300 rounded-full",children:[(0,t.jsx)(S,{className:"w-3 h-3 text-purple-600"}),(0,t.jsx)("span",{className:"text-xs text-purple-700 font-medium",children:"Template"})]}),m.isInherited&&!m.isTemplateSource&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-blue-100 border border-blue-300 rounded-full",children:[(0,t.jsx)(n,{className:"w-3 h-3 text-blue-600"}),(0,t.jsx)("span",{className:"text-xs text-blue-700 font-medium",children:"Inherited"})]}),g&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-amber-100 border border-amber-300 rounded-full",children:[(0,t.jsx)(T,{className:"w-3 h-3 text-amber-600"}),(0,t.jsx)("span",{className:"text-xs text-amber-700 font-medium",children:"連想配列"})]})]}),!r.children&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),l(r.fullPath)},className:"p-1 hover:bg-gray-200 rounded",title:"編集"})]}),r.children&&f&&(0,t.jsx)("div",{children:r.children.map(e=>u(e,p+1))})]},r.fullPath)},p=O.buildTree(e);return(0,t.jsxs)("div",{className:"h-full flex flex-col border-2 border-gray-100 rounded-xl bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 border-b-2 border-gray-100 bg-gradient-to-r from-gray-50 to-gray-100",children:[(0,t.jsx)("button",{onClick:()=>{var t;let r,a;d(new Set((t=O.buildTree(e),r=[],a=e=>{e.children&&e.children.length>0&&(r.push(e.fullPath),e.children.forEach(a))},t.forEach(a),r)))},className:"px-4 py-1.5 text-sm font-medium bg-white border-2 border-blue-200 text-blue-600 rounded-lg hover:bg-blue-50 hover:border-blue-300 transition-all duration-200 shadow-sm hover:shadow-md",children:"すべて展開"}),(0,t.jsx)("button",{onClick:()=>{d(new Set)},className:"px-4 py-1.5 text-sm font-medium bg-white border-2 border-gray-200 text-gray-600 rounded-lg hover:bg-gray-50 hover:border-gray-300 transition-all duration-200 shadow-sm hover:shadow-md",children:"すべて閉じる"})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-3",children:p.map(e=>u(e))})]})}let I=o("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),J=o("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),L=o("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);function H({isOpen:e,currentPath:a,onSelect:s,onClose:l,multiSelect:i=!1,filterJsonOnly:o=!1,folderSelectMode:n=!1,title:c}){let[d,h]=(0,r.useState)(a),[u,p]=(0,r.useState)([]),[m,f]=(0,r.useState)(!1),[x,g]=(0,r.useState)([]);(0,r.useEffect)(()=>{e&&(h(a),g([]))},[e,a]),(0,r.useEffect)(()=>{e&&b(d)},[e,d]);let b=async e=>{f(!0);try{let t=await fetch("/api/files/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({directory:e})}),r=await t.json();if(r.success){let e=r.data.items;n?e=r.data.items.filter(e=>"directory"===e.type):o&&(e=r.data.items.filter(e=>"directory"===e.type||".json"===e.extension)),p(e)}else console.error("API returned error:",r.error)}catch(e){console.error("Failed to load directory:",e)}finally{f(!1)}},y=()=>d.replace(/\\/g,"/").toLowerCase()!==a.replace(/\\/g,"/").toLowerCase(),j=()=>{g([]),l()};return e?(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:c||(n?"フォルダを選択":"ファイルを選択")}),(0,t.jsx)("button",{onClick:j,className:"text-gray-500 hover:text-gray-700",children:"✕"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4 border-b bg-gray-50",children:[(0,t.jsx)("button",{onClick:()=>{if(!y())return;let e=d.replace(/\\/g,"/"),t=e.split("/").filter(e=>e);if(t.length>1){let r,s=t.slice(0,-1),l=(r=1===s.length&&s[0].includes(":")?s[0]+"/":s[0].includes(":")?s[0]+"/"+s.slice(1).join("/"):e.startsWith("/")?"/"+s.join("/"):s.join("/")).replace(/\\/g,"/").toLowerCase(),i=a.replace(/\\/g,"/").toLowerCase();(l.startsWith(i)||l===i)&&h(r)}else if(1===t.length&&!t[0].includes(":")){if("."===a.replace(/\\/g,"/").toLowerCase())return;h(".")}},disabled:!y(),className:`p-2 rounded flex-shrink-0 ${y()?"hover:bg-gray-200":"opacity-50 cursor-not-allowed"}`,title:y()?"上のディレクトリへ":"ルートディレクトリです",children:(0,t.jsx)(L,{className:"w-5 h-5"})}),(0,t.jsxs)("span",{className:"text-sm text-gray-600 flex-1 truncate",children:["パス: ",d]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:m?(0,t.jsx)("div",{className:"text-center text-gray-500",children:"読み込み中..."}):(0,t.jsx)("div",{className:"space-y-1",children:u.map(e=>{let r=x.includes(e.path);return(0,t.jsxs)("div",{onClick:()=>{"directory"===e.type?n?g([e.path]):h(e.path):i?g(t=>t.includes(e.path)?t.filter(t=>t!==e.path):[...t,e.path]):g([e.path])},onDoubleClick:()=>{"directory"===e.type&&(h(e.path),g([]))},className:`flex items-center gap-2 p-2 rounded cursor-pointer hover:bg-gray-100 ${r?"bg-blue-100":""}`,children:["directory"===e.type?(0,t.jsx)(I,{className:"w-5 h-5 text-blue-500"}):(0,t.jsx)(J,{className:"w-5 h-5 text-green-500"}),(0,t.jsx)("span",{className:"text-sm",children:e.name}),r&&(i||n)&&(0,t.jsx)("span",{className:"ml-auto text-blue-500",children:"✓"})]},e.path)})})}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-t",children:[n?(0,t.jsx)("div",{className:"text-sm text-gray-600",children:x.length>0?`選択中: ${x[0].split(/[/\\]/).pop()}`:`現在のフォルダ: ${d.split(/[/\\]/).pop()||d}`}):i&&x.length>0?(0,t.jsxs)("div",{className:"text-sm text-gray-600",children:[x.length,"件選択中"]}):null,(0,t.jsxs)("div",{className:"flex items-center gap-2 ml-auto",children:[(0,t.jsx)("button",{onClick:j,className:"px-4 py-2 text-gray-600 hover:bg-gray-100 rounded",children:"キャンセル"}),(0,t.jsx)("button",{onClick:()=>{n?(s(x.length>0?x:[d]),g([]),l()):x.length>0&&(s(x),g([]),l())},disabled:!n&&0===x.length,className:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 disabled:bg-gray-300 disabled:cursor-not-allowed",children:"選択"})]})]})]})}):null}let R={format:"html",autoExport:!0,fileName:"config-doc",outputDir:".config_doc/output"};function V({isOpen:e,onClose:a,onExport:s,currentSettings:l,rootPath:i="."}){let[o,n]=(0,r.useState)(l||R),[d,h]=(0,r.useState)(!1),[p,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{l&&n(l)},[l]);let f="markdown"===o.format||"markdown-table"===o.format,x=(0,r.useMemo)(()=>{let e=i.replace(/\//g,"\\"),t=o.outputDir?.trim()||"",r=t?t.replace(/\//g,"\\"):"",a=r?`${e}\\${r}`:e;if("markdown"===o.format||"markdown-table"===o.format)return`${a}\\{設定ファイル名}.md`;let s=o.fileName||"config-doc";return`${a}\\${s}.html`},[o.format,o.fileName,o.outputDir,i]);if(!e)return null;let g=async()=>{h(!0);try{await s(o),a()}catch(e){console.error("Export failed:",e)}finally{h(!1)}};return(0,t.jsxs)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:[(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-xl max-w-md w-full mx-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-6 border-b",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-gray-800",children:"エクスポート設定"}),(0,t.jsx)("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,t.jsx)(u,{className:"w-5 h-5"})})]}),(0,t.jsxs)("div",{className:"p-6 space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"出力先フォルダ"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{type:"text",value:o.outputDir||"",onChange:e=>n({...o,outputDir:e.target.value}),className:"flex-1 px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"(空欄でプロジェクトルート)"}),(0,t.jsx)("button",{type:"button",onClick:()=>m(!0),className:"px-3 py-2 border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500",title:"フォルダを選択",children:(0,t.jsx)(I,{className:"w-5 h-5 text-gray-500"})})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"相対パスを入力またはフォルダを選択(空欄でプロジェクトルート、チーム共有設定)"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"出力形式"}),(0,t.jsxs)("select",{value:o.format,onChange:e=>n({...o,format:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",children:[(0,t.jsx)("option",{value:"html",children:"HTML"}),(0,t.jsx)("option",{value:"markdown",children:"Markdown"}),(0,t.jsx)("option",{value:"markdown-table",children:"Markdown (テーブル形式)"})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"html"===o.format?"スタイル付きのHTMLファイルとして出力します":"markdown-table"===o.format?"設定ファイルごとにMarkdownテーブル形式で出力します":"設定ファイルごとに個別のMarkdownファイルとして出力します"})]}),!f&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"ファイル名"}),(0,t.jsx)("input",{type:"text",value:o.fileName??"",onChange:e=>n({...o,fileName:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"config-doc"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"拡張子なしのファイル名を指定します(空欄でconfig-doc、チーム共有設定)"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"出力先パス"}),(0,t.jsx)("div",{className:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md text-sm text-gray-700 font-mono break-all",children:x})]}),(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("div",{className:"flex items-center h-5",children:(0,t.jsx)("input",{id:"auto-export",type:"checkbox",checked:o.autoExport,onChange:e=>n({...o,autoExport:e.target.checked}),className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500"})}),(0,t.jsxs)("div",{className:"ml-3",children:[(0,t.jsx)("label",{htmlFor:"auto-export",className:"text-sm font-medium text-gray-700 cursor-pointer",children:"保存時に自動エクスポート"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"ドキュメントを保存したときに自動的にHTMLファイルを更新します"})]})]}),o.lastExportedAt&&(0,t.jsx)("div",{className:"pt-4 border-t",children:(0,t.jsxs)("p",{className:"text-xs text-gray-500",children:["最終エクスポート: ",new Date(o.lastExportedAt).toLocaleString("ja-JP")]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-3 p-6 border-t bg-gray-50 rounded-b-lg",children:[(0,t.jsx)("button",{onClick:a,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:"キャンセル"}),(0,t.jsxs)("button",{onClick:g,disabled:d,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,t.jsx)(c,{className:"w-4 h-4"}),d?"エクスポート中...":"エクスポート"]})]})]}),(0,t.jsx)(H,{isOpen:p,currentPath:i,onSelect:e=>{if(e.length>0){let t=e[0],r=i.replace(/\\/g,"/"),a=t.replace(/\\/g,"/"),s=a;a.startsWith(r)&&(s=a.slice(r.length)).startsWith("/")&&(s=s.slice(1)),s||(s="."),n({...o,outputDir:s})}m(!1)},onClose:()=>m(!1),folderSelectMode:!0,title:"出力先フォルダを選択"})]})}let B=o("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),q=o("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),U=o("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);function Z({message:e,type:a,duration:s=3e3,onClose:l}){let[i,o]=(0,r.useState)(!1);(0,r.useEffect)(()=>{setTimeout(()=>o(!0),10);let e=setTimeout(()=>{o(!1),setTimeout(l,300)},s);return()=>clearTimeout(e)},[s,l]);let n={success:(0,t.jsx)(B,{className:"w-5 h-5 text-green-500"}),error:(0,t.jsx)(q,{className:"w-5 h-5 text-red-500"}),warning:(0,t.jsx)(U,{className:"w-5 h-5 text-yellow-500"})};return(0,t.jsx)("div",{className:`fixed bottom-4 left-4 z-50 transition-all duration-300 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-2"}`,children:(0,t.jsxs)("div",{className:`flex items-center gap-3 px-4 py-3 rounded-lg shadow-lg border ${{success:"bg-green-50 border-green-200",error:"bg-red-50 border-red-200",warning:"bg-yellow-50 border-yellow-200"}[a]} min-w-[300px] max-w-[500px]`,children:[n[a],(0,t.jsx)("span",{className:"flex-1 text-sm text-gray-800",children:e}),(0,t.jsx)("button",{onClick:()=>{o(!1),setTimeout(l,300)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,t.jsx)(u,{className:"w-4 h-4"})})]})})}function K({toasts:e,onRemove:r}){return(0,t.jsx)(t.Fragment,{children:e.map((e,a)=>(0,t.jsx)("div",{style:{bottom:`${16+80*a}px`},className:"fixed left-4 z-50",children:(0,t.jsx)(Z,{message:e.message,type:e.type,onClose:()=>r(e.id)})},e.id))})}let _={説明:""};function G(e,t){return e.length!==t.length||e.some((e,r)=>e!==t[r])}function Q(){let[e,a]=(0,r.useState)(!1),[s,l]=(0,r.useState)(!1),{loadedConfigs:i,activeConfigIndex:o,activeConfig:c,selectedPath:h,selectedNodeType:u,editingDoc:m,originalDoc:f,hasUnsavedChanges:x,exportSettings:g,availableTags:b,projectFields:y,associativeArrays:j,toasts:v,rootPath:N,inheritedTags:w,inheritedFields:k,setActiveConfigIndex:$,setEditingDoc:P,setHasUnsavedChanges:S,removeToast:T,handleSelectConfigFiles:O,handleRemoveConfig:A,handleReorderConfigs:I,handleSelectProperty:J,handleSaveProperty:L,handleExport:R,handleAvailableTagsChange:B,handleProjectFieldsChange:q,handleToggleAssociativeArray:U,checkForChanges:Z,resetSelection:Q,isAssociativeArray:X,isDescendantOfAssociativeArray:Y,clipboard:ee,handleCopyProperty:et,handlePasteProperty:er,handleDeleteProperty:ea}=function(){let[e,t]=(0,r.useState)([]),[a,s]=(0,r.useState)(0),[l,i]=(0,r.useState)(""),[o,n]=(0,r.useState)(!1),[c,d]=(0,r.useState)("."),[h,u]=(0,r.useState)(null),[p,m]=(0,r.useState)(null),[f,x]=(0,r.useState)(!1),[g,b]=(0,r.useState)(),[y,j]=(0,r.useState)(["required","nullable","string","number","boolean"]),[v,N]=(0,r.useState)(_),[w,k]=(0,r.useState)(void 0),[C,$]=(0,r.useState)([]),[P,S]=(0,r.useState)(null),[T,O]=(0,r.useState)([]),[A,W]=(0,r.useState)({}),I=e[a],J=I?.docs?.associativeArrays||[],L=(0,r.useCallback)((e,t="success")=>{let r=Date.now().toString();$(a=>[...a,{id:r,message:e,type:t}])},[]),H=(0,r.useCallback)(e=>{$(t=>t.filter(t=>t.id!==e))},[]),R=(0,r.useCallback)((e,t)=>{if(!e||!t)return!1;let r=e.tags||[];if(G(t.tags||[],r))return!0;let a=e.fields||{};return!!function(e,t){for(let r of new Set([...Object.keys(e),...Object.keys(t)]))if((e[r]||"")!==(t[r]||""))return!0;return!1}(t.fields||{},a)||(e.isTemplate||!1)!==(t.isTemplate||!1)},[]),V=(0,r.useCallback)((e,t)=>{let r=e.replace(/\\/g,"/"),a=t.replace(/\\/g,"/");if(!r.match(/^[a-zA-Z]:\//)&&!r.startsWith("/"))return e;if(r.startsWith(a)){let e=r.substring(a.length);return e.startsWith("/")?e.substring(1):e}return e},[]),B=(0,r.useCallback)(e=>{let t={};for(let r of Object.keys(v))t[r]=e.fields[r]||"";return{...e,fields:t}},[v]),q=(0,r.useCallback)(async e=>{try{let r=await fetch("/api/config/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:e})}),a=await r.json();a.success&&t(t=>t.some(t=>t.filePath===e)?t:[...t,{filePath:e,configData:a.data.configData,docs:a.data.docs}])}catch(e){console.error("Failed to load config file:",e)}},[]),U=(0,r.useCallback)(async e=>{try{let t=await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePaths:e})}),r=await t.json();r.deletedDocsFiles&&r.deletedDocsFiles.length>0&&L(`${r.deletedDocsFiles.length}件のドキュメントファイルを削除しました`,"warning")}catch(e){console.error("Failed to update metadata:",e)}},[L]),Z=(0,r.useCallback)(async()=>{if(g)try{if((await fetch("/api/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:g.format,fileName:g.fileName,outputDir:g.outputDir})})).ok){let e={...g,lastExportedAt:new Date().toISOString()};b(e),await fetch("/api/export/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:e})})}}catch(e){console.error("Auto export failed:",e)}},[g]);(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/project"),t=await e.json();if(t.success&&(d(t.data.rootPath),t.data.hasConfigDoc)){let e=await fetch("/api/config/metadata"),t=await e.json();if(t.success&&t.data?.configFiles)for(let e of t.data.configFiles)await q(e.filePath);t.success&&t.data?.availableTags&&j(t.data.availableTags),t.success&&t.data?.fields&&N(t.data.fields)}let r=await fetch("/api/export/settings"),a=await r.json();a.success&&b(a.data)}catch(e){console.error("Failed to load saved configs:",e)}finally{n(!0)}})()},[q]);let K=(0,r.useCallback)(async r=>{let a=[];for(let t of r){let r=V(t,c);if(!e.some(e=>e.filePath===r))try{let e=await fetch("/api/config/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:t})}),s=await e.json();s.success?a.push({filePath:r,configData:s.data.configData,docs:s.data.docs}):L(`設定ファイルの読み込みに失敗しました (${t}): ${s.error}`,"error")}catch(e){console.error("Failed to load config:",e),L(`設定ファイルの読み込み中にエラーが発生しました: ${t}`,"error")}}a.length>0&&t(e=>{let t=[...e,...a];return U(t.map(e=>e.filePath)),t})},[e,c,L,V,U]),Q=(0,r.useCallback)(async r=>{let l=e[r];(!l.docs||!(Object.keys(l.docs.properties).length>0)||confirm("既に説明文が設定されていますが、削除してよろしいですか?"))&&(t(e=>{let t=e.filter((e,t)=>t!==r);return U(t.map(e=>e.filePath)),t}),a>=r&&a>0&&s(a-1),i(""),u(null),x(!1))},[a,e,U]),X=(0,r.useCallback)((e,r)=>{t(e),s(r),U(e.map(e=>e.filePath))},[U]),Y=(0,r.useCallback)(e=>{if(I){for(let t of Object.values(I.docs.properties))if(t.isTemplate&&t.sourceTemplatePath===e)return t}},[I]),ee=(0,r.useCallback)(e=>{if(f&&!confirm("保存されていない変更があります。破棄しますか?"))return;i(e);let t=I?.docs.properties[e];if(I?.configData){let t=E(I.configData,e);null==t?k(void 0):Array.isArray(t)?k("array"):"object"==typeof t?k("object"):"string"==typeof t?k("string"):"number"==typeof t?k("number"):"boolean"==typeof t?k("boolean"):k(void 0)}let r=Y(e),a=!!r,s=I?.configData?F(e,I.docs.properties,J,I.configData):void 0;if(s&&!a?(O(s.tags||[]),W(s.fields||{})):(O([]),W({})),t){let e=B({...t,tags:t.tags||[],isTemplate:!!a||t.isTemplate});u(e),m(e)}else if(r){let t=B({...r,path:e,tags:r.tags||[],isTemplate:!0});u(t),m(t)}else{let t={path:e,tags:[],fields:Object.fromEntries(Object.keys(v).map(e=>[e,""])),modifiedAt:new Date().toISOString(),isTemplate:!1};u(t),m(t)}x(!1)},[I,J,Y,f,B,v]),et=(0,r.useCallback)(async()=>{if(h&&I)try{let e={...h,modifiedAt:new Date().toISOString()},r=await fetch("/api/config/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:I.filePath,propertyPath:l,propertyDoc:e,associativeArrays:J,configData:I.configData})}),s=await r.json();s.success?(t(t=>t.map((t,r)=>{if(r!==a)return t;let s={...t.docs.properties};if(e.isTemplate){let r;r=J.length>0&&t.configData?M(l,J,t.configData):D(l);let a={...e,path:r,sourceTemplatePath:l};s[r]=a,delete s[l]}else{for(let[e,t]of Object.entries(s))if(t.isTemplate&&t.sourceTemplatePath===l){delete s[e];break}s[l]=e}return{...t,docs:{...t.docs,properties:s}}})),u(e),m(e),x(!1),L("保存しました"),g?.autoExport&&await Z()):L("保存に失敗しました: "+s.error,"error")}catch(e){console.error("Failed to save:",e),L("保存中にエラーが発生しました","error")}},[I,a,h,g?.autoExport,Z,l,L]),er=(0,r.useCallback)(async e=>{try{let t=await fetch("/api/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:e.format,fileName:e.fileName,outputDir:e.outputDir})}),r=await t.json();if(r.success){let t={...e,lastExportedAt:new Date().toISOString()};b(t),await fetch("/api/export/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:t})});let a=r.outputPaths?r.outputPaths[0]?.replace(/[/\\][^/\\]+$/,"")||e.outputDir||".":r.outputPath;L(`エクスポートしました: ${a}`)}else L("エクスポートに失敗しました: "+r.error,"error")}catch(e){console.error("Export failed:",e),L("エクスポート中にエラーが発生しました","error")}},[L]),ea=(0,r.useCallback)(async(r,a)=>{let s=y.filter(e=>!r.includes(e));j(r),await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({availableTags:r})});let l=s.length>0,i=y.some((e,t)=>e!==r[t])||y.length!==r.length,o=a&&Object.keys(a).length>0;if(l||i||o)for(let l of e){let e=!1,i={...l.docs.properties};for(let[t,l]of Object.entries(i))if(l.tags&&l.tags.length>0){let o=function(e,t){return[...e].sort((e,r)=>{let a=t.indexOf(e),s=t.indexOf(r);return -1!==a&&-1!==s?a-s:-1===a?1:-1===s?-1:0})}(l.tags.map(e=>a&&a[e]?a[e]:e).filter(e=>!s.includes(e)),r);G(l.tags,o)&&(i[t]={...l,tags:o},e=!0)}e&&(await fetch("/api/config/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:l.filePath,properties:i})}),t(e=>e.map(e=>e.filePath===l.filePath?{...e,docs:{...e.docs,properties:i}}:e)))}},[y,e]),es=(0,r.useCallback)(async(r,a)=>{let s=Object.keys(v),l=Object.keys(r),i=s.filter(e=>!l.includes(e)),o=a&&Object.keys(a).length>0;for(let s of(N(r),await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:r})}),e)){let e=!1,r={...s.docs.properties};for(let[t,s]of Object.entries(r))if(s.fields){let n=function(e,t,r){let a={},s={};if(r)for(let[e,t]of Object.entries(r))s[t]=e;for(let r of t){let t=s[r]||r;a[r]=e[t]||""}return a}(s.fields,l,a),c=Object.keys(s.fields),d=c.some((e,t)=>e!==l[t]),h=i.some(e=>e in s.fields);(d||h||o||c.length!==l.length)&&(r[t]={...s,fields:n},e=!0)}e&&(await fetch("/api/config/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:s.filePath,properties:r})}),t(e=>e.map(e=>e.filePath===s.filePath?{...e,docs:{...e.docs,properties:r}}:e)))}},[e,v]),el=(0,r.useCallback)(()=>{i(""),u(null),x(!1),k(void 0)},[]),ei=(0,r.useCallback)(()=>{h&&(S({tags:[...h.tags||[]],fields:{...h.fields||{}}}),L("プロパティ詳細をコピーしました"))},[h,L]),eo=(0,r.useCallback)(()=>{if(!P||!h)return;let e=P.tags.filter(e=>y.includes(e)),t={};for(let e of Object.keys(v))t[e]=P.fields[e]||"";let r={...h,tags:e,fields:t};u(r),x(R(r,p)),L("プロパティ詳細を貼り付けました")},[P,h,y,v,p,R,L]),en=(0,r.useCallback)(async()=>{if(h&&I&&l&&confirm("このプロパティの詳細を削除しますか?"))try{let e=await fetch("/api/config/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:I.filePath,propertyPath:l})}),r=await e.json();if(r.success){t(e=>e.map((e,t)=>{if(t!==a)return e;let r={...e.docs.properties};for(let[e,t]of(delete r[l],Object.entries(r)))if(t.isTemplate&&t.sourceTemplatePath===l){delete r[e];break}return{...e,docs:{...e.docs,properties:r}}}));let e={path:l,tags:[],fields:{...v},modifiedAt:new Date().toISOString()};u(e),m(e),x(!1),L("プロパティ詳細を削除しました"),g?.autoExport&&await Z()}else L("削除に失敗しました: "+r.error,"error")}catch(e){console.error("Failed to delete:",e),L("削除中にエラーが発生しました","error")}},[I,a,h,g?.autoExport,Z,v,l,L]),ec=(0,r.useCallback)(e=>{if(J.some(t=>t.basePath===e))return!0;let t=z(e,J,I?.configData);return!!(t!==e&&J.some(e=>e.basePath===t))||J.some(t=>{if(!t.basePath.includes("[*]"))return!1;let r=t.basePath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,":[^:]+");return RegExp(`^${r}$`).test(e)})},[J,I?.configData]),ed=(0,r.useCallback)(e=>J.some(t=>e.startsWith(t.basePath+":")),[J]),eh=(0,r.useCallback)(async(e,r)=>{let s;if(I){if(r){let t=z(e,J,I.configData);s=[...J,{basePath:t,createdAt:new Date().toISOString()}]}else{let t=z(e,J,I.configData),r=e+"[*]";s=J.filter(a=>!(a.basePath===e||a.basePath===t||a.basePath.startsWith(r+":")||a.basePath.startsWith(r)))}t(e=>e.map((e,t)=>t===a?{...e,docs:{...e.docs,associativeArrays:s}}:e));try{await fetch("/api/config/associative-arrays",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:I.filePath,associativeArrays:s})}),L(r?"連想配列として登録しました":"連想配列登録を解除しました")}catch(e){console.error("Failed to save associative array mapping:",e),L("連想配列設定の保存に失敗しました","error")}}},[I,a,J,L]);return{loadedConfigs:e,activeConfigIndex:a,activeConfig:I,selectedPath:l,selectedNodeType:w,editingDoc:h,originalDoc:p,hasUnsavedChanges:f,exportSettings:g,availableTags:y,projectFields:v,associativeArrays:J,toasts:C,rootPath:c,isInitialized:o,inheritedTags:T,inheritedFields:A,setActiveConfigIndex:s,setSelectedPath:i,setEditingDoc:u,setHasUnsavedChanges:x,showToast:L,removeToast:H,loadConfigFile:q,handleSelectConfigFiles:K,handleRemoveConfig:Q,handleReorderConfigs:X,handleSelectProperty:ee,handleSaveProperty:et,handleExport:er,handleAvailableTagsChange:ea,handleProjectFieldsChange:es,handleToggleAssociativeArray:eh,checkForChanges:R,resetSelection:el,isAssociativeArray:ec,isDescendantOfAssociativeArray:ed,clipboard:P,handleCopyProperty:ei,handlePasteProperty:eo,handleDeleteProperty:en}}(),es=!!(h&&c?.docs.properties[h]);return(0,t.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50",children:[(0,t.jsx)(d,{onExportClick:()=>l(!0)}),(0,t.jsxs)("main",{className:"container mx-auto px-6 py-8",children:[(0,t.jsx)(p,{loadedConfigs:i,activeConfigIndex:o,onTabClick:e=>{$(e),Q()},onRemoveConfig:A,onAddFileClick:()=>a(!0),onReorder:I}),c&&(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 flex flex-col max-h-[calc(100vh-190px)] hover:shadow-2xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-purple-500 to-purple-600 rounded-lg flex items-center justify-center",children:(0,t.jsx)(n,{className:"w-5 h-5 text-white"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"JSON構造"})]}),(0,t.jsx)("div",{className:"overflow-y-auto flex-1",children:(0,t.jsx)(W,{config:c.configData,docs:c.docs,onSelectProperty:J,onEditProperty:J,selectedPath:h,associativeArrays:j})})]}),(0,t.jsx)(C,{selectedPath:h,editingDoc:m,hasUnsavedChanges:x,availableTags:b,projectFields:y,selectedNodeType:u,isAssociativeArray:X(h),isDescendantOfAssociativeArray:Y(h),inheritedTags:w,inheritedFields:k,onEditingDocChange:e=>{P(e),S(Z(e,f))},onAvailableTagsChange:B,onProjectFieldsChange:q,onSave:L,onToggleAssociativeArray:U,onCopy:et,onPaste:er,canPaste:null!==ee,onDelete:ea,hasExistingDoc:es})]})]}),(0,t.jsx)(H,{isOpen:e,currentPath:N,multiSelect:!0,filterJsonOnly:!0,onSelect:e=>{O(e),a(!1)},onClose:()=>a(!1)}),(0,t.jsx)(V,{isOpen:s,onClose:()=>l(!1),onExport:R,currentSettings:g,rootPath:N}),(0,t.jsx)(K,{toasts:v,onRemove:T})]})}e.s(["default",()=>Q],31713)}]);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.8e0177b5.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.b97b3418.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.853070df.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_a71539c9-module__T19VSG__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_a71539c9-module__T19VSG__variable{--font-geist-sans:"Geist","Geist Fallback"}
|
|
2
|
+
@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.c1fdd6c2.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.799d8ef8.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.dbea232f.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_8d43a2aa-module__8Li5zG__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_8d43a2aa-module__8Li5zG__variable{--font-geist-mono:"Geist Mono","Geist Mono Fallback"}
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-50:#fef2f2;--color-red-200:#ffcaca;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-amber-50:#fffbeb;--color-amber-100:#fef3c6;--color-amber-200:#fee685;--color-amber-300:#ffd236;--color-amber-500:#f99c00;--color-amber-600:#dd7400;--color-amber-700:#b75000;--color-amber-800:#953d00;--color-yellow-50:#fefce8;--color-yellow-200:#fff085;--color-yellow-500:#edb200;--color-green-50:#f0fdf4;--color-green-100:#dcfce7;--color-green-200:#b9f8cf;--color-green-300:#7bf1a8;--color-green-500:#00c758;--color-green-600:#00a544;--color-green-700:#008138;--color-emerald-600:#009767;--color-emerald-700:#007956;--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bedbff;--color-blue-300:#90c5ff;--color-blue-400:#54a2ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-indigo-50:#eef2ff;--color-indigo-100:#e0e7ff;--color-indigo-500:#625fff;--color-indigo-600:#4f39f6;--color-purple-50:#faf5ff;--color-purple-100:#f3e8ff;--color-purple-200:#e9d5ff;--color-purple-300:#d9b3ff;--color-purple-400:#c07eff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-purple-700:#8200da;--color-purple-800:#6e11b0;--color-gray-50:#f9fafb;--color-gray-100:#f3f4f6;--color-gray-200:#e5e7eb;--color-gray-300:#d1d5dc;--color-gray-400:#99a1af;--color-gray-500:#6a7282;--color-gray-600:#4a5565;--color-gray-700:#364153;--color-gray-800:#1e2939;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18511 1.52329);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-300:lab(76.5514% 36.4219 15.5335);--color-red-400:lab(63.7053% 60.7449 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-amber-50:lab(98.6252% -.635982 8.42309);--color-amber-100:lab(95.916% -1.2165 23.111);--color-amber-200:lab(91.7203% -.505269 49.9084);--color-amber-300:lab(86.4156% 6.13147 78.3961);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-amber-600:lab(60.3514% 40.5624 87.1228);--color-amber-700:lab(47.2709% 42.9082 69.2966);--color-amber-800:lab(37.8823% 37.1699 52.2718);--color-yellow-50:lab(98.6846% -1.79058 9.77662);--color-yellow-200:lab(94.3433% -5.00426 52.9663);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-green-50:lab(98.1563% -5.60117 2.75913);--color-green-100:lab(96.186% -13.8464 6.52362);--color-green-200:lab(92.4222% -26.4702 12.9427);--color-green-300:lab(86.9953% -47.2691 25.0054);--color-green-500:lab(70.5521% -66.5147 45.8072);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-green-700:lab(47.0329% -47.0239 31.4788);--color-emerald-600:lab(55.0481% -49.9246 15.93);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-blue-50:lab(96.492% -1.14647 -5.11479);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-200:lab(86.15% -4.04379 -21.0797);--color-blue-300:lab(77.5052% -6.4629 -36.42);--color-blue-400:lab(65.0361% -1.42062 -56.9803);--color-blue-500:lab(54.1736% 13.3368 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-blue-700:lab(36.9089% 35.0961 -85.6872);--color-indigo-50:lab(95.4818% .411302 -6.78529);--color-indigo-100:lab(91.6577% 1.04591 -12.7199);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-indigo-600:lab(38.4009% 52.6132 -92.3857);--color-purple-50:lab(97.1626% 2.99937 -4.13398);--color-purple-100:lab(93.3333% 6.9744 -9.83434);--color-purple-200:lab(87.8405% 13.4282 -18.7159);--color-purple-300:lab(78.3298% 26.2195 -34.9499);--color-purple-400:lab(63.6946% 47.6127 -59.2066);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-purple-700:lab(36.1758% 69.8525 -80.0381);--color-purple-800:lab(30.6017% 56.7637 -64.4751);--color-gray-50:lab(98.2596% -.247031 -.706708);--color-gray-100:lab(96.1596% -.082314 -1.13575);--color-gray-200:lab(91.6229% -.159085 -2.26791);--color-gray-300:lab(85.1236% -.612259 -3.7138);--color-gray-400:lab(65.9269% -.832707 -8.17474);--color-gray-500:lab(47.7841% -.393212 -10.0268);--color-gray-600:lab(35.6337% -1.58697 -10.8425);--color-gray-700:lab(27.1134% -.956401 -12.3224);--color-gray-800:lab(16.1051% -1.18239 -11.7533)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.left-4{left:calc(var(--spacing)*4)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-full{height:100%}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(100vh-190px\)\]{max-height:calc(100vh - 190px)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\[200px\]{max-width:200px}.max-w-\[500px\]{max-width:500px}.max-w-md{max-width:var(--container-md)}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-green-300{border-color:var(--color-green-300)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-50\/50{background-color:#faf5ff80}@supports (color:color-mix(in lab, red, red)){.bg-purple-50\/50{background-color:color-mix(in oklab,var(--color-purple-50)50%,transparent)}}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.bg-white\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-50{--tw-gradient-from:var(--color-blue-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-100{--tw-gradient-from:var(--color-blue-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-100{--tw-gradient-from:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-green-500{--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-500{--tw-gradient-from:var(--color-indigo-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-indigo-50{--tw-gradient-via:var(--color-indigo-50);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-600{--tw-gradient-to:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-100{--tw-gradient-to:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-200{--tw-gradient-to:var(--color-gray-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-50{--tw-gradient-to:var(--color-indigo-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-100{--tw-gradient-to:var(--color-indigo-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-600{--tw-gradient-to:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-50{--tw-gradient-to:var(--color-purple-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-800{color:var(--color-purple-800)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-purple-400::placeholder{color:var(--color-purple-400)}@media (hover:hover){.hover\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-gradient-to-r:hover{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.hover\:from-blue-600:hover{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-gray-50:hover{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-green-600:hover{--tw-gradient-from:var(--color-green-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-blue-700:hover{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-emerald-700:hover{--tw-gradient-to:var(--color-emerald-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-gray-100:hover{--tw-gradient-to:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\:border-red-400:focus{border-color:var(--color-red-400)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-amber-500:focus{--tw-ring-color:var(--color-amber-500)}.focus\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\:ring-red-200:focus{--tw-ring-color:var(--color-red-200)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}:root{--background:#fff;--foreground:#171717}@media (prefers-color-scheme:dark){:root{--background:#0a0a0a;--foreground:#ededed}}body{background:var(--background);color:var(--foreground);font-family:Arial,Helvetica,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,e=>{"use strict";var t=e.i(43476),a=e.i(71645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:n,iconNode:c,...d},h)=>(0,a.createElement)("svg",{ref:h,...l,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:s("lucide",o),...!n&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(n)?n:[n]])),o=(e,t)=>{let l=(0,a.forwardRef)(({className:l,...o},n)=>(0,a.createElement)(i,{ref:n,iconNode:t,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...o}));return l.displayName=r(e),l},n=o("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),c=o("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);function d({onExportClick:e}){return(0,t.jsx)("header",{className:"bg-white/80 backdrop-blur-md border-b border-gray-200 shadow-sm sticky top-0 z-50",children:(0,t.jsxs)("div",{className:"container mx-auto px-6 py-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("img",{src:"/logo.svg",alt:"ConfigDoc",className:"w-12 h-12 rounded-lg"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:"ConfigDoc"}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Configuration Documentation Tool"})]})]}),(0,t.jsxs)("button",{onClick:e,className:"flex items-center gap-2 px-5 py-2.5 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-lg hover:from-green-600 hover:to-emerald-700 shadow-md hover:shadow-lg transition-all duration-200 transform",title:"エクスポート",children:[(0,t.jsx)(c,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-medium",children:"エクスポート"})]})]})})}let h=o("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),u=o("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function m({loadedConfigs:e,activeConfigIndex:r,onTabClick:s,onRemoveConfig:l,onAddFileClick:i,onReorder:o}){let[n,c]=(0,a.useState)(null),[d,m]=(0,a.useState)(null),f=()=>{m(null)},p=()=>{c(null),m(null)},g=e.map(e=>e.filePath);return(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 mb-8 hover:shadow-2xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-blue-500 to-blue-600 rounded-lg flex items-center justify-center",children:(0,t.jsx)(h,{className:"w-5 h-5 text-white"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"設定ファイル"})]}),(0,t.jsxs)("button",{onClick:i,className:"flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-blue-500 to-blue-600 text-white rounded-lg hover:from-blue-600 hover:to-blue-700 shadow-md hover:shadow-lg transition-all duration-200 transform",children:[(0,t.jsx)(h,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-medium",children:"ファイルを追加"})]})]}),e.length>0?(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:e.map((a,i)=>(0,t.jsxs)("div",{draggable:!0,onDragStart:()=>{c(i)},onDragOver:e=>{e.preventDefault(),null!==n&&n!==i&&m(i)},onDragLeave:f,onDrop:()=>(t=>{if(null===n||n===t){c(null),m(null);return}let a=[...e],[s]=a.splice(n,1);a.splice(t,0,s);let l=r;r===n?l=t:n<r&&t>=r?l=r-1:n>r&&t<=r&&(l=r+1),o(a,l),c(null),m(null)})(i),onDragEnd:p,onClick:()=>s(i),className:`group flex items-center gap-2 px-4 py-2.5 rounded-xl border-2 cursor-grab transition-all duration-200 ${r===i?"bg-gradient-to-r from-blue-50 to-indigo-50 border-blue-400 shadow-md":"bg-white border-gray-200 hover:border-blue-300 hover:shadow-md"} ${n===i?"opacity-50":""} ${d===i?"border-blue-500 border-dashed":""}`,children:[(0,t.jsx)("span",{className:`text-sm font-medium ${r===i?"text-blue-700":"text-gray-700"}`,children:function(e,t){let a=e.split(/[/\\]/).pop()||e,r=t.filter(e=>e.split(/[/\\]/).pop()===a);if(1===r.length)return a;let s=e.split(/[/\\]/);for(let t=1;t<s.length;t++){let a=s.slice(-t-1).join("/");if(0===r.filter(r=>a===r.split(/[/\\]/).slice(-t-1).join("/")&&r!==e).length)return a}return e}(a.filePath,g)}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),l(i)},className:"text-gray-400 hover:text-red-500 transition-colors opacity-0 group-hover:opacity-100",children:(0,t.jsx)(u,{className:"w-4 h-4"})})]},a.filePath))}):(0,t.jsxs)("div",{className:"text-center py-12 bg-gradient-to-br from-gray-50 to-gray-100 rounded-xl border-2 border-dashed border-gray-300",children:[(0,t.jsx)(h,{className:"w-16 h-16 text-gray-400 mx-auto mb-3"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 font-medium",children:"設定ファイルを選択してください"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"「ファイルを追加」ボタンから開始"})]})]})}let f=o("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),p=o("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),g=o("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),x=o("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),b=o("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),y=o("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),j=o("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),v=o("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);function N({label:e,items:r,onItemsChange:s,editButtonTitle:l,editModeDescription:i,inputPlaceholder:o,newItemPlaceholder:n,deleteButtonTitle:c,addButtonTitle:d,duplicateErrorMessage:h,onRename:m,children:p}){let[g,x]=(0,a.useState)(!1),[b,N]=(0,a.useState)([]),[w,k]=(0,a.useState)(""),[C,$]=(0,a.useState)(null),[P,S]=(0,a.useState)(null),T=(0,a.useMemo)(()=>{if(null===C||null===P||C===P)return b.map((e,t)=>({item:e,originalIndex:t}));let e=b.map((e,t)=>({item:e,originalIndex:t})),[t]=e.splice(C,1);return e.splice(P,0,t),e},[b,C,P]),O=()=>{let e=w.trim();e&&!b.some(t=>t.newName===e)&&(N([...b,{originalName:"",newName:e,isNew:!0}]),k(""))},D=()=>{if(null===C||null===P||C===P){$(null),S(null);return}let e=[...b],[t]=e.splice(C,1);e.splice(P,0,t),N(e),$(null),S(null)},A=()=>{$(null),S(null)},M=()=>{let e=b.map(e=>e.newName.trim()).filter(Boolean);return new Set(e).size!==e.length},E=!M()&&!b.some(e=>!e.newName.trim());return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-gray-700",children:e}),!g&&(0,t.jsx)("button",{onClick:()=>{N(r.map(e=>({originalName:e,newName:e,isNew:!1}))),x(!0),k("")},className:"text-gray-500 hover:text-blue-600 transition-colors p-1",title:l,children:(0,t.jsx)(y,{className:"w-4 h-4"})})]}),g?(0,t.jsxs)("div",{className:"space-y-3 p-4 bg-blue-50 rounded-lg border-2 border-blue-200",children:[(0,t.jsxs)("div",{className:"text-xs font-medium text-blue-700 mb-2",children:[i,"(ドラッグで並び替え可能)"]}),(0,t.jsx)("div",{className:"space-y-2",children:T.map(({item:e,originalIndex:a},r)=>{let s=C===a;return(0,t.jsxs)("div",{draggable:!0,onDragStart:()=>{$(a)},onDragOver:e=>{e.preventDefault(),null!==C&&P!==r&&S(r)},onDrop:D,onDragEnd:A,className:`flex items-center gap-2 transition-all ${s?"opacity-50":""}`,children:[(0,t.jsx)("div",{className:"cursor-grab text-gray-400 hover:text-gray-600 p-1",title:"ドラッグして並び替え",children:(0,t.jsx)(v,{className:"w-4 h-4"})}),(0,t.jsx)("input",{type:"text",value:e.newName,onChange:e=>{var t;return t=e.target.value,void N(b.map((e,r)=>r===a?{...e,newName:t}:e))},placeholder:o,className:`flex-1 px-3 py-2 border-2 rounded-lg text-sm focus:ring-2 transition-all duration-200 ${!e.newName.trim()?"border-red-300 focus:border-red-400 focus:ring-red-200":"border-gray-200 focus:border-blue-400 focus:ring-blue-200"}`}),(0,t.jsx)("button",{onClick:()=>{N(b.filter((e,t)=>t!==a))},className:"text-gray-400 hover:text-red-600 transition-colors p-2",title:c,children:(0,t.jsx)(u,{className:"w-4 h-4"})})]},a)})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2 border-t border-blue-200",children:[(0,t.jsx)("input",{type:"text",value:w,onChange:e=>k(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),O())},placeholder:n,className:"flex-1 px-3 py-2 border-2 border-gray-200 rounded-lg text-sm focus:border-blue-400 focus:ring-2 focus:ring-blue-200 transition-all duration-200"}),(0,t.jsx)("button",{onClick:O,disabled:!w.trim()||b.some(e=>e.newName.trim()===w.trim()),className:"px-3 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed",title:d,children:(0,t.jsx)(j,{className:"w-4 h-4"})})]}),M()&&(0,t.jsx)("div",{className:"text-xs text-red-600 mt-2",children:h}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-3 border-t border-blue-200",children:[(0,t.jsxs)("button",{onClick:()=>{let e=[],t={};for(let a of b){let r=a.newName.trim();r&&(e.push(r),a.isNew||a.originalName===r||(t[a.originalName]=r))}let a=w.trim();a&&!e.includes(a)&&e.push(a),m&&Object.keys(t).length>0&&m(t),s(e,Object.keys(t).length>0?t:void 0),x(!1),N([]),k("")},disabled:!E,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2 bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors disabled:bg-gray-300 disabled:cursor-not-allowed text-sm font-medium",children:[(0,t.jsx)(f,{className:"w-4 h-4"}),"保存"]}),(0,t.jsx)("button",{onClick:()=>{x(!1),N([]),k(""),$(null),S(null)},className:"flex-1 px-4 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition-colors text-sm font-medium",children:"キャンセル"})]})]}):p]})}function w({selectedTags:e,availableTags:a,onSelectedTagsChange:r,onAvailableTagsChange:s}){return(0,t.jsx)(N,{label:"タグ",items:a,onItemsChange:(t,a)=>{let l=e.map(e=>a&&a[e]?a[e]:e);JSON.stringify(l=l.filter(e=>t.includes(e)))!==JSON.stringify(e)&&r(l),s(t,a)},editButtonTitle:"タグを編集",editModeDescription:"タグの追加・削除・名前変更",inputPlaceholder:"タグ名",newItemPlaceholder:"新しいタグ名を入力",deleteButtonTitle:"タグを削除",addButtonTitle:"タグを追加",duplicateErrorMessage:"同じ名前のタグがあります",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:0===a.length?(0,t.jsx)("div",{className:"text-sm text-gray-500",children:"タグがありません。鉛筆アイコンをクリックして追加してください。"}):a.map(a=>{let s=e.includes(a);return(0,t.jsxs)("button",{onClick:()=>{e.includes(a)?r(e.filter(e=>e!==a)):r([...e,a])},className:`flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm font-medium border-2 transition-all duration-200 ${s?"bg-blue-500 text-white border-blue-600 shadow-md":"bg-white text-gray-700 border-gray-200 hover:border-blue-300 hover:bg-blue-50"}`,children:[s&&(0,t.jsx)(b,{className:"w-3 h-3"}),(0,t.jsx)("span",{children:a})]},a)})})})}function k({fields:e,projectFields:a,onFieldsChange:r,onUpdateProjectFields:s}){let l=Object.keys(a);return(0,t.jsx)(N,{label:"フィールド",items:l,onItemsChange:(t,a)=>{let l={};if(a)for(let[e,t]of Object.entries(a))l[t]=e;let i={};for(let a of t){let t=l[a]||a;i[a]=e[t]||""}if(r(i),s){let e={};for(let a of t)e[a]="";s(e,a)}},editButtonTitle:"フィールドを編集",editModeDescription:"フィールドの追加・削除・名前変更",inputPlaceholder:"フィールド名",newItemPlaceholder:"新しいフィールド名を入力",deleteButtonTitle:"フィールドを削除",addButtonTitle:"フィールドを追加",duplicateErrorMessage:"同じ名前のフィールドがあります",children:(0,t.jsx)("div",{className:"space-y-3",children:Object.entries(e).map(([a,s])=>(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:a}),(0,t.jsx)("textarea",{value:s,onChange:t=>{var s;return s=t.target.value,void r({...e,[a]:s})},className:"w-full border-2 border-gray-200 rounded-lg p-3 min-h-[80px] text-sm focus:border-blue-400 focus:ring-2 focus:ring-blue-200 transition-all duration-200 shadow-sm hover:shadow-md",placeholder:`${a}を入力してください`})]},a))})})}function C({selectedPath:e,editingDoc:a,hasUnsavedChanges:r,availableTags:s,projectFields:l,selectedNodeType:i,isAssociativeArray:o=!1,isDescendantOfAssociativeArray:c=!1,onEditingDocChange:d,onAvailableTagsChange:h,onProjectFieldsChange:u,onSave:m,onToggleAssociativeArray:b,onCopy:y,onPaste:j,canPaste:v,onDelete:N,hasExistingDoc:C}){let $=/\[\d+\]/.test(e);return(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 flex flex-col max-h-[calc(100vh-190px)] hover:shadow-2xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-indigo-500 to-indigo-600 rounded-lg flex items-center justify-center",children:(0,t.jsx)(f,{className:"w-5 h-5 text-white"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"プロパティ詳細"})]}),e&&a&&(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("button",{onClick:y,className:"p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg transition-colors",title:"プロパティ詳細をコピー",children:(0,t.jsx)(p,{className:"w-4 h-4"})}),(0,t.jsx)("button",{onClick:j,disabled:!v,className:`p-2 rounded-lg transition-colors ${v?"text-gray-500 hover:text-gray-700 hover:bg-gray-100":"text-gray-300 cursor-not-allowed"}`,title:"プロパティ詳細を貼り付け",children:(0,t.jsx)(g,{className:"w-4 h-4"})})]})]}),e&&a?(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-h-0",children:[(0,t.jsxs)("div",{className:"flex-shrink-0 pb-4 border-b border-gray-200",children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"パス"}),(0,t.jsx)("div",{className:"text-sm text-gray-700 bg-gradient-to-r from-blue-50 to-indigo-50 p-3 rounded-lg font-mono border border-blue-200 shadow-sm",children:e})]}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto py-4 space-y-6 min-h-0",children:[(0,t.jsx)(w,{selectedTags:a.tags||[],availableTags:s,onSelectedTagsChange:e=>{d({...a,tags:e})},onAvailableTagsChange:h}),(0,t.jsx)(k,{fields:a.fields||{},projectFields:l,onFieldsChange:e=>{d({...a,fields:e})},onUpdateProjectFields:u}),(0,t.jsxs)("div",{className:"space-y-3 pt-4 border-t border-gray-200",children:[($||c)&&(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-purple-50 rounded-lg border border-purple-200",children:[(0,t.jsx)("input",{type:"checkbox",id:"isTemplate",checked:a.isTemplate||!1,onChange:e=>d({...a,isTemplate:e.target.checked}),className:"mt-0.5 w-4 h-4 rounded border-purple-300 text-purple-600 focus:ring-purple-500"}),(0,t.jsxs)("label",{htmlFor:"isTemplate",className:"text-sm text-purple-800 cursor-pointer",children:[(0,t.jsx)("span",{className:"font-medium",children:"テンプレートとして保存"}),(0,t.jsx)("span",{className:"block text-xs text-purple-600 mt-0.5",children:"同じ構造の全配列要素にこのドキュメントを適用します"})]})]}),"object"===i&&b&&(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-amber-50 rounded-lg border border-amber-200",children:[(0,t.jsx)("input",{type:"checkbox",id:"isAssociativeArray",checked:o,onChange:t=>b(e,t.target.checked),className:"mt-0.5 w-4 h-4 rounded border-amber-300 text-amber-600 focus:ring-amber-500"}),(0,t.jsxs)("label",{htmlFor:"isAssociativeArray",className:"text-sm text-amber-800 cursor-pointer",children:[(0,t.jsx)("span",{className:"font-medium",children:"連想配列として登録"}),(0,t.jsx)("span",{className:"block text-xs text-amber-600 mt-0.5",children:"キー名を配列インデックスとして扱い、テンプレート展開の対象にします"})]})]})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0 pt-4 border-t border-gray-200",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("button",{onClick:N,disabled:!C,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium rounded-lg transition-colors shadow-sm ${C?"text-red-600 bg-white border border-red-300 hover:bg-red-50":"text-gray-400 bg-gray-100 border border-gray-200 cursor-not-allowed"}`,title:"プロパティ詳細を削除",children:[(0,t.jsx)(x,{className:"w-4 h-4"}),"削除"]}),(0,t.jsxs)("button",{onClick:m,disabled:!r,className:`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg shadow-md transition-all duration-200 ${r?"bg-gradient-to-r from-green-500 to-emerald-600 text-white hover:from-green-600 hover:to-emerald-700 hover:shadow-lg cursor-pointer":"bg-gray-300 text-gray-500 cursor-not-allowed"}`,children:[(0,t.jsx)(f,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-medium",children:"保存"})]})]})})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center flex-1",children:[(0,t.jsx)("div",{className:"w-20 h-20 bg-gradient-to-br from-gray-100 to-gray-200 rounded-full flex items-center justify-center mb-4",children:(0,t.jsx)(n,{className:"w-10 h-10 text-gray-400"})}),(0,t.jsx)("p",{className:"text-sm text-gray-600 font-medium",children:"プロパティを選択してください"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"左側のツリーから項目を選択"})]})]})}let $=o("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),P=o("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),S=o("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),T=o("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);class O{static flattenConfig(e,t=""){let a={};for(let r in e){let s=t?`${t}:${r}`:r,l=e[r];l&&"object"==typeof l?Array.isArray(l)?l.some(e=>e&&"object"==typeof e&&!Array.isArray(e))?l.forEach((e,t)=>{e&&"object"==typeof e&&!Array.isArray(e)&&Object.assign(a,this.flattenConfig(e,`${s}[${t}]`))}):a[s]=l:Object.assign(a,this.flattenConfig(l,s)):a[s]=l}return a}static getAllPropertyPaths(e,t=""){let a=[];for(let r in e){let s=t?`${t}:${r}`:r,l=e[r];a.push(s),l&&"object"==typeof l&&(Array.isArray(l)?l.some(e=>e&&"object"==typeof e&&!Array.isArray(e))&&l.forEach((e,t)=>{if(e&&"object"==typeof e&&!Array.isArray(e)){let r=`${s}[${t}]`;a.push(r),a.push(...this.getAllPropertyPaths(e,r))}}):a.push(...this.getAllPropertyPaths(l,s)))}return a}static buildTree(e,t=""){let a=[];for(let r in e){let s=t?`${t}:${r}`:r,l=e[r];if(l&&"object"==typeof l)if(Array.isArray(l))if(l.some(e=>e&&"object"==typeof e&&!Array.isArray(e))){let e=[];l.forEach((t,a)=>{t&&"object"==typeof t&&!Array.isArray(t)&&e.push({key:`[${a}]`,fullPath:`${s}[${a}]`,value:t,children:this.buildTree(t,`${s}[${a}]`),hasDocumentation:!1,type:"object"})}),a.push({key:r,fullPath:s,value:l,children:e.length>0?e:void 0,hasDocumentation:!1,type:"array"})}else a.push({key:r,fullPath:s,value:l,hasDocumentation:!1,type:"array"});else a.push({key:r,fullPath:s,value:l,children:this.buildTree(l,s),hasDocumentation:!1,type:"object"});else a.push({key:r,fullPath:s,value:l,hasDocumentation:!1,type:typeof l})}return a}}function D(e){return e.replace(/\[\d+\]/g,"[*]")}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t,a){let r=e;return a&&(r=function(e,t,a){let r=[...t].sort((e,t)=>t.basePath.length-e.basePath.length),s=e,l=!0;for(;l;)for(let e of(l=!1,r)){let t=e.basePath;if(t.includes("[*]")){let e=function(e,t,a){let r=t.split(":"),s=[],l=[];for(let e of r)if(e.endsWith("[*]")){let t=e.slice(0,-3);s.push(`${A(t)}:([^:]+)`),l.push(t),l.push("$capture")}else s.push(A(e)),l.push(e);let i=RegExp(`^(${s.join(":")})(:(.+))?$`),o=e.match(i);if(!o)return e;let n=[];for(let e=1;e<o.length;e++)if(o[e]&&!o[e].startsWith(":")&&e>0){let t=o[e];t&&!t.includes(":")&&t!==o[0]&&n.push(t)}let c=e.split(":"),d=t.split(":"),h=[],u=0,m="";for(let t of d)if(t.endsWith("[*]")){let a=t.slice(0,-3);if(c[u]!==a)return e;m=m?`${m}:${a}`:a,++u<c.length&&(h.push({key:c[u],configPath:m}),u++)}else{if(c[u]!==t)return e;m=m?`${m}:${t}`:t,u++}let f=u<c.length?c.slice(u).join(":"):"",p="",g="";for(let t of d)if(t.endsWith("[*]")){let r=t.slice(0,-3);g=g?`${g}:${r}`:r;let s=h.find(e=>e.configPath===g);if(s){let t=E(a,g);if(!t||"object"!=typeof t||Array.isArray(t))return e;{let a=s.key.match(/^([^\[]+)(\[.+)?$/),l=a?a[1]:s.key,i=a&&a[2]||"",o=Object.keys(t).indexOf(l);if(!(o>=0))return e;p=p?`${p}:${r}[${o}]${i}`:`${r}[${o}]${i}`,g=`${g}:${l}`}}}else p=p?`${p}:${t}`:t,g=g?`${g}:${t}`:t;if(f){let e=f.split(":"),t=e[0],r=E(a,g);if(r&&"object"==typeof r&&!Array.isArray(r)){let a=t.match(/^([^\[]+)(\[.+)?$/);if(a){let t=a[1],s=a[2]||"",l=Object.keys(r).indexOf(t);l>=0?(p=`${p}[${l}]${s}`,e.length>1&&(p=`${p}:${e.slice(1).join(":")}`)):p=`${p}:${f}`}else p=`${p}:${f}`}else p=`${p}:${f}`}return p}(s,t,a);if(e!==s){s=e,l=!0;break}continue}let i=function e(t,a,r){for(let s of a)if(t.startsWith(s.basePath+":")&&s.basePath!==t){let l=t.substring(s.basePath.length+1).split(":"),i=l[0],o=E(r,s.basePath);if(o&&"object"==typeof o&&!Array.isArray(o)){let t=Object.keys(o).indexOf(i);if(t>=0){let i=l.slice(1).join(":");return e(`${s.basePath}[${t}]${i?":"+i:""}`,a,r)}}}return t}(t,r,a);if(s.startsWith(i+":")){let e=s.substring(i.length+1).split(":"),r=e[0];if(r.match(/^\[\d+\]/))continue;let o=r.match(/^([^\[]+)(\[.+)?$/);if(!o)continue;let n=o[1],c=o[2]||"",d=E(a,t);if(d&&"object"==typeof d&&!Array.isArray(d)){let t=Object.keys(d).indexOf(n);if(t>=0){let a=e.slice(1).join(":");s=`${i}[${t}]${c}${a?":"+a:""}`,l=!0;break}}}}return s}(r,t,a)),D(r)}function E(e,t){if(!t||!e)return e;let a=t.split(/(?=\[)|:/),r=e;for(let e of a){if(null==r)return;if(e.startsWith("[")&&e.endsWith("]")){let t=parseInt(e.slice(1,-1),10);if(!Array.isArray(r))return;r=r[t]}else if(e&&"object"==typeof r&&e in r)r=r[e];else if(e)return}return r}function z(e,t,a,r){let s=M(e,a,r);if(s!==e){let e=t[s];if(e&&e.isTemplate)return e}for(let[a,r]of Object.entries(t))if(r.isTemplate&&function(e,t){let a=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,"\\[\\d+\\]");return RegExp(`^${a}$`).test(e)}(e,a))return r}function F(e,t,a){let r=[...t].sort((e,t)=>e.basePath.length-t.basePath.length),s=e,l=!0;for(;l;)for(let e of(l=!1,r)){let t=e.basePath;if(t.includes("[*]")){let e=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,"\\[\\*\\]"),a=RegExp(`^(${e})(:(.+))?$`),r=s.match(a);if(r){let e=r[1];r[2];let t=r[3];if(t){let a=t.split(":"),r=a[0];if("[*]"===r||r.startsWith("["))continue;let i=a.slice(1).join(":");s=`${e}[*]${i?":"+i:""}`,l=!0;break}}}else if(s.startsWith(t+":")){let e=s.substring(t.length+1).split(":"),r=e[0];if("[*]"===r||r.startsWith("["))continue;let i=E(a,t);if(i&&"object"==typeof i&&!Array.isArray(i)&&Object.keys(i).includes(r)){let a=e.slice(1).join(":");s=`${t}[*]${a?":"+a:""}`,l=!0;break}}}return s}function W({config:e,docs:r,onSelectProperty:s,onEditProperty:l,selectedPath:i,associativeArrays:o=[]}){let[c,d]=(0,a.useState)(new Set),h=e=>!!(e.tags&&e.tags.length>0||e.fields&&Object.values(e.fields).some(e=>e&&""!==e.trim()))||!1,u=(a,m=0)=>{let f=(t=>{let a=(e=>{for(let t of Object.values(r.properties))if(t.isTemplate&&t.sourceTemplatePath===e)return!0;return!1})(t),s=r.properties[t],l=!!s&&h(s),i=z(t,r.properties,o,e),n=!!i&&h(i);if(s){if(l){let e=n&&i!==s&&!a;return{hasDirectDoc:!0,hasDoc:!0,isTemplate:s.isTemplate||!1,isInherited:e,isTemplateSource:a}}if(s.isTemplate)return{hasDirectDoc:!1,hasDoc:!1,isTemplate:!0,isInherited:!1,isTemplateSource:a}}return n?{hasDirectDoc:!1,hasDoc:!0,isTemplate:!1,isInherited:!a,isTemplateSource:a}:{hasDirectDoc:!1,hasDoc:!1,isTemplate:!1,isInherited:!1,isTemplateSource:a}})(a.fullPath),p=c.has(a.fullPath),g=i===a.fullPath,x=(t=>{if(o.some(e=>e.basePath===t))return!0;let a=F(t,o,e);return!!(a!==t&&o.some(e=>e.basePath===a))||o.some(e=>{if(!e.basePath.includes("[*]"))return!1;let a=e.basePath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,":[^:]+");return RegExp(`^${a}$`).test(t)})})(a.fullPath);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{paddingLeft:`${20*m}px`},className:`group flex items-center gap-2 py-2 px-3 cursor-pointer rounded-lg transition-all duration-150 ${g?"bg-gradient-to-r from-blue-100 to-indigo-100 border-l-4 border-blue-500 shadow-sm":"hover:bg-gradient-to-r hover:from-gray-50 hover:to-gray-100"}`,children:[a.children&&a.children.length>0?(0,t.jsx)("button",{onClick:()=>{var e;let t;return e=a.fullPath,void((t=new Set(c)).has(e)?t.delete(e):t.add(e),d(t))},className:"p-1 hover:bg-blue-100 rounded-md transition-colors",children:p?(0,t.jsx)(P,{className:"w-4 h-4 text-blue-600"}):(0,t.jsx)($,{className:"w-4 h-4 text-gray-600"})}):(0,t.jsx)("div",{className:"w-6"}),(0,t.jsxs)("div",{onClick:()=>s(a.fullPath),className:"flex-1 flex items-center gap-2",children:[(0,t.jsx)("span",{className:`${a.children?"font-bold text-gray-800":"font-medium text-gray-700"}`,children:a.key}),!a.children&&(0,t.jsxs)("span",{className:"text-sm text-gray-500 truncate max-w-[200px]",children:[": ",JSON.stringify(a.value)]}),f.hasDirectDoc&&!f.isTemplate&&!f.isTemplateSource&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-green-100 border border-green-300 rounded-full",children:[(0,t.jsx)(n,{className:"w-3 h-3 text-green-600"}),(0,t.jsx)("span",{className:"text-xs text-green-700 font-medium",children:"Doc"})]}),(f.isTemplate||f.isTemplateSource)&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-purple-100 border border-purple-300 rounded-full",children:[(0,t.jsx)(S,{className:"w-3 h-3 text-purple-600"}),(0,t.jsx)("span",{className:"text-xs text-purple-700 font-medium",children:"Template"})]}),f.isInherited&&!f.isTemplateSource&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-blue-100 border border-blue-300 rounded-full",children:[(0,t.jsx)(n,{className:"w-3 h-3 text-blue-600"}),(0,t.jsx)("span",{className:"text-xs text-blue-700 font-medium",children:"Inherited"})]}),x&&(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 bg-amber-100 border border-amber-300 rounded-full",children:[(0,t.jsx)(T,{className:"w-3 h-3 text-amber-600"}),(0,t.jsx)("span",{className:"text-xs text-amber-700 font-medium",children:"連想配列"})]})]}),!a.children&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),l(a.fullPath)},className:"p-1 hover:bg-gray-200 rounded",title:"編集"})]}),a.children&&p&&(0,t.jsx)("div",{children:a.children.map(e=>u(e,m+1))})]},a.fullPath)},m=O.buildTree(e);return(0,t.jsxs)("div",{className:"h-full flex flex-col border-2 border-gray-100 rounded-xl bg-white shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 border-b-2 border-gray-100 bg-gradient-to-r from-gray-50 to-gray-100",children:[(0,t.jsx)("button",{onClick:()=>{var t;let a,r;d(new Set((t=O.buildTree(e),a=[],r=e=>{e.children&&e.children.length>0&&(a.push(e.fullPath),e.children.forEach(r))},t.forEach(r),a)))},className:"px-4 py-1.5 text-sm font-medium bg-white border-2 border-blue-200 text-blue-600 rounded-lg hover:bg-blue-50 hover:border-blue-300 transition-all duration-200 shadow-sm hover:shadow-md",children:"すべて展開"}),(0,t.jsx)("button",{onClick:()=>{d(new Set)},className:"px-4 py-1.5 text-sm font-medium bg-white border-2 border-gray-200 text-gray-600 rounded-lg hover:bg-gray-50 hover:border-gray-300 transition-all duration-200 shadow-sm hover:shadow-md",children:"すべて閉じる"})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-3",children:m.map(e=>u(e))})]})}let I=o("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),J=o("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),L=o("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);function H({isOpen:e,currentPath:r,onSelect:s,onClose:l,multiSelect:i=!1,filterJsonOnly:o=!1,folderSelectMode:n=!1,title:c}){let[d,h]=(0,a.useState)(r),[u,m]=(0,a.useState)([]),[f,p]=(0,a.useState)(!1),[g,x]=(0,a.useState)([]);(0,a.useEffect)(()=>{e&&(h(r),x([]))},[e,r]),(0,a.useEffect)(()=>{e&&b(d)},[e,d]);let b=async e=>{p(!0);try{let t=await fetch("/api/files/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({directory:e})}),a=await t.json();if(a.success){let e=a.data.items;n?e=a.data.items.filter(e=>"directory"===e.type):o&&(e=a.data.items.filter(e=>"directory"===e.type||".json"===e.extension)),m(e)}else console.error("API returned error:",a.error)}catch(e){console.error("Failed to load directory:",e)}finally{p(!1)}},y=()=>d.replace(/\\/g,"/").toLowerCase()!==r.replace(/\\/g,"/").toLowerCase(),j=()=>{x([]),l()};return e?(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:c||(n?"フォルダを選択":"ファイルを選択")}),(0,t.jsx)("button",{onClick:j,className:"text-gray-500 hover:text-gray-700",children:"✕"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4 border-b bg-gray-50",children:[(0,t.jsx)("button",{onClick:()=>{if(!y())return;let e=d.replace(/\\/g,"/"),t=e.split("/").filter(e=>e);if(t.length>1){let a,s=t.slice(0,-1),l=(a=1===s.length&&s[0].includes(":")?s[0]+"/":s[0].includes(":")?s[0]+"/"+s.slice(1).join("/"):e.startsWith("/")?"/"+s.join("/"):s.join("/")).replace(/\\/g,"/").toLowerCase(),i=r.replace(/\\/g,"/").toLowerCase();(l.startsWith(i)||l===i)&&h(a)}else if(1===t.length&&!t[0].includes(":")){if("."===r.replace(/\\/g,"/").toLowerCase())return;h(".")}},disabled:!y(),className:`p-2 rounded flex-shrink-0 ${y()?"hover:bg-gray-200":"opacity-50 cursor-not-allowed"}`,title:y()?"上のディレクトリへ":"ルートディレクトリです",children:(0,t.jsx)(L,{className:"w-5 h-5"})}),(0,t.jsxs)("span",{className:"text-sm text-gray-600 flex-1 truncate",children:["パス: ",d]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-4",children:f?(0,t.jsx)("div",{className:"text-center text-gray-500",children:"読み込み中..."}):(0,t.jsx)("div",{className:"space-y-1",children:u.map(e=>{let a=g.includes(e.path);return(0,t.jsxs)("div",{onClick:()=>{"directory"===e.type?n?x([e.path]):h(e.path):i?x(t=>t.includes(e.path)?t.filter(t=>t!==e.path):[...t,e.path]):x([e.path])},onDoubleClick:()=>{"directory"===e.type&&(h(e.path),x([]))},className:`flex items-center gap-2 p-2 rounded cursor-pointer hover:bg-gray-100 ${a?"bg-blue-100":""}`,children:["directory"===e.type?(0,t.jsx)(I,{className:"w-5 h-5 text-blue-500"}):(0,t.jsx)(J,{className:"w-5 h-5 text-green-500"}),(0,t.jsx)("span",{className:"text-sm",children:e.name}),a&&(i||n)&&(0,t.jsx)("span",{className:"ml-auto text-blue-500",children:"✓"})]},e.path)})})}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-t",children:[n?(0,t.jsx)("div",{className:"text-sm text-gray-600",children:g.length>0?`選択中: ${g[0].split(/[/\\]/).pop()}`:`現在のフォルダ: ${d.split(/[/\\]/).pop()||d}`}):i&&g.length>0?(0,t.jsxs)("div",{className:"text-sm text-gray-600",children:[g.length,"件選択中"]}):null,(0,t.jsxs)("div",{className:"flex items-center gap-2 ml-auto",children:[(0,t.jsx)("button",{onClick:j,className:"px-4 py-2 text-gray-600 hover:bg-gray-100 rounded",children:"キャンセル"}),(0,t.jsx)("button",{onClick:()=>{n?(s(g.length>0?g:[d]),x([]),l()):g.length>0&&(s(g),x([]),l())},disabled:!n&&0===g.length,className:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 disabled:bg-gray-300 disabled:cursor-not-allowed",children:"選択"})]})]})]})}):null}let R={format:"html",autoExport:!0,fileName:"config-doc",outputDir:".config_doc/output"};function V({isOpen:e,onClose:r,onExport:s,currentSettings:l,rootPath:i="."}){let[o,n]=(0,a.useState)(l||R),[d,h]=(0,a.useState)(!1),[m,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>{l&&n(l)},[l]);let p="markdown"===o.format||"markdown-table"===o.format,g=(0,a.useMemo)(()=>{let e=i.replace(/\//g,"\\"),t=o.outputDir?.trim()||"",a=t?t.replace(/\//g,"\\"):"",r=a?`${e}\\${a}`:e;if("markdown"===o.format||"markdown-table"===o.format)return`${r}\\{設定ファイル名}.md`;let s=o.fileName||"config-doc";return`${r}\\${s}.html`},[o.format,o.fileName,o.outputDir,i]);if(!e)return null;let x=async()=>{h(!0);try{await s(o),r()}catch(e){console.error("Export failed:",e)}finally{h(!1)}};return(0,t.jsxs)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:[(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-xl max-w-md w-full mx-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-6 border-b",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-gray-800",children:"エクスポート設定"}),(0,t.jsx)("button",{onClick:r,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,t.jsx)(u,{className:"w-5 h-5"})})]}),(0,t.jsxs)("div",{className:"p-6 space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"出力先フォルダ"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{type:"text",value:o.outputDir||"",onChange:e=>n({...o,outputDir:e.target.value}),className:"flex-1 px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"(空欄でプロジェクトルート)"}),(0,t.jsx)("button",{type:"button",onClick:()=>f(!0),className:"px-3 py-2 border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500",title:"フォルダを選択",children:(0,t.jsx)(I,{className:"w-5 h-5 text-gray-500"})})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"相対パスを入力またはフォルダを選択(空欄でプロジェクトルート、チーム共有設定)"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"出力形式"}),(0,t.jsxs)("select",{value:o.format,onChange:e=>n({...o,format:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",children:[(0,t.jsx)("option",{value:"html",children:"HTML"}),(0,t.jsx)("option",{value:"markdown",children:"Markdown"}),(0,t.jsx)("option",{value:"markdown-table",children:"Markdown (テーブル形式)"})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"html"===o.format?"スタイル付きのHTMLファイルとして出力します":"markdown-table"===o.format?"設定ファイルごとにMarkdownテーブル形式で出力します":"設定ファイルごとに個別のMarkdownファイルとして出力します"})]}),!p&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"ファイル名"}),(0,t.jsx)("input",{type:"text",value:o.fileName??"",onChange:e=>n({...o,fileName:e.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"config-doc"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"拡張子なしのファイル名を指定します(空欄でconfig-doc、チーム共有設定)"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"出力先パス"}),(0,t.jsx)("div",{className:"px-3 py-2 bg-gray-50 border border-gray-300 rounded-md text-sm text-gray-700 font-mono break-all",children:g})]}),(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("div",{className:"flex items-center h-5",children:(0,t.jsx)("input",{id:"auto-export",type:"checkbox",checked:o.autoExport,onChange:e=>n({...o,autoExport:e.target.checked}),className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500"})}),(0,t.jsxs)("div",{className:"ml-3",children:[(0,t.jsx)("label",{htmlFor:"auto-export",className:"text-sm font-medium text-gray-700 cursor-pointer",children:"保存時に自動エクスポート"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"ドキュメントを保存したときに自動的にHTMLファイルを更新します"})]})]}),o.lastExportedAt&&(0,t.jsx)("div",{className:"pt-4 border-t",children:(0,t.jsxs)("p",{className:"text-xs text-gray-500",children:["最終エクスポート: ",new Date(o.lastExportedAt).toLocaleString("ja-JP")]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-3 p-6 border-t bg-gray-50 rounded-b-lg",children:[(0,t.jsx)("button",{onClick:r,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:"キャンセル"}),(0,t.jsxs)("button",{onClick:x,disabled:d,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,t.jsx)(c,{className:"w-4 h-4"}),d?"エクスポート中...":"エクスポート"]})]})]}),(0,t.jsx)(H,{isOpen:m,currentPath:i,onSelect:e=>{if(e.length>0){let t=e[0],a=i.replace(/\\/g,"/"),r=t.replace(/\\/g,"/"),s=r;r.startsWith(a)&&(s=r.slice(a.length)).startsWith("/")&&(s=s.slice(1)),s||(s="."),n({...o,outputDir:s})}f(!1)},onClose:()=>f(!1),folderSelectMode:!0,title:"出力先フォルダを選択"})]})}let B=o("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),q=o("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),U=o("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);function Z({message:e,type:r,duration:s=3e3,onClose:l}){let[i,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{setTimeout(()=>o(!0),10);let e=setTimeout(()=>{o(!1),setTimeout(l,300)},s);return()=>clearTimeout(e)},[s,l]);let n={success:(0,t.jsx)(B,{className:"w-5 h-5 text-green-500"}),error:(0,t.jsx)(q,{className:"w-5 h-5 text-red-500"}),warning:(0,t.jsx)(U,{className:"w-5 h-5 text-yellow-500"})};return(0,t.jsx)("div",{className:`fixed bottom-4 left-4 z-50 transition-all duration-300 ${i?"opacity-100 translate-y-0":"opacity-0 translate-y-2"}`,children:(0,t.jsxs)("div",{className:`flex items-center gap-3 px-4 py-3 rounded-lg shadow-lg border ${{success:"bg-green-50 border-green-200",error:"bg-red-50 border-red-200",warning:"bg-yellow-50 border-yellow-200"}[r]} min-w-[300px] max-w-[500px]`,children:[n[r],(0,t.jsx)("span",{className:"flex-1 text-sm text-gray-800",children:e}),(0,t.jsx)("button",{onClick:()=>{o(!1),setTimeout(l,300)},className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,t.jsx)(u,{className:"w-4 h-4"})})]})})}function K({toasts:e,onRemove:a}){return(0,t.jsx)(t.Fragment,{children:e.map((e,r)=>(0,t.jsx)("div",{style:{bottom:`${16+80*r}px`},className:"fixed left-4 z-50",children:(0,t.jsx)(Z,{message:e.message,type:e.type,onClose:()=>a(e.id)})},e.id))})}let _={説明:""};function G(e,t){return e.length!==t.length||e.some((e,a)=>e!==t[a])}function Q(){let[e,r]=(0,a.useState)(!1),[s,l]=(0,a.useState)(!1),{loadedConfigs:i,activeConfigIndex:o,activeConfig:c,selectedPath:h,selectedNodeType:u,editingDoc:f,originalDoc:p,hasUnsavedChanges:g,exportSettings:x,availableTags:b,projectFields:y,associativeArrays:j,toasts:v,rootPath:N,setActiveConfigIndex:w,setEditingDoc:k,setHasUnsavedChanges:$,removeToast:P,handleSelectConfigFiles:S,handleRemoveConfig:T,handleReorderConfigs:O,handleSelectProperty:A,handleSaveProperty:I,handleExport:J,handleAvailableTagsChange:L,handleProjectFieldsChange:R,handleToggleAssociativeArray:B,checkForChanges:q,resetSelection:U,isAssociativeArray:Z,isDescendantOfAssociativeArray:Q,clipboard:X,handleCopyProperty:Y,handlePasteProperty:ee,handleDeleteProperty:et}=function(){let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(0),[l,i]=(0,a.useState)(""),[o,n]=(0,a.useState)(!1),[c,d]=(0,a.useState)("."),[h,u]=(0,a.useState)(null),[m,f]=(0,a.useState)(null),[p,g]=(0,a.useState)(!1),[x,b]=(0,a.useState)(),[y,j]=(0,a.useState)(["required","nullable","string","number","boolean"]),[v,N]=(0,a.useState)(_),[w,k]=(0,a.useState)([]),[C,$]=(0,a.useState)(void 0),[P,S]=(0,a.useState)([]),[T,O]=(0,a.useState)(null),A=e[r],W=(0,a.useCallback)((e,t="success")=>{let a=Date.now().toString();S(r=>[...r,{id:a,message:e,type:t}])},[]),I=(0,a.useCallback)(e=>{S(t=>t.filter(t=>t.id!==e))},[]),J=(0,a.useCallback)((e,t)=>{if(!e||!t)return!1;let a=e.tags||[];if(G(t.tags||[],a))return!0;let r=e.fields||{};return!!function(e,t){for(let a of new Set([...Object.keys(e),...Object.keys(t)]))if((e[a]||"")!==(t[a]||""))return!0;return!1}(t.fields||{},r)||(e.isTemplate||!1)!==(t.isTemplate||!1)},[]),L=(0,a.useCallback)((e,t)=>{let a=e.replace(/\\/g,"/"),r=t.replace(/\\/g,"/");if(!a.match(/^[a-zA-Z]:\//)&&!a.startsWith("/"))return e;if(a.startsWith(r)){let e=a.substring(r.length);return e.startsWith("/")?e.substring(1):e}return e},[]),H=(0,a.useCallback)(e=>{let t={};for(let a of Object.keys(v))t[a]=e.fields[a]||"";return{...e,fields:t}},[v]),R=(0,a.useCallback)(async e=>{try{let a=await fetch("/api/config/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:e})}),r=await a.json();r.success&&t(t=>t.some(t=>t.filePath===e)?t:[...t,{filePath:e,configData:r.data.configData,docs:r.data.docs}])}catch(e){console.error("Failed to load config file:",e)}},[]),V=(0,a.useCallback)(async e=>{try{let t=await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePaths:e})}),a=await t.json();a.deletedDocsFiles&&a.deletedDocsFiles.length>0&&W(`${a.deletedDocsFiles.length}件のドキュメントファイルを削除しました`,"warning")}catch(e){console.error("Failed to update metadata:",e)}},[W]),B=(0,a.useCallback)(async()=>{if(x)try{if((await fetch("/api/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:x.format,fileName:x.fileName,outputDir:x.outputDir})})).ok){let e={...x,lastExportedAt:new Date().toISOString()};b(e),await fetch("/api/export/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:e})})}}catch(e){console.error("Auto export failed:",e)}},[x]);(0,a.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/project"),t=await e.json();if(t.success&&(d(t.data.rootPath),t.data.hasConfigDoc)){let e=await fetch("/api/config/metadata"),t=await e.json();if(t.success&&t.data?.configFiles)for(let e of t.data.configFiles)await R(e.filePath);t.success&&t.data?.availableTags&&j(t.data.availableTags),t.success&&t.data?.fields&&N(t.data.fields),t.success&&t.data?.associativeArrays&&k(t.data.associativeArrays)}let a=await fetch("/api/export/settings"),r=await a.json();r.success&&b(r.data)}catch(e){console.error("Failed to load saved configs:",e)}finally{n(!0)}})()},[R]);let q=(0,a.useCallback)(async a=>{let r=[];for(let t of a){let a=L(t,c);if(!e.some(e=>e.filePath===a))try{let e=await fetch("/api/config/load",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:t})}),s=await e.json();s.success?r.push({filePath:a,configData:s.data.configData,docs:s.data.docs}):W(`設定ファイルの読み込みに失敗しました (${t}): ${s.error}`,"error")}catch(e){console.error("Failed to load config:",e),W(`設定ファイルの読み込み中にエラーが発生しました: ${t}`,"error")}}r.length>0&&t(e=>{let t=[...e,...r];return V(t.map(e=>e.filePath)),t})},[e,c,W,L,V]),U=(0,a.useCallback)(async a=>{let l=e[a];(!l.docs||!(Object.keys(l.docs.properties).length>0)||confirm("既に説明文が設定されていますが、削除してよろしいですか?"))&&(t(e=>{let t=e.filter((e,t)=>t!==a);return V(t.map(e=>e.filePath)),t}),r>=a&&r>0&&s(r-1),i(""),u(null),g(!1))},[r,e,V]),Z=(0,a.useCallback)((e,a)=>{t(e),s(a),V(e.map(e=>e.filePath))},[V]),K=(0,a.useCallback)(e=>{if(A){for(let t of Object.values(A.docs.properties))if(t.isTemplate&&t.sourceTemplatePath===e)return t}},[A]),Q=(0,a.useCallback)(e=>{if(p&&!confirm("保存されていない変更があります。破棄しますか?"))return;i(e);let t=A?.docs.properties[e];if(A?.configData){let t=E(A.configData,e);null==t?$(void 0):Array.isArray(t)?$("array"):"object"==typeof t?$("object"):"string"==typeof t?$("string"):"number"==typeof t?$("number"):"boolean"==typeof t?$("boolean"):$(void 0)}let a=K(e),r=!!a,s=A?.configData?z(e,A.docs.properties,w,A.configData):void 0;if(t){let e={...t,tags:t.tags||[],isTemplate:!!r||t.isTemplate};if(s&&!r&&((!e.tags||0===e.tags.length)&&s.tags&&s.tags.length>0&&(e={...e,tags:[...s.tags]}),s.fields)){let t={...e.fields||{}};for(let[e,a]of Object.entries(s.fields))(!t[e]||""===t[e].trim())&&a&&""!==a.trim()&&(t[e]=a);e={...e,fields:t}}let a=H(e);u(a),f(a)}else if(a){let t=H({...a,path:e,tags:a.tags||[],isTemplate:!0});u(t),f(t)}else if(s){let t=H({path:e,tags:s.tags?[...s.tags]:[],fields:s.fields?{...s.fields}:{...v},modifiedAt:new Date().toISOString(),isTemplate:!1});u(t),f(t)}else{let t={path:e,tags:[],fields:{...v},modifiedAt:new Date().toISOString()};u(t),f(t)}g(!1)},[A,w,K,p,H,v]),X=(0,a.useCallback)(async()=>{if(h&&A)try{let e={...h,modifiedAt:new Date().toISOString()},a=await fetch("/api/config/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:A.filePath,propertyPath:l,propertyDoc:e,associativeArrays:w,configData:A.configData})}),s=await a.json();s.success?(t(t=>t.map((t,a)=>{if(a!==r)return t;let s={...t.docs.properties};if(e.isTemplate){let a;a=w.length>0&&t.configData?M(l,w,t.configData):D(l);let r={...e,path:a,sourceTemplatePath:l};s[a]=r,delete s[l]}else{for(let[e,t]of Object.entries(s))if(t.isTemplate&&t.sourceTemplatePath===l){delete s[e];break}s[l]=e}return{...t,docs:{...t.docs,properties:s}}})),u(e),f(e),g(!1),W("保存しました"),x?.autoExport&&await B()):W("保存に失敗しました: "+s.error,"error")}catch(e){console.error("Failed to save:",e),W("保存中にエラーが発生しました","error")}},[A,r,h,x?.autoExport,B,l,W]),Y=(0,a.useCallback)(async e=>{try{let t=await fetch("/api/export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:e.format,fileName:e.fileName,outputDir:e.outputDir})}),a=await t.json();if(a.success){let t={...e,lastExportedAt:new Date().toISOString()};b(t),await fetch("/api/export/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:t})});let r=a.outputPaths?a.outputPaths[0]?.replace(/[/\\][^/\\]+$/,"")||e.outputDir||".":a.outputPath;W(`エクスポートしました: ${r}`)}else W("エクスポートに失敗しました: "+a.error,"error")}catch(e){console.error("Export failed:",e),W("エクスポート中にエラーが発生しました","error")}},[W]),ee=(0,a.useCallback)(async(a,r)=>{let s=y.filter(e=>!a.includes(e));j(a),await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({availableTags:a})});let l=s.length>0,i=y.some((e,t)=>e!==a[t])||y.length!==a.length,o=r&&Object.keys(r).length>0;if(l||i||o)for(let l of e){let e=!1,i={...l.docs.properties};for(let[t,l]of Object.entries(i))if(l.tags&&l.tags.length>0){let o=function(e,t){return[...e].sort((e,a)=>{let r=t.indexOf(e),s=t.indexOf(a);return -1!==r&&-1!==s?r-s:-1===r?1:-1===s?-1:0})}(l.tags.map(e=>r&&r[e]?r[e]:e).filter(e=>!s.includes(e)),a);G(l.tags,o)&&(i[t]={...l,tags:o},e=!0)}e&&(await fetch("/api/config/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:l.filePath,properties:i})}),t(e=>e.map(e=>e.filePath===l.filePath?{...e,docs:{...e.docs,properties:i}}:e)))}},[y,e]),et=(0,a.useCallback)(async(a,r)=>{let s=Object.keys(v),l=Object.keys(a),i=s.filter(e=>!l.includes(e)),o=r&&Object.keys(r).length>0;for(let s of(N(a),await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:a})}),e)){let e=!1,a={...s.docs.properties};for(let[t,s]of Object.entries(a))if(s.fields){let n=function(e,t,a){let r={},s={};if(a)for(let[e,t]of Object.entries(a))s[t]=e;for(let a of t){let t=s[a]||a;r[a]=e[t]||""}return r}(s.fields,l,r),c=Object.keys(s.fields),d=c.some((e,t)=>e!==l[t]),h=i.some(e=>e in s.fields);(d||h||o||c.length!==l.length)&&(a[t]={...s,fields:n},e=!0)}e&&(await fetch("/api/config/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:s.filePath,properties:a})}),t(e=>e.map(e=>e.filePath===s.filePath?{...e,docs:{...e.docs,properties:a}}:e)))}},[e,v]),ea=(0,a.useCallback)(()=>{i(""),u(null),g(!1),$(void 0)},[]),er=(0,a.useCallback)(()=>{h&&(O({tags:[...h.tags||[]],fields:{...h.fields||{}}}),W("プロパティ詳細をコピーしました"))},[h,W]),es=(0,a.useCallback)(()=>{if(!T||!h)return;let e=T.tags.filter(e=>y.includes(e)),t={};for(let e of Object.keys(v))t[e]=T.fields[e]||"";let a={...h,tags:e,fields:t};u(a),g(J(a,m)),W("プロパティ詳細を貼り付けました")},[T,h,y,v,m,J,W]),el=(0,a.useCallback)(async()=>{if(h&&A&&l&&confirm("このプロパティの詳細を削除しますか?"))try{let e=await fetch("/api/config/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({configFilePath:A.filePath,propertyPath:l})}),a=await e.json();if(a.success){t(e=>e.map((e,t)=>{if(t!==r)return e;let a={...e.docs.properties};for(let[e,t]of(delete a[l],Object.entries(a)))if(t.isTemplate&&t.sourceTemplatePath===l){delete a[e];break}return{...e,docs:{...e.docs,properties:a}}}));let e={path:l,tags:[],fields:{...v},modifiedAt:new Date().toISOString()};u(e),f(e),g(!1),W("プロパティ詳細を削除しました"),x?.autoExport&&await B()}else W("削除に失敗しました: "+a.error,"error")}catch(e){console.error("Failed to delete:",e),W("削除中にエラーが発生しました","error")}},[A,r,h,x?.autoExport,B,v,l,W]),ei=(0,a.useCallback)(e=>{if(w.some(t=>t.basePath===e))return!0;let t=F(e,w,A?.configData);return!!(t!==e&&w.some(e=>e.basePath===t))||w.some(t=>{if(!t.basePath.includes("[*]"))return!1;let a=t.basePath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\[\\\*\\\]/g,":[^:]+");return RegExp(`^${a}$`).test(e)})},[w,A?.configData]),eo=(0,a.useCallback)(e=>w.some(t=>e.startsWith(t.basePath+":")),[w]),en=(0,a.useCallback)(async(e,t)=>{let a;if(t){let t=F(e,w,A?.configData);a=[...w,{basePath:t,createdAt:new Date().toISOString()}]}else{let t=F(e,w,A?.configData),r=e+"[*]";a=w.filter(a=>!(a.basePath===e||a.basePath===t||a.basePath.startsWith(r+":")||a.basePath.startsWith(r)))}k(a);try{await fetch("/api/config/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({associativeArrays:a})}),W(t?"連想配列として登録しました":"連想配列登録を解除しました")}catch(e){console.error("Failed to save associative array mapping:",e),W("連想配列設定の保存に失敗しました","error")}},[w,A?.configData,W]);return{loadedConfigs:e,activeConfigIndex:r,activeConfig:A,selectedPath:l,selectedNodeType:C,editingDoc:h,originalDoc:m,hasUnsavedChanges:p,exportSettings:x,availableTags:y,projectFields:v,associativeArrays:w,toasts:P,rootPath:c,isInitialized:o,setActiveConfigIndex:s,setSelectedPath:i,setEditingDoc:u,setHasUnsavedChanges:g,showToast:W,removeToast:I,loadConfigFile:R,handleSelectConfigFiles:q,handleRemoveConfig:U,handleReorderConfigs:Z,handleSelectProperty:Q,handleSaveProperty:X,handleExport:Y,handleAvailableTagsChange:ee,handleProjectFieldsChange:et,handleToggleAssociativeArray:en,checkForChanges:J,resetSelection:ea,isAssociativeArray:ei,isDescendantOfAssociativeArray:eo,clipboard:T,handleCopyProperty:er,handlePasteProperty:es,handleDeleteProperty:el}}(),ea=!!(h&&c?.docs.properties[h]);return(0,t.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-indigo-50 to-purple-50",children:[(0,t.jsx)(d,{onExportClick:()=>l(!0)}),(0,t.jsxs)("main",{className:"container mx-auto px-6 py-8",children:[(0,t.jsx)(m,{loadedConfigs:i,activeConfigIndex:o,onTabClick:e=>{w(e),U()},onRemoveConfig:T,onAddFileClick:()=>r(!0),onReorder:O}),c&&(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{className:"bg-white/90 backdrop-blur-sm rounded-2xl shadow-xl border border-gray-100 p-6 flex flex-col max-h-[calc(100vh-190px)] hover:shadow-2xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-purple-500 to-purple-600 rounded-lg flex items-center justify-center",children:(0,t.jsx)(n,{className:"w-5 h-5 text-white"})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-gray-800",children:"JSON構造"})]}),(0,t.jsx)("div",{className:"overflow-y-auto flex-1",children:(0,t.jsx)(W,{config:c.configData,docs:c.docs,onSelectProperty:A,onEditProperty:A,selectedPath:h,associativeArrays:j})})]}),(0,t.jsx)(C,{selectedPath:h,editingDoc:f,hasUnsavedChanges:g,availableTags:b,projectFields:y,selectedNodeType:u,isAssociativeArray:Z(h),isDescendantOfAssociativeArray:Q(h),onEditingDocChange:e=>{k(e),$(q(e,p))},onAvailableTagsChange:L,onProjectFieldsChange:R,onSave:I,onToggleAssociativeArray:B,onCopy:Y,onPaste:ee,canPaste:null!==X,onDelete:et,hasExistingDoc:ea})]})]}),(0,t.jsx)(H,{isOpen:e,currentPath:N,multiSelect:!0,filterJsonOnly:!0,onSelect:e=>{S(e),r(!1)},onClose:()=>r(!1)}),(0,t.jsx)(V,{isOpen:s,onClose:()=>l(!1),onExport:J,currentSettings:x,rootPath:N}),(0,t.jsx)(K,{toasts:v,onRemove:P})]})}e.s(["default",()=>Q],31713)}]);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.8e0177b5.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.b97b3418.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.853070df.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_a71539c9-module__T19VSG__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_a71539c9-module__T19VSG__variable{--font-geist-sans:"Geist","Geist Fallback"}
|
|
2
|
-
@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.c1fdd6c2.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.799d8ef8.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.dbea232f.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_8d43a2aa-module__8Li5zG__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_8d43a2aa-module__8Li5zG__variable{--font-geist-mono:"Geist Mono","Geist Mono Fallback"}
|
|
3
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--color-red-50:#fef2f2;--color-red-200:#ffcaca;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-amber-50:#fffbeb;--color-amber-100:#fef3c6;--color-amber-200:#fee685;--color-amber-300:#ffd236;--color-amber-500:#f99c00;--color-amber-600:#dd7400;--color-amber-700:#b75000;--color-amber-800:#953d00;--color-yellow-50:#fefce8;--color-yellow-200:#fff085;--color-yellow-500:#edb200;--color-green-50:#f0fdf4;--color-green-100:#dcfce7;--color-green-200:#b9f8cf;--color-green-300:#7bf1a8;--color-green-500:#00c758;--color-green-600:#00a544;--color-green-700:#008138;--color-emerald-600:#009767;--color-emerald-700:#007956;--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bedbff;--color-blue-300:#90c5ff;--color-blue-400:#54a2ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-indigo-50:#eef2ff;--color-indigo-100:#e0e7ff;--color-indigo-500:#625fff;--color-indigo-600:#4f39f6;--color-purple-50:#faf5ff;--color-purple-100:#f3e8ff;--color-purple-200:#e9d5ff;--color-purple-300:#d9b3ff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-purple-700:#8200da;--color-purple-800:#6e11b0;--color-gray-50:#f9fafb;--color-gray-100:#f3f4f6;--color-gray-200:#e5e7eb;--color-gray-300:#d1d5dc;--color-gray-400:#99a1af;--color-gray-500:#6a7282;--color-gray-600:#4a5565;--color-gray-700:#364153;--color-gray-800:#1e2939;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-50:lab(96.5005% 4.18511 1.52329);--color-red-200:lab(86.017% 19.8815 7.75869);--color-red-300:lab(76.5514% 36.4219 15.5335);--color-red-400:lab(63.7053% 60.7449 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-amber-50:lab(98.6252% -.635982 8.42309);--color-amber-100:lab(95.916% -1.2165 23.111);--color-amber-200:lab(91.7203% -.505269 49.9084);--color-amber-300:lab(86.4156% 6.13147 78.3961);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-amber-600:lab(60.3514% 40.5624 87.1228);--color-amber-700:lab(47.2709% 42.9082 69.2966);--color-amber-800:lab(37.8823% 37.1699 52.2718);--color-yellow-50:lab(98.6846% -1.79058 9.77662);--color-yellow-200:lab(94.3433% -5.00426 52.9663);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-green-50:lab(98.1563% -5.60117 2.75913);--color-green-100:lab(96.186% -13.8464 6.52362);--color-green-200:lab(92.4222% -26.4702 12.9427);--color-green-300:lab(86.9953% -47.2691 25.0054);--color-green-500:lab(70.5521% -66.5147 45.8072);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-green-700:lab(47.0329% -47.0239 31.4788);--color-emerald-600:lab(55.0481% -49.9246 15.93);--color-emerald-700:lab(44.4871% -41.0396 11.0361);--color-blue-50:lab(96.492% -1.14647 -5.11479);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-200:lab(86.15% -4.04379 -21.0797);--color-blue-300:lab(77.5052% -6.4629 -36.42);--color-blue-400:lab(65.0361% -1.42062 -56.9803);--color-blue-500:lab(54.1736% 13.3368 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-blue-700:lab(36.9089% 35.0961 -85.6872);--color-indigo-50:lab(95.4818% .411302 -6.78529);--color-indigo-100:lab(91.6577% 1.04591 -12.7199);--color-indigo-500:lab(48.295% 38.3129 -81.9673);--color-indigo-600:lab(38.4009% 52.6132 -92.3857);--color-purple-50:lab(97.1626% 2.99937 -4.13398);--color-purple-100:lab(93.3333% 6.9744 -9.83434);--color-purple-200:lab(87.8405% 13.4282 -18.7159);--color-purple-300:lab(78.3298% 26.2195 -34.9499);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-purple-700:lab(36.1758% 69.8525 -80.0381);--color-purple-800:lab(30.6017% 56.7637 -64.4751);--color-gray-50:lab(98.2596% -.247031 -.706708);--color-gray-100:lab(96.1596% -.082314 -1.13575);--color-gray-200:lab(91.6229% -.159085 -2.26791);--color-gray-300:lab(85.1236% -.612259 -3.7138);--color-gray-400:lab(65.9269% -.832707 -8.17474);--color-gray-500:lab(47.7841% -.393212 -10.0268);--color-gray-600:lab(35.6337% -1.58697 -10.8425);--color-gray-700:lab(27.1134% -.956401 -12.3224);--color-gray-800:lab(16.1051% -1.18239 -11.7533)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.left-4{left:calc(var(--spacing)*4)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-full{height:100%}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(100vh-190px\)\]{max-height:calc(100vh - 190px)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\[200px\]{max-width:200px}.max-w-\[500px\]{max-width:500px}.max-w-md{max-width:var(--container-md)}.min-w-\[300px\]{min-width:300px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-b-lg{border-bottom-right-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-600{border-color:var(--color-blue-600)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-green-300{border-color:var(--color-green-300)}.border-purple-200{border-color:var(--color-purple-200)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.bg-white\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-50{--tw-gradient-from:var(--color-blue-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-100{--tw-gradient-from:var(--color-blue-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-50{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-100{--tw-gradient-from:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-green-500{--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-indigo-500{--tw-gradient-from:var(--color-indigo-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-indigo-50{--tw-gradient-via:var(--color-indigo-50);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-600{--tw-gradient-to:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-100{--tw-gradient-to:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-200{--tw-gradient-to:var(--color-gray-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-50{--tw-gradient-to:var(--color-indigo-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-100{--tw-gradient-to:var(--color-indigo-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-600{--tw-gradient-to:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-50{--tw-gradient-to:var(--color-purple-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-800{color:var(--color-purple-800)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-gradient-to-r:hover{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.hover\:from-blue-600:hover{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-gray-50:hover{--tw-gradient-from:var(--color-gray-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-green-600:hover{--tw-gradient-from:var(--color-green-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-blue-700:hover{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-emerald-700:hover{--tw-gradient-to:var(--color-emerald-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-gray-100:hover{--tw-gradient-to:var(--color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\:border-red-400:focus{border-color:var(--color-red-400)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-amber-500:focus{--tw-ring-color:var(--color-amber-500)}.focus\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\:ring-red-200:focus{--tw-ring-color:var(--color-red-200)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-300:disabled{background-color:var(--color-gray-300)}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}:root{--background:#fff;--foreground:#171717}@media (prefers-color-scheme:dark){:root{--background:#0a0a0a;--foreground:#ededed}}body{background:var(--background);color:var(--foreground);font-family:Arial,Helvetica,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
|