@docx-editor.dev/pro 2.36.0 → 2.37.0-canary.20261111032756.sha-9eef508

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.
Files changed (35) hide show
  1. package/dist/{chunk-VYJGXASU.js → chunk-5TE6YSQE.js} +1 -1
  2. package/dist/{chunk-VMSFNR4O.cjs → chunk-5Y4KHQEW.cjs} +1 -1
  3. package/dist/chunk-C4V5RPWH.js +6 -0
  4. package/dist/chunk-FGHLEGR4.cjs +11 -0
  5. package/dist/chunk-LMK6OKPO.cjs +6 -0
  6. package/dist/chunk-MKVBW62Q.js +11 -0
  7. package/dist/{chunk-QWEU3QRC.js → chunk-N5V5YV5J.js} +1 -1
  8. package/dist/{chunk-JKQRYHCO.cjs → chunk-S6TCOWSV.cjs} +1 -1
  9. package/dist/{chunk-K7IGLB5D.js → chunk-UAHMKMNT.js} +1 -1
  10. package/dist/{chunk-OF673SN2.cjs → chunk-Z5KG3XAQ.cjs} +1 -1
  11. package/dist/collaboration/hocuspocus.cjs +1 -1
  12. package/dist/collaboration/hocuspocus.js +1 -1
  13. package/dist/collaboration/index.cjs +2 -2
  14. package/dist/collaboration/index.js +1 -1
  15. package/dist/collaboration/webrtc.cjs +1 -1
  16. package/dist/collaboration/webrtc.js +1 -1
  17. package/dist/{document-session-FTMVM6IL.js → document-session-FLMCL4LS.js} +1 -1
  18. package/dist/{document-session-GB52JVCQ.cjs → document-session-PH3GPYVG.cjs} +1 -1
  19. package/dist/drawing/index.cjs +1 -1
  20. package/dist/drawing/index.js +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/react/index.cjs +2 -2
  24. package/dist/react/index.d.cts +3 -1
  25. package/dist/react/index.d.ts +3 -1
  26. package/dist/react/index.js +2 -2
  27. package/dist/vue/index.cjs +2 -2
  28. package/dist/vue/index.d.cts +3 -1
  29. package/dist/vue/index.d.ts +3 -1
  30. package/dist/vue/index.js +2 -2
  31. package/package.json +4 -4
  32. package/dist/chunk-5INMVI3O.js +0 -11
  33. package/dist/chunk-GSBQ5AHL.cjs +0 -6
  34. package/dist/chunk-J42DN4K5.cjs +0 -11
  35. package/dist/chunk-NTBGYQX4.js +0 -6
@@ -1,11 +0,0 @@
1
- /*!
2
- Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
3
- Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
4
- Production use requires a commercial agreement: licensing@eigenpal.com
5
- */
6
- import {a}from'./chunk-HMU7J34H.js';import {schemaAttributeValue,findDirectChild,CHARTEX_NAMESPACE_URI,DRAWINGML_MAIN_NAMESPACE_URI,resolveColorNode,isElement,readOoxmlPart,parseEmu,directFill,installDrawingRenderers,findGraphicData,CHARTEX_GRAPHIC_DATA_URI,CHART_GRAPHIC_DATA_URI,CHART_NAMESPACE_URI,vmlNamed,VML_NAMESPACE_URI,vmlAttribute,vmlChildren,VML_OFFICE_NAMESPACE_URI,vmlStyle,vmlOff,vmlPoints,legacyRotationDegrees,shapeThemeCacheToken,vmlColor,vmlNumber,vmlFormulaValues,escapeXmlAttribute,DIAGRAM_NAMESPACE_URI,isValidXmlText,lowerDrawingTextBody,presetGeometryDefinition,evaluateGeometry,escapeXml,CHART_STYLE_NAMESPACE_URI,VML_WORD_NAMESPACE_URI}from'@docx-editor.dev/core/store';var _r=CHART_NAMESPACE_URI,mc=8,Dr=255,_n=4096,hc=32768,nl=1024,ol=new Map([["barChart",{kind:"bar",threeD:false}],["bar3DChart",{kind:"bar",threeD:true}],["lineChart",{kind:"line",threeD:false}],["line3DChart",{kind:"line",threeD:true}],["areaChart",{kind:"area",threeD:false}],["area3DChart",{kind:"area",threeD:true}],["pieChart",{kind:"pie",threeD:false}],["pie3DChart",{kind:"pie",threeD:true}],["doughnutChart",{kind:"doughnut",threeD:false}],["scatterChart",{kind:"scatter",threeD:false}],["radarChart",{kind:"radar",threeD:false}],["bubbleChart",{kind:"bubble",threeD:false}],["stockChart",{kind:"line",threeD:false}],["ofPieChart",{kind:"ofPie",threeD:false}],["surfaceChart",{kind:"surface",threeD:false}],["surface3DChart",{kind:"surface",threeD:true}]]);function F(e,t){return e?findDirectChild(e.children,{namespaceUri:_r,localName:t}):null}function fe(e,t){let n=[];for(let r of e?.children??[])isElement(r)&&r.namespaceUri===_r&&r.localName===t&&n.push(r);return n}function Y(e,t){let n=F(e,t);return n?schemaAttributeValue(n.attributes,"val"):void 0}function se(e,t,n){let r=F(e,t);if(!r)return n;let o=schemaAttributeValue(r.attributes,"val");return o===void 0?true:o==="1"||o==="true"}function ne(e,t,n,r){let o=Y(e,t);if(o===void 0||o.length>40)return null;let l=Number(o);return Number.isFinite(l)&&l>=n&&l<=r?l:null}function Ir(e){let t="";for(let n of e?.children??[])n.kind==="textValue"&&(t+=n.value);return t.length>nl?t.slice(0,nl):t}function ll(e,t){let n=Y(e,"ptCount")?.trim(),r=ne(e,"ptCount",0,_n);return F(e,"ptCount")&&(!n||!/^\+?\d+$/.test(n)||r===null)?(t.remaining=-1,null):r}function In(e,t){if(!e)return null;let n=ll(e,t);if(t.remaining<0)return null;let r=fe(e,"pt"),o=n??0,l=[];for(let s of r){let i=schemaAttributeValue(s.attributes,"idx"),c=i!==void 0&&/^\d{1,6}$/.test(i)?Number(i):-1;if(c<0||c>=_n||n!==null&&c>=n)return t.remaining=-1,null;l.push([c,Ir(F(s,"v"))]),n===null&&(o=Math.max(o,c+1));}if(o>_n||(t.remaining-=o,t.remaining<0))return null;let a=Array.from({length:o},()=>null);for(let[s,i]of l)a[s]=i;return a}function Dn(e,t){let n={text:null,numbers:null,formatCode:null};if(!e)return n;let r=F(e,"numRef"),o=F(r,"numCache")??F(e,"numLit");if(o){let c=In(o,t),u=Ir(F(o,"formatCode"))||null;return {text:c,numbers:c?.map(f=>al(f))??null,formatCode:u}}let l=F(e,"strRef"),a=F(l,"strCache")??F(e,"strLit");if(a)return {text:In(a,t),numbers:null,formatCode:null};let s=F(F(e,"multiLvlStrRef"),"multiLvlStrCache");if(s){let c=fe(s,"lvl")[0]??null;if(c){let u=ll(s,t),f=In(c,t)??[],d=u??f.length;return d<f.length?(t.remaining=-1,n):(t.remaining-=Math.max(0,d-f.length),t.remaining<0?n:{text:Array.from({length:d},(m,h)=>f[h]??null),numbers:null,formatCode:null})}}let i=F(e,"v");return i?{text:[Ir(i)],numbers:null,formatCode:null}:n}function al(e){if(e===null)return null;let t=e.trim();if(t===""||t.length>40)return null;let n=Number(t);return Number.isFinite(n)?n:null}function pc(e){return e?{symbol:Y(e,"symbol")??null,size:ne(e,"size",2,72),spPr:F(e,"spPr")}:null}function yc(e,t,n){let r=Dn(F(e,"tx"),n).text?.[0]??null,o=t==="scatter"||t==="bubble",l=Dn(F(e,o?"xVal":"cat"),n),a=Dn(F(e,o?"yVal":"val"),n);if(n.remaining<0)return null;let s=new Map;for(let i of fe(e,"dPt")){let c=ne(i,"idx",0,_n-1);c!==null&&s.set(c,i);}return {index:ne(e,"idx",0,2**31)??0,order:ne(e,"order",0,2**31)??0,name:r,categories:o?null:l.text,categoryNumbers:o?null:l.numbers,categoryFormat:l.formatCode,xValues:o?l.numbers:null,values:a.numbers??(a.text??[]).map(al),formatCode:a.formatCode,spPr:F(e,"spPr"),marker:pc(F(e,"marker")),dLbls:F(e,"dLbls"),points:s,smooth:se(e,"smooth",false),explosion:ne(e,"explosion",0,400)??0,invertIfNegative:se(e,"invertIfNegative",false),bubbleSizes:t==="bubble"?Dn(F(e,"bubbleSize"),n).numbers??null:null,trendlines:fe(e,"trendline").slice(0,8),errorBars:fe(e,"errBars").slice(0,2),labelRange:In(xc(e),n)}}function rl(e,t){for(let n of e?.children??[])if(isElement(n)&&n.localName===t)return n;return null}function xc(e){for(let t of fe(F(e,"extLst"),"ext")){let n=rl(rl(t,"datalabelsRange"),"dlblRangeCache");if(n)return n}return null}var gc=new Set(["clustered","stacked","percentStacked","standard"]);function bc(e,t){let n=ol.get(e.localName);if(!n)return null;let r=[];for(let a of fe(e,"ser")){if(r.length>=Dr)return null;let s=yc(a,n.kind,t);if(!s||t.remaining<0)return null;r.push(s);}r.sort((a,s)=>a.order-s.order);let o=Y(e,"grouping"),l=n.kind;return {kind:l,threeD:n.threeD,element:e,horizontal:l==="bar"&&Y(e,"barDir")==="bar",grouping:o&&gc.has(o)?o:l==="bar"?"clustered":"standard",varyColors:se(e,"varyColors",l==="pie"||l==="doughnut"),gapWidth:ne(e,"gapWidth",0,500)??150,overlap:ne(e,"overlap",-100,100)??0,gapDepth:ne(e,"gapDepth",0,500)??150,series:r,axisIds:fe(e,"axId").map(a=>schemaAttributeValue(a.attributes,"val")??""),dLbls:F(e,"dLbls"),firstSliceAngle:ne(e,"firstSliceAng",0,360)??0,holeSize:ne(e,"holeSize",1,90)??50,markers:se(e,"marker",true),scatterStyle:Y(e,"scatterStyle")??null,radarStyle:Y(e,"radarStyle")??null,hiLowLines:F(e,"hiLowLines"),upDownBars:F(e,"upDownBars"),bubbleScale:ne(e,"bubbleScale",0,300)??100,bubbleArea:Y(e,"sizeRepresents")!=="w",ofPie:l==="ofPie"?{type:Y(e,"ofPieType")==="bar"?"bar":"pie",splitType:Y(e,"splitType")??"auto",splitPos:ne(e,"splitPos",-1e300,1e300),secondSize:ne(e,"secondPieSize",5,200)??75,serLines:F(e,"serLines")}:null,wireframe:l==="surface"&&se(e,"wireframe",false),bandFormats:l==="surface"?Cc(e):new Map}}function Cc(e){let t=new Map;for(let n of fe(F(e,"bandFmts"),"bandFmt").slice(0,Dr)){let r=ne(n,"idx",0,Dr),o=F(n,"spPr");r!==null&&o&&t.set(r,o);}return t}var Mc=new Set(["b","t","l","r"]);function Sc(e){let t=e.localName==="catAx"?"category":e.localName==="valAx"?"value":e.localName==="dateAx"?"date":e.localName==="serAx"?"series":null;if(!t)return null;let n=Y(e,"axId");if(!n)return null;let r=F(e,"scaling"),o=F(e,"numFmt"),l=Y(e,"axPos"),a=ne(e,"crossesAt",-1e300,1e300),s=Y(e,"crosses"),i=Y(e,"majorTickMark"),c=Y(e,"tickLblPos"),u=Y(e,"crossBetween"),f=Y(e,"baseTimeUnit");return {id:n,kind:t,element:e,deleted:se(e,"delete",false),position:l&&Mc.has(l)?l:"b",crossAxisId:Y(e,"crossAx")??null,reversed:Y(r,"orientation")==="maxMin",min:ne(r,"min",-1e300,1e300),max:ne(r,"max",-1e300,1e300),majorUnit:ne(e,"majorUnit",1e-300,1e300),logBase:ne(r,"logBase",2,1e3),formatCode:o?schemaAttributeValue(o.attributes,"formatCode")??null:null,sourceLinked:o?schemaAttributeValue(o.attributes,"sourceLinked")==="1":true,majorGridlines:F(e,"majorGridlines"),minorGridlines:F(e,"minorGridlines"),majorTickMark:i==="none"||i==="in"||i==="out"||i==="cross"?i:"cross",tickLabelPosition:c==="low"||c==="high"||c==="none"?c:"nextTo",spPr:F(e,"spPr"),txPr:F(e,"txPr"),title:F(e,"title"),crosses:a!==null?a:s==="min"||s==="max"?s:"autoZero",crossBetween:u==="between"||u==="midCat"?u:null,tickLabelSkip:ne(e,"tickLblSkip",1,32e3),baseTimeUnit:f==="days"||f==="months"||f==="years"?f:null}}function zn(e){let t=F(e,"manualLayout");if(!t)return null;let n=s=>ne(t,s,-10,10),r=n("x"),o=n("y"),l=n("w"),a=n("h");return r===null||o===null||Y(t,"xMode")==="factor"||Y(t,"yMode")==="factor"?null:{inner:Y(t,"layoutTarget")!=="outer",x:r,y:o,w:l??0,h:a??0}}function Pc(e){if(!e)return null;let t=Y(e,"legendPos"),n=new Set;for(let r of fe(e,"legendEntry")){let o=ne(r,"idx",0,1e5);o!==null&&se(r,"delete",false)&&n.add(o);}return {element:e,position:t==="b"||t==="t"||t==="l"||t==="tr"?t:"r",overlay:se(e,"overlay",false),txPr:F(e,"txPr"),spPr:F(e,"spPr"),layout:zn(F(e,"layout")),deleted:n}}function wc(e){let t=ne(e,"style",1,48);if(t!==null)return t;for(let n of e.children)if(!(!isElement(n)||n.localName!=="AlternateContent"))for(let r of n.children){if(!isElement(r)||r.localName!=="Fallback")continue;let o=ne(r,"style",1,48);if(o!==null)return o}return 2}function sl(e){let t=F(e,"chart"),n=F(t,"plotArea");if(!t||!n)return null;let r={remaining:hc},o=[],l=new Map;for(let a of n.children){if(!isElement(a)||a.namespaceUri!==_r)continue;if(ol.has(a.localName)){if(o.length>=mc)return null;let i=bc(a,r);if(!i)return null;o.push(i);continue}let s=Sc(a);s&&l.set(s.id,s);}return o.length===0?null:{chartSpace:e,date1904:se(e,"date1904",false),style:wc(e),roundedCorners:se(e,"roundedCorners",true),spPr:F(e,"spPr"),txPr:F(e,"txPr"),title:F(t,"title"),autoTitleDeleted:se(t,"autoTitleDeleted",false),plotSpPr:F(n,"spPr"),plotLayout:zn(F(n,"layout")),plots:o,axes:l,legend:Pc(F(t,"legend")),view3D:F(t,"view3D"),floor:F(t,"floor"),sideWall:F(t,"sideWall"),backWall:F(t,"backWall")}}var zr=["January","February","March","April","May","June","July","August","September","October","November","December"],il=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Jt(e){if(!Number.isFinite(e))return "";if(e===0)return "0";let t=Math.abs(e);if(t>=1e11||t<1e-9){let[o,l]=e.toExponential(5).split("e"),a=o.replace(/\.?0+$/,""),s=Number(l);return `${a}E${s<0?"-":"+"}${String(Math.abs(s)).padStart(2,"0")}`}let n=Math.max(0,10-Math.max(1,Math.floor(Math.log10(t))+1)),r=e.toFixed(Math.min(n,20));return r.includes(".")?r.replace(/\.?0+$/,""):r}function cl(e){let t=[],n="",r=false,o=false;for(let l=0;l<e.length;l+=1){let a=e[l];if(a==="\\"&&!r&&l+1<e.length){n+=a+e[l+1],l+=1;continue}if(a==='"'?r=!r:!r&&a==="["?o=true:!r&&a==="]"&&(o=false),a===";"&&!r&&!o){t.push(n),n="";continue}n+=a;}return t.push(n),t}function ul(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];if(r==='"'){let o=e.indexOf('"',n+1),l=o===-1?e.length:o;t.push({kind:"literal",text:e.slice(n+1,l)}),n=l;}else if(r==="\\"&&n+1<e.length)t.push({kind:"literal",text:e[n+1]}),n+=1;else if(r==="_"&&n+1<e.length)t.push({kind:"literal",text:" "}),n+=1;else if(r==="*"&&n+1<e.length)n+=1;else if(r==="["){let o=e.indexOf("]",n+1),l=o===-1?e.length:o,a=e.slice(n+1,l);if(/^(?:h+|m+|s+)$/i.test(a))t.push({kind:"code",text:`[${a}]`});else if(a.startsWith("$")){let s=a.indexOf("-");t.push({kind:"literal",text:a.slice(1,s===-1?a.length:s)});}n=l;}else "$-+/():!^&'~{}<>= ".includes(r)?t.push({kind:"literal",text:r}):t.push({kind:"code",text:r});}return t}function Fn(e){return (e[0]==="["?e[1]:e[0]).toLowerCase()}function dl(e){let t=false,n="",r=false;for(let o of e){if(o.kind!=="code")continue;let l=Fn(o.text);if(l===".")r=n==="s";else {if(l==="0"&&r)continue;if(l==="0"||l==="#"||l==="?")return false;r=false;}"ymdhs".includes(l)&&(t=true),n=l;}return t}function vc(e){let t="";for(let n=0;n<e.length;n+=1)n>0&&(e.length-n)%3===0&&(t+=","),t+=e[n];return t}function Ac(e,t){let n=t.map(x=>x.kind==="code"?x.text:""),r=n.findIndex(x=>x==="E"||x==="e"),o=x=>x==="0"||x==="#"||x==="?",l=0,a=-1,s=-1,i=-1;for(let x=0;x<n.length&&!(r!==-1&&x>=r);x+=1){let g=n[x];g==="%"&&(l+=1),g==="."&&a===-1&&(a=x),o(g)&&(i===-1&&(i=x),s=x);}if(i===-1)return t.map(x=>x.kind==="literal"?x.text:"").join("");let c=e*100**Math.min(l,3),u=s+1;for(;u<n.length&&n[u]===",";)c/=1e3,u+=1;let f=a===-1?s+1:a,d=false,m=0;for(let x=i;x<f;x+=1)n[x]===","&&(d=true),n[x]==="0"&&(m+=1);let h=0,y=0;if(a!==-1)for(let x=a+1;x<=s;x+=1)o(n[x])&&(y+=1,n[x]==="0"&&(h=y));y=Math.min(y,30),h=Math.min(h,y);let p;if(r!==-1){let x=y,[g,M]=Math.abs(c).toExponential(x).split("e"),b=Number(M),S=t[r+1]?.text==="+"||t[r+1]?.text==="-",E=b<0?"-":t[r+1]?.text==="+"?"+":"",A=0;for(let D=r+(S?2:1);D<n.length&&o(n[D]);D+=1)A+=1;p=`${g}E${E}${String(Math.abs(b)).padStart(Math.max(1,A),"0")}`;}else {let x=Math.abs(c).toFixed(y),[g,M=""]=x.split(".");for(;M.length>h&&M.endsWith("0");)M=M.slice(0,-1);g==="0"&&m===0&&(g=""),g=g.padStart(m,"0"),d&&(g=vc(g)),p=a===-1?g:`${g}.${M}`;}let v="",P="";for(let x=0;x<t.length;x+=1){let g=t[x],M=g.kind==="literal"?g.text:g.text==="%"?"%":"";x<i?v+=M:x>(r!==-1?n.length:s)&&g.text!==","&&(P+=M);}return v+p+P}function $e(e,t){return String(e).padStart(t,"0")}function Ec(e,t){if(!Number.isFinite(e)||e<0||e>2958465)return null;let n=t?e+1462:e<61?e+1:e,r=Math.round((n-25569)*864e5);return new Date(r)}function kc(e,t,n){let r=Ec(Math.abs(e),n);if(!r)return Jt(e);let o=[];for(let s of t){let i=o[o.length-1];i&&i.kind==="code"&&s.kind==="code"&&i.text[0]!=="["&&s.text[0]!=="["&&i.text[0].toLowerCase()===s.text.toLowerCase()?i.text+=s.text:o.push({kind:s.kind,text:s.text});}let l=t.some(s=>s.kind==="code"&&s.text.toLowerCase()==="a"),a="";for(let s=0;s<o.length;s+=1){let i=o[s];if(i.kind==="literal"){a+=i.text;continue}let c=i.text.toLowerCase(),u=Fn(i.text),f=i.text.length;if(c[0]==="["){let d=u==="h"?24:u==="m"?1440:86400;a+=$e(Math.floor(Math.abs(e)*d+1e-9),f-2);}else if(u==="0"&&o[s-1]?.text==="."){let d=r.getUTCMilliseconds();a+=$e(Math.floor(d/10**(3-Math.min(f,3))),Math.min(f,3)).padEnd(f,"0");}else if(u==="y")a+=f<=2?$e(r.getUTCFullYear()%100,2):String(r.getUTCFullYear());else if(u==="d")f>=4?a+=il[r.getUTCDay()]:f===3?a+=il[r.getUTCDay()].slice(0,3):a+=f===2?$e(r.getUTCDate(),2):String(r.getUTCDate());else if(u==="m"){let d=o.slice(0,s).reverse().find(y=>y.kind==="code"),m=o.slice(s+1).find(y=>y.kind==="code");f<=2&&(d&&Fn(d.text)==="h"||m&&Fn(m.text)==="s")?a+=f===2?$e(r.getUTCMinutes(),2):String(r.getUTCMinutes()):f>=5?a+=zr[r.getUTCMonth()][0]:f===4?a+=zr[r.getUTCMonth()]:f===3?a+=zr[r.getUTCMonth()].slice(0,3):a+=f===2?$e(r.getUTCMonth()+1,2):String(r.getUTCMonth()+1);}else if(u==="h"){let d=r.getUTCHours();l&&(d=d%12===0?12:d%12),a+=f>=2?$e(d,2):String(d);}else if(u==="s")a+=f>=2?$e(r.getUTCSeconds(),2):String(r.getUTCSeconds());else if(u==="a"){let d=r.getUTCHours()>=12,m=o[s+2]?.text.toLowerCase()==="p";for(a+=m?d?"P":"A":d?"PM":"AM";s+1<o.length&&/^[mp/]/i.test(o[s+1].text);)s+=1;}else if(u==="e")a+=String(r.getUTCFullYear());else {if(u==="g"||u==="b")continue;a+=i.text;}}return a}function ee(e,t,n=false){if(!Number.isFinite(e))return "";if(!t||t.length>256||/^general$/i.test(t.trim()))return Jt(e);let r=cl(t),o=r[0],l=e;if(e<0&&r.length>=2?(o=r[1],l=-e):e===0&&r.length>=3&&(o=r[2]),/^general$/i.test(o.trim()))return Jt(l);let a=ul(o);if(dl(a))return kc(e,a,n);let s=Ac(l,a),i=/^[^1-9]*$/.test(s);return l<0&&!i?`-${s}`:s}function fl(e){return !e||e.length>256||/^general$/i.test(e.trim())?false:dl(ul(cl(e)[0]))}function Ge(e,t,n){let r=e.categoryNumbers?.[t];return r!=null&&e.categoryFormat?ee(r,e.categoryFormat,n):e.categories?.[t]??null}function jn(e,t){if(e.logBase!==void 0){if(!(t>0))return 0;let n=Math.log(e.max/e.min)||1;return Math.log(t/e.min)/n}return (t-e.min)/(e.max-e.min||1)}function pl(e,t,n,r,o){let l=f=>Math.log(f)/Math.log(n),a=e>0?e:1,s=t>0?Math.max(t,a):a,i=r!==null&&r>0?r:n**Math.floor(l(a)+1e-9),c=o!==null&&o>0?o:n**Math.ceil(l(s)-1e-9);c>i||(c=i*n);let u=[];for(let f=0;f<=1e3;f+=1){let d=Number((i*n**f).toPrecision(12));if(d>c*(1+1e-9))break;u.push(d);}return {min:i,max:c,major:n,ticks:u,logBase:n}}function ml(e){let t=10**Math.floor(Math.log10(e));return [1,2,5,10,20].map(n=>n*t)}function hl(e,t){return Number((Math.round(e/t)*t).toPrecision(12))}function We(e){let t=Number.isFinite(e.dataMin)?e.dataMin:0,n=Number.isFinite(e.dataMax)?e.dataMax:1;t>n&&([t,n]=[n,t]),e.fixedMin!==null&&(t=Math.min(t,e.fixedMin)),e.fixedMax!==null&&(n=Math.max(n,e.fixedMax)),t===n&&(n===0?n=1:n>0?t=0:n=0);let r=t,o=n;e.fixedMin===null&&t>=0&&(r=t>5/6*n?t-(n-t)/2:0),e.fixedMax===null&&n<=0&&(o=n<5/6*t?n+(n-t)/2:0);let l=e.noHeadroom?0:.05*(o-r),a=e.fixedMax??(o>0?o+l:o),s=e.fixedMin??(r<0?r-l:r),i=Math.max(a-s,Number.EPSILON),c=Math.max(1,Math.floor(e.lengthPt/Math.max(1,e.minIntervalPt))),u=e.fixedMajor??0;if(!(u>0)||i/u>1e3){u=0;let h=e.roomOnly===true||e.fixedMin!==null&&e.fixedMax!==null,y=(e.fixedMax??o)-(e.fixedMin??r);for(let p of ml(i/10)){let v=Math.ceil(a/p-1e-9)-Math.floor(s/p+1e-9),P=e.roomOnly?Math.min(c,10):c;if(v<=P&&(h||y/p<=9.5)){u=p;break}}u===0&&(u=ml(i)[2]);}let f=e.fixedMin??hl(Math.floor(s/u+1e-9)*u,u),d=e.fixedMax??hl(Math.ceil(a/u-1e-9)*u,u);d<=f&&(d=f+u);let m=[];for(let h=0;h<=1e3;h+=1){let y=Number((f+h*u).toPrecision(12));if(y>d+u*1e-9)break;m.push(y);}return {min:f,max:d,major:u,ticks:m}}var Tc=[226,326,401,498,507,715,682,221,303,303,498,498,250,306,252,386,507,507,507,507,507,507,507,507,507,507,268,268,498,498,498,463,894,579,544,533,615,488,459,631,623,252,319,520,420,855,646,662,517,673,543,459,487,642,567,890,519,487,468,307,386,307,498,498,291,479,525,423,525,498,305,471,525,229,239,455,229,799,525,527,525,525,349,391,335,525,452,715,433,453,395,314,460,314,498],Lc=[226,326,438,498,507,729,705,233,312,312,498,498,258,306,267,430,507,507,507,507,507,507,507,507,507,507,276,276,498,498,498,463,898,606,561,529,630,488,459,637,631,267,331,547,423,874,659,676,532,686,563,473,495,653,591,906,551,520,478,325,430,325,498,498,300,494,537,418,537,503,316,474,537,246,255,480,246,813,537,538,537,537,355,399,347,537,473,745,459,474,397,344,475,344,498],Nc=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584],Oc=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584],Rc=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541];function Dc(e,t){let n=e.toLowerCase();return /times|serif|tinos|georgia|cambria|garamond|book/.test(n)?Rc:n.startsWith("+")||/calibri|carlito|aptos/.test(n)?t?Lc:Tc:t?Oc:Nc}function Ic(e){return e>=1424&&e<=1535?500:e>=1536&&e<=1791?450:e>=11904?1e3:580}function yl(e,t,n){return e>=32&&e<=126?Dc(t,n)[e-32]:Ic(e)}var ot=DRAWINGML_MAIN_NAMESPACE_URI,Bn=12700,Br=512,Uc=128,Hc=16,Vr=1.22;function xl(e,t){let n=schemaAttributeValue(e.attributes,t);return n==="1"||n==="true"?true:n==="0"||n==="false"?false:null}function jr(e,t){let n=findDirectChild(e.children,{namespaceUri:ot,localName:t}),r=n?schemaAttributeValue(n.attributes,"typeface"):void 0;return r&&r.length<=Uc&&isValidXmlText(r)?r:null}function we(e,t,n){if(!t)return e;let r=schemaAttributeValue(t.attributes,"sz"),o=r&&/^\d{3,6}$/.test(r)?Number(r)/100:null,a=findDirectChild(t.children,{namespaceUri:ot,localName:"solidFill"})?.children.find(isElement),s=a?resolveColorNode(a,n):null,i=schemaAttributeValue(t.attributes,"u");return {sizePt:o!==null&&o>=1&&o<=400?o:e.sizePt,bold:xl(t,"b")??e.bold,italic:xl(t,"i")??e.italic,underline:i===void 0?e.underline:i!=="none",colorHex:s?.hex??e.colorHex,latin:jr(t,"latin")??e.latin,eastAsian:jr(t,"ea")??e.eastAsian,complex:jr(t,"cs")??e.complex}}function Ur(e){if(!e)return null;let t=findDirectChild(e.children,{namespaceUri:ot,localName:"p"}),n=t?findDirectChild(t.children,{namespaceUri:ot,localName:"pPr"}):null;return n?findDirectChild(n.children,{namespaceUri:ot,localName:"defRPr"}):null}function en(e){let t=e?findDirectChild(e.children,{namespaceUri:ot,localName:"bodyPr"}):null;if(!t)return null;let n=schemaAttributeValue(t.attributes,"vert");if(n==="vert")return 90;if(n==="vert270")return -90;let r=schemaAttributeValue(t.attributes,"rot");if(r===void 0||!/^-?\d{1,9}$/.test(r))return null;let o=Number(r);return o===-6e7||Math.abs(o)>54e5?null:o/6e4}function K(e,t){let n=t.latin.startsWith("+mj")?t.themeFaces?.major??t.latin:t.latin.startsWith("+mn")?t.themeFaces?.minor??t.latin:t.latin,r=0,o=0;for(let l of e){if(++o>Br)break;r+=yl(l.codePointAt(0),n,t.bold);}return r/1e3*t.sizePt}function Z(e){return e.sizePt*Vr}function lt(e,t){let n=0;for(let r of e)n+=r.length>0?Math.max(...r.map(o=>Z(o.style))):Z(t);return n}function wt(e){let t=0;for(let n of e)t=Math.max(t,n.reduce((r,o)=>r+K(o.text,o.style),0));return t}function $c(e){let t=e.style,n=`<a:latin typeface="${escapeXmlAttribute(t.latin)}"/>`+(t.eastAsian?`<a:ea typeface="${escapeXmlAttribute(t.eastAsian)}"/>`:"")+(t.complex?`<a:cs typeface="${escapeXmlAttribute(t.complex)}"/>`:""),r=e.text.length>Br?e.text.slice(0,Br):e.text;return `<a:r><a:rPr sz="${Math.round(t.sizePt*100)}" b="${t.bold?1:0}" i="${t.italic?1:0}" u="${t.underline?"sng":"none"}"><a:solidFill><a:srgbClr val="${t.colorHex}"/></a:solidFill>${n}</a:rPr><a:t>${escapeXml(r)}</a:t></a:r>`}function Gc(e){let t=[];for(let n of e){let r=[];for(let o of n){let l=o.text.split(/\r\n|\r|\n/);for(let[a,s]of l.entries())a>0&&(t.push(r),r=[]),s!==""&&r.push({text:s,style:o.style});}t.push(r);}return t.slice(0,Hc)}function bl(e,t,n){let r=[];for(let u of Gc(e.paragraphs)){let f=u.filter(m=>m.text!==""&&isValidXmlText(m.text));if(f.length===0)continue;let d=Math.round(Math.min(...f.map(m=>m.style.sizePt))*100);r.push(`<a:p><a:pPr algn="${e.align}"/>${f.map($c).join("")}<a:endParaRPr sz="${d}"/></a:p>`);}if(r.length===0)return null;let o=`<a:txBody xmlns:a="${ot}"><a:bodyPr wrap="square" lIns="0" tIns="0" rIns="0" bIns="0" anchor="ctr"/><a:lstStyle/>${r.join("")}</a:txBody>`,l=readOoxmlPart(o,{name:`${n}#${t}`,contentType:"application/xml"});if(!l.ok)return null;let a=lowerDrawingTextBody(l.part.root,`${n}#${t}:story`,{fontSlot:null,color:null});if(a==="no-text"||a==="unsupported")return null;let s=Math.max(1,Math.round(e.width*Bn)),i=Math.max(1,Math.round(e.height*Bn)),c=(e.rotation%360+360)%360;return Object.freeze({memberNodeId:t,frameEmu:Object.freeze({x:Math.round(e.x*Bn),y:Math.round(e.y*Bn),cx:s,cy:i}),story:Object.freeze({contentNodeId:a.content.id,content:a.content,insetsEmu:Object.freeze({top:0,right:0,bottom:0,left:0}),verticalAnchor:"center",autofit:"none",fillHex:null,strokeHex:null,strokeWidthEmu:0,drawingText:true}),rotationDegrees:Number.isFinite(c)?c:0})}var Cl=64,Wc=6;function wl(e,t){let n=e.kind==="scatter"||e.kind==="bubble";return t.values.map((r,o)=>n&&t.xValues?t.xValues[o]??null:o+1)}function Xc(e,t){let n=wl(e,t),r=[];for(let[o,l]of t.values.entries()){let a=n[o];a==null||l===null||l===void 0||Number.isFinite(a)&&Number.isFinite(l)&&r.push({x:a,y:l});}return r}function Ml(e,t){let n=t+1,r=Array.from({length:n},()=>Array(n+1).fill(0));for(let{x:o,y:l}of e)for(let a=0;a<n;a+=1){for(let s=0;s<n;s+=1)r[a][s]+=o**(a+s);r[a][n]+=l*o**a;}for(let o=0;o<n;o+=1){let l=o;for(let a=o+1;a<n;a+=1)Math.abs(r[a][o])>Math.abs(r[l][o])&&(l=a);if(Math.abs(r[l][o])<1e-12)return null;[r[o],r[l]]=[r[l],r[o]];for(let a=0;a<n;a+=1){if(a===o)continue;let s=r[a][o]/r[o][o];for(let i=o;i<=n;i+=1)r[a][i]-=s*r[o][i];}}return r.map((o,l)=>o[n]/o[l])}function at(e){return Number.isFinite(e)?Jt(Number(e.toPrecision(4))):"0"}function Sl(e,t,n){return `${e<0?t?"-":" - ":t?"":" + "}${at(Math.abs(e))}${n}`}var qc=["","","\xB2","\xB3","\u2074","\u2075","\u2076"];function Yc(e,t,n){let r=Y(e,"trendlineType")??"linear",o=Xc(t,n);if(o.length<2)return null;let l=o.map(b=>b.x),a=Number(Y(e,"forward")??0)||0,s=Number(Y(e,"backward")??0)||0,i=Math.min(...l)-Math.max(0,Math.min(s,1e6)),c=Math.max(...l)+Math.max(0,Math.min(a,1e6)),u=n.name??`Series${n.index+1}`,f=F(e,"name"),d="";for(let b of f?.children??[])b.kind==="textValue"&&(d+=b.value);let m=null,h="",y="Linear";if(r==="movingAvg"){let b=Math.max(2,Math.min(255,Math.round(Number(Y(e,"period")??2)||2))),S=[...o].sort((A,D)=>A.x-D.x),E=[];for(let A=b-1;A<S.length;A+=1){let D=0;for(let w=0;w<b;w+=1)D+=S[A-w].y;E.push({x:S[A].x,y:D/b});}return E.length<2?null:{element:e,points:E,name:d||`${b} per. Mov. Avg. (${u})`,label:[]}}let p=Y(e,"intercept");if(r==="linear"||r==="poly"){let b=r==="poly"?Math.max(2,Math.min(Wc,Math.round(Number(Y(e,"order")??2)||2))):1,S=Ml(o,b);if(!S)return null;if(p!==void 0&&b===1&&Number.isFinite(Number(p))){let A=Number(p),D=0,w=0;for(let T of o)D+=T.x*(T.y-A),w+=T.x*T.x;S[0]=A,S[1]=w?D/w:0;}m=A=>S.reduce((D,w,T)=>D+w*A**T,0);let E=[];for(let A=b;A>=0;A-=1){let D=S[A];if(A>0&&Math.abs(D)<1e-15)continue;let w=A===0?"":A===1?"x":`x${qc[A]}`;E.push(Sl(D,E.length===0,w));}h=`y = ${E.join("")}`,y=r==="poly"?"Poly.":"Linear";}else if(r==="exp"||r==="log"||r==="power"){let S=o.filter(w=>(r==="log"||w.y>0)&&(r==="exp"||w.x>0)).map(w=>({x:r==="exp"?w.x:Math.log(w.x),y:r==="log"?w.y:Math.log(w.y)})),E=S.length>=2?Ml(S,1):null;if(!E)return null;let[A,D]=E;r==="exp"?(m=w=>Math.exp(A)*Math.exp(D*w),h=`y = ${at(Math.exp(A))}e^${at(D)}x`,y="Expon."):r==="log"?(m=w=>w>0?A+D*Math.log(w):NaN,h=`y = ${at(D)}ln(x)${Sl(A,false,"")}`,y="Log."):(m=w=>w>0?Math.exp(A)*w**D:NaN,h=`y = ${at(Math.exp(A))}x^${at(D)}`,y="Power");}else return null;let v=[];for(let b=0;b<=Cl;b+=1){let S=i+(c-i)*b/Cl,E=m(S);Number.isFinite(E)&&v.push({x:S,y:E});}let P=o.reduce((b,S)=>b+S.y,0)/o.length,x=0,g=0;for(let b of o)x+=(b.y-m(b.x))**2,g+=(b.y-P)**2;let M=[];return se(e,"dispEq",false)&&M.push(h),se(e,"dispRSqr",false)&&M.push(`R\xB2 = ${at(g?1-x/g:1)}`),{element:e,points:v,name:d||`${y} (${u})`,label:M}}function vt(e,t){let n=[];for(let r of t.trendlines){let o=Yc(r,e,t);o&&n.push(o);}return n}function Pl(e,t){let n=F(e,t),r=F(F(n,"numRef"),"numCache")??F(n,"numLit"),o=[];for(let l of r?.children??[]){if(l.kind==="textValue"||l.localName!=="pt")continue;let a=Number(l.attributes.find(i=>i.localName==="idx")?.value),s="";for(let i of F(l,"v")?.children??[])i.kind==="textValue"&&(s+=i.value);Number.isInteger(a)&&a>=0&&a<4096&&(o[a]=Number(s));}return o}function Vn(e,t){let n=[],r=wl(e,t),o=t.values.map((a,s)=>({y:a,x:r[s]})),l=t.values.filter(a=>a!==null&&Number.isFinite(a));for(let a of t.errorBars){let s=Y(a,"errDir")==="x"?"x":"y",i=Y(a,"errBarType")??"both",c=Y(a,"errValType")??"fixedVal",u=Number(Y(a,"val")??0)||0,f=!se(a,"noEndCap",false),d=Pl(a,"plus"),m=Pl(a,"minus"),h=l.length,y=h?l.reduce((v,P)=>v+P,0)/h:0,p=h>1?Math.sqrt(l.reduce((v,P)=>v+(P-y)**2,0)/(h-1)):0;for(let[v,P]of o.entries()){if(P.y===null||P.x===null||P.x===void 0)continue;let x=s==="y"?P.y:P.x,g=0,M=0;if(c==="percentage"?g=M=Math.abs(x)*(u/100):c==="stdDev"?g=M=p*u:c==="stdErr"?g=M=h?p/Math.sqrt(h):0:c==="cust"?(g=d[v]??0,M=m[v]??0):g=M=u,!Number.isFinite(g)||!Number.isFinite(M))continue;let b=c==="stdDev"&&s==="y"?y:x,S=i==="plus"?x:b-M,E=i==="minus"?x:b+g;n.push({direction:s,at:{x:P.x,y:P.y},from:S,to:E,caps:f,element:a});}}return n}var Kc=1,Qc=1.4;function ze(e,t,n){let r=t.axisIds.map(o=>e.axes.get(o)).filter(o=>o!==void 0);if(t.kind==="scatter"||t.kind==="bubble"){let o=s=>s.position==="b"||s.position==="t",l=r.find(o)??r[0]??null,a=r.find(s=>s!==l)??null;return n==="value"?a:n==="x"?l:null}return n==="value"?r.find(o=>o.kind==="value")??null:r.find(o=>o.kind==="category"||o.kind==="date")??null}function At(e,t,n){let r=0,o=null,l=null,a=null;for(let h of t)for(let y of h.series)r=Math.max(r,y.values.length),!o&&y.categories&&(o=[...y.categories],l=y.categoryNumbers?[...y.categoryNumbers]:null,a=y.categoryFormat);let s=t.length>0?ze(e,t[0],"category"):null;o&&(r=Math.max(r,o.length)),r=Math.min(r,n);let c=(s&&!s.sourceLinked?s.formatCode:null)??a,u=l!==null&&(s?.kind==="date"||s?.kind!=="category"&&fl(c))&&l.every(h=>h!==null),f=[];for(let h=0;h<r;h+=1){let y=l?.[h];y!=null&&c?f.push(ee(y,c,e.date1904)):f.push(o?.[h]??String(h+1));}let d=t.length>0?ze(e,t[0],"value"):null,m=d?.crossBetween==="midCat"||d?.crossBetween===null&&t.every(h=>h.kind==="area");return {axis:s,count:r,labels:f,serials:u?Zc(l.slice(0,r),s,e.date1904):null,between:!m}}function Zc(e,t,n){let r=a=>e.map(s=>{let i=n?s+1462:s<61?s+1:s,c=new Date(Math.round((i-25569)*864e5)),u=c.getUTCFullYear();return a==="years"?u:u*12+c.getUTCMonth()}),o=t?.baseTimeUnit??null;if(o==="days")return [...e];if(o!==null)return r(o);let l=new Set(e).size;for(let a of ["years","months"]){let s=r(a);if(new Set(s).size===l)return s}return [...e]}function tn(e,t,n,r){let o=r-n;if(e.serials&&e.serials.length>0){let l=Math.min(...e.serials),a=Math.max(...e.serials),s=Math.max(1,a-l+(e.between?1:0)),i=(e.serials[t]??l)-l+(e.between?.5:0);return n+i/s*o}return e.between?n+(t+.5)/Math.max(1,e.count)*o:e.count<=1?n+o/2:n+t/(e.count-1)*o}function nn(e,t){if(e.serials&&e.serials.length>1){let n=[...e.serials].sort((s,i)=>s-i),r=1/0;for(let s=1;s<n.length;s+=1){let i=n[s]-n[s-1];i>0&&(r=Math.min(r,i));}let o=n[0],l=n[n.length-1],a=Math.max(1,l-o+1);return Number.isFinite(r)?r/a*t:t/e.count}return t/Math.max(1,e.between?e.count:Math.max(1,e.count-1))}function st(e,t,n=false){let r=t.grouping==="stacked"||t.grouping==="percentStacked";if(t.grouping==="percentStacked"&&t.kind!=="scatter"&&t.kind!=="bubble"){e.percent=true;let o=false;for(let l of t.series)for(let a of l.values)a!==null&&a<0&&(o=true);e.dataMin=Math.min(e.dataMin,o?-1:0),e.dataMax=Math.max(e.dataMax,1);return}if(r&&t.kind!=="scatter"&&t.kind!=="bubble"){let o=Math.max(0,...t.series.map(l=>l.values.length));for(let l=0;l<o;l+=1){let a=0,s=0,i=0;for(let c of t.series){let u=c.values[l]??0;t.kind==="bar"?u>=0?a+=u:s+=u:(i+=u,a=Math.max(a,i),s=Math.min(s,i));}e.dataMin=Math.min(e.dataMin,s),e.dataMax=Math.max(e.dataMax,a);}return}for(let o of t.series){let l=n?o.xValues??o.values.map((a,s)=>s+1):o.values;for(let a of l)a===null||!Number.isFinite(a)||(e.dataMin=Math.min(e.dataMin,a),e.dataMax=Math.max(e.dataMax,a));}for(let o of t.series){for(let l of vt(t,o))for(let a of l.points){let s=n?a.x:a.y;Number.isFinite(s)&&(e.dataMin=Math.min(e.dataMin,s),e.dataMax=Math.max(e.dataMax,s));}for(let l of Vn(t,o))l.direction==="x"===n&&(e.dataMin=Math.min(e.dataMin,l.from,l.to),e.dataMax=Math.max(e.dataMax,l.from,l.to));}t.kind==="bubble"&&n&&e.dataMax>e.dataMin&&(e.dataMax+=(e.dataMax-e.dataMin)*.2);}function it(e,t){let n=e.axis;return n&&!n.sourceLinked&&n.formatCode?n.formatCode:e.percent?"0%":t??n?.formatCode??null}function rn(e,t,n,r,o,l=false){let a=e.dataMin>e.dataMax,s=a?0:e.dataMin,i=a?1:e.dataMax,c=e.axis,u=e.percent,f=ee(Math.max(Math.abs(s),Math.abs(i)),e.formatCode,o),d=K(f,r);if(c?.logBase&&!u)return pl(s,i,c.logBase,c.min,c.max);let m=n?(l?Qc:1.6)*r.sizePt:d+Kc*r.sizePt,h=Math.floor(t/m)+(u?1:0);return We({dataMin:s,dataMax:i,lengthPt:Math.max(1,h)*m,minIntervalPt:m,fixedMin:c?.min??(u?s<0?-1:0:null),fixedMax:c?.max??(u?1:null),fixedMajor:c?.majorUnit??null,noHeadroom:l,roomOnly:l})}function Hr(e,t,n,r,o){let l=jn(e,t);return o?r+(n-r)*l:n+(r-n)*l}var on=1,vl=.76,ln=.64,Al=2,El=.974,Jc=3.8,Tl=1.69,eu=5e4;function Et(e,t,n,r){let o=Y(e,t);if(o===void 0||o.length>12)return null;let l=Number(o);return Number.isFinite(l)?Math.min(r,Math.max(n,l)):null}function Un(e,t){let n=e.view3D;if(t==="contour")return {rotX:90,rotY:0,depthPercent:Et(n,"depthPercent",20,2e3)??100,hPercent:null,rightAngles:false,perspective:0};let r=Y(n,"rAngAx");return {rotX:Et(n,"rotX",-90,90)??(n?0:t==="pie"?30:15),rotY:Et(n,"rotY",0,360)??(n||t==="pie"?0:20),depthPercent:Et(n,"depthPercent",20,2e3)??100,hPercent:Et(n,"hPercent",5,500),rightAngles:t==="pie"?false:r===void 0||r==="1"||r==="true",perspective:Et(n,"perspective",0,240)??30}}function kl(e,t){return e>0?t*Math.tan(7.5*Math.PI/180)/Math.tan(e/4*(Math.PI/180)):0}function tu(e,t,n){let r=Math.sin(e.rotX*Math.PI/180),o=Math.cos(e.rotX*Math.PI/180),l=Math.sin(e.rotY*Math.PI/180),a=Math.cos(e.rotY*Math.PI/180);if(e.rightAngles)return {point:i=>({x:i.x+i.z*l,y:-(i.y+i.z*r)}),depth:i=>i.z-i.x*l-i.y*r};let s=i=>{let c=i.x-t.w/2,u=i.y-t.h/2,f=i.z-t.d/2,d=c*a+f*l,m=-c*l+f*a;return {x:d,y:u*o+m*r,z:-u*r+m*o}};return {point:i=>{let c=s(i),u=n>0?n/Math.max(n*.05,n+c.z):1;return {x:c.x*u,y:-c.y*u}},depth:i=>s(i).z}}function Hn(e,t,n,r={}){let o=[...r.corners??[]];if(!r.corners)for(let f of [0,t.w])for(let d of [0,t.h])for(let m of [0,t.d])o.push({x:f,y:d,z:m});let l=n.r-n.l,a=n.b-n.t,s=r.exact?l:e.rightAngles?l-2*Al:l*El,i=r.exact?a:e.rightAngles?a-2*Al:a*El,c=f=>{let d=tu(e,t,f),m=1/0,h=1/0,y=-1/0,p=-1/0;for(let E of o){let A=d.point(E);m=Math.min(m,A.x),y=Math.max(y,A.x),h=Math.min(h,A.y),p=Math.max(p,A.y);}let v=Math.max(y-m,1e-9),P=Math.max(p-h,1e-9),x=Math.max(1e-9,Math.min(s/v,i/P)),g=(n.l+n.r)/2,M=(n.t+n.b)/2,b=(m+y)/2,S=(h+p)/2;return {point:E=>{let A=d.point(E);return {x:g+(A.x-b)*x,y:M+(A.y-S)*x}},depth:d.depth,scale:x}};if(e.rightAngles||!(e.perspective>0))return c(0);if(r.eyePoints===void 0){let f=r.eyeBase??Jc*Math.max(t.w,t.h,t.d,1e-6);return c(kl(e.perspective,f))}let u=c(0);for(let f=0;f<4;f+=1)u=c(kl(e.perspective,r.eyePoints/u.scale));return u}function nu(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e[n],o=e[(n+1)%e.length];t+=r.x*o.y-o.x*r.y;}return t}function Ne(e,t){if(!e||t>=.999)return e;let n=r=>Math.round(Number.parseInt(e.hex.slice(r,r+2),16)*t).toString(16).padStart(2,"0");return {hex:`${n(0)}${n(2)}${n(4)}`.toUpperCase(),alpha:e.alpha}}function ru(e){let t=0,n=0,r=0;for(let o=0;o<e.length;o+=1){let l=e[o],a=e[(o+1)%e.length];t+=(l.y-a.y)*(l.z+a.z),n+=(l.z-a.z)*(l.x+a.x),r+=(l.x-a.x)*(l.y+a.y);}return {x:t,y:n,z:r}}var kt=class{faces=[];ok=true;add(t){if(this.faces.length>=eu){this.ok=false;return}t.points.length>=2&&this.faces.push(t);}box(t,n,r,o,l,a,s,i){let c=(f,d,m)=>({x:f,y:d,z:m}),u=[[[c(t,r,l),c(t,o,l),c(n,o,l),c(n,r,l)],on],[[c(n,r,a),c(n,o,a),c(t,o,a),c(t,r,a)],on],[[c(n,r,l),c(n,o,l),c(n,o,a),c(n,r,a)],ln],[[c(t,r,a),c(t,o,a),c(t,o,l),c(t,r,l)],ln],[[c(t,o,l),c(t,o,a),c(n,o,a),c(n,o,l)],vl],[[c(t,r,a),c(t,r,l),c(n,r,l),c(n,r,a)],vl]];for(let[f,d]of u)this.add({points:f,fill:Ne(s,d),stroke:i,oneSided:true});}paint(t,n){let r=this.faces.map((o,l)=>{let a=0;for(let s of o.points)a+=t.depth(s);return {face:o,index:l,depth:a/o.points.length+(o.bias??0),screen:o.points.map(s=>t.point(s))}});r.sort((o,l)=>l.depth-o.depth||o.index-l.index);for(let o of r){let{face:l,screen:a}=o;if(l.open){n.line(a,l.stroke);continue}l.oneSided&&nu(a)<=1e-9||n.path([a],true,l.fill,l.stroke,"round");}}},$r={x:.288,y:.47,z:-0.834},ou=.45,lu=.659;function au(e,t){let n=Math.hypot(e.x,e.y,e.z)||1,o=(t?1:-1)*(e.x*$r.x+e.y*$r.y+e.z*$r.z)/n;return Math.min(1,ou+lu*Math.max(0,o))}function an(e,t,n,r,o){let l=ru(t),a=t.reduce((f,d)=>({x:f.x+d.x,y:f.y+d.y,z:f.z+d.z}),{x:0,y:0,z:0}),s={x:a.x/t.length,y:a.y/t.length,z:a.z/t.length},i=.001/(Math.hypot(l.x,l.y,l.z)||1),c={x:s.x+l.x*i,y:s.y+l.y*i,z:s.z+l.z*i},u=o.depth(c)<o.depth(s);e.add({points:t,fill:Ne(n,au(l,u)),stroke:r,oneSided:false});}function Ll(e){return {floor:F(e.floor,"spPr"),side:F(e.sideWall,"spPr"),back:F(e.backWall,"spPr")}}var Tt=DRAWINGML_MAIN_NAMESPACE_URI,iu=16,cu=128,sn={sizePt:10,bold:false,italic:false,underline:false,colorHex:"000000",latin:"+mn-lt",eastAsian:"+mn-ea",complex:"+mn-cs"};function Ol(e,t,n){let r=n?{...sn,themeFaces:n}:sn;return we(r,Ur(e.txPr),t)}function re(e,t,n,r={}){return we({...e,...r},Ur(t),n)}function Lt(e,t,n,r,o){let l=F(e,"tx"),a=F(l,"rich");if(a){let i=[],c=0;for(let u of a.children){if(!isElement(u)||u.namespaceUri!==Tt||u.localName!=="p")continue;if(i.length>=iu)break;let f=findDirectChild(u.children,{namespaceUri:Tt,localName:"pPr"}),d=f?findDirectChild(f.children,{namespaceUri:Tt,localName:"defRPr"}):null,m=we(t,d,r),h=[];for(let y of u.children){if(!isElement(y)||y.namespaceUri!==Tt)continue;if(++c>cu)break;if(y.localName==="br"){i.push(h),h=[];continue}if(y.localName!=="r"&&y.localName!=="fld")continue;let p=findDirectChild(y.children,{namespaceUri:Tt,localName:"rPr"}),v=findDirectChild(y.children,{namespaceUri:Tt,localName:"t"}),P="";for(let x of v?.children??[])x.kind==="textValue"&&(P+=x.value);y.localName==="fld"&&o&&(P=o(schemaAttributeValue(y.attributes,"type"),P)),h.push({text:P,style:we(m,p,r)});}i.push(h);}if(i.some(u=>u.some(f=>f.text.trim()!=="")))return i}let s=F(F(l,"strRef"),"strCache");if(s){let i=fe(s,"pt")[0],c="";for(let u of F(i,"v")?.children??[])u.kind==="textValue"&&(c+=u.value);if(c.trim()!=="")return [[{text:c,style:t}]]}return n?[[{text:n,style:t}]]:[]}function uu(e){let t=F(F(e,"layout"),"manualLayout"),n=s=>{let i=Y(t,s),c=i!==void 0&&i.length<=32?Number(i):NaN;return Number.isFinite(c)&&Math.abs(c)<=10?c:null},r=n("x"),o=n("y");if(r===null&&o===null)return null;let l=Y(t,"xMode")==="edge"&&r!==null,a=Y(t,"yMode")==="edge"&&o!==null;return {x:r??0,y:o??0,xEdge:l,yEdge:a}}function Gr(e,t){if(se(e,"delete",false))return null;let n=F(e,"numFmt"),r=n?schemaAttributeValue(n.attributes,"sourceLinked")==="1":true,o=t?.separator??null,l=F(e,"separator");if(l){let a="";for(let s of l.children)s.kind==="textValue"&&(a+=s.value);o=a.slice(0,16);}return {showValue:se(e,"showVal",t?.showValue??false),showPercent:se(e,"showPercent",t?.showPercent??false),showCategory:se(e,"showCatName",t?.showCategory??false),showSeries:se(e,"showSerName",t?.showSeries??false),separator:o,position:Y(e,"dLblPos")??t?.position??null,formatCode:n&&!r?schemaAttributeValue(n.attributes,"formatCode")??null:t?.formatCode??null,txPr:F(e,"txPr")??t?.txPr??null,spPr:F(e,"spPr")??t?.spPr??null,custom:null,moved:null}}function Se(e,t,n){let r=e.dLbls?Gr(e.dLbls,null):null,o=t.dLbls?Gr(t.dLbls,r):r,l=o;for(let i of fe(t.dLbls,"dLbl")){if(Y(i,"idx")!==String(n))continue;let c=Gr(i,o??r);l=c&&{...c,custom:F(i,"tx")?i:null,moved:uu(i)};break}if(!l||!(l.showValue||l.showPercent||l.showCategory||l.showSeries)&&!l.custom)return null;let s=e.kind==="pie"||e.kind==="doughnut"||e.kind==="ofPie";return l.separator===null?{...l,separator:s?`
7
- `:", "}:l}function Gn(e,t,n){switch(n){case "VALUE":return ee(t.value,e.formatCode??t.seriesFormat,t.date1904);case "PERCENTAGE":return t.percent===null?"":ee(t.percent,e.formatCode&&e.formatCode.includes("%")?e.formatCode:"0%",t.date1904);case "CATEGORYNAME":return t.category??"";case "SERIESNAME":return t.seriesName??"";case "CELLRANGE":return t.cell??"";default:return null}}function Wn(e,t){let n=[];return e.showSeries&&t.seriesName&&n.push(t.seriesName),e.showCategory&&t.category&&n.push(t.category),e.showValue&&n.push(Gn(e,t,"VALUE")),e.showPercent&&t.percent!==null&&n.push(Gn(e,t,"PERCENTAGE")),n.join(e.separator??", ")}var ct=DRAWINGML_MAIN_NAMESPACE_URI,pu=12700,yu=new Map([["dash",[4,3]],["dashDot",[4,3,1,3]],["dot",[1,3]],["lgDash",[8,3]],["lgDashDot",[8,3,1,3]],["lgDashDotDot",[8,3,1,3,1,3]],["sysDash",[3,1]],["sysDashDot",[3,1,1,1]],["sysDashDotDot",[3,1,1,1,1,1]],["sysDot",[1,1]]]);function xu(e,t){let n=findDirectChild(e.children,{namespaceUri:ct,localName:"gsLst"}),r=0,o=0,l=0,a=0,s=0;for(let c of n?.children??[]){if(!isElement(c)||c.localName!=="gs"||s>=16)continue;let u=c.children.find(isElement),f=u?resolveColorNode(u,t):null;f&&(r+=Number.parseInt(f.hex.slice(0,2),16),o+=Number.parseInt(f.hex.slice(2,4),16),l+=Number.parseInt(f.hex.slice(4,6),16),a+=f.alpha,s+=1);}return s===0?null:{hex:[r,o,l].map(c=>Math.round(c/s).toString(16).padStart(2,"0")).join("").toUpperCase(),alpha:a/s}}function Rl(e,t){let n=directFill(e,t);if(!n.present)return;if(n.color)return n.color;let r=findDirectChild(e.children,{namespaceUri:ct,localName:"gradFill"});if(r)return xu(r,t);let o=findDirectChild(e.children,{namespaceUri:ct,localName:"pattFill"});if(o){let a=findDirectChild(o.children,{namespaceUri:ct,localName:"fgClr"})?.children.find(isElement);return a?resolveColorNode(a,t):null}return null}function J(e,t){if(!e)return {fill:void 0,line:void 0};let n=Rl(e,t),r=findDirectChild(e.children,{namespaceUri:ct,localName:"ln"});if(!r)return {fill:n,line:void 0};let o=Rl(r,t),l=parseEmu(schemaAttributeValue(r.attributes,"w")),a=schemaAttributeValue(r.attributes,"cap"),s=findDirectChild(r.children,{namespaceUri:ct,localName:"prstDash"}),i=s?schemaAttributeValue(s.attributes,"val"):void 0;return o===null?{fill:n,line:null}:{fill:n,line:o===void 0&&l===null&&i===void 0?void 0:{hex:o?.hex??"",alpha:o?.alpha??1,widthPt:l!==null?l/pu:.75,cap:a==="rnd"?"round":a==="sq"?"square":"butt",dash:i?yu.get(i)??null:null}}}function te(e,t){return e===null?null:e===void 0?t:e.hex!==""?e:t?{...e,hex:t.hex,alpha:t.alpha}:null}var qr=new Map;function gu(e){if(qr.has(e))return qr.get(e);let t=readOoxmlPart(`<a:root xmlns:a="${ct}">${e}</a:root>`,{name:"/chart-style-colors",contentType:"application/xml"}),n=null;for(let r of t.ok?t.part.root.children:[])if(isElement(r)){n=r;break}return qr.set(e,n),n}var Dl=["",'<a:lumMod val="60000"/><a:lumOff val="40000"/>','<a:lumMod val="60000"/>','<a:lumMod val="80000"/><a:lumOff val="20000"/>','<a:lumMod val="80000"/>','<a:lumMod val="50000"/>','<a:lumMod val="70000"/><a:lumOff val="30000"/>','<a:lumMod val="70000"/>','<a:lumMod val="50000"/><a:lumOff val="50000"/>'];function Xe(e,t,n){let r=gu(`<a:schemeClr val="${e}">${t}</a:schemeClr>`);return r?resolveColorNode(r,n):null}function Ot(e,t,n,r){let o=(e-1)%8|0,l;if(o===1){let a=t%6+1,s=Dl[Math.floor(t/6)%Dl.length];l=Xe(`accent${a}`,s,r);}else {let a=o===0?"tx1":`accent${o-1}`,s=n>1?t/(n-1):.5,i=Math.round((n>1?.6+s*.8:1)*1e5),c=o===0?`<a:lumMod val="${Math.round((.2+s*.6)*1e5)}"/><a:lumOff val="${Math.round((.35+s*.4)*1e5)}"/>`:i<=1e5?`<a:shade val="${i}"/>`:`<a:tint val="${2e5-i}"/>`;l=Xe(a,c,r);}return l??{hex:"4472C4",alpha:1}}var bu=64;function Cu(e,t,n){let r=(l,a,s)=>{let i=[];for(let c=0;c<l.length;c+=1){let u=l[c],f=l[(c+1)%l.length],d=a(u.v),m=a(f.v);if(d&&i.push(u),d!==m){let h=(s-u.v)/(f.v-u.v);i.push({p:{x:u.p.x+(f.p.x-u.p.x)*h,y:u.p.y+(f.p.y-u.p.y)*h,z:u.p.z+(f.p.z-u.p.z)*h},v:s});}}return i},o=r([...e],l=>l>=t,t);return o.length>=3?r(o,l=>l<=n,n):[]}function Il(e,t,n,r){let o=[],l=t.ticks,a=Math.min(bu,Math.max(0,l.length-1));for(let s=0;s<a;s+=1){let i=J(e.bandFormats.get(s)??null,r.look.resolveSchemeColor),c=Ot(r.model.style,s,a,r.look.resolveSchemeColor),u=i.fill??c,f=te(i.line,e.wireframe?{...u,widthPt:.75,cap:"round",dash:null}:null),d=l[s],m=l[s+1],h=y=>ee(y,n,r.model.date1904);o.push({from:d,to:m,fill:u,line:f,text:`${h(d)}-${h(m)}`});}return o}function _l(e,t,n,r,o){let{valueAt:l,categoryAt:a,rowAt:s,p:i,faces:c}=o;if(t.length<2||r.count<2||n.length===0)return;let u=(d,m)=>{let h=t[m].series.values[d];return h==null||!Number.isFinite(h)?null:h},f=(d,m,h)=>({p:{x:d,y:l(h),z:m},v:h});for(let d=0;d+1<t.length;d+=1)for(let m=0;m+1<r.count;m+=1){let h=[u(m,d),u(m+1,d),u(m+1,d+1),u(m,d+1)];if(h.some(A=>A===null))continue;let[y,p,v,P]=h,x=a(m),g=a(m+1),M=s(d),b=s(d+1),S=[f(x,M,y),f(g,M,p),f(g,b,v),f(x,b,P)],E=f((x+g)/2,(M+b)/2,(y+p+v+P)/4);for(let A=0;A<4;A+=1){let D=[S[A],S[(A+1)%4],E];for(let w of n){let T=Cu(D,w.from,w.to);if(T.length<3)continue;let k=T.map(L=>L.p);if(e.wireframe){let L=[...k,k[0]];for(let O=1;O<L.length;O+=1){let C=T[O-1],N=T[O%T.length],R=C&&N&&C.v===N.v&&(C.v===w.from||C.v===w.to),_=C&&N&&Mu(C.p,N.p,D[0].p,D[1].p);!R&&!_||c.add({points:[L[O-1],L[O]],fill:null,stroke:w.line,oneSided:false,open:true});}continue}an(c,k,w.fill,null,i);}}}}function Mu(e,t,n,r){let o=l=>{let a=(r.x-n.x)*(l.z-n.z)-(r.z-n.z)*(l.x-n.x);return Math.abs(a)<1e-6*(1+Math.abs(r.x-n.x)+Math.abs(r.z-n.z))**2};return o(e)&&o(t)}var zl=["diamond","square","triangle","x","star","circle","plus","dot","dash"];function qn(e){return e.kind==="line"||e.kind==="scatter"||e.kind==="radar"&&e.radarStyle!=="filled"}function ve(e){return e.varyColors&&e.series.length===1&&(e.kind==="pie"||e.kind==="doughnut"||e.kind==="bar"||e.kind==="ofPie")}function Su(e,t,n,r,o){if(!qn(e))return null;let l=t.marker,a=e.kind==="scatter"&&(e.scatterStyle==="line"||e.scatterStyle==="smooth");if(l?.symbol==="none")return null;let s=e.kind==="line"?e.markers:e.kind==="radar"?e.radarStyle==="marker":!a;if(!l?.symbol&&!s)return null;let i=l?.symbol??zl[o%zl.length],c=J(l?.spPr??null,r.resolveSchemeColor),u=c.fill===void 0?n:c.fill,f=te(c.line,{...n,widthPt:.75,cap:"round",dash:null});return {symbol:i,size:l?.size??(l?.symbol?5:7),fill:u,line:f}}function ae(e,t,n,r){let o=r!==void 0&&ve(e),l=o?r.index:t.index,a=o?r.count:n.seriesCount,s=Ot(n.model.style,l,a,n.resolveSchemeColor),i=J(t.spPr,n.resolveSchemeColor),c=r?t.points.get(r.index):void 0,u=c?J(F(c,"spPr"),n.resolveSchemeColor):{fill:void 0,line:void 0},f=o?void 0:i.fill,d=qn(e),m=d?{...s,widthPt:2.25,cap:"round",dash:null}:null,h=d?null:u.fill!==void 0?u.fill:f!==void 0?f:s,y=te(u.line!==void 0?u.line:i.line,m??(h?{...h,widthPt:.75,cap:"butt",dash:null}:null)),p=d||u.line!==void 0||i.line!==void 0?y:null,v=(d?p??null:h)??s;return {fill:h,line:p,marker:Su(e,t,{hex:v.hex,alpha:v.alpha},n,l)}}var Pu=4096,wu=2e4,Fl=.974,jl={hex:"000000",alpha:1,widthPt:.5,cap:"butt",dash:null};function Kr(e){return e.length>0&&e.every(t=>t.kind==="surface"||t.threeD&&(t.kind==="bar"||t.kind==="line"||t.kind==="area"))}function Bl(e,t){let n={axis:ze(e.model,t[0],"value"),id:"",dataMin:1/0,dataMax:-1/0,percent:false,scale:null,formatCode:null};for(let r of t)st(n,r),n.formatCode??=r.series.find(o=>o.formatCode)?.formatCode??null;return n.formatCode=it(n,n.formatCode),n}function Vl(e,t,n){let r=Bl(e,t),o=re(e.baseText,r.axis?.txPr??null,e.look.resolveSchemeColor),l=Math.max(1,.45*(n.b-n.t));return {scale:rn(r,l,true,o,e.model.date1904,true),formatCode:r.formatCode}}function vu(e,t){if(t)return {l:e.l+2,t:e.t+2,r:e.r-2,b:e.b-2};let n=(e.r-e.l)*(1-Fl)/2,r=(e.b-e.t)*(1-Fl)/2;return {l:e.l+n,t:e.t+r,r:e.r-n,b:e.b-r}}function Au(e,t,n,r){return r?Math.min(e,t)*n/e:n}function Ul(e,t,n,r){let{model:o}=n;if(!Kr(e))return false;let l=e.some(z=>z.kind==="surface");if(l&&e.some(z=>z.kind!=="surface"))return false;let a=e.some(z=>z.kind==="bar"&&z.horizontal);if(a&&e.some(z=>z.kind!=="bar"||!z.horizontal))return false;let s=l&&e.every(z=>!z.threeD),i=Un(o,s?"contour":"box"),c=n.look.resolveSchemeColor,u=At(o,e,Pu);if(u.count===0)return true;let f=Bl(n,e),d=e.flatMap(z=>z.axisIds).map(z=>o.axes.get(z)).find(z=>z?.kind==="series")??null,m=[];for(let z of e)for(let q of z.series)m.push({plot:z,series:q,row:0});let h=l||d!==null||e.some(z=>z.kind==="bar"&&z.grouping==="standard"),y=h?m.map((z,q)=>({...z,row:q})):m,p=h?Math.max(1,y.length):1;if(l&&u.count*p>wu)return false;let v=z=>re(n.baseText,z?.txPr??null,c),P=z=>z!==null&&!z.deleted,x=z=>P(z)&&z.tickLabelPosition!=="none",g=f.axis,M=u.axis,b=v(g),S=v(M),E=v(d),A=y.map(z=>z.series.name??`Series${z.series.index+1}`),D=(e.find(z=>z.kind==="bar")?.gapWidth??150)/100,w=e.filter(z=>z.kind==="bar"&&!h&&z.grouping==="clustered"),T=Math.max(1,w.reduce((z,q)=>z+q.series.length,0)),k=(e[0].gapDepth??150)/100,L=z=>{let q=Math.max(1,z.r-z.l),oe=Math.max(1,z.b-z.t),He=(a?i.hPercent!==null?q*i.hPercent/100:oe:q)/u.count,Qt=He/((w.length>0?T:1)+D),ye=Qt*i.depthPercent/100,xe=ye*(1+k),_e=p*xe,Ct=i.hPercent!==null?q*i.hPercent/100:Au(q,_e,oe,h&&!a);return {w:q,h:Ct,d:_e,slot:He,barWidth:Qt,barDepth:ye,rowDepth:xe}},O=z=>z.ticks.map(q=>ee(Math.abs(q)<z.major*1e-9?0:q,f.formatCode,o.date1904)),C=l&&r&&r.length>0?{min:r[0].from,max:r[r.length-1].to,major:r[0].to-r[0].from,ticks:[...r.map(z=>z.from),r[r.length-1].to]}:null;if(l&&!C)return true;let N=z=>C??rn(f,Math.max(1,z),!a,b,o.date1904,true),R=g?.reversed??false,_=(z,q)=>{let oe=ye=>{let xe=Math.min(1,Math.max(0,jn(q,ye)));return (R?1-xe:xe)*(a?z.w:z.h)},ie=a?z.h:z.w;return {valueAt:oe,categoryAt:ye=>u.between?(ye+.5)*z.slot:u.count>1?ye/(u.count-1)*ie:ie/2,rowAt:ye=>l?p>1?ye/(p-1)*z.d:z.d/2:h?(ye+.5)*z.rowDepth:z.d/2}},I=(z,q,oe)=>{let{valueAt:ie,categoryAt:He,rowAt:Qt}=_(q,oe),ye=[];if(x(g)){let xe=O(oe);for(let[_e,Ct]of oe.ticks.entries()){let Rn=ie(Ct),uc=a?z.point({x:Rn,y:0,z:0}):z.point({x:0,y:Rn,z:0});ye.push({text:xe[_e],style:b,anchor:uc,place:a?"below":"left"});}}if(x(M))for(let xe=0;xe<u.count;xe+=1){let _e=u.labels[xe];if(_e==="")continue;let Ct=He(xe),Rn=a?z.point({x:0,y:Ct,z:0}):z.point({x:Ct,y:0,z:0});ye.push({text:_e,style:S,anchor:Rn,place:a?"left":"below"});}if(h&&x(d))for(let xe of y){let _e=z.point({x:q.w,y:0,z:Qt(xe.row)});ye.push({text:A[xe.row],style:E,anchor:_e,place:"right"});}return ye},j=(z,q)=>z.reduce((oe,ie)=>Math.max(oe,K(ie,q)),0),V=N((a?t.r-t.l:t.b-t.t)*.75),B=null,H=L(t);for(let z=0;z<2;z+=1){let q={...t};if(x(g)&&!a&&(q.l+=j(O(V),b)+.417*b.sizePt),x(g)&&a&&(q.b-=1.338*b.sizePt),x(M)&&!a&&(q.b-=1.338*S.sizePt),x(M)&&a&&(q.l+=j(u.labels,S)+.417*S.sizePt),h&&x(d)&&(q.r-=j(A,E)+.417*E.sizePt),!(q.r-q.l>1)||!(q.b-q.t>1)||(H=L(q),B=Hn(i,H,vu(q,i.rightAngles),{exact:true,eyePoints:Tl*Math.max(n.chartWidth,n.chartHeight)}),C))break;let oe=B.point({x:0,y:0,z:0}),ie=a?B.point({x:H.w,y:0,z:0}):B.point({x:0,y:H.h,z:0});V=N(Math.hypot(ie.x-oe.x,ie.y-oe.y));}if(!B)return true;let W=B,{w:U,h:$,d:X,slot:ue,barWidth:ce,barDepth:pe}=H,{valueAt:le,categoryAt:Pe,rowAt:Le}=_(H,V),tt=le(Math.min(V.max,Math.max(V.min,0))),he=new kt,nt=Ll(o),rt=z=>J(z,c),bt=i.rightAngles?i.rotY>=0&&i.rotY<=180?0:U:Math.sin(i.rotY*Math.PI/180)>=0?0:U,Rr=1e7,qo=1e6,Ln=rt(nt.back);(Ln.fill||Ln.line)&&he.add({points:[{x:0,y:0,z:X},{x:0,y:$,z:X},{x:U,y:$,z:X},{x:U,y:0,z:X}],fill:Ln.fill??null,stroke:Ln.line??null,oneSided:false,bias:Rr});let Nn=rt(nt.side);(Nn.fill||Nn.line)&&he.add({points:[{x:bt,y:0,z:0},{x:bt,y:$,z:0},{x:bt,y:$,z:X},{x:bt,y:0,z:X}],fill:Nn.fill??null,stroke:Nn.line??null,oneSided:false,bias:Rr});let On=rt(nt.floor);(On.fill||On.line)&&he.add({points:[{x:0,y:0,z:0},{x:0,y:0,z:X},{x:U,y:0,z:X},{x:U,y:0,z:0}],fill:On.fill??null,stroke:On.line??null,oneSided:false,bias:Rr});let Yo=z=>{if(!z)return null;let q=J(F(z,"spPr"),c);return te(q.line,jl)},Ko=g?Yo(g.majorGridlines):null;if(Ko&&!s)for(let z of V.ticks){let q=le(z),oe=a?[[{x:q,y:0,z:X},{x:q,y:$,z:X}],[{x:q,y:0,z:0},{x:q,y:0,z:X}]]:[[{x:bt,y:q,z:0},{x:bt,y:q,z:X}],[{x:0,y:q,z:X},{x:U,y:q,z:X}]];for(let ie of oe)he.add({points:ie,fill:null,stroke:Ko,oneSided:false,open:true,bias:qo});}let Qo=M?Yo(M.majorGridlines):null;if(Qo&&!l)for(let z=0;z<=u.count;z+=1){let q=z*ue,oe=a?[[{x:0,y:q,z:X},{x:U,y:q,z:X}]]:[[{x:q,y:0,z:X},{x:q,y:$,z:X}],[{x:q,y:0,z:0},{x:q,y:0,z:X}]];for(let ie of oe)he.add({points:ie,fill:null,stroke:Qo,oneSided:false,open:true,bias:qo});}if(l)_l(e[0],y,r??[],u,{valueAt:le,categoryAt:Pe,rowAt:Le,p:W,faces:he});else for(let z of e){let q=y.filter(oe=>oe.plot===z);z.kind==="bar"?Eu(z,q,u,{valueAt:le,categoryAt:Pe,rowAt:Le,base:tt,barWidth:ce,barDepth:pe,clusterSize:w.includes(z)?T:1,clusterOffset:w.includes(z)?w.slice(0,w.indexOf(z)).reduce((oe,ie)=>oe+ie.series.length,0):0,horizontal:a,context:n,faces:he}):ku(z,q,u,{valueAt:le,categoryAt:Pe,rowAt:Le,base:tt,barDepth:pe,context:n,faces:he,p:W});}if(he.paint(W,n.scene),!he.ok)return false;let Zo=z=>{if(!P(z))return null;let q=J(z.spPr,c);return te(q.line,jl)},Jo=Zo(M);if(Jo){let z=a?{x:0,y:$,z:0}:{x:U,y:0,z:0};n.scene.line([W.point({x:0,y:0,z:0}),W.point(z)],Jo);}let el=Zo(g);if(el&&!s){let z=a?{x:U,y:0,z:0}:{x:0,y:$,z:0};n.scene.line([W.point({x:0,y:0,z:0}),W.point(z)],el);}for(let z of I(W,H,V)){let q=z.style.sizePt,oe=Z(z.style),ie=K(z.text,z.style)*1.3+q*2,He=.91*q;n.labels.push({paragraphs:[[{text:z.text,style:z.style}]],align:z.place==="left"?"r":z.place==="right"?"l":"ctr",x:z.place==="left"?z.anchor.x-He-ie:z.place==="right"?z.anchor.x+He:z.anchor.x-ie/2,y:z.place==="below"?z.anchor.y+.625*q:z.anchor.y-oe/2,width:ie,height:oe,rotation:0});}return true}function Eu(e,t,n,r){let{valueAt:o,base:l,barWidth:a,barDepth:s,horizontal:i,faces:c}=r,u=e.grouping==="stacked"||e.grouping==="percentStacked",f=e.grouping==="percentStacked",d=[];if(f)for(let y=0;y<n.count;y+=1)d.push(t.reduce((p,v)=>p+Math.abs(v.series.values[y]??0),0));let m=new Array(n.count).fill(0),h=new Array(n.count).fill(0);for(let[y,p]of t.entries()){let v=ae(e,p.series,r.context.look),P=v.fill,x=r.rowAt(p.row)-s/2,g=x+s;for(let M=0;M<n.count;M+=1){let b=p.series.values[M];if(b==null||!Number.isFinite(b))continue;let S=f?d[M]>0?b/d[M]:0:b,E=l,A;if(u){let C=S>=0?m[M]:h[M],N=C+S;S>=0?m[M]=N:h[M]=N,E=o(C),A=o(N);}else A=o(S);if(Math.abs(A-E)<1e-9)continue;let w=r.categoryAt(M)-a*(r.clusterSize+e.gapWidth/100)/2,T=u||r.clusterSize===1?0:r.clusterOffset+y,k=w+e.gapWidth/100*a/2+T*a,L=Math.min(E,A),O=Math.max(E,A);i?c.box(L,O,k,k+a,x,g,P,v.line):c.box(k,k+a,L,O,x,g,P,v.line);}}}function ku(e,t,n,r){let{valueAt:o,categoryAt:l,faces:a,barDepth:s,p:i}=r,c=e.grouping==="stacked"||e.grouping==="percentStacked",u=new Array(n.count).fill(0);for(let f of t){let d=ae(e,f.series,r.context.look),m=e.kind==="line"?d.line??d.fill:d.fill,h=r.rowAt(f.row)-s/2,y=h+s,p=[];for(let M=0;M<n.count;M+=1){let b=f.series.values[M];if(b==null||!Number.isFinite(b)){e.kind==="line"&&p.push({x:NaN,y:NaN,floor:0});continue}let S=c?u[M]:0,E=S+b;c&&(u[M]=E),p.push({x:l(M),y:o(E),floor:c?o(S):r.base});}let v=m?{hex:m.hex,alpha:m.alpha}:null;if(e.kind==="line"){for(let M=1;M<p.length;M+=1){let b=p[M-1],S=p[M];!Number.isFinite(b.x)||!Number.isFinite(S.x)||an(a,[{x:b.x,y:b.y,z:h},{x:S.x,y:S.y,z:h},{x:S.x,y:S.y,z:y},{x:b.x,y:b.y,z:y}],v,null,i);}continue}if(p.length<2)continue;let P=[{x:p[0].x,y:p[0].floor,z:h}];for(let M of p)P.push({x:M.x,y:M.y,z:h});for(let M=p.length-1;M>=0;M-=1)P.push({x:p[M].x,y:p[M].floor,z:h});a.add({points:P,fill:Ne(v,on),stroke:d.line,oneSided:true}),a.add({points:[...P].reverse().map(M=>({...M,z:y})),fill:Ne(v,on),stroke:d.line,oneSided:true});for(let M=1;M<p.length;M+=1){let b=p[M-1],S=p[M];an(a,[{x:b.x,y:b.y,z:h},{x:b.x,y:b.y,z:y},{x:S.x,y:S.y,z:y},{x:S.x,y:S.y,z:h}],v,d.line,i);}let x=p[0],g=p[p.length-1];a.add({points:[{x:x.x,y:x.floor,z:y},{x:x.x,y:x.y,z:y},{x:x.x,y:x.y,z:h},{x:x.x,y:x.floor,z:h}],fill:Ne(v,ln),stroke:d.line,oneSided:true}),a.add({points:[{x:g.x,y:g.floor,z:h},{x:g.x,y:g.y,z:h},{x:g.x,y:g.y,z:y},{x:g.x,y:g.floor,z:y}],fill:Ne(v,ln),stroke:d.line,oneSided:true});}}var Ou=DRAWINGML_MAIN_NAMESPACE_URI,Ru=12700,Du=.2,Iu=3,_u=16;function Hl(e,t){for(let n of [F(F(e.custom,"tx"),"rich"),e.txPr]){let r=n?findDirectChild(n.children,{namespaceUri:Ou,localName:"bodyPr"}):null,o=r?schemaAttributeValue(r.attributes,t):void 0;if(o!==void 0)return o}}function Yn(e,t){let n=Hl(e,t);return n!==void 0&&/^\d{1,8}$/.test(n)?Number(n)/Ru:Iu}function zu(e,t){return t===null||!(t>0)||Hl(e,"wrap")==="none"?null:t*Du-Yn(e,"lIns")-Yn(e,"rIns")}function Fu(e){let t=[];for(let n of e){let r=[];for(let o of n)for(let[l,a]of o.text.split(/\r\n|\r|\n/).entries())l>0&&(t.push(r),r=[]),a!==""&&r.push({text:a,style:o.style});t.push(r);}return t.slice(0,_u)}function ju(e,t){let n=[];for(let i of e)for(let c of i.text.match(/\S+|\s+/g)??[]){let u=K(c,i.style);/^\s/.test(c)?n.length>0&&(n[n.length-1].space+=u):n.push({width:u,space:0});}if(n.length===0)return {count:1,widest:0,word:0};let r=1,o=0,l=0,a=0,s=0;for(let i of n)s=Math.max(s,i.width),l>0&&t!==null&&l+a+i.width>t?(o=Math.max(o,l),r+=1,l=i.width):l+=a+i.width,a=i.space;return {count:r,widest:Math.max(o,l),word:s}}function Oe(e,t,n,r,o){let l=Wn(e,t),a=e.custom?Lt(e.custom,n,l,o,(m,h)=>Gn(e,t,m)??h):[[{text:l,style:n}]],s=zu(e,r),i=0,c=0,u=false,f=0;for(let m of Fu(a)){let h=ju(m,s);i=Math.max(i,h.widest),f=Math.max(f,h.word),u||=h.count>1;let y=Math.max(Z(n),...m.map(p=>Z(p.style)));c+=h.count*y;}let d=s!==null&&u?Math.max(s,f):i*1.3+n.sizePt*2;return {paragraphs:a,width:i,height:c,frame:d}}function Rt(e,t,n,r,o,l){if(!e||!t)return {x:n,y:r,moved:false};let a=t.r-t.l,s=t.b-t.t;return {x:e.xEdge?t.l+e.x*a+o/2:n+e.x*a,y:e.yEdge?t.t+e.y*s+l/2:r+e.y*s,moved:true}}function $l(e,t,n,r,o){if(!o)return t;let l=n/2+Math.max(Yn(e,"lIns"),Yn(e,"rIns")),a=(s,i,c)=>i>c?(i+c)/2:Math.min(Math.max(s,i),c);return {x:a(t.x,o.l+l,o.r-l),y:a(t.y,o.t+r/2,o.b-r/2)}}var Re=100,Bu=.196,Vu=.46,Uu=80,Hu=3;function $u(e,t){let n=e.series[0],r=n.points.get(t),o=r?Y(r,"explosion"):void 0,l=o!==void 0&&/^\d{1,3}$/.test(o)?Number(o):NaN;return l>=0&&l<=400?l:n.explosion}function Gu(e){let t=.55-.17*Math.sin(e*Math.PI/180);return Math.min(.9,Math.max(.3,t))}var Gl=1/16,Wu=.93,Xu=.92,qu=.47;function Yu(e,t){let n=t?(t.r-t.l)*Gl:0,r=t?(t.b-t.t)*Gl:0,o=e.l+n,l=Math.max(o+1,e.r-n),a=e.t+r,s=Math.max(a+1,e.b-r),i=(l-o)*Wu/2,c=(s-a)*Xu/2,u=(o+l)/2,f=a+(s-a)*qu;return {l:u-i,r:u+i,t:f-c,b:f+c}}function Wl(e,t,n){let r=e.series[0];if(!r)return;let o=r.values.reduce((g,M)=>g+(M!==null&&M>0?M:0),0);if(!Number.isFinite(o)){n.scene.ok=false;return}if(!(o>0))return;let l=Un(n.model,"pie"),a=Math.min(l.perspective,Uu),s=l.rotX*Math.cos(a*Vu*Math.PI/180),i={...l,rotX:s,rotY:0,rightAngles:false,perspective:0},c=l.rotY,u=Re*Bu,f={x:Re,z:Re},d=r.values.length,m=[],h=c,y=Re;for(let g=0;g<d;g+=1){let M=r.values[g];if(M==null||!(M>0))continue;let b=M/o*360,S=(h+b/2)*Math.PI/180,E=$u(e,g)/100*Re;y=Math.max(y,Re+E),m.push({index:g,from:h,to:h+b,value:M,ox:E*Math.sin(S),oz:E*Math.cos(S)}),h+=b;}let p=(g,M,b,S)=>{let E=M*Math.PI/180;return {x:f.x+g.ox+b*Math.sin(E),y:S,z:f.z+g.oz+b*Math.cos(E)}},v=[];for(let g=0;g<360;g+=5){let M=g*Math.PI/180;for(let b of [0,u])v.push({x:f.x+y*Math.sin(M),y:b,z:f.z+y*Math.cos(M)});}let P=Hn(i,{w:2*Re,h:u,d:2*Re},Yu(t,n.placed?void 0:n.bounds),{corners:v,exact:true}),x=new kt;for(let g of m){let M=ae(e,r,n.look,ve(e)||r.points.has(g.index)?{index:g.index,count:d}:void 0),b=g.to-g.from,S=Math.max(1,Math.ceil(b/Hu)),E=k=>{let L=[];for(let O=0;O<=S;O+=1)L.push(p(g,g.from+b*O/S,Re,k));return L},A=E(u),D=E(0),w=p(g,0,0,u),T=p(g,0,0,0);x.add({points:b>=359.99?A:[w,...A],fill:M.fill,stroke:M.line,oneSided:true,bias:-u});for(let k=0;k<S;k+=1){let L=g.from+b*(k+.5)/S;x.add({points:[D[k+1],A[k+1],A[k],D[k]],fill:Ne(M.fill,Gu(L)),stroke:null,oneSided:true});}(g.ox!==0||g.oz!==0)&&(x.add({points:[D[0],A[0],w,T],fill:Ne(M.fill,.6),stroke:null,oneSided:true}),x.add({points:[T,w,A[S],D[S]],fill:Ne(M.fill,.6),stroke:null,oneSided:true}));}x.paint(P,n.scene);for(let g of m){let M=Se(e,r,g.index);if(!M)continue;let b=re(n.baseText,M.txPr,n.look.resolveSchemeColor),S={value:g.value,percent:g.value/o,category:Ge(r,g.index,n.date1904),seriesName:r.name,seriesFormat:r.formatCode,date1904:n.date1904,cell:r.labelRange?.[g.index]??null},E=Oe(M,S,b,n.bounds?n.bounds.r-n.bounds.l:null,n.look.resolveSchemeColor),A=E.height,D=(g.from+g.to)/2,w=D*Math.PI/180,T=M.position==="outEnd"||M.moved!==null&&!(M.moved.xEdge&&M.moved.yEdge),k=Math.cos(w)>=0?u:0,L=P.point(T?p(g,D,Re,k):p(g,D,Re*.65,u)),O=E.frame,C=T?E.width/2*Math.sin(w):0,N=T?-A/2*Math.cos(w):0,R=Rt(M.moved,n.bounds,L.x+C,L.y+N,E.width,A),_=$l(M,R,E.width,A,n.bounds);n.labels.push({paragraphs:E.paragraphs,align:"ctr",x:_.x-O/2,y:_.y-A/2,width:O,height:A,rotation:0});}}var cn=12700,Ku=2e5,Qu=2e3,Dt=class{components=[];points=0;ok=true;path(t,n,r,o,l){if(!this.ok||!r&&!o)return;for(let i of t)for(let c of i)if(!Number.isFinite(c.x*cn)||!Number.isFinite(c.y*cn)){this.ok=false;return}if(o&&o.dash&&!n&&!r){this.dashed(t,o,l);return}let a=t.filter(i=>i.length>=2);if(a.length===0)return;for(let i of a)this.points+=i.length;if(this.points>Ku){this.ok=false;return}let s=o?Math.max(0,o.widthPt):0;this.components.push({subpathsEmu:a.map(i=>i.map(c=>({x:Math.round(c.x*cn),y:Math.round(c.y*cn)}))),subpathsClosed:a.map(()=>n),fillHex:n&&r?r.hex:null,fillAlpha:r?.alpha??1,strokeHex:o&&s>0?o.hex:null,strokeAlpha:o?.alpha??1,strokeWidthEmu:Math.round(s*cn),...o?{strokeCap:o.cap}:{},...l?{strokeJoin:l}:{}});}rect(t,n,r,o,l,a){let s=Math.min(t,t+r),i=Math.min(n,n+o),c=Math.max(t,t+r),u=Math.max(n,n+o);this.path([[{x:s,y:i},{x:c,y:i},{x:c,y:u},{x:s,y:u}]],true,l,a);}line(t,n,r){n&&this.path([t],false,null,n,r);}dashed(t,n,r){let o=Math.max(n.widthPt,.5),l=n.cap!=="butt",a=n.dash.map((i,c)=>{let u=i*o;return l?c%2===0?Math.max(.01,u-o):u+o:Math.max(.1,u)}),s=[];for(let i of t){let c=0,u=a[0],f=true,d=[i[0]];for(let m=1;m<i.length;m+=1){let h=i[m-1],y=i[m],p=Math.hypot(y.x-h.x,y.y-h.y);for(;p>0&&s.length<Qu;){let v=Math.min(u,p),P=v/p,x={x:h.x+(y.x-h.x)*P,y:h.y+(y.y-h.y)*P};f&&d.push(x),p-=v,u-=v,h=x,u<=1e-9&&(f&&d.length>=2&&s.push(d),f=!f,c=(c+1)%a.length,u=a[c],d=[x]);}}f&&d.length>=2&&s.push(d);}s.length>0&&this.path(s,false,null,{...n,dash:null},r);}};function un(e,t,n,r,o=24){let l=[];for(let a=0;a<o;a+=1){let s=a/o*Math.PI*2;l.push({x:e+n*Math.cos(s),y:t+r*Math.sin(s)});}return l}function It(e,t,n,r,o,l){let a=Math.max(0,l-o);if(!Number.isFinite(a)||a>360+1e-6)throw new RangeError("Chart slice exceeds the angular limit");let s=Math.min(180,Math.max(2,Math.ceil(a/2))),i=(u,f)=>{let d=f*Math.PI/180;return {x:e+u*Math.sin(d),y:t-u*Math.cos(d)}},c=[];for(let u=0;u<=s;u+=1)c.push(i(n,o+a*u/s));if(r>0)for(let u=s;u>=0;u-=1)c.push(i(r,o+a*u/s));else a<360&&c.push({x:e,y:t});return c}function Qr(e,t=10){if(e.length<3)return [...e];let n=[e[0]];for(let r=0;r<e.length-1;r+=1){let o=e[Math.max(0,r-1)],l=e[r],a=e[r+1],s=e[Math.min(e.length-1,r+2)],i={x:l.x+(a.x-o.x)/6,y:l.y+(a.y-o.y)/6},c={x:a.x-(s.x-l.x)/6,y:a.y-(s.y-l.y)/6};for(let u=1;u<=t;u+=1){let f=u/t,d=1-f;n.push({x:d*d*d*l.x+3*d*d*f*i.x+3*d*f*f*c.x+f*f*f*a.x,y:d*d*d*l.y+3*d*d*f*i.y+3*d*f*f*c.y+f*f*f*a.y});}}return n}function qe(e,t,n,r){let o=r/2;switch(e){case "square":return [[{x:t-o,y:n-o},{x:t+o,y:n-o},{x:t+o,y:n+o},{x:t-o,y:n+o}]];case "diamond":return [[{x:t,y:n-o},{x:t+o,y:n},{x:t,y:n+o},{x:t-o,y:n}]];case "triangle":return [[{x:t,y:n-o},{x:t+o,y:n+o},{x:t-o,y:n+o}]];case "dash":return [[{x:t-o,y:n-r*.1},{x:t+o,y:n-r*.1},{x:t+o,y:n+r*.1},{x:t-o,y:n+r*.1}]];case "dot":return [[{x:t,y:n-r*.12},{x:t+r*.55,y:n-r*.12},{x:t+r*.55,y:n+r*.12},{x:t,y:n+r*.12}]];case "x":case "star":case "plus":return [];default:return [un(t,n,o,o,16)]}}function Ye(e,t,n,r){let o=r/2,l=[[{x:t-o,y:n-o},{x:t+o,y:n+o}],[{x:t-o,y:n+o},{x:t+o,y:n-o}]],a=[[{x:t-o,y:n},{x:t+o,y:n}],[{x:t,y:n-o},{x:t,y:n+o}]];return e==="x"?l:e==="plus"?a:e==="star"?[...l,a[1]]:[]}var Zu={hex:"FFFFFF",alpha:1};function Yl(e,t,n,r,o,l){let{scene:a}=o,s=o.look,i=r.categories?.count??0,c=e.grouping==="percentStacked",u=e.grouping==="stacked"||c,f=[];if(c)for(let y=0;y<i;y+=1){let p=0;for(let v of e.series)p+=Math.abs(v.values[y]??0);f.push(p||1);}let d=(y,p)=>c?y/f[p]:y,m=(y,p)=>r.horizontal?{x:r.valueAt(t,p),y:r.categoryAt(y)}:{x:r.categoryAt(y),y:r.valueAt(t,p)},h=(y,p,v,P,x)=>{let g=Se(e,y,p);if(!g)return;let M=re(o.baseText,g.txPr,s.resolveSchemeColor),b=r.categories?.labels[p]??null,S={value:v,percent:c?v/f[p]:null,category:b,seriesName:y.name,seriesFormat:y.formatCode,date1904:o.model.date1904,cell:y.labelRange?.[p]??null};if(!g.custom&&Wn(g,S)==="")return;let E=Oe(g,S,M,o.chartWidth,s.resolveSchemeColor),A=E.width,D=E.height,w=E.frame,T=.48*M.sizePt,k=P.x,L=P.y;if(x.kind==="bar"){let N=g.position??(u?"ctr":"outEnd"),{start:R,end:_}=x,I=Math.sign(_.x-R.x)||1,j=Math.sign(_.y-R.y)||-1;if(N==="ctr")k=(R.x+_.x)/2,L=(R.y+_.y)/2;else if(r.horizontal)k=N==="inBase"?R.x+I*(T+A/2):N==="inEnd"?_.x-I*(T+A/2):_.x+I*(T+A/2),L=_.y;else {let V=N==="inBase"?R.y+j*(T+D/2):N==="inEnd"?_.y-j*(T+D/2):_.y+j*(T+D/2);k=_.x,L=V;}}else {let N=g.position??(e.kind==="area"?"ctr":"r"),R=x.markerHalf+T;N==="r"?k=P.x+R+A/2:N==="l"?k=P.x-R-A/2:N==="t"?L=P.y-R-D/2:N==="b"&&(L=P.y+R+D/2);}let O={l:0,t:0,r:o.chartWidth,b:o.chartHeight},C=Rt(g.moved,O,k,L,A,D);l.push({paragraphs:E.paragraphs,align:"ctr",x:C.x-w/2,y:C.y-D/2,width:w,height:D,rotation:0});};if(e.kind==="bar"&&r.categories){let y=r.horizontal?r.plot.b-r.plot.t:r.plot.r-r.plot.l,p=nn(r.categories,y),v=e.gapWidth/100,P=u?1:e.series.length,x=u?1:e.overlap/100,g=p/(P-(P-1)*x+v),M=[],b=[];for(let[S,E]of e.series.entries()){let A=ve(e),D=ae(e,E,s),w=[];for(let k=0;k<Math.min(i,E.values.length);k+=1){let L=E.values[k];if(L==null)continue;let O=d(L,k),C=n,N=O;if(u){let U=O>=0?M:b;C=U[k]??0,N=C+O,U[k]=N;}let R=r.categoryAt(k),_=-p/2+v*g/2+(u?0:S*g*(1-x)),I=r.horizontal?R-_:R+_,j=r.horizontal?I-g:I+g,V=r.valueAt(t,C),B=r.valueAt(t,N),H=A||E.points.has(k)?ae(e,E,s,{index:k,count:E.values.length}):D,W=E.invertIfNegative&&O<0?Zu:H.fill;r.horizontal?(a.rect(Math.min(V,B),Math.min(I,j),Math.abs(B-V),g,W,H.line),w.push({index:k,start:{x:V,y:(I+j)/2},end:{x:B,y:(I+j)/2},value:L})):(a.rect(Math.min(I,j),Math.min(V,B),g,Math.abs(B-V),W,H.line),w.push({index:k,start:{x:(I+j)/2,y:V},end:{x:(I+j)/2,y:B},value:L}));}for(let k of w)h(E,k.index,k.value,k.end,{kind:"bar",start:k.start,end:k.end});let T=new Map(w.map(k=>[k.index,r.horizontal?k.start.y:k.start.x]));u||Qn(e,E,t,r,o,l,T);}return}if((e.kind==="line"||e.kind==="area")&&r.categories){let y=[],p=null;for(let v of e.series){let P=ae(e,v,s),x=[],g=[];for(let M=0;M<i;M+=1){let b=v.values[M]??null;if(b===null&&(o.blanks==="zero"||e.kind==="area"||u)&&(b=0),b===null){x.push(null),g.push(0);continue}let S=d(b,M);u&&(S+=y[M]??0,y[M]=S),g.push(b),x.push(m(M,S));}if(e.kind==="area"){let M=x.filter(S=>S!==null),b=p??M.map(S=>r.horizontal?{x:r.valueAt(t,n),y:S.y}:{x:S.x,y:r.valueAt(t,n)});M.length>=2&&a.path([[...M,...[...b].reverse()]],true,P.fill,P.line),u&&(p=M);}else {let M=[],b=[];for(let S of x){if(S===null){o.blanks!=="span"&&(b.length&&M.push(b),b=[]);continue}b.push(S);}if(b.length&&M.push(b),P.line)for(let S of M)a.line(v.smooth?Qr(S):S,P.line,"round");Xl(x,P.marker,a);}for(let[M,b]of x.entries())b&&h(v,M,g[M],b,{kind:"point",markerHalf:P.marker?P.marker.size/2:0});}if(!u)for(let v of e.series)Qn(e,v,t,r,o,l);e.kind==="line"&&td(e,t,r,o);return}if(e.kind==="bubble"&&r.xInfo?.scale){let y=0;for(let P of e.series)for(let x of P.bubbleSizes??[])x!==null&&Number.isFinite(x)&&(y=Math.max(y,Math.abs(x)));let v=.264*Math.min(r.plot.r-r.plot.l,r.plot.b-r.plot.t)*(e.bubbleScale/100);for(let P of e.series){let x=ae(e,P,s),g=[];for(let M=0;M<P.values.length;M+=1){let b=P.values[M],S=P.xValues?P.xValues[M]:M+1,E=P.bubbleSizes?.[M];if(b==null||S===null||S===void 0||E==null||!(E>0)||!(y>0))continue;let A=e.bubbleArea?Math.sqrt(E/y):E/y,D=v*A/2;g.push(un(r.valueAt(r.xInfo,S),r.valueAt(t,b),D,D,32));}g.length>0&&a.path(g,true,x.fill,x.line),Qn(e,P,t,r,o,l);}return}if(e.kind==="scatter"&&r.xInfo?.scale)for(let y of e.series){let p=ae(e,y,s),v=[];for(let g=0;g<y.values.length;g+=1){let M=y.values[g],b=y.xValues?y.xValues[g]:g+1;if(M==null||b===null||b===void 0){v.push(null);continue}v.push({x:r.valueAt(r.xInfo,b),y:r.valueAt(t,M)});}let P=v.filter(g=>g!==null);if(p.line!==null&&e.scatterStyle!=="marker"&&e.scatterStyle!=="none"&&P.length>=2){let g=y.smooth||e.scatterStyle==="smooth"||e.scatterStyle==="smoothMarker";a.line(g?Qr(P):P,p.line,"round");}Qn(e,y,t,r,o,l),Xl(v,p.marker,a);for(let[g,M]of v.entries())M&&h(y,g,y.values[g],M,{kind:"point",markerHalf:p.marker?p.marker.size/2:0});}}function Xl(e,t,n){if(!t)return;let r=t.size*.96,o=[],l=[];for(let a of e)if(a){for(let s of qe(t.symbol,a.x,a.y,r))o.push(s);for(let s of Ye(t.symbol,a.x,a.y,r))l.push(s);}o.length>0&&n.path(o,true,t.fill,t.line),l.length>0&&n.path(l,false,null,t.line);}var ql={hex:"000000",alpha:1,widthPt:.75,cap:"butt",dash:null},Ju={hex:"FFFFFF",alpha:1},ed={hex:"000000",alpha:1};function td(e,t,n,r){let o=n.categories;if(!o||e.series.length<2)return;let l=r.look.resolveSchemeColor,a=(i,c)=>n.horizontal?{x:n.valueAt(t,c),y:n.categoryAt(i)}:{x:n.categoryAt(i),y:n.valueAt(t,c)};if(e.hiLowLines){let i=te(J(F(e.hiLowLines,"spPr"),l).line,ql),c=[];for(let u=0;u<o.count;u+=1){let f=e.series.map(d=>d.values[u]).filter(d=>d!=null);f.length<2||c.push([a(u,Math.min(...f)),a(u,Math.max(...f))]);}i&&c.length>0&&r.scene.path(c,false,null,i);}let s=e.upDownBars;if(s){let i=(Number(Y(s,"gapWidth")??150)||150)/100,u=nn(o,n.horizontal?n.plot.b-n.plot.t:n.plot.r-n.plot.l)/(1+i),f=(p,v)=>{let P=J(F(F(s,p),"spPr"),l);return {fill:P.fill===void 0?v:P.fill,line:te(P.line,ql)}},d=f("upBars",Ju),m=f("downBars",ed),h=e.series[0],y=e.series[e.series.length-1];for(let p=0;p<o.count;p+=1){let v=h.values[p],P=y.values[p];if(v==null||P===null||P===void 0)continue;let x=a(p,v),g=a(p,P),M=P>=v?d:m;n.horizontal?r.scene.rect(Math.min(x.x,g.x),x.y-u/2,Math.abs(g.x-x.x),u,M.fill,M.line):r.scene.rect(x.x-u/2,Math.min(x.y,g.y),u,Math.abs(g.y-x.y),M.fill,M.line);}}}var nd={hex:"000000",alpha:1,widthPt:.75,cap:"butt",dash:null},Kn=3.75;function Qn(e,t,n,r,o,l,a){if(t.trendlines.length===0&&t.errorBars.length===0)return;let s=o.look.resolveSchemeColor,i=e.kind==="scatter"||e.kind==="bubble",c=y=>{let p=y-1;if(a&&Number.isInteger(p)&&a.has(p))return a.get(p);let v=r.categoryAt(1)-r.categoryAt(0);return r.categoryAt(0)+p*(Number.isFinite(v)?v:0)},u=(y,p)=>i&&r.xInfo?.scale?{x:r.valueAt(r.xInfo,y),y:r.valueAt(n,p)}:r.horizontal?{x:r.valueAt(n,p),y:c(y)}:{x:c(y),y:r.valueAt(n,p)},f=ae(e,t,o.look),d=f.line??(f.fill??f.marker?.fill?{...f.fill??f.marker.fill,widthPt:1.5,cap:"round",dash:null}:null);for(let y of vt(e,t)){let p=J(F(y.element,"spPr"),s),v=te(p.line,d?{...d,widthPt:1.5,dash:[1,1]}:null),P=y.points.map(x=>u(x.x,x.y));if(v&&P.length>=2&&o.scene.line(P,v,"round"),y.label.length>0&&P.length>0){let x=F(y.element,"trendlineLbl"),g=re(o.baseText,F(x,"txPr"),s),M=P[P.length-1],b=Math.max(...y.label.map(A=>K(A,g))),S=Z(g)*y.label.length,E=b*1.3+g.sizePt*2;l.push({paragraphs:[[{text:y.label.join(`
8
- `),style:g}]],align:"ctr",x:M.x-b/2-8-E/2,y:M.y-S/2,width:E,height:S,rotation:0});}}let m=[],h=null;for(let y of Vn(e,t)){h??=te(J(F(y.element,"spPr"),s).line,nd);let p=y.direction==="y"!==r.horizontal,v=y.direction==="y"?u(y.at.x,y.from):u(y.from,y.at.y),P=y.direction==="y"?u(y.at.x,y.to):u(y.to,y.at.y);if(m.push([v,P]),!!y.caps)for(let x of [v,P])m.push(p?[{x:x.x-Kn,y:x.y},{x:x.x+Kn,y:x.y}]:[{x:x.x,y:x.y-Kn},{x:x.x,y:x.y+Kn}]);}h&&m.length>0&&o.scene.path(m,false,null,h);}var rd=4096,Zr=3.1,Kl=.08,ta={hex:"000000",alpha:1,widthPt:.5,cap:"butt",dash:null};function Ce(e){return e==="l"||e==="r"}function Ql(e){return e&&(e.majorTickMark==="out"||e.majorTickMark==="cross")?1:0}function od(e,t){if(!e)return null;let n=J(e.spPr,t.look.resolveSchemeColor);return te(n.line,ta)}function ld(e,t){if(!e)return null;let n=J(F(e,"spPr"),t.look.resolveSchemeColor);return te(n.line,ta)}function Jr(e,t){let n=e.value;return n.scale?n.scale.ticks.map(r=>ee(Math.abs(r)<n.scale.major*1e-9?0:r,n.formatCode,t.date1904)):[]}function Zl(e,t){let n=0;for(let r of e)n=Math.max(n,K(r,t));return n}function Jl(e,t,n){let r=K(" ",t),o=1,l=0;for(let a of e.split(/\s+/).slice(0,256)){let s=K(a,t);l>0&&l+r+s>n?(o+=1,l=s):l+=(l>0?r:0)+s;}return o}function na(e,t,n){let{model:r}=n,o=C=>C.kind==="scatter"||C.kind==="bubble",l=e.filter(o),a=e.filter(C=>!o(C));if(l.length>0&&a.length>0)return false;let s=a.some(C=>C.kind==="bar"&&C.horizontal);if(s&&a.some(C=>C.kind!=="bar"||!C.horizontal))return false;let i=n.look.resolveSchemeColor,c=new Map,u=C=>{let N=C?.id??"",R=c.get(N);return R||(R={axis:C,id:N,dataMin:1/0,dataMax:-1/0,percent:false,scale:null,formatCode:null},c.set(N,R)),R},f=new Map,d=null;for(let C of e){let N=u(ze(r,C,"value"));if(st(N,C),N.formatCode??=C.series.find(R=>R.formatCode)?.formatCode??null,f.set(C,N),o(C)){let R=ze(r,C,"x");d??={axis:R,id:`x:${R?.id??""}`,dataMin:1/0,dataMax:-1/0,percent:false,scale:null,formatCode:null},st(d,C,true);}}for(let C of c.values())C.formatCode=it(C,C.formatCode);d&&(d.formatCode=it(d,null));let m=a.length>0?At(r,a,rd):null,h=[],y=C=>re(n.baseText,C?.txPr??null,i),p=C=>C!==null&&!C.deleted,v=C=>p(C)&&C.tickLabelPosition!=="none";if(m){let C=m.axis;h.push({axis:C,role:"category",side:s?C?.position==="r"?"r":"l":C?.position==="t"?"t":"b",style:y(C),labelled:v(C),value:null,title:null});}else d&&h.push({axis:d.axis,role:"x",side:d.axis?.position==="t"?"t":"b",style:y(d.axis),labelled:v(d.axis),value:d,title:null});let P=true;for(let C of c.values()){let N=C.axis,R=s?P?"b":"t":P?"l":"r",_=N?.position??R;h.push({axis:N,role:"value",side:s?_==="t"?"t":"b":_==="r"?"r":"l",style:y(N),labelled:v(N),value:C,title:null}),P=false;}for(let C of h){if(!p(C.axis)||!C.axis.title)continue;let N=re(n.baseText,F(C.axis.title,"txPr"),i,{bold:true}),R=Lt(C.axis.title,N,"Axis Title",i);if(R.length===0)continue;let _=F(F(C.axis.title,"tx"),"rich");C.title={paragraphs:R,style:N,rotation:en(_??F(C.axis.title,"txPr"))};}let x=h.find(C=>C.role==="category")??null,g=r.plotLayout,M=h.find(C=>C.role==="value")??null,b=()=>{if(g&&g.inner){let I=n.chartWidth,j=n.chartHeight;return {plot:{l:g.x*I,t:g.y*j,r:(g.x+g.w)*I,b:(g.y+g.h)*j},categoryRotation:0,categorySkip:1,categoryWrap:0}}let C=g&&!g.inner?{l:g.x*n.chartWidth,t:g.y*n.chartHeight,r:(g.x+g.w)*n.chartWidth,b:(g.y+g.h)*n.chartHeight}:{...t};for(let I of h){if(!I.title)continue;let j=lt(I.title.paragraphs,I.title.style)+9;I.side==="l"?C.l+=j:I.side==="r"?C.r-=j:I.side==="t"?C.t+=j:C.b-=j;}for(let I of h){if(!I.labelled||!Ce(I.side))continue;let j=I.value?Jr(I,r):m?.labels??[],V=I.value?ee(I.value.dataMax>-1/0?I.value.dataMax:1,I.value.formatCode,r.date1904):"",B=Zl(j.length?j:[V],I.style)+.417*I.style.sizePt+.5*Ql(I.axis);I.side==="l"?C.l+=B:C.r-=B;}let N=0,R=1,_=0;for(let I of h){if(!I.labelled||Ce(I.side))continue;let j=I.style.sizePt,V=1.338*j+.6*Ql(I.axis);if(I.role==="category"&&m){let B=nn(m,C.r-C.l),H=Zl(m.labels,I.style),W=en(I.axis?.txPr??null),U=m.labels.every($=>$.split(/\s+/).slice(0,256).every(X=>K(X,I.style)<=B*.98));if(W!==null&&W!==0?N=W:H>B*.98&&m.count>1&&(U?_=B:N=-45),_>0){let $=Math.max(...m.labels.map(X=>Jl(X,I.style,_)));V+=($-1)*Z(I.style);}if(N!==0){let $=Math.abs(N)*Math.PI/180;V=H*Math.sin($)+Z(I.style)*Math.cos($)+.625*j;let X=Z(I.style)/Math.sin($);R=Math.max(1,Math.ceil(X/Math.max(B,1e-6)));}I.axis?.tickLabelSkip&&(R=I.axis.tickLabelSkip),M?.value?.scale&&ea(I,M.value.scale)&&(V=0);}I.side==="t"?C.t+=V:C.b-=V;}for(let I of h){if(!I.labelled||Ce(I.side)||!I.value)continue;let j=Jr(I,r);j.length>0&&(C.r-=K(j[j.length-1],I.style)/2);}return {plot:C,categoryRotation:N,categorySkip:R,categoryWrap:_}},S=C=>{for(let N of h){if(!N.value)continue;let R=Ce(N.side)?C.b-C.t:C.r-C.l;N.value.scale=rn(N.value,Math.max(1,R),Ce(N.side),N.style,r.date1904);}},E=b();S(E.plot),E=b(),S(E.plot);let A=E.plot;if(!(A.r-A.l>1)||!(A.b-A.t>1))return true;let D=x?.axis?.reversed??false,w=C=>m?s?D?tn(m,C,A.t,A.b):tn(m,C,A.b,A.t):D?tn(m,C,A.r,A.l):tn(m,C,A.l,A.r):0,T=(C,N)=>{let R=C.scale,_=C.axis?.reversed??false;return s||C===d?Hr(R,N,A.l,A.r,_):Hr(R,N,A.b,A.t,_)},k=(C,N)=>{let R=N?.crosses??"autoZero";if(R==="min")return C.min;if(R==="max")return C.max;let _=typeof R=="number"?R:0;return Math.min(C.max,Math.max(C.min,_))},L=J(r.plotSpPr,i);n.scene.rect(A.l,A.t,A.r-A.l,A.b-A.t,L.fill??null,L.line??null);for(let C of h)if(!(!C.axis||C.axis.deleted&&!C.axis.majorGridlines))for(let[N,R]of [[C.axis.minorGridlines,true],[C.axis.majorGridlines,false]]){let _=ld(N,n);if(!_)continue;let I=[];if(C.value?.scale)for(let j of ad(C.value.scale,R)){let V=T(C.value,j);I.push(Ce(C.side)?[{x:A.l,y:V},{x:A.r,y:V}]:[{x:V,y:A.t},{x:V,y:A.b}]);}else if(m&&!R){let j=m.between?m.count+1:m.count;for(let V=0;V<j;V+=1){let B=m.between?w(V)-(w(1)-w(0))/2:w(V);I.push(Ce(C.side)?[{x:A.l,y:B},{x:A.r,y:B}]:[{x:B,y:A.t},{x:B,y:A.b}]);}}I.length>0&&n.scene.path(I,false,null,_);}let O=[];for(let C of e){let N=f.get(C);if(!N.scale)continue;let R=k(N.scale,x?.axis??null);Yl(C,N,R,{categoryAt:w,valueAt:T,categories:m,horizontal:s,xInfo:d,plot:A},n,O);}for(let C of h){if(!p(C.axis))continue;let N=od(C.axis,n);if(!N)continue;let R;if(C.role==="category"||C.role==="x"){let U=M?.value;R=U?.scale?T(U,k(U.scale,C.axis)):Ce(C.side)?A.l:A.b;}else {let $=C.axis.crosses==="max";R=Ce(C.side)?C.side==="r"||$?A.r:A.l:C.side==="t"||$?A.t:A.b,d?.scale&&C.value!==d&&!s&&(R=T(d,k(d.scale,C.axis)));}let _=Ce(C.side)?[{x:R,y:A.t},{x:R,y:A.b}]:[{x:A.l,y:R},{x:A.r,y:R}];n.scene.line(_,N);let I=C.axis.majorTickMark;if(I==="none")continue;let j=C.side==="l"||C.side==="t"?-1:1,V=I==="in"?0:I==="cross"?-Zr:0,B=I==="in"?-Zr:Zr,H=[];if(C.value?.scale)for(let U of C.value.scale.ticks)H.push(T(C.value,U));else if(m){let U=m.between?m.count+1:m.count;for(let $=0;$<U;$+=1)H.push(m.between?w($)-(w(1)-w(0))/2:w($));}let W=H.map(U=>Ce(C.side)?[{x:R+j*V,y:U},{x:R+j*B,y:U}]:[{x:U,y:R-j*-V},{x:U,y:R+j*B}]);W.length>0&&n.scene.path(W,false,null,N);}for(let C of O)n.labels.push(C);for(let C of h){if(!C.labelled)continue;let N=C.style.sizePt,R=Z(C.style),_=.91*N;if(C.value?.scale){let j=Jr(C,r);for(let[V,B]of C.value.scale.ticks.entries()){let H=j[V],U=K(H,C.style)*1.3+N*2,$=T(C.value,B);if(Ce(C.side)){let X=C.side==="l";n.labels.push({paragraphs:[[{text:H,style:C.style}]],align:X?"r":"l",x:X?A.l-_-U:A.r+_,y:$-R/2-Kl*N,width:U,height:R,rotation:0});}else {let X=C.side==="b"?A.b+.625*N:A.t-.625*N-R;n.labels.push({paragraphs:[[{text:H,style:C.style}]],align:"ctr",x:$-U/2,y:X,width:U,height:R,rotation:0});}}continue}if(!m)continue;let I=M?.value?.scale&&ea(C,M.value.scale)?T(M.value,k(M.value.scale,C.axis)):null;for(let j=0;j<m.count;j+=E.categorySkip){let V=m.labels[j];if(V==="")continue;let H=K(V,C.style)*1.3+N*2,W=w(j);if(Ce(C.side)){let pe=I??(C.side==="l"?A.l:A.r),le=C.side==="l";n.labels.push({paragraphs:[[{text:V,style:C.style}]],align:le?"r":"l",x:le?pe-_-H:pe+_,y:W-R/2-Kl*N,width:H,height:R,rotation:0});continue}let U=I??(C.side==="b"?A.b:A.t),$=C.side==="b"?U+.625*N:U-.625*N-R;if(E.categoryRotation!==0){let pe=E.categoryRotation*Math.PI/180,le=H/2,Pe=W,Le=$+R/2,tt=Pe-le*Math.cos(pe),he=Le-le*Math.sin(pe);n.labels.push({paragraphs:[[{text:V,style:C.style}]],align:"r",x:tt-le,y:he-R/2,width:H,height:R,rotation:E.categoryRotation});continue}let X=E.categoryWrap,ue=X>0?Jl(V,C.style,X):1,ce=X>0?X:H;n.labels.push({paragraphs:[[{text:V,style:C.style}]],align:"ctr",x:W-ce/2,y:C.side==="b"?$:$-(ue-1)*R,width:ce,height:R*ue,rotation:0});}}for(let C of h){if(!C.title)continue;let N=C.title.style,R=lt(C.title.paragraphs,N),I=wt(C.title.paragraphs)*1.3+N.sizePt*2;if(Ce(C.side)){let j=C.title.rotation??-90,V=C.side==="l"?t.l+1.5+R/2:t.r-1.5-R/2,B=(A.t+A.b)/2;n.labels.push({paragraphs:C.title.paragraphs,align:"ctr",x:V-I/2,y:B-R/2,width:I,height:R,rotation:j});}else {let j=C.side==="b"?t.b-1.4-R:t.t+1.5;n.labels.push({paragraphs:C.title.paragraphs,align:"ctr",x:(A.l+A.r)/2-I/2,y:j,width:I,height:R,rotation:C.title.rotation??0});}}return true}function ea(e,t){return e.role!=="category"||e.axis?.tickLabelPosition!=="nextTo"||e.axis.crosses!=="autoZero"?false:t.min<0&&t.max>0}function ad(e,t){let n=[];if(e.logBase!==void 0){if(!t)return [...e.ticks];let o=Math.min(Math.floor(e.logBase),100);for(let l of e.ticks)for(let a=2;a<o&&n.length<1e3;a+=1)l*a<e.max&&n.push(l*a);return n}let r=t?e.major/5:e.major;for(let o=0,l=e.min;l<=e.max+r*1e-9&&o<1e3;o+=1,l=e.min+o*r)n.push(l);return n}var Zn=256;function ra(e,t,n,r){let o=[],l=t.position==="l"||t.position==="r"||t.position==="tr";for(let a of e.plots){let s=[];if(a.kind==="surface"){for(let f of [...r??[]].reverse()){if(s.length>=Zn)break;s.push({text:f.text,look:{fill:a.wireframe?null:f.fill,line:f.line,marker:null},line:false});}for(let f of s)o.push(f);continue}let i=qn(a),c=e.plots.length===1&&a.series.length===1,u=ve(a);if(u||c&&a.series[0].points.size>0&&!i){let f=a.series[0],d=f.values.length;for(let m=0;m<d&&m<Zn;m+=1){let h=Ge(f,m,e.date1904)??String(m+1),y=u||f.points.has(m)?{index:m,count:d}:void 0;s.push({text:h,look:ae(a,f,n,y),line:i});}}else {for(let f of a.series){if(s.length>=Zn)break;s.push({text:f.name??`Series${f.index+1}`,look:ae(a,f,n),line:i,round:a.kind==="bubble"});}sd(a,l)&&s.reverse();for(let f of a.series)for(let d of vt(a,f)){if(s.length>=Zn)break;let m=J(F(d.element,"spPr"),n.resolveSchemeColor),h=ae(a,f,n),y=h.line??(h.fill??h.marker?.fill?{...h.fill??h.marker.fill,widthPt:1.5,cap:"round",dash:null}:null),p=te(m.line,y?{...y,widthPt:1.5,dash:[1,1]}:null);s.push({text:d.name,look:{fill:null,line:p,marker:null},line:true});}}for(let f of s)o.push(f);}return o.filter((a,s)=>!t.deleted.has(s))}function sd(e,t){let n=e.grouping==="stacked"||e.grouping==="percentStacked";return e.kind==="bar"&&e.horizontal?e.grouping==="clustered":t?n&&(e.kind==="bar"||e.kind==="area"||e.kind==="line"):false}function eo(e,t){return e.line&&e.look.line?{key:2.1*t,text:2.32*t}:{key:.54*t,text:.77*t}}function oa(e,t,n,r,o,l){let a=n.sizePt,s=Z(n),i={...l},c=[],u=a*.952;if(t.length===0)return {layout:{items:c},plot:i};let f=e.layout;if(e.position==="b"||e.position==="t"){let b=r-20,S=[[]],E=0;for(let T of t){let L=eo(T,a).text+K(T.text,n),O=S[S.length-1].length>0?.81*a:0;E+O+L>b&&S[S.length-1].length>0&&(S.push([]),E=0),E+=(S[S.length-1].length>0?.81*a:0)+L,S[S.length-1].push({entry:T,width:L});}let A=1.84*a,D=s+(S.length-1)*A,w=f?f.y*o:e.position==="b"?o-9.6-D:l.t-2.9;for(let[T,k]of S.entries()){let L=k.reduce((C,N,R)=>C+N.width+(R>0?.81*a:0),0),O=f?f.x*r:r/2+1.8-L/2;for(let C of k)c.push({entry:C.entry,x:O,baseline:w+T*A+u}),O+=C.width+.81*a;}return !e.overlay&&!f&&(e.position==="b"?i.b=Math.min(i.b,w-13.2):i.t=Math.max(i.t,w+D+14.6)),{layout:{items:c},plot:i}}let d=1.84*a,m=Math.max(...t.map(b=>K(b.text,n))),h=Math.max(...t.map(b=>eo(b,a).text)),y=f&&f.h>0?f.h*o:o-20,p=Math.max(1,Math.floor((y-s)/d)+1),v=t.slice(0,p),P=s+(v.length-1)*d,x=f?f.x*r:e.position==="l"?10.7:r-10-m-h,g=(l.t+o-11)/2,M=f?f.y*o+Math.max(0,(y-P)/2):e.position==="tr"?l.t:g-P/2;for(let[b,S]of v.entries())c.push({entry:S,x,baseline:M+b*d+u});return !e.overlay&&!f&&(e.position==="l"?i.l=Math.max(i.l,x+h+m+15.7):i.r=Math.min(i.r,x-15.7)),{layout:{items:c},plot:i}}function la(e,t,n,r){let o=t.sizePt,l=Z(t);for(let a of e.items){let{entry:s}=a,i=eo(s,o),c=a.baseline-.27*o;if(s.line){s.look.line&&n.line([{x:a.x,y:c},{x:a.x+i.key,y:c}],s.look.line,"round");let d=s.look.marker;if(d){let m=a.x+i.key/2;n.path(qe(d.symbol,m,c,d.size*.96),true,d.fill,d.line);for(let h of Ye(d.symbol,m,c,d.size*.96))n.line(h,d.line);}}else if(s.round){let d=i.key/2;n.path([un(a.x+d,c,d,d)],true,s.look.fill,s.look.line);}else {let d=i.key/2;n.rect(a.x,c-d,i.key,i.key,s.look.fill,s.look.line);}let u=a.x+i.text,f=K(s.text,t);r.push({paragraphs:[[{text:s.text,style:t}]],align:"l",x:u,y:a.baseline-o*.952,width:f*1.3+o*2,height:l,rotation:0});}}var id={hex:"A6A6A6",alpha:1,widthPt:.75,cap:"butt",dash:null};function cd(e,t){let n=e.ofPie,r=new Set,o=t.length,l=t.reduce((s,i)=>s+(i!==null&&i>0?i:0),0);if(n.splitType==="cust"){for(let s of fe(F(e.element,"custSplit"),"secondPiePt")){let i=Y(s,"val");i!==void 0&&/^\d{1,6}$/.test(i)&&Number(i)<o&&r.add(Number(i));}return r}if(n.splitType==="val"||n.splitType==="percent"){let s=n.splitPos??0;for(let[i,c]of t.entries()){if(c===null||!(c>0))continue;(n.splitType==="percent"?c/(l||1)*100:c)<s&&r.add(i);}return r}let a=Math.max(0,Math.min(o-1,Math.round(n.splitType==="pos"?n.splitPos??2:3)));for(let s=o-a;s<o;s+=1)r.add(s);return r}function aa(e,t,n){let r=e.series[0];if(!r||!e.ofPie)return;let o=r.values,l=o.length,a=cd(e,o),s=B=>B!=null&&B>0,i=o.reduce((B,H)=>B+(s(H)?H:0),0);if(!Number.isFinite(i)){n.scene.ok=false;return}let c=[...a].reduce((B,H)=>B+(s(o[H])?o[H]:0),0);if(!(i>0))return;let u=re(n.baseText,null),d=o.some((B,H)=>Se(e,r,H)!==null)?2*1.38*u.sizePt:0,m=e.ofPie.type==="bar",h=e.ofPie.secondSize/100,y=t.b-t.t,p=t.r-t.l,v=m?h/2:h,P=.65*v*(e.gapWidth/100),x=Math.max(1,Math.min(y-d,(p-d)/(1+P+v))),g=x/2,M=x*(1+P+v),b=(t.l+t.r)/2-M/2,S=b+g,E=(t.t+t.b)/2,A=x*v,D=b+x*(1+P),w=n.look.resolveSchemeColor,T=(B,H)=>({value:H,percent:H/i,category:B<l?Ge(r,B,n.date1904):"Other",seriesName:r.name,seriesFormat:r.formatCode,date1904:n.date1904,cell:B<l?r.labelRange?.[B]??null:null}),k=(B,H,W,U,$)=>{let X=Se(e,r,B);if(!X)return;let ue=re(n.baseText,X.txPr,w),ce=Oe(X,T(B,H),ue,null,w),pe=ce.height,le=ce.frame;n.labels.push({paragraphs:ce.paragraphs,align:$,x:$==="ctr"?W-le/2:W,y:U-pe/2,width:le,height:pe,rotation:0});},L=(B,H,W,U,$,X)=>{let ue=Se(e,r,B);if(!ue)return;let ce=W*Math.PI/180,pe=re(n.baseText,ue.txPr,w),le=Oe(ue,T(B,H),pe,null,w),Pe=le.width/2*Math.abs(Math.sin(ce))+le.height/2*Math.abs(Math.cos(ce)),Le=Math.max(X*.3,X-Pe-4);k(B,H,U+Le*Math.sin(ce),$-Le*Math.cos(ce),"ctr");},O=B=>ae(e,r,n.look,ve(e)||r.points.has(B)?{index:B,count:l+1}:void 0),C=c/i*360,N=90+C/2;for(let B=0;B<l;B+=1){let H=o[B];if(a.has(B)||!s(H))continue;let W=H/i*360,U=O(B);n.scene.path([It(S,E,g,0,N,N+W)],true,U.fill,U.line,"round"),L(B,H,N+W/2,S,E,g),N+=W;}if(c>0){let B=O(l),H=r.points.has(l)||ve(e)?B.fill:Ot(n.look.model.style,l,l+1,w);n.scene.path([It(S,E,g,0,90-C/2,90+C/2)],true,H,B.line,"round"),L(l,c,90,S,E,g);}let R={x:S+g*Math.sin((90-C/2)*Math.PI/180),y:E-g*Math.cos((90-C/2)*Math.PI/180)},_={x:R.x,y:2*E-R.y},I,j;if(m){let B=x*h,H=E-B/2;for(let W of a){let U=o[W];if(!s(U)||!(c>0))continue;let $=U/c*B,X=O(W);n.scene.rect(D,H,A,$,X.fill,X.line),k(W,U,D+A+6,H+$/2,"l"),H+=$;}I={x:D,y:E-B/2},j={x:D,y:E+B/2};}else {let B=A/2,H=D+B,W=90;for(let U of a){let $=o[U];if(!s($)||!(c>0))continue;let X=$/c*360,ue=O(U);n.scene.path([It(H,E,B,0,W,W+X)],true,ue.fill,ue.line,"round"),L(U,$,W+X/2,H,E,B),W+=X;}I={x:H,y:E-B},j={x:H,y:E+B};}let V=e.ofPie.serLines;if(V&&c>0){let B=te(J(F(V,"spPr"),w).line,id);B&&n.scene.path([[R,I],[_,j]],false,null,B);}}function dd(e,t,n){let r=e.series[t],o=r.points.get(n),l=o?Y(o,"explosion"):void 0,a=l!==void 0&&/^\d{1,3}$/.test(l)?Number(l):NaN;return a>=0&&a<=400?a:r.explosion}var sa=.85,ia=.5,ca=.16,fd=.75,Jn=10,ua={hex:"A6A6A6",alpha:1,widthPt:.75,cap:"butt",dash:null};function md(e,t){let r=F(e,"leaderLines");if(!r)for(let l of fe(F(e,"extLst"),"ext"))for(let a of l.children)isElement(a)&&a.localName==="leaderLines"&&(r=a);let o=J(F(r,"spPr"),t.look.resolveSchemeColor);return te(o.line,ua)??ua}function hd(e,t,n){return ((e-t)%360+360)%360<=n}function pd(e,t,n,r,o){if(o.sweep>=359.9)return true;for(let[l,a]of [[-1,-1],[1,-1],[1,1],[-1,1]]){let s=e+l*n*sa/2-o.cx,i=t+a*r*sa/2-o.cy,c=Math.hypot(s,i);if(c>o.outer||c<o.inner)return false;let u=Math.atan2(s,-i)*180/Math.PI;if(!hd(u,o.from,o.sweep))return false}return true}function fa(e,t,n){let r=e.series.filter(p=>p.values.some(v=>v!==null&&v>0));if(r.length===0)return;let o=e.kind==="doughnut",l=o?r:r.slice(0,1),a=l.some(p=>p.values.some((v,P)=>{let x=Se(e,p,P);return x!==null&&x.position!=="inEnd"&&x.position!=="ctr"})),s=re(n.baseText,null),i=a&&!n.placed?2*1.38*s.sizePt:0,c=Math.max(1,Math.min(t.r-t.l,t.b-t.t)-i),u=(t.l+t.r)/2,f=(t.t+t.b)/2,d=(p,v)=>{let P=o?p*e.holeSize/100:0,x=(p-P)/l.length,g=[];for(let[M,b]of l.entries()){let S=b.values.reduce((T,k)=>T+(k!==null&&k>0?k:0),0);if(!Number.isFinite(S))return n.scene.ok=false,[];if(!(S>0))continue;let E=o?P+M*x:0,A=o?E+x:p,D=e.firstSliceAngle,w=b.values.length;for(let T=0;T<w;T+=1){let k=b.values[T];if(k==null||!(k>0))continue;let L=k/S*360,O=D+L/2,C=dd(e,e.series.indexOf(b),T)/100*p,N=O*Math.PI/180,R=u+C*Math.sin(N),_=f-C*Math.cos(N),I=ae(e,b,n.look,ve(e)||b.points.has(T)?{index:T,count:w}:void 0);v&&n.scene.path([It(R,_,A,E,D,D+L)],true,I.fill,I.line,"round");let j=Se(e,b,T);if(j){let V=re(n.baseText,j.txPr,n.look.resolveSchemeColor),B={value:k,percent:k/S,category:Ge(b,T,n.date1904),seriesName:b.name,seriesFormat:b.formatCode,date1904:n.date1904,cell:b.labelRange?.[T]??null},H=Oe(j,B,V,n.bounds?n.bounds.r-n.bounds.l:null,n.look.resolveSchemeColor),W=H.width,U=H.height,$=Math.sin(N),X=Math.cos(N),ue=W/2*Math.abs($)+U/2*Math.abs(X),ce=j.position??(o?"ctr":"bestFit"),pe={cx:R,cy:_,inner:E,outer:A,from:D,sweep:L},le=ce==="ctr"||o?(E+A)/2:A-ue-4,Pe=ce==="outEnd";ce==="bestFit"&&(Pe=!pd(R+le*$,_-le*X,W,U,pe));let Le=Pe?A+ue+(ce==="outEnd"?6:0):le,tt=H.frame,he=Rt(j.moved,n.bounds,R+Le*$,_-Le*X,W,U);he.moved&&(Pe=false);let nt=he.x,rt=he.y;g.push({label:{paragraphs:H.paragraphs,align:"ctr",x:nt-tt/2,y:rt-U/2,width:tt,height:U,rotation:0},anchor:{x:R+A*$,y:_-A*X},outside:Pe,right:$>=0,cx:nt,cy:rt,naturalX:nt,naturalY:rt,angle:O,middle:O,origin:{x:R,y:_},reach:A+(ce==="outEnd"?6:0),drift:0,lineHeight:Z(V),size:V.sizePt,width:W,height:U});}D+=L;}}return g},m=c/2;for(let p=0;p<3&&!n.placed;p+=1){let v=0;for(let P of d(m,false))P.outside&&(v=Math.max(v,P.cx+P.width/2-(t.r+Jn),t.l-Jn-(P.cx-P.width/2),t.t-Jn-(P.cy-P.height/2),P.cy+P.height/2-(t.b+Jn)));if(v<=.5)break;m=Math.max(c/4,m-v);}let h=d(m,true);Sd(h,n.avoid??[],n.bounds??null);let y=md(l[0]?.dLbls??e.dLbls,n);for(let p of h){let v={...p.label,x:p.label.x+(p.cx-p.naturalX),y:p.cy-p.height/2};n.labels.push(v);let P=dn(p),x=Math.max(P.l-p.anchor.x,0,p.anchor.x-P.r),g=Math.max(P.t-p.anchor.y,0,p.anchor.y-P.b),M=Math.hypot(p.cx-p.naturalX,p.cy-p.naturalY);p.outside&&M>1&&Math.hypot(x,g)>fd*p.size&&n.scene.line(yd(p,f),y);}}function yd(e,t){let n=e.cy-e.height/2,r=Math.max(1,Math.round(e.height/e.lineHeight)),o=e.cy<t?r-1:0,l=n+(o+1)*e.lineHeight-.35*e.size,a=e.cx-e.width/2,s=e.cx+e.width/2,i=e.anchor.x<e.cx,c=i?a-ca*e.size:s+ca*e.size,u=i?c-ia*e.size:c+ia*e.size;return [{x:e.anchor.x,y:e.anchor.y},{x:u,y:l},{x:c,y:l}]}function da(e,t){return e.l<t.r&&t.l<e.r&&e.t<t.b&&t.t<e.b}function dn(e,t=0){let n=t*e.size;return {l:e.cx-e.width/2-n,r:e.cx+e.width/2+n,t:e.cy-e.height/2,b:e.cy+e.height/2}}var to=.25,xd=.5,gd=150,bd=1e3;function Cd(e){let t=e.angle*Math.PI/180,n=Math.sin(t),r=Math.cos(t),o=e.width/2*Math.abs(n)+e.height/2*Math.abs(r);e.cx=e.origin.x+(e.reach+o)*n,e.cy=e.origin.y-(e.reach+o)*r;}function Md(e,t,n,r){let o=Math.atan2((t.l+t.r)/2-n,r-(t.t+t.b)/2)*180/Math.PI;return ((e.angle-o)%360+540)%360-180>=0?1:-1}function Sd(e,t,n){let r=e.filter(c=>c.outside);if(r.length===0)return;let o=[...t];for(let c of e)c.outside||o.push(dn(c));let l=r[0].origin.x,a=r[0].origin.y,s=c=>n!==null&&(c.l<n.l||c.r>n.r||c.t<n.t||c.b>n.b),i=(c,u)=>{let f=c.angle+u*xd;return Math.abs(f-c.middle)>gd?false:(c.angle=f,c.drift=u,Cd(c),true)};for(let c=0;c<bd;c+=1){let u=false,f=[...r].sort((m,h)=>(m.angle%360+360)%360-(h.angle%360+360)%360),d=f.length>2?f.length:f.length-1;for(let m=0;m<d;m+=1){let h=f[m],y=f[(m+1)%f.length];da(dn(h,to),dn(y,to))&&(u=i(h,-1)||u,u=i(y,1)||u);}for(let m of r){let h=dn(m,to),y=o.find(p=>da(h,p));if(y)u=i(m,m.drift||Md(m,y,l,a))||u;else if(s(h)){let p=h.t<n.t?0:h.b>n.b?180:h.l<n.l?270:90,v=((m.angle-p)%360+540)%360-180;u=i(m,m.drift||(v>=0?1:-1))||u;}}if(!u)break}}var Pd=1024,wd={hex:"000000",alpha:1,widthPt:.5,cap:"butt",dash:null};function ma(e,t,n){let{model:r,scene:o}=n,l=n.look.resolveSchemeColor,a=At(r,e,Pd),s=a.count;if(s<1)return;let i=ze(r,e[0],"value"),c=a.axis,u={axis:i,id:i?.id??"",dataMin:1/0,dataMax:-1/0,percent:false,formatCode:null};for(let w of e)st(u,w);u.formatCode=it(u,e[0].series.find(w=>w.formatCode)?.formatCode??null);let f=re(n.baseText,i?.txPr??null,l),d=re(n.baseText,c?.txPr??null,l),m=Z(d),h=Math.max(0,...a.labels.map(w=>K(w,d))),y=c!==null&&!c.deleted&&c.tickLabelPosition!=="none",p=Math.max(1,Math.min((t.b-t.t)/2-(y?m/2+3:0),(t.r-t.l)/2-(y?h+3.5:0))),v=(t.l+t.r)/2,P=(t.t+t.b)/2,x=u.dataMin>u.dataMax,g=We({dataMin:x?0:u.dataMin,dataMax:x?1:u.dataMax,lengthPt:p,minIntervalPt:1.6*f.sizePt,fixedMin:i?.min??null,fixedMax:i?.max??null,fixedMajor:i?.majorUnit??null,noHeadroom:true}),M=g.max-g.min||1,b=(w,T)=>{let k=w/s*Math.PI*2,L=(T-g.min)/M*p;return {x:v+L*Math.sin(k),y:P-L*Math.cos(k)}},S=w=>w?te(J(F(w,"spPr"),l).line,wd):null,E=S(i?.majorGridlines??null);if(E){let w=[];for(let T of g.ticks){if(T<=g.min)continue;let k=[];for(let L=0;L<s;L+=1)k.push(b(L,T));w.push(k);}o.path(w,true,null,E);}let A=S(c?.majorGridlines??null);if(A){let w=[];for(let T=0;T<s;T+=1)w.push([{x:v,y:P},b(T,g.max)]);o.path(w,false,null,A);}let D=[];for(let w of e){let T=w.radarStyle==="filled";for(let k of w.series){let L=ae(w,k,n.look),O=[];for(let R=0;R<s;R+=1){let _=k.values[R];O.push(_==null?null:b(R,_));}let C=O.filter(R=>R!==null);T?C.length>=3&&o.path([C],true,L.fill,L.line):L.line&&C.length>=2&&o.path([C],C.length===s&&C.length>=3,null,L.line,"round");let N=T?null:L.marker;if(N){let R=N.size*.96,_=[],I=[];for(let j of C){for(let V of qe(N.symbol,j.x,j.y,R))_.push(V);for(let V of Ye(N.symbol,j.x,j.y,R))I.push(V);}_.length&&o.path(_,true,N.fill,N.line),I.length&&o.path(I,false,null,N.line);}for(let[R,_]of O.entries()){let I=_?Se(w,k,R):null;if(!I||!_)continue;let j=re(n.baseText,I.txPr,l),V={value:k.values[R],percent:null,category:a.labels[R]??null,seriesName:k.name,seriesFormat:k.formatCode,date1904:r.date1904,cell:k.labelRange?.[R]??null},B=Oe(I,V,j,null,l),H=B.height,W=B.frame;D.push({paragraphs:B.paragraphs,align:"ctr",x:_.x-W/2,y:_.y-H-2,width:W,height:H,rotation:0});}}}if(i&&!i.deleted&&i.tickLabelPosition!=="none"){let w=Z(f);for(let T of g.ticks){let k=ee(T,u.formatCode,r.date1904),L=K(k,f)*1.3+f.sizePt*2,O=b(0,T);n.labels.push({paragraphs:[[{text:k,style:f}]],align:"r",x:O.x-.91*f.sizePt-L,y:O.y-w/2,width:L,height:w,rotation:0});}}if(y)for(let w=0;w<s;w+=1){let T=a.labels[w],k=w/s*Math.PI*2,L=Math.sin(k),O=Math.cos(k),C=b(w,g.max),N=K(T,d),R=C.x+3.5*L+N/2*L,_=C.y-3.5*O-m/2*O,I=N*1.3+d.sizePt*2;n.labels.push({paragraphs:[[{text:T,style:d}]],align:"ctr",x:R-I/2,y:_-m/2,width:I,height:m,rotation:0});}for(let w of D)n.labels.push(w);}var er=11;function vd(e,t,n){return {l:e.x*t,t:e.y*n,r:(e.x+e.w)*t,b:(e.y+e.h)*n}}var Ad={hex:"898989",alpha:1,widthPt:.5,cap:"butt",dash:null};function ha(e,t,n,r,o){let l=new Dt,a=[],s=Ol(e,r,o),i=e.plots.reduce((w,T)=>w+T.series.length,0),c={model:e,resolveSchemeColor:r,seriesCount:i},u=J(e.spPr,r),f=u.fill===void 0?Xe("bg1","",r)??{hex:"FFFFFF",alpha:1}:u.fill;l.rect(0,0,t,n,f,te(u.line,e.spPr?null:Ad));let d={l:er,t:er,r:t-er,b:n-er},m=[],h=i===1?e.plots.find(w=>w.series.length===1).series[0]:null;if(e.title!==null||!e.autoTitleDeleted&&h!==null){let w=e.title,T=re(s,F(w,"txPr"),r,{sizePt:s.sizePt*1.8,bold:true}),k=h?.name??(i>1?"Chart Title":null),L=w?Lt(w,T,k,r):k?[[{text:k,style:T}]]:[];if(L.length>0){let O=wt(L),C=zn(F(w,"layout")),N=Y(w,"overlay")==="1",R=F(F(w,"tx"),"rich"),_=t*.8,I=!C&&O>_,j=I?_:O*1.3+T.sizePt*2,V=lt(L,T)*(I?Math.ceil(O/_):1),B=C?C.y*n:d.t-3.4,H=C?C.x*t+O/2:t/2;a.push({paragraphs:L,align:"ctr",x:H-j/2,y:B,width:j,height:V,rotation:en(R)??0}),!C&&!N&&(d.t=B+V+12.5);let W=(I?_:O)/2+T.sizePt*.66;m.push({l:H-W,r:H+W,t:B,b:B+V});}}let p=e.plots.filter(w=>w.kind==="surface"),v;if(p.length>0){let{scale:w,formatCode:T}=Vl({model:e,look:c,baseText:s},p,d);v=Il(p[0],w,T,{model:e,look:c});}let P=e.legend?re(s,e.legend.txPr,r):null,x=null;if(e.legend&&P){let w=ra(e,e.legend,c,v),T=oa(e.legend,w,P,t,n,d);x=T.layout,Object.assign(d,T.plot);}let g=Y(F(e.chartSpace,"chart"),"dispBlanksAs"),M=g==="zero"||g==="span"?g:"gap",b=e.plots.filter(w=>w.kind==="pie"||w.kind==="doughnut"),S=e.plots.filter(w=>w.kind==="radar"),E=e.plots.filter(w=>w.kind==="ofPie"),A=e.plots.filter(w=>!b.includes(w)&&!S.includes(w)&&!E.includes(w));if([b,S,E,A].filter(w=>w.length>0).length!==1)return null;if(S.length>0)ma(S,e.plotLayout?.inner?vd(e.plotLayout,t,n):d,{model:e,look:c,scene:l,labels:a,baseText:s});else if(E.length>0){if(E.length!==1)return null;aa(E[0],d,{look:c,scene:l,labels:a,baseText:s,date1904:e.date1904});}else if(A.length>0&&A.some(w=>w.threeD||w.kind==="surface")){if(!Kr(A)||!Ul(A,d,{model:e,look:c,scene:l,labels:a,baseText:s,blanks:M,chartWidth:t,chartHeight:n},v))return null}else if(A.length>0){if(!na(A,d,{model:e,look:c,scene:l,labels:a,baseText:s,blanks:M,chartWidth:t,chartHeight:n}))return null}else {let w=e.plotLayout?{l:e.plotLayout.x*t,t:e.plotLayout.y*n,r:(e.plotLayout.x+e.plotLayout.w)*t,b:(e.plotLayout.y+e.plotLayout.h)*n}:d,T=J(e.plotSpPr,r);(T.fill||T.line)&&l.rect(w.l,w.t,w.r-w.l,w.b-w.t,T.fill??null,T.line??null);for(let k of b){if(k.kind==="pie"&&k.threeD){Wl(k,w,{model:e,look:c,scene:l,labels:a,baseText:s,date1904:e.date1904,placed:e.plotLayout?.inner===true,bounds:{l:0,t:0,r:t,b:n}});continue}fa(k,w,{look:c,scene:l,labels:a,baseText:s,date1904:e.date1904,placed:e.plotLayout?.inner===true,avoid:m,bounds:{l:0,t:0,r:t,b:n}});}}return x&&P&&la(x,P,l,a),!l.ok||a.some(w=>[w.x,w.y,w.width,w.height,w.rotation].some(T=>!Number.isFinite(T*12700)))?null:{scene:l,labels:a}}var kd=4096,Td=["dk1","lt1","dk2","lt2","tx1","bg1","tx2","bg2"];function tr(e){if(!e)return "";let t=shapeThemeCacheToken(e);return t!==void 0?t:[...Td,"accent1","accent2","accent3","accent4","accent5","accent6"].map(r=>e(r)??"").join(",")}function nr(e,t,n,r,o){if(t.length>kd)return null;let l=[];for(let[i,c]of t.entries()){let u=bl(c,`${n}#chart-label:${i}`,r);u&&l.push(u);}let a=e.components,s=[];for(let i of a)for(let c of i.subpathsEmu)s.push(c);return Object.freeze({vectorShape:a.length?Object.freeze({extentEmu:Object.freeze({cx:o.cx,cy:o.cy}),subpathsEmu:s,fillHex:null,fillAlpha:1,strokeHex:null,strokeAlpha:1,strokeWidthEmu:0,components:a}):null,groupTextboxes:l.length?Object.freeze(l):null})}var rr=CHARTEX_NAMESPACE_URI,de=Object.freeze({dataBlocks:16,dimensionsPerData:8,levelsPerDimension:8,pointsPerLevel:4096,totalPoints:32768,series:64,axes:8,pointOverrides:4096,textUnits:1024});function Q(e,t){return e?findDirectChild(e.children,{namespaceUri:rr,localName:t}):null}function zt(e,t){return Q(e.points.get(t),"spPr")}function Fe(e,t,n){let r=[];for(let o of e?.children??[])if(!(!isElement(o)||o.namespaceUri!==rr||o.localName!==t)){if(r.length>=n)return null;r.push(o);}return r}function ge(e,t,n){let r=e?schemaAttributeValue(e.attributes,t):void 0;return r==="1"||r==="true"?true:r==="0"||r==="false"?false:n}function Ke(e,t){let n=e?schemaAttributeValue(e.attributes,t):void 0;return ro(n)}function ro(e){if(e===void 0||e.length>64)return null;let t=e.trim();if(!/^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d{1,3})?$/.test(t))return null;let n=Number(t);return Number.isFinite(n)?n:null}function _t(e,t,n){let r=schemaAttributeValue(e.attributes,t);if(r===void 0||!/^\d{1,9}$/.test(r))return null;let o=Number(r);return o<n?o:null}function fn(e){if(!e)return null;let t="";for(let n of e.children)if(n.kind==="textValue"&&(t+=n.value,t.length>de.textUnits))break;return t.slice(0,de.textUnits)}function pa(e){let t=Q(e,"numFmt");if(!t||ge(t,"sourceLinked",false))return null;let n=schemaAttributeValue(t.attributes,"formatCode");return n&&n.length<=255?n:null}function Od(e,t,n){let r=_t(e,"ptCount",de.pointsPerLevel+1);if(r===null||(n.points+=r,n.points>de.totalPoints))return null;let o=new Array(r).fill(null),l=0;for(let i of e.children){if(!isElement(i)||i.namespaceUri!==rr||i.localName!=="pt")continue;if(++l>r)return null;let c=_t(i,"idx",r);if(c===null)continue;let u=fn(i)??"";o[c]=t?ro(u):u;}let a=schemaAttributeValue(e.attributes,"formatCode"),s=schemaAttributeValue(e.attributes,"name");return {name:s?s.slice(0,de.textUnits):null,formatCode:a&&a.length<=255?a:null,points:o}}function Rd(e,t){let n=[];for(let r of e.children){if(!isElement(r)||r.namespaceUri!==rr)continue;let o=r.localName==="numDim";if(!o&&r.localName!=="strDim")continue;if(n.length>=de.dimensionsPerData)return null;let l=Fe(r,"lvl",de.levelsPerDimension);if(!l)return null;let a=[];for(let s of l){let i=Od(s,o,t);if(!i)return null;a.push(i);}n.push({numeric:o,type:(schemaAttributeValue(r.attributes,"type")??"").slice(0,32),levels:a});}return {id:schemaAttributeValue(e.attributes,"id")??"",dimensions:n}}function ya(e,t){let n=new Map,r=Fe(e,t,de.pointOverrides);if(!r)return null;for(let o of r){let l=_t(o,"idx",de.pointsPerLevel);l!==null&&!n.has(l)&&n.set(l,o);}return n}function xa(e,t){let n=Q(e,"visibility");return {seriesName:ge(n,"seriesName",t.seriesName),categoryName:ge(n,"categoryName",t.categoryName),value:ge(n,"value",t.value)}}function Dd(e){if(!e)return null;let t=ya(e,"dataLabel"),n=Fe(e,"dataLabelHidden",de.pointOverrides);if(!t||!n)return "refused";let r=new Set;for(let l of n){let a=_t(l,"idx",de.pointsPerLevel);a!==null&&r.add(a);}let o=fn(Q(e,"separator"));return {element:e,position:schemaAttributeValue(e.attributes,"pos")?.slice(0,16)??null,formatCode:pa(e),spPr:Q(e,"spPr"),txPr:Q(e,"txPr"),visibility:xa(e,{seriesName:false,categoryName:false,value:true}),separator:o===null?null:o.slice(0,16),hidden:r,points:t}}function Ft(e,t){if(e.hidden.has(t))return null;let n=e.points.get(t);return n?xa(n,e.visibility):e.visibility}function Id(e){let t=Q(Q(Q(e,"tx"),"txData"),"v"),n=fn(t);return n&&n.length>0?n:null}function _d(e){let t=Q(e,"catScaling"),n=Q(e,"valScaling"),r=Q(e,"tickLabels"),o=Q(e,"majorTickMarks"),l=t?schemaAttributeValue(t.attributes,"gapWidth"):void 0;return {element:e,id:(schemaAttributeValue(e.attributes,"id")??"").slice(0,32),kind:t?"category":"value",hidden:ge(e,"hidden",false),gapWidth:l===void 0||l==="auto"?null:ro(l),min:Ke(n,"min"),max:Ke(n,"max"),majorUnit:Ke(n,"majorUnit"),minorUnit:Ke(n,"minorUnit"),title:Q(e,"title"),majorGridlines:Q(e,"majorGridlines"),minorGridlines:Q(e,"minorGridlines"),majorTickMarks:o?(schemaAttributeValue(o.attributes,"type")??"cross").slice(0,8):null,tickLabels:r!==null,formatCode:pa(e),spPr:Q(e,"spPr"),txPr:Q(e,"txPr")}}var zd=new Set(["t","b","l","r"]);function ga(e){let t=Q(e,"chart"),n=Q(t,"plotArea"),r=Q(n,"plotAreaRegion");if(!t||!n||!r)return null;let o={points:0},l=new Map,a=Fe(Q(e,"chartData"),"data",de.dataBlocks);if(!a)return null;for(let m of a){let h=Rd(m,o);if(!h)return null;l.has(h.id)||l.set(h.id,h);}let s=Fe(r,"series",de.series);if(!s||s.length===0)return null;let i=[];for(let[m,h]of s.entries()){let y=ya(h,"dataPt"),p=Dd(Q(h,"dataLabels")),v=Fe(h,"axisId",de.axes);if(!y||p==="refused"||!v)return null;let P=schemaAttributeValue(Q(h,"dataId")?.attributes??[],"val"),x=_t(h,"ownerIdx",de.series),g=_t(h,"formatIdx",1e3);i.push({element:h,index:m,layoutId:(schemaAttributeValue(h.attributes,"layoutId")??"").slice(0,32),hidden:ge(h,"hidden",false),ownerIndex:x,formatIndex:g??m,name:Id(h),data:P===void 0?null:l.get(P)??null,spPr:Q(h,"spPr"),points:y,dataLabels:p,layoutPr:Q(h,"layoutPr"),axisIds:v.map(M=>(schemaAttributeValue(M.attributes,"val")??"").slice(0,32))});}let c=Fe(n,"axis",de.axes);if(!c)return null;let u=Q(t,"title"),f=Q(t,"legend"),d=f?schemaAttributeValue(f.attributes,"pos")??"r":"r";return {chartSpace:e,data:l,title:u?{element:u,position:schemaAttributeValue(u.attributes,"pos")??"t",overlay:ge(u,"overlay",false)}:null,series:i,axes:c.map(_d),legend:f?{element:f,position:zd.has(d)?d:"r",overlay:ge(f,"overlay",false),spPr:Q(f,"spPr"),txPr:Q(f,"txPr")}:null,spPr:Q(e,"spPr"),txPr:Q(e,"txPr"),plotSpPr:Q(n,"spPr")}}function or(e,t){for(let n of e.data?.dimensions??[])if(n.type===t)return n;return null}function je(e,t="val"){let n=or(e,t)?.levels[0];return n?{values:n.points.map(r=>typeof r=="number"?r:null),formatCode:n.formatCode}:null}function Qe(e){let t=or(e,"cat")?.levels[0];return t?t.points.map(n=>typeof n=="number"?ee(n,t.formatCode):n):null}var Ca=6.49,Fd=.08,jd=.98,Bd=1.094,Ma=Vr,Vd=1.16,Ud=6.26,lr=6.6,wa=6.9,Hd=1/3,$d=1.51,Gd=1.335,Wd=1.293,Xd=1.671,qd=1.58,oo=[30,60,90],Yd=.94,Kd=1e3,Qd=64,Zd=1024;function lo(e,t,n){if(K(e,t)<=n)return e;let r=n-K("\u2026",t),o="";for(let l of e.split(/\s+/).slice(0,Qd)){let a=o?`${o} ${l}`:l;if(K(a,t)>r)break;o=a;}if(!o){let l=0;for(let a of e){if(++l>Zd||K(o+a,t)>r)break;o+=a;}}return `${o}\u2026`}function Sa(e,t,n,r){let{l:o,r:l}=e;for(let a=0;a<t;a+=1){let s=(a+.5)/t;l=Math.min(l,(n.r-r(a).after-o*(1-s))/s);}for(let a=0;a<t;a+=1){let s=(a+.5)/t;o=Math.max(o,(n.l+r(a).before-l*s)/(1-s));}return {l:o,r:l}}function Pa(e,t,n,r){let o=(e.r-e.l)/t,{l,r:a}=e;for(let s=0;s<t;s+=1)a=Math.min(a,n.r-r(s).after+(t-s-.5)*o),l=Math.max(l,n.l+r(s).before-(s+.5)*o);return {l,r:a}}function Jd(e,t,n,r,o){let l=Math.max(1,e.length),a=Z(t),s=e.map(y=>lo(y,t,o)),i=e.map(y=>K(y,t)),c=i.map(y=>Math.min(y,o)),u=0,f=0;for(let[y,p]of c.entries())u=Math.max(u,p),f=Math.max(f,i[y]);let d=y=>(y.r-y.l)/l,m={angle:0,texts:s,l:n.l,r:n.r};if(e.length<=1||f+$d<=d(n))return {...m,texts:e,rows:1,height:lr+a};let h={l:n.l,r:n.r};if(u<=Gd*d(h)){let y=v=>({before:c[v]/2,after:c[v]/2}),p=Sa(h,l,r,y);if(u<=Wd*d(p))return {...m,...p,rows:2,height:lr+2*a};h=Pa(h,l,r,y);}for(let y of oo){let p=Math.cos(y*Math.PI/180),v=Math.sin(y*Math.PI/180),P=u*p+a*v,x=y===oo[oo.length-1];if(!x&&P>Xd*d(h))continue;let g=b=>({before:c[b]*p+a/2*v,after:a/2*v}),M=Sa(h,l,r,g);if(x||P<=qd*d(M))return {rows:1,angle:y,texts:s,height:wa+u*v+a*p,...M};h=Pa(h,l,r,g);}return {...m,rows:1,height:lr+a}}function jt(e,t,n){let{look:r}=n,o=e.categoryAxis,l=e.valueAxis,a=r.text("categoryAxis",o?.txPr??null),s=r.text("valueAxis",l?.txPr??null),i=l!==null&&!l.hidden&&l.tickLabels,c=o!==null&&!o.hidden&&o.tickLabels,u=Math.max(1,e.categories.length),f=(O,C)=>ee(Math.abs(O)<C.major*1e-9?0:O,e.formatCode),d=e.frameBox??t,m={l:d.l,r:d.r+Yd},h=(d.b-d.t+5.41)*Hd,y=O=>t.t-5.41+(O?Z(s)/2-Fd:jd),p=(O,C)=>{let N=C*s.sizePt,R=Math.max(1,Math.floor(O/N));return We({dataMin:e.dataMin,dataMax:e.dataMax,lengthPt:R*N,minIntervalPt:N,fixedMin:l?.min??null,fixedMax:l?.max??null,fixedMajor:l?.majorUnit??null})},v=O=>{let C=t.l,N=i&&O!==null;if(N){let j=0;for(let V of O.ticks)j=Math.max(j,K(f(V,O),s));C+=j+Ca;}else i&&(C+=Ud);let R={l:C,r:t.r},_=c?Jd(e.categories,a,R,m,h):{rows:1,angle:0,texts:e.categories,height:0,...R},I={l:_.l,t:y(N),r:_.r,b:t.b-_.height};return {plot:I,band:_,slot:(I.r-I.l)/u}},P=v(null),x=p(P.plot.b-P.plot.t,Bd),g=P,M=false;if(i){let O=v(x),C=Math.max(1,Math.round((x.max-x.min)/x.major)),N=(O.plot.b-O.plot.t)/C;O.band.rows!==P.band.rows||O.band.angle!==P.band.angle?(x=p(O.plot.b-O.plot.t,Ma),O=v(x),x=p(O.plot.b-O.plot.t,Ma),g=v(x),M=true):N>=Vd*s.sizePt&&(g=O,M=true);}let{plot:b,band:S,slot:E}=g;if(!(b.r-b.l>1)||!(b.b-b.t>1))return null;let A=x.max-x.min||1,D=O=>b.b-(O-x.min)/A*(b.b-b.t),w=O=>b.l+E*(O+.5),T=r.line("categoryAxis",o?.spPr??null),k=(O,C,N)=>{if(!O||!(N>0))return;let R=r.line(C,null);if(!R)return;let _=[];for(let I=0;I<=Kd;I+=1){let j=x.min+I*N;if(j>x.max+N*1e-9)break;let V=D(j);_.push([{x:b.l,y:V},{x:b.r,y:V}]);}_.length>0&&n.scene.path(_,false,null,R);},L=()=>{let O=a.sizePt,C=Z(a),N=Math.cos(S.angle*Math.PI/180),R=Math.sin(S.angle*Math.PI/180);for(let[_,I]of S.texts.entries()){if(!I)continue;let j=K(I,a)*1.3+O*2;if(S.angle!==0){let H=j/2,W=w(_),U=b.b+wa+C/2*N,$=W-H*N,X=U+H*R;n.labels.push({paragraphs:[[{text:I,style:a}]],align:"r",x:$-H,y:X-C/2,width:j,height:C,rotation:-S.angle});continue}let V=S.rows===2&&_%2===0?1:0,B=b.b+lr+(V+.5)*C;n.labels.push({paragraphs:[[{text:I,style:a}]],align:"ctr",x:w(_)-j/2,y:B-C/2,width:j,height:C,rotation:0});}};return {plot:b,scale:x,slot:E,categoryAt:w,valueAt:D,paintGrid(){if(!l)return;let O=l.minorUnit??x.major/5;k(l.minorGridlines,"gridlineMinor",O),k(l.majorGridlines,"gridlineMajor",x.major);},paintAxes(){let{scene:O,labels:C}=n;if(o&&!o.hidden&&T&&O.line([{x:b.l,y:b.b},{x:b.r,y:b.b}],T),l&&!l.hidden&&T&&O.line([{x:b.l,y:b.b},{x:b.l,y:b.t}],r.line("valueAxis",l.spPr)??T),c&&L(),M){let N=s.sizePt,R=Z(s);for(let _ of x.ticks){let I=f(_,x),j=K(I,s)*1.3+N*2,V={paragraphs:[[{text:I,style:s}]],align:"r",x:b.l-Ca-j,y:D(_)-R/2,width:j,height:R,rotation:0};C.push(V);}}}}}var ef=.08,tf=1.1;function va(e){return e===null||e==="r"}function Aa(e,t,n,r,o,l){let a=Z(o),s=[],i=(c,u)=>{let f=ee(c,l),d=Math.min(n(c)-a/2,r+tf-a);s.push({paragraphs:[[{text:f,style:o}]],align:"l",x:u+ef,y:d,width:K(f,o)*1.3+o.sizePt*2,height:a,rotation:0});};for(let c of e.whiskers)i(c,t.capRight);for(let c of e.box)i(c,t.boxRight);for(let c of e.points)i(c,t.center+t.pointHalf);return e.mean!==null&&i(e.mean,t.center+t.meanHalf),s}var rf=1/3,of=5,lf=.98,Ea=.1,af=.3,sf=1.5,ka=6,Ta=3.12,cf=.8;function ao(e,t,n){let r=e.length;if(r===0)return Number.NaN;let o=n==="inclusive"?(r-1)*t+1:(r+1)*t,l=Math.min(r,Math.max(1,o)),a=Math.floor(l),s=e[a-1];return a>=r?s:s+(l-a)*(e[a]-s)}function uf(e,t){let n=0;for(let p of e)Number.isFinite(p)&&(n+=1);if(n===0)return null;let r=new Float64Array(n),o=0,l=0;for(let p of e)Number.isFinite(p)&&(r[o++]=p,l+=p);r.sort();let a=ao(r,.25,t),s=ao(r,.75,t),i=sf*(s-a),c=a-i,u=s+i,f=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY,m=[];for(let p of r){if(p<c||p>u){m.push(p);continue}f=Math.min(f,p),d=Math.max(d,p);}let h=[];for(let p of r)p>f&&p<d&&h.push(p);let y=l/n;return {count:n,firstQuartile:a,median:ao(r,.5,t),thirdQuartile:s,mean:Number.isFinite(y)?y:a,whiskerLow:f,whiskerHigh:d,outliers:m,inner:h}}function df(e){let t=new Map,n=[],r=[];for(let o of e){let l=[];for(let[a,s]of o.values.entries()){if(s===null||!Number.isFinite(s))continue;let i=o.categories?.[a]??"",c=t.get(i);c===void 0&&(c=n.length,t.set(i,c),n.push(i)),(l[c]??=[]).push(s);}r.push(l);}return {categories:n,values:r}}function ff(e){let t=Q(e.layoutPr,"visibility"),n=Q(e.layoutPr,"statistics");return {method:(n?schemaAttributeValue(n.attributes,"quartileMethod"):void 0)==="inclusive"?"inclusive":"exclusive",meanLine:ge(t,"meanLine",false),meanMarker:ge(t,"meanMarker",true),inner:ge(t,"nonoutliers",false),outliers:ge(t,"outliers",true)}}function mf(e,t){let n=r=>Math.round(Number.parseInt(e.hex.slice(r,r+2),16)*t).toString(16).padStart(2,"0");return {hex:`${n(0)}${n(2)}${n(4)}`.toUpperCase(),alpha:e.alpha}}function La(e,t){let{look:n}=t,r=n.dataColor(e.formatIndex,1),o=/^[0-9A-Fa-f]{6}$/.test(r.hex)?mf(r,cf):r,l=n.line("dataPoint",null,o)??{...o,widthPt:.75,cap:"butt",dash:null},a=J(e.spPr,n.resolveSchemeColor).line;return {fill:n.fill("dataPoint",e.spPr,r),line:te(a,l)}}function hf(e,t){let n=[];for(let r of e){let{fill:o,line:l}=La(r,t);n.push({text:r.name??`Series${r.index+1}`,fill:o,line:l});}return n}function pf(e,t,n){if(e.length===0)return false;let r=[],o=null;for(let E of e){let A=je(E);if(!A)return false;o??=A.formatCode,r.push({categories:Qe(E),values:A.values});}let l=df(r);if(l.categories.length===0)return false;let a=e.map((E,A)=>{let D=ff(E),w=l.values[A];return {series:E,settings:D,boxes:l.categories.map((T,k)=>w[k]?uf(w[k],D.method):null)}}),s=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,c=E=>{s=Math.min(s,E),i=Math.max(i,E);};for(let{settings:E,boxes:A}of a)for(let D of A)if(D&&(c(D.whiskerLow),c(D.whiskerHigh),(E.meanLine||E.meanMarker)&&c(D.mean),E.outliers))for(let w of D.outliers)c(w);let u=n.model.axes.find(E=>E.kind==="category")??null,f=n.model.axes.find(E=>E.kind==="value")??null,d=jt({categories:l.categories,dataMin:s,dataMax:i,formatCode:f?.formatCode??o,categoryAxis:u,valueAxis:f},t,n);if(!d)return true;d.paintGrid();let{scene:m}=n,h=u?.gapWidth??rf,y=Math.min(of,Math.max(0,h)),p=d.slot/(1+y),v=a.length,P=v===1?p:lf*p/(v+Ea*(v-1)),x=P*(1+Ea),g=E=>Math.min(d.scale.max,Math.max(d.scale.min,E)),M=E=>E>=d.scale.min&&E<=d.scale.max,b=E=>d.valueAt(g(E)),S=d.valueAt(d.scale.min);for(let[E,{series:A,settings:D,boxes:w}]of a.entries()){let{fill:T,line:k}=La(A,n),L=[],O=A.dataLabels,C=O&&O.visibility.value&&va(O.position)?n.look.text("dataLabel",O.txPr):null;for(let[N,R]of w.entries()){if(!R)continue;let _=d.categoryAt(N)-p/2+E*x,I=_+P/2,j=af*P/2,V=[];for(let[U,$]of [[R.whiskerLow,R.firstQuartile],[R.whiskerHigh,R.thirdQuartile]])V.push([{x:I-j,y:b(U)},{x:I+j,y:b(U)}]),U!==$&&V.push([{x:I,y:b(U)},{x:I,y:b($)}]);m.path(V,false,null,k);let B=b(R.thirdQuartile),H=b(R.firstQuartile);m.rect(_,B,P,H-B,T,k),m.line([{x:_,y:b(R.median)},{x:_+P,y:b(R.median)}],k);let W=[...D.inner?R.inner:[],...D.outliers?R.outliers:[]];for(let U of W)M(U)&&m.path(qe("diamond",I,b(U),Ta),true,T,k);if(D.meanMarker&&M(R.mean)&&m.path(Ye("x",I,b(R.mean),ka),false,null,k),L.push({x:I,y:b(R.mean)}),C){let U={box:[R.firstQuartile,R.median,R.thirdQuartile].filter(M),whiskers:[R.whiskerLow,R.whiskerHigh].filter(M),points:W.filter(M),mean:D.meanMarker&&M(R.mean)?R.mean:null},$={boxRight:_+P,capRight:I+j,center:I,pointHalf:Ta/2,meanHalf:ka/2},X=A.dataLabels.formatCode??o;for(let ue of Aa(U,$,b,S,C,X))n.labels.push(ue);}}D.meanLine&&L.length>1&&m.line(L,k);}return d.paintAxes(),true}var Na=Object.freeze({layoutIds:Object.freeze(["boxWhisker"]),roomAbovePlot:true,legendEntries:hf,paint:pf});var mr=CHART_STYLE_NAMESPACE_URI,De=DRAWINGML_MAIN_NAMESPACE_URI,gf=64,bf=64,Cf=16,Bt='<a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr>',sr='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln>';function Ae(e,t,n=""){return `<cs:${e}><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor">${t}</cs:fontRef>${n}</cs:${e}>`}var Mf=`<cs:chartStyle xmlns:cs="${mr}" xmlns:a="${De}">`+Ae("axisTitle",Bt,'<cs:defRPr sz="900"/>')+Ae("categoryAxis",Bt,`<cs:spPr>${sr}</cs:spPr><cs:defRPr sz="900"/>`)+Ae("chartArea",'<a:schemeClr val="tx1"/>',`<cs:spPr><a:solidFill><a:schemeClr val="bg1"/></a:solidFill>${sr}</cs:spPr><cs:defRPr sz="1000"/>`)+Ae("dataLabel",Bt,'<cs:defRPr sz="900"/>')+'<cs:dataPoint><cs:lnRef idx="0"/><cs:fillRef idx="0"><cs:styleClr val="auto"/></cs:fillRef><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPointLine><cs:lnRef idx="0"><cs:styleClr val="auto"/></cs:lnRef><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="28575" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine>'+Ae("gridlineMajor",'<a:schemeClr val="tx1"/>',`<cs:spPr>${sr}</cs:spPr>`)+Ae("gridlineMinor",'<a:schemeClr val="tx1"/>',`<cs:spPr>${sr}</cs:spPr>`)+Ae("leaderLine",'<a:schemeClr val="tx1"/>','<cs:spPr><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="35000"/><a:lumOff val="65000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr>')+Ae("legend",Bt,'<cs:defRPr sz="900"/>')+Ae("plotArea",'<a:schemeClr val="tx1"/>')+Ae("seriesLine",'<a:schemeClr val="tx1"/>','<cs:spPr><a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="D9D9D9"/></a:solidFill><a:round/></a:ln></cs:spPr>')+Ae("title",Bt,'<cs:defRPr sz="1400"/>')+Ae("valueAxis",Bt,'<cs:defRPr sz="900"/>')+"</cs:chartStyle>",Sf=`<cs:colorStyle xmlns:cs="${mr}" xmlns:a="${De}" meth="cycle">`+[1,2,3,4,5,6].map(e=>`<a:schemeClr val="accent${e}"/>`).join("")+'<cs:variation/><cs:variation><a:lumMod val="60000"/></cs:variation><cs:variation><a:lumMod val="80000"/><a:lumOff val="20000"/></cs:variation><cs:variation><a:lumMod val="80000"/></cs:variation><cs:variation><a:lumMod val="60000"/><a:lumOff val="40000"/></cs:variation><cs:variation><a:lumMod val="50000"/></cs:variation><cs:variation><a:lumMod val="70000"/><a:lumOff val="30000"/></cs:variation><cs:variation><a:lumMod val="70000"/></cs:variation><cs:variation><a:lumMod val="50000"/><a:lumOff val="50000"/></cs:variation></cs:colorStyle>',ir=null;function Pf(){if(ir)return ir;let e=(t,n)=>{let r=readOoxmlPart(t,{name:n,contentType:"application/xml"});return r.ok?r.part.root:null};return ir={style:e(Mf,"/chartex-default-style"),colors:e(Sf,"/chartex-default-colors")},ir}function Ze(e,t){return e?findDirectChild(e.children,{namespaceUri:mr,localName:t}):null}var cr=new Map;function Da(e){if(cr.has(e))return cr.get(e);let t=readOoxmlPart(e,{name:"/chartex-color",contentType:"application/xml"}),n=t.ok?t.part.root:null;return cr.size<4096&&cr.set(e,n),n}function Oa(e,t){let n="";for(let l of t.slice(0,Cf)){let a=schemaAttributeValue(l.attributes,"val");l.namespaceUri!==De||!/^[a-zA-Z]{1,16}$/.test(l.localName)||a===void 0||!/^-?\d{1,9}$/.test(a)||(n+=`<a:${l.localName} val="${a}"/>`);}if(!n)return e;let r=Da(`<a:srgbClr xmlns:a="${De}" val="${e.hex}">${n}</a:srgbClr>`),o=r?resolveColorNode(r):null;return o?{hex:o.hex,alpha:o.alpha*e.alpha}:null}function io(e){let t=e?findDirectChild(e.children,{namespaceUri:De,localName:"p"}):null;return t?findDirectChild(t.children,{namespaceUri:De,localName:"endParaRPr"}):null}function hr(e){let t=io(e);return t?findDirectChild(t.children,{namespaceUri:De,localName:"solidFill"})!==null:false}var fr=class{constructor(t,n,r,o){this.chartTxPr=n;this.resolveSchemeColor=r;let l=Pf();this.style=t.style,this.fallbackStyle=l.style;let a=t.colors??l.colors,s=[],i=[];for(let c of a?.children??[])isElement(c)&&(c.namespaceUri===De&&s.length<gf&&s.push(c),c.namespaceUri===mr&&c.localName==="variation"&&i.length<bf&&i.push(c.children.filter(isElement)));if(s.length===0)for(let c of l.colors?.children??[])isElement(c)&&c.namespaceUri===De&&s.push(c);this.palette=s,this.variations=i.length>0?i:[[]],this.method=(a?schemaAttributeValue(a.attributes,"meth"):void 0)??"cycle",this.base=o?{...sn,themeFaces:o}:sn;}chartTxPr;resolveSchemeColor;style;fallbackStyle;palette;variations;method;base;entry(t){return Ze(this.style,t)??Ze(this.fallbackStyle,t)}resolverWith(t){if(!t)return this.resolveSchemeColor;let n=this.resolveSchemeColor;return r=>r==="phClr"?t.hex:n?.(r)??null}dataColor(t,n=1){let r={hex:"4472C4",alpha:1},o=this.palette;if(o.length===0)return r;if(this.method==="withinLinear"||this.method==="acrossLinear"){let s=resolveColorNode(o[0],this.resolveSchemeColor)??r,i=n>1?Math.min(1,Math.max(0,t/(n-1))):.5,c=Math.round((n>1?.5+i:1)*1e5),u=c<=1e5?"shade":"tint",f=c<=1e5?c:2e5-c,d=Da(`<a:${u} xmlns:a="${De}" val="${f}"/>`);return (d?Oa(s,[d]):s)??s}let l=resolveColorNode(o[t%o.length],this.resolveSchemeColor)??r,a=this.variations[Math.floor(t/o.length)%this.variations.length];return Oa(l,a)??l}text(t,...n){let r=this.base;for(let l of t==="chartArea"?["chartArea"]:["chartArea",t]){let a=this.entry(l),s=Ze(a,"fontRef");if(s){let i=schemaAttributeValue(s.attributes,"idx"),c=s.children.find(isElement),u=c?resolveColorNode(c,this.resolveSchemeColor):null;r={...r,latin:i==="major"?"+mj-lt":"+mn-lt",eastAsian:i==="major"?"+mj-ea":"+mn-ea",complex:i==="major"?"+mj-cs":"+mn-cs",...u?{colorHex:u.hex}:{}};}r=we(r,Ze(a,"defRPr"),this.resolveSchemeColor);}let o=r.sizePt;r={...we(r,io(this.chartTxPr),this.resolveSchemeColor),sizePt:o};for(let l of n)r=we(r,io(l),this.resolveSchemeColor);return r}entryShape(t,n){let r=this.entry(t),o=this.resolverWith(n),l=J(Ze(r,"spPr"),o),a=Ze(r,"fillRef"),s=Ze(r,"lnRef"),i=c=>c!==null&&Ze(c,"styleClr")!==null;return {fill:l.fill===void 0&&i(a)?n:l.fill??null,line:l.line===void 0&&i(s)&&n?{...n,widthPt:.75,cap:"butt",dash:null}:l.line??null}}fill(t,n,r=null){let o=J(n,this.resolverWith(r));return o.fill===void 0?this.entryShape(t,r).fill:o.fill}point(t,n,r,o=null){let l=J(r,this.resolverWith(o));return {fill:l.fill===void 0?this.fill(t,n,o):l.fill,line:te(l.line,this.line(t,n,o))}}line(t,n,r=null){let o=J(n,this.resolverWith(r));return te(o.line,this.entryShape(t,r).line)}};var Ia=.34,wf=5,vf=6.6,Af=6.18,Ef=1.0103,kf=1.22,Tf=.987,Lf=.477,Nf=1/3,Of=.98,Rf=1.22,Df=.38,If=.62,_f=.38,zf=.24,Ff=-0.48;function jf(e){let t=0;for(let r of e)r!==null&&Number.isFinite(r)&&r>t&&(t=r);if(!(t>0))return [];let n=[];for(let[r,o]of e.entries())o===null||!Number.isFinite(o)||!(o>0)||n.push({index:r,value:o,share:o/t});return n}function Bf(e){let t=e?.gapWidth??Ia;return Number.isFinite(t)?Math.min(wf,Math.max(0,t)):Ia}function Vf(e,t,n){return e>0?Math.min(Math.max(1,n),Math.max(1,Math.ceil(t/e-1e-9))):Math.max(1,n)}function Uf(e,t){let n=t.look.dataColor(e.formatIndex);return {fill:t.look.fill("dataPoint",e.spPr,n),line:t.look.line("dataPoint",e.spPr,n)}}function Hf(e,t){let n=[];for(let r of e){let{fill:o,line:l}=Uf(r,t);n.push({text:r.name??`Series${r.index+1}`,fill:o,line:l});}return n}function _a(e,t,n,r,o){let l=Z(t),a=K(e,t)*1.3+t.sizePt*2,s=n==="ctr"?r-a/2:n==="r"?r-a:r;return {paragraphs:[[{text:e,style:t}]],align:n,x:s,y:o-l/2,width:a,height:l,rotation:0}}function $f(e,t,n){if(e.length!==1)return false;let r=e[0],o=je(r);if(!o||o.values.length===0)return false;let l=o.values.length,a=Qe(r),s=o.values.map((L,O)=>a?.[O]??String(O+1)),i=jf(o.values),{look:c,scene:u,labels:f}=n,d=n.model.axes.find(L=>L.kind==="category")??null,m=d===null||!d.hidden,h=d===null?true:!d.hidden&&d.tickLabels,y=c.text("categoryAxis",d?.txPr??null),p=t.t+(m?Of:Df),v=t.b-(m?Rf:If),P=h?Vf((v-p)/l,kf*y.sizePt,l):1;if(P>1){(l-1)%P!==0&&(v-=Tf*y.sizePt);let L=Math.max(0,Lf*y.sizePt-(v-p)/l/2);p+=L,v+=L;}let x=t.l+(m?0:_f),g=t.r-(m?zf:Ff),M=Math.max(0,(g-t.l)*Nf);if(h){let L=0;for(let O of s)L=Math.max(L,K(O,y));x=t.l+Math.min(M,L*Ef)+Af;}if(!(g-x>1)||!(v-p>1))return true;let b={l:x,t:p,r:g,b:v},S=(b.b-b.t)/l,E=S/(1+Bf(d)),A=(b.l+b.r)/2,D=b.r-b.l,w=L=>b.t+S*(L+.5),T=c.dataColor(r.formatIndex);for(let L of i){let{fill:O,line:C}=c.point("dataPoint",r.spPr,zt(r,L.index),T),N=D*L.share;u.rect(A-N/2,w(L.index)-E/2,N,E,O,C);}let k=r.dataLabels;if(k){let L=c.text("dataLabel",k.txPr),O=hr(k.txPr)?null:Xe("lt1","",c.resolveSchemeColor),C=O?{...L,colorHex:O.hex}:L,N=Z(C),R=k.formatCode??o.formatCode;for(let _ of i){if(N>E)break;let I=Ft(k,_.index);if(!I)continue;let j=[];if(I.seriesName&&r.name&&j.push(r.name),I.categoryName&&j.push(s[_.index]),I.value&&j.push(ee(_.value,R)),j.length===0)continue;let V=j.join(k.separator??", ");K(V,C)>D*_.share||f.push(_a(V,C,"ctr",A,w(_.index)));}}if(m){let L=c.line("categoryAxis",d?.spPr??null);L&&u.line([{x:b.l,y:b.t},{x:b.l,y:b.b}],L);}if(h)for(let L=0;L<l;L+=P){let O=lo(s[L],y,M);O&&f.push(_a(O,y,"r",b.l-vf,w(L)));}return true}var za=Object.freeze({layoutIds:Object.freeze(["funnel"]),roomAbovePlot:false,legendEntries:Hf,paint:$f});var ja=1e3,Ba=5,Gf={closed:"r",size:null,count:null,underflow:null,overflow:null};function co(e){let t=Q(e,"binning");if(!t)return null;let n=Ke(Q(t,"binSize"),"val"),r=Q(t,"binCount"),o=r?schemaAttributeValue(r.attributes,"val"):void 0,l=null;return o!==void 0&&/^\d{1,12}$/.test(o.trim())&&(l=Number(o.trim()),l<1&&(l=null)),{closed:schemaAttributeValue(t.attributes,"intervalClosed")==="l"?"l":"r",size:n!==null&&n>0?n:null,count:n!==null&&n>0?null:l,underflow:Ke(t,"underflow"),overflow:Ke(t,"overflow")}}function Va(e){return Q(e.layoutPr,"aggregation")!==null}function Ua(e){return Number(e.toPrecision(15))}function Wf(e){if(!(e>0)||!Number.isFinite(e))return 0;let t=Math.max(10**(Math.floor(Math.log10(e))-1),.01);return Number((Math.round(e/t)*t).toPrecision(12))}function Xf(e){let t=e.length;if(t<2)return Ba;let n=0;for(let s of e)n+=s;let r=n/t,o=0;for(let s of e)o+=(s-r)**2;let l=Math.sqrt(o/(t-1)),a=Wf(3.5*l/Math.cbrt(t));return a>0?a:Ba}function Ha(e,t,n){let r=t??Gf,o=[];for(let g of e)g!==null&&Number.isFinite(g)&&o.push(g);if(o.length===0)return [];let l=1/0,a=-1/0;for(let g of o)l=Math.min(l,g),a=Math.max(a,g);let s=r.underflow!==null&&r.underflow>l&&r.underflow<a?r.underflow:null,i=r.overflow!==null&&r.overflow>l&&r.overflow<a&&(s===null||r.overflow>s)?r.overflow:null,c=s??l,u=i??a;if(!Number.isFinite(u-c))return null;let f,d;if(r.count!==null){if(r.count>ja)return null;f=Math.max(0,r.count-(s===null?0:1)-(i===null?0:1)),d=f>0?(u-c)/f:0;}else {d=r.size??Xf(o);let g=(u-c)/d;if(!(g<=ja))return null;f=Math.max(1,Math.ceil(g-1e-9));}if(!Number.isFinite(d)||!Number.isFinite(c+f*d))return null;let m=[];for(let g=0;g<=f;g+=1)m.push(Ua(c+g*d));(r.count!==null||i!==null)&&(m[f]=u);let h=new Array(f).fill(0),y=0,p=0,v=r.closed==="r";for(let g of o){if(s!==null&&(v?g<=s:g<s)){y+=1;continue}let M=m[f];if(f===0||i!==null&&(v?g>M:g>=M)){p+=1;continue}h[qf(m,g,v)]+=1;}let P=g=>ee(g,n),x=[];s!==null&&x.push({label:`${v?"\u2264":"<"} ${P(s)}`,value:y});for(let g=0;g<f;g+=1){let M=P(m[g]),b=P(m[g+1]),S=v?g>0||s!==null:false,E=v||g===f-1&&i===null;x.push({label:`${S?"(":"["}${M}, ${b}${E?"]":")"}`,value:h[g]});}return (i!==null||f===0&&p>0)&&x.push({label:`${v?">":"\u2265"} ${P(i??c)}`,value:p}),x}function qf(e,t,n){let r=e.length-1,o=0,l=r-1;for(;o<l;){let a=o+l>>1,s=e[a+1];(n?t<=s:t<s)?l=a:o=a+1;}return o}function $a(e,t){let n=new Map;for(let[o,l]of t.entries()){if(l===null||!Number.isFinite(l))continue;let a=e[o]??"";n.set(a,(n.get(a)??0)+l);}let r=[];for(let[o,l]of n)l>=0&&r.push({label:o,value:Ua(l)});return r}function Ga(e){return e.map((t,n)=>({column:t,index:n})).sort((t,n)=>n.column.value-t.column.value||t.index-n.index).map(t=>t.column)}function Wa(e){let t=0;for(let r of e)t+=r.value;let n=0;return e.map(r=>(n+=r.value,t>0?n/t:0))}var Yf=1/3,Kf=5,Xa=6.64,Qf=6.43,Zf=5.47,Jf=.96,qa="0%";function Ya(e){let t=e.filter(l=>l.layoutId==="clusteredColumn"),n=e.filter(l=>l.layoutId==="paretoLine");if(t.length!==1||n.length>1)return null;let r=t[0],o=n[0]??null;return o&&o.ownerIndex!==null&&o.ownerIndex!==r.index?null:{columns:r,line:o}}function Ka(e){return Va(e)||co(e.layoutPr)===null&&or(e,"cat")!==null}function em(e,t){let n=je(e);if(!n)return null;let r=co(e.layoutPr),l=Ka(e)?$a(Qe(e)??[],n.values):Ha(n.values,r,n.formatCode);return l?t?Ga(l):l:null}function Qa(e,t){return t.look.dataColor(e.formatIndex)}function tm(e,t){let n=Ya(e);if(!n)return [];let r=Qa(n.columns,t);return [{text:n.columns.name??"Series1",fill:t.look.fill("dataPoint",n.columns.spPr,r),line:t.look.line("dataPoint",n.columns.spPr,r)}]}function nm(e,t){let n=t.filter(r=>r.kind==="value");return n.find(r=>e.axisIds.includes(r.id))??(n.length>1?n[1]:null)}function Za(e,t,n){let r=Z(n),o=Math.max(1,Math.floor(t/r));return We({dataMin:0,dataMax:1,lengthPt:o*r,minIntervalPt:r,fixedMin:e?.min??null,fixedMax:e?.max??null,fixedMajor:e?.majorUnit??null})}function Ja(e,t,n){return ee(Math.abs(e)<t.major*1e-9?0:e,n)}function rm(e,t,n){let r=Ya(e);if(!r)return false;let{columns:o,line:l}=r,a=em(o,l!==null);if(!a||a.length===0)return false;let s=je(o),i=Ka(o)?s.formatCode:null,{look:c,scene:u,labels:f,model:d}=n,m=d.axes.find(k=>k.kind==="category")??null,h=l?nm(l,d.axes):null,y=d.axes.find(k=>k.kind==="value"&&k!==h)??null,p=c.text("valueAxis",h?.txPr??null),v=h?.formatCode??qa,P=h!==null&&!h.hidden&&h.tickLabels,x={...t};if(l&&(x.l+=Qf,x.t+=Jf,P)){let k=Za(h,t.b-t.t,p),L=0;for(let O of k.ticks)L=Math.max(L,K(Ja(O,k,v),p));x.r-=L+Xa+Zf;}let g=0;for(let k of a)g=Math.max(g,k.value);let M=jt({categories:a.map(k=>k.label),dataMin:0,dataMax:g,formatCode:y?.formatCode??i,categoryAxis:m,valueAxis:y,frameBox:t},x,n);if(!M)return true;M.paintGrid();let b=m?.gapWidth??Yf,S=Math.min(Kf,Math.max(0,b)),E=M.slot/(1+S),A=k=>Math.min(M.scale.max,Math.max(M.scale.min,k)),D=Qa(o,n),w=M.valueAt(A(0));for(let[k,L]of a.entries()){let{fill:O,line:C}=c.point("dataPoint",o.spPr,zt(o,k),D),N=M.valueAt(A(L.value));Math.abs(w-N)<1e-6||u.rect(M.categoryAt(k)-E/2,Math.min(N,w),E,Math.abs(w-N),O,C);}let T=o.dataLabels;if(T){let k=c.text("dataLabel",T.txPr),L=Z(k),O=T.formatCode??i;for(let[C,N]of a.entries()){let R=Ft(T,C);if(!R)continue;let _=[];if(R.seriesName&&o.name&&_.push(o.name),R.categoryName&&_.push(N.label),R.value&&_.push(ee(N.value,O)),_.length===0)continue;let I=_.join(T.separator??", "),j=M.valueAt(A(N.value)),V;switch(T.position){case "ctr":V=(j+w)/2;break;case "inEnd":V=j+L/2;break;case "inBase":V=w-L/2;break;default:V=j-L/2;}V=Math.min(M.plot.b-L/2,Math.max(M.plot.t+L/2,V));let B=K(I,k)*1.3+k.sizePt*2;f.push({paragraphs:[[{text:I,style:k}]],align:"ctr",x:M.categoryAt(C)-B/2,y:V-L/2,width:B,height:L,rotation:0});}}return l&&om(l,h,a,M,n,P,p),M.paintAxes(),true}function om(e,t,n,r,o,l,a){let{look:s,scene:i,labels:c}=o,{plot:u}=r,f=Za(t,u.b-u.t,a),d=f.max-f.min||1,m=P=>{let x=Math.min(f.max,Math.max(f.min,P));return u.b-(x-f.min)/d*(u.b-u.t)},h=Wa(n),y=s.line("dataPointLine",e.spPr,s.dataColor(e.formatIndex));if(y&&h.length>0&&i.line(h.map((P,x)=>({x:r.categoryAt(x),y:m(P)})),y,"round"),t&&!t.hidden){let P=s.line("valueAxis",t.spPr)??s.line("categoryAxis",null);P&&i.line([{x:u.r,y:u.b},{x:u.r,y:u.t}],P);}if(!l)return;let p=t?.formatCode??qa,v=Z(a);for(let P of f.ticks){let x=Ja(P,f,p);c.push({paragraphs:[[{text:x,style:a}]],align:"l",x:u.r+Xa,y:m(P)-v/2,width:K(x,a)*1.3+a.sizePt*2,height:v,rotation:0});}}var es=Object.freeze({layoutIds:Object.freeze(["clusteredColumn","paretoLine"]),roomAbovePlot:true,legendEntries:tm,paint:rm});var lm=.5,am=5;function sm(e){let t=new Set,n=Fe(Q(e.layoutPr,"subtotals"),"idx",de.pointsPerLevel);for(let r of n??[]){let o=r.attributes.find(l=>l.localName==="val")?.value;o!==void 0&&/^\d{1,9}$/.test(o)&&t.add(Number(o));}return t}function im(e,t){let n=[],r=0;for(let[o,l]of e.entries()){if(l===null){n.push(null);continue}if(t.has(o)){n.push({index:o,kind:"total",value:l,from:0,to:l}),r=l;continue}n.push({index:o,kind:l<0?"decrease":"increase",value:l,from:r,to:r+l}),r+=l;}return n}var ts={increase:0,decrease:1,total:2};function cm(e,t){let n=[],r=e[0]?.spPr??null;for(let[o,l]of [["Increase","increase"],["Decrease","decrease"],["Total","total"]]){let a=t.look.dataColor(ts[l],3);n.push({text:o,fill:t.look.fill("dataPoint",r,a),line:t.look.line("dataPoint",r,a)});}return n}function um(e,t,n){if(e.length!==1)return false;let r=e[0],o=je(r);if(!o||o.values.length===0)return false;let l=im(o.values,sm(r)),a=Qe(r),s=l.map((S,E)=>a?.[E]??String(E+1)),i=0,c=0;for(let S of l)S&&(i=Math.min(i,S.from,S.to),c=Math.max(c,S.from,S.to));let u=n.model.axes.find(S=>S.kind==="category")??null,f=n.model.axes.find(S=>S.kind==="value")??null,d=jt({categories:s,dataMin:i,dataMax:c,formatCode:f?.formatCode??o.formatCode,categoryAxis:u,valueAxis:f},t,n);if(!d)return true;d.paintGrid();let{look:m,scene:h,labels:y}=n,p=u?.gapWidth??lm,v=Math.min(am,Math.max(0,p)),P=d.slot/(1+v),x=S=>Math.min(d.scale.max,Math.max(d.scale.min,S));for(let S of l){if(!S)continue;let E=m.dataColor(ts[S.kind],3),{fill:A,line:D}=m.point("dataPoint",r.spPr,zt(r,S.index),E),w=d.categoryAt(S.index),T=d.valueAt(x(Math.max(S.from,S.to))),k=d.valueAt(x(Math.min(S.from,S.to)));h.rect(w-P/2,T,P,k-T,A,D);}let M=ge(Q(r.layoutPr,"visibility"),"connectorLines",true)?m.line("seriesLine",r.spPr):null;if(M){let S=[],E=null;for(let A of l)if(A){if(E){let D=d.valueAt(x(E.to));S.push([{x:d.categoryAt(E.index)+P/2,y:D},{x:d.categoryAt(A.index)-P/2,y:D}]);}E=A;}S.length>0&&h.path(S,false,null,M);}let b=r.dataLabels;if(b){let S=m.text("dataLabel",b.txPr),E=Z(S),A=b.formatCode??o.formatCode;for(let D of l){if(!D)continue;let w=Ft(b,D.index);if(!w)continue;let T=[];if(w.seriesName&&r.name&&T.push(r.name),w.categoryName&&T.push(s[D.index]),w.value&&T.push(ee(D.value,A)),T.length===0)continue;let k=T.join(b.separator??", "),L=D.to>=D.from,O=d.valueAt(x(D.to)),C=d.valueAt(x(D.from)),N;switch(b.position){case "ctr":N=(O+C)/2;break;case "inEnd":N=L?O+E/2:O-E/2;break;case "inBase":N=L?C-E/2:C+E/2;break;default:N=L?O-E/2:O+E/2;}N=Math.min(d.plot.b-E/2,Math.max(d.plot.t+E/2,N));let _=N>Math.min(O,C)&&N<Math.max(O,C)&&!hr(b.txPr)?Xe("lt1","",m.resolveSchemeColor):null,I=K(k,S)*1.3+S.sizePt*2;y.push({paragraphs:[[{text:k,style:_?{...S,colorHex:_.hex}:S}]],align:"ctr",x:d.categoryAt(D.index)-I/2,y:N-E/2,width:I,height:E,rotation:0});}}return d.paintAxes(),true}var ns=Object.freeze({layoutIds:Object.freeze(["waterfall"]),roomAbovePlot:true,legendEntries:cm,paint:um});var dm=Object.freeze([ns,za,Na,es]),fm=(()=>{let e=new Map;for(let t of dm)for(let n of t.layoutIds)e.has(n)||e.set(n,t);return e})();function rs(e){return fm.get(e)??null}var Vt=DRAWINGML_MAIN_NAMESPACE_URI,ut=5.5,hm=6.6,yr=3.84,ls=7,pm=24.98,ym=10.51,mn=9,uo=5.8,as=4.92,ss=10.8,xm=7.9,gm=16,bm=128,Cm=256,Mm="Chart Title";function Sm(e,t,n){let r=Q(e,"tx"),o=Q(r,"rich"),l=n.look.resolveSchemeColor;if(o){let s=[],i=0;for(let c of o.children){if(!isElement(c)||c.namespaceUri!==Vt||c.localName!=="p")continue;if(s.length>=gm)break;let u=findDirectChild(c.children,{namespaceUri:Vt,localName:"pPr"}),f=u?findDirectChild(u.children,{namespaceUri:Vt,localName:"defRPr"}):null,d=we(t,f,l),m=[];for(let h of c.children){if(!isElement(h)||h.namespaceUri!==Vt||++i>bm||h.localName!=="r"&&h.localName!=="fld")continue;let y=findDirectChild(h.children,{namespaceUri:Vt,localName:"rPr"}),p=findDirectChild(h.children,{namespaceUri:Vt,localName:"t"}),v="";for(let P of p?.children??[])P.kind==="textValue"&&(v+=P.value);m.push({text:v,style:we(d,y,l)});}s.push(m);}return s}let a=fn(Q(Q(r,"txData"),"v"));return r?a?[[{text:a,style:t}]]:[]:[[{text:Mm,style:t}]]}function Pm(e){return 6.24+.08*e}function wm(e,t,n,r,o,l){let a=e.legend,s=n.sizePt,i=Z(n),c=ss,u=[];if(a.position==="t"||a.position==="b"){let x=xm,g=o-2*ut-mn-uo,M=[[]],b=0;for(let w of t){let T=c+K(w.text,n);M[M.length-1].length>0&&b+x+T>g&&(M.push([]),b=0),b+=(M[M.length-1].length>0?x:0)+T,M[M.length-1].push({entry:w,width:T});}let S=2*s,E=Math.max(pm,i+ym),A=E+(M.length-1)*S,D=a.position==="t"?r.t:r.b-A;for(let[w,T]of M.entries()){let k=T.reduce((O,C,N)=>O+C.width+(N>0?x:0),0),L=o/2-(k+mn+uo)/2+mn;for(let O of T)u.push({entry:O.entry,x:L,y:D+E/2+w*S}),L+=O.width+x;}return a.overlay||(a.position==="t"?r.t=D+A+yr:r.b=D-yr),u}let f=2*s,d=0;for(let x of t)d=Math.max(d,K(x.text,n));let m=mn+c+d+uo,h=Math.max(1,Math.floor((l-2*ut-i)/f)+1),y=t.slice(0,h),p=i+(y.length-1)*f+2*ls,v=a.position==="l"?ut:o-ut-m,P=Math.max(r.t,(r.t+r.b)/2-p/2);for(let[x,g]of y.entries())u.push({entry:g,x:v+mn,y:P+ls+i/2+x*f});return a.overlay||(a.position==="l"?r.l=v+m+as:r.r=v-as),u}function vm(e,t,n){let r=t.sizePt,o=Pm(r),l=Z(t);for(let{entry:a,x:s,y:i}of e){a.lineKey&&a.line?n.scene.line([{x:s,y:i},{x:s+o,y:i}],a.line):n.scene.rect(s,i-o/2,o,o,a.fill,a.line);let c=K(a.text,t);n.labels.push({paragraphs:[[{text:a.text,style:t}]],align:"l",x:s+ss,y:i-l/2,width:c*1.3+r*2,height:l,rotation:0});}}function Am(e){let t=e[0],n=t?rs(t.layoutId):null;return n&&e.every(r=>n.layoutIds.includes(r.layoutId))?n:null}function is(e,t,n,r,o,l){let a=e.series.filter(m=>!m.hidden),s=Am(a);if(!s)return null;let i=new fr(t,e.txPr,o,l),c={model:e,look:i,scene:new Dt,labels:[],chartWidth:n,chartHeight:r};c.scene.rect(0,0,n,r,i.fill("chartArea",e.spPr),i.line("chartArea",e.spPr));let u={l:ut,t:ut,r:n-hm,b:r-ut};if(e.title){let m=i.text("title",Q(e.title.element,"txPr")),h=Sm(e.title.element,m,c);if(h.some(y=>y.some(p=>p.text.trim()!==""))){let y=wt(h),p=lt(h,m),v=Math.min(n,y*1.3+m.sizePt*2),P=e.title.position==="b",x=P?u.b-p:u.t;c.labels.push({paragraphs:h,align:"ctr",x:n/2-v/2,y:x,width:v,height:p,rotation:0}),e.title.overlay||(P?u.b=x-yr:u.t=x+p+yr);}}let f=[],d=null;if(e.legend){d=i.text("legend",e.legend.txPr);let m=s.legendEntries(a,c).slice(0,Cm);m.length>0&&(f=wm(e,m,d,u,n,r));}return s.roomAbovePlot&&(u.t+=5.41),!s.paint(a,u,c)||(d&&vm(f,d,c),!c.scene.ok)?null:{scene:c.scene,labels:c.labels}}var cs=12700,us=new WeakMap;function ds(e,t,n,r){if(!r.resolveChartexPart)return null;let o=findDirectChild(t.children,{namespaceUri:CHARTEX_NAMESPACE_URI,localName:"chart"}),l=o?r.resolveChartexPart(o):null;if(!l)return null;let a=`${tr(r.resolveSchemeColor)}|${l.themeFaces.major}|${l.themeFaces.minor}`,s=us.get(e);if(s&&s.cx===n.cx&&s.cy===n.cy&&s.part.chartSpace===l.chartSpace&&s.part.style===l.style&&s.part.colors===l.colors&&s.theme===a)return s.result;let i=ga(l.chartSpace),c=i?is(i,l,n.cx/cs,n.cy/cs,r.resolveSchemeColor,l.themeFaces):null,u=c?nr(c.scene,c.labels,e.id,l.partName,n):null;return us.set(e,{cx:n.cx,cy:n.cy,part:l,theme:a,result:u}),u}var fs=12700,ms=new WeakMap;function hs(e,t,n){if(t.cx<=0||t.cy<=0)return null;let r=findGraphicData(e),o=r?schemaAttributeValue(r.attributes,"uri"):void 0;if(r&&o===CHARTEX_GRAPHIC_DATA_URI)return ds(e,r,t,n);if(!r||!n.resolveChartPart||o!==CHART_GRAPHIC_DATA_URI)return null;let l=findDirectChild(r.children,{namespaceUri:CHART_NAMESPACE_URI,localName:"chart"}),a=l?n.resolveChartPart(l):null;if(!a)return null;let s=`${tr(n.resolveSchemeColor)}|${a.themeFaces.major}|${a.themeFaces.minor}`,i=ms.get(e);if(i&&i.cx===t.cx&&i.cy===t.cy&&i.chartSpace===a.chartSpace&&i.theme===s)return i.result;let c=Im(a,e.id,t,n);return ms.set(e,{cx:t.cx,cy:t.cy,chartSpace:a.chartSpace,theme:s,result:c}),c}function Im({chartSpace:e,partName:t,themeFaces:n},r,o,l){let a=sl(e);if(!a)return null;let s=ha(a,o.cx/fs,o.cy/fs,l.resolveSchemeColor,n);return s?nr(s.scene,s.labels,r,t,o):null}var gs=DIAGRAM_NAMESPACE_URI,ps=4096,po=512,Be=32;function G(e,t){return e?schemaAttributeValue(e.attributes,t):void 0}function be(e,t){if(!e)return null;for(let n of e.children)if(isElement(n)&&n.namespaceUri===gs&&n.localName===t)return n;return null}function*Ee(e,t){if(e)for(let n of e.children)!isElement(n)||n.namespaceUri!==gs||(t===void 0||n.localName===t)&&(yield n);}var Fm=new Set(["doc","node","asst","parTrans","sibTrans","pres"]);function jm(e){let t=e===void 0?0:Number(e);return Number.isFinite(t)?t:0}function fo(e,t,n,r){let o=e.get(t);o||e.set(t,o=[]),o.push({id:n,ord:r});}function mo(e){let t=new Map;for(let[n,r]of e)t.set(n,r.map((o,l)=>({...o,index:l})).sort((o,l)=>o.ord-l.ord||o.index-l.index).map(o=>o.id));return t}function bs(e){let t=new Map;for(let h of Ee(be(e,"ptLst"),"pt")){let y=G(h,"modelId");if(!y||t.has(y))continue;if(t.size>=ps)return null;let p=G(h,"type")??"node",v=Fm.has(p)?p:"node";t.set(y,{modelId:y,type:v,element:h,prSet:be(h,"prSet"),spPr:be(h,"spPr"),text:be(h,"t")});}let n=new Map,r=new Map,o=new Map,l=new Map,a=new Map,s=new Map,i=new Map,c=new Map,u=0;for(let h of Ee(be(e,"cxnLst"),"cxn")){if(++u>ps*2)return null;let y=G(h,"srcId"),p=G(h,"destId");if(!y||!p||!t.has(y)||!t.has(p)||y===p)continue;let v=G(h,"type")??"parOf",P=jm(G(h,"srcOrd"));if(v==="parOf"){if(l.has(p))continue;l.set(p,y),fo(n,y,p,P);let x=G(h,"sibTransId"),g=G(h,"parTransId");x&&t.has(x)&&(s.set(p,x),c.set(x,p)),g&&t.has(g)&&(i.set(p,g),c.has(g)||c.set(g,p));}else if(v==="presParOf"){if(a.has(p))continue;a.set(p,y),fo(r,y,p,P);}else v==="presOf"&&fo(o,p,y,P);}let f=null;for(let h of t.values())if(h.type==="doc"){f=h;break}if(!f)return null;let d=null;for(let h of t.values())if(!(h.type!=="pres"||a.has(h.modelId))&&G(h.prSet,"presAssocID")===f.modelId){d=h;break}if(!d)return null;let m={points:t,contentChildren:mo(n),contentParent:l,sibTransOf:s,parTransOf:i,transitionOwner:c,presChildren:mo(r),presParent:a,presOf:mo(o),root:f,presRoot:d};return !ys(m.contentChildren,f.modelId)||!ys(m.presChildren,d.modelId)?null:m}function ys(e,t){let n=new Set([t]),r=[{id:t,depth:0}];for(;r.length>0;){let{id:o,depth:l}=r.pop();if(l>Be)return false;for(let a of e.get(o)??[]){if(n.has(a))return false;n.add(a),r.push({id:a,depth:l+1});}}return true}function Bm(e,t,n){let r=e.points.get(t)?.type;switch(n){case "all":return true;case "doc":return r==="doc";case "node":return r==="node";case "norm":return r==="node";case "nonNorm":return r!=="node";case "asst":return r==="asst";case "nonAsst":return r!=="asst";case "parTrans":return r==="parTrans";case "sibTrans":return r==="sibTrans";case "pres":return r==="pres";default:return false}}function Ut(e,t){return e.contentChildren.get(t)??[]}function Vm(e,t,n,r){let o=l=>{r.length<po+1&&r.push(l);};switch(n){case "self":o(t);return;case "ch":for(let l of Ut(e,t))o(l);return;case "des":case "desOrSelf":{n==="desOrSelf"&&o(t);let l=[...Ut(e,t)].reverse();for(;l.length>0&&r.length<=po;){let a=l.pop();o(a);let s=Ut(e,a);for(let i=s.length-1;i>=0;i--)l.push(s[i]);}return}case "par":{let l=e.contentParent.get(t)??e.contentParent.get(xr(e,t));l&&o(l);return}case "ancst":case "ancstOrSelf":{n==="ancstOrSelf"&&o(t);let l=e.contentParent.get(t),a=0;for(;l&&a++<Be;)o(l),l=e.contentParent.get(l);return}case "followSib":case "precedSib":{let l=xr(e,t),a=e.contentParent.get(l);if(!a)return;let s=Ut(e,a),i=s.indexOf(l),c=[];s.forEach((f,d)=>{c.push(f);let m=d<s.length-1?e.sibTransOf.get(f):void 0;m&&c.push(m);});let u=c.indexOf(t===l?l:t);if(i<0||u<0)return;if(n==="followSib")for(let f=u+1;f<c.length;f++)o(c[f]);else for(let f=u-1;f>=0;f--)o(c[f]);return}case "root":o(e.root.modelId);return;default:return}}function xr(e,t){return e.transitionOwner.get(t)??t}function hn(e){return e?e.trim().split(/\s+/).slice(0,8):[]}function ho(e,t,n){let r=e[Math.min(t,e.length-1)];if(r===void 0)return n;let o=Number(r);return Number.isInteger(o)?o:n}function yo(e,t,n){let r=hn(G(n,"axis"));r.length===0&&r.push("none");let o=hn(G(n,"ptType")),l=hn(G(n,"st")),a=hn(G(n,"cnt")),s=hn(G(n,"step")),i=[t];for(let c=0;c<r.length;c++){let u=r[c];if(u==="none")return [];let f=[];for(let d of i){let m=[];Vm(e,d,u,m);let h=o[Math.min(c,o.length-1)]??"all",y=m.filter(g=>Bm(e,g,h)),p=Math.max(1,ho(l,c,1)),v=Math.max(0,ho(a,c,0)),P=ho(s,c,1)||1,x=0;if(P>0)for(let g=p-1;g<y.length&&!(v>0&&x>=v);g+=P)f.push(y[g]),x++;else for(let g=y.length-p;g>=0&&!(v>0&&x>=v);g+=P)f.push(y[g]),x++;if(f.length>po)return null}i=f;}return i}function Cs(e,t){let n=0,r=e.contentParent.get(xr(e,t)),o=0;for(;r&&o++<Be;)n++,r=e.contentParent.get(r);return n}function xo(e,t,n=0){if(n>Be)return 0;let r=0;for(let o of Ut(e,t))r=Math.max(r,1+xo(e,o,n+1));return r}function Ms(e,t){let n=xr(e,t),r=e.contentParent.get(n),o=e.points.get(t)?.type;if(!r)return {pos:1,count:1};let l=Ut(e,r).filter(s=>n===t?e.points.get(s)?.type===o:e.sibTransOf.has(s));return {pos:l.indexOf(n)+1,count:l.length}}var Hm=2048,$m=5e4,Ss={dir:"norm",hierBranch:"std",bulletEnabled:"0",chMax:"-1",chPref:"-1",orgChart:"0",animLvl:"none",animOne:"one",resizeHandles:"rel"};function Ps(e){return e==="true"?"1":e==="false"?"0":e}function yn(e,t,n){let r=t,o=0;for(;r&&o++<=Be;){let l=be(r.prSet,"presLayoutVars"),a=be(l,n);if(a){let i=G(a,"val");return Ps(i??Ss[n]??"")}if(n!=="dir"&&n!=="hierBranch"&&n!=="orgChart")break;let s=e.presParent.get(r.modelId);r=s?e.points.get(s):void 0;}return Ss[n]??""}function pn(e,t,n){let r=typeof t=="number"?t:Number(t),o=Number(n),l=Number.isFinite(r)&&Number.isFinite(o);switch(e??"equ"){case "equ":return l?r===o:String(t)===n;case "neq":return l?r!==o:String(t)!==n;case "gt":return l&&r>o;case "lt":return l&&r<o;case "gte":return l&&r>=o;case "lte":return l&&r<=o;default:return false}}function Gm(e,t){let n=G(e,"func"),r=G(e,"op"),o=Ps(G(e,"val")??""),{model:l,point:a}=t;switch(n){case "var":return pn(r,yn(l,t.pres,G(e,"arg")??""),o);case "cnt":{let s=yo(l,a,e);return s===null?null:pn(r,s.length,o)}case "pos":case "revPos":case "posEven":case "posOdd":{let{pos:s,count:i}=Ms(l,a),c=n==="pos"?s:n==="revPos"?i-s+1:n==="posEven"?+(s%2===0):+(s%2===1);return pn(r,c,o)}case "depth":return pn(r,Cs(l,a),o);case "maxDepth":{let s=yo(l,a,e);if(s===null)return null;let i=0;for(let c of s)i=Math.max(i,1+xo(l,c));return pn(r,i,o)}default:return false}}function ws(e,t){for(let n of Ee(e))if(n.localName==="if"){let r=Gm(n,t);if(r===null)return null;if(r)return n}else if(n.localName==="else")return n;return e}function dt(e,t){if(e===void 0)return t;if(e==="INF")return 1/0;if(e==="-INF")return -1/0;if(e==="NaN")return NaN;let n=Number(e);return Number.isFinite(n)?n:t}function bo(e){return e==="ch"||e==="des"?e:"self"}function Wm(e){let t=G(e,"type");if(!t||t==="none")return null;let n=G(e,"refType"),r=G(e,"op");return {type:t,for:bo(G(e,"for")),forName:G(e,"forName")??null,ptType:G(e,"ptType")??"all",refType:n&&n!=="none"?n:null,refFor:bo(G(e,"refFor")),refForName:G(e,"refForName")??null,refPtType:G(e,"refPtType")??"all",op:r==="equ"||r==="gte"||r==="lte"?r:"none",fact:dt(G(e,"fact"),1),val:dt(G(e,"val"),NaN)}}function Xm(e){let t=G(e,"type");return t?{type:t,for:bo(G(e,"for")),forName:G(e,"forName")??null,ptType:G(e,"ptType")??"all",val:dt(G(e,"val"),NaN),fact:dt(G(e,"fact"),NaN),max:dt(G(e,"max"),NaN)}:null}function qm(e){let t=new Map;for(let o of Ee(be(e,"adjLst"),"adj")){let l=Number(G(o,"idx")),a=Number(G(o,"val"));Number.isInteger(l)&&l>=1&&l<=16&&Number.isFinite(a)&&t.set(l,a);}let n=G(e,"type"),r=G(e,"hideGeom");return {type:e&&n&&n!=="none"?n:null,rotation:dt(G(e,"rot"),0),adjust:t,hideGeometry:r==="1"||r==="true",zOrderOffset:dt(G(e,"zOrderOff"),0)}}function Ym(e,t){let n={algorithm:{type:"sp",params:new Map},shape:null,presOf:null,constraints:[],rules:[]},r=false,o=(l,a)=>{if(a>Be)return false;for(let s of Ee(l))switch(s.localName){case "alg":{if(r)break;r=true;let i=new Map;for(let c of Ee(s,"param")){let u=G(c,"type"),f=G(c,"val");u&&f!==void 0&&!i.has(u)&&i.set(u,f);}n.algorithm={type:G(s,"type")??"sp",params:i};break}case "shape":n.shape??=s;break;case "presOf":n.presOf??=s;break;case "constrLst":for(let i of Ee(s,"constr")){let c=Wm(i);c&&n.constraints.push(c);}break;case "ruleLst":for(let i of Ee(s,"rule")){let c=Xm(i);c&&n.rules.push(c);}break;case "choose":{let i=ws(s,t);if(i===null||i!==s&&!o(i,a+1))return false;break}}return true};return o(e,0)?n:null}function Km(e){let t=new Map,n=[e],r=0;for(;n.length>0;){let o=n.pop();if(++r>$m)return null;if(o.localName==="forEach"){let l=G(o,"name");l&&!t.has(l)&&t.set(l,o);}for(let l of o.children)isElement(l)&&n.push(l);}return t}function vs(e,t,n,r,o,l,a){if(a>Be)return "refused";for(let s of Ee(e)){if(s.localName==="layoutNode"){if((G(s,"name")??"")===t)return s;continue}let i=null,c=l;if(s.localName==="forEach"){let f=G(s,"ref");i=f?o.get(f)??null:s,c=true;}else if(s.localName==="choose"){let f=ws(s,l?r:n);if(f===null)return "refused";i=f===s?null:f;}if(!i)continue;let u=vs(i,t,n,r,o,c,a+1);if(u!==null)return u}return null}function go(e){return G(e.prSet,"presName")??""}function As(e,t){let n=be(t,"layoutNode");if(!n)return null;let r=Km(t);if(!r)return null;let o=[],l=(s,i,c,u)=>{if(o.length>=Hm||u>Be)return null;let f=G(s.prSet,"presAssocID")??e.root.modelId,d=e.points.get(f)??e.root,m={model:e,point:d.modelId,pres:s},h=Ym(i,m);if(!h)return null;let y=G(h.presOf,"axis"),p={index:o.length,pres:s,name:go(s),assoc:d.modelId,assocType:d.type,definition:i,algorithm:h.algorithm,shape:qm(h.shape),constraints:h.constraints,rules:h.rules,showsText:y!==void 0&&y!=="none",styleLabel:G(s.prSet,"presStyleLbl")??G(i,"styleLbl")??null,parent:c,children:[],depth:u};o.push(p);for(let v of e.presChildren.get(s.modelId)??[]){let P=e.points.get(v);if(!P||P.type!=="pres")continue;let x=G(P.prSet,"presAssocID")??e.root.modelId,g={model:e,point:e.points.has(x)?x:e.root.modelId,pres:P},M=vs(i,go(P),m,g,r,false,0);if(M==="refused")return null;if(!M)continue;let b=l(P,M,p,u+1);if(!b)return null;p.children.push(b);}return p};if((G(n,"name")??"")!==go(e.presRoot))return null;let a=l(e.presRoot,n,null,0);return a?{model:e,root:a,nodes:o}:null}function gr(e,t){return t.node.children.map(n=>e.states[n.index])}function Je(e){return e.node.assocType==="sibTrans"||e.node.assocType==="parTrans"}function Es(e,t){let n=t.box,r=t.node.algorithm.params,o=gr(e,t),l=o.filter(k=>!Je(k)),a=l.length;if(a===0)return;let s=l[0],i=s.values.get("w")??n.w,c=s.values.get("h")??i;if(!(i>0)||!(c>0))return;let u=c/i,f=Math.max(0,(t.values.get("sp")??0)/i),d=r.get("flowDir")==="col",m={lines:1,perLine:a,w:0};for(let k=1;k<=a;k++){let L=Math.ceil(a/k),O=d?L:k,C=d?k:L,N=Math.min(n.w/(O+(O-1)*f),n.h/(C*u+(C-1)*f));N>m.w*(1+1e-9)&&(m={lines:L,perLine:k,w:N});}let h=m.w,y=h*u,p=h*f,v=d?m.lines:m.perLine,P=d?m.perLine:m.lines,x=v*h+(v-1)*p,g=P*y+(P-1)*p,M=n.x+(n.w-x)/2,b=n.y+(n.h-g)/2,S=r.get("grDir")??"tL",E=S==="tR"||S==="bR",A=S==="bL"||S==="bR",D=r.get("contDir")==="revDir",w=(r.get("off")??"ctr")==="ctr",T=[];for(let k=0;k<a;k++){let L=Math.floor(k/m.perLine),O=k%m.perLine;D&&L%2===1&&(O=m.perLine-1-O);let C=Math.min(m.perLine,a-L*m.perLine),N=w?(m.perLine-C)/2*(d?y+p:h+p):0,R=d?L:O,_=d?O:L;E&&(R=v-1-R),A&&(_=P-1-_);let I=M+R*(h+p)+(d?0:E?-N:N),j=b+_*(y+p)+(d?A?-N:N:0);T.push({x:I,y:j,w:h,h:y});}l.forEach((k,L)=>{k.box=T[L];});for(let k of o){if(!Je(k))continue;let L=o.indexOf(k),O=null;for(let V=L-1;V>=0;V--)if(!Je(o[V])){O=o[V];break}let C=o.slice(L+1).find(V=>!Je(V));if(!O?.box||!C?.box){k.box={x:n.x,y:n.y,w:0,h:0};continue}let N=h/i,R=(k.values.get("w")??0)*N,_=(k.values.get("h")??R)*N,I=(O.box.x+O.box.w/2+C.box.x+C.box.w/2)/2,j=(O.box.y+O.box.h/2+C.box.y+C.box.h/2)/2;k.box={x:I-R/2,y:j-_/2,w:R,h:_};}}function Co(e,t){let n=Math.max(0,e.values.get("w")??t);return {w:n,h:Math.max(0,e.values.get("h")??n)}}function ks(e,t){let n=t.box,r=t.node.algorithm.params,o=gr(e,t),l=o.filter(L=>!Je(L));if(l.length===0)return;let a=Number(r.get("stAng")??"0"),s=Number(r.get("spanAng")??"360"),i=r.get("ctrShpMap")==="fNode",c=i?l[0]:null,u=i?l.slice(1):l,f=c?Co(c,n.w):{w:0,h:0},d=u.map(L=>Co(L,n.w)),m=d.reduce((L,O)=>Math.max(L,O.w,O.h),0),h=u.length,y=Math.abs(Math.abs(s)-360)<1e-6,p=h===0?0:y?s/h:h>1?s/(h-1):0,v=t.values.get("sibSp")??0,P=0;if(h>1&&Number.isFinite(p)&&p!==0){let L=Math.abs(p*Math.PI/360);P=(m+v)/(2*Math.sin(Math.min(L,Math.PI/2)));}if(c&&h>0){let L=Math.max(f.w,f.h)/2+(t.values.get("sp")??0);P=Math.max(P,L+m/2);}let x=u.map((L,O)=>{let C=(a+O*p)%360*Math.PI/180;return {x:P*Math.sin(C),y:-P*Math.cos(C)}}),g=c?-f.w/2:1/0,M=c?f.w/2:-1/0,b=c?-f.h/2:1/0,S=c?f.h/2:-1/0;x.forEach((L,O)=>{let C=d[O];g=Math.min(g,L.x-C.w/2),M=Math.max(M,L.x+C.w/2),b=Math.min(b,L.y-C.h/2),S=Math.max(S,L.y+C.h/2);});let E=M-g,A=S-b;if(!(E>0)||!(A>0))return;let D=Math.min(n.w/E,n.h/A),w=n.x+n.w/2-(g+M)/2*D,T=n.y+n.h/2-(b+S)/2*D,k=(L,O,C,N)=>{let R=N.w*D,_=N.h*D;L.box={x:w+O*D-R/2,y:T+C*D-_/2,w:R,h:_};};c&&k(c,0,0,f),u.forEach((L,O)=>k(L,x[O].x,x[O].y,d[O]));for(let L of o)Je(L)&&k(L,0,0,Co(L,0));}var Qm=.9;function Ts(e,t){let n=t.box,r=t.node.algorithm.params;if((r.get("linDir")??"fromB")!=="fromB")return false;let o=gr(e,t),l=o.filter(S=>!Je(S));for(let S of o)Je(S)&&(S.box={x:n.x,y:n.y,w:0,h:0});let a=l.length;if(a===0)return true;let s=r.get("pyraLvlNode")??"level",i=r.get("pyraAcctBkgdNode")??"acctBkgd",c=r.get("pyraAcctTxNode")??"acctTx",u=(S,E)=>gr(e,S).filter(A=>A.node.name===E),f=l.some(S=>u(S,i).length>0);if(f&&(r.get("pyraAcctPos")??"aft")!=="aft")return false;let d=f?Math.min(Qm,Math.max(0,t.values.get("pyraAcctRatio")??0)):0,m=n.w*(1-d);if(!(m>0)||!(n.h>0))return true;let h=m/n.h,y=l.map(S=>{let E=u(S,s)[0],A=(D,w,T,k)=>E?Math.min(k,Math.max(T,Ve(E,D,w))):w;return {sx:A("custScaleX",1,0,100),sy:A("custScaleY",1,0,100),fx:A("custLinFactNeighborX",0,-100,100),fy:A("custLinFactNeighborY",0,-100,100)}}),p=y.map(({sy:S})=>n.h/a*S),v=p.reduce((S,E)=>S+E,0),P=v>n.h&&v>0?n.h/v:1,x=m/2,g=Math.round(h/2*1e5),M=(S,E,A,D)=>{S.values.set("ctrX",E+A/2),S.values.set("ctrY",D/2),S.values.set("w",Math.max(0,A)),S.values.set("h",D);for(let w of ["ctrX","ctrY","w","h"])e.pin(S,w);},b=0;return l.forEach((S,E)=>{let A=b;b+=p[E];let{sx:D,fx:w,fy:T}=y[E],k=p[E]*P,L=b*h*D*P,O=Math.min(Math.max(A*P+T*k,0),Math.max(0,n.h-k)),C=Math.min(Math.max(x-L/2+w*L,0),Math.max(0,n.w-L));S.box={x:n.x,y:n.y+O,w:n.w,h:k};for(let _ of u(S,s))M(_,C,L,k),_.adjust=new Map([["adj",g]]);let N=x+A*h*P/2;for(let _ of u(S,i))M(_,N,n.w-N,k),_.rotation=180,_.adjust=new Map([["adj1",0],["adj2",g]]);let R=x+b*h*P/2;for(let _ of u(S,c))M(_,R,n.w-R,k),_.rotation=180,_.preset="rect";}),true}var So=new Set(["hierRoot","hierChild"]),Ht=91440;function Mo(e,t,n){return e.map(r=>({...r,x:r.x+t,y:r.y+n}))}function Zm(e,t,n,r){let o=-1/0;for(let l of e)for(let a of t)(n?Math.min(l.x+l.w,a.x+a.w)-Math.max(l.x,a.x):Math.min(l.y+l.h,a.y+a.h)-Math.max(l.y,a.y))>0&&(o=Math.max(o,n?l.y+l.h+r-a.y:l.x+l.w+r-a.x));return o}function xn(e,t){return t.node.children.map(n=>e.states[n.index])}function Jm(e){return {w:Math.max(0,e.values.get("w")??0),h:Math.max(0,e.values.get("h")??0)}}function Os(e,t,n){let r=xn(e,t).filter(P=>P.node.algorithm.type==="hierRoot"),o=t.node.algorithm.params,l=o.get("linDir")??"fromL",a=l==="fromT"||l==="fromB",s=o.get("chAlign")??(a?"l":"t"),i=t.values.get("sibSp")??0,c=r.map(P=>Rs(e,P,n+1)),u=0;for(let P of c)u=Math.max(u,a?P.w:P.h);let f=l==="fromR"||l==="fromB"?[...c].reverse():c,d=[],m=0,h=0;for(let[P,x]of f.entries()){let g=a?x.w:x.h,M=s==="r"||s==="b"?u-g:s==="ctr"?(u-g)/2:0,b=Mo(x.contour,a?M:0,a?0:M),S=P===0?0:Math.max(m,Zm(d,b,a,i));m=S,a?(x.x=M,x.y=S):(x.x=S,x.y=M),d=d.concat(Mo(b,a?0:S,a?S:0)),h=Math.max(h,S+(a?x.h:x.w));}let y=c[0],p=c[c.length-1],v=(P,x)=>y&&p?(y[P]+y[x]+p[P]+p[x])/2:0;return {state:t,x:0,y:0,w:a?u:h,h:a?h:u,anchorX:v("x","anchorX"),anchorY:v("y","anchorY"),children:c,contour:d}}function eh(e){let t=e.values.get("alignOff");if(t!==void 0)return t;let n=e.node.constraints.find(r=>r.type==="alignOff"&&r.for==="self"&&r.refType===null);return n&&Number.isFinite(n.val)?n.val:0}function Rs(e,t,n){let r=xn(e,t),o=r.find(M=>!So.has(M.node.algorithm.type)&&M.node.algorithm.type!=="conn"),l=o?Jm(o):{w:0,h:0},a={...l};if(o){let M=b=>{let S=Ve(o,b,NaN);for(let E of xn(e,o)){let A=Ve(E,b,NaN);Number.isFinite(A)&&(S=Number.isFinite(S)?Math.max(S,A):A);}return Number.isFinite(S)?Math.min(100,Math.max(.01,S)):1};l.w*=M("custScaleX"),l.h*=M("custScaleY");}let i=(n>64?[]:r.filter(M=>M.node.algorithm.type==="hierChild")).map(M=>Os(e,M,n)),c=i.find(M=>M.children.length>0),u=o?{state:o,x:0,y:0,w:a.w,h:a.h,anchorX:a.w/2,anchorY:a.h/2,children:[],contour:[]}:null,f=()=>u?[u,...i]:i;if(!c){u&&(u.x=(l.w-a.w)/2,u.y=(l.h-a.h)/2);for(let M of i)M.x=l.w/2,M.y=l.h/2;return {state:t,x:0,y:0,w:l.w,h:l.h,anchorX:l.w/2,anchorY:l.h/2,children:f(),contour:o?[{x:0,y:0,w:l.w,h:l.h}]:[]}}let d=t.values.get("sp")??0,m=t.node.algorithm.params.get("hierAlign")??"tCtrCh",h=m[0],y=m.endsWith("CtrCh")||m.endsWith("CtrD"),p=y?0:Math.min(1,Math.max(0,eh(t))),v=0,P=0;h==="l"||h==="r"?(P=y?c.anchorY-l.h/2:m.endsWith("B")?c.h-l.h+p*l.h:-p*l.h,h==="l"?c.x=l.w+d:v=c.w+d):(v=y?c.anchorX-l.w/2:m.endsWith("R")?c.w-l.w+p*l.w:-p*l.w,h==="b"?P=c.h+d:c.y=l.h+d);let x=Math.max(0,-v,-c.x),g=Math.max(0,-P,-c.y);v+=x,P+=g,c.x+=x,c.y+=g,u&&(u.x=v+(l.w-a.w)/2,u.y=P+(l.h-a.h)/2);for(let M of i)M!==c&&(M.x=v+l.w/2,M.y=P+l.h);return {state:t,x:0,y:0,w:Math.max(v+l.w,c.x+c.w),h:Math.max(P+l.h,c.y+c.h),anchorX:v+l.w/2,anchorY:P+l.h/2,children:f(),contour:[...o?[{x:v,y:P,w:l.w,h:l.h}]:[],...Mo(c.contour,c.x,c.y)]}}function Ds(e,t,n,r,o){let l=t+e.x*r,a=n+e.y*r;e.state.box={x:l,y:a,w:e.w*r,h:e.h*r},e.state.scale=r,o.add(e.state);for(let s of e.children)Ds(s,l,a,r,o);}function Is(e,t){let n=t.node.parent;if(n&&So.has(n.algorithm.type)){for(let c of xn(e,t))c.box||(c.scale=t.scale);return}let r=t.box,o=t.node.algorithm.type==="hierRoot"?Rs(e,t,0):Os(e,t,0);if(!(o.w>0)||!(o.h>0))return;let l=Math.min(r.w/o.w,r.h/o.h),a=r.x+(r.w-o.w*l)/2,s=r.y+(r.h-o.h*l)/2,i=new Set;Ds({...o,x:0,y:0},a,s,l,i),t.box=r;for(let c of i)for(let u of xn(e,c))u.box||(u.scale=l);}function Ls(e,t){switch(t.split(/\s+/)[0]){case "tCtr":return {x:e.x+e.w/2,y:e.y};case "bCtr":return {x:e.x+e.w/2,y:e.y+e.h};case "midL":return {x:e.x,y:e.y+e.h/2};case "midR":return {x:e.x+e.w,y:e.y+e.h/2};case "tL":return {x:e.x,y:e.y};case "tR":return {x:e.x+e.w,y:e.y};case "bL":return {x:e.x,y:e.y+e.h};case "bR":return {x:e.x+e.w,y:e.y+e.h};default:return {x:e.x+e.w/2,y:e.y+e.h/2}}}function Ns(e,t,n){let r=null;for(let o of e.states)if(!(!o.box||t!==void 0&&o.node.name!==t)&&o.node.algorithm.type!=="conn"&&!(t===void 0&&(o.node.shape.type===null||o.node.shape.hideGeometry))){if(n!==void 0&&o.node.assoc===n)return o;t!==void 0&&(r??=o);}return n===void 0?r:null}function _s(e,t){let n=t.node.algorithm.params,r=e.model.transitionOwner.get(t.node.assoc),o=r?e.model.contentParent.get(r):void 0,l=Ns(e,n.get("srcNode"),o),a=Ns(e,n.get("dstNode"),r);if(!l?.box||!a?.box){t.hidden=true;return}let s=Ls(l.box,n.get("begPts")??"auto"),i=Ls(a.box,n.get("endPts")??"auto");if((n.get("connRout")??"stra")!=="bend"){let h=Math.hypot(i.x-s.x,i.y-s.y),y=Math.max(0,(t.values.get("h")??0)*t.scale),p={x:(s.x+i.x)/2,y:(s.y+i.y)/2};t.box={x:p.x-h/2,y:p.y-y/2,w:h,h:y},t.rotation=Math.atan2(i.y-s.y,i.x-s.x)*180/Math.PI,t.path=[{x:0,y:y/2},{x:h,y:y/2}],t.preset=null,t.values.set("connDist",h);return}let c=[s];{let h=(t.values.get("bendDist")??Math.abs(i.y-s.y)/2)*t.scale,y=n.get("bendPt")==="beg"?s.y+h:i.y-h;c.push({x:s.x,y},{x:i.x,y});}c.push(i);let u=1/0,f=-1/0,d=1/0,m=-1/0;for(let h of c)u=Math.min(u,h.x),f=Math.max(f,h.x),d=Math.min(d,h.y),m=Math.max(m,h.y);if(f-u<Ht){let h=s.x;u=h-Ht/2,f=h+Ht/2;}if(m-d<Ht){let h=(d+m)/2;d=h-Ht/2,m=h+Ht/2;}t.box={x:u,y:d,w:f-u,h:m-d},t.path=c.map(h=>({x:h.x-u,y:h.y-d})),t.preset=null;}function zs(e){return So.has(e)}var Us=new Set(["composite","lin","conn","tx","sp","snake","cycle","hierRoot","hierChild","pyra"]);function Hs(e){return Us.has(e)}function gn(e,t){return t.node.children.map(n=>e.states[n.index])}function th(e,t){let n=t.box,r=gn(e,t),o=1/0,l=-1/0,a=1/0,s=-1/0;for(let d of r){let[m,h]=br(d.values,["l","r","w","ctrX"],n.w),[y,p]=br(d.values,["t","b","h","ctrY"],n.h);d.box={x:n.x+m,y:n.y+y,w:Math.max(0,h),h:Math.max(0,p)},o=Math.min(o,d.box.x),l=Math.max(l,d.box.x+d.box.w),a=Math.min(a,d.box.y),s=Math.max(s,d.box.y+d.box.h);}if(r.length===0)return;let i=t.node.algorithm.params,c=(d,m,h,y,p)=>d==="none"||!(h-m<p)?0:d==="l"||d==="t"?y-m:d==="r"||d==="b"?y+p-h:y+(p-(h-m))/2-m,u=c(i.get("horzAlign")??"ctr",o,l,n.x,n.w),f=c(i.get("vertAlign")??"mid",a,s,n.y,n.h);if(!(u===0&&f===0))for(let d of r)d.box={...d.box,x:d.box.x+u,y:d.box.y+f};}function $s(e,t,n,r){if(r>16)return 0;let l=gn(e,t).map(i=>{let c=i.values.get(n);return c!==void 0&&Number.isFinite(c)?Math.max(0,c):$s(e,i,n,r+1)}),a=t.node.algorithm.params.get("linDir")??"fromL";return t.node.algorithm.type==="lin"&&n==="w"==(a==="fromL"||a==="fromR")?l.reduce((i,c)=>i+c,0):l.reduce((i,c)=>Math.max(i,c),0)}function nh(e,t){let n=t.box,r=t.node.algorithm.params,o=r.get("linDir")??"fromL",l=o==="fromL"||o==="fromR",a=o==="fromR"||o==="fromB",s=gn(e,t);if(s.length===0)return;let i=l?"w":"h",c=l?"h":"w",u=l?n.w:n.h,f=l?n.h:n.w,d=t.values.get("sp")??0,m=new Set,h=s.map(w=>{let T=w.values.get(i)??0;return Number.isFinite(T)?T:(m.add(w),$s(e,w,i,0))}),y=h.reduce((w,T)=>w+T,0)+d*(s.length-1),p=y>0&&y>u?u/y:1;p<1&&e.overflow(p);let v=s.map((w,T)=>{if(p!==1&&(w.values.set(i,h[T]*p),e.resolveSelf(w,i),m.has(w)))for(let k of gn(e,w)){let L=k.values.get(i);L===void 0||!Number.isFinite(L)||(k.values.set(i,L*p),e.pin(k,i));}return Math.max(0,w.values.get(c)??f)}),P=s.map((w,T)=>({primary:h[T]*p,cross:v[T]})),x=d*p,g=P.reduce((w,T)=>Math.max(w,T.cross),0);if(g>f&&g>0){let w=f/g;e.overflow(w),P=P.map(T=>({primary:T.primary*w,cross:T.cross*w})),x*=w;}let M=P.length>0&&g>f&&g>0?f/g:1;for(let w of s)p*M!==1&&w.flowScale.set(i,p*M),M!==1&&w.flowScale.set(c,M);let b=P.reduce((w,T)=>w+T.primary,0)+x*(s.length-1),S=l?r.get("horzAlign"):r.get("vertAlign"),E=(u-b)/2;S==="l"||S==="t"?E=a?u-b:0:(S==="r"||S==="b")&&(E=a?0:u-b);let A=l?r.get("nodeVertAlign")??"mid":r.get("nodeHorzAlign")??"ctr",D=a?[...s.keys()].reverse():[...s.keys()];for(let w of D){let T=s[w],{primary:k,cross:L}=P[w],O=(f-L)/2;A==="t"||A==="l"?O=0:(A==="b"||A==="r")&&(O=f-L),T.box=l?{x:n.x+E,y:n.y+O,w:Math.max(0,k),h:L}:{x:n.x+O,y:n.y+E,w:L,h:Math.max(0,k)},E+=k+x;}}function Po(e){return {x:e.x+e.w/2,y:e.y+e.h/2}}function Fs(e,t,n){let r=Po(e),o=t.x-r.x,l=t.y-r.y;if(o===0&&l===0)return r;let a=e.w/2,s=e.h/2,i;if(n&&a>0&&s>0)i=1/Math.sqrt(o*o/(a*a)+l*l/(s*s));else {let c=o===0?1/0:a/Math.abs(o),u=l===0?1/0:s/Math.abs(l);i=Math.min(c,u);}return {x:r.x+o*i,y:r.y+l*i}}var js=new Set(["ellipse","circle","donut","pie","blockArc","chord"]);function Bs(e,t,n,r){let o=t.node.parent;if(!o)return null;let l=o.children.map(s=>e.states[s.index]);if(n){let s=l.indexOf(t);for(let i=s+r;i>=0&&i<l.length;i+=r)if(l[i].node.name===n)return l[i];return l.find(i=>i.node.name===n)??null}let a=l.indexOf(t);for(let s=a+r;s>=0&&s<l.length;s+=r){let i=l[s];if(i.node.algorithm.type!=="conn"&&i.box)return i}return o.algorithm.type==="cycle"?(r===1?l:[...l].reverse()).find(i=>i.node.algorithm.type!=="conn"&&i.box)??null:null}var rh={begPad:.25,endPad:.22};function Vs(e,t,n){for(let r of e.node.constraints)if(!(r.type!==t||r.for!=="self")){if(r.refType==="connDist")return n*r.fact;if(!Number.isNaN(r.val))return r.val*36e3}return e.values.get(t)??n*rh[t]}function oh(e,t){let n=t.node.parent,r=e.model.transitionOwner.get(t.node.assoc);if(!n||!r)return null;let o=e.model.contentParent.get(r),l=n.children.map(s=>e.states[s.index]),a=s=>l.find(i=>i.node.assoc===s&&i.node.algorithm.type!=="conn"&&i.box)??null;return {source:a(o),target:a(r)}}function lh(e,t){let n=t.node.algorithm.params,r=t.node.assocType==="parTrans"&&!n.has("srcNode")&&!n.has("dstNode")?oh(e,t):null,o=r?.source??Bs(e,t,n.get("srcNode"),-1),l=r?.target??Bs(e,t,n.get("dstNode"),1),a=t.box;if(!o?.box||!l?.box){t.hidden=true;return}let s=Po(o.box),i=Po(l.box),c=Fs(o.box,i,js.has(o.node.shape.type??"")),u=Fs(l.box,s,js.has(l.node.shape.type??"")),f=u.x-c.x,d=u.y-c.y,m=Math.hypot(f,d);t.values.set("connDist",m);let h=Vs(t,"begPad",m),y=Vs(t,"endPad",m),p=Math.max(0,m-h-y),v=a.h,P=m>0?f/m:1,x=m>0?d/m:0,g={x:c.x+P*(h+p/2),y:c.y+x*(h+p/2)};t.box={x:g.x-p/2,y:g.y-v/2,w:p,h:v},t.rotation=Math.atan2(d,f)*180/Math.PI;let M=n.get("begSty")??"noArr",b=n.get("endSty")??"arr";t.preset=M==="arr"&&b==="arr"?"leftRightArrow":M==="arr"?"leftArrow":b==="arr"?"rightArrow":"rect",t.preset==="leftArrow"&&(t.preset="rightArrow"),M==="arr"&&b!=="arr"&&(t.flipH=true),t.adjust=new Map([["adj1",6e4],["adj2",5e4]]);}function Gs(e){let t=e.box;if(!t||e.node.algorithm.type!=="composite")return;let n=e.node.algorithm.params,r=Number(n.get("ar")??"0");if(!(r>0)||!Number.isFinite(r)||t.w<=0||t.h<=0)return;let o=Math.min(t.w,t.h*r),l=o/r,a=n.get("horzAlign")??"ctr",s=n.get("vertAlign")??"mid",i=a==="l"?t.x:a==="r"?t.x+t.w-o:t.x+(t.w-o)/2,c=s==="t"?t.y:s==="b"?t.y+t.h-l:t.y+(t.h-l)/2;e.box={x:i,y:c,w:o,h:l};}function Ws(e,t){let n=t.node.algorithm.type;if(!Us.has(n))return false;if(n==="conn"){let o=t.node.algorithm.params.get("dim")??"2D";if(o==="1D")_s(e,t);else if(o==="2D")lh(e,t);else return false}let r=t.box;if(!r)return true;if(n==="composite")th(e,t);else if(n==="lin")nh(e,t);else if(n==="snake")Es(e,t);else if(n==="cycle")ks(e,t);else {if(n==="pyra")return Ts(e,t);if(zs(n))Is(e,t);else for(let o of gn(e,t))o.box={...r};}return true}var bn=36e3,Ue=12700,Ys=3,ah=65,Ks=new Set(["w","h","l","t","r","b","ctrX","ctrY","lOff","tOff","rOff","bOff","wOff","hOff","ctrXOff","ctrYOff","sp","sibSp","secSibSp","connDist","begPad","endPad","bendDist","stemThick","diam","lMarg","tMarg","rMarg","bMarg","begMarg","endMarg","wArH","hArH"]),Gt=new Set(["primFontSz","secFontSz"]);function Cr(e){return Gt.has(e)}var Qs=new Set(["lMarg","tMarg","rMarg","bMarg"]);function sh(e,t){return Qs.has(t)?e*Ue:t==="wArH"||t==="hArH"?e:Ks.has(t)?e*bn:e}function Xs(e){return Gt.has(e)||Qs.has(e)?"pt":e==="wArH"||e==="hArH"?null:Ks.has(e)?"mm":null}function ih(e,t,n){let r=Xs(t),o=Xs(n);if(r===null||o===null)return e;let a=(s=>Gt.has(t)?s:s/(r==="mm"?bn:Ue))(e);return Gt.has(n)?a:a*(o==="mm"?bn:Ue)}function vo(e,t){switch(t){case "all":return true;case "node":case "norm":return e==="node";case "nonNorm":return e!=="node";case "asst":return e==="asst";case "nonAsst":return e!=="asst";case "doc":return e==="doc";case "parTrans":return e==="parTrans";case "sibTrans":return e==="sibTrans";default:return false}}function Ie(e,t){return `${e}:${t}`}function Zs(e,t,n){let r=e.limits.get(t);if(!r)return n;let o=n;for(let l of r.values())o=l.op==="lte"?Math.min(o,l.value):Math.max(o,l.value);return o}function Ao(e,t,n){return t!==null&&e.name!==t?false:vo(e.assocType,n)}function Mr(e,t=[]){for(let n of e.children)t.push(n),Mr(n,t);return t}function ch(e,t){return t.for==="self"?[e]:(t.for==="ch"?e.children:Mr(e)).filter(r=>Ao(r,t.forName,t.ptType))}function uh(e,t){return t.refFor==="self"?e:(t.refFor==="ch"?e.children:Mr(e)).find(r=>Ao(r,t.refForName,t.refPtType))??null}function Js(e,t,n){let r=e.box;if(r)switch(t){case "w":return r.w;case "h":return r.h;case "l":return r.x-(n?.x??0);case "t":return r.y-(n?.y??0);case "r":return r.x+r.w-(n?.x??0);case "b":return r.y+r.h-(n?.y??0);case "ctrX":return r.x+r.w/2-(n?.x??0);case "ctrY":return r.y+r.h/2-(n?.y??0);}let o=t==="l"||t==="r"||t==="w"||t==="ctrX";if(!o&&!(t==="t"||t==="b"||t==="h"||t==="ctrY"))return e.values.get(t)??null;let a=o?["l","r","w","ctrX"]:["t","b","h","ctrY"],s=a.filter(d=>e.values.has(d)).length,i=a.some(d=>e.values.has(`${d}Off`));if(t===a[2]&&e.values.has(t)||!i&&e.values.has(t))return e.values.get(t);if(s===0)return null;if(s<2&&!e.values.has(a[2]))return e.values.get(t)??null;let[c,u]=br(e.values,a,(o?n?.w:n?.h)??0),f=a.indexOf(t);return f===0?c:f===1?c+u:f===2?u:c+u/2}function dh(e,t,n,r,o){let l=e.get(t),a=e.get(n),s=e.get(r),i=e.get(o),c,u;return s!==void 0?(u=s,l!==void 0?c=l:i!==void 0?c=i-s/2:a!==void 0&&(c=a-s)):l!==void 0&&a!==void 0?(c=l,u=a-l):l!==void 0&&i!==void 0?(c=l,u=2*(i-l)):a!==void 0&&i!==void 0&&(u=2*(a-i),c=a-u),c===void 0||u===void 0?null:[c,c+u,u,c+u/2]}function br(e,t,n){let[r,o,l,a]=t,s=dh(e,r,o,l,a),i,c,u="start";s?([i,,c]=s,!e.has(r)&&e.has(a)?u="centre":!e.has(r)&&e.has(o)&&(u="end")):(c=e.get(l)??n,e.has(r)?i=e.get(r):e.has(a)?(i=e.get(a)-c/2,u="centre"):e.has(o)?(i=e.get(o)-c,u="end"):i=0);let f=e.get(`${l}Off`)??0,d=e.get(`${r}Off`)??0,m=e.get(`${o}Off`)??0,h=e.get(`${a}Off`)??0;return f!==0&&(u==="centre"?i-=f/2:u==="end"&&(i-=f),c+=f),i+=d+h,c+=m-d,[i,c]}function ei(e,t){return t.parent?e.states[t.parent.index].box??null:null}function wo(e,t,n,r,o){if(e.pinned.has(Ie(t.node.index,n)))return t.values.get(n)??r;let a=e.overrides.get(Ie(t.node.index,n))??r,s=t.node.parent;if(s&&s.algorithm.type==="composite"&&(n==="w"||n==="h")){let i=e.states[s.index].box,c=i?n==="w"?i.w:i.h:1/0;a>c&&(a=c);}return a=Zs(e,Ie(t.node.index,n),a),t.values.set(n,a),o!==null&&t.bases.set(n,o),a}function $t(e,t,n,r,o){let l=ch(t,n);if(l.length===0)return true;let a=null,s=null,i=null;if(n.refType!==null){if(i=uh(t,n),!i)return true;let c=e.states[i.index],f=(n.for==="self"&&i===t&&Gt.has(n.refType)?c.customFontSize:null)??Js(c,n.refType,ei(e,i));if(f===null)return false;s=ih(f,n.refType,n.type),a=s*n.fact;}else Number.isNaN(n.val)||(a=sh(n.val,n.type));if(n.op==="gte"||n.op==="lte"){if(a===null||a<0)return true;for(let c of l){let u=e.states[c.index],f=Ie(c.index,n.type),d=e.limits.get(f);d||e.limits.set(f,d=new Map),d.set(r,{op:n.op,value:a});let m=u.values.get(n.type);m!==void 0&&u.values.set(n.type,Zs(e,f,m)),o.push({state:u,constraint:n,value:a});}return true}if(n.op==="equ"&&l.length>1&&(e.groups.get(r)||e.groups.set(r,{type:n.type,members:l.map(u=>u.index)})),n.op==="equ"&&i!==null&&n.refType===n.type&&Gt.has(n.type)&&n.fact===1){let c=n.refFor==="self"?[t]:(n.refFor==="ch"?t.children:Mr(t)).filter(f=>Ao(f,n.refForName,n.refPtType)),u=l.map(f=>f.index);for(let f of c)u.includes(f.index)||u.push(f.index);e.groups.set(`${r}=`,{type:n.type,members:u});}for(let c of l){let u=e.states[c.index];if(a===null){n.op!=="equ"&&!u.values.has(n.type)&&wo(e,u,n.type,0,null);continue}let f=wo(e,u,n.type,a,s);n.op==="equ"&&i!==null&&u.tied.add(n.type),n.op==="equ"&&i===c&&n.refType!==null&&f<a&&n.fact!==0&&u.values.set(n.refType,f/n.fact);}return true}function qs(e,t,n){let r=[];for(let o=0;o<Ys;o++){r.length=0,t.constraints.forEach((l,a)=>{l.for!=="self"&&$t(e,t,l,`${t.index}#${a}`,r);});for(let l of n)$t(e,l.owner,l.constraint,l.key,r);for(let l of t.children)l.constraints.forEach((a,s)=>{a.for==="self"&&$t(e,l,a,`${l.index}#${s}`,r);});t.constraints.forEach((l,a)=>{l.for!=="self"||l.refFor==="self"||$t(e,t,l,`${t.index}#${a}`,r);});}for(let{state:o,constraint:l,value:a}of r){let s=o.values.get(l.type);if(s===void 0)continue;let i=l.op==="lte"?Math.min(s,a):Math.max(s,a);o.values.set(l.type,i);}}function Ve(e,t,n){let r=e.node.pres.prSet?.attributes.find(l=>l.localName===t)?.value,o=r!==void 0&&/^-?\d{1,9}$/.test(r)?Number(r)/1e5:NaN;return Number.isFinite(o)?o:n}function fh(e){let t=e.box;if(!t)return null;let n=Math.min(100,Math.max(0,Ve(e,"custScaleX",1))),r=Math.min(100,Math.max(0,Ve(e,"custScaleY",1))),o=e.node.parent;for(;o&&o.algorithm.type==="composite";)o=o.parent;if(o?.algorithm.type==="pyra")return null;let l=o?.algorithm.type==="hierRoot"||o?.algorithm.type==="hierChild",s=(o?.algorithm.type==="hierChild"?o:o?.parent)?.algorithm.params.get("linDir")??"fromL",i=s==="fromT"||s==="fromB",c=l?Ve(e,"custLinFactNeighborX",0):0,u=l&&i?Ve(e,"custLinFactNeighborY",0):0;if(n===1&&r===1&&c===0&&u===0)return null;let f=t.w*n,d=t.h*r;return e.box={x:t.x+(t.w-f)/2+c*f,y:t.y+(t.h-d)/2+u*d,w:f,h:d},{dx:c*f,dy:u*d}}function mh(e,t){let n=new Map,r=new Set;for(let o of t.children){let l=e[o.index],a=fh(l);a&&(r.add(l),(a.dx!==0||a.dy!==0)&&n.set(o.name,a));}if(n.size!==0)for(let o of t.children){let l=e[o.index],a=o.definition.attributes.find(i=>i.localName==="moveWith")?.value,s=a===void 0?void 0:n.get(a);!s||r.has(l)||!l.box||(l.box={...l.box,x:l.box.x+s.dx,y:l.box.y+s.dy});}}function hh(e){let t=[];for(let n of e){let r=new Set(n.members);for(let o=t.length-1;o>=0;o--){let l=t[o];if(!(l.type!==n.type||![...l.members].some(a=>r.has(a)))){for(let a of l.members)r.add(a);t.splice(o,1);}}t.push({type:n.type,members:r});}return t.map(n=>({type:n.type,members:[...n.members]}))}var Eo="custFontSz";function ph(e,t){return {node:e,values:new Map,bases:new Map,tied:new Set,box:null,rotation:0,preset:null,adjust:null,flipH:false,hidden:false,scale:1,flowScale:new Map,path:null,customFontSize:t.get(Ie(e.index,Eo))??null}}function ti(e,t,n=new Map){let r={states:e.nodes.map(u=>ph(u,n)),overrides:n,groups:new Map,limits:new Map,pinned:new Set,model:e.model},o=r.states[e.root.index];o.box={x:0,y:0,w:t.cx,h:t.cy};let l=[];for(let u=0;u<Ys;u++)e.root.constraints.forEach((f,d)=>{f.for==="self"&&$t(r,e.root,f,`r#${d}`,l);});let a=1,s={model:e.model,overflow:u=>{u<a&&(a=u);},states:r.states,readValue:(u,f)=>Js(u,f,ei(r,u.node)),pin:(u,f)=>{r.pinned.add(Ie(u.node.index,f));},resolveSelf:(u,f)=>{u.node.constraints.forEach((d,m)=>{d.for!=="self"||d.type===f||$t(r,u.node,d,`${u.node.index}#${m}`,l);});}},i=[],c=(u,f,d=false)=>{if(u.algorithm.type==="conn"&&!d)return i.push({node:u,inherited:f}),true;let m=r.states[u.index],h=u.constraints.map((p,v)=>({owner:u,constraint:p,key:`${u.index}#${v}`})).filter(p=>p.constraint.for==="des"),y=[...f,...h];if(Gs(m),qs(r,u,f),!Ws(s,m))return false;mh(r.states,u),u.algorithm.type==="conn"&&qs(r,u,f);for(let p of u.children)if(!c(p,y))return false;return true};if(!c(e.root,[]))return null;for(let u=0;u<i.length;u++){let{node:f,inherited:d}=i[u];if(!c(f,d,true))return null}for(let u of r.states)!u.values.has("primFontSz")&&u.node.showsText&&wo(r,u,"primFontSz",ah,null);return {tree:e,states:r.states,groups:hh([...r.groups.values()]),overflow:a}}var ko=DRAWINGML_MAIN_NAMESPACE_URI,bh=4096;function Ch(e){if(!e)return null;for(let t of e.children)if(isElement(t))return t;return null}function Mh(e,t){if(!e)return null;for(let n of e.children)if(isElement(n)&&n.namespaceUri===ko&&n.localName===t)return n;return null}function li(e,t){if(!e)return null;let n=null;for(let r of Ee(e,"styleLbl")){let o=G(r,"name");if(o===t)return r;n??=o==="node0"?r:null;}return n}function ai(e,t){let n=be(li(e,t),"style"),r=(o,l)=>{let a=Mh(n,o);return {idx:G(a,"idx")??l,color:Ch(a)}};return {line:r("lnRef","0"),fill:r("fillRef","0"),effect:r("effectRef","0"),font:r("fontRef","minor")}}function ri(e){let t=parseInt(e.slice(0,2),16)/255,n=parseInt(e.slice(2,4),16)/255,r=parseInt(e.slice(4,6),16)/255,o=Math.max(t,n,r),l=Math.min(t,n,r),a=(o+l)/2;if(o===l)return [0,0,a];let s=o-l,i=a>.5?s/(2-o-l):s/(o+l),c;return o===t?c=(n-r)/s+(n<r?6:0):o===n?c=(r-t)/s+2:c=(t-n)/s+4,[c*60,i,a]}function si(e,t,n,r,o,l){let a=be(li(e,t),n);if(!a)return null;let s=[];for(let M of a.children)if(isElement(M)&&M.namespaceUri===ko&&s.push(M),s.length>=64)break;if(s.length===0)return null;let i=G(a,"meth")??"span",c=Math.max(0,Math.trunc(r));if(i==="repeat")return {element:s[Math.min(c,s.length-1)],offsets:null};if(i==="cycle")return {element:s[c%s.length],offsets:null};let u=s[0],f=s[s.length-1];if(s.length===1||o<=1)return {element:u,offsets:null};let d=Math.min(1,c/(o-1)),m=resolveColorNode(u,l),h=resolveColorNode(f,l);if(!m||!h)return {element:u,offsets:null};let[y,p,v]=ri(m.hex),[P,x,g]=ri(h.hex);return {element:u,offsets:[Math.round((P-y)*d*6e4),Math.round((x-p)*d*1e5),Math.round((g-v)*d*1e5),Math.round((h.alpha-m.alpha)*d*1e5)]}}var oi={[ko]:"a"};function ft(e,t="",n={remaining:bh}){let r=oi[e.namespaceUri];if(!r||--n.remaining<0)return null;let o=`${r}:${e.localName}`,l=`<${o}`;for(let s of e.attributes)s.namespaceUri!==""||!/^[A-Za-z][\w.-]*$/.test(s.localName)||(l+=` ${s.localName}="${escapeXmlAttribute(s.value)}"`);let a="";for(let s of e.children){if(s.kind==="textValue"){a+=escapeXml(s.value);continue}if(!isElement(s)||!oi[s.namespaceUri])continue;let i=ft(s,"",n);if(i===null)return null;a+=i;}return a+=t,a===""?`${l}/>`:`${l}>${a}</${o}>`}function ii(e){if(!e)return null;let t=e.offsets?["hueOff","satOff","lumOff","alphaOff"].map((n,r)=>`<a:${n} val="${e.offsets[r]}"/>`).join(""):"";return ft(e.element,t)}var Cn=DRAWINGML_MAIN_NAMESPACE_URI,wh=256,No=.9,vh=.35,Ah=.15;function Oo(e,t){let n=e.node.algorithm.params.get(t>0?"lnSpAfChP":"lnSpAfParP"),r=n!==void 0&&/^\d{1,3}(\.\d+)?$/.test(n)?Number(n):NaN;return Number.isFinite(r)&&r<=500?r/100:t>0?Ah:vh}var Eh=.78,kh=.56;function*Th(e){if(e)for(let t of e.children)isElement(t)&&t.namespaceUri===Cn&&t.localName==="p"&&(yield t);}function Lh(e){let t="";for(let n of e.children)if(!(!isElement(n)||n.namespaceUri!==Cn)){if(n.localName==="br"){t+=`
9
- `;continue}if(!(n.localName!=="r"&&n.localName!=="fld")){for(let r of n.children)if(!(!isElement(r)||r.namespaceUri!==Cn||r.localName!=="t"))for(let o of r.children)o.kind==="textValue"&&(t+=o.value);}}return t}function Nh(e){let t=null;for(let n of e.children)if(!(!isElement(n)||n.namespaceUri!==Cn||n.localName!=="r"))for(let r of n.children){if(!isElement(r)||r.localName!=="rPr")continue;let o=r.attributes.find(a=>a.localName==="sz")?.value,l=o!==void 0&&/^\d{3,6}$/.test(o)?Number(o)/100:NaN;l>=1&&l<=4e3&&(t=Math.max(t??0,l));}return t}function To(e,t){let n=0,r=e.contentParent.get(t);for(;r&&n<64;)n++,r=e.contentParent.get(r);return n}function mt(e,t){if(!t.node.showsText||t.node.algorithm.type!=="tx")return [];let n=e.presOf.get(t.node.pres.modelId)??[];if(n.length===0)return [];let r=t.node.assocType==="node"||t.node.assocType==="asst"?To(e,t.node.assoc):Math.min(...n.map(l=>To(e,l))),o=[];for(let l of n){let a=e.points.get(l);if(!a)continue;let s=Math.max(0,To(e,l)-r);for(let i of Th(be(a.element,"t"))){if(o.length>=wh)return o;o.push({element:i,level:s,text:Lh(i),explicitSize:Nh(i)});}}return o}function Mn(e){return e.some(t=>t.text.trim()!=="")}function ci(e){return (e%360+360)%360}function ui(e){let t=e/90;return Math.abs(t-Math.round(t))<1e-9&&Math.round(t)%2!==0}function Ro(e){let t=e.box;return t?ui(e.node.shape.rotation)?{x:t.x+(t.w-t.h)/2,y:t.y+(t.h-t.w)/2,w:t.h,h:t.w}:{...t}:null}function Do(e){return ci(e.node.shape.rotation+e.rotation)}function Oh(e,t,n,r,o){let l=ci(r),a=e?presetGeometryDefinition(e):null,i=(a?evaluateGeometry(a,t.w,t.h,n??void 0):null)?.textRect??{left:0,top:0,right:t.w,bottom:t.h},c=Math.max(0,i.right-i.left),u=Math.max(0,i.bottom-i.top),f=(i.left+i.right)/2-t.w/2,d=(i.top+i.bottom)/2-t.h/2,m=l*Math.PI/180,h=t.x+t.w/2+f*Math.cos(m)-d*Math.sin(m),y=t.y+t.h/2+f*Math.sin(m)+d*Math.cos(m),p=0;o==="upr"?p=l===0?0:360-l:o==="grav"&&(p=l>90&&l<270?180:0);let v=ui(p),P=v?u:c,x=v?c:u;return {x:h-P/2,y:y-x/2,w:P,h:x,rotation:p}}function Io(e){let t=e.customFontSize??e.values.get("primFontSz")??65,n=e.customFontSize??e.values.get("secFontSz")??Math.max(1,Math.round(t*Eh)),r=kh*t*Ue,o=l=>Math.max(0,e.values.get(l)??r);return {primary:t,secondary:n,margins:[o("lMarg"),o("tMarg"),o("rMarg"),o("bMarg")]}}function di(e,t,n,r,o){let l=Io(e),[a,s,i,c]=l.margins,u=(n.w-a-i)/Ue,f=(n.h-s-c)/Ue;if(!(u>0)||!(f>0))return {fits:false,wordsFit:false};let d=0,m=true;return t.forEach((h,y)=>{let p=h.explicitSize??(h.level>0?l.secondary:l.primary),v=r.lineHeight(p,o)*No,P=h.level>0?p*.409*h.level:0,x=u-P,g=0;for(let M of h.text.split(`
10
- `)){g++;let b=0,S=r.width(" ",p,o,false);for(let E of M.split(/\s+/)){if(E==="")continue;let A=r.width(E,p,o,false);A>x&&h.explicitSize===null&&(m=false),b===0?b=A:b+S+A<=x?b+=S+A:(g++,b=A),A>x&&x>0&&(g+=Math.ceil(A/x)-1);}}d+=g*v,y<t.length-1&&(d+=Oo(e,h.level)*r.lineHeight(p,o));}),{fits:m&&d<=f+.01,wordsFit:m}}function Wt(e){let t=fi(e);return t?t.preset:e.preset??e.node.shape.type}function fi(e){let t=e.node.pres.spPr;if(!t)return null;for(let n of t.children){if(!isElement(n)||n.namespaceUri!==Cn||n.localName!=="prstGeom")continue;let r=n.attributes.find(l=>l.localName==="prst")?.value;if(!r||!presetGeometryDefinition(r))return null;let o=new Map;for(let l of n.children)if(!(!isElement(l)||l.localName!=="avLst"))for(let a of l.children){if(!isElement(a)||a.localName!=="gd")continue;let s=a.attributes.find(u=>u.localName==="name")?.value,i=a.attributes.find(u=>u.localName==="fmla")?.value,c=i?/^val (-?\d{1,10})$/.exec(i):null;s&&c&&o.size<16&&o.set(s,Number(c[1]));}return {preset:r,adjust:o}}return null}function _o(e){let t=fi(e);if(t)return t.adjust.size>0?t.adjust:null;if(e.adjust)return e.adjust;let n=Wt(e);if(!n||e.node.shape.adjust.size===0)return null;let r=presetGeometryDefinition(n);if(!r)return null;let o=new Map;for(let[l,a]of e.node.shape.adjust){let s=r.avLst[l-1];s&&o.set(s.name,Ih(n,s.name,a));}return o}var Rh=new Set(["adj1","adj2","adj3","adj4","adj5"]),Dh=new Set(["pie","blockArc","arc","chord","circularArrow"]);function Ih(e,t,n){return Dh.has(e)&&Rh.has(t)&&Math.abs(n)>1?Math.round(n*6e4):Math.round(n*1e5)}function Pr(e,t=e){let n=Ro(t);if(!n)return null;let r=e.node.algorithm.params.get("autoTxRot")??"upr";return Oh(Wt(t),n,_o(t),Do(t),r)}function Sn(e,t){let n=t.node.parent;return t.node.shape.type==="conn"&&n?e.states[n.index]:t}var wn=DRAWINGML_MAIN_NAMESPACE_URI,zh="http://schemas.microsoft.com/office/drawing/2008/diagram",Fh=512,jh=new Set(["arc","line","lineInv","straightConnector1","bentConnector3"]);function Bh(e,t){let n=[];for(let r of e.states){if(r.hidden||!r.box||!(r.box.w>0)||!(r.box.h>0)){if(!r.hidden&&Mn(mt(t,r)))return null;continue}let o=Wt(r),l=mt(t,r),a=r.node.showsText&&l.length>0;if(r.path!==null||o!==null&&o!=="conn"&&!r.node.shape.hideGeometry)n.push({owner:r,text:a?r:null,textOnly:false});else if(a){let i=null;for(let c=n.length-1;c>=0;c--){let u=n[c];if(!(u.textOnly||u.owner.node.assoc!==r.node.assoc)&&!(u.owner.path||jh.has(Wt(u.owner)??""))){u.text||(i=u);break}}i?i.text=r:Mn(l)&&n.push({owner:r,text:r,textOnly:true});}if(n.length>Fh)return null}return n}function Me(e){return String(Math.round(Number.isFinite(e)?e:0))}function mi(e){return Math.round((e%360+360)%360*6e4)%216e5}function Vh(e){let t=e.node.pres.prSet,n=Number(G(t,"presStyleIdx")??"0"),r=Number(G(t,"presStyleCnt")??"1");return {index:Number.isInteger(n)&&n>=0?n:0,count:Number.isInteger(r)&&r>0?r:1}}function wr(e,t,n,r){let o=ii(n)??(r?ft(r):null)??"";return `<a:${e} idx="${escapeXmlAttribute(t)}">${o}</a:${e}>`}function Uh(e,t){let n=t.node.styleLabel,r=ai(e.styleDef,n),{index:o,count:l}=Vh(t),a=s=>si(e.colorsDef,n,s,o,l,e.resolveSchemeColor);return "<dsp:style>"+wr("lnRef",r.line.idx,a("linClrLst"),r.line.color)+wr("fillRef",r.fill.idx,a("fillClrLst"),r.fill.color)+wr("effectRef",r.effect.idx,a("effectClrLst"),r.effect.color)+wr("fontRef",r.font.idx,a("txFillClrLst"),r.font.color)+"</dsp:style>"}var Hh=new Set(["noFill","solidFill","gradFill","blipFill","pattFill","grpFill"]);function $h(e){return e==="xfrm"||e==="prstGeom"||e==="custGeom"?null:Hh.has(e)?"fill":e}var Gh=64;function Wh(e,t){let n=t.owner,r=[n.node.pres.spPr],o=[];for(let i of t.text&&t.text!==n?[n,t.text]:[n])for(let c of e.model.presOf.get(i.node.pres.modelId)??[])o.length<Gh&&!o.includes(c)&&o.push(c);for(let i of o)r.push(e.model.points.get(i)?.spPr??null);let l=new Map;for(let i of r)if(i)for(let c of i.children){if(!isElement(c)||c.namespaceUri!==wn)continue;let u=$h(c.localName);u===null||l.has(u)||u==="fill"&&n.path||l.set(u,ft(c)??"");}let a=["fill","ln","effectLst","effectDag","scene3d","sp3d"],s="";for(let i of a)s+=l.get(i)??"";for(let[i,c]of l)a.includes(i)||(s+=c);return s}function Xh(e){let t="";return e.forEach((n,r)=>{let o=r===0?"moveTo":"lnTo";t+=`<a:${o}><a:pt x="${Me(n.x)}" y="${Me(n.y)}"/></a:${o}>`;}),`<a:custGeom><a:avLst/><a:gdLst/><a:ahLst/><a:cxnLst/><a:rect l="0" t="0" r="0" b="0"/><a:pathLst><a:path>${t}</a:path></a:pathLst></a:custGeom><a:noFill/>`}function qh(e){if(e.path)return Xh(e.path);let t=Wt(e)??"rect",n=_o(e),r="";if(n)for(let[o,l]of n)r+=`<a:gd name="${escapeXmlAttribute(o)}" fmla="val ${Math.round(l)}"/>`;return `<a:prstGeom prst="${escapeXmlAttribute(t)}"><a:avLst>${r}</a:avLst></a:prstGeom>`}function zo(e,t){let n="",r="",o=null;if(e){for(let s of e.attributes)if(!(s.namespaceUri!==""||s.localName==="kern")){if(s.localName==="sz"){/^\d{3,6}$/.test(s.value)&&(o=s.value);continue}/^[A-Za-z][\w.-]*$/.test(s.localName)&&(n+=` ${s.localName}="${escapeXmlAttribute(s.value)}"`);}for(let s of e.children)isElement(s)&&s.namespaceUri===wn&&(r+=ft(s)??"");}let l=o??String(Math.round(t*100)),a=`<a:rPr${n} sz="${l}" kern="1200"`;return r===""?`${a}/>`:`${a}>${r}</a:rPr>`}function Pn(e,t){for(let n of e.children)if(isElement(n)&&n.namespaceUri===wn&&n.localName===t)return n;return null}function Yh(e,t,n,r){let o=n.node.algorithm.params,l=e.level>0,a=Pn(e.element,"pPr")?.attributes.find(y=>y.localName==="algn")?.value,s=a&&/^(l|ctr|r|just|dist|justLow|thaiDist)$/.test(a)?a:l?o.get("shpTxLTRAlignCh")??"l":o.get("parTxLTRAlign")??"ctr",i=l&&yn(r,n.node.pres,"bulletEnabled")==="1",c=i?Math.round(t*.409*Ue):0,u=i?c*e.level:0,f=Oo(n,e.level),d=`<a:p><a:pPr marL="${u}" lvl="${e.level}" indent="${-c}" algn="${escapeXmlAttribute(s)}" defTabSz="${Math.round(t*44450)}"><a:lnSpc><a:spcPct val="${Math.round(No*1e5)}"/></a:lnSpc><a:spcBef><a:spcPct val="0"/></a:spcBef><a:spcAft><a:spcPct val="${Math.round(f*1e5)}"/></a:spcAft>`+(i?'<a:buChar char="&#x2022;"/>':"<a:buNone/>")+"</a:pPr>",m=0;for(let y of e.element.children)if(!(!isElement(y)||y.namespaceUri!==wn))if(y.localName==="r"){let p=Pn(y,"t"),v=p?ft(p)??"<a:t/>":"<a:t/>";d+=`<a:r>${zo(Pn(y,"rPr"),t)}${v}</a:r>`,m++;}else y.localName==="br"&&(d+=`<a:br>${zo(Pn(y,"rPr"),t)}</a:br>`);let h=Pn(e.element,"endParaRPr");return (m===0||h)&&(d+=zo(h,t).replace("<a:rPr","<a:endParaRPr").replace("</a:rPr>","</a:endParaRPr>")),`${d}</a:p>`}function Kh(e){let t=e.node.algorithm.params.get("txAnchorVert")??"mid";return t==="t"?"t":t==="b"?"b":"ctr"}function Qh(e,t){let n=t.text;if(!n)return "";let r=mt(e.model,n),o=Io(n),[l,a,s,i]=o.margins,c=`<dsp:txBody><a:bodyPr spcFirstLastPara="0" vert="horz" wrap="square" lIns="${Me(l)}" tIns="${Me(a)}" rIns="${Me(s)}" bIns="${Me(i)}" numCol="1" spcCol="1270" anchor="${Kh(n)}" anchorCtr="0"><a:noAutofit/></a:bodyPr><a:lstStyle/>`;for(let f of r){let d=Math.max(1,Math.round(f.level>0?o.secondary:o.primary));c+=Yh(f,d,n,e.model);}c+="</dsp:txBody>";let u=Pr(n,Sn(e.solution,n));if(u){let f=u.rotation?` rot="${mi(u.rotation)}"`:"";c+=`<dsp:txXfrm${f}><a:off x="${Me(u.x)}" y="${Me(u.y)}"/><a:ext cx="${Me(u.w)}" cy="${Me(u.h)}"/></dsp:txXfrm>`;}return c}function Zh(e,t){let n=t.owner,r=Ro(n);if(!r)return null;let o=Do(n),l=o?` rot="${mi(o)}"`:"",a=n.flipH?' flipH="1"':"",s=t.textOnly?"<a:noFill/><a:ln><a:noFill/></a:ln>":Wh(e,t);return `<dsp:sp modelId="${escapeXmlAttribute(n.node.pres.modelId)}"><dsp:nvSpPr><dsp:cNvPr id="0" name=""/><dsp:cNvSpPr/></dsp:nvSpPr><dsp:spPr><a:xfrm${l}${a}><a:off x="${Me(r.x)}" y="${Me(r.y)}"/><a:ext cx="${Me(r.w)}" cy="${Me(r.h)}"/></a:xfrm>`+qh(n)+s+"</dsp:spPr>"+Uh(e,t.text??n)+Qh(e,t)+"</dsp:sp>"}function hi(e,t,n,r,o){let l=Bh(e,t);if(!l)return null;let a={solution:e,model:t,styleDef:n,colorsDef:r,resolveSchemeColor:o},s="";for(let c of l){let u=Zh(a,c);u&&(s+=u);}return {xml:`<dsp:drawing xmlns:dsp="${zh}" xmlns:a="${wn}"><dsp:spTree><dsp:nvGrpSpPr><dsp:cNvPr id="0" name=""/><dsp:cNvGrpSpPr/></dsp:nvGrpSpPr><dsp:grpSpPr/>${s}</dsp:spTree></dsp:drawing>`,shapes:l}}var Jh={"Carlito-Regular":[1221,"6a92b5due3jviy658f8fdudu6y8i70aqe3e3e3e3e3e3e3e3e3e37g7gdududucvoug3f4eth3dkcrhjhb708vegbonrhyieedipf3crdjhufroqefdjd08jaq8jdudu83dbelbreldu8hd3el6d6ncn6dm7elenelel9pav9belckjvc1claz8qcs8qdu6a92due3due3duduaxn6b6e8due3e3ay9fdu9c9a84faga708j6ubqe8hoinircvg3g3g3g3g3g3l7etdkdkdkdk70707070hdhyieieieieieduighuhuhuhudjedendbdbdbdbdbdblhbrdudududu6d6d6d6delelenenenenenduepelelelelclelcl"],"Carlito-Bold":[1221,"6a92c6due3k9jl6h8o8odudu768i7fbye3e3e3e3e3e3e3e3e3e37o7odududucvoyguflephidkcrhphj7f97f7broaibisesj2fnd5dri5gfp6fbegda91by91dudu8cdqexbmexdz8sd6ex6u73dc6umlexeyexex9vb39nexd5kpcrd6b19kd79kdu6a92due3due3dudubjn6bkezdue3e3au9idu9e9c8dfngm7g8f70c3eziaj7jicvguguguguguguljepdkdkdkdk7f7f7f7fhribisisisisisduixi5i5i5i5egesffdqdqdqdqdqdqljbmdzdzdzdz6u6u6u6uexexeyeyeyeyeyduf4exexexexd6exd6"],"Caladea-Regular":[1300,"647yaxh7e2oqj36lamambvfe5p955qdmeda2d4ctdod7d2d2dhda7c7cfefefebqolgng3efhdf0e5ezjc9j8ghidxooj9gnetgnh1clfhj3gmopfvfhe39qdm9qfeab47d2egbpegc98pcrfe7p73el7jmlfidcegdxb0aw91f6d2k0dfdebwar8sarjs647yc9eof4gx8sdw79nnbldnfe98nn7qaffebbbb47f4gc2y7xbbbwdnn1o3o2bqgngngngngngno2eff0f0f0f09j9j9j9jiej9gngngngngnfei5j3j3j3j3fhfygtd2d2d2d2d2d2jobpc9c9c9c97p7p7p7peqfidcdcdcdcdcfedmf6f6f6f6def7de"],"Caladea-Bold":[1300,"649bbqh6f3r4kk6zbcbcclgg6g8n6ee1etcqe3e4fdegeydqfgeu7s7sggggggckpli5hmfbigfjeugajz9y9giwf1nhj2hzghhzhsd5gbjbhkqnh4gbfea8e1a8ggab54elfscifue99be4go8k89gd8norgseqfxfjcmcca5gxeflnelehcwax8waxgg649bd1fggbgs8wet86nnboergg9dnn8naiggc5c553gtgc3w7xc5c4eroxp4qycki5i5i5i5i5i5ogfbfjfjfjfj9y9y9y9yjpj2hzhzhzhzhzggjbjbjbjbjbgbh5itelelelelelelm2cie9e9e9e98k8k8k8nfwgseqeqeqeqeqggftgxgxgxgxehgfeh"],"LiberationSans-Regular":[1117,"7q7q9vfgfgopij5b9999atg87q997q7qfgfgfgfgfgfgfgfgfgfg7q7qg8g8g8fgs7ijijk2k2ijgzlmk27qdwijfgn5k2lmijlmk2ijgzk2ijq8ijijgz7q7q7qd1fg99fgfgdwfgfg7qfgfg6666dw66n5fgfgfgfg99dw7qfgdwk2dwdwdw9a789ag87q99fgfgfgfg78fg99khaafgg899khfcb4f9999999g0ex999999a5fgn6n6n6gzijijijijijijrsk2ijijijij7q7q7q7qk2k2lmlmlmlmlmg8lmk2k2k2k2ijijgzfgfgfgfgfgfgopdwfgfgfgfg7q7q7q7qfgfgfgfgfgfgfgf9gzfgfgfgfgdwfgdw"],"LiberationSans-Bold":[1117,"7q99d6fgfgopk26m9999atg87q997q7qfgfgfgfgfgfgfgfgfgfg9999g8g8g8gzr3k2k2k2k2ijgzlmk27qfgk2gzn5k2lmijlmk2ijgzk2ijq8ijijgz997q99g8fg99fggzfggzfg99gzgz7q7qfg7qopgzgzgzgzatfg99gzfglmfgfgdwat7satg87q99fgfgfgfg7sfg99khaafgg899khfcb4f9999999g0fg999999a5fgn6n6n6gzk2k2k2k2k2k2rsk2ijijijij7q7q7q7qk2k2lmlmlmlmlmg8lmk2k2k2k2ijijgzfgfgfgfgfgfgopfgfgfgfgfg7q7q7q7qgzgzgzgzgzgzgzf9gzgzgzgzgzfggzfg"],"LiberationSerif-Regular":[1107,"6y99bcdwdwn5lm509999dwfo6y996y7qdwdwdwdwdwdwdwdwdwdw7q7qfofofoccplk2ijijk2gzfgk2k299atk2gzopk2k2fgk2ijfggzk2k2q8k2k2gz997q99d1dw99ccdwccdwcc99dwdw7q7qdw7qlmdwdwdwdw99at7qdwdwk2dwdwccdc5kdcf16y99dwdwdwdw5kdw99l47odwfo99l4dwb4f98c8c99g0cl99998c8mdwkukukucck2k2k2k2k2k2opijgzgzgzgz99999999k2k2k2k2k2k2k2fok2k2k2k2k2k2fgdwccccccccccccijcccccccccc7q7q7q7qdwdwdwdwdwdwdwf9dwdwdwdwdwdwdwdw"],"LiberationSerif-Bold":[1107,"6y99ffdwdwrsn57q9999dwfu6y996y7qdwdwdwdwdwdwdwdwdwdw9999fufufudwpuk2ijk2k2ijgzlmlmatdwlmijq8k2lmgzlmk2fgijk2k2rsk2k2ij997q99g5dw99dwfgccfgcc99dwfg7q99fg7qn5fgdwfgfgccat99fgdwk2dwdwccay64ayeg6y99dwdwdwdw64dw99kr8cdwfu99krdwb4f98c8c99g0f099998c96dwkukukudwk2k2k2k2k2k2rsk2ijijijijatatatatk2k2lmlmlmlmlmfulmk2k2k2k2k2gzfgdwdwdwdwdwdwk2cccccccccc7q7q7q7qdwfgdwdwdwdwdwf9dwfgfgfgfgdwfgdw"]},ep={calibri:"Carlito",carlito:"Carlito","calibri light":"Carlito",aptos:"Carlito",cambria:"Caladea",caladea:"Caladea",arial:"LiberationSans",helvetica:"LiberationSans","liberation sans":"LiberationSans","times new roman":"LiberationSerif",times:"LiberationSerif","liberation serif":"LiberationSerif",georgia:"LiberationSerif"},pi=new Map;function yi(e){return e<=57?e-48:e-87}function xi(e){let t=pi.get(e);if(!t){let[n,r]=Jh[e],o=new Uint16Array(r.length/2);for(let l=0;l<o.length;l++)o[l]=yi(r.charCodeAt(2*l))*36+yi(r.charCodeAt(2*l+1));t={lineHeight:n,widths:o},pi.set(e,t);}return t}function tp(e,t){return t>=32&&t<=126?e[t-32]:t>=160&&t<=255?e[t-160+95]:t>=11904?1e3:e[78]}function gi(e,t){return `${ep[e.trim().toLowerCase()]??"Carlito"}-${t?"Bold":"Regular"}`}var bi={width(e,t,n,r){let{widths:o}=xi(gi(n,r)),l=0;for(let a=0;a<e.length;a++)l+=tp(o,e.charCodeAt(a));return l/1e3*t},lineHeight(e,t){return xi(gi(t,false)).lineHeight/1e3*e}};var np=1024,rp=5,op=10;function lp(e,t){if(t.for==="self")return [e];let n=[],r=(o,l)=>{for(let a of o.children)n.push(a),l&&r(a,true);};return r(e,t.for==="des"),n.filter(o=>(t.forName===null||o.name===t.forName)&&vo(o.assocType,t.ptType))}function ap(e,t){let n=e.model.presOf.get(t.pres.modelId)??[];for(let r of [t.assoc,...n]){let o=e.model.points.get(r)?.prSet?.attributes.find(l=>l.localName==="custT")?.value;if(o==="1"||o==="true")return true}return false}var sp=1e-6;function Ci(e){return e.type==="w"||e.type==="h"}function Ar(e){return Ci(e)&&e.val===1/0&&!Number.isFinite(e.fact)}function Mi(e,t,n){let r=0,o=b=>r>=np?null:(r++,ti(e,t,b)),l=o(new Map);if(!l)return null;let a=new Map,s=new Map;for(let b of e.nodes)for(let S of b.rules){let E=lp(b,S);s.set(S,E.map(A=>A.index));for(let A of E){let D=a.get(A.index);D||a.set(A.index,D=[]),D.push(S);}}let i=new Map,c=new Set;for(let b of e.nodes){if(!ap(e,b))continue;let S=0;for(let E of mt(e.model,l.states[b.index]))S=Math.max(S,E.explicitSize??0);S>0&&(i.set(Ie(b.index,Eo),S),c.add(b.index));}let u=[];for(let b of e.nodes){let S=a.get(b.index);if(!S)continue;let E=mt(e.model,l.states[b.index]);if(!Mn(E))continue;let D=E.filter(w=>w.text.trim()!=="").every(w=>w.explicitSize!==null);u.push({node:b,rules:S,paragraphs:E,fixedText:D});}let f=b=>!c.has(b.node.index)&&!b.fixedText&&b.rules.some(S=>Cr(S.type)),d=(b,S,E)=>{for(let A of b.groups)if(A.type===E&&A.members.includes(S))return A.members;return [S]},m=(b,S,E)=>{let A=b.states[S.node.index],D=Sn(b,A),w=A;if(E&&E.size>0&&D===A&&A.box){let k={...A.box},L=new Map(A.values);for(let[O,C]of E)O==="w"?k.w=C:k.h=C,L.set(O,C);w={...A,box:k,values:L};}let T=Pr(w,D===A?w:D);return T?di(w,S.paragraphs,T,n.measurer,n.fontFamily):{fits:true,wordsFit:true}},h=(b,S,E,A)=>{let D=b.states[S.node.index];if(Sn(b,D)!==D||!D.box)return null;let w=E.type;if(D.tied.has(w))return null;let T=A.get(w)??(w==="w"?D.box.w:D.box.h);if(!(T>0))return null;let k=C=>m(b,S,new Map(A).set(w,C)).fits,L=T,O;if(Ar(E)){O=T*2;for(let C=1;!k(O);C++){if(C>=op)return O;L=O,O*=2;}}else {let C=D.bases.get(w),N=Number.isFinite(E.fact)&&C!==void 0?E.fact*C:NaN;if(!Number.isFinite(N)&&Number.isFinite(E.val)&&(N=E.val*bn),!Number.isFinite(N)||N<=T)return null;if(!k(N))return N;O=N;}for(let C=0;C<rp;C++){let N=(L+O)/2;k(N)?O=N:L=N;}return O},y=(b,S,E)=>{let A=new Map,D=m(b,S);for(let w of E){if(D.fits)break;if(w.type==="h"&&!D.wordsFit)continue;let T=h(b,S,w,A);T!==null&&(A.set(w.type,T),D=m(b,S,A));}return A},p=(b,S,E,A,D)=>{let w=b.states[S.node.index];for(let[T,k]of E){let L=D?k/(w.flowScale.get(T)??1):k;for(let O of d(b,S.node.index,T)){let C=Ie(O,T);A.set(C,Math.max(A.get(C)??0,L));}}},v=(b,S)=>{let E=o(b);if(!E)return null;let A=new Map(b),D=false;for(let T of u){if(f(T)&&!S.has(T.node.index))continue;let k=y(E,T,T.rules.filter(Ar));k.size!==0&&(p(E,T,k,A,true),D=true);}if(!D)return {solution:E,fixed:b};let w=o(A);return w?{solution:w,fixed:b}:null},P=new Set,x=v(i,P);if(!x)return null;let g=b=>b.overflow>=1-sp,M=new Set;for(let b of u)b.rules.forEach((S,E)=>{if(!x)return;let A=m(x.solution,b);if(Ci(S)){if(A.fits||S.type==="h"&&!A.wordsFit)return;let U=h(x.solution,b,S,new Map);if(U===null)return;let $=new Map(x.fixed);p(x.solution,b,new Map([[S.type,U]]),$,Ar(S)),x=v($,P)??x;return}if(!Cr(S.type)||!f(b)||M.has(S))return;let D=x.solution,w=new Set;for(let U of s.get(S)??[b.node.index])for(let $ of d(D,U,S.type))w.add($);let T=u.filter(U=>w.has(U.node.index)&&f(U));if(T.every(U=>m(D,U).fits)&&g(D))return;M.add(S);let k=x.solution.states[b.node.index].values.get(S.type);if(k===void 0)return;let L=Number.isFinite(S.val)?Math.max(1,Math.ceil(S.val)):1;if(Math.floor(k)<=L)return;let O=false;for(let U of b.rules.slice(E+1)){if(Cr(U.type))break;Ar(U)&&(O=true);}let C=O?w:P,N=x.fixed,R=U=>{let $=new Map(N);for(let X of w)c.has(X)||$.set(Ie(X,S.type),U);return v($,C)},_=R(L);if(!_)return;let I=g(_.solution)&&!g(x.solution),j=T.filter(U=>m(_.solution,U).fits);if(!I&&j.length===0){x=_;return}let V=U=>j.every($=>m(U.solution,$).fits)&&(!I||g(U.solution)),B=_,H=L+1,W=Math.floor(k);for(;H<=W;){let U=Math.floor((H+W)/2),$=R(U);if(!$)break;V($)?(B=$,H=U+1):W=U-1;}x=B;});return x.solution}var cp="/word/diagrams/synthesized-drawing.xml",up=new Set(["urn:microsoft.com/office/officeart/2008/layout/HalfCircleOrganizationChart"]);function Si(e,t,n={}){if(!(t.cx>0)||!(t.cy>0))return null;let r=bs(e.dataModel);if(!r)return null;let o=As(r,e.layoutDef);if(!o||o.nodes.some(c=>!Hs(c.algorithm.type))||o.nodes.some(c=>c.algorithm.type==="hierRoot"&&!["std","init"].includes(yn(r,c.pres,"hierBranch")))||up.has(e.layoutDef.attributes.find(c=>c.localName==="uniqueId")?.value??""))return null;let a=Mi(o,t,{measurer:n.measurer??bi,fontFamily:n.fontFamily??"Calibri"});if(!a)return null;let s=hi(a,r,e.styleDef,e.colorsDef,n.resolveSchemeColor);if(!s||s.shapes.length===0)return null;let i=readOoxmlPart(s.xml,{name:cp,contentType:"application/vnd.ms-office.drawingml.diagramDrawing+xml"});return i.ok?i.part.root:null}var pp=DRAWINGML_MAIN_NAMESPACE_URI,yp=127e4;function vn(e,t){let n=schemaAttributeValue(e.attributes,t);return n===void 0?void 0:n.replace(/[ \t\n\r]+/g," ").trim()}function ht(e,t){let n=vn(e,t);return n===void 0||!/^\d{1,10}$/.test(n)?0:Math.min(yp,Number(n))}function Er(e,t,n){let r=vn(e,t)??"";return r===""?n:/^-?\d{1,9}$/.test(r)?Number(r):null}function qt(e,t,n){let r=vn(e,t);return r===void 0?n:/^-?\d{1,7}$/.test(r)?Number(r)/1e5:/^-?\d{1,4}(\.\d{1,3})?%$/.test(r)?Number(r.slice(0,-1))/100:null}function Pi(e,t,n){let r=e.children.find(isElement);return r?{nodeId:r.id,color:resolveColorNode(r,t,n)}:null}function pt(e,t){return findDirectChild(e.children,{namespaceUri:pp,localName:t})}function xp(e){let t=pt(e,"sp3d");if(!t)return null;let n=pt(t,"bevelT"),r=n??pt(t,"bevelB");return {nodeId:t.id,prstMaterial:schemaAttributeValue(t.attributes,"prstMaterial")??null,bevel:r?{nodeId:r.id,edge:n?"bevelT":"bevelB",w:ht(r,"w")}:null}}function jo(e,t,n){let r=xp(e);if(!t)return {effectList:null,glow:null,innerShadow:null,reflection:null,softEdge:null,bevel:r};let o=t.effectLst,l=pt(o,"glow"),a=pt(o,"innerShdw"),s=pt(o,"reflection"),i=pt(o,"softEdge");return {effectList:{nodeId:o.id,fromTheme:t.fromTheme},glow:l?{nodeId:l.id,rad:ht(l,"rad"),color:Pi(l,n,t.placeholder)}:null,innerShadow:a?{nodeId:a.id,blurRad:ht(a,"blurRad"),dist:ht(a,"dist"),dir:/^\d{1,9}$/.test(vn(a,"dir")??"0")?Number(vn(a,"dir")??"0"):0,color:Pi(a,n,t.placeholder)}:null,reflection:s?{nodeId:s.id,blurRad:ht(s,"blurRad"),stA:qt(s,"stA",1),stPos:qt(s,"stPos",0),endA:qt(s,"endA",0),endPos:qt(s,"endPos",1),dist:ht(s,"dist"),dir:Er(s,"dir",0),fadeDir:Er(s,"fadeDir",54e5),sx:qt(s,"sx",1),sy:qt(s,"sy",1),kx:Er(s,"kx",0),ky:Er(s,"ky",0),algn:schemaAttributeValue(s.attributes,"algn")??"b"}:null,softEdge:i?{nodeId:i.id,rad:ht(i,"rad")}:null,bevel:r}}function Bo(e){return !!(e.glow||e.innerShadow||e.reflection||e.softEdge||e.bevel)}function wi(e){let t=e?.color?.color;return !e||!t||t.alpha<=0||e.rad<=0?null:{radiusEmu:e.rad,hex:t.hex,alpha:t.alpha}}function gp(e){if(!e)return null;let t=e.color?e.color.color:{hex:"000000",alpha:1};if(!t||t.alpha<=0)return null;let n=e.dir/6e4*Math.PI/180;return {dxEmu:e.dist*Math.cos(n),dyEmu:e.dist*Math.sin(n),blurEmu:e.blurRad,hex:t.hex,alpha:t.alpha}}function bp(e){if(!e)return null;let{sx:t,sy:n,stA:r,stPos:o,endA:l,endPos:a,algn:s}=e;return t!==1||n!==-1||e.kx!==0||e.ky!==0||e.dir!==54e5||e.fadeDir!==54e5||o!==0||s!=="b"&&s!=="bl"&&s!=="br"||r===null||l===null||a===null||a<=0?null:{startAlpha:Math.max(0,Math.min(1,r)),endAlpha:Math.max(0,Math.min(1,l)),endPosition:Math.min(1,a),distanceEmu:e.dist,blurEmu:e.blurRad}}var Cp=Object.freeze({hex:"000000",alpha:.55}),Mp=76200;function Sp(e){let t=e.bevel;if(!t||t.prstMaterial!=="dkEdge"||!t.bevel)return null;let n=t.bevel.w||Mp;return {widthEmu:Math.max(3175,Math.min(25400,n)),...Cp}}function Pp(e,t,n){let r=Math.abs(e.dxEmu)+Math.abs(e.dyEmu)+e.blurEmu*2+1;return {subpathsEmu:[[{x:-r,y:-r},{x:n.cx+r,y:-r},{x:n.cx+r,y:n.cy+r},{x:-r,y:n.cy+r}],...t],subpathsClosed:[true,...t.map(()=>true)],fillHex:e.hex,fillAlpha:1,strokeHex:null,strokeAlpha:1,strokeWidthEmu:0,shadow:{...e,dxEmu:-e.dxEmu,dyEmu:-e.dyEmu,blurEmu:e.blurEmu*2},shadowOnly:true,clipEmu:t}}function vi(e,t,n,r,o=0){return {subpathsEmu:t,subpathsClosed:n,fillHex:r?e.hex:null,fillAlpha:1,strokeHex:e.hex,strokeAlpha:1,strokeWidthEmu:e.radiusEmu+o,strokeJoin:"round",strokeCap:"round",shadow:{dxEmu:0,dyEmu:0,blurEmu:e.radiusEmu*2/3,hex:e.hex,alpha:e.alpha},shadowOnly:true}}function wp(e){let t=0,n=1/0,r=1/0,o=-1/0,l=-1/0;for(let s=0;s<e.length;s+=1){let i=e[s],c=e[(s+1)%e.length];t+=i.x*c.y-c.x*i.y,n=Math.min(n,i.x),o=Math.max(o,i.x),r=Math.min(r,i.y),l=Math.max(l,i.y);}let a=(o-n)*(l-r);return a>0&&Math.abs(t)>a*1e-9}var vp=e=>e.flatMap(t=>t.subpathsEmu.map((n,r)=>t.subpathsClosed?.[r]!==false));function Ap(e,t,n){let r=[...t],o=gp(e.innerShadow),l=r.find(u=>!u.shadowOnly&&u.fillHex!==null);o&&l&&r.splice(r.indexOf(l)+1,0,Pp(o,l.subpathsEmu,n));let a=wi(e.glow),s=r.filter(u=>!u.shadowOnly);if(a&&s.length){let u=s.filter(d=>d.fillHex!==null),f=u.length?u:s;r.unshift(vi(a,f.flatMap(d=>d.subpathsEmu),vp(f),u.length>0,u.length?0:f.reduce((d,m)=>Math.max(d,m.strokeWidthEmu),0)));}let i=Sp(e),c=i?r.find(u=>u.fillHex!==null&&u.subpathsClosed?.every(Boolean)!==false&&u.subpathsEmu.every(wp)):void 0;return i&&c&&r.push({subpathsEmu:c.subpathsEmu,subpathsClosed:c.subpathsClosed,fillHex:null,fillAlpha:1,strokeHex:i.hex,strokeAlpha:i.alpha,strokeWidthEmu:i.widthEmu,strokeInset:true}),r}function Ep(e,t){let n=bp(e.reflection),r=e.softEdge?.rad??0,o=wi(e.glow),l=o&&t?.length?vi(o,t,t.map(()=>true),true):null;return !n&&!(r>0)&&!l?null:{...n||r>0?{effects:{...n?{reflection:n}:{},...r>0?{softEdgeEmu:r}:{}}}:{},...l?{underComponents:[l]}:{}}}var kp={shape({spPr:e,effectList:t,components:n,extent:r,resolveSchemeColor:o}){let l=jo(e,t,o);return Bo(l)?Ap(l,n,r):n},picture({spPr:e,effectList:t,outlineEmu:n,resolveSchemeColor:r}){let o=jo(e,t,r);return Bo(o)?Ep(o,n):null}},Ai=Object.freeze(kp);var Vo=null,Uo=null,Tp={async replay(...e){Vo??=import('./metafile-replay-FQK2GCTR.js');let t;try{t=await Vo;}catch{return Vo=null,null}return t.replayMetafile(...e)},async rasterize(...e){Uo??=import('./metafile-raster-YDSJWU5A.js');let t;try{t=await Uo;}catch{return Uo=null,null}return t.rasterizeMetafile(...e)}},Ei=Object.freeze(Tp);function Yt(e,t){let n=Math.max(0,Math.min(1,t)),r="";for(let o=0;o<6;o+=2){let l=Math.round(Number.parseInt(e.slice(o,o+2),16)*n);r+=l.toString(16).padStart(2,"0");}return r.toUpperCase()}var Lp=.48;function Ho(e,t){let n=e.ambient;for(let r of e.lights){let o=Math.hypot(r.x,r.y,r.z);if(!(o>0))continue;let l=(t[0]*r.x+t[1]*r.y+t[2]*r.z)/o;n+=r.level*Math.max(0,l);}return Math.max(0,Math.min(1,n))}function Ti(e){return Lp*Ho(e,[0,0,1])}function ki(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n],o=e[(n+1)%e.length];t+=r.x*o.y-o.x*r.y;}return t}function Li(e,t,n){let r=-t.frontDxPt,o=-t.frontDyPt;if(r===0&&o===0)return [];let l=0;for(let d of e){let m=ki(d);Math.abs(m)>Math.abs(l)&&(l=m);}let a=l>=0?1:-1,s=e.map((d,m)=>{let h=0;for(let y of d)h+=y.x*r+y.y*o;return {index:m,depth:d.length?h/d.length:0}}).sort((d,m)=>d.depth-m.depth),i=[],c=e.map(d=>d.map(m=>({x:(m.x+r)*12700,y:(m.y+o)*12700})));i.push({subpathsEmu:c,fillHex:Yt(n,Ho(t,[0,0,-1])),fillAlpha:1,strokeHex:null,strokeAlpha:1,strokeWidthEmu:0});let u=null,f=()=>{u?.quads.length&&(i.push({subpathsEmu:u.quads,fillHex:Yt(n,u.step/32),fillAlpha:1,strokeHex:Yt(n,u.step/32),strokeAlpha:1,strokeWidthEmu:.25*12700,strokeJoin:"round",fillRule:"nonzero"}),u=null);};for(let{index:d}of s){let m=e[d];for(let h=0;h<m.length;h++){let y=m[h],p=m[(h+1)%m.length],v=p.x-y.x,P=p.y-y.y,x=Math.hypot(v,P);if(!(x>0))continue;let g=a*P/x,M=-a*v/x;if(g*r+M*o<=0)continue;let b=Math.round(Ho(t,[g,M,0])*32);u&&u.step!==b&&f(),u??={step:b,quads:[]};let S=[y,p,{x:p.x+r,y:p.y+o},{x:y.x+r,y:y.y+o}];ki(S)<0&&S.reverse(),u.quads.push(S.map(E=>({x:E.x*12700,y:E.y*12700})));}f();}return f(),i}function Ni(e){if(!e||typeof e!="object")return null;let t=e;return Array.isArray(t.guides)&&typeof t.fontSizePt=="number"?e:null}function Oi(e){let t=[],n=[],r={x:0,y:0},o=0,l=()=>{n.length>2&&t.push(n),n=[];};for(let a of e.matchAll(/([MLQCZ])([^MLQCZ]*)/gu)){let s=a[1],i=a[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(!i.every(Number.isFinite))return null;let c={M:2,L:2,Q:4,C:6,Z:0}[s];if(i.length!==c)return null;if(s==="M")l(),r={x:i[0],y:i[1]},n.push(r);else if(s==="L")r={x:i[0],y:i[1]},n.push(r);else if(s==="Q"||s==="C"){let u=r;for(let f=1;f<=8;f++){let d=f/8,m=1-d;n.push(s==="Q"?{x:m*m*u.x+2*m*d*i[0]+d*d*i[2],y:m*m*u.y+2*m*d*i[1]+d*d*i[3]}:{x:m*m*m*u.x+3*m*m*d*i[0]+3*m*d*d*i[2]+d*d*d*i[4],y:m*m*m*u.y+3*m*m*d*i[1]+3*m*d*d*i[3]+d*d*d*i[5]});}r=s==="Q"?{x:i[2],y:i[3]}:{x:i[4],y:i[5]};}else l();if(o+=8,o>6e4)return null}return l(),t}function Ri(e,t){let n=0,r=[];for(let o of e){let l=[];for(let a=0;a<o.length;a++){let s=o[a],i=o[(a+1)%o.length],c=Math.max(1,Math.ceil(Math.hypot(i.x-s.x,i.y-s.y)/t));if(n+=c,n>6e4)return null;for(let u=0;u<c;u++){let f=u/c;l.push({x:s.x+(i.x-s.x)*f,y:s.y+(i.y-s.y)*f});}}r.push(l);}return r}function Di(e){if(e.length<2)return null;let t=[0];for(let r=1;r<e.length;r++){let o=e[r-1],l=e[r];t.push(t[r-1]+Math.hypot(l.x-o.x,l.y-o.y));}let n=t[t.length-1];return n>0?{points:e,lengths:t,length:n}:null}function $o(e,t){let{points:n,lengths:r}=e,o=1;if(t>=e.length)o=n.length-1;else if(t>0){let u=1,f=n.length-1;for(;u<f;){let d=u+f>>1;r[d]<t?u=d+1:f=d;}o=u;}let l=n[o-1],a=n[o],s=r[o]-r[o-1],i=s>0?(t-r[o-1])/s:0,c=Math.hypot(a.x-l.x,a.y-l.y)||1;return {point:{x:l.x+(a.x-l.x)*i,y:l.y+(a.y-l.y)*i},tangent:{x:(a.x-l.x)/c,y:(a.y-l.y)/c}}}function Ii(e,t,n,r){let o=t.right-t.left||1,l=t.bottom-t.top||1;return e.map(a=>a.map(s=>{let i=(s.x-t.left)/o,c=(s.y-t.top)/l,u=$o(n,i*n.length).point,f=$o(r,i*r.length).point;return {x:u.x+(f.x-u.x)*c,y:u.y+(f.y-u.y)*c}}))}function _i(e,t,n,r,o){let l=(t.left+t.right)/2;return e.map(a=>a.map(s=>{let{point:i,tangent:c}=$o(n,n.length/2+(s.x-l)*r),u=(s.y-o)*r;return {x:i.x-c.y*u,y:i.y+c.x*u}}))}var yt=12700,Go=100,zi=7.2,Fi=3.6,Np=400,Op=.6,Dp=e=>e.map(t=>t.map(n=>({x:n.x*yt,y:n.y*yt})));function Ip(e,t,n,r){let o=!r&&t>4*zi?zi:0,l=!r&&n>4*Fi?Fi:0;return e.guides.map(a=>{let s=[];for(let i=0;i+1<a.length;i+=2)s.push({x:o+a[i]*(t-2*o),y:l+a[i+1]*(n-2*l)});return Di(s)})}function _p(e,t,n,r){let o=e.fill;if(!o)return {fillHex:null,fillAlpha:1};if(o.kind==="solid")return {fillHex:Yt(o.hex,n),fillAlpha:o.alpha};let l=o.stops.map(s=>({...s,hex:Yt(s.hex,n)})),a={kind:"linear",stops:l,coords:[0,r*yt,0,(t+r)*yt],matrix:[1,0,0,1,0,0]};return {fillHex:l[0].hex,fillAlpha:1,fillGradient:a}}function zp(e){let[t,n,r,o]=[1/0,1/0,-1/0,-1/0];for(let l of e)for(let a of l)t=Math.min(t,a.x),r=Math.max(r,a.x),n=Math.min(n,a.y),o=Math.max(o,a.y);return {left:t,top:n,right:r,bottom:o}}function ji(e){let t=Ni(e.textArt.renderData);if(!t)return null;let{widthPt:n,heightPt:r}=e;if(!(n>0&&r>0))return null;let o=e.outline(e.textArt.text,Go),l=o&&Oi(o.path);if(!o||!l?.length)return null;let a=o.ink,s=Ri(l,(a.right-a.left)/Np);if(!s)return null;let i=Ip(t,n,r,e.textArt.trim===true);if(!i.every(g=>g!==null))return null;let c;if(i.length===2)c=Ii(s,a,i[0],i[1]);else {let g=t.fontSizePt*Op/Go;c=_i(s,a,i[0],g,-0.35*Go);}let u=t.extrusion,f=u?{x:u.frontDxPt,y:u.frontDyPt}:{x:0,y:0};(f.x||f.y)&&(c=c.map(g=>g.map(M=>({x:M.x+f.x,y:M.y+f.y}))));let d=[];if(u){let g=u.hex??(t.fill?.kind==="solid"?t.fill.hex:null);d.push(...Li(c,u,g??"808080"));}let m=u?Ti(u):1,h=u?null:t.stroke,y=Dp(c);if(d.push({subpathsEmu:y,..._p(t,r,m,f.y),strokeHex:h?.hex??null,strokeAlpha:h?.alpha??1,strokeWidthEmu:(h?.widthPt??0)*yt,strokeJoin:"round",...t.shadow?{shadow:{dxEmu:t.shadow.dxPt*yt,dyEmu:t.shadow.dyPt*yt,blurEmu:0,hex:t.shadow.hex,alpha:t.shadow.alpha}}:{}}),!t.fill&&!h&&!u)return null;let p=h?h.widthPt/2:0,v=zp(c);u&&(v={left:Math.min(v.left,v.left-f.x),right:Math.max(v.right,v.right-f.x),top:Math.min(v.top,v.top-f.y),bottom:Math.max(v.bottom,v.bottom-f.y)}),t.shadow&&(v={left:Math.min(v.left,v.left+t.shadow.dxPt),right:Math.max(v.right,v.right+t.shadow.dxPt),top:Math.min(v.top,v.top+t.shadow.dyPt),bottom:Math.max(v.bottom,v.bottom+t.shadow.dyPt)});let P={left:v.left-p,top:v.top-p,right:v.right+p,bottom:v.bottom+p},x=P.left<0||P.top<0||P.right>n||P.bottom>r;return {components:d,...x?{inkBounds:P}:{}}}function An(e,t){return e.attributes.filter(n=>n.namespaceUri||!t.includes(n.localName)).map(n=>n.namespaceUri?`{${n.namespaceUri}}${n.localName}`:n.localName)}function xt(e,t){let n={};for(let r of t){let o=vmlAttribute(e,r);o!==void 0&&(n[r]=o);}return n}var Fp=["id","type","adj","path","coordsize","coordorigin","filled","fillcolor","stroked","strokecolor","strokeweight"],Bi=["on","fitshape","fitpath","string","trim","xscale"],Vi=["on","color","color2","opacity","type","angle","focus","focussize","focusposition","colors","method"],Ui=["on","color","weight","opacity","joinstyle"],Hi=["on","type","color","color2","offset","offset2","opacity","obscured"],$i=["on","type","render","backdepth","foredepth","color","colormode","viewpoint","viewpointorigin","skewangle","skewamt","brightness","lightposition","lightlevel","lightposition2","lightlevel2","lightharsh","lightharsh2","rotationangle","orientationangle"];function jp(e){let t=/^#_x0000_t(\d{3})$/.exec(e??""),n=t?Number(t[1]):NaN;return n>=136&&n<=175?n:null}function Wi(e){return {nodeId:e.id,...xt(e,Bi),style:vmlStyle(e),otherAttributes:An(e,[...Bi,"style"])}}function Xi(e){let t=e.attributes.find(n=>n.localName==="textpathok");return {nodeId:e.id,...t?{textpathok:t.value}:{},otherAttributes:e.attributes.filter(n=>n.localName!=="textpathok").map(n=>n.localName)}}function Bp(e){if(!vmlNamed(e,VML_NAMESPACE_URI,"shapetype"))return null;let t=[],n=[],r=[];for(let l of vmlChildren(e))if(vmlNamed(l,VML_NAMESPACE_URI,"formulas"))for(let a of vmlChildren(l))vmlNamed(a,VML_NAMESPACE_URI,"f")&&t.push(vmlAttribute(a,"eqn")??"");else vmlNamed(l,VML_NAMESPACE_URI,"textpath")?n.push(Wi(l)):vmlNamed(l,VML_NAMESPACE_URI,"path")&&r.push(Xi(l));let o=e.attributes.find(l=>l.namespaceUri===VML_OFFICE_NAMESPACE_URI&&l.localName==="spt");return {nodeId:e.id,...xt(e,["id","adj","path","coordsize","coordorigin"]),...o?{spt:o.value}:{},formulas:t,textPaths:n,paths:r}}function qi(e,t){if(!vmlNamed(e,VML_NAMESPACE_URI,"shape")||jp(vmlAttribute(e,"type"))===null)return null;let n=[],r=[],o=[],l=[],a=[],s=[],i=[],c=false;for(let u of vmlChildren(e)){vmlChildren(u).length&&(c=true);let f={nodeId:u.id};if(vmlNamed(u,VML_NAMESPACE_URI,"textpath"))n.push(Wi(u));else if(vmlNamed(u,VML_NAMESPACE_URI,"fill")){let d=vmlAttribute(u,"opacity2",VML_OFFICE_NAMESPACE_URI);r.push({...f,...xt(u,Vi),...d!==void 0?{opacity2:d}:{},otherAttributes:An(u,Vi).filter(m=>m!==`{${VML_OFFICE_NAMESPACE_URI}}opacity2`)});}else vmlNamed(u,VML_NAMESPACE_URI,"stroke")?o.push({...f,...xt(u,Ui),otherAttributes:An(u,Ui)}):vmlNamed(u,VML_NAMESPACE_URI,"path")?l.push(Xi(u)):vmlNamed(u,VML_NAMESPACE_URI,"shadow")?a.push({...f,...xt(u,Hi),otherAttributes:An(u,Hi)}):vmlNamed(u,VML_OFFICE_NAMESPACE_URI,"extrusion")?s.push({...f,...xt(u,$i),otherAttributes:An(u,$i).filter(d=>d!==`{${VML_NAMESPACE_URI}}ext`)}):i.push({...f,namespaceUri:u.namespaceUri,localName:u.localName,attributeCount:u.attributes.length});}return {shape:{nodeId:e.id,...xt(e,Fp),style:vmlStyle(e)},template:t?Bp(t):null,textPaths:n,fills:r,strokes:o,paths:l,shadows:a,extrusions:s,others:i,nestedChildren:c}}var En=e=>e.slice(1).toUpperCase(),kn=e=>Number.isFinite(e)&&e>=0&&e<=1,Qi=e=>/^(t|true|1)$/i.test(e??"");function Tn(e){return e===void 0?1:Xo(e)}function Xo(e){let t=e.trim();return /^-?\d{1,7}f$/.test(t)?Number(t.slice(0,-1))/65536:/^-?\d{1,3}(\.\d{1,6})?%$/.test(t)?Number(t.slice(0,-1))/100:vmlNumber(t)}function Zi(e){let t=e.fills[0];if(vmlOff(e.shape.filled)||t&&vmlOff(t.on))return null;let n=vmlColor(t?.color??e.shape.fillcolor,"#ffffff"),r=Tn(t?.opacity);if(!n||!kn(r))return;let o=t?.type??"solid";if(o==="solid")return {kind:"solid",hex:En(n),alpha:r};if(o!=="gradient"||t?.colors!==void 0)return;let l=vmlColor(t.color2,"#ffffff"),a=t.opacity2===void 0?r:Tn(t.opacity2),s=t.angle===void 0?0:vmlNumber(t.angle),i=t.focus===void 0?0:Xo(t.focus);if(!l||!kn(a)||s!==0||!(Math.abs(i)<=1))return;let c={offset:0,hex:En(n),alpha:r},u={offset:0,hex:En(l),alpha:a},[f,d]=i<0?[u,c]:[c,u],m=Math.abs(i),h;return m===1?h=[f,{...d,offset:1}]:m===0?h=[d,{...f,offset:1}]:h=[f,{...d,offset:m},{...f,offset:1}],{kind:"linear",angle:0,stops:h}}function Vp(e,t){let[n="",r=n]=(e??t).split(",").map(o=>o.trim());return [n===""?0:vmlPoints(n),r===""?0:vmlPoints(r)]}function Ji(e){if(!e||!Qi(e.on))return null;if(e.otherAttributes.length||(e.type??"single")!=="single")return;let t=vmlColor(e.color,"gray"),n=Tn(e.opacity),[r,o]=Vp(e.offset,"2pt,2pt");if(!(!t||!kn(n)||!(Math.abs(r)<=200&&Math.abs(o)<=200)))return {hex:En(t),alpha:n,dxPt:r,dyPt:o}}function Ki(e,t){if(e===void 0)return [...t];let n=e.split(",").map(o=>o.trim());if(n.length>3)return null;let r=t.map((o,l)=>n[l]?vmlNumber(n[l]):o);return r.every((o,l)=>Number.isFinite(o)||l===2&&!n[2])?r:null}function Wo(e,t){return e===void 0?t:Xo(e)}function Up(e){let t=[98.42519055118112,-98.42519055118112];if(e===void 0)return t;let n=e.split(",").map(l=>l.trim());if(n.length>3)return null;let r=n[0]?vmlPoints(n[0]):t[0],o=n[1]?vmlPoints(n[1]):t[1];return Number.isFinite(r)&&Number.isFinite(o)?[r,o]:null}function ec(e){if(!e||!Qi(e.on))return null;if(e.otherAttributes.length||(e.render??"solid")!=="solid"||e.foredepth!==void 0&&vmlPoints(e.foredepth)!==0||e.rotationangle!==void 0&&e.rotationangle.replace(/[\s,0]/g,"")!==""||e.orientationangle!==void 0&&vmlNumber(e.orientationangle)!==0||(e.type??"parallel")!=="parallel")return;let n=e.backdepth===void 0?36:vmlPoints(e.backdepth),r=Up(e.viewpoint),o=e.color===void 0?null:vmlColor(e.color,"#000000"),l=Wo(e.brightness,2e4/65536),a=[Wo(e.lightlevel,38e3/65536),Wo(e.lightlevel2,38e3/65536)],s=[Ki(e.lightposition,[5e4,0,NaN]),Ki(e.lightposition2,[-5e4,0,NaN])];if(!(n>=0&&n<=1e3)||!r||e.color!==void 0&&!o||!kn(l)||!a.every(kn)||!s.every(m=>m!==null))return;let i=s.map((m,h)=>{let[y,p,v]=m;return {x:y,y:p,z:Number.isFinite(v)?v:Math.max(Math.abs(y),Math.abs(p)),level:a[h]}}),c=Math.hypot(r[0],r[1]),u=n*Math.SQRT2/3,f=c>0?-u*r[0]/c:0,d=c>0?-u*r[1]/c:0;return {hex:o?En(o):null,frontDxPt:f,frontDyPt:d,ambient:Math.min(1,2*l),lights:i}}var tc=new Map([["m",2],["l",2],["r",2],["t",2],["c",6],["v",6],["x",0],["e",0],["nf",0],["ns",0],["ae",6],["al",6],["at",8],["ar",8],["wa",8],["wr",8],["qx",2],["qy",2]]);function Hp(e,t){let n=e.trim();if(n==="")return 0;if(/^-?\d+(?:\.\d+)?$/.test(n))return Number(n);let r=/^@(\d{1,3})$/.exec(n);if(r){let o=Number(r[1]);return o<t.length?t[o]:NaN}return NaN}function $p(e){return e.trim()===""?[]:e.replace(/(\d)(?=[@-])/g,"$1 ").split(",").flatMap(n=>{let r=n.trim();return r===""?[""]:r.split(/\s+/)})}function Gp(e,t){let n=(e.match(/[a-z]+|[^a-z]+/gi)??[]).flatMap(o=>/^[a-z]/i.test(o)?o.match(/n[fs]|a[elrt]|w[ar]|q[xy]|[a-z]/gi)??[]:[o]),r=[];for(let o=0;o<n.length;o++){let l=n[o].toLowerCase(),a=tc.get(l);if(a===void 0)return null;let s=n[o+1],i=[];if(s!==void 0&&!/^[a-z]/i.test(s)&&(o++,i=$p(s).map(c=>Hp(c,t))),!i.every(Number.isFinite)||(a===0?i.length:!i.length||i.length%a))return null;r.push({op:l,values:i});}return r}function nc(e,t){if(e.length>4096)return null;let n=Gp(e,t);if(!n)return null;let r=[],o=[],l={x:0,y:0},a=0,s=false,i=m=>{o.length>1&&r.push(Object.freeze({points:Object.freeze(o),closed:m})),o=[];},c=m=>{++a>4096&&(s=true),o.length||o.push(l),o.push(m),l=m;},u=m=>{i(false),l=m,o.push(l);},f=(m,h,y,p,v,P)=>{let x=Math.max(1,Math.ceil(Math.abs(P)/(Math.PI/2)*24));if(!(a+x<=4096)){s=true;return}for(let g=1;g<=x&&!s;g++){let M=v+P*g/x;c({x:m+y*Math.cos(M),y:h-p*Math.sin(M)});}},d=(m,h,y,p,v)=>({x:m+y*Math.cos(v),y:h-p*Math.sin(v)});for(let{op:m,values:h}of n){let y=tc.get(m),p=y?h.length/y:1;for(let v=0;v<p;v++){let P=h.slice(v*y,(v+1)*y);switch(m){case "m":u({x:P[0],y:P[1]});break;case "t":u({x:l.x+P[0],y:l.y+P[1]});break;case "l":c({x:P[0],y:P[1]});break;case "r":c({x:l.x+P[0],y:l.y+P[1]});break;case "c":case "v":{let x=m==="v"?l:{x:0,y:0},g=l,[M,b,S,E,A,D]=P.map((w,T)=>w+(T%2?x.y:x.x));for(let w=1;w<=24;w++){let T=w/24,k=1-T;c({x:k*k*k*g.x+3*k*k*T*M+3*k*T*T*S+T*T*T*A,y:k*k*k*g.y+3*k*k*T*b+3*k*T*T*E+T*T*T*D});}break}case "ae":case "al":{let[x,g,M,b,S,E]=P,A=S/65536*Math.PI/180,D=E/65536*Math.PI/180,w=d(x,g,M,b,A);m==="al"?u(w):c(w),f(x,g,M,b,A,D);break}case "at":case "ar":case "wa":case "wr":{let[x,g,M,b,S,E,A,D]=P,w=(x+M)/2,T=(g+b)/2,k=Math.abs(M-x)/2,L=Math.abs(b-g)/2;if(!(k>0&&L>0))return null;let O=(I,j)=>Math.atan2(-(j-T)/L,(I-w)/k),C=O(S,E),N=O(A,D);if(m==="wa"||m==="wr")for(;N>=C;)N-=2*Math.PI;else for(;N<=C;)N+=2*Math.PI;let _=d(w,T,k,L,C);m==="ar"||m==="wr"?u(_):c(_),f(w,T,k,L,C,N-C);break}case "qx":case "qy":{let x=m==="qx"==(v%2===0),g=l,M={x:P[0],y:P[1]};for(let b=1;b<=24;b++){let S=b/24*Math.PI/2;c(x?{x:g.x+(M.x-g.x)*Math.sin(S),y:M.y+(g.y-M.y)*Math.cos(S)}:{x:M.x+(g.x-M.x)*Math.cos(S),y:g.y+(M.y-g.y)*Math.sin(S)});}break}case "x":o.length&&(l=o[0]),i(true);break;case "e":i(false);break;}if(s)return null}}return i(false),Object.freeze(r)}var Xp=new Map([[136,{adj:"10800",path:"m@7,l@8,m@5,21600l@6,21600e",formulas:["sum #0 0 10800","prod #0 2 1","sum 21600 0 @1","sum 0 0 @2","sum 21600 0 @3","if @0 @3 0","if @0 21600 @1","if @0 0 @2","if @0 @4 21600","mid @5 @6","mid @8 @5","mid @7 @8","mid @6 @7","sum @6 0 @5"]}],[138,{adj:"10800",path:"m0@0l10800,,21600@0m,21600r10800,l21600,21600e",formulas:["val #0","prod #0 1 2","sum @1 10800 0","sum 21600 0 @1"]}],[144,{adj:"11796480",path:"al10800,10800,10800,10800@2@14e",formulas:["val #1","val #0","sum 0 0 #0","sumangle #0 0 180","sumangle #0 0 90","prod @4 2 1","sumangle #0 90 0","prod @6 2 1","abs #0","sumangle @8 0 90","if @9 @7 @5","sumangle @10 0 360","if @10 @11 @10","sumangle @12 0 360","if @12 @13 @12","sum 0 0 @14","val 10800","cos 10800 #0","sin 10800 #0","sum @17 10800 0","sum @18 10800 0","sum 10800 0 @17","if @9 0 21600","sum 10800 0 @18"]}]]),lc=8;function rc(e){if(e===void 0||e.trim()==="")return [];let t=e.split(",");if(t.length>lc)return null;let n=[];for(let r of t){let o=r.trim();if(o==="")n.push(void 0);else if(/^-?\d{1,10}$/.test(o))n.push(Number(o));else return null}return n}function oc(e,t){if(e===void 0)return [t,t];let n=e.split(",").map(r=>r.trim());return n.length!==2||!n.every(r=>/^-?\d{1,9}$/.test(r))?null:[Number(n[0]),Number(n[1])]}function qp(e){let t=/^#_x0000_t(\d{3})$/.exec(e.shape.type??"");return t?Number(t[1]):null}function ac(e){let t=qp(e);if(t===null)return null;let n=e.template;if(n&&n.spt!==void 0&&Number(n.spt)!==t)return null;let r=Xp.get(t),o=n??r;if(!o)return null;let l=e.shape.path??o.path;if(!l)return null;let a=rc(o.adj),s=rc(e.shape.adj);if(!a||!s)return null;let i=[];for(let h=0;h<lc;h++)i.push(s[h]??a[h]??0);let c=oc(e.shape.coordsize??n?.coordsize,21600),u=oc(e.shape.coordorigin??n?.coordorigin,0);if(!c||!u||!(c[0]>0&&c[1]>0))return null;let f=vmlFormulaValues(o.formulas,{width:c[0],height:c[1],adjust:i});if(!f)return null;let d=nc(l,f);if(!d||!d.length)return null;let m=d.map(h=>Object.freeze(h.points.map(y=>Object.freeze({x:(y.x-u[0])/c[0],y:(y.y-u[1])/c[1]}))));return m.every(h=>h.every(y=>Math.abs(y.x)<=4&&Math.abs(y.y)<=4))?Object.freeze(m):null}var Zp=256,Jp=new Set(["font-family","font-size","font-weight","font-style","v-text-align","v-rotate-letters","v-same-letter-heights","v-text-kern"]);function ey(e){let t=(e??"").trim().replace(/^(["'])(.*)\1$/,"$2").trim();return !t||t.length>64||/["';{}<>\\]/.test(t)?null:t}var ty=e=>Number.isFinite(e)&&e>=0&&e<=1,ny=e=>e.slice(1).toUpperCase();function ry(e){let t=(n,r)=>e.namespaceUri===n&&e.localName===r;return t(VML_OFFICE_NAMESPACE_URI,"lock")||t(VML_WORD_NAMESPACE_URI,"wrap")||t(VML_WORD_NAMESPACE_URI,"anchorlock")&&e.attributeCount===0}function oy(e){if(e.textPaths.length!==1)return null;let t=e.textPaths[0],n=e.template?.textPaths[0];if(!n||n.otherAttributes.length)return t;let r=new Map(n.style??[]);for(let[o,l]of t.style??[])r.set(o,l);return {...n,...t,style:t.style===null?null:r}}function ly(e){let t=e.strokes[0];if(t?.otherAttributes.length)return;if(vmlOff(e.shape.stroked)||t&&vmlOff(t.on))return null;let n=vmlColor(t?.color??e.shape.strokecolor,"#000000"),r=vmlPoints(t?.weight??e.shape.strokeweight??"0.75pt"),o=Tn(t?.opacity);if(!(!n||!(r>0&&r<=100)||!ty(o)))return {hex:ny(n),alpha:o,widthPt:r}}function ay(e){let t=(n,r)=>n.length===2&&n.every(o=>Math.abs(o.y-r)<1e-9)&&Math.abs(Math.min(n[0].x,n[1].x))<1e-9&&Math.abs(Math.max(n[0].x,n[1].x)-1)<1e-9;return e.length===2&&t(e[0],0)&&t(e[1],1)}function sy(e){if(!e.others.every(ry)||e.nestedChildren||e.fills.length>1||e.strokes.length>1||e.paths.length>1||e.shadows.length>1||e.extrusions.length>1||e.paths[0]?.otherAttributes.length)return null;let t=oy(e);if(!t||t.otherAttributes.length||vmlOff(t.on)||t.xscale!==void 0&&!vmlOff(t.xscale))return null;let n=e.textPaths[0].string??"";if(!n.trim()||n.length>Zp||/[\r\n\v\f\u2028\u2029]/.test(n))return null;let r=t.style;if(!r)return null;for(let[P,x]of r)if(!Jp.has(P)||P==="v-text-align"&&x!=="center"||P.startsWith("v-")&&!["v-text-align","v-text-kern"].includes(P)&&!vmlOff(x))return null;let o=ey(r.get("font-family")),l=r.has("font-size")?vmlPoints(r.get("font-size")):36,a=r.get("font-weight")??"normal",s=r.get("font-style")??"normal";if(!o||!(l>0&&l<=1e3)||!["normal","bold","400","700"].includes(a)||!["normal","italic"].includes(s))return null;let i=Zi(e),c=ly(e),u=Ji(e.shadows[0]),f=ec(e.extrusions[0]),d=ac(e);if(i===void 0||c===void 0||u===void 0||f===void 0||!d||d.length>2)return null;let m=ay(d)&&i?.kind!=="linear"&&!u&&!f;if(m&&vmlOff(t.fitshape))return null;let h=legacyRotationDegrees(e.shape.style?.get("rotation"));if(!Number.isFinite(h))return null;let y=i?.kind==="solid"?i:null,p=i?.kind==="linear"?i.stops[0]:null,v=m?null:{guides:d.map(P=>P.flatMap(x=>[x.x,x.y])),fontSizePt:l,fill:i,stroke:c,shadow:u,extrusion:f};return Object.freeze({text:n,fontFamily:o,bold:a==="bold"||a==="700",italic:s==="italic",fillHex:y?.hex??p?.hex??null,fillAlpha:y?.alpha??p?.alpha??1,strokeHex:c?.hex??null,strokeAlpha:c?.alpha??1,strokeWidthPt:c?.widthPt??0,rotationDegrees:h,...t.trim!==void 0&&!vmlOff(t.trim)?{trim:true}:{},...v?{renderData:v}:{}})}function cc(e,t){let n=qi(e,t?.template);return n?sy(n):null}function cy(e={}){a(e.licenseKey),installDrawingRenderers({chart:hs,diagramLayout:Si,effects:Ai,legacyTextArt:cc,textArtLayout:ji,metafile:Ei});}function hC(e={}){return cy(e),Object.freeze({id:"drawing"})}
11
- export{cy as a,hC as b};