markdown-flow-ui 0.2.36-dev.1 → 0.3.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/_virtual/index.es10.js +2 -2
- package/dist/_virtual/index.es3.js +5 -4
- package/dist/_virtual/index.es3.js.map +1 -1
- package/dist/_virtual/index.es4.js +4 -5
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es5.js +5 -5
- package/dist/_virtual/index.es6.js +5 -3
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/_virtual/index.es7.js +3 -5
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index.es9.js +2 -2
- package/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/variable-marker.cjs +2 -0
- package/dist/_virtual/variable-marker.cjs.map +1 -0
- package/dist/_virtual/variable-marker.es.js +5 -0
- package/dist/_virtual/variable-marker.es.js.map +1 -0
- package/dist/components/ContentRender/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.es.js +206 -205
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/utils/inline-code-ranges.cjs +9 -9
- package/dist/components/ContentRender/utils/inline-code-ranges.cjs.map +1 -1
- package/dist/components/ContentRender/utils/inline-code-ranges.d.ts +3 -0
- package/dist/components/ContentRender/utils/inline-code-ranges.es.js +185 -161
- package/dist/components/ContentRender/utils/inline-code-ranges.es.js.map +1 -1
- package/dist/components/ContentRender/utils/mermaid-parse.cjs +4 -4
- package/dist/components/ContentRender/utils/mermaid-parse.cjs.map +1 -1
- package/dist/components/ContentRender/utils/mermaid-parse.es.js +53 -48
- package/dist/components/ContentRender/utils/mermaid-parse.es.js.map +1 -1
- package/dist/components/ContentRender/utils/split-content.cjs +6 -6
- package/dist/components/ContentRender/utils/split-content.cjs.map +1 -1
- package/dist/components/ContentRender/utils/split-content.d.ts +1 -0
- package/dist/components/ContentRender/utils/split-content.es.js +361 -313
- package/dist/components/ContentRender/utils/split-content.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +278 -283
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +57 -58
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +19 -19
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +5 -5
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +15 -15
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +13 -13
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +15 -15
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +177 -176
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs +2 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.d.ts +3 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js +38 -55
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.d.ts +2 -2
- package/dist/components/MarkdownFlowEditor/utils.es.js +34 -31
- package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/lib/interaction-defaults.cjs +1 -1
- package/dist/lib/interaction-defaults.cjs.map +1 -1
- package/dist/lib/interaction-defaults.es.js +124 -133
- package/dist/lib/interaction-defaults.es.js.map +1 -1
- package/dist/lib/interaction-defaults.failure.test.d.ts +1 -0
- package/dist/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.es.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/escaping.cjs +2 -2
- package/dist/node_modules/remark-flow/dist/escaping.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/escaping.es.js +128 -63
- package/dist/node_modules/remark-flow/dist/escaping.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/index.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/index.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/index.es.js +49 -37
- package/dist/node_modules/remark-flow/dist/index.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +260 -255
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +71 -42
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js +500 -46
- package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/variable-marker.cjs +2 -0
- package/dist/node_modules/remark-flow/dist/variable-marker.cjs.map +1 -0
- package/dist/node_modules/remark-flow/dist/variable-marker.es.js +77 -0
- package/dist/node_modules/remark-flow/dist/variable-marker.es.js.map +1 -0
- package/dist/node_modules/remark-flow/dist/variable-name.cjs +14 -1
- package/dist/node_modules/remark-flow/dist/variable-name.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/variable-name.es.js +742 -25
- package/dist/node_modules/remark-flow/dist/variable-name.es.js.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/dist/node_modules/unified/lib/index.cjs +1 -1
- package/dist/node_modules/unified/lib/index.es.js +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunk-VIW5F6AA.cjs"),Z=require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunk-VIW5F6AA.cjs"),Z=require("../../../../../_virtual/index7.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const M=require("../../../../lodash-es/memoize.cjs"),V=require("../../../../lodash-es/merge.cjs"),b=require("../../../../d3-shape/src/curve/step.cjs"),K=require("../../../../d3-shape/src/curve/natural.cjs"),P=require("../../../../d3-shape/src/curve/monotone.cjs"),Q=require("../../../../d3-shape/src/curve/linearClosed.cjs"),ee=require("../../../../d3-shape/src/curve/linear.cjs"),te=require("../../../../d3-shape/src/curve/catmullRom.cjs"),ne=require("../../../../d3-shape/src/curve/catmullRomOpen.cjs"),re=require("../../../../d3-shape/src/curve/catmullRomClosed.cjs"),ie=require("../../../../d3-shape/src/curve/cardinal.cjs"),ae=require("../../../../d3-shape/src/curve/cardinalOpen.cjs"),oe=require("../../../../d3-shape/src/curve/cardinalClosed.cjs"),se=require("../../../../d3-shape/src/curve/bundle.cjs"),L=require("../../../../d3-shape/src/curve/bump.cjs"),ce=require("../../../../d3-shape/src/curve/basisOpen.cjs"),le=require("../../../../d3-shape/src/curve/basisClosed.cjs"),ue=require("../../../../d3-shape/src/curve/basis.cjs"),de=require("../../../../d3-selection/src/select.cjs");var F="",he={curveBasis:ue.default,curveBasisClosed:le.default,curveBasisOpen:ce.default,curveBumpX:L.bumpX,curveBumpY:L.bumpY,curveBundle:se.default,curveCardinalClosed:oe.default,curveCardinalOpen:ae.default,curveCardinal:ie.default,curveCatmullRomClosed:re.default,curveCatmullRomOpen:ne.default,curveCatmullRom:te.default,curveLinear:ee.default,curveLinearClosed:Q.default,curveMonotoneX:P.monotoneX,curveMonotoneY:P.monotoneY,curveNatural:K.default,curveStep:b.default,curveStepAfter:b.stepAfter,curveStepBefore:b.stepBefore},fe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,me=o.__name(function(t,e){const r=R(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(l=>l.args);o.sanitizeDirective(s),n=o.assignWithDepth_default(n,[...s])}else n=r.args;if(!n)return;let i=o.detectType(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),R=o.__name(function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${fe.source})(?=[}][%]{2}).*
|
|
2
2
|
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),o.log.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const i=[];for(;(n=o.directiveRegex.exec(t))!==null;)if(n.index===o.directiveRegex.lastIndex&&o.directiveRegex.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const a=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:a,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return o.log.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),ge=o.__name(function(t){return t.replace(o.directiveRegex,"")},"removeDirectives"),ve=o.__name(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function w(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return he[r]??e}o.__name(w,"interpolateToCurve");function D(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?Z.distExports.sanitizeUrl(r):r}o.__name(D,"formatUrl");var _e=o.__name((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let s=0;s<n;s++)if(a=a[r[s]],!a){o.log.error(`Function name: ${t} not found in window`);return}a[i](...e)},"runFunc");function $(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}o.__name($,"distance");function O(t){let e,r=0;t.forEach(i=>{r+=$(i,e),e=i});const n=r/2;return S(t,n)}o.__name(O,"traverseEdge");function N(t){return t.length===1?t[0]:O(t)}o.__name(N,"calcLabelPosition");var q=o.__name((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),S=o.__name((t,e)=>{let r,n=e;for(const i of t){if(r){const a=$(i,r);if(a===0)return r;if(a<n)n-=a;else{const s=n/a;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:q((1-s)*r.x+s*i.x,5),y:q((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ye=o.__name((t,e,r)=>{o.log.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=S(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(e[0].x+i.x)/2,l.y=-Math.cos(s)*a+(e[0].y+i.y)/2,l},"calcCardinalityPosition");function H(t,e,r){const n=structuredClone(r);o.log.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=S(n,i),s=10+t*.5,l=Math.atan2(n[0].y-a.y,n[0].x-a.x),c={x:0,y:0};return e==="start_left"?(c.x=Math.sin(l+Math.PI)*s+(n[0].x+a.x)/2,c.y=-Math.cos(l+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(c.x=Math.sin(l-Math.PI)*s+(n[0].x+a.x)/2-5,c.y=-Math.cos(l-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(c.x=Math.sin(l)*s+(n[0].x+a.x)/2-5,c.y=-Math.cos(l)*s+(n[0].y+a.y)/2-5):(c.x=Math.sin(l)*s+(n[0].x+a.x)/2,c.y=-Math.cos(l)*s+(n[0].y+a.y)/2),c}o.__name(H,"calcTerminalLabelPosition");function C(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}o.__name(C,"getStylesFromArray");var A=0,z=o.__name(()=>(A++,"id-"+Math.random().toString(36).substr(2,12)+"-"+A),"generateId");function j(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}o.__name(j,"makeRandomHex");var U=o.__name(t=>j(t.length),"random"),xe=o.__name(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),pe=o.__name(function(t,e){const r=e.text.replace(o.common_default.lineBreakRegex," "),[,n]=p(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),k=M.default((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),o.common_default.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let a="";return n.forEach((s,l)=>{const c=m(`${s} `,r),u=m(a,r);if(c>e){const{hyphenatedStrings:g,remainingWord:d}=be(s,e,"-",r);i.push(a,...g),a=d}else u+c>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),be=M.default((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let s="";return i.forEach((l,c)=>{const u=`${s}${l}`;if(m(u,n)>=e){const _=c+1,g=i.length===_,d=`${u}${r}`;a.push(g?u:d),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function E(t,e){return T(t,e).height}o.__name(E,"calculateTextHeight");function m(t,e){return T(t,e).width}o.__name(m,"calculateTextWidth");var T=M.default((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,a]=p(r),s=["sans-serif",n],l=t.split(o.common_default.lineBreakRegex),c=[],u=de.default("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const v=u.append("svg");for(const g of s){let d=0;const h={width:0,height:0,lineHeight:0};for(const J of l){const I=xe();I.text=J||F;const B=pe(v,I).style("font-size",a).style("font-weight",i).style("font-family",g),y=(B._groups||B)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");h.width=Math.round(Math.max(h.width,y.width)),d=Math.round(y.height),h.height+=d,h.lineHeight=Math.round(Math.max(h.lineHeight,d))}c.push(h)}v.remove();const _=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[_]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),f,Me=(f=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},o.__name(f,"InitIDGenerator"),f),x,we=o.__name(function(t){return x=x||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),x.innerHTML=t,unescape(x.textContent)},"entityDecode");function X(t){return"str"in t}o.__name(X,"isDetailedError");var $e=o.__name((t,e,r,n)=>{if(!n)return;const i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),p=o.__name(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function W(t,e){return V.default({},t,e)}o.__name(W,"cleanAndMerge");var Se={assignWithDepth:o.assignWithDepth_default,wrapLabel:k,calculateTextHeight:E,calculateTextWidth:m,calculateTextDimensions:T,cleanAndMerge:W,detectInit:me,detectDirective:R,isSubstringInArray:ve,interpolateToCurve:w,calcLabelPosition:N,calcCardinalityPosition:ye,calcTerminalLabelPosition:H,formatUrl:D,getStylesFromArray:C,generateId:z,random:U,runFunc:_e,entityDecode:we,insertTitle:$e,isLabelCoordinateInPath:G,parseFontSize:p,InitIDGenerator:Me},Ce=o.__name(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),e},"encodeEntities"),Ee=o.__name(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Te=o.__name((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function Y(t){return t??null}o.__name(Y,"handleUndefinedAttr");function G(t,e){const r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return i.includes(r.toString())||i.includes(n.toString())}o.__name(G,"isLabelCoordinateInPath");exports.ZERO_WIDTH_SPACE=F;exports.calculateTextHeight=E;exports.calculateTextWidth=m;exports.cleanAndMerge=W;exports.decodeEntities=Ee;exports.encodeEntities=Ce;exports.generateId=z;exports.getEdgeId=Te;exports.getStylesFromArray=C;exports.handleUndefinedAttr=Y;exports.interpolateToCurve=w;exports.isDetailedError=X;exports.parseFontSize=p;exports.random=U;exports.removeDirectives=ge;exports.utils_default=Se;exports.wrapLabel=k;
|
|
3
3
|
//# sourceMappingURL=chunk-U37J5Y7L.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __name as s, log as g, common_default as b, assignWithDepth_default as E, directiveRegex as $, sanitizeDirective as X, detectType as Y } from "./chunk-VIW5F6AA.es.js";
|
|
2
|
-
import { d as G } from "../../../../../_virtual/index.
|
|
2
|
+
import { d as G } from "../../../../../_virtual/index.es7.js";
|
|
3
3
|
import "../../../../d3-transition/src/selection/index.es.js";
|
|
4
4
|
import "../../../../d3-zoom/src/transform.es.js";
|
|
5
5
|
import w from "../../../../lodash-es/memoize.es.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("./chunk-U37J5Y7L.cjs"),i=require("./chunk-VIW5F6AA.cjs"),it=require("../../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("./chunk-U37J5Y7L.cjs"),i=require("./chunk-VIW5F6AA.cjs"),it=require("../../../../../_virtual/index7.cjs"),L=require("../../../../../_virtual/dayjs.min.cjs"),rt=require("../../../../../_virtual/isoWeek.cjs"),st=require("../../../../../_virtual/customParseFormat.cjs"),ct=require("../../../../../_virtual/advancedFormat.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const lt=require("../../../../d3-scale/src/time.cjs"),ot=require("../../../../d3-array/src/min.cjs"),ut=require("../../../../d3-array/src/max.cjs"),dt=require("../../../../d3-scale/src/linear.cjs"),ft=require("../../../../d3-interpolate/src/hcl.cjs"),We=require("../../../../d3-axis/src/axis.cjs"),Oe=require("../../../../d3-time-format/src/defaultLocale.cjs"),Pe=require("../../../../d3-time/src/month.cjs"),j=require("../../../../d3-time/src/week.cjs"),Re=require("../../../../d3-time/src/day.cjs"),Ye=require("../../../../d3-time/src/hour.cjs"),Be=require("../../../../d3-time/src/minute.cjs"),Ne=require("../../../../d3-time/src/second.cjs"),ze=require("../../../../d3-time/src/millisecond.cjs"),de=require("../../../../d3-selection/src/select.cjs");var pe=(function(){var e=i.__name(function(T,o,d,f){for(d=d||{},f=T.length;f--;d[T[f]]=o);return d},"o"),a=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],r=[1,26],c=[1,27],s=[1,28],k=[1,29],m=[1,30],q=[1,31],R=[1,32],Y=[1,33],E=[1,34],F=[1,9],N=[1,10],W=[1,11],O=[1,12],x=[1,13],Z=[1,14],$=[1,15],ee=[1,16],te=[1,19],ne=[1,20],ae=[1,21],ie=[1,22],re=[1,23],y=[1,25],p=[1,35],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:i.__name(function(o,d,f,u,h,n,l){var t=n.length-1;switch(h){case 1:return n[t-1];case 2:this.$=[];break;case 3:n[t-1].push(n[t]),this.$=n[t-1];break;case 4:case 5:this.$=n[t];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[t].substr(11)),this.$=n[t].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[t].substr(18);break;case 19:u.TopAxis(),this.$=n[t].substr(8);break;case 20:u.setAxisFormat(n[t].substr(11)),this.$=n[t].substr(11);break;case 21:u.setTickInterval(n[t].substr(13)),this.$=n[t].substr(13);break;case 22:u.setExcludes(n[t].substr(9)),this.$=n[t].substr(9);break;case 23:u.setIncludes(n[t].substr(9)),this.$=n[t].substr(9);break;case 24:u.setTodayMarker(n[t].substr(12)),this.$=n[t].substr(12);break;case 27:u.setDiagramTitle(n[t].substr(6)),this.$=n[t].substr(6);break;case 28:this.$=n[t].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[t].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[t].substr(8)),this.$=n[t].substr(8);break;case 33:u.addTask(n[t-1],n[t]),this.$="task";break;case 34:this.$=n[t-1],u.setClickEvent(n[t-1],n[t],null);break;case 35:this.$=n[t-2],u.setClickEvent(n[t-2],n[t-1],n[t]);break;case 36:this.$=n[t-2],u.setClickEvent(n[t-2],n[t-1],null),u.setLink(n[t-2],n[t]);break;case 37:this.$=n[t-3],u.setClickEvent(n[t-3],n[t-2],n[t-1]),u.setLink(n[t-3],n[t]);break;case 38:this.$=n[t-2],u.setClickEvent(n[t-2],n[t],null),u.setLink(n[t-2],n[t-1]);break;case 39:this.$=n[t-3],u.setClickEvent(n[t-3],n[t-1],n[t]),u.setLink(n[t-3],n[t-2]);break;case 40:this.$=n[t-1],u.setLink(n[t-1],n[t]);break;case 41:case 47:this.$=n[t-1]+" "+n[t];break;case 42:case 43:case 45:this.$=n[t-2]+" "+n[t-1]+" "+n[t];break;case 44:case 46:this.$=n[t-3]+" "+n[t-2]+" "+n[t-1]+" "+n[t];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(a,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:r,13:c,14:s,15:k,16:m,17:q,18:R,19:18,20:Y,21:E,22:F,23:N,24:W,25:O,26:x,27:Z,28:$,29:ee,30:te,31:ne,33:ae,35:ie,36:re,37:24,38:y,40:p},e(a,[2,7],{1:[2,1]}),e(a,[2,3]),{9:36,11:17,12:r,13:c,14:s,15:k,16:m,17:q,18:R,19:18,20:Y,21:E,22:F,23:N,24:W,25:O,26:x,27:Z,28:$,29:ee,30:te,31:ne,33:ae,35:ie,36:re,37:24,38:y,40:p},e(a,[2,5]),e(a,[2,6]),e(a,[2,17]),e(a,[2,18]),e(a,[2,19]),e(a,[2,20]),e(a,[2,21]),e(a,[2,22]),e(a,[2,23]),e(a,[2,24]),e(a,[2,25]),e(a,[2,26]),e(a,[2,27]),{32:[1,37]},{34:[1,38]},e(a,[2,30]),e(a,[2,31]),e(a,[2,32]),{39:[1,39]},e(a,[2,8]),e(a,[2,9]),e(a,[2,10]),e(a,[2,11]),e(a,[2,12]),e(a,[2,13]),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{41:[1,40],43:[1,41]},e(a,[2,4]),e(a,[2,28]),e(a,[2,29]),e(a,[2,33]),e(a,[2,34],{42:[1,42],43:[1,43]}),e(a,[2,40],{41:[1,44]}),e(a,[2,35],{43:[1,45]}),e(a,[2,36]),e(a,[2,38],{42:[1,46]}),e(a,[2,37]),e(a,[2,39])],defaultActions:{},parseError:i.__name(function(o,d){if(d.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=d,f}},"parseError"),parse:i.__name(function(o){var d=this,f=[0],u=[],h=[null],n=[],l=this.table,t="",D=0,b=0,w=2,A=1,C=n.slice.call(arguments,1),S=Object.create(this.lexer),z={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(z.yy[ye]=this.yy[ye]);S.setInput(o,z.yy),z.yy.lexer=S,z.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var ge=S.yylloc;n.push(ge);var tt=S.options&&S.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(V){f.length=f.length-2*V,h.length=h.length-V,n.length=n.length-V}i.__name(nt,"popStack");function qe(){var V;return V=u.pop()||S.lex()||A,typeof V!="number"&&(V instanceof Array&&(u=V,V=u.pop()),V=d.symbols_[V]||V),V}i.__name(qe,"lex");for(var M,X,P,_e,J={},oe,U,Ve,ue;;){if(X=f[f.length-1],this.defaultActions[X]?P=this.defaultActions[X]:((M===null||typeof M>"u")&&(M=qe()),P=l[X]&&l[X][M]),typeof P>"u"||!P.length||!P[0]){var ve="";ue=[];for(oe in l[X])this.terminals_[oe]&&oe>w&&ue.push("'"+this.terminals_[oe]+"'");S.showPosition?ve="Parse error on line "+(D+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+ue.join(", ")+", got '"+(this.terminals_[M]||M)+"'":ve="Parse error on line "+(D+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(ve,{text:S.match,token:this.terminals_[M]||M,line:S.yylineno,loc:ge,expected:ue})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+M);switch(P[0]){case 1:f.push(M),h.push(S.yytext),n.push(S.yylloc),f.push(P[1]),M=null,b=S.yyleng,t=S.yytext,D=S.yylineno,ge=S.yylloc;break;case 2:if(U=this.productions_[P[1]][1],J.$=h[h.length-U],J._$={first_line:n[n.length-(U||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(U||1)].first_column,last_column:n[n.length-1].last_column},tt&&(J._$.range=[n[n.length-(U||1)].range[0],n[n.length-1].range[1]]),_e=this.performAction.apply(J,[t,b,D,z.yy,P[1],h,n].concat(C)),typeof _e<"u")return _e;U&&(f=f.slice(0,-1*U*2),h=h.slice(0,-1*U),n=n.slice(0,-1*U)),f.push(this.productions_[P[1]][0]),h.push(J.$),n.push(J._$),Ve=l[f[f.length-2]][f[f.length-1]],f.push(Ve);break;case 3:return!0}}return!0},"parse")},v=(function(){var T={EOF:1,parseError:i.__name(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),setInput:i.__name(function(o,d){return this.yy=d||this.yy||{},this._input=o,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:i.__name(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:i.__name(function(o){var d=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),f.length-1&&(this.yylineno-=f.length-1);var h=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:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(o){this.unput(this.match.slice(o))},"less"),pastInput:i.__name(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { utils_default as ie } from "./chunk-U37J5Y7L.es.js";
|
|
2
2
|
import { __name as c, getAccDescription as se, setAccDescription as ne, getDiagramTitle as ae, setDiagramTitle as oe, getAccTitle as ce, setAccTitle as le, getConfig2 as K, configureSvgSize as ue, log as mt, common_default as de, clear as fe } from "./chunk-VIW5F6AA.es.js";
|
|
3
|
-
import { d as he } from "../../../../../_virtual/index.
|
|
3
|
+
import { d as he } from "../../../../../_virtual/index.es7.js";
|
|
4
4
|
import L from "../../../../../_virtual/dayjs.min.es.js";
|
|
5
5
|
import me from "../../../../../_virtual/isoWeek.es.js";
|
|
6
6
|
import ke from "../../../../../_virtual/customParseFormat.es.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("./chunk-OMD6QJNC.cjs"),ie=require("./chunk-FHKO5MBM.cjs"),O=require("./chunk-U37J5Y7L.cjs"),s=require("./chunk-VIW5F6AA.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Wt=require("../../../../../_virtual/index6.cjs"),yt=require("../../../../d3-selection/src/select.cjs");var kt=(function(){var e=s.__name(function(ot,b,w,L){for(w=w||{},L=ot.length;L--;w[ot[L]]=b);return w},"o"),t=[1,2],l=[1,3],a=[1,4],r=[2,4],n=[1,9],o=[1,11],d=[1,13],u=[1,14],i=[1,16],f=[1,17],T=[1,18],g=[1,24],x=[1,25],y=[1,26],v=[1,27],P=[1,28],D=[1,29],N=[1,30],B=[1,31],R=[1,32],F=[1,33],W=[1,34],U=[1,35],Z=[1,36],q=[1,37],z=[1,38],Y=[1,39],S=[1,41],G=[1,42],H=[1,43],X=[1,44],j=[1,45],k=[1,46],_=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],I=[4,5,16,50,52,53],J=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Dt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],st=[68,69,70],it=[1,122],vt={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:s.__name(function(b,w,L,E,M,h,mt){var p=h.length-1;switch(M){case 3:return E.apply(h[p]),h[p];case 4:case 9:this.$=[];break;case 5:case 10:h[p-1].push(h[p]),this.$=h[p-1];break;case 6:case 7:case 11:case 12:this.$=h[p];break;case 8:case 13:this.$=[];break;case 15:h[p].type="createParticipant",this.$=h[p];break;case 16:h[p-1].unshift({type:"boxStart",boxData:E.parseBoxData(h[p-2])}),h[p-1].push({type:"boxEnd",boxText:h[p-2]}),this.$=h[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[p-2]),sequenceIndexStep:Number(h[p-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:h[p-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:h[p-1].actor};break;case 29:E.setDiagramTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 30:E.setDiagramTitle(h[p].substring(7)),this.$=h[p].substring(7);break;case 31:this.$=h[p].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=h[p].trim(),E.setAccDescription(this.$);break;case 34:h[p-1].unshift({type:"loopStart",loopText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.LOOP_START}),h[p-1].push({type:"loopEnd",loopText:h[p-2],signalType:E.LINETYPE.LOOP_END}),this.$=h[p-1];break;case 35:h[p-1].unshift({type:"rectStart",color:E.parseMessage(h[p-2]),signalType:E.LINETYPE.RECT_START}),h[p-1].push({type:"rectEnd",color:E.parseMessage(h[p-2]),signalType:E.LINETYPE.RECT_END}),this.$=h[p-1];break;case 36:h[p-1].unshift({type:"optStart",optText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.OPT_START}),h[p-1].push({type:"optEnd",optText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.OPT_END}),this.$=h[p-1];break;case 37:h[p-1].unshift({type:"altStart",altText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.ALT_START}),h[p-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=h[p-1];break;case 38:h[p-1].unshift({type:"parStart",parText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.PAR_START}),h[p-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=h[p-1];break;case 39:h[p-1].unshift({type:"parStart",parText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.PAR_OVER_START}),h[p-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=h[p-1];break;case 40:h[p-1].unshift({type:"criticalStart",criticalText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.CRITICAL_START}),h[p-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=h[p-1];break;case 41:h[p-1].unshift({type:"breakStart",breakText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.BREAK_START}),h[p-1].push({type:"breakEnd",optText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.BREAK_END}),this.$=h[p-1];break;case 43:this.$=h[p-3].concat([{type:"option",optionText:E.parseMessage(h[p-1]),signalType:E.LINETYPE.CRITICAL_OPTION},h[p]]);break;case 45:this.$=h[p-3].concat([{type:"and",parText:E.parseMessage(h[p-1]),signalType:E.LINETYPE.PAR_AND},h[p]]);break;case 47:this.$=h[p-3].concat([{type:"else",altText:E.parseMessage(h[p-1]),signalType:E.LINETYPE.ALT_ELSE},h[p]]);break;case 48:h[p-3].draw="participant",h[p-3].type="addParticipant",h[p-3].description=E.parseMessage(h[p-1]),this.$=h[p-3];break;case 49:h[p-1].draw="participant",h[p-1].type="addParticipant",this.$=h[p-1];break;case 50:h[p-3].draw="actor",h[p-3].type="addParticipant",h[p-3].description=E.parseMessage(h[p-1]),this.$=h[p-3];break;case 51:h[p-1].draw="actor",h[p-1].type="addParticipant",this.$=h[p-1];break;case 52:h[p-1].type="destroyParticipant",this.$=h[p-1];break;case 53:this.$=[h[p-1],{type:"addNote",placement:h[p-2],actor:h[p-1].actor,text:h[p]}];break;case 54:h[p-2]=[].concat(h[p-1],h[p-1]).slice(0,2),h[p-2][0]=h[p-2][0].actor,h[p-2][1]=h[p-2][1].actor,this.$=[h[p-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:h[p-2].slice(0,2),text:h[p]}];break;case 55:this.$=[h[p-1],{type:"addLinks",actor:h[p-1].actor,text:h[p]}];break;case 56:this.$=[h[p-1],{type:"addALink",actor:h[p-1].actor,text:h[p]}];break;case 57:this.$=[h[p-1],{type:"addProperties",actor:h[p-1].actor,text:h[p]}];break;case 58:this.$=[h[p-1],{type:"addDetails",actor:h[p-1].actor,text:h[p]}];break;case 61:this.$=[h[p-2],h[p]];break;case 62:this.$=h[p];break;case 63:this.$=E.PLACEMENT.LEFTOF;break;case 64:this.$=E.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[p-4],h[p-1],{type:"addMessage",from:h[p-4].actor,to:h[p-1].actor,signalType:h[p-3],msg:h[p],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:h[p-1].actor}];break;case 66:this.$=[h[p-4],h[p-1],{type:"addMessage",from:h[p-4].actor,to:h[p-1].actor,signalType:h[p-3],msg:h[p]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:h[p-4].actor}];break;case 67:this.$=[h[p-3],h[p-1],{type:"addMessage",from:h[p-3].actor,to:h[p-1].actor,signalType:h[p-2],msg:h[p]}];break;case 68:this.$={type:"addParticipant",actor:h[p]};break;case 69:this.$=E.LINETYPE.SOLID_OPEN;break;case 70:this.$=E.LINETYPE.DOTTED_OPEN;break;case 71:this.$=E.LINETYPE.SOLID;break;case 72:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=E.LINETYPE.DOTTED;break;case 74:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=E.LINETYPE.SOLID_CROSS;break;case 76:this.$=E.LINETYPE.DOTTED_CROSS;break;case 77:this.$=E.LINETYPE.SOLID_POINT;break;case 78:this.$=E.LINETYPE.DOTTED_POINT;break;case 79:this.$=E.parseMessage(h[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:l,6:a},{1:[3]},{3:5,4:t,5:l,6:a},{3:6,4:t,5:l,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,12:12,13:d,14:u,17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},e(_,[2,5]),{9:47,12:12,13:d,14:u,17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},e(_,[2,7]),e(_,[2,8]),e(_,[2,14]),{12:48,50:q,52:z,53:Y},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:k},{22:55,70:k},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(_,[2,29]),e(_,[2,30]),{32:[1,61]},{34:[1,62]},e(_,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:k},{22:72,70:k},{22:73,70:k},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:k},{22:90,70:k},{22:91,70:k},{22:92,70:k},e([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),e(_,[2,6]),e(_,[2,15]),e(I,[2,9],{10:93}),e(_,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},e(_,[2,21]),{5:[1,97]},{5:[1,98]},e(_,[2,24]),e(_,[2,25]),e(_,[2,26]),e(_,[2,27]),e(_,[2,28]),e(_,[2,31]),e(_,[2,32]),e(J,r,{7:99}),e(J,r,{7:100}),e(J,r,{7:101}),e(tt,r,{40:102,7:103}),e(A,r,{42:104,7:105}),e(A,r,{7:105,42:106}),e(Dt,r,{45:107,7:108}),e(J,r,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:k},e(st,[2,69]),e(st,[2,70]),e(st,[2,71]),e(st,[2,72]),e(st,[2,73]),e(st,[2,74]),e(st,[2,75]),e(st,[2,76]),e(st,[2,77]),e(st,[2,78]),{22:118,70:k},{22:120,58:119,70:k},{70:[2,63]},{70:[2,64]},{56:121,81:it},{56:123,81:it},{56:124,81:it},{56:125,81:it},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:q,52:z,53:Y},{5:[1,131]},e(_,[2,19]),e(_,[2,20]),e(_,[2,22]),e(_,[2,23]),{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,132],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,133],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,134],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{16:[1,135]},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[2,46],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,49:[1,136],50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{16:[1,137]},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[2,44],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,48:[1,138],50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{16:[1,139]},{16:[1,140]},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[2,42],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,47:[1,141],50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,142],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{15:[1,143]},e(_,[2,49]),{15:[1,144]},e(_,[2,51]),e(_,[2,52]),{22:145,70:k},{22:146,70:k},{56:147,81:it},{56:148,81:it},{56:149,81:it},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(_,[2,16]),e(I,[2,10]),{12:151,50:q,52:z,53:Y},e(I,[2,12]),e(I,[2,13]),e(_,[2,18]),e(_,[2,34]),e(_,[2,35]),e(_,[2,36]),e(_,[2,37]),{15:[1,152]},e(_,[2,38]),{15:[1,153]},e(_,[2,39]),e(_,[2,40]),{15:[1,154]},e(_,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:it},{56:158,81:it},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:k},e(I,[2,11]),e(tt,r,{7:103,40:160}),e(A,r,{7:105,42:161}),e(Dt,r,{7:108,45:162}),e(_,[2,48]),e(_,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:s.__name(function(b,w){if(w.recoverable)this.trace(b);else{var L=new Error(b);throw L.hash=w,L}},"parseError"),parse:s.__name(function(b){var w=this,L=[0],E=[],M=[null],h=[],mt=this.table,p="",_t=0,Ct=0,ee=2,Ot=1,ae=h.slice.call(arguments,1),V=Object.create(this.lexer),ct={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(ct.yy[It]=this.yy[It]);V.setInput(b,ct.yy),ct.yy.lexer=V,ct.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var Lt=V.yylloc;h.push(Lt);var se=V.options&&V.options.ranges;typeof ct.yy.parseError=="function"?this.parseError=ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(Q){L.length=L.length-2*Q,M.length=M.length-Q,h.length=h.length-Q}s.__name(re,"popStack");function Bt(){var Q;return Q=E.pop()||V.lex()||Ot,typeof Q!="number"&&(Q instanceof Array&&(E=Q,Q=E.pop()),Q=w.symbols_[Q]||Q),Q}s.__name(Bt,"lex");for(var K,lt,$,Pt,ut={},Tt,nt,Vt,Et;;){if(lt=L[L.length-1],this.defaultActions[lt]?$=this.defaultActions[lt]:((K===null||typeof K>"u")&&(K=Bt()),$=mt[lt]&&mt[lt][K]),typeof $>"u"||!$.length||!$[0]){var At="";Et=[];for(Tt in mt[lt])this.terminals_[Tt]&&Tt>ee&&Et.push("'"+this.terminals_[Tt]+"'");V.showPosition?At="Parse error on line "+(_t+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("./chunk-OMD6QJNC.cjs"),ie=require("./chunk-FHKO5MBM.cjs"),O=require("./chunk-U37J5Y7L.cjs"),s=require("./chunk-VIW5F6AA.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Wt=require("../../../../../_virtual/index7.cjs"),yt=require("../../../../d3-selection/src/select.cjs");var kt=(function(){var e=s.__name(function(ot,b,w,L){for(w=w||{},L=ot.length;L--;w[ot[L]]=b);return w},"o"),t=[1,2],l=[1,3],a=[1,4],r=[2,4],n=[1,9],o=[1,11],d=[1,13],u=[1,14],i=[1,16],f=[1,17],T=[1,18],g=[1,24],x=[1,25],y=[1,26],v=[1,27],P=[1,28],D=[1,29],N=[1,30],B=[1,31],R=[1,32],F=[1,33],W=[1,34],U=[1,35],Z=[1,36],q=[1,37],z=[1,38],Y=[1,39],S=[1,41],G=[1,42],H=[1,43],X=[1,44],j=[1,45],k=[1,46],_=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],I=[4,5,16,50,52,53],J=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Dt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],st=[68,69,70],it=[1,122],vt={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:s.__name(function(b,w,L,E,M,h,mt){var p=h.length-1;switch(M){case 3:return E.apply(h[p]),h[p];case 4:case 9:this.$=[];break;case 5:case 10:h[p-1].push(h[p]),this.$=h[p-1];break;case 6:case 7:case 11:case 12:this.$=h[p];break;case 8:case 13:this.$=[];break;case 15:h[p].type="createParticipant",this.$=h[p];break;case 16:h[p-1].unshift({type:"boxStart",boxData:E.parseBoxData(h[p-2])}),h[p-1].push({type:"boxEnd",boxText:h[p-2]}),this.$=h[p-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[p-2]),sequenceIndexStep:Number(h[p-1]),sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:E.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:E.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:h[p-1].actor};break;case 23:this.$={type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:h[p-1].actor};break;case 29:E.setDiagramTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 30:E.setDiagramTitle(h[p].substring(7)),this.$=h[p].substring(7);break;case 31:this.$=h[p].trim(),E.setAccTitle(this.$);break;case 32:case 33:this.$=h[p].trim(),E.setAccDescription(this.$);break;case 34:h[p-1].unshift({type:"loopStart",loopText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.LOOP_START}),h[p-1].push({type:"loopEnd",loopText:h[p-2],signalType:E.LINETYPE.LOOP_END}),this.$=h[p-1];break;case 35:h[p-1].unshift({type:"rectStart",color:E.parseMessage(h[p-2]),signalType:E.LINETYPE.RECT_START}),h[p-1].push({type:"rectEnd",color:E.parseMessage(h[p-2]),signalType:E.LINETYPE.RECT_END}),this.$=h[p-1];break;case 36:h[p-1].unshift({type:"optStart",optText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.OPT_START}),h[p-1].push({type:"optEnd",optText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.OPT_END}),this.$=h[p-1];break;case 37:h[p-1].unshift({type:"altStart",altText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.ALT_START}),h[p-1].push({type:"altEnd",signalType:E.LINETYPE.ALT_END}),this.$=h[p-1];break;case 38:h[p-1].unshift({type:"parStart",parText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.PAR_START}),h[p-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=h[p-1];break;case 39:h[p-1].unshift({type:"parStart",parText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.PAR_OVER_START}),h[p-1].push({type:"parEnd",signalType:E.LINETYPE.PAR_END}),this.$=h[p-1];break;case 40:h[p-1].unshift({type:"criticalStart",criticalText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.CRITICAL_START}),h[p-1].push({type:"criticalEnd",signalType:E.LINETYPE.CRITICAL_END}),this.$=h[p-1];break;case 41:h[p-1].unshift({type:"breakStart",breakText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.BREAK_START}),h[p-1].push({type:"breakEnd",optText:E.parseMessage(h[p-2]),signalType:E.LINETYPE.BREAK_END}),this.$=h[p-1];break;case 43:this.$=h[p-3].concat([{type:"option",optionText:E.parseMessage(h[p-1]),signalType:E.LINETYPE.CRITICAL_OPTION},h[p]]);break;case 45:this.$=h[p-3].concat([{type:"and",parText:E.parseMessage(h[p-1]),signalType:E.LINETYPE.PAR_AND},h[p]]);break;case 47:this.$=h[p-3].concat([{type:"else",altText:E.parseMessage(h[p-1]),signalType:E.LINETYPE.ALT_ELSE},h[p]]);break;case 48:h[p-3].draw="participant",h[p-3].type="addParticipant",h[p-3].description=E.parseMessage(h[p-1]),this.$=h[p-3];break;case 49:h[p-1].draw="participant",h[p-1].type="addParticipant",this.$=h[p-1];break;case 50:h[p-3].draw="actor",h[p-3].type="addParticipant",h[p-3].description=E.parseMessage(h[p-1]),this.$=h[p-3];break;case 51:h[p-1].draw="actor",h[p-1].type="addParticipant",this.$=h[p-1];break;case 52:h[p-1].type="destroyParticipant",this.$=h[p-1];break;case 53:this.$=[h[p-1],{type:"addNote",placement:h[p-2],actor:h[p-1].actor,text:h[p]}];break;case 54:h[p-2]=[].concat(h[p-1],h[p-1]).slice(0,2),h[p-2][0]=h[p-2][0].actor,h[p-2][1]=h[p-2][1].actor,this.$=[h[p-1],{type:"addNote",placement:E.PLACEMENT.OVER,actor:h[p-2].slice(0,2),text:h[p]}];break;case 55:this.$=[h[p-1],{type:"addLinks",actor:h[p-1].actor,text:h[p]}];break;case 56:this.$=[h[p-1],{type:"addALink",actor:h[p-1].actor,text:h[p]}];break;case 57:this.$=[h[p-1],{type:"addProperties",actor:h[p-1].actor,text:h[p]}];break;case 58:this.$=[h[p-1],{type:"addDetails",actor:h[p-1].actor,text:h[p]}];break;case 61:this.$=[h[p-2],h[p]];break;case 62:this.$=h[p];break;case 63:this.$=E.PLACEMENT.LEFTOF;break;case 64:this.$=E.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[p-4],h[p-1],{type:"addMessage",from:h[p-4].actor,to:h[p-1].actor,signalType:h[p-3],msg:h[p],activate:!0},{type:"activeStart",signalType:E.LINETYPE.ACTIVE_START,actor:h[p-1].actor}];break;case 66:this.$=[h[p-4],h[p-1],{type:"addMessage",from:h[p-4].actor,to:h[p-1].actor,signalType:h[p-3],msg:h[p]},{type:"activeEnd",signalType:E.LINETYPE.ACTIVE_END,actor:h[p-4].actor}];break;case 67:this.$=[h[p-3],h[p-1],{type:"addMessage",from:h[p-3].actor,to:h[p-1].actor,signalType:h[p-2],msg:h[p]}];break;case 68:this.$={type:"addParticipant",actor:h[p]};break;case 69:this.$=E.LINETYPE.SOLID_OPEN;break;case 70:this.$=E.LINETYPE.DOTTED_OPEN;break;case 71:this.$=E.LINETYPE.SOLID;break;case 72:this.$=E.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=E.LINETYPE.DOTTED;break;case 74:this.$=E.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=E.LINETYPE.SOLID_CROSS;break;case 76:this.$=E.LINETYPE.DOTTED_CROSS;break;case 77:this.$=E.LINETYPE.SOLID_POINT;break;case 78:this.$=E.LINETYPE.DOTTED_POINT;break;case 79:this.$=E.parseMessage(h[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:l,6:a},{1:[3]},{3:5,4:t,5:l,6:a},{3:6,4:t,5:l,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,12:12,13:d,14:u,17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},e(_,[2,5]),{9:47,12:12,13:d,14:u,17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},e(_,[2,7]),e(_,[2,8]),e(_,[2,14]),{12:48,50:q,52:z,53:Y},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:k},{22:55,70:k},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(_,[2,29]),e(_,[2,30]),{32:[1,61]},{34:[1,62]},e(_,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:k},{22:72,70:k},{22:73,70:k},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:k},{22:90,70:k},{22:91,70:k},{22:92,70:k},e([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),e(_,[2,6]),e(_,[2,15]),e(I,[2,9],{10:93}),e(_,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},e(_,[2,21]),{5:[1,97]},{5:[1,98]},e(_,[2,24]),e(_,[2,25]),e(_,[2,26]),e(_,[2,27]),e(_,[2,28]),e(_,[2,31]),e(_,[2,32]),e(J,r,{7:99}),e(J,r,{7:100}),e(J,r,{7:101}),e(tt,r,{40:102,7:103}),e(A,r,{42:104,7:105}),e(A,r,{7:105,42:106}),e(Dt,r,{45:107,7:108}),e(J,r,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:k},e(st,[2,69]),e(st,[2,70]),e(st,[2,71]),e(st,[2,72]),e(st,[2,73]),e(st,[2,74]),e(st,[2,75]),e(st,[2,76]),e(st,[2,77]),e(st,[2,78]),{22:118,70:k},{22:120,58:119,70:k},{70:[2,63]},{70:[2,64]},{56:121,81:it},{56:123,81:it},{56:124,81:it},{56:125,81:it},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:q,52:z,53:Y},{5:[1,131]},e(_,[2,19]),e(_,[2,20]),e(_,[2,22]),e(_,[2,23]),{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,132],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,133],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,134],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{16:[1,135]},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[2,46],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,49:[1,136],50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{16:[1,137]},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[2,44],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,48:[1,138],50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{16:[1,139]},{16:[1,140]},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[2,42],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,47:[1,141],50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{4:n,5:o,8:8,9:10,12:12,13:d,14:u,16:[1,142],17:15,18:i,21:f,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:g,30:x,31:y,33:v,35:P,36:D,37:N,38:B,39:R,41:F,43:W,44:U,46:Z,50:q,52:z,53:Y,54:S,59:G,60:H,61:X,62:j,70:k},{15:[1,143]},e(_,[2,49]),{15:[1,144]},e(_,[2,51]),e(_,[2,52]),{22:145,70:k},{22:146,70:k},{56:147,81:it},{56:148,81:it},{56:149,81:it},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(_,[2,16]),e(I,[2,10]),{12:151,50:q,52:z,53:Y},e(I,[2,12]),e(I,[2,13]),e(_,[2,18]),e(_,[2,34]),e(_,[2,35]),e(_,[2,36]),e(_,[2,37]),{15:[1,152]},e(_,[2,38]),{15:[1,153]},e(_,[2,39]),e(_,[2,40]),{15:[1,154]},e(_,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:it},{56:158,81:it},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:k},e(I,[2,11]),e(tt,r,{7:103,40:160}),e(A,r,{7:105,42:161}),e(Dt,r,{7:108,45:162}),e(_,[2,48]),e(_,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:s.__name(function(b,w){if(w.recoverable)this.trace(b);else{var L=new Error(b);throw L.hash=w,L}},"parseError"),parse:s.__name(function(b){var w=this,L=[0],E=[],M=[null],h=[],mt=this.table,p="",_t=0,Ct=0,ee=2,Ot=1,ae=h.slice.call(arguments,1),V=Object.create(this.lexer),ct={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(ct.yy[It]=this.yy[It]);V.setInput(b,ct.yy),ct.yy.lexer=V,ct.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var Lt=V.yylloc;h.push(Lt);var se=V.options&&V.options.ranges;typeof ct.yy.parseError=="function"?this.parseError=ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(Q){L.length=L.length-2*Q,M.length=M.length-Q,h.length=h.length-Q}s.__name(re,"popStack");function Bt(){var Q;return Q=E.pop()||V.lex()||Ot,typeof Q!="number"&&(Q instanceof Array&&(E=Q,Q=E.pop()),Q=w.symbols_[Q]||Q),Q}s.__name(Bt,"lex");for(var K,lt,$,Pt,ut={},Tt,nt,Vt,Et;;){if(lt=L[L.length-1],this.defaultActions[lt]?$=this.defaultActions[lt]:((K===null||typeof K>"u")&&(K=Bt()),$=mt[lt]&&mt[lt][K]),typeof $>"u"||!$.length||!$[0]){var At="";Et=[];for(Tt in mt[lt])this.terminals_[Tt]&&Tt>ee&&Et.push("'"+this.terminals_[Tt]+"'");V.showPosition?At="Parse error on line "+(_t+1)+`:
|
|
2
2
|
`+V.showPosition()+`
|
|
3
3
|
Expecting `+Et.join(", ")+", got '"+(this.terminals_[K]||K)+"'":At="Parse error on line "+(_t+1)+": Unexpected "+(K==Ot?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(At,{text:V.match,token:this.terminals_[K]||K,line:V.yylineno,loc:Lt,expected:Et})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+lt+", token: "+K);switch($[0]){case 1:L.push(K),M.push(V.yytext),h.push(V.yylloc),L.push($[1]),K=null,Ct=V.yyleng,p=V.yytext,_t=V.yylineno,Lt=V.yylloc;break;case 2:if(nt=this.productions_[$[1]][1],ut.$=M[M.length-nt],ut._$={first_line:h[h.length-(nt||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(nt||1)].first_column,last_column:h[h.length-1].last_column},se&&(ut._$.range=[h[h.length-(nt||1)].range[0],h[h.length-1].range[1]]),Pt=this.performAction.apply(ut,[p,Ct,_t,ct.yy,$[1],M,h].concat(ae)),typeof Pt<"u")return Pt;nt&&(L=L.slice(0,-1*nt*2),M=M.slice(0,-1*nt),h=h.slice(0,-1*nt)),L.push(this.productions_[$[1]][0]),M.push(ut.$),h.push(ut._$),Vt=mt[L[L.length-2]][L[L.length-1]],L.push(Vt);break;case 3:return!0}}return!0},"parse")},te=(function(){var ot={EOF:1,parseError:s.__name(function(w,L){if(this.yy.parser)this.yy.parser.parseError(w,L);else throw new Error(w)},"parseError"),setInput:s.__name(function(b,w){return this.yy=w||this.yy||{},this._input=b,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:s.__name(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var w=b.match(/(?:\r\n?|\n).*/g);return w?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:s.__name(function(b){var w=b.length,L=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var E=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),L.length-1&&(this.yylineno-=L.length-1);var M=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:L?(L.length===E.length?this.yylloc.first_column:0)+E[E.length-L.length].length-L[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-w]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:s.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var b=this.pastInput(),w=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
@@ -4,7 +4,7 @@ import { utils_default as Y, parseFontSize as Qt, ZERO_WIDTH_SPACE as me } from
|
|
|
4
4
|
import { __name as u, setConfig2 as we, getConfig2 as $, log as G, configureSvgSize as ve, assignWithDepth_default as Ie, common_default as v, setAccTitle as Gt, setAccDescription as Le, setDiagramTitle as _e, getAccTitle as Pe, getAccDescription as Ae, getDiagramTitle as ke, clear as Ne, sanitizeText as Lt, hasKatex as ot, calculateMathMLDimensions as bt, getUrl as Se, renderKatexSanitized as Zt, getConfig as Ct } from "./chunk-VIW5F6AA.es.js";
|
|
5
5
|
import "../../../../d3-transition/src/selection/index.es.js";
|
|
6
6
|
import "../../../../d3-zoom/src/transform.es.js";
|
|
7
|
-
import { d as jt } from "../../../../../_virtual/index.
|
|
7
|
+
import { d as jt } from "../../../../../_virtual/index.es7.js";
|
|
8
8
|
import _t from "../../../../d3-selection/src/select.es.js";
|
|
9
9
|
var Ot = (function() {
|
|
10
10
|
var e = /* @__PURE__ */ u(function(ht, w, I, P) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),te=require("../../@babel/runtime/helpers/esm/extends.cjs"),i=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),oe=require("../../@babel/runtime/helpers/esm/typeof.cjs"),u=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),te=require("../../@babel/runtime/helpers/esm/extends.cjs"),i=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),oe=require("../../@babel/runtime/helpers/esm/typeof.cjs"),u=require("../../../_virtual/index5.cjs"),n=require("react"),T=require("./utils/commonUtils.cjs");var de=n.forwardRef(function(e,U){var p,x,y,$=e.inputElement,N=e.children,r=e.prefixCls,k=e.prefix,f=e.suffix,C=e.addonBefore,W=e.addonAfter,z=e.className,J=e.style,m=e.disabled,I=e.readOnly,K=e.focused,E=e.triggerFocus,d=e.allowClear,b=e.value,h=e.handleReset,L=e.hidden,t=e.classes,a=e.classNames,g=e.dataAttrs,o=e.styles,l=e.components,w=e.onClear,M=N??$,Q=l?.affixWrapper||"span",V=l?.groupWrapper||"span",X=l?.wrapper||"span",S=l?.groupAddon||"span",A=n.useRef(null),Y=function(s){var q;(q=A.current)!==null&&q!==void 0&&q.contains(s.target)&&E?.()},j=T.hasPrefixSuffix(e),c=n.cloneElement(M,{value:b,className:u.default((p=M.props)===null||p===void 0?void 0:p.className,!j&&a?.variant)||null}),B=n.useRef(null);if(n.useImperativeHandle(U,function(){return{nativeElement:B.current||A.current}}),j){var D=null;if(d){var Z=!m&&!I&&b,R="".concat(r,"-clear-icon"),P=oe.default(d)==="object"&&d!==null&&d!==void 0&&d.clearIcon?d.clearIcon:"✖";D=n.createElement("button",{type:"button",tabIndex:-1,onClick:function(s){h?.(s),w?.()},onMouseDown:function(s){return s.preventDefault()},className:u.default(R,i.default(i.default({},"".concat(R,"-hidden"),!Z),"".concat(R,"-has-suffix"),!!f))},P)}var v="".concat(r,"-affix-wrapper"),ee=u.default(v,i.default(i.default(i.default(i.default(i.default({},"".concat(r,"-disabled"),m),"".concat(v,"-disabled"),m),"".concat(v,"-focused"),K),"".concat(v,"-readonly"),I),"".concat(v,"-input-with-clear-btn"),f&&d&&b),t?.affixWrapper,a?.affixWrapper,a?.variant),ae=(f||d)&&n.createElement("span",{className:u.default("".concat(r,"-suffix"),a?.suffix),style:o?.suffix},D,f);c=n.createElement(Q,te.default({className:ee,style:o?.affixWrapper,onClick:Y},g?.affixWrapper,{ref:A}),k&&n.createElement("span",{className:u.default("".concat(r,"-prefix"),a?.prefix),style:o?.prefix},k),c,ae)}if(T.hasAddon(e)){var _="".concat(r,"-group"),O="".concat(_,"-addon"),F="".concat(_,"-wrapper"),ne=u.default("".concat(r,"-wrapper"),_,t?.wrapper,a?.wrapper),le=u.default(F,i.default({},"".concat(F,"-disabled"),m),t?.group,a?.groupWrapper);c=n.createElement(V,{className:le,ref:B},n.createElement(X,{className:ne},C&&n.createElement(S,{className:O},C),c,W&&n.createElement(S,{className:O},W)))}return n.cloneElement(c,{className:u.default((x=c.props)===null||x===void 0?void 0:x.className,z)||null,style:H.default(H.default({},(y=c.props)===null||y===void 0?void 0:y.style),J),hidden:L})});exports.default=de;
|
|
2
2
|
//# sourceMappingURL=BaseInput.cjs.map
|
|
@@ -2,7 +2,7 @@ import $ from "../../@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
|
2
2
|
import oe from "../../@babel/runtime/helpers/esm/extends.es.js";
|
|
3
3
|
import r from "../../@babel/runtime/helpers/esm/defineProperty.es.js";
|
|
4
4
|
import te from "../../@babel/runtime/helpers/esm/typeof.es.js";
|
|
5
|
-
import d from "../../../_virtual/index.
|
|
5
|
+
import d from "../../../_virtual/index.es5.js";
|
|
6
6
|
import l, { useRef as q, cloneElement as ie } from "react";
|
|
7
7
|
import { hasPrefixSuffix as re, hasAddon as de } from "./utils/commonUtils.es.js";
|
|
8
8
|
var xe = /* @__PURE__ */ l.forwardRef(function(e, z) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Y=require("../../@babel/runtime/helpers/esm/extends.cjs"),F=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),N=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),J=require("../../@babel/runtime/helpers/esm/typeof.cjs"),f=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),K=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),Q=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Y=require("../../@babel/runtime/helpers/esm/extends.cjs"),F=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),N=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),J=require("../../@babel/runtime/helpers/esm/typeof.cjs"),f=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),K=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),Q=require("../../../_virtual/index5.cjs"),ee=require("../../rc-resize-observer/es/index.cjs"),j=require("../../rc-util/es/hooks/useLayoutEffect.cjs"),te=require("../../rc-util/es/hooks/useMergedState.cjs"),w=require("../../rc-util/es/raf.cjs"),ae=require("react"),re=require("./calculateNodeHeight.cjs");function ne(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const s=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(o,e,s.get?s:{enumerable:!0,get:()=>n[e]})}}return o.default=n,Object.freeze(o)}const t=ne(ae);var ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],g=0,m=1,_=2,le=t.forwardRef(function(n,o){var e=n,s=e.prefixCls,O=e.defaultValue,p=e.value,a=e.autoSize,i=e.onResize,T=e.className,$=e.style,b=e.disabled,c=e.onChange,d=e.onInternalAutoSize,P=K.default(e,ue),V=te.default(O,{value:p,postState:function(r){return r??""}}),y=f.default(V,2),D=y[0],Z=y[1],H=function(r){Z(r.target.value),c?.(r)},S=t.useRef();t.useImperativeHandle(o,function(){return{textArea:S.current}});var L=t.useMemo(function(){return a&&J.default(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=f.default(L,2),q=E[0],x=E[1],R=!!a,k=t.useState(_),A=f.default(k,2),u=A[0],v=A[1],B=t.useState(),I=f.default(B,2),G=I[0],U=I[1],M=function(){v(g),process.env.NODE_ENV==="test"&&d?.()};j.default(function(){R&&M()},[p,q,x,R]),j.default(function(){if(u===g)v(m);else if(u===m){var l=re.default(S.current,!1,q,x);v(_),U(l)}},[u]);var h=t.useRef(),C=function(){w.default.cancel(h.current)},W=function(r){u===_&&(i?.(r),a&&(C(),h.current=w.default(function(){M()})))};t.useEffect(function(){return C},[]);var X=R?G:null,z=N.default(N.default({},$),X);return(u===g||u===m)&&(z.overflowY="hidden",z.overflowX="hidden"),t.createElement(ee.default,{onResize:W,disabled:!(a||i)},t.createElement("textarea",Y.default({},P,{ref:S,style:z,className:Q.default(s,T,F.default({},"".concat(s,"-disabled"),b)),disabled:b,value:D,onChange:H})))});exports.default=le;
|
|
2
2
|
//# sourceMappingURL=ResizableTextArea.cjs.map
|
|
@@ -4,7 +4,7 @@ import w from "../../@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
|
4
4
|
import J from "../../@babel/runtime/helpers/esm/typeof.es.js";
|
|
5
5
|
import s from "../../@babel/runtime/helpers/esm/slicedToArray.es.js";
|
|
6
6
|
import K from "../../@babel/runtime/helpers/esm/objectWithoutProperties.es.js";
|
|
7
|
-
import Q from "../../../_virtual/index.
|
|
7
|
+
import Q from "../../../_virtual/index.es5.js";
|
|
8
8
|
import ee from "../../rc-resize-observer/es/index.es.js";
|
|
9
9
|
import M from "../../rc-util/es/hooks/useLayoutEffect.es.js";
|
|
10
10
|
import te from "../../rc-util/es/hooks/useMergedState.es.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const be=require("../../@babel/runtime/helpers/esm/extends.cjs"),X=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),d=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),ze=require("../../@babel/runtime/helpers/esm/toConsumableArray.cjs"),x=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),qe=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),g=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const be=require("../../@babel/runtime/helpers/esm/extends.cjs"),X=require("../../@babel/runtime/helpers/esm/defineProperty.cjs"),d=require("../../@babel/runtime/helpers/esm/objectSpread2.cjs"),ze=require("../../@babel/runtime/helpers/esm/toConsumableArray.cjs"),x=require("../../@babel/runtime/helpers/esm/slicedToArray.cjs"),qe=require("../../@babel/runtime/helpers/esm/objectWithoutProperties.cjs"),g=require("../../../_virtual/index5.cjs"),Te=require("../../rc-input/es/BaseInput.cjs"),Ae=require("../../rc-util/es/hooks/useMergedState.cjs"),n=require("react"),Fe=require("../../rc-input/es/hooks/useCount.cjs"),Y=require("../../rc-input/es/utils/commonUtils.cjs"),Ne=require("./ResizableTextArea.cjs");var Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],$e=n.forwardRef(function(t,Z){var C,B=t.defaultValue,_=t.value,p=t.onFocus,y=t.onBlur,L=t.onChange,R=t.allowClear,M=t.maxLength,S=t.onCompositionStart,w=t.onCompositionEnd,ee=t.suffix,P=t.prefixCls,s=P===void 0?"rc-textarea":P,E=t.showCount,te=t.count,ae=t.className,v=t.style,m=t.disabled,ne=t.hidden,l=t.classNames,i=t.styles,b=t.onResize,oe=t.onClear,D=t.onPressEnter,K=t.readOnly,V=t.autoSize,z=t.onKeyDown,le=qe.default(t,Oe),re=Ae.default(B,{value:_,defaultValue:B}),W=x.default(re,2),q=W[0],j=W[1],T=q==null?"":String(q),ue=n.useState(!1),k=x.default(ue,2),se=k[0],A=k[1],F=n.useRef(!1),ie=n.useState(null),H=x.default(ie,2),de=H[0],ce=H[1],U=n.useRef(null),N=n.useRef(null),r=function(){var e;return(e=N.current)===null||e===void 0?void 0:e.textArea},G=function(){r().focus()};n.useImperativeHandle(Z,function(){var a;return{resizableTextArea:N.current,focus:G,blur:function(){r().blur()},nativeElement:((a=U.current)===null||a===void 0?void 0:a.nativeElement)||r()}}),n.useEffect(function(){A(function(a){return!m&&a})},[m]);var fe=n.useState(null),J=x.default(fe,2),O=J[0],ve=J[1];n.useEffect(function(){if(O){var a;(a=r()).setSelectionRange.apply(a,ze.default(O))}},[O]);var o=Fe.default(te,E),c=(C=o.max)!==null&&C!==void 0?C:M,me=Number(c)>0,$=o.strategy(T),he=!!c&&$>c,Q=function(e,u){var h=u;!F.current&&o.exceedFormatter&&o.max&&o.strategy(u)>o.max&&(h=o.exceedFormatter(u,{max:o.max}),u!==h&&ve([r().selectionStart||0,r().selectionEnd||0])),j(h),Y.resolveOnChange(e.currentTarget,e,L,h)},xe=function(e){F.current=!0,S?.(e)},ge=function(e){F.current=!1,Q(e,e.currentTarget.value),w?.(e)},Ce=function(e){Q(e,e.target.value)},pe=function(e){e.key==="Enter"&&D&&D(e),z?.(e)},ye=function(e){A(!0),p?.(e)},Re=function(e){A(!1),y?.(e)},Se=function(e){j(""),G(),Y.resolveOnChange(r(),e,L)},I=ee,f;o.show&&(o.showFormatter?f=o.showFormatter({value:T,count:$,maxLength:c}):f="".concat($).concat(me?" / ".concat(c):""),I=n.createElement(n.Fragment,null,I,n.createElement("span",{className:g.default("".concat(s,"-data-count"),l?.count),style:i?.count},f)));var we=function(e){var u;b?.(e),(u=r())!==null&&u!==void 0&&u.style.height&&ce(!0)},Ee=!V&&!E&&!R;return n.createElement(Te.default,{ref:U,value:T,allowClear:R,handleReset:Se,suffix:I,prefixCls:s,classNames:d.default(d.default({},l),{},{affixWrapper:g.default(l?.affixWrapper,X.default(X.default({},"".concat(s,"-show-count"),E),"".concat(s,"-textarea-allow-clear"),R))}),disabled:m,focused:se,className:g.default(ae,he&&"".concat(s,"-out-of-range")),style:d.default(d.default({},v),de&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof f=="string"?f:void 0}},hidden:ne,readOnly:K,onClear:oe},n.createElement(Ne.default,be.default({},le,{autoSize:V,maxLength:M,onKeyDown:pe,onChange:Ce,onFocus:ye,onBlur:Re,onCompositionStart:xe,onCompositionEnd:ge,className:g.default(l?.textarea),style:d.default(d.default({},i?.textarea),{},{resize:v?.resize}),disabled:m,prefixCls:s,onResize:we,ref:N,readOnly:K})))});exports.default=$e;
|
|
2
2
|
//# sourceMappingURL=TextArea.cjs.map
|
|
@@ -4,7 +4,7 @@ import d from "../../@babel/runtime/helpers/esm/objectSpread2.es.js";
|
|
|
4
4
|
import Ae from "../../@babel/runtime/helpers/esm/toConsumableArray.es.js";
|
|
5
5
|
import x from "../../@babel/runtime/helpers/esm/slicedToArray.es.js";
|
|
6
6
|
import Fe from "../../@babel/runtime/helpers/esm/objectWithoutProperties.es.js";
|
|
7
|
-
import h from "../../../_virtual/index.
|
|
7
|
+
import h from "../../../_virtual/index.es5.js";
|
|
8
8
|
import Ne from "../../rc-input/es/BaseInput.es.js";
|
|
9
9
|
import Te from "../../rc-util/es/hooks/useMergedState.es.js";
|
|
10
10
|
import o, { useRef as Y, useImperativeHandle as $e, useEffect as Ie } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TextArea.cjs");require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TextArea.cjs");require("../../../_virtual/index5.cjs");require("../../rc-resize-observer/es/index.cjs");require("../../rc-util/es/hooks/useLayoutEffect.cjs");require("react");require("../../rc-util/es/raf.cjs");exports.default=e.default;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`,1)[0],c=(0,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../_virtual/escaping.cjs"),A=require("./variable-marker.cjs");var o;function U(){return o||(o=1,(function(l){Object.defineProperty(l,"__esModule",{value:!0}),l.readDocumentInteraction=l.readInteraction=l.INTERACTION_CONTENT_SOURCE=l.splitOnEllipsis=l.splitOnSingleUnescapedPipe=l.splitUnescaped=l.findUnescaped=l.unescapeInteractionText=l.escapeInteractionText=l.isEscape=l.ESCAPABLE=void 0;const u=A.__require(),r=(n,i)=>n.startsWith("{{",i)?(0,u.readVariableMarker)(n,i)?.end??n.length:null;l.ESCAPABLE="|/.]";const f=(n,i)=>i+1<n.length&&n[i]==="\\"&&l.ESCAPABLE.includes(n[i+1]);l.isEscape=f;const E=n=>{let i="",c=0;for(;c<n.length;){const e=r(n,c);if(e!==null){i+=n.slice(c,e),c=e;continue}const s=n[c];if(s==="."){let a=0;for(;n[c+a]===".";)a+=1;i+=a>=3?"\\.".repeat(a):".".repeat(a),c+=a;continue}l.ESCAPABLE.includes(s)&&(i+="\\"),i+=s,c+=1}return i};l.escapeInteractionText=E;const h=n=>{let i="",c=0;for(;c<n.length;){const e=r(n,c);if(e!==null){i+=n.slice(c,e),c=e;continue}if((0,l.isEscape)(n,c)){i+=n[c+1],c+=2;continue}i+=n[c],c+=1}return i};l.unescapeInteractionText=h;const p=(n,i,c=0)=>{let e=c;for(;e<n.length;){const s=r(n,e);if(s!==null){e=s;continue}if((0,l.isEscape)(n,e)){e+=2;continue}if(n.startsWith(i,e))return e;e+=1}return-1};l.findUnescaped=p;const _=(n,i)=>{const c=[];let e=0;for(;;){const s=(0,l.findUnescaped)(n,i,e);if(s<0)return c.push(n.slice(e)),c;c.push(n.slice(e,s)),e=s+i.length}};l.splitUnescaped=_;const I=n=>{const i=[];let c=0,e=0;for(;e<n.length;){const s=r(n,e);if(s!==null){e=s;continue}if((0,l.isEscape)(n,e)){e+=2;continue}if(n[e]==="|"){if(n.startsWith("||",e)){e+=2;continue}if(e>0&&n[e-1]==="|"&&!(0,l.isEscape)(n,e-1)){e+=1;continue}i.push(n.slice(c,e)),c=e+1}e+=1}return i.push(n.slice(c)),i};l.splitOnSingleUnescapedPipe=I;const g=n=>{const i=n.split(`
|
|
2
|
+
`,1)[0],c=(0,l.findUnescaped)(i,"...");return c<0?null:[i.slice(0,c),i.slice(c+3)]};l.splitOnEllipsis=g,l.INTERACTION_CONTENT_SOURCE=`(?:${u.RAW_VARIABLE_MARKER_SOURCE}|\\\\[|/.\\]]|\\\\(?![|/.\\]])|\\{(?!\\{)|[^\\]\\\\{])*`;const d=(n,i,c)=>{if(!n.startsWith("?[",i))return null;let e=i+2;for(;e<n.length;){if(n.startsWith("{{",e)){const s=(0,u.readVariableMarker)(n,e);if(!s)break;e=s.end;continue}if(c?.(e))return{start:i,end:e,content:n.slice(i+2,e),complete:!1};if((0,l.isEscape)(n,e)){e+=2;continue}if(n[e]==="]")return n[e+1]==="("?null:{start:i,end:e+1,content:n.slice(i+2,e),complete:!0};e+=1}return{start:i,end:n.length,content:n.slice(i+2),complete:!1}},O=(n,i=0)=>d(n,i);l.readInteraction=O;const T=(n,i,c)=>d(n,i,c);l.readDocumentInteraction=T})(t.__exports)),t.__exports}exports.__require=U;
|
|
3
3
|
//# sourceMappingURL=escaping.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escaping.cjs","sources":["../../../../node_modules/remark-flow/dist/escaping.js"],"sourcesContent":["\"use strict\";\n/**\n * Backslash escapes for the delimiters inside an interaction's brackets.\n *\n * `?[A|B]` gives `|`, `//`, `...` and `]` structural meaning, so option text that contains one of\n * them is reshaped: a bar splits one choice into two, a double slash gives half the display away\n * to the stored value, an ellipsis turns the rest into a text box, and a bracket ends the\n * interaction early. An option carrying a URL or a regular expression could not be written at all.\n *\n * A backslash before one of those characters now makes it ordinary text.\n *\n * The escape is deliberately *selective*: a backslash is an escape only when the character after\n * it is a delimiter, and is literal text everywhere else. `\\\\` is not an escape either. That\n * matters for content that already exists: of 110,685 interactions in published courses, 97\n * contain a backslash and every one of them is LaTeX -- `$\\pi_\\theta$`, `\\beta`, `\\nabla`, and\n * `\\\\` as a line break. A general \"backslash escapes the next character\" rule would render those\n * as `$pi_theta$`. Under this rule, none of them change.\n *\n * The cost is that a literal backslash cannot sit immediately before a literal delimiter: `\\|` is\n * an escaped bar, not a backslash and a separator.\n *\n * This mirrors `markdown_flow/escaping.py` in markdown-flow-agent-py character for character.\n * The two must agree: the backend renders an interaction, parses its own output with the Python\n * parser to prove the meaning survived, and then this parser is what the browser reads it with.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.INTERACTION_CONTENT_SOURCE = exports.splitOnEllipsis = exports.splitOnSingleUnescapedPipe = exports.splitUnescaped = exports.findUnescaped = exports.unescapeInteractionText = exports.escapeInteractionText = exports.isEscape = exports.ESCAPABLE = void 0;\n/** The characters a backslash may make ordinary. `/` covers `//`, `.` covers `...`. */\nexports.ESCAPABLE = '|/.]';\n/** Whether the backslash at `index` escapes the character after it. */\nconst isEscape = (text, index) => index + 1 < text.length &&\n text[index] === '\\\\' &&\n exports.ESCAPABLE.includes(text[index + 1]);\nexports.isEscape = isEscape;\n/**\n * Make `text` safe to write inside `?[...]`, keeping every character it has.\n *\n * A dot is escaped only inside a run of three or more, because only `...` is a delimiter and a\n * single period ends most sentences: escaping every one turns `Yes, I agree.` into\n * `Yes, I agree\\.` in everything that stores or shows the raw interaction. Two dots cannot become\n * three on their own, and the run is escaped whole so it cannot be read as one.\n *\n * Bars, brackets and slashes are escaped wherever they appear. They are rare in option text, and\n * escaping them unconditionally removes the need to reason about what a neighbouring character\n * might combine with once the option is written next to a separator.\n *\n * Escaping the delimiters rather than the backslashes as well is what keeps existing content\n * readable: a script that writes `$\\pi$` in an option still writes `$\\pi$` afterwards.\n */\nconst escapeInteractionText = (text) => {\n let out = '';\n let index = 0;\n while (index < text.length) {\n const char = text[index];\n if (char === '.') {\n let run = 0;\n while (text[index + run] === '.') {\n run += 1;\n }\n out += run >= 3 ? '\\\\.'.repeat(run) : '.'.repeat(run);\n index += run;\n continue;\n }\n if (exports.ESCAPABLE.includes(char)) {\n out += '\\\\';\n }\n out += char;\n index += 1;\n }\n return out;\n};\nexports.escapeInteractionText = escapeInteractionText;\n/** Resolve the escapes in one option's text, leaving every other backslash alone. */\nconst unescapeInteractionText = (text) => {\n let out = '';\n let index = 0;\n while (index < text.length) {\n if ((0, exports.isEscape)(text, index)) {\n out += text[index + 1];\n index += 2;\n continue;\n }\n out += text[index];\n index += 1;\n }\n return out;\n};\nexports.unescapeInteractionText = unescapeInteractionText;\n/**\n * Index of the first `needle` that is not escaped and does not begin inside an escape, or -1.\n *\n * `needle` is matched whole: a `//` whose first slash is escaped is not a separator even though\n * its second slash is bare, because that second slash is the escaped character of the pair.\n */\nconst findUnescaped = (text, needle, start = 0) => {\n let index = start;\n while (index < text.length) {\n if ((0, exports.isEscape)(text, index)) {\n index += 2;\n continue;\n }\n if (text.startsWith(needle, index)) {\n return index;\n }\n index += 1;\n }\n return -1;\n};\nexports.findUnescaped = findUnescaped;\n/** Split on every unescaped `separator`, leaving the escapes themselves in place. */\nconst splitUnescaped = (text, separator) => {\n const parts = [];\n let start = 0;\n for (;;) {\n const found = (0, exports.findUnescaped)(text, separator, start);\n if (found < 0) {\n parts.push(text.slice(start));\n return parts;\n }\n parts.push(text.slice(start, found));\n start = found + separator.length;\n }\n};\nexports.splitUnescaped = splitUnescaped;\n/** Split on unescaped single bars, leaving `||` joined as the multi-select separator. */\nconst splitOnSingleUnescapedPipe = (text) => {\n const parts = [];\n let start = 0;\n let index = 0;\n while (index < text.length) {\n if ((0, exports.isEscape)(text, index)) {\n index += 2;\n continue;\n }\n if (text[index] === '|') {\n if (text.startsWith('||', index)) {\n index += 2;\n continue;\n }\n if (index > 0 && text[index - 1] === '|' && !(0, exports.isEscape)(text, index - 1)) {\n index += 1;\n continue;\n }\n parts.push(text.slice(start, index));\n start = index + 1;\n }\n index += 1;\n }\n parts.push(text.slice(start));\n return parts;\n};\nexports.splitOnSingleUnescapedPipe = splitOnSingleUnescapedPipe;\n/**\n * Split an interaction's content at the `...` that opens its text box, or null.\n *\n * Two details are inherited rather than chosen, because changing either would rewrite questions\n * in courses that are already published:\n *\n * - the ellipsis counts only on the first line. The regex this replaces was anchored and its `.`\n * did not cross a newline, so `A\\n| ...hint` has always been read as two buttons, one of them\n * named `...hint`.\n * - the *first* ellipsis on that line wins, which is what the lazy group matched. (The Python\n * parser takes the last one instead -- a difference that predates escapes and is left alone\n * here; with options escaping their own dots, only the real marker is ever unescaped, so the\n * two agree on everything a producer writes.)\n *\n * What is new is only that an escaped ellipsis no longer counts.\n */\nconst splitOnEllipsis = (content) => {\n const head = content.split('\\n', 1)[0];\n const at = (0, exports.findUnescaped)(head, '...');\n if (at < 0) {\n return null;\n }\n return [head.slice(0, at), head.slice(at + 3)];\n};\nexports.splitOnEllipsis = splitOnEllipsis;\n/**\n * The bracket content of an interaction, as a regex source fragment.\n *\n * The three alternatives are mutually exclusive on purpose: a backslash before a delimiter can\n * only be read as an escape, so the pattern cannot backtrack into reading it as plain text and\n * then closing on the very bracket it escapes. Without that, this regex and a left-to-right\n * scanner disagree about `?[a\\\\]`, and two parsers of one grammar must not.\n */\nexports.INTERACTION_CONTENT_SOURCE = '(?:\\\\\\\\[|/.\\\\]]|\\\\\\\\(?![|/.\\\\]])|[^\\\\]\\\\\\\\])*';\n//# sourceMappingURL=escaping.js.map"],"names":["exports","isEscape","text","index","escapeInteractionText","out","char","run","unescapeInteractionText","findUnescaped","needle","start","splitUnescaped","separator","parts","found","splitOnSingleUnescapedPipe","splitOnEllipsis","content","head","at"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"escaping.cjs","sources":["../../../../node_modules/remark-flow/dist/escaping.js"],"sourcesContent":["\"use strict\";\n/**\n * Backslash escapes for the delimiters inside an interaction's brackets.\n *\n * `?[A|B]` gives `|`, `//`, `...` and `]` structural meaning, so option text that contains one of\n * them is reshaped: a bar splits one choice into two, a double slash gives half the display away\n * to the stored value, an ellipsis turns the rest into a text box, and a bracket ends the\n * interaction early. An option carrying a URL or a regular expression could not be written at all.\n *\n * A backslash before one of those characters now makes it ordinary text.\n *\n * The escape is deliberately *selective*: a backslash is an escape only when the character after\n * it is a delimiter, and is literal text everywhere else. `\\\\` is not an escape either. That\n * matters for content that already exists: of 110,685 interactions in published courses, 97\n * contain a backslash and every one of them is LaTeX -- `$\\pi_\\theta$`, `\\beta`, `\\nabla`, and\n * `\\\\` as a line break. A general \"backslash escapes the next character\" rule would render those\n * as `$pi_theta$`. Under this rule, none of them change.\n *\n * The cost is that a literal backslash cannot sit immediately before a literal delimiter: `\\|` is\n * an escaped bar, not a backslash and a separator.\n *\n * This mirrors `markdown_flow/escaping.py` in markdown-flow-agent-py character for character.\n * The two must agree: the backend renders an interaction, parses its own output with the Python\n * parser to prove the meaning survived, and then this parser is what the browser reads it with.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.readDocumentInteraction = exports.readInteraction = exports.INTERACTION_CONTENT_SOURCE = exports.splitOnEllipsis = exports.splitOnSingleUnescapedPipe = exports.splitUnescaped = exports.findUnescaped = exports.unescapeInteractionText = exports.escapeInteractionText = exports.isEscape = exports.ESCAPABLE = void 0;\nconst variable_marker_1 = require(\"./variable-marker\");\n/** A raw marker is opaque even when invalid or incomplete; its operators are always literal. */\nconst markerEnd = (text, index) => text.startsWith('{{', index)\n ? ((0, variable_marker_1.readVariableMarker)(text, index)?.end ?? text.length)\n : null;\n/** The characters a backslash may make ordinary. `/` covers `//`, `.` covers `...`. */\nexports.ESCAPABLE = '|/.]';\n/** Whether the backslash at `index` escapes the character after it. */\nconst isEscape = (text, index) => index + 1 < text.length &&\n text[index] === '\\\\' &&\n exports.ESCAPABLE.includes(text[index + 1]);\nexports.isEscape = isEscape;\n/**\n * Escape interaction operators outside opaque variable markers.\n *\n * Marker source is preserved, including incomplete markers. This does not make an unmatched\n * `{{` representable as literal option text: it still owns the remaining interaction tail.\n *\n * A dot is escaped only inside a run of three or more, because only `...` is a delimiter and a\n * single period ends most sentences: escaping every one turns `Yes, I agree.` into\n * `Yes, I agree\\.` in everything that stores or shows the raw interaction. Two dots cannot become\n * three on their own, and the run is escaped whole so it cannot be read as one.\n *\n * Bars, brackets and slashes are escaped wherever they appear. They are rare in option text, and\n * escaping them unconditionally removes the need to reason about what a neighbouring character\n * might combine with once the option is written next to a separator.\n *\n * Escaping the delimiters rather than the backslashes as well is what keeps existing content\n * readable: a script that writes `$\\pi$` in an option still writes `$\\pi$` afterwards.\n */\nconst escapeInteractionText = (text) => {\n let out = '';\n let index = 0;\n while (index < text.length) {\n const end = markerEnd(text, index);\n if (end !== null) {\n out += text.slice(index, end);\n index = end;\n continue;\n }\n const char = text[index];\n if (char === '.') {\n let run = 0;\n while (text[index + run] === '.') {\n run += 1;\n }\n out += run >= 3 ? '\\\\.'.repeat(run) : '.'.repeat(run);\n index += run;\n continue;\n }\n if (exports.ESCAPABLE.includes(char)) {\n out += '\\\\';\n }\n out += char;\n index += 1;\n }\n return out;\n};\nexports.escapeInteractionText = escapeInteractionText;\n/** Resolve the escapes in one option's text, leaving every other backslash alone. */\nconst unescapeInteractionText = (text) => {\n let out = '';\n let index = 0;\n while (index < text.length) {\n const end = markerEnd(text, index);\n if (end !== null) {\n out += text.slice(index, end);\n index = end;\n continue;\n }\n if ((0, exports.isEscape)(text, index)) {\n out += text[index + 1];\n index += 2;\n continue;\n }\n out += text[index];\n index += 1;\n }\n return out;\n};\nexports.unescapeInteractionText = unescapeInteractionText;\n/**\n * Index of the first `needle` that is not escaped and does not begin inside an escape, or -1.\n *\n * `needle` is matched whole: a `//` whose first slash is escaped is not a separator even though\n * its second slash is bare, because that second slash is the escaped character of the pair.\n */\nconst findUnescaped = (text, needle, start = 0) => {\n let index = start;\n while (index < text.length) {\n const end = markerEnd(text, index);\n if (end !== null) {\n index = end;\n continue;\n }\n if ((0, exports.isEscape)(text, index)) {\n index += 2;\n continue;\n }\n if (text.startsWith(needle, index)) {\n return index;\n }\n index += 1;\n }\n return -1;\n};\nexports.findUnescaped = findUnescaped;\n/** Split on every unescaped `separator`, leaving the escapes themselves in place. */\nconst splitUnescaped = (text, separator) => {\n const parts = [];\n let start = 0;\n for (;;) {\n const found = (0, exports.findUnescaped)(text, separator, start);\n if (found < 0) {\n parts.push(text.slice(start));\n return parts;\n }\n parts.push(text.slice(start, found));\n start = found + separator.length;\n }\n};\nexports.splitUnescaped = splitUnescaped;\n/** Split on unescaped single bars, leaving `||` joined as the multi-select separator. */\nconst splitOnSingleUnescapedPipe = (text) => {\n const parts = [];\n let start = 0;\n let index = 0;\n while (index < text.length) {\n const end = markerEnd(text, index);\n if (end !== null) {\n index = end;\n continue;\n }\n if ((0, exports.isEscape)(text, index)) {\n index += 2;\n continue;\n }\n if (text[index] === '|') {\n if (text.startsWith('||', index)) {\n index += 2;\n continue;\n }\n if (index > 0 && text[index - 1] === '|' && !(0, exports.isEscape)(text, index - 1)) {\n index += 1;\n continue;\n }\n parts.push(text.slice(start, index));\n start = index + 1;\n }\n index += 1;\n }\n parts.push(text.slice(start));\n return parts;\n};\nexports.splitOnSingleUnescapedPipe = splitOnSingleUnescapedPipe;\n/**\n * Split an interaction's content at the `...` that opens its text box, or null.\n *\n * Two details are inherited rather than chosen, because changing either would rewrite questions\n * in courses that are already published:\n *\n * - the ellipsis counts only on the first line. The regex this replaces was anchored and its `.`\n * did not cross a newline, so `A\\n| ...hint` has always been read as two buttons, one of them\n * named `...hint`.\n * - the *first* ellipsis on that line wins, which is what the lazy group matched. (The Python\n * parser takes the last one instead -- a difference that predates escapes and is left alone\n * here; with options escaping their own dots, only the real marker is ever unescaped, so the\n * two agree on everything a producer writes.)\n *\n * What is new is only that an escaped ellipsis no longer counts.\n */\nconst splitOnEllipsis = (content) => {\n const head = content.split('\\n', 1)[0];\n const at = (0, exports.findUnescaped)(head, '...');\n if (at < 0) {\n return null;\n }\n return [head.slice(0, at), head.slice(at + 3)];\n};\nexports.splitOnEllipsis = splitOnEllipsis;\n/**\n * The bracket content of an interaction, as a regex source fragment.\n *\n * The three alternatives are mutually exclusive on purpose: a backslash before a delimiter can\n * only be read as an escape, so the pattern cannot backtrack into reading it as plain text and\n * then closing on the very bracket it escapes. Without that, this regex and a left-to-right\n * scanner disagree about `?[a\\\\]`, and two parsers of one grammar must not.\n */\nexports.INTERACTION_CONTENT_SOURCE = `(?:${variable_marker_1.RAW_VARIABLE_MARKER_SOURCE}|\\\\\\\\[|/.\\\\]]|\\\\\\\\(?![|/.\\\\]])|\\\\{(?!\\\\{)|[^\\\\]\\\\\\\\{])*`;\n/** Read one interaction without restarting inside a complete or unfinished raw marker. */\nconst readInteractionWithin = (text, start, boundary) => {\n if (!text.startsWith('?[', start))\n return null;\n let index = start + 2;\n while (index < text.length) {\n if (text.startsWith('{{', index)) {\n const marker = (0, variable_marker_1.readVariableMarker)(text, index);\n if (!marker)\n break;\n index = marker.end;\n continue;\n }\n if (boundary?.(index)) {\n return {\n start,\n end: index,\n content: text.slice(start + 2, index),\n complete: false,\n };\n }\n if ((0, exports.isEscape)(text, index)) {\n index += 2;\n continue;\n }\n if (text[index] === ']') {\n if (text[index + 1] === '(')\n return null;\n return {\n start,\n end: index + 1,\n content: text.slice(start + 2, index),\n complete: true,\n };\n }\n index += 1;\n }\n return {\n start,\n end: text.length,\n content: text.slice(start + 2),\n complete: false,\n };\n};\n/** Read the raw interaction grammar without imposing Markdown paragraph boundaries. */\nconst readInteraction = (text, start = 0) => readInteractionWithin(text, start);\nexports.readInteraction = readInteraction;\n/** @internal Bound document candidates without changing the raw interaction reader. */\nconst readDocumentInteraction = (text, start, boundary) => readInteractionWithin(text, start, boundary);\nexports.readDocumentInteraction = readDocumentInteraction;\n//# sourceMappingURL=escaping.js.map"],"names":["exports","variable_marker_1","require$$0","markerEnd","text","index","isEscape","escapeInteractionText","out","end","char","run","unescapeInteractionText","findUnescaped","needle","start","splitUnescaped","separator","parts","found","splitOnSingleUnescapedPipe","splitOnEllipsis","content","head","at","readInteractionWithin","boundary","marker","readInteraction","readDocumentInteraction"],"mappings":"oNAyBA,OAAO,eAAcA,EAAU,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAA,wBAAkCA,EAAA,gBAA0BA,EAAA,2BAAqCA,EAAA,gBAA0BA,EAAA,2BAAqCA,EAAA,eAAyBA,EAAA,cAAwBA,EAAA,wBAAkCA,EAAA,sBAAgCA,EAAA,SAAmBA,EAAA,UAAoB,OAC1T,MAAMC,EAAoBC,EAAAA,UAAA,EAEpBC,EAAY,CAACC,EAAMC,IAAUD,EAAK,WAAW,KAAMC,CAAK,KACnDJ,EAAkB,oBAAoBG,EAAMC,CAAK,GAAG,KAAOD,EAAK,OACrE,KAENJ,EAAA,UAAoB,OAEpB,MAAMM,EAAW,CAACF,EAAMC,IAAUA,EAAQ,EAAID,EAAK,QAC/CA,EAAKC,CAAK,IAAM,MAChBL,EAAQ,UAAU,SAASI,EAAKC,EAAQ,CAAC,CAAC,EAC9CL,EAAA,SAAmBM,EAmBnB,MAAMC,EAAyBH,GAAS,CACpC,IAAII,EAAM,GACNH,EAAQ,EACZ,KAAOA,EAAQD,EAAK,QAAQ,CACxB,MAAMK,EAAMN,EAAUC,EAAMC,CAAK,EACjC,GAAII,IAAQ,KAAM,CACdD,GAAOJ,EAAK,MAAMC,EAAOI,CAAG,EAC5BJ,EAAQI,EACR,QACZ,CACQ,MAAMC,EAAON,EAAKC,CAAK,EACvB,GAAIK,IAAS,IAAK,CACd,IAAIC,EAAM,EACV,KAAOP,EAAKC,EAAQM,CAAG,IAAM,KACzBA,GAAO,EAEXH,GAAOG,GAAO,EAAI,MAAM,OAAOA,CAAG,EAAI,IAAI,OAAOA,CAAG,EACpDN,GAASM,EACT,QACZ,CACYX,EAAQ,UAAU,SAASU,CAAI,IAC/BF,GAAO,MAEXA,GAAOE,EACPL,GAAS,CACjB,CACI,OAAOG,CACX,EACAR,EAAA,sBAAgCO,EAEhC,MAAMK,EAA2BR,GAAS,CACtC,IAAII,EAAM,GACNH,EAAQ,EACZ,KAAOA,EAAQD,EAAK,QAAQ,CACxB,MAAMK,EAAMN,EAAUC,EAAMC,CAAK,EACjC,GAAII,IAAQ,KAAM,CACdD,GAAOJ,EAAK,MAAMC,EAAOI,CAAG,EAC5BJ,EAAQI,EACR,QACZ,CACQ,MAAQT,EAAQ,UAAUI,EAAMC,CAAK,EAAG,CACpCG,GAAOJ,EAAKC,EAAQ,CAAC,EACrBA,GAAS,EACT,QACZ,CACQG,GAAOJ,EAAKC,CAAK,EACjBA,GAAS,CACjB,CACI,OAAOG,CACX,EACAR,EAAA,wBAAkCY,EAOlC,MAAMC,EAAgB,CAACT,EAAMU,EAAQC,EAAQ,IAAM,CAC/C,IAAIV,EAAQU,EACZ,KAAOV,EAAQD,EAAK,QAAQ,CACxB,MAAMK,EAAMN,EAAUC,EAAMC,CAAK,EACjC,GAAII,IAAQ,KAAM,CACdJ,EAAQI,EACR,QACZ,CACQ,MAAQT,EAAQ,UAAUI,EAAMC,CAAK,EAAG,CACpCA,GAAS,EACT,QACZ,CACQ,GAAID,EAAK,WAAWU,EAAQT,CAAK,EAC7B,OAAOA,EAEXA,GAAS,CACjB,CACI,MAAO,EACX,EACAL,EAAA,cAAwBa,EAExB,MAAMG,EAAiB,CAACZ,EAAMa,IAAc,CACxC,MAAMC,EAAQ,CAAA,EACd,IAAIH,EAAQ,EACZ,OAAS,CACL,MAAMI,KAAYnB,EAAQ,eAAeI,EAAMa,EAAWF,CAAK,EAC/D,GAAII,EAAQ,EACR,OAAAD,EAAM,KAAKd,EAAK,MAAMW,CAAK,CAAC,EACrBG,EAEXA,EAAM,KAAKd,EAAK,MAAMW,EAAOI,CAAK,CAAC,EACnCJ,EAAQI,EAAQF,EAAU,MAClC,CACA,EACAjB,EAAA,eAAyBgB,EAEzB,MAAMI,EAA8BhB,GAAS,CACzC,MAAMc,EAAQ,CAAA,EACd,IAAIH,EAAQ,EACRV,EAAQ,EACZ,KAAOA,EAAQD,EAAK,QAAQ,CACxB,MAAMK,EAAMN,EAAUC,EAAMC,CAAK,EACjC,GAAII,IAAQ,KAAM,CACdJ,EAAQI,EACR,QACZ,CACQ,MAAQT,EAAQ,UAAUI,EAAMC,CAAK,EAAG,CACpCA,GAAS,EACT,QACZ,CACQ,GAAID,EAAKC,CAAK,IAAM,IAAK,CACrB,GAAID,EAAK,WAAW,KAAMC,CAAK,EAAG,CAC9BA,GAAS,EACT,QAChB,CACY,GAAIA,EAAQ,GAAKD,EAAKC,EAAQ,CAAC,IAAM,KAAO,IAAKL,EAAQ,UAAUI,EAAMC,EAAQ,CAAC,EAAG,CACjFA,GAAS,EACT,QAChB,CACYa,EAAM,KAAKd,EAAK,MAAMW,EAAOV,CAAK,CAAC,EACnCU,EAAQV,EAAQ,CAC5B,CACQA,GAAS,CACjB,CACI,OAAAa,EAAM,KAAKd,EAAK,MAAMW,CAAK,CAAC,EACrBG,CACX,EACAlB,EAAA,2BAAqCoB,EAiBrC,MAAMC,EAAmBC,GAAY,CACjC,MAAMC,EAAOD,EAAQ,MAAM;AAAA,EAAM,CAAC,EAAE,CAAC,EAC/BE,KAASxB,EAAQ,eAAeuB,EAAM,KAAK,EACjD,OAAIC,EAAK,EACE,KAEJ,CAACD,EAAK,MAAM,EAAGC,CAAE,EAAGD,EAAK,MAAMC,EAAK,CAAC,CAAC,CACjD,EACAxB,EAAA,gBAA0BqB,EAS1BrB,EAAA,2BAAqC,MAAMC,EAAkB,0BAA0B,0DAEvF,MAAMwB,EAAwB,CAACrB,EAAMW,EAAOW,IAAa,CACrD,GAAI,CAACtB,EAAK,WAAW,KAAMW,CAAK,EAC5B,OAAO,KACX,IAAIV,EAAQU,EAAQ,EACpB,KAAOV,EAAQD,EAAK,QAAQ,CACxB,GAAIA,EAAK,WAAW,KAAMC,CAAK,EAAG,CAC9B,MAAMsB,KAAa1B,EAAkB,oBAAoBG,EAAMC,CAAK,EACpE,GAAI,CAACsB,EACD,MACJtB,EAAQsB,EAAO,IACf,QACZ,CACQ,GAAID,IAAWrB,CAAK,EAChB,MAAO,CACH,MAAAU,EACA,IAAKV,EACL,QAASD,EAAK,MAAMW,EAAQ,EAAGV,CAAK,EACpC,SAAU,IAGlB,MAAQL,EAAQ,UAAUI,EAAMC,CAAK,EAAG,CACpCA,GAAS,EACT,QACZ,CACQ,GAAID,EAAKC,CAAK,IAAM,IAChB,OAAID,EAAKC,EAAQ,CAAC,IAAM,IACb,KACJ,CACH,MAAAU,EACA,IAAKV,EAAQ,EACb,QAASD,EAAK,MAAMW,EAAQ,EAAGV,CAAK,EACpC,SAAU,IAGlBA,GAAS,CACjB,CACI,MAAO,CACH,MAAAU,EACA,IAAKX,EAAK,OACV,QAASA,EAAK,MAAMW,EAAQ,CAAC,EAC7B,SAAU,GAElB,EAEMa,EAAkB,CAACxB,EAAMW,EAAQ,IAAMU,EAAsBrB,EAAMW,CAAK,EAC9Ef,EAAA,gBAA0B4B,EAE1B,MAAMC,EAA0B,CAACzB,EAAMW,EAAOW,IAAaD,EAAsBrB,EAAMW,EAAOW,CAAQ,EACtG1B,EAAA,wBAAkC6B","x_google_ignoreList":[0]}
|