@kw-yeh/vibeflow 4.11.32 → 4.11.34
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/dist/vibeflow.mjs +506 -191
- package/dist/web/404/index.html +1 -1
- package/dist/web/404.html +1 -1
- package/dist/web/_next/static/chunks/{3927.4f1724c11c5f42a8.js → 3927.8202e4c7eeb07487.js} +1 -1
- package/dist/web/_next/static/chunks/6646-4e91d829d8130f2c.js +9 -0
- package/dist/web/_next/static/chunks/7045.7cf0eb88acb1ee65.js +1 -0
- package/dist/web/_next/static/chunks/7915.e23554d5280c643a.js +1 -0
- package/dist/web/_next/static/chunks/{8259.90c4d5a968aca55b.js → 8259.62f5c49f967282f1.js} +1 -1
- package/dist/web/_next/static/chunks/pages/{_app-6528e28fe89b0344.js → _app-8718d90c431152c1.js} +1 -1
- package/dist/web/_next/static/chunks/pages/home-0fe9adbbe738c60f.js +13 -0
- package/dist/web/_next/static/chunks/{webpack-a3102c3e2504881b.js → webpack-9dc72759edb7420f.js} +1 -1
- package/dist/web/_next/static/css/1b8cc89c93b78db0.css +2 -0
- package/dist/web/_next/static/{7sUchVzedIXEiwH9u5qkP → iybQktKL4OxAZEKjzdSYP}/_buildManifest.js +1 -1
- package/dist/web/home/index.html +1 -1
- package/package.json +1 -1
- package/dist/web/_next/static/chunks/1068-2abb4920b8ee6ac6.js +0 -9
- package/dist/web/_next/static/chunks/7045.cf4993f5eb0f9eb4.js +0 -1
- package/dist/web/_next/static/chunks/7915.c6925370d1383e2e.js +0 -1
- package/dist/web/_next/static/chunks/pages/home-5fcfcde1fead971f.js +0 -13
- package/dist/web/_next/static/css/517bd79243800caf.css +0 -2
- /package/dist/web/_next/static/{7sUchVzedIXEiwH9u5qkP → iybQktKL4OxAZEKjzdSYP}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7915],{37915:(e,n,r)=>{r.r(n),r.d(n,{default:()=>N});var s=r(26514),t=r(75834),a=r(25642),l=r(66010),c=r(51960),u=r(9328),d=r(67492),i=r(86993),m=r(56514),o=r(90644),p=r(83564),x=r(98581),h=r(32270),g=r(71953),A=r(62796),f=r(55248);let j={bash:i.A,css:m.A,diff:o.A,javascript:p.A,json:x.A,markdown:h.A,python:g.A,typescript:A.A,xml:f.A};var y=r(4416);let b=[l.A,c.A],k=[[u.A,{languages:j,aliases:{bash:["sh","zsh","shell"],javascript:["js","jsx","mjs","cjs"],markdown:["md"],typescript:["ts","tsx"],xml:["html"]},plainText:["mermaid"]}]];function w(e){return"text"===e.type?e.value:"element"===e.type?e.children.map(w).join(""):""}let N=(0,t.memo)(function({source:e,compact:n}){let r=(0,t.useMemo)(()=>({a:({children:e,node:n,...r})=>(0,s.jsx)("a",{...r,className:"break-words text-primary underline underline-offset-2",children:e}),code:({children:e,className:n,node:r,...t})=>{let a=/\blanguage-/.test(n??"");return(0,s.jsx)("code",{...t,className:a?n:(0,y.cn)("break-words rounded-xs bg-background/70 px-1 py-0.5",n),children:e})},pre:({children:e,node:r,...t})=>{let a=function(e){let n=e?.children.find(e=>"element"===e.type);if(n?.type!=="element"||"code"!==n.tagName)return null;let r=n.properties.className;return Array.isArray(r)&&r.includes("language-mermaid")?n.children.map(w).join(""):null}(r);return null!==a?(0,s.jsx)(d.A,{code:a,compact:n}):(0,s.jsx)("pre",{...t,className:(0,y.cn)("max-w-full overflow-x-auto rounded-md bg-background/70 p-3",n?"text-xs leading-snug":"text-sm"),children:e})}}),[n]);return(0,s.jsx)(a.oz,{remarkPlugins:b,rehypePlugins:k,components:r,children:e})})}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8259],{10640:(t,e,i)=>{i.d(e,{diagram:()=>$});var s=i(62831),n=i(58959),a=i(95631);i(5218);var r=i(14528),h=i(3288),l=function(){var t=(0,r.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[1,4],i=[1,14],s=[1,12],n=[1,13],a=[6,7,8],h=[1,20],l=[1,18],o=[1,19],c=[6,7,11],u=[1,6,13,14],d=[1,23],y=[1,24],p=[1,6,7,11,13,14],g={trace:(0,r.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:(0,r.K)(function(t,e,i,s,n,a,r){var h=a.length-1;switch(n){case 6:case 7:return s;case 15:s.addNode(a[h-1].length,a[h].trim());break;case 16:s.addNode(0,a[h].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:s,14:n},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:i,12:15,13:s,14:n},{6:i,9:16,12:11,13:s,14:n},{6:h,7:l,10:17,11:o},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:h,7:l,10:22,11:o},{1:[2,7],6:i,12:15,13:s,14:n},t(u,[2,14],{7:d,11:y}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(c,[2,15]),t(u,[2,13],{7:d,11:y}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,r.K)(function(t){var e=this,i=[0],s=[],n=[null],a=[],h=this.table,l="",o=0,c=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p[g]=this.yy[g]);y.setInput(t,p),p.lexer=y,p.parser=this,void 0===y.yylloc&&(y.yylloc={});var f=y.yylloc;a.push(f);var k=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,r.K)(m,"lex");for(var w,x,_,b,v,S,K,$,I,E={};;){if(_=i[i.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==w&&(w=m()),b=h[_]&&h[_][w]),void 0===b||!b.length||!b[0]){var A="";for(S in I=[],h[_])this.terminals_[S]&&S>2&&I.push("'"+this.terminals_[S]+"'");A=y.showPosition?"Parse error on line "+(o+1)+":\n"+y.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(A,{text:y.match,token:this.terminals_[w]||w,line:y.yylineno,loc:f,expected:I})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+w);switch(b[0]){case 1:i.push(w),n.push(y.yytext),a.push(y.yylloc),i.push(b[1]),w=null,x?(w=x,x=null):(c=y.yyleng,l=y.yytext,o=y.yylineno,f=y.yylloc,u>0&&u--);break;case 2:if(K=this.productions_[b[1]][1],E.$=n[n.length-K],E._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},k&&(E._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(E,[l,c,o,p,b[1],n,a].concat(d))))return v;K&&(i=i.slice(0,-1*K*2),n=n.slice(0,-1*K),a=a.slice(0,-1*K)),i.push(this.productions_[b[1]][0]),n.push(E.$),a.push(E._$),$=h[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")};function f(){this.yy={}}return g.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in n)this[a]=n[a];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),a=0;a<n.length;a++)if((i=this._input.match(this.rules[n[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,i,s){switch(i){case 0:case 3:return 6;case 1:case 2:return 8;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}},(0,r.K)(f,"Parser"),f.prototype=g,g.Parser=f,new f}();l.parser=l;var o=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{(0,r.K)(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,(0,a.IU)()}getRoot(){return this.root}addNode(t,e){let i=a.Y2.sanitizeText(e,(0,a.D7)());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],(0,a.ke)(i);return}this.baseLevel??=t;let s=t-this.baseLevel+1;for(s<=0&&(s=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=s;)this.stack.pop();let n=this.stack[this.stack.length-1].node,r={text:i,children:[]};n.children.push(r),this.stack.push({level:s,node:r})}getAccTitle(){return(0,a.iN)()}setAccTitle(t){(0,a.SV)(t)}getAccDescription(){return(0,a.m7)()}setAccDescription(t){(0,a.EI)(t)}getDiagramTitle(){return(0,a.ab)()}setDiagramTitle(t){(0,a.ke)(t)}},c=82*Math.PI/180,u=Math.cos(c),d=Math.sin(c),y=(0,r.K)((t,e,i)=>{let s=t.node().getBBox(),n=s.width+2*e,r=s.height+2*e;(0,a.a$)(t,r,n,i),t.attr("viewBox",`${s.x-e} ${s.y-e} ${n} ${r}`)},"applyPaddedViewBox"),p=(0,r.K)((t,e,i,r)=>{let l=r.db.getRoot();if(!l)return;let o=(0,a.D7)(),{look:c,handDrawnSeed:u,themeVariables:d}=o,p=(0,n.I5)(o.fontSize)[0]??14,k="handDrawn"===c,m=l.children??[],w=o.ishikawa?.diagramPadding??20,_=o.ishikawa?.useMaxWidth??!1,b=(0,s.D)(e),v=b.append("g").attr("class","ishikawa"),S=k?h.A.svg(b.node()):void 0,$=S?{roughSvg:S,seed:u??0,lineColor:d?.lineColor??"#333",fillColor:d?.mainBkg??"#fff"}:void 0,I=`ishikawa-arrow-${e}`;k||v.append("defs").append("marker").attr("id",I).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,A=250,C=k?void 0:K(v,E,A,E,A,"ishikawa-spine");if(f(v,E,A,l.text,p,$),!m.length){k&&K(v,E,A,E,A,"ishikawa-spine",$),y(b,w,_);return}E-=20;let L=m.filter((t,e)=>e%2==0),M=m.filter((t,e)=>e%2==1),P=g(L),T=g(M),B=P.total+T.total,N=250,D=250;B>0&&(N=Math.max(75,500*(P.total/B)),D=Math.max(75,500*(T.total/B)));let O=2*p;N=Math.max(N,P.max*O),D=Math.max(D,T.max*O),A=Math.max(N,250),C&&C.attr("y1",A).attr("y2",A),v.select(".ishikawa-head-group").attr("transform",`translate(0,${A})`);let W=Math.ceil(m.length/2);for(let t=0;t<W;t++){let e=v.append("g").attr("class","ishikawa-pair");for(let[i,s,n]of[[m[2*t],-1,N],[m[2*t+1],1,D]])i&&x(e,i,E,A,s,n,p,$);E=e.selectAll("text").nodes().reduce((t,e)=>Math.min(t,e.getBBox().x),1/0)}if(k)K(v,E,A,0,A,"ishikawa-spine",$);else{C.attr("x1",E);let t=`url(#${I})`;v.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",t)}y(b,w,_)},"draw"),g=(0,r.K)(t=>{let e=(0,r.K)(t=>t.children.reduce((t,i)=>t+1+e(i),0),"countDescendants");return t.reduce((t,i)=>{let s=e(i);return t.total+=s,t.max=Math.max(t.max,s),t},{total:0,max:0})},"sideStats"),f=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.max(6,Math.floor(110/(.6*n))),h=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${i})`),l=v(h,b(s,r),0,0,"ishikawa-head-label","start",n),o=l.node().getBBox(),c=Math.max(60,o.width+6),u=Math.max(40,2*o.height+40),d=`M 0 ${-u/2} L 0 ${u/2} Q ${2.4*c} 0 0 ${-u/2} Z`;if(a){let t=a.roughSvg.path(d,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-head")}else h.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);l.attr("transform",`translate(${(c-o.width)/2-o.x+3},${-o.y-o.height/2})`)},"drawHead"),k=(0,r.K)((t,e)=>{let i=[],s=[],n=(0,r.K)((t,a,r)=>{for(let h of -1===e?[...t].reverse():t){let t=i.length,e=h.children??[];i.push({depth:r,text:b(h.text,15),parentIndex:a,childCount:e.length}),r%2==0?(s.push(t),e.length&&n(e,t,r+1)):(e.length&&n(e,t,r+1),s.push(t))}},"walk");return n(t,-1,2),{entries:i,yOrder:s}},"flattenTree"),m=(0,r.K)((t,e,i,s,n,a,r)=>{let h=t.append("g").attr("class","ishikawa-label-group"),l=v(h,e,i,s+11*n,"ishikawa-label cause","middle",a).node().getBBox();if(r){let t=r.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:r.seed,fill:r.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:r.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-label-box")}else h.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",l.x-20).attr("y",l.y-2).attr("width",l.width+40).attr("height",l.height+4)},"drawCauseLabel"),w=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.sqrt(s*s+n*n);if(0===r)return;let h=s/r,l=n/r,o=-(6*l),c=6*h,u=`M ${e} ${i} L ${e-6*h*2+o} ${i-6*l*2+c} L ${e-6*h*2-o} ${i-6*l*2-c} Z`,d=a.roughSvg.path(u,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>d)},"drawArrowMarker"),x=(0,r.K)((t,e,i,s,n,a,r,h)=>{let l=e.children??[],o=a*(l.length?1:.2),c=d*o*n,y=i+-u*o,p=s+c;if(K(t,i,s,y,p,"ishikawa-branch",h),h&&w(t,i,s,i-y,s-p,h),m(t,e.text,y,p,n,r,h),!l.length)return;let{entries:g,yOrder:f}=k(l,n),x=g.length,_=Array(x);for(let[t,e]of f.entries())_[e]=s+(t+1)/(x+1)*c;let b=new Map;b.set(-1,{x0:i,y0:s,x1:y,y1:p,childCount:l.length,childrenDrawn:0});let $=-u,I=d*n,E=n<0?"ishikawa-label up":"ishikawa-label down";for(let[e,i]of g.entries()){let s=_[e],n=b.get(i.parentIndex),a=t.append("g").attr("class","ishikawa-sub-group"),l=0,o=0,c=0;if(i.depth%2==0){let t=n.y1-n.y0;l=S(n.x0,n.x1,t?(s-n.y0)/t:.5),o=s,c=l-(i.childCount>0?60+5*i.childCount:30),K(a,l,s,c,s,"ishikawa-sub-branch",h),h&&w(a,l,s,1,0,h),v(a,i.text,c,s,"ishikawa-label align","end",r)}else{let t=n.childrenDrawn++;c=(l=S(n.x0,n.x1,(n.childCount-t)/(n.childCount+1)))+(s-(o=n.y0))/I*$,K(a,l,o,c,s,"ishikawa-sub-branch",h),h&&w(a,l,o,l-c,o-s,h),v(a,i.text,c,s,E,"end",r)}i.childCount>0&&b.set(e,{x0:l,y0:o,x1:c,y1:s,childCount:i.childCount,childrenDrawn:0})}},"drawBranch"),_=(0,r.K)(t=>t.split(/<br\s*\/?>|\n/),"splitLines"),b=(0,r.K)((t,e)=>{if(t.length<=e)return t;let i=[];for(let s of t.split(/\s+/)){let t=i.length-1;t>=0&&i[t].length+1+s.length<=e?i[t]+=" "+s:i.push(s)}return i.join("\n")},"wrapText"),v=(0,r.K)((t,e,i,s,n,a,r)=>{let h=_(e),l=1.05*r,o=t.append("text").attr("class",n).attr("text-anchor",a).attr("x",i).attr("y",s-(h.length-1)*l/2);for(let[t,e]of h.entries())o.append("tspan").attr("x",i).attr("dy",0===t?0:l).text(e);return o},"drawMultilineText"),S=(0,r.K)((t,e,i)=>t+(e-t)*i,"lerp"),K=(0,r.K)((t,e,i,s,n,a,r)=>{if(r){let h=r.roughSvg.line(e,i,s,n,{roughness:1.5,seed:r.seed,stroke:r.lineColor,strokeWidth:2});t.append(()=>h).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",i).attr("x2",s).attr("y2",n)},"drawLine"),$={parser:l,get db(){return new o},renderer:{draw:p},styles:(0,r.K)(t=>`
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8259],{88259:(t,e,i)=>{i.d(e,{diagram:()=>$});var s=i(62831),n=i(58959),a=i(95631);i(5218);var r=i(14528),h=i(3288),l=function(){var t=(0,r.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[1,4],i=[1,14],s=[1,12],n=[1,13],a=[6,7,8],h=[1,20],l=[1,18],o=[1,19],c=[6,7,11],u=[1,6,13,14],d=[1,23],y=[1,24],p=[1,6,7,11,13,14],g={trace:(0,r.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:(0,r.K)(function(t,e,i,s,n,a,r){var h=a.length-1;switch(n){case 6:case 7:return s;case 15:s.addNode(a[h-1].length,a[h].trim());break;case 16:s.addNode(0,a[h].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:s,14:n},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:i,12:15,13:s,14:n},{6:i,9:16,12:11,13:s,14:n},{6:h,7:l,10:17,11:o},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:h,7:l,10:22,11:o},{1:[2,7],6:i,12:15,13:s,14:n},t(u,[2,14],{7:d,11:y}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(c,[2,15]),t(u,[2,13],{7:d,11:y}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,r.K)(function(t){var e=this,i=[0],s=[],n=[null],a=[],h=this.table,l="",o=0,c=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p[g]=this.yy[g]);y.setInput(t,p),p.lexer=y,p.parser=this,void 0===y.yylloc&&(y.yylloc={});var f=y.yylloc;a.push(f);var k=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,r.K)(m,"lex");for(var w,x,_,b,v,S,K,$,I,E={};;){if(_=i[i.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==w&&(w=m()),b=h[_]&&h[_][w]),void 0===b||!b.length||!b[0]){var A="";for(S in I=[],h[_])this.terminals_[S]&&S>2&&I.push("'"+this.terminals_[S]+"'");A=y.showPosition?"Parse error on line "+(o+1)+":\n"+y.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(A,{text:y.match,token:this.terminals_[w]||w,line:y.yylineno,loc:f,expected:I})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+w);switch(b[0]){case 1:i.push(w),n.push(y.yytext),a.push(y.yylloc),i.push(b[1]),w=null,x?(w=x,x=null):(c=y.yyleng,l=y.yytext,o=y.yylineno,f=y.yylloc,u>0&&u--);break;case 2:if(K=this.productions_[b[1]][1],E.$=n[n.length-K],E._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},k&&(E._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(E,[l,c,o,p,b[1],n,a].concat(d))))return v;K&&(i=i.slice(0,-1*K*2),n=n.slice(0,-1*K),a=a.slice(0,-1*K)),i.push(this.productions_[b[1]][0]),n.push(E.$),a.push(E._$),$=h[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")};function f(){this.yy={}}return g.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in n)this[a]=n[a];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),a=0;a<n.length;a++)if((i=this._input.match(this.rules[n[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,i,s){switch(i){case 0:case 3:return 6;case 1:case 2:return 8;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}},(0,r.K)(f,"Parser"),f.prototype=g,g.Parser=f,new f}();l.parser=l;var o=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{(0,r.K)(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,(0,a.IU)()}getRoot(){return this.root}addNode(t,e){let i=a.Y2.sanitizeText(e,(0,a.D7)());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],(0,a.ke)(i);return}this.baseLevel??=t;let s=t-this.baseLevel+1;for(s<=0&&(s=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=s;)this.stack.pop();let n=this.stack[this.stack.length-1].node,r={text:i,children:[]};n.children.push(r),this.stack.push({level:s,node:r})}getAccTitle(){return(0,a.iN)()}setAccTitle(t){(0,a.SV)(t)}getAccDescription(){return(0,a.m7)()}setAccDescription(t){(0,a.EI)(t)}getDiagramTitle(){return(0,a.ab)()}setDiagramTitle(t){(0,a.ke)(t)}},c=82*Math.PI/180,u=Math.cos(c),d=Math.sin(c),y=(0,r.K)((t,e,i)=>{let s=t.node().getBBox(),n=s.width+2*e,r=s.height+2*e;(0,a.a$)(t,r,n,i),t.attr("viewBox",`${s.x-e} ${s.y-e} ${n} ${r}`)},"applyPaddedViewBox"),p=(0,r.K)((t,e,i,r)=>{let l=r.db.getRoot();if(!l)return;let o=(0,a.D7)(),{look:c,handDrawnSeed:u,themeVariables:d}=o,p=(0,n.I5)(o.fontSize)[0]??14,k="handDrawn"===c,m=l.children??[],w=o.ishikawa?.diagramPadding??20,_=o.ishikawa?.useMaxWidth??!1,b=(0,s.D)(e),v=b.append("g").attr("class","ishikawa"),S=k?h.A.svg(b.node()):void 0,$=S?{roughSvg:S,seed:u??0,lineColor:d?.lineColor??"#333",fillColor:d?.mainBkg??"#fff"}:void 0,I=`ishikawa-arrow-${e}`;k||v.append("defs").append("marker").attr("id",I).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,A=250,C=k?void 0:K(v,E,A,E,A,"ishikawa-spine");if(f(v,E,A,l.text,p,$),!m.length){k&&K(v,E,A,E,A,"ishikawa-spine",$),y(b,w,_);return}E-=20;let L=m.filter((t,e)=>e%2==0),M=m.filter((t,e)=>e%2==1),P=g(L),T=g(M),B=P.total+T.total,N=250,D=250;B>0&&(N=Math.max(75,500*(P.total/B)),D=Math.max(75,500*(T.total/B)));let O=2*p;N=Math.max(N,P.max*O),D=Math.max(D,T.max*O),A=Math.max(N,250),C&&C.attr("y1",A).attr("y2",A),v.select(".ishikawa-head-group").attr("transform",`translate(0,${A})`);let W=Math.ceil(m.length/2);for(let t=0;t<W;t++){let e=v.append("g").attr("class","ishikawa-pair");for(let[i,s,n]of[[m[2*t],-1,N],[m[2*t+1],1,D]])i&&x(e,i,E,A,s,n,p,$);E=e.selectAll("text").nodes().reduce((t,e)=>Math.min(t,e.getBBox().x),1/0)}if(k)K(v,E,A,0,A,"ishikawa-spine",$);else{C.attr("x1",E);let t=`url(#${I})`;v.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",t)}y(b,w,_)},"draw"),g=(0,r.K)(t=>{let e=(0,r.K)(t=>t.children.reduce((t,i)=>t+1+e(i),0),"countDescendants");return t.reduce((t,i)=>{let s=e(i);return t.total+=s,t.max=Math.max(t.max,s),t},{total:0,max:0})},"sideStats"),f=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.max(6,Math.floor(110/(.6*n))),h=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${i})`),l=v(h,b(s,r),0,0,"ishikawa-head-label","start",n),o=l.node().getBBox(),c=Math.max(60,o.width+6),u=Math.max(40,2*o.height+40),d=`M 0 ${-u/2} L 0 ${u/2} Q ${2.4*c} 0 0 ${-u/2} Z`;if(a){let t=a.roughSvg.path(d,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-head")}else h.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);l.attr("transform",`translate(${(c-o.width)/2-o.x+3},${-o.y-o.height/2})`)},"drawHead"),k=(0,r.K)((t,e)=>{let i=[],s=[],n=(0,r.K)((t,a,r)=>{for(let h of -1===e?[...t].reverse():t){let t=i.length,e=h.children??[];i.push({depth:r,text:b(h.text,15),parentIndex:a,childCount:e.length}),r%2==0?(s.push(t),e.length&&n(e,t,r+1)):(e.length&&n(e,t,r+1),s.push(t))}},"walk");return n(t,-1,2),{entries:i,yOrder:s}},"flattenTree"),m=(0,r.K)((t,e,i,s,n,a,r)=>{let h=t.append("g").attr("class","ishikawa-label-group"),l=v(h,e,i,s+11*n,"ishikawa-label cause","middle",a).node().getBBox();if(r){let t=r.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:r.seed,fill:r.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:r.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-label-box")}else h.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",l.x-20).attr("y",l.y-2).attr("width",l.width+40).attr("height",l.height+4)},"drawCauseLabel"),w=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.sqrt(s*s+n*n);if(0===r)return;let h=s/r,l=n/r,o=-(6*l),c=6*h,u=`M ${e} ${i} L ${e-6*h*2+o} ${i-6*l*2+c} L ${e-6*h*2-o} ${i-6*l*2-c} Z`,d=a.roughSvg.path(u,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>d)},"drawArrowMarker"),x=(0,r.K)((t,e,i,s,n,a,r,h)=>{let l=e.children??[],o=a*(l.length?1:.2),c=d*o*n,y=i+-u*o,p=s+c;if(K(t,i,s,y,p,"ishikawa-branch",h),h&&w(t,i,s,i-y,s-p,h),m(t,e.text,y,p,n,r,h),!l.length)return;let{entries:g,yOrder:f}=k(l,n),x=g.length,_=Array(x);for(let[t,e]of f.entries())_[e]=s+(t+1)/(x+1)*c;let b=new Map;b.set(-1,{x0:i,y0:s,x1:y,y1:p,childCount:l.length,childrenDrawn:0});let $=-u,I=d*n,E=n<0?"ishikawa-label up":"ishikawa-label down";for(let[e,i]of g.entries()){let s=_[e],n=b.get(i.parentIndex),a=t.append("g").attr("class","ishikawa-sub-group"),l=0,o=0,c=0;if(i.depth%2==0){let t=n.y1-n.y0;l=S(n.x0,n.x1,t?(s-n.y0)/t:.5),o=s,c=l-(i.childCount>0?60+5*i.childCount:30),K(a,l,s,c,s,"ishikawa-sub-branch",h),h&&w(a,l,s,1,0,h),v(a,i.text,c,s,"ishikawa-label align","end",r)}else{let t=n.childrenDrawn++;c=(l=S(n.x0,n.x1,(n.childCount-t)/(n.childCount+1)))+(s-(o=n.y0))/I*$,K(a,l,o,c,s,"ishikawa-sub-branch",h),h&&w(a,l,o,l-c,o-s,h),v(a,i.text,c,s,E,"end",r)}i.childCount>0&&b.set(e,{x0:l,y0:o,x1:c,y1:s,childCount:i.childCount,childrenDrawn:0})}},"drawBranch"),_=(0,r.K)(t=>t.split(/<br\s*\/?>|\n/),"splitLines"),b=(0,r.K)((t,e)=>{if(t.length<=e)return t;let i=[];for(let s of t.split(/\s+/)){let t=i.length-1;t>=0&&i[t].length+1+s.length<=e?i[t]+=" "+s:i.push(s)}return i.join("\n")},"wrapText"),v=(0,r.K)((t,e,i,s,n,a,r)=>{let h=_(e),l=1.05*r,o=t.append("text").attr("class",n).attr("text-anchor",a).attr("x",i).attr("y",s-(h.length-1)*l/2);for(let[t,e]of h.entries())o.append("tspan").attr("x",i).attr("dy",0===t?0:l).text(e);return o},"drawMultilineText"),S=(0,r.K)((t,e,i)=>t+(e-t)*i,"lerp"),K=(0,r.K)((t,e,i,s,n,a,r)=>{if(r){let h=r.roughSvg.line(e,i,s,n,{roughness:1.5,seed:r.seed,stroke:r.lineColor,strokeWidth:2});t.append(()=>h).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",i).attr("x2",s).attr("y2",n)},"drawLine"),$={parser:l,get db(){return new o},renderer:{draw:p},styles:(0,r.K)(t=>`
|
|
2
2
|
.ishikawa .ishikawa-spine,
|
|
3
3
|
.ishikawa .ishikawa-branch,
|
|
4
4
|
.ishikawa .ishikawa-sub-branch {
|
package/dist/web/_next/static/chunks/pages/{_app-6528e28fe89b0344.js → _app-8718d90c431152c1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{4416:(e,t,r)=>{"use strict";r.d(t,{cn:()=>eg});var o=r(73367);let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),a=[],s=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let r=s(e,t+1,n);if(r)return r}let a=r.validators;if(null===a)return;let i=0===t?e.join("-"):e.slice(t).join("-"),l=a.length;for(let e=0;e<l;e++){let t=a[e];if(t.validator(i))return t.classGroupId}},i=(e,t)=>{let r=n();for(let o in e)l(e[o],r,o,t);return r},l=(e,t,r,o)=>{let n=e.length;for(let a=0;a<n;a++)c(e[a],t,r,o)},c=(e,t,r,o)=>{"string"==typeof e?d(e,t,r):"function"==typeof e?u(e,t,r,o):m(e,t,r,o)},d=(e,t,r)=>{(""===e?t:p(t,e)).classGroupId=r},u=(e,t,r,o)=>{b(e)?l(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},m=(e,t,r,o)=>{let n=Object.entries(e),a=n.length;for(let e=0;e<a;e++){let[a,s]=n[e];l(s,p(t,a),r,o)}},p=(e,t)=>{let r=e,o=t.split("-"),a=o.length;for(let e=0;e<a;e++){let t=o[e],a=r.nextPart.get(t);a||(a=n(),r.nextPart.set(t,a)),r=a}return r},b=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,g=[],f=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),h=/\s+/,k=e=>{let t;if("string"==typeof e)return e;let r="";for(let o=0;o<e.length;o++)e[o]&&(t=k(e[o]))&&(r&&(r+=" "),r+=t);return r},v=[],w=e=>{let t=t=>t[e]||v;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>z.test(e),T=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),M=e=>e.endsWith("%")&&T(e.slice(0,-1)),N=e=>S.test(e),D=()=>!0,P=e=>j.test(e)&&!A.test(e),J=()=>!1,_=e=>E.test(e),I=e=>L.test(e),W=e=>!B(e)&&!Q(e),O=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),F=e=>en(e,el,J),B=e=>x.test(e),U=e=>en(e,ec,P),$=e=>en(e,ed,T),R=e=>en(e,em,D),V=e=>en(e,eu,J),K=e=>en(e,es,J),q=e=>en(e,ei,I),H=e=>en(e,ep,_),Q=e=>y.test(e),X=e=>ea(e,ec),Y=e=>ea(e,eu),Z=e=>ea(e,es),ee=e=>ea(e,el),et=e=>ea(e,ei),er=e=>ea(e,ep,!0),eo=e=>ea(e,em,!0),en=(e,t,r)=>{let o=x.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},ea=(e,t,r=!1)=>{let o=y.exec(e);return!!o&&(o[1]?t(o[1]):r)},es=e=>"position"===e||"percentage"===e,ei=e=>"image"===e||"url"===e,el=e=>"length"===e||"size"===e||"bg-size"===e,ec=e=>"length"===e,ed=e=>"number"===e,eu=e=>"family-name"===e,em=e=>"number"===e||"weight"===e,ep=e=>"shadow"===e,eb=((e,...t)=>{let r,o,n,l,c=e=>{let t=o(e);if(t)return t;let a=((e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(h),c="";for(let e=l.length-1;e>=0;e-=1){let t,d=l[e],{isExternal:u,modifiers:m,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:g}=r(d);if(u){c=d+(c.length>0?" "+c:c);continue}let f=!!g;if(f){let e=(t=o(b.substring(0,g)))&&s[t]?o(b):void 0;e&&e!==t&&(t=e,f=!1)}else t=o(b);if(!t){if(!f||!(t=o(b))){c=d+(c.length>0?" "+c:c);continue}f=!1}let h=0===m.length?"":1===m.length?m[0]:a(m).join(":"),k=p?h+"!":h,v=k+t;if(i.indexOf(v)>-1)continue;i.push(v);let w=n(t,f);for(let e=0;e<w.length;++e){let t=w[e];i.push(k+t)}c=d+(c.length>0?" "+c:c)}return c})(e,r);return n(e,a),a};return l=d=>{var u;let m;return o=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),n=(n,a)=>{r[n]=a,++t>e&&(t=0,o=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}})((u=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,o=e=>{let t,r=[],o=0,n=0,a=0,s=e.length;for(let i=0;i<s;i++){let s=e[i];if(0===o&&0===n){if(":"===s){r.push(e.slice(a,i)),a=i+1;continue}if("/"===s){t=i;continue}}"["===s?o++:"]"===s?o--:"("===s?n++:")"===s&&n--}let i=0===r.length?e:e.slice(a),l=i,c=!1;return i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0),f(r,c,l,t&&t>a?t-a:void 0)};if(t){let e=t+":",r=o;o=t=>t.startsWith(e)?r(t.slice(e.length)):f(g,!1,t,void 0,!0)}if(r){let e=o;o=t=>r({className:t,parseClassName:e})}return o})(u),sortModifiers:(m=new Map,u.orderSensitiveModifiers.forEach((e,t)=>{m.set(e,1e6+t)}),e=>{let t=[],r=[];for(let o=0;o<e.length;o++){let n=e[o],a="["===n[0],s=m.has(n);a||s?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(n)):r.push(n)}return r.length>0&&(r.sort(),t.push(...r)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(u),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return i(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,o,n;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(o=(t=r.slice(1,-1)).indexOf(":"),(n=t.slice(0,o))?"arbitrary.."+n:void 0)}let o=e.split("-"),n=+(""===o[0]&&o.length>1);return s(o,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],n=r[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let r=0;r<t.length;r++)e[n.length+r]=t[r];return e}return t}return n||a}return r[e]||a}}})(u)}).cache.get,n=r.cache.set,l=c,c(d)},(...e)=>l(((...e)=>{let t,r,o=0,n="";for(;o<e.length;)(t=e[o++])&&(r=k(t))&&(n&&(n+=" "),n+=r);return n})(...e))})(()=>{let e=w("color"),t=w("font"),r=w("text"),o=w("font-weight"),n=w("tracking"),a=w("leading"),s=w("breakpoint"),i=w("container"),l=w("spacing"),c=w("radius"),d=w("shadow"),u=w("inset-shadow"),m=w("text-shadow"),p=w("drop-shadow"),b=w("blur"),g=w("perspective"),f=w("aspect"),h=w("ease"),k=w("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...x(),Q,B],z=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],j=()=>[Q,B,l],A=()=>[C,"full","auto",...j()],E=()=>[G,"none","subgrid",Q,B],L=()=>["auto",{span:["full",G,Q,B]},G,Q,B],P=()=>[G,"auto",Q,B],J=()=>["auto","min","max","fr",Q,B],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...j()],ea=()=>[C,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],es=()=>[C,"screen","full","dvw","lvw","svw","min","max","fit",...j()],ei=()=>[C,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],el=()=>[e,Q,B],ec=()=>[...x(),Z,K,{position:[Q,B]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eu=()=>["auto","cover","contain",ee,F,{size:[Q,B]}],em=()=>[M,X,U],ep=()=>["","none","full",c,Q,B],eb=()=>["",T,X,U],eg=()=>["solid","dashed","dotted","double"],ef=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[T,M,Z,K],ek=()=>["","none",b,Q,B],ev=()=>["none",T,Q,B],ew=()=>["none",T,Q,B],ex=()=>[T,Q,B],ey=()=>[C,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[D],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[W],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",T],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C,B,Q,f]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,B]}],"container-named":[O],columns:[{columns:[T,B,Q,i]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",Q,B]}],basis:[{basis:[C,"full","auto",i,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[T,C,"auto","initial","none",B]}],grow:[{grow:["",T,Q,B]}],shrink:[{shrink:["",T,Q,B]}],order:[{order:[G,"first","last","none",Q,B]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ea()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...ei()]}],"min-block-size":[{"min-block":["auto",...ei()]}],"max-block-size":[{"max-block":["none",...ei()]}],w:[{w:[i,"screen",...ea()]}],"min-w":[{"min-w":[i,"screen","none",...ea()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...ea()]}],h:[{h:["screen","lh",...ea()]}],"min-h":[{"min-h":["screen","lh","none",...ea()]}],"max-h":[{"max-h":["screen","lh",...ea()]}],"font-size":[{text:["base",r,X,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,eo,R]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",M,B]}],"font-family":[{font:[Y,V,t]}],"font-features":[{"font-features":[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Q,B]}],"line-clamp":[{"line-clamp":[T,"none",Q,$]}],leading:[{leading:[a,...j()]}],"list-image":[{"list-image":["none",Q,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:el()}],"text-color":[{text:el()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eg(),"wavy"]}],"text-decoration-thickness":[{decoration:[T,"from-font","auto",Q,U]}],"text-decoration-color":[{decoration:el()}],"underline-offset":[{"underline-offset":[T,"auto",Q,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[G,Q,B]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ec()}],"bg-repeat":[{bg:ed()}],"bg-size":[{bg:eu()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,Q,B],radial:["",Q,B],conic:[G,Q,B]},et,q]}],"bg-color":[{bg:el()}],"gradient-from-pos":[{from:em()}],"gradient-via-pos":[{via:em()}],"gradient-to-pos":[{to:em()}],"gradient-from":[{from:el()}],"gradient-via":[{via:el()}],"gradient-to":[{to:el()}],rounded:[{rounded:ep()}],"rounded-s":[{"rounded-s":ep()}],"rounded-e":[{"rounded-e":ep()}],"rounded-t":[{"rounded-t":ep()}],"rounded-r":[{"rounded-r":ep()}],"rounded-b":[{"rounded-b":ep()}],"rounded-l":[{"rounded-l":ep()}],"rounded-ss":[{"rounded-ss":ep()}],"rounded-se":[{"rounded-se":ep()}],"rounded-ee":[{"rounded-ee":ep()}],"rounded-es":[{"rounded-es":ep()}],"rounded-tl":[{"rounded-tl":ep()}],"rounded-tr":[{"rounded-tr":ep()}],"rounded-br":[{"rounded-br":ep()}],"rounded-bl":[{"rounded-bl":ep()}],"border-w":[{border:eb()}],"border-w-x":[{"border-x":eb()}],"border-w-y":[{"border-y":eb()}],"border-w-s":[{"border-s":eb()}],"border-w-e":[{"border-e":eb()}],"border-w-bs":[{"border-bs":eb()}],"border-w-be":[{"border-be":eb()}],"border-w-t":[{"border-t":eb()}],"border-w-r":[{"border-r":eb()}],"border-w-b":[{"border-b":eb()}],"border-w-l":[{"border-l":eb()}],"divide-x":[{"divide-x":eb()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eb()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eg(),"hidden","none"]}],"divide-style":[{divide:[...eg(),"hidden","none"]}],"border-color":[{border:el()}],"border-color-x":[{"border-x":el()}],"border-color-y":[{"border-y":el()}],"border-color-s":[{"border-s":el()}],"border-color-e":[{"border-e":el()}],"border-color-bs":[{"border-bs":el()}],"border-color-be":[{"border-be":el()}],"border-color-t":[{"border-t":el()}],"border-color-r":[{"border-r":el()}],"border-color-b":[{"border-b":el()}],"border-color-l":[{"border-l":el()}],"divide-color":[{divide:el()}],"outline-style":[{outline:[...eg(),"none","hidden"]}],"outline-offset":[{"outline-offset":[T,Q,B]}],"outline-w":[{outline:["",T,X,U]}],"outline-color":[{outline:el()}],shadow:[{shadow:["","none",d,er,H]}],"shadow-color":[{shadow:el()}],"inset-shadow":[{"inset-shadow":["none",u,er,H]}],"inset-shadow-color":[{"inset-shadow":el()}],"ring-w":[{ring:eb()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:el()}],"ring-offset-w":[{"ring-offset":[T,U]}],"ring-offset-color":[{"ring-offset":el()}],"inset-ring-w":[{"inset-ring":eb()}],"inset-ring-color":[{"inset-ring":el()}],"text-shadow":[{"text-shadow":["none",m,er,H]}],"text-shadow-color":[{"text-shadow":el()}],opacity:[{opacity:[T,Q,B]}],"mix-blend":[{"mix-blend":[...ef(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ef()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[T]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":el()}],"mask-image-linear-to-color":[{"mask-linear-to":el()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":el()}],"mask-image-t-to-color":[{"mask-t-to":el()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":el()}],"mask-image-r-to-color":[{"mask-r-to":el()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":el()}],"mask-image-b-to-color":[{"mask-b-to":el()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":el()}],"mask-image-l-to-color":[{"mask-l-to":el()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":el()}],"mask-image-x-to-color":[{"mask-x-to":el()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":el()}],"mask-image-y-to-color":[{"mask-y-to":el()}],"mask-image-radial":[{"mask-radial":[Q,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":el()}],"mask-image-radial-to-color":[{"mask-radial-to":el()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[T]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":el()}],"mask-image-conic-to-color":[{"mask-conic-to":el()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ec()}],"mask-repeat":[{mask:ed()}],"mask-size":[{mask:eu()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,B]}],filter:[{filter:["","none",Q,B]}],blur:[{blur:ek()}],brightness:[{brightness:[T,Q,B]}],contrast:[{contrast:[T,Q,B]}],"drop-shadow":[{"drop-shadow":["","none",p,er,H]}],"drop-shadow-color":[{"drop-shadow":el()}],grayscale:[{grayscale:["",T,Q,B]}],"hue-rotate":[{"hue-rotate":[T,Q,B]}],invert:[{invert:["",T,Q,B]}],saturate:[{saturate:[T,Q,B]}],sepia:[{sepia:["",T,Q,B]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,B]}],"backdrop-blur":[{"backdrop-blur":ek()}],"backdrop-brightness":[{"backdrop-brightness":[T,Q,B]}],"backdrop-contrast":[{"backdrop-contrast":[T,Q,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",T,Q,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[T,Q,B]}],"backdrop-invert":[{"backdrop-invert":["",T,Q,B]}],"backdrop-opacity":[{"backdrop-opacity":[T,Q,B]}],"backdrop-saturate":[{"backdrop-saturate":[T,Q,B]}],"backdrop-sepia":[{"backdrop-sepia":["",T,Q,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[T,"initial",Q,B]}],ease:[{ease:["linear","initial",h,Q,B]}],delay:[{delay:[T,Q,B]}],animate:[{animate:["none",k,Q,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Q,B]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ev()}],"rotate-x":[{"rotate-x":ev()}],"rotate-y":[{"rotate-y":ev()}],"rotate-z":[{"rotate-z":ev()}],scale:[{scale:ew()}],"scale-x":[{"scale-x":ew()}],"scale-y":[{"scale-y":ew()}],"scale-z":[{"scale-z":ew()}],"scale-3d":["scale-3d"],skew:[{skew:ex()}],"skew-x":[{"skew-x":ex()}],"skew-y":[{"skew-y":ex()}],transform:[{transform:[Q,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ey()}],"translate-x":[{"translate-x":ey()}],"translate-y":[{"translate-y":ey()}],"translate-z":[{"translate-z":ey()}],"translate-none":["translate-none"],zoom:[{zoom:[G,Q,B]}],accent:[{accent:el()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:el()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":el()}],"scrollbar-track-color":[{"scrollbar-track":el()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,B]}],fill:[{fill:["none",...el()]}],"stroke-w":[{stroke:[T,X,U,$]}],stroke:[{stroke:["none",...el()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function eg(...e){return eb((0,o.$)(e))}},8521:(e,t,r)=>{"use strict";r.d(t,{J:()=>l,D:()=>i});var o=r(51204);let n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function a(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n.has(e)}let s=e=>!a(e);function i(e){"function"==typeof e&&(s=t=>t.startsWith("on")?!a(t):e(t))}try{i(require("@emotion/is-prop-valid").default)}catch{}function l(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!(0,o.S)(e[i])&&(s(i)||!0===r&&a(i)||!t&&!a(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}},10293:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var o=r(26514),n=r(24322),a=r.n(n),s=r(75834),i=r(29912),l=r(73533),c=r(8521),d=r(53214);function u({children:e,isValidProp:t,...r}){t&&(0,c.D)(t);let n=(0,s.useContext)(l.Q);(r={...n,...r}).transition=(0,i.K)(r.transition,n.transition),r.isStatic=(0,d.M)(()=>r.isStatic);let a=(0,s.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion,r.skipAnimations]);return(0,o.jsx)(l.Q.Provider,{value:a,children:e})}var m=r(67492);let p="vibeflow:connection";function b(){let[e,t]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{let e=e=>t(e.detail.connected);return window.addEventListener(p,e),()=>window.removeEventListener(p,e)},[]),e)?null:(0,o.jsx)("div",{role:"status",className:"fixed inset-x-0 top-0 z-50 bg-destructive px-4 py-1.5 text-center text-sm text-destructive-foreground",children:"與 VibeFlow core 的連線中斷,正在重新連線…(agent 仍在背景執行)"})}r(59630),r(19733),r(55e3),function(){if(window.vibeflow)return;let e=`${"https:"===window.location.protocol?"wss":"ws"}://${window.location.host}/ws`,t=null,r=function(e){let t=null,r=1,o=!1,n=!1,a=250,s=[],i=new Map,l=new Map;function c(e,t){for(let r of Array.from(l.get(e)??[]))r(t)}function d(e){let r=JSON.stringify(e);t&&1===t.readyState?t.send(r):s.push(r)}return!function r(){if(n)return;let l=e.connect();t=l,l.onopen=()=>{for(a=250,e.onStatus?.(!0);t&&1===t.readyState&&s.length>0;)t.send(s.shift());o&&e.onReconnect?.(),o=!0},l.onmessage=e=>{let t;try{t=JSON.parse(String(e.data))}catch{return}if("string"==typeof t.event)return void c(t.event,t.payload);let r="number"==typeof t.id?i.get(t.id):void 0;r&&(i.delete(t.id),t.error?r.reject(Object.assign(Error(t.error.message),{code:t.error.code})):r.resolve(null===t.result?void 0:t.result))},l.onerror=()=>{},l.onclose=()=>{if(t===l){for(let[r,o]of(t=null,e.onStatus?.(!1),Array.from(i)))i.delete(r),o.reject(Error("與 VibeFlow core 的連線中斷"));n||(setTimeout(r,a),a=Math.min(2*a,5e3))}}}(),{kind:"ws",invoke(e,...t){let o=r++;return new Promise((r,n)=>{i.set(o,{resolve:r,reject:n}),d({id:o,method:e,params:t})})},send(e,...t){d({method:e,params:t})},on(e,t){let r=l.get(e);return r||l.set(e,r=new Set),r.add(t),()=>{r.delete(t)}},close(){n=!0,t?.close()},dispatch:c}}({connect:()=>new WebSocket(e),onReconnect:()=>{o.getVersion().then(e=>{t&&e!==t&&window.location.reload()}).catch(()=>{}),o.getState().then(e=>r.dispatch("state:changed",e)),o.getUpdateStatus().then(e=>r.dispatch("update:available",e)).catch(()=>{})},onStatus:e=>{window.dispatchEvent(new CustomEvent(p,{detail:{connected:e}}))}}),o={transport:r.kind,getState:()=>r.invoke("vibeflow:getState"),getVersion:()=>r.invoke("app:getVersion"),getUpdateStatus:()=>r.invoke("host:updateStatus"),checkForUpdate:()=>r.invoke("host:checkUpdate"),openUpdateTerminal:()=>r.invoke("host:openUpdateTerminal"),onUpdateAvailable:e=>r.on("update:available",t=>e(t)),onStateChanged:e=>r.on("state:changed",t=>e(t)),setBoard:e=>r.invoke("vibeflow:setBoard",e),setSettings:e=>r.invoke("vibeflow:setSettings",e),getJevKeyStatus:()=>r.invoke("settings:jevKeyStatus"),saveJevApiKey:e=>r.invoke("settings:saveJevApiKey",{apiKey:e}),removeJevApiKey:()=>r.invoke("settings:removeJevApiKey"),getGithubAuthStatus:()=>r.invoke("settings:githubAuthStatus"),startGithubAuthLogin:()=>r.invoke("settings:startGithubAuthLogin"),cancelGithubAuthLogin:()=>r.invoke("settings:cancelGithubAuthLogin"),logoutGithubAuth:()=>r.invoke("settings:logoutGithubAuth"),getGithubInbox:e=>r.invoke("github:inbox",e??{}),getJiraAuthStatus:()=>r.invoke("jira:authStatus"),startJiraAuthLogin:()=>r.invoke("settings:startJiraAuthLogin"),cancelJiraAuthLogin:()=>r.invoke("settings:cancelJiraAuthLogin"),inputJiraAuthLogin:e=>r.invoke("settings:inputJiraAuthLogin",e),logoutJiraAuth:()=>r.invoke("settings:logoutJiraAuth"),onJiraAuthEvent:e=>r.on("jira-auth:event",t=>e(t)),getJiraInbox:e=>r.invoke("jira:inbox",e??{}),getGithubTaskLinks:e=>r.invoke("github:taskLinks",e??{}),onGithubAuthEvent:e=>r.on("github-auth:event",t=>e(t)),getGitInfo:e=>r.invoke("git:getInfo",e),listRecentProjects:()=>r.invoke("projects:listRecent"),initRepository:e=>r.invoke("git:initRepository",e),detectAgents:()=>r.invoke("env:detectAgents"),listAgentModels:(e,t=!1)=>r.invoke("agents:listModels",{agentId:e,refresh:t}),createTask:e=>r.invoke("vibeflow:createTask",e),updateTask:e=>r.invoke("vibeflow:updateTask",e),resetTaskRun:e=>r.invoke("vibeflow:resetTaskRun",e),removeTask:e=>r.invoke("vibeflow:removeTask",e),getDiff:e=>r.invoke("git:getDiff",e),getDiffEntries:(e,t)=>r.invoke("git:getDiffEntries",e,t),getDiffFile:(e,t)=>r.invoke("git:getDiffFile",e,t),listArtifacts:e=>r.invoke("task:listArtifacts",e),readArtifact:(e,t)=>r.invoke("task:readArtifact",e,t),openArtifactsDir:e=>r.invoke("task:openArtifactsDir",e),getSpecs:e=>r.invoke("task:getSpecs",e),getBoardCliLaunchInfo:()=>r.invoke("board:getCliLaunchInfo"),listLibrary:()=>r.invoke("library:list"),importLibraryEntry:e=>r.invoke("library:import",e),createLibraryEntry:e=>r.invoke("library:create",e),readLibraryEntry:e=>r.invoke("library:read",e),updateLibraryEntry:e=>r.invoke("library:update",e),setLibraryEntryDescription:e=>r.invoke("library:setDescription",e),setLibraryEntryEnabled:e=>r.invoke("library:setEnabled",e),deleteLibraryEntry:e=>r.invoke("library:delete",e),restoreBuiltinSkill:e=>r.invoke("library:restoreBuiltin",e),listRemovedBuiltinSkills:()=>r.invoke("library:removedBuiltins"),approve:(e,t)=>r.invoke("git:approve",{taskId:e,message:t}),generateCommitMessage:e=>r.invoke("git:generateCommitMessage",e),getPrStatus:e=>r.invoke("git:getPrStatus",e),getGithubCompareUrl:e=>r.invoke("git:getGithubCompareUrl",e),openExternal:e=>r.invoke("shell:openExternal",e),pickFolder:e=>r.invoke("dialog:pickFolder",e),cleanupTask:e=>r.invoke("vibeflow:cleanupTask",e),onSubAgentsUpdate:e=>r.on("subagents:update",t=>e(t)),deleteTask:e=>r.invoke("vibeflow:deleteTask",e),getProgress:e=>r.invoke("progress:get",e),onProgressUpdate:e=>r.on("progress:update",t=>e(t)),onProgressNotify:e=>r.on("progress:notify",t=>e(t)),attachments:{write:e=>r.invoke("attachments:write",e)},chat:{load:e=>r.invoke("chat:load",e),send:e=>r.invoke("chat:send",e),cancel:e=>r.invoke("chat:cancel",e),compact:e=>r.invoke("chat:compact",e),onChunk:e=>r.on("chat:chunk",t=>e(t)),onPhase:e=>r.on("chat:phase",t=>e(t))},term:{readFile:(e,t)=>r.invoke("terminal:readFile",{sessionKey:e,path:t}),existingFiles:(e,t)=>r.invoke("terminal:existingFiles",{sessionKey:e,paths:t}),openFile:(e,t)=>r.invoke("terminal:openFile",{sessionKey:e,path:t}),start:e=>r.invoke("pty:start",e),startStandalone:e=>r.invoke("terminal:start",e),renameStandalone:(e,t)=>r.invoke("terminal:rename",{sessionKey:e,title:t}),peek:e=>r.invoke("pty:peek",e),list:()=>r.invoke("sessions:list"),input:(e,t)=>r.send("pty:input",{sessionKey:e,data:t}),resize:(e,t,o)=>r.send("pty:resize",{sessionKey:e,cols:t,rows:o}),kill:e=>r.send("pty:kill",e),isScrolledBack:e=>r.invoke("pty:scrolled",e),scrollToBottom:e=>r.invoke("pty:scroll-bottom",e),sessionExists:e=>r.invoke("claude:sessionExists",e),onData:e=>r.on("pty:data",t=>e(t)),onExit:e=>r.on("pty:exit",t=>e(t))}};o.getVersion().then(e=>{t=e}).catch(()=>{}),window.vibeflow=o}();let g=function({Component:e,pageProps:t}){return(0,s.useEffect)(()=>{let e=requestIdleCallback(m.x);return()=>cancelIdleCallback(e)},[]),(0,o.jsxs)(u,{reducedMotion:"user",children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),(0,o.jsx)("link",{rel:"icon",href:"/logo.svg",type:"image/svg+xml"}),(0,o.jsx)("link",{rel:"apple-touch-icon",href:"/apple-touch-icon.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.webmanifest"}),(0,o.jsx)("meta",{name:"theme-color",content:"#0d1117"})]}),(0,o.jsx)(b,{}),(0,o.jsx)(e,{...t})]})}},19733:()=>{},20446:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(10293)}])},24322:(e,t,r)=>{e.exports=r(2324)},29912:(e,t,r)=>{"use strict";function o(e,t){if(e?.inherit&&t){let{inherit:r,...o}=e;return{...t,...o}}return e}r.d(t,{K:()=>o})},51204:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});let o=e=>!!(e&&e.getVelocity)},53214:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var o=r(75834);function n(e){let t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}},55e3:()=>{},59630:()=>{},67492:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,x:()=>l});var o=r(26514),n=r(75834),a=r(4416);let s=null;function i(e,t,r){return e.getPropertyValue(t).trim()||r}function l(){c().then(e=>e.render("mermaid-warmup","flowchart TD\n A--\x3eB")).catch(()=>{})}function c(){return s??=Promise.all([r.e(4120),r.e(1687),r.e(3927)]).then(r.bind(r,28996)).then(({default:e})=>{let t=getComputedStyle(document.documentElement);return e.initialize({startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0,htmlLabels:!1,theme:"dark",darkMode:!0,fontFamily:i(t,"--font-sans","Inter, system-ui, sans-serif"),themeVariables:{background:i(t,"--card","#212121"),primaryColor:i(t,"--secondary","#262626"),primaryTextColor:i(t,"--foreground","#ededed"),lineColor:i(t,"--muted-foreground","#a1a1a1"),edgeLabelBackground:i(t,"--card","#212121")},flowchart:{useMaxWidth:!0}}),e}).catch(e=>{throw s=null,e})}function d({code:e,compact:t}){let r=`mermaid-${(0,n.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,[s,i]=(0,n.useState)(null),[l,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{let t=!1;return i(null),u(null),c().then(t=>t.render(r,e)).then(e=>{t||i(e.svg)}).catch(e=>{t||u(e instanceof Error?e.message:String(e))}),()=>{t=!0}},[e,r]);let m=(0,o.jsx)("pre",{className:(0,a.cn)("max-w-full overflow-x-auto rounded-md bg-background/70 p-3",t?"text-xs leading-snug":"text-sm"),children:(0,o.jsx)("code",{children:e})});return l?(0,o.jsxs)("div",{className:"not-prose my-3 space-y-2",children:[(0,o.jsxs)("p",{className:"text-xs text-destructive",children:["圖表語法錯誤:",l]}),m]}):s?(0,o.jsx)("div",{className:"not-prose my-3 max-w-full overflow-x-auto rounded-md bg-card p-3 [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:s}}):(0,o.jsx)("div",{className:"not-prose my-3 rounded-md bg-background/70 p-3 text-xs text-muted-foreground",children:"繪製圖表中…"})}},73367:(e,t,r)=>{"use strict";function o(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=function e(t){var r,o,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(o=e(t[r]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{$:()=>o})},73533:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});let o=(0,r(75834).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(20446),t(77269))),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{4416:(e,t,r)=>{"use strict";r.d(t,{cn:()=>eg});var o=r(73367);let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),a=[],s=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let o=e[t],n=r.nextPart.get(o);if(n){let r=s(e,t+1,n);if(r)return r}let a=r.validators;if(null===a)return;let i=0===t?e.join("-"):e.slice(t).join("-"),l=a.length;for(let e=0;e<l;e++){let t=a[e];if(t.validator(i))return t.classGroupId}},i=(e,t)=>{let r=n();for(let o in e)l(e[o],r,o,t);return r},l=(e,t,r,o)=>{let n=e.length;for(let a=0;a<n;a++)c(e[a],t,r,o)},c=(e,t,r,o)=>{"string"==typeof e?d(e,t,r):"function"==typeof e?u(e,t,r,o):m(e,t,r,o)},d=(e,t,r)=>{(""===e?t:p(t,e)).classGroupId=r},u=(e,t,r,o)=>{b(e)?l(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},m=(e,t,r,o)=>{let n=Object.entries(e),a=n.length;for(let e=0;e<a;e++){let[a,s]=n[e];l(s,p(t,a),r,o)}},p=(e,t)=>{let r=e,o=t.split("-"),a=o.length;for(let e=0;e<a;e++){let t=o[e],a=r.nextPart.get(t);a||(a=n(),r.nextPart.set(t,a)),r=a}return r},b=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,g=[],f=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),h=/\s+/,k=e=>{let t;if("string"==typeof e)return e;let r="";for(let o=0;o<e.length;o++)e[o]&&(t=k(e[o]))&&(r&&(r+=" "),r+=t);return r},v=[],w=e=>{let t=t=>t[e]||v;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>z.test(e),C=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),M=e=>e.endsWith("%")&&C(e.slice(0,-1)),N=e=>S.test(e),D=()=>!0,P=e=>j.test(e)&&!A.test(e),J=()=>!1,_=e=>E.test(e),I=e=>L.test(e),W=e=>!B(e)&&!Q(e),O=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),F=e=>en(e,el,J),B=e=>x.test(e),U=e=>en(e,ec,P),$=e=>en(e,ed,C),R=e=>en(e,em,D),V=e=>en(e,eu,J),K=e=>en(e,es,J),q=e=>en(e,ei,I),H=e=>en(e,ep,_),Q=e=>y.test(e),X=e=>ea(e,ec),Y=e=>ea(e,eu),Z=e=>ea(e,es),ee=e=>ea(e,el),et=e=>ea(e,ei),er=e=>ea(e,ep,!0),eo=e=>ea(e,em,!0),en=(e,t,r)=>{let o=x.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},ea=(e,t,r=!1)=>{let o=y.exec(e);return!!o&&(o[1]?t(o[1]):r)},es=e=>"position"===e||"percentage"===e,ei=e=>"image"===e||"url"===e,el=e=>"length"===e||"size"===e||"bg-size"===e,ec=e=>"length"===e,ed=e=>"number"===e,eu=e=>"family-name"===e,em=e=>"number"===e||"weight"===e,ep=e=>"shadow"===e,eb=((e,...t)=>{let r,o,n,l,c=e=>{let t=o(e);if(t)return t;let a=((e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a,postfixLookupClassGroupIds:s}=t,i=[],l=e.trim().split(h),c="";for(let e=l.length-1;e>=0;e-=1){let t,d=l[e],{isExternal:u,modifiers:m,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:g}=r(d);if(u){c=d+(c.length>0?" "+c:c);continue}let f=!!g;if(f){let e=(t=o(b.substring(0,g)))&&s[t]?o(b):void 0;e&&e!==t&&(t=e,f=!1)}else t=o(b);if(!t){if(!f||!(t=o(b))){c=d+(c.length>0?" "+c:c);continue}f=!1}let h=0===m.length?"":1===m.length?m[0]:a(m).join(":"),k=p?h+"!":h,v=k+t;if(i.indexOf(v)>-1)continue;i.push(v);let w=n(t,f);for(let e=0;e<w.length;++e){let t=w[e];i.push(k+t)}c=d+(c.length>0?" "+c:c)}return c})(e,r);return n(e,a),a};return l=d=>{var u;let m;return o=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null),n=(n,a)=>{r[n]=a,++t>e&&(t=0,o=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}})((u=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,o=e=>{let t,r=[],o=0,n=0,a=0,s=e.length;for(let i=0;i<s;i++){let s=e[i];if(0===o&&0===n){if(":"===s){r.push(e.slice(a,i)),a=i+1;continue}if("/"===s){t=i;continue}}"["===s?o++:"]"===s?o--:"("===s?n++:")"===s&&n--}let i=0===r.length?e:e.slice(a),l=i,c=!1;return i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0),f(r,c,l,t&&t>a?t-a:void 0)};if(t){let e=t+":",r=o;o=t=>t.startsWith(e)?r(t.slice(e.length)):f(g,!1,t,void 0,!0)}if(r){let e=o;o=t=>r({className:t,parseClassName:e})}return o})(u),sortModifiers:(m=new Map,u.orderSensitiveModifiers.forEach((e,t)=>{m.set(e,1e6+t)}),e=>{let t=[],r=[];for(let o=0;o<e.length;o++){let n=e[o],a="["===n[0],s=m.has(n);a||s?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(n)):r.push(n)}return r.length>0&&(r.sort(),t.push(...r)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(u),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return i(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,o,n;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(o=(t=r.slice(1,-1)).indexOf(":"),(n=t.slice(0,o))?"arbitrary.."+n:void 0)}let o=e.split("-"),n=+(""===o[0]&&o.length>1);return s(o,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],n=r[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let r=0;r<t.length;r++)e[n.length+r]=t[r];return e}return t}return n||a}return r[e]||a}}})(u)}).cache.get,n=r.cache.set,l=c,c(d)},(...e)=>l(((...e)=>{let t,r,o=0,n="";for(;o<e.length;)(t=e[o++])&&(r=k(t))&&(n&&(n+=" "),n+=r);return n})(...e))})(()=>{let e=w("color"),t=w("font"),r=w("text"),o=w("font-weight"),n=w("tracking"),a=w("leading"),s=w("breakpoint"),i=w("container"),l=w("spacing"),c=w("radius"),d=w("shadow"),u=w("inset-shadow"),m=w("text-shadow"),p=w("drop-shadow"),b=w("blur"),g=w("perspective"),f=w("aspect"),h=w("ease"),k=w("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...x(),Q,B],z=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],j=()=>[Q,B,l],A=()=>[T,"full","auto",...j()],E=()=>[G,"none","subgrid",Q,B],L=()=>["auto",{span:["full",G,Q,B]},G,Q,B],P=()=>[G,"auto",Q,B],J=()=>["auto","min","max","fr",Q,B],_=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...j()],ea=()=>[T,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],es=()=>[T,"screen","full","dvw","lvw","svw","min","max","fit",...j()],ei=()=>[T,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],el=()=>[e,Q,B],ec=()=>[...x(),Z,K,{position:[Q,B]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eu=()=>["auto","cover","contain",ee,F,{size:[Q,B]}],em=()=>[M,X,U],ep=()=>["","none","full",c,Q,B],eb=()=>["",C,X,U],eg=()=>["solid","dashed","dotted","double"],ef=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[C,M,Z,K],ek=()=>["","none",b,Q,B],ev=()=>["none",C,Q,B],ew=()=>["none",C,Q,B],ex=()=>[C,Q,B],ey=()=>[T,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[D],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[W],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",C],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",T,B,Q,f]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,B]}],"container-named":[O],columns:[{columns:[C,B,Q,i]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",Q,B]}],basis:[{basis:[T,"full","auto",i,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,T,"auto","initial","none",B]}],grow:[{grow:["",C,Q,B]}],shrink:[{shrink:["",C,Q,B]}],order:[{order:[G,"first","last","none",Q,B]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[..._(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",..._()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":_()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:ea()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...ei()]}],"min-block-size":[{"min-block":["auto",...ei()]}],"max-block-size":[{"max-block":["none",...ei()]}],w:[{w:[i,"screen",...ea()]}],"min-w":[{"min-w":[i,"screen","none",...ea()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...ea()]}],h:[{h:["screen","lh",...ea()]}],"min-h":[{"min-h":["screen","lh","none",...ea()]}],"max-h":[{"max-h":["screen","lh",...ea()]}],"font-size":[{text:["base",r,X,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,eo,R]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",M,B]}],"font-family":[{font:[Y,V,t]}],"font-features":[{"font-features":[B]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Q,B]}],"line-clamp":[{"line-clamp":[C,"none",Q,$]}],leading:[{leading:[a,...j()]}],"list-image":[{"list-image":["none",Q,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:el()}],"text-color":[{text:el()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eg(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",Q,U]}],"text-decoration-color":[{decoration:el()}],"underline-offset":[{"underline-offset":[C,"auto",Q,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[G,Q,B]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ec()}],"bg-repeat":[{bg:ed()}],"bg-size":[{bg:eu()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,Q,B],radial:["",Q,B],conic:[G,Q,B]},et,q]}],"bg-color":[{bg:el()}],"gradient-from-pos":[{from:em()}],"gradient-via-pos":[{via:em()}],"gradient-to-pos":[{to:em()}],"gradient-from":[{from:el()}],"gradient-via":[{via:el()}],"gradient-to":[{to:el()}],rounded:[{rounded:ep()}],"rounded-s":[{"rounded-s":ep()}],"rounded-e":[{"rounded-e":ep()}],"rounded-t":[{"rounded-t":ep()}],"rounded-r":[{"rounded-r":ep()}],"rounded-b":[{"rounded-b":ep()}],"rounded-l":[{"rounded-l":ep()}],"rounded-ss":[{"rounded-ss":ep()}],"rounded-se":[{"rounded-se":ep()}],"rounded-ee":[{"rounded-ee":ep()}],"rounded-es":[{"rounded-es":ep()}],"rounded-tl":[{"rounded-tl":ep()}],"rounded-tr":[{"rounded-tr":ep()}],"rounded-br":[{"rounded-br":ep()}],"rounded-bl":[{"rounded-bl":ep()}],"border-w":[{border:eb()}],"border-w-x":[{"border-x":eb()}],"border-w-y":[{"border-y":eb()}],"border-w-s":[{"border-s":eb()}],"border-w-e":[{"border-e":eb()}],"border-w-bs":[{"border-bs":eb()}],"border-w-be":[{"border-be":eb()}],"border-w-t":[{"border-t":eb()}],"border-w-r":[{"border-r":eb()}],"border-w-b":[{"border-b":eb()}],"border-w-l":[{"border-l":eb()}],"divide-x":[{"divide-x":eb()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eb()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eg(),"hidden","none"]}],"divide-style":[{divide:[...eg(),"hidden","none"]}],"border-color":[{border:el()}],"border-color-x":[{"border-x":el()}],"border-color-y":[{"border-y":el()}],"border-color-s":[{"border-s":el()}],"border-color-e":[{"border-e":el()}],"border-color-bs":[{"border-bs":el()}],"border-color-be":[{"border-be":el()}],"border-color-t":[{"border-t":el()}],"border-color-r":[{"border-r":el()}],"border-color-b":[{"border-b":el()}],"border-color-l":[{"border-l":el()}],"divide-color":[{divide:el()}],"outline-style":[{outline:[...eg(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,Q,B]}],"outline-w":[{outline:["",C,X,U]}],"outline-color":[{outline:el()}],shadow:[{shadow:["","none",d,er,H]}],"shadow-color":[{shadow:el()}],"inset-shadow":[{"inset-shadow":["none",u,er,H]}],"inset-shadow-color":[{"inset-shadow":el()}],"ring-w":[{ring:eb()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:el()}],"ring-offset-w":[{"ring-offset":[C,U]}],"ring-offset-color":[{"ring-offset":el()}],"inset-ring-w":[{"inset-ring":eb()}],"inset-ring-color":[{"inset-ring":el()}],"text-shadow":[{"text-shadow":["none",m,er,H]}],"text-shadow-color":[{"text-shadow":el()}],opacity:[{opacity:[C,Q,B]}],"mix-blend":[{"mix-blend":[...ef(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ef()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":el()}],"mask-image-linear-to-color":[{"mask-linear-to":el()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":el()}],"mask-image-t-to-color":[{"mask-t-to":el()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":el()}],"mask-image-r-to-color":[{"mask-r-to":el()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":el()}],"mask-image-b-to-color":[{"mask-b-to":el()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":el()}],"mask-image-l-to-color":[{"mask-l-to":el()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":el()}],"mask-image-x-to-color":[{"mask-x-to":el()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":el()}],"mask-image-y-to-color":[{"mask-y-to":el()}],"mask-image-radial":[{"mask-radial":[Q,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":el()}],"mask-image-radial-to-color":[{"mask-radial-to":el()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":el()}],"mask-image-conic-to-color":[{"mask-conic-to":el()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ec()}],"mask-repeat":[{mask:ed()}],"mask-size":[{mask:eu()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,B]}],filter:[{filter:["","none",Q,B]}],blur:[{blur:ek()}],brightness:[{brightness:[C,Q,B]}],contrast:[{contrast:[C,Q,B]}],"drop-shadow":[{"drop-shadow":["","none",p,er,H]}],"drop-shadow-color":[{"drop-shadow":el()}],grayscale:[{grayscale:["",C,Q,B]}],"hue-rotate":[{"hue-rotate":[C,Q,B]}],invert:[{invert:["",C,Q,B]}],saturate:[{saturate:[C,Q,B]}],sepia:[{sepia:["",C,Q,B]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,B]}],"backdrop-blur":[{"backdrop-blur":ek()}],"backdrop-brightness":[{"backdrop-brightness":[C,Q,B]}],"backdrop-contrast":[{"backdrop-contrast":[C,Q,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,Q,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,Q,B]}],"backdrop-invert":[{"backdrop-invert":["",C,Q,B]}],"backdrop-opacity":[{"backdrop-opacity":[C,Q,B]}],"backdrop-saturate":[{"backdrop-saturate":[C,Q,B]}],"backdrop-sepia":[{"backdrop-sepia":["",C,Q,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",Q,B]}],ease:[{ease:["linear","initial",h,Q,B]}],delay:[{delay:[C,Q,B]}],animate:[{animate:["none",k,Q,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Q,B]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ev()}],"rotate-x":[{"rotate-x":ev()}],"rotate-y":[{"rotate-y":ev()}],"rotate-z":[{"rotate-z":ev()}],scale:[{scale:ew()}],"scale-x":[{"scale-x":ew()}],"scale-y":[{"scale-y":ew()}],"scale-z":[{"scale-z":ew()}],"scale-3d":["scale-3d"],skew:[{skew:ex()}],"skew-x":[{"skew-x":ex()}],"skew-y":[{"skew-y":ex()}],transform:[{transform:[Q,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ey()}],"translate-x":[{"translate-x":ey()}],"translate-y":[{"translate-y":ey()}],"translate-z":[{"translate-z":ey()}],"translate-none":["translate-none"],zoom:[{zoom:[G,Q,B]}],accent:[{accent:el()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:el()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":el()}],"scrollbar-track-color":[{"scrollbar-track":el()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,B]}],fill:[{fill:["none",...el()]}],"stroke-w":[{stroke:[C,X,U,$]}],stroke:[{stroke:["none",...el()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function eg(...e){return eb((0,o.$)(e))}},8521:(e,t,r)=>{"use strict";r.d(t,{J:()=>l,D:()=>i});var o=r(51204);let n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function a(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n.has(e)}let s=e=>!a(e);function i(e){"function"==typeof e&&(s=t=>t.startsWith("on")?!a(t):e(t))}try{i(require("@emotion/is-prop-valid").default)}catch{}function l(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!(0,o.S)(e[i])&&(s(i)||!0===r&&a(i)||!t&&!a(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}},10293:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var o=r(26514),n=r(24322),a=r.n(n),s=r(75834),i=r(29912),l=r(73533),c=r(8521),d=r(53214);function u({children:e,isValidProp:t,...r}){t&&(0,c.D)(t);let n=(0,s.useContext)(l.Q);(r={...n,...r}).transition=(0,i.K)(r.transition,n.transition),r.isStatic=(0,d.M)(()=>r.isStatic);let a=(0,s.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion,r.skipAnimations]);return(0,o.jsx)(l.Q.Provider,{value:a,children:e})}var m=r(67492);let p="vibeflow:connection";function b(){let[e,t]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{let e=e=>t(e.detail.connected);return window.addEventListener(p,e),()=>window.removeEventListener(p,e)},[]),e)?null:(0,o.jsx)("div",{role:"status",className:"fixed inset-x-0 top-0 z-50 bg-destructive px-4 py-1.5 text-center text-sm text-destructive-foreground",children:"與 VibeFlow core 的連線中斷,正在重新連線…(agent 仍在背景執行)"})}r(59630),r(19733),r(55e3),function(){if(window.vibeflow)return;let e=`${"https:"===window.location.protocol?"wss":"ws"}://${window.location.host}/ws`,t=null,r=function(e){let t=null,r=1,o=!1,n=!1,a=250,s=[],i=new Map,l=new Map;function c(e,t){for(let r of Array.from(l.get(e)??[]))r(t)}function d(e){let r=JSON.stringify(e);t&&1===t.readyState?t.send(r):s.push(r)}return!function r(){if(n)return;let l=e.connect();t=l,l.onopen=()=>{for(a=250,e.onStatus?.(!0);t&&1===t.readyState&&s.length>0;)t.send(s.shift());o&&e.onReconnect?.(),o=!0},l.onmessage=e=>{let t;try{t=JSON.parse(String(e.data))}catch{return}if("string"==typeof t.event)return void c(t.event,t.payload);let r="number"==typeof t.id?i.get(t.id):void 0;r&&(i.delete(t.id),t.error?r.reject(Object.assign(Error(t.error.message),{code:t.error.code})):r.resolve(null===t.result?void 0:t.result))},l.onerror=()=>{},l.onclose=()=>{if(t===l){for(let[r,o]of(t=null,e.onStatus?.(!1),Array.from(i)))i.delete(r),o.reject(Error("與 VibeFlow core 的連線中斷"));n||(setTimeout(r,a),a=Math.min(2*a,5e3))}}}(),{kind:"ws",invoke(e,...t){let o=r++;return new Promise((r,n)=>{i.set(o,{resolve:r,reject:n}),d({id:o,method:e,params:t})})},send(e,...t){d({method:e,params:t})},on(e,t){let r=l.get(e);return r||l.set(e,r=new Set),r.add(t),()=>{r.delete(t)}},close(){n=!0,t?.close()},dispatch:c}}({connect:()=>new WebSocket(e),onReconnect:()=>{o.getVersion().then(e=>{t&&e!==t&&window.location.reload()}).catch(()=>{}),o.getState().then(e=>r.dispatch("state:changed",e)),o.getUpdateStatus().then(e=>r.dispatch("update:available",e)).catch(()=>{})},onStatus:e=>{window.dispatchEvent(new CustomEvent(p,{detail:{connected:e}}))}}),o={transport:r.kind,getState:()=>r.invoke("vibeflow:getState"),getVersion:()=>r.invoke("app:getVersion"),getUpdateStatus:()=>r.invoke("host:updateStatus"),checkForUpdate:()=>r.invoke("host:checkUpdate"),openUpdateTerminal:()=>r.invoke("host:openUpdateTerminal"),onUpdateAvailable:e=>r.on("update:available",t=>e(t)),onStateChanged:e=>r.on("state:changed",t=>e(t)),setBoard:e=>r.invoke("vibeflow:setBoard",e),setSettings:e=>r.invoke("vibeflow:setSettings",e),getJevKeyStatus:()=>r.invoke("settings:jevKeyStatus"),saveJevApiKey:e=>r.invoke("settings:saveJevApiKey",{apiKey:e}),removeJevApiKey:()=>r.invoke("settings:removeJevApiKey"),getGithubAuthStatus:()=>r.invoke("settings:githubAuthStatus"),startGithubAuthLogin:()=>r.invoke("settings:startGithubAuthLogin"),cancelGithubAuthLogin:()=>r.invoke("settings:cancelGithubAuthLogin"),logoutGithubAuth:()=>r.invoke("settings:logoutGithubAuth"),getGithubInbox:e=>r.invoke("github:inbox",e??{}),getJiraAuthStatus:()=>r.invoke("jira:authStatus"),startJiraAuthLogin:()=>r.invoke("settings:startJiraAuthLogin"),cancelJiraAuthLogin:()=>r.invoke("settings:cancelJiraAuthLogin"),inputJiraAuthLogin:e=>r.invoke("settings:inputJiraAuthLogin",e),logoutJiraAuth:()=>r.invoke("settings:logoutJiraAuth"),onJiraAuthEvent:e=>r.on("jira-auth:event",t=>e(t)),getJiraInbox:e=>r.invoke("jira:inbox",e??{}),getGithubTaskLinks:e=>r.invoke("github:taskLinks",e??{}),onGithubAuthEvent:e=>r.on("github-auth:event",t=>e(t)),getGitInfo:e=>r.invoke("git:getInfo",e),listRecentProjects:()=>r.invoke("projects:listRecent"),initRepository:e=>r.invoke("git:initRepository",e),detectAgents:()=>r.invoke("env:detectAgents"),listAgentModels:(e,t=!1)=>r.invoke("agents:listModels",{agentId:e,refresh:t}),createTask:e=>r.invoke("vibeflow:createTask",e),updateTask:e=>r.invoke("vibeflow:updateTask",e),startTask:e=>r.invoke("vibeflow:startTask",e),taskSummaries:e=>r.invoke("task:summaries",e),resetTaskRun:e=>r.invoke("vibeflow:resetTaskRun",e),removeTask:e=>r.invoke("vibeflow:removeTask",e),getDiff:e=>r.invoke("git:getDiff",e),getDiffEntries:(e,t)=>r.invoke("git:getDiffEntries",e,t),getDiffFile:(e,t)=>r.invoke("git:getDiffFile",e,t),listArtifacts:e=>r.invoke("task:listArtifacts",e),readArtifact:(e,t)=>r.invoke("task:readArtifact",e,t),openArtifactsDir:e=>r.invoke("task:openArtifactsDir",e),getSpecs:e=>r.invoke("task:getSpecs",e),getBoardCliLaunchInfo:()=>r.invoke("board:getCliLaunchInfo"),listLibrary:()=>r.invoke("library:list"),importLibraryEntry:e=>r.invoke("library:import",e),createLibraryEntry:e=>r.invoke("library:create",e),readLibraryEntry:e=>r.invoke("library:read",e),updateLibraryEntry:e=>r.invoke("library:update",e),setLibraryEntryDescription:e=>r.invoke("library:setDescription",e),setLibraryEntryEnabled:e=>r.invoke("library:setEnabled",e),deleteLibraryEntry:e=>r.invoke("library:delete",e),restoreBuiltinSkill:e=>r.invoke("library:restoreBuiltin",e),listRemovedBuiltinSkills:()=>r.invoke("library:removedBuiltins"),approve:(e,t)=>r.invoke("git:approve",{taskId:e,message:t}),generateCommitMessage:e=>r.invoke("git:generateCommitMessage",e),getPrStatus:e=>r.invoke("git:getPrStatus",e),getGithubCompareUrl:e=>r.invoke("git:getGithubCompareUrl",e),openExternal:e=>r.invoke("shell:openExternal",e),pickFolder:e=>r.invoke("dialog:pickFolder",e),cleanupTask:e=>r.invoke("vibeflow:cleanupTask",e),onSubAgentsUpdate:e=>r.on("subagents:update",t=>e(t)),deleteTask:e=>r.invoke("vibeflow:deleteTask",e),getProgress:e=>r.invoke("progress:get",e),onProgressUpdate:e=>r.on("progress:update",t=>e(t)),onProgressNotify:e=>r.on("progress:notify",t=>e(t)),attachments:{write:e=>r.invoke("attachments:write",e)},chat:{load:e=>r.invoke("chat:load",e),send:e=>r.invoke("chat:send",e),cancel:e=>r.invoke("chat:cancel",e),compact:e=>r.invoke("chat:compact",e),onChunk:e=>r.on("chat:chunk",t=>e(t)),onPhase:e=>r.on("chat:phase",t=>e(t))},term:{readFile:(e,t)=>r.invoke("terminal:readFile",{sessionKey:e,path:t}),existingFiles:(e,t)=>r.invoke("terminal:existingFiles",{sessionKey:e,paths:t}),openFile:(e,t)=>r.invoke("terminal:openFile",{sessionKey:e,path:t}),start:e=>r.invoke("pty:start",e),startStandalone:e=>r.invoke("terminal:start",e),renameStandalone:(e,t)=>r.invoke("terminal:rename",{sessionKey:e,title:t}),peek:e=>r.invoke("pty:peek",e),list:()=>r.invoke("sessions:list"),input:(e,t)=>r.send("pty:input",{sessionKey:e,data:t}),resize:(e,t,o)=>r.send("pty:resize",{sessionKey:e,cols:t,rows:o}),kill:e=>r.send("pty:kill",e),isScrolledBack:e=>r.invoke("pty:scrolled",e),scrollToBottom:e=>r.invoke("pty:scroll-bottom",e),sessionExists:e=>r.invoke("claude:sessionExists",e),onData:e=>r.on("pty:data",t=>e(t)),onExit:e=>r.on("pty:exit",t=>e(t))}};o.getVersion().then(e=>{t=e}).catch(()=>{}),window.vibeflow=o}();let g=function({Component:e,pageProps:t}){return(0,s.useEffect)(()=>{let e=requestIdleCallback(m.x);return()=>cancelIdleCallback(e)},[]),(0,o.jsxs)(u,{reducedMotion:"user",children:[(0,o.jsxs)(a(),{children:[(0,o.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"any"}),(0,o.jsx)("link",{rel:"icon",href:"/logo.svg",type:"image/svg+xml"}),(0,o.jsx)("link",{rel:"apple-touch-icon",href:"/apple-touch-icon.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.webmanifest"}),(0,o.jsx)("meta",{name:"theme-color",content:"#0d1117"})]}),(0,o.jsx)(b,{}),(0,o.jsx)(e,{...t})]})}},19733:()=>{},20446:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(10293)}])},24322:(e,t,r)=>{e.exports=r(2324)},29912:(e,t,r)=>{"use strict";function o(e,t){if(e?.inherit&&t){let{inherit:r,...o}=e;return{...t,...o}}return e}r.d(t,{K:()=>o})},51204:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});let o=e=>!!(e&&e.getVelocity)},53214:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var o=r(75834);function n(e){let t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}},55e3:()=>{},59630:()=>{},67492:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,x:()=>l});var o=r(26514),n=r(75834),a=r(4416);let s=null;function i(e,t,r){return e.getPropertyValue(t).trim()||r}function l(){c().then(e=>e.render("mermaid-warmup","flowchart TD\n A--\x3eB")).catch(()=>{})}function c(){return s??=Promise.all([r.e(4120),r.e(1687),r.e(3927)]).then(r.bind(r,28996)).then(({default:e})=>{let t=getComputedStyle(document.documentElement);return e.initialize({startOnLoad:!1,securityLevel:"strict",suppressErrorRendering:!0,htmlLabels:!1,theme:"dark",darkMode:!0,fontFamily:i(t,"--font-sans","Inter, system-ui, sans-serif"),themeVariables:{background:i(t,"--card","#212121"),primaryColor:i(t,"--secondary","#262626"),primaryTextColor:i(t,"--foreground","#ededed"),lineColor:i(t,"--muted-foreground","#a1a1a1"),edgeLabelBackground:i(t,"--card","#212121")},flowchart:{useMaxWidth:!0}}),e}).catch(e=>{throw s=null,e})}function d({code:e,compact:t}){let r=`mermaid-${(0,n.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,[s,i]=(0,n.useState)(null),[l,u]=(0,n.useState)(null);(0,n.useEffect)(()=>{let t=!1;return i(null),u(null),c().then(t=>t.render(r,e)).then(e=>{t||i(e.svg)}).catch(e=>{t||u(e instanceof Error?e.message:String(e))}),()=>{t=!0}},[e,r]);let m=(0,o.jsx)("pre",{className:(0,a.cn)("max-w-full overflow-x-auto rounded-md bg-background/70 p-3",t?"text-xs leading-snug":"text-sm"),children:(0,o.jsx)("code",{children:e})});return l?(0,o.jsxs)("div",{className:"not-prose my-3 space-y-2",children:[(0,o.jsxs)("p",{className:"text-xs text-destructive",children:["圖表語法錯誤:",l]}),m]}):s?(0,o.jsx)("div",{className:"not-prose my-3 max-w-full overflow-x-auto rounded-md bg-card p-3 [&_svg]:max-w-full",dangerouslySetInnerHTML:{__html:s}}):(0,o.jsx)("div",{className:"not-prose my-3 rounded-md bg-background/70 p-3 text-xs text-muted-foreground",children:"繪製圖表中…"})}},73367:(e,t,r)=>{"use strict";function o(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=function e(t){var r,o,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(o=e(t[r]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{$:()=>o})},73533:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});let o=(0,r(75834).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(20446),t(77269))),_N_E=e.O()}]);
|