1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var l=arguments[e];if(null!=l)for(var i in l)l.hasOwnProperty(i)&&(t[i]=l[i])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:mentortools-frontend":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="11d2df80-65fd-4b4c-9eb6-d9f6ca4359bf",t._sentryDebugIdIdentifier="sentry-dbid-11d2df80-65fd-4b4c-9eb6-d9f6ca4359bf")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8617],{13524:(t,e,l)=>{l.d(e,{PptxViewer:()=>nn,RECOMMENDED_ZIP_LIMITS:()=>E});var i=l(27524),r=l(57706),n=l(96425),a=l(11099),o=l(55171),s=l(8965),d=l(80003),u=l(8399),h=l(96627),c=l(79902),$=l(72721),f=l(88830),p=l(67575),m=l(79097),x=l(81844),g=l(66121),y=l(7485),b=l(6584),v=l(80893),M=l(90099);function L(t){try{return decodeURIComponent(t)}catch{return t}}function A(t){let e,l=function(t){let e=[];for(let l of t.replace(/\\/g,"/").split("/"))if(!(!l||"."===l)){if(".."===l){e.pop();continue}e.push(l)}return e}((e=t.search(/[?#]/))>=0?t.slice(0,e):t),i=l.lastIndexOf("media");return(i>=0&&i<l.length-1?l.slice(i+1):l.slice(-1)).join("/")}function w(t){return`ppt/media/${A(t).split("/").map(L).join("/")}`}function S(t){let e=A(t),l=w(t),i=`ppt/media/${e}`;return l===i?[l]:[l,i]}function C(t,e){for(let l of S(t)){let t=e.get(l);if(t)return{mediaPath:l,data:t}}}async function k(t,e,l){return C(t,e)||(null==l?void 0:l.resolve(t))}function F(t,e,l){let i=l.get(t);if(!i){var r;let n=new Blob([e],{type:{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",emf:"image/x-emf",wmf:"image/x-wmf",webp:"image/webp",mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",avi:"video/x-msvideo",mp3:"audio/mpeg",wav:"audio/wav",m4a:"audio/mp4",ogg:"audio/ogg"}[(null==(r=t.split(".").pop())?void 0:r.toLowerCase())||""]||"application/octet-stream"});i=URL.createObjectURL(n),l.set(t,i)}return i}let E=Object.freeze({maxEntries:4e3,maxEntryUncompressedBytes:0x2000000,maxTotalUncompressedBytes:0x10000000,maxMediaBytes:0xc000000,maxConcurrency:8});function j(t){throw Error(`PPTX zip limit exceeded: ${t}`)}function B(t){return t.startsWith("ppt/media/")}function P(t,e,l){t.set(e,l);let i=e.split("/").map(t=>{try{return decodeURIComponent(t)}catch{return t}}).join("/");i===e||t.has(i)||t.set(i,l)}class z{constructor(t,e,l,i){this.entries=t,this.media=e,this.state=l,this.totalBytes=i,this.inflight=new Map,this.loadedPaths=new Set,this.totalCount=new Set(Array.from(t.values(),t=>t.path)).size}get loadedBytes(){var t;let e=0;for(let l of this.loadedPaths)e+=(null==(t=this.media.get(l))?void 0:t.byteLength)??0;return e}get loadedCount(){return this.loadedPaths.size}async resolve(t){for(let e of S(t)){let t=this.media.get(e);if(t)return{mediaPath:e,data:t}}for(let e of S(t)){let t=this.entries.get(e);if(t)return{mediaPath:e,data:await this.readEntry(t)}}}async readEntry(t){let e=this.inflight.get(t.path);e||(e=I(t.path,t.file,this.state).then(e=>(P(this.media,t.path,e),this.loadedPaths.add(t.path),e)),this.inflight.set(t.path,e));try{return await e}finally{this.inflight.delete(t.path)}}}function N(t,e,l){if(void 0!==l.limits.maxEntryUncompressedBytes&&e>l.limits.maxEntryUncompressedBytes&&j(`${t} is ${e} bytes > maxEntryUncompressedBytes ${l.limits.maxEntryUncompressedBytes}`),l.knownSizeByPath.has(t))return;l.unknownTotalBytes+=e;let i=l.knownTotalBytes+l.unknownTotalBytes;if(void 0!==l.limits.maxTotalUncompressedBytes&&i>l.limits.maxTotalUncompressedBytes&&j(`total uncompressed bytes ${i} > maxTotalUncompressedBytes ${l.limits.maxTotalUncompressedBytes}`),B(t)){l.unknownMediaBytes+=e;let t=l.knownMediaBytes+l.unknownMediaBytes;void 0!==l.limits.maxMediaBytes&&t>l.limits.maxMediaBytes&&j(`media bytes ${t} >
1 maxMediaBytes ${l.limits.maxMediaBytes}`)}}async function D(t,e,l){let i=await e.async("string");return N(t,new TextEncoder().encode(i).byteLength,l),i}async function I(t,e,l){let i=await e.async("uint8array");return N(t,i.byteLength,l),i}async function R(t,e,l){l.knownSizeByPath.has(t)||void 0===l.limits.maxEntryUncompressedBytes&&void 0===l.limits.maxTotalUncompressedBytes||N(t,(await e.async("uint8array")).byteLength,l)}async function Z(t,e,l){if(0===t.length)return;let i=Math.min(e,t.length),r=0,n=Array.from({length:i},async()=>{for(;;){let e=r++;if(e>=t.length)return;await l(t[e])}});await Promise.all(n)}async function T(t,e={}){return W(t,e,{lazyMedia:!1})}async function O(t,e={}){return W(t,e,{lazyMedia:!0})}async function W(t,e,l){let r=e.maxConcurrency??8;(!Number.isInteger(r)||r<1)&&j(`maxConcurrency ${e.maxConcurrency} must be an integer >= 1`);let n=Object.entries((await i.loadAsync(t)).files).filter(([,t])=>!t.dir);void 0!==e.maxEntries&&n.length>e.maxEntries&&j(`entries ${n.length} > maxEntries ${e.maxEntries}`);let a=new Map,o=0,s=0;for(let[t,l]of n){let i=t.replace(/\\/g,"/"),r=function(t){let e=t._data,l=null==e?void 0:e.uncompressedSize;return"number"==typeof l&&Number.isFinite(l)?l:void 0}(l);void 0!==r&&(a.set(i,r),void 0!==e.maxEntryUncompressedBytes&&r>e.maxEntryUncompressedBytes&&j(`${i} is ${r} bytes > maxEntryUncompressedBytes ${e.maxEntryUncompressedBytes}`),o+=r,void 0!==e.maxTotalUncompressedBytes&&o>e.maxTotalUncompressedBytes&&j(`total uncompressed bytes ${o} > maxTotalUncompressedBytes ${e.maxTotalUncompressedBytes}`),B(i)&&(s+=r,void 0!==e.maxMediaBytes&&s>e.maxMediaBytes&&j(`media bytes ${s} > maxMediaBytes ${e.maxMediaBytes}`)))}let d={contentTypes:"",presentation:"",presentationRels:"",slides:new Map,slideRels:new Map,slideLayouts:new Map,slideLayoutRels:new Map,slideMasters:new Map,slideMasterRels:new Map,themes:new Map,themeOverrides:new Map,media:new Map,charts:new Map,chartRels:new Map,chartStyles:new Map,chartColors:new Map,diagramDrawings:new Map},u={limits:e,knownSizeByPath:a,knownTotalBytes:o,knownMediaBytes:s,unknownTotalBytes:0,unknownMediaBytes:0},h=new Map;return await Z(n,r,async([t,e])=>{let i=t.replace(/\\/g,"/");if("[Content_Types].xml"===i){d.contentTypes=await D(i,e,u);return}if("ppt/presentation.xml"===i){d.presentation=await D(i,e,u);return}if("ppt/_rels/presentation.xml.rels"===i){d.presentationRels=await D(i,e,u);return}if("ppt/tableStyles.xml"===i){d.tableStyles=await D(i,e,u);return}if(B(i)){if(l.lazyMedia)return void P(h,i,{path:i,file:e});let t=await I(i,e,u);return void P(d.media,i,t)}if(/^ppt\/slides\/_rels\/[^/]+\.xml\.rels$/.test(i))return void P(d.slideRels,i,await D(i,e,u));if(/^ppt\/slides\/[^/]+\.xml$/.test(i))return void P(d.slides,i,await D(i,e,u));if(/^ppt\/slideLayouts\/_rels\/[^/]+\.xml\.rels$/.test(i))return void P(d.slideLayoutRels,i,await D(i,e,u));if(/^ppt\/slideLayouts\/[^/]+\.xml$/.test(i))return void P(d.slideLayouts,i,await D(i,e,u));if(/^ppt\/slideMasters\/_rels\/[^/]+\.xml\.rels$/.test(i))return void P(d.slideMasterRels,i,await D(i,e,u));if(/^ppt\/slideMasters\/[^/]+\.xml$/.test(i))return void P(d.slideMasters,i,await D(i,e,u));if(/^ppt\/theme\/(?!themeOverride[^/]*\.xml$)[^/]+\.xml$/.test(i))return void P(d.themes,i,await D(i,e,u));if(/^ppt\/theme\/themeOverride[^/]*\.xml$/.test(i)){d.themeOverrides&&P(d.themeOverrides,i,await D(i,e,u));return}if(/^ppt\/charts\/_rels\/[^/]+\.xml\.rels$/.test(i)){d.chartRels&&P(d.chartRels,i,await D(i,e,u));return}/^ppt\/charts\/(?!style[^/]*\.xml$)(?!colors[^/]*\.xml$)[^/]+\.xml$/.test(i)?P(d.charts,i,await D(i,e,u)):/^ppt\/charts\/style[^/]*\.xml$/.test(i)?P(d.chartStyles,i,await D(i,e,u)):/^ppt\/charts\/colors[^/]*\.xml$/.test(i)?P(d.chartColors,i,await D(i,e,u)):/^ppt\/diagrams\/[^/]+\.xml$/.test(i)?P(d.diagramDrawings,i,await D(i,e,u)):await R(i,e,u)}),l.lazyMedia&&(d.mediaResolver=new z(h,d.media,u,s)),d}class H{constructor(t){this.el=t}attr(t){if(!this.el)return;if(this.el.hasAttribute(t))return this.el.getAttribute(t);let e=t.indexOf(":"),l=e>=0?t.slice(e+1):t,i=e>=0?this.resolveAttributeNamespace(t.slice(0,e)):void 0;for(let t=0;t<this.el.attributes.length;t++){let r=this.el.attributes[t];if(r.localName===l&&(e<0||(i?r.namespaceURI===i:null!==r.namespaceURI)))return r.value}}resolveAttributeNamespace(t){var e;return(null==(e=this.el)?void 0:e.lookupNamespaceURI(t))??("r"===t?"http://schemas.openxmlformats.org/officeDocument/2006/relationships":void 0)}numAttr(t){let e=this.attr(t);if(void 0===e)return;let l=Number(e);return Number.isNaN(l)?void 0:l}child(t){if(!this.el)return new H(null);let e=this.el.children;for(let l=0;l<e.length;l++)if(e[l].localName===t)return new H(e[l]);return new H(null)}children(t){if(!this.el)return[];let e=[],l=this.el.children;for(let i=0;i<l.length;i++)(void 0===t||l[i].localName===t)&&e.push(new H(l[i]));return e}text(){return this.el?this.el.textContent??"":""}exists(){return null!==this.el}allChildren(){return this.children()}get localName(){var t;return(null==(t=this.el)?void 0:t.localName)??""}
1get element(){return this.el}}function U(t){let e=new DOMParser().parseFromString(t,"application/xml"),l=e.querySelector("parsererror");return l?(console.warn("XML parse error:",l.textContent),new H(null)):new H(e.documentElement)}function G(t){return(null==t?void 0:t.trim().toLowerCase())==="external"}function X(t){try{return decodeURIComponent(t)}catch{return t}}function Y(t){let e=new Map;if(!t)return e;let l=U(t);if(!l.exists())return e;for(let t of l.children("Relationship")){let l=t.attr("Id"),i=t.attr("Type"),r=t.attr("Target"),n=t.attr("TargetMode");l&&void 0!==i&&void 0!==r&&e.set(l,{type:i,target:r,targetMode:n})}return e}function V(t,e){let l,i=(l=e.search(/[?#]/))>=0?e.slice(0,l):e;if(i.startsWith("/"))return i.slice(1).replace(/\\/g,"/").split("/").map(X).join("/");let r=t.replace(/\\/g,"/").split("/").filter(Boolean),n=i.replace(/\\/g,"/").split("/").filter(Boolean).map(X),a=[...r];for(let t of n)".."===t?a.pop():"."!==t&&a.push(t);return a.join("/")}function q(t){return t/914400*96}function _(t){return t/6e4}function Q(t){return t/1e5}let K=["dk1","dk2","lt1","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function J(t){let e={};for(let l of t.children("font")){let t=l.attr("script"),i=l.attr("typeface");t&&i&&(e[t]=i)}let l={latin:t.child("latin").attr("typeface")??"",ea:t.child("ea").attr("typeface")??"",cs:t.child("cs").attr("typeface")??""};return Object.keys(e).length>0&&(l.scripts=e),l}function tt(t){let e=t.child("themeElements"),l=e.exists()?e:t,i=l.child("clrScheme"),r=new Map;for(let t of K){let e=i.child(t);if(e.exists()){let l=function(t){let e=t.child("srgbClr");if(e.exists())return e.attr("val");let l=t.child("sysClr");if(l.exists())return l.attr("lastClr")??l.attr("val")}(e);void 0!==l&&r.set(t,l)}}let n=l.child("fontScheme"),a=J(n.child("majorFont")),o=J(n.child("minorFont")),s=l.child("fmtScheme");return{colorScheme:r,majorFont:a,minorFont:o,fillStyles:s.child("fillStyleLst").allChildren(),bgFillStyles:s.child("bgFillStyleLst").allChildren(),lineStyles:s.child("lnStyleLst").allChildren(),effectStyles:s.child("effectStyleLst").allChildren()}}let te=new Set(["1","true","t","on"]),tl=new Set(["0","false","f","off"]);function ti(t,e=!1){if(void 0===t)return e;let l=t.trim().toLowerCase();return!!te.has(l)||!tl.has(l)&&e}function tr(t){let e,{cNvPr:l,nvPr:i}=function(t){for(let e of["nvSpPr","nvPicPr","nvGrpSpPr","nvGraphicFramePr","nvCxnSpPr"]){let l=t.child(e);if(l.exists())return{cNvPr:l.child("cNvPr"),nvPr:l.child("nvPr")}}return{cNvPr:t.child("cNvPr"),nvPr:t.child("nvPr")}}(t),r=l.attr("id")??"",n=l.attr("name")??"",a=function(t){let e=t.child("spPr");if(e.exists()){let t=e.child("xfrm");if(t.exists())return t}let l=t.child("grpSpPr");if(l.exists()){let t=l.child("xfrm");if(t.exists())return t}let i=t.child("xfrm");return i.exists()?i:t.child("__nonexistent__")}(t),o=a.child("off"),s=a.child("ext"),d={x:q(o.numAttr("x")??0),y:q(o.numAttr("y")??0)},u={w:q(s.numAttr("cx")??0),h:q(s.numAttr("cy")??0)},h=_(a.numAttr("rot")??0),c=ti(a.attr("flipH")),$=ti(a.attr("flipV")),f=function(t){let e=t.child("ph");if(e.exists())return{type:e.attr("type"),idx:e.numAttr("idx")}}(i),p=l.child("hlinkClick");return p.exists()&&(e={action:p.attr("action")??void 0,rId:p.attr("id")??p.attr("r:id")??void 0,tooltip:p.attr("tooltip")??void 0}),{id:r,name:n,position:d,size:u,rotation:h,flipH:c,flipV:$,placeholder:f,hlinkClick:e,source:t}}function tn(t){if(!t.exists())return;let e=t.child("bodyPr"),l=t.child("lstStyle"),i=[];for(let e of t.children("p"))i.push(function(t){let e=t.child("pPr"),l=e.numAttr("lvl")??0,i=[];for(let e of t.children("r")){let t=e.child("rPr"),l=e.child("t");i.push({text:l.text(),properties:t.exists()?t:void 0})}for(let e of t.allChildren())e.localName;let r=[];for(let e of t.allChildren()){let t=e.localName;if("r"===t){let t=e.child("rPr"),l=e.child("t");r.push({text:l.text(),properties:t.exists()?t:void 0})}else if("br"===t){let t=e.child("rPr");r.push({text:` 2`,properties:t.exists()?t:void 0})}else if("tab"===t)r.push({text:" "});else if("fld"===t){let t=e.child("rPr"),l=e.child("t");r.push({text:l.text(),properties:t.exists()?t:void 0})}}let n=t.child("endParaRPr");return{properties:e.exists()?e:void 0,runs:r.length>0?r:i,level:l,endParaRPr:n.exists()?n:void 0}}(e));return{bodyProperties:e.exists()?e:void 0,listStyle:l.exists()?l:void 0,paragraphs:i}}let ta=["solidFill","gradFill","blipFill","pattFill","grpFill","noFill"];function to(t){let e,l,i=tr(t),r=t.child("blipFill"),n=r.child("blip"),a=n.attr("embed")??n.attr("r:embed"),o=n.attr("link")??n.attr("r:link"),s=r.child("srcRect");
2if(s.exists()){let t=s.numAttr("t"),l=s.numAttr("b"),i=s.numAttr("l"),r=s.numAttr("r");(void 0!==t||void 0!==l||void 0!==i||void 0!==r)&&(e={top:(t??0)/1e5,bottom:(l??0)/1e5,left:(i??0)/1e5,right:(r??0)/1e5})}let d=t.child("spPr"),u=d.child("solidFill"),h=d.child("gradFill"),c=u.exists()?u:h.exists()?h:void 0,$=d.child("ln"),f=$.exists()?$:void 0,p=d.child("prstGeom"),m=p.exists()?p.attr("prst"):void 0,x=d.child("custGeom"),g=x.exists()?x:void 0,y=t.child("nvPicPr").child("nvPr"),b=y.child("videoFile"),v=y.child("audioFile"),M=b.exists(),L=v.exists();return M?l=b.attr("link")??b.attr("r:link"):L&&(l=v.attr("link")??v.attr("r:link")),{...i,nodeType:"picture",blipEmbed:a,blipLink:o,crop:e,fill:c,line:f,presetGeometry:m,customGeometry:g,isVideo:M||void 0,isAudio:L||void 0,mediaRId:l}}let ts=new Set(["sp","pic","grpSp","graphicFrame","cxnSp"]),td=new Set(["sp","pic","grpSp","graphicFrame","cxnSp"]),tu=["nvSpPr","nvPicPr","nvGrpSpPr","nvGraphicFramePr","nvCxnSpPr"];function th(t){for(let e of tu){let l=t.child(e);if(l.exists()&&l.child("nvPr").child("ph").exists())return!0}return!1}function tc(t,e){if(!(e.skipPlaceholders&&th(t)))switch(t.localName){case"sp":case"cxnSp":return function(t){let e,l,i,r=tr(t),n=t.child("spPr"),a=n.child("prstGeom"),o=a.attr("prst"),s=function(t){let e=new Map;for(let l of t.children("gd")){let t=l.attr("name"),i=l.attr("fmla")??"";if(!t)continue;let r=i.match(/val\s+(-?\d+)/);if(r)e.set(t,Number(r[1]));else{let l=Number(i);Number.isNaN(l)||e.set(t,l)}}return e}(a.child("avLst")),d=n.child("custGeom"),u=d.exists()?d:void 0,h=function(t){for(let e of ta){let l=t.child(e);if(l.exists())return l}}(n),c=n.child("ln"),$=c.exists()?c:void 0;if(c.exists()){let t=c.child("headEnd");if(t.exists()){let l=t.attr("type");l&&"none"!==l&&(e={type:l,w:t.attr("w"),len:t.attr("len")})}let i=c.child("tailEnd");if(i.exists()){let t=i.attr("type");t&&"none"!==t&&(l={type:t,w:i.attr("w"),len:i.attr("len")})}}let f=tn(t.child("txBody")),p=t.child("txXfrm");if(p.exists()){let t=p.child("off"),e=p.child("ext"),l=n.child("xfrm"),r=l.child("off"),a=l.child("ext"),o=r.numAttr("x")??0,s=r.numAttr("y")??0,d=a.numAttr("cx")??0,u=a.numAttr("cy")??0,h=t.numAttr("x")??0,c=t.numAttr("y")??0,$=e.numAttr("cx")??0,f=e.numAttr("cy")??0;if(d>0&&u>0){let t=_(p.numAttr("rot")??0),e=h-o,l=c-s,r=Math.abs(Math.round(t))%360==180;i={x:q(r?d-(e+$):e),y:q(r?u-(l+f):l),w:q($),h:q(f),rotation:t}}}return{...r,nodeType:"shape",presetGeometry:o,adjustments:s,customGeometry:u,fill:h,line:$,headEnd:e,tailEnd:l,textBody:f,textBoxBounds:i}}(t);case"pic":return to(t);case"grpSp":return function(t){let e=tr(t),l=t.child("grpSpPr").child("xfrm"),i=l.child("chOff"),r=l.child("chExt"),n=i.exists()?{x:q(i.numAttr("x")??0),y:q(i.numAttr("y")??0)}:{x:0,y:0},a=(()=>{if(!r.exists())return{w:e.size.w,h:e.size.h};let t=r.numAttr("cx"),l=r.numAttr("cy");return{w:void 0!==t&&t>0?q(t):e.size.w,h:void 0!==l&&l>0?q(l):e.size.h}})(),o=[];for(let e of t.allChildren())ts.has(e.localName)&&o.push(e);return{...e,nodeType:"group",childOffset:n,childExtent:a,children:o}}(t);case"graphicFrame":return t.child("graphic").child("graphicData").child("tbl").exists()?function(t){let e=tr(t),l=t.child("graphic").child("graphicData").child("tbl"),i=l.child("tblGrid"),r=[];for(let t of i.children("gridCol"))r.push(q(t.numAttr("w")??0));let n=[];for(let t of l.children("tr"))n.push(function(t){let e=q(t.numAttr("h")??0),l=[];
2for(let e of t.children("tc"))l.push(function(t){let e=t.numAttr("gridSpan")??1,l=t.numAttr("rowSpan")??1,i=ti(t.attr("hMerge")),r=ti(t.attr("vMerge")),n=tn(t.child("txBody")),a=t.child("tcPr");return{gridSpan:e,rowSpan:l,hMerge:i,vMerge:r,textBody:n,properties:a.exists()?a:void 0}}(e));return{height:e,cells:l}}(t));let a=l.child("tblPr"),o=function(t){let e=t.child("tableStyleId");if(e.exists())return e.text()||e.attr("val")||void 0;let l=t.child("tblStyle");return l.exists()?l.attr("val")??(l.text()||void 0):t.attr("tblStyle")??void 0}(a);return{...e,nodeType:"table",columns:r,rows:n,properties:a.exists()?a:void 0,tableStyleId:o}}(t):(t.child("graphic").child("graphicData").attr("uri")||"").includes("chart")?function(t,e,l){let i,r=tr(t);for(let e of t.child("graphic").child("graphicData").allChildren())if("chart"===e.localName){i=e.attr("r:id")||e.attr("id");break}if(!i)return;let n=e.get(i);if(!n)return;let a=V(l.substring(0,l.lastIndexOf("/")),n.target);return{...r,nodeType:"chart",chartPath:a}}(t,e.rels,e.partPath??""):(t.child("graphic").child("graphicData").attr("uri")||"").includes("diagram")?function(t,e){var l;if(!e.diagramDrawings)return;let i=tr(t),r=function(t){if(!t)return"";let e=t.lastIndexOf("/");return e>=0?t.substring(0,e):""}(e.partPath),n=Array.from(e.rels.values()).filter(t=>t.type.includes("diagramDrawing")||t.target.includes("diagrams/drawing")).map(t=>{let e=t.target.match(/drawing(\d+)/);return{target:t.target,num:e?Number.parseInt(e[1],10):void 0}}),a=t.child("graphic").child("graphicData").child("relIds");if(a.exists()){let t=a.attr("r:dm")??a.attr("dm"),i=t?e.rels.get(t):void 0,r=null==(l=null==i?void 0:i.target.match(/data(\d+)/))?void 0:l[1];if(r){let t=Number.parseInt(r,10);n.sort((e,l)=>(void 0===e.num?1/0:Math.abs(e.num-t))-(void 0===l.num?1/0:Math.abs(l.num-t)))}}for(let t of n){let l=V(r,t.target),n=e.diagramDrawings.get(l);if(n)return function(t,e){let l=U(e).child("spTree"),i=[];if(l.exists())for(let t of l.allChildren())td.has(t.localName)&&i.push(t);return{...t,nodeType:"group",childOffset:{x:0,y:0},childExtent:{w:Math.max(1,t.size.w),h:Math.max(1,t.size.h)},children:i}}(i,n)}}(t,e):function(t){let e=function(t){let e=t.child("graphic").child("graphicData");if(!(e.attr("uri")||"").includes("ole"))return null;let l=t=>{let e=t.child("blipFill").child("blip");return!!(e.attr("embed")??e.attr("r:embed")??e.attr("link")??e.attr("r:link"))},i=e.child("oleObj");if(i.exists()){let t=i.child("pic");if(t.exists()&&l(t))return t}let r=e.child("AlternateContent");if(!r.exists())return null;for(let t of["Fallback","Choice"]){let e=r.child(t).child("oleObj");if(!e.exists())continue;let i=e.child("pic");if(i.exists()&&l(i))return i}return null}(t);if(!e)return;let l=tr(t),i=to(e);if(!(!i.blipEmbed&&!i.blipLink))return{...i,...l,nodeType:"picture",source:e}}(t);default:return}}function t$(t){for(let[,e]of t)if(e.type.includes("slideLayout"))return e.target;return""}function tf(t,e,l,i="",r){let n=t.child("cSld"),a=n.child("bg"),o=a.exists()?a:void 0,s=n.child("spTree"),d=[];for(let t of s.allChildren()){let e=tc(t,{rels:l,partPath:i,diagramDrawings:r});e&&d.push(e)}let u=t$(l),h=ti(t.attr("showMasterSp"),!0);return{index:e,hidden:!ti(t.attr("show"),!0),nodes:d,background:o,layoutIndex:u,rels:l,slidePath:i,showMasterSp:h,nodesMaterialized:!0}}function tp(t){let e=t.lastIndexOf("/");return e>=0?t.substring(0,e):""}function tm(t){let e=tp(t),l=t.substring(t.lastIndexOf("/")+1);return`${e}/_rels/${l}.rels`}function tx(t,e){for(let[,l]of t)if(l.type.includes(e))return l}function tg(t,e={}){var l,i,r,n,a;let o,s=U(t.presentation),d=Y(t.presentationRels),u=s.child("sldSz"),h=q(u.numAttr("cx")??9144e3),c=q(u.numAttr("cy")??6858e3),$=(a=t.presentation).includes("wps")||a.includes("kso")||a.includes("Kingsoft")||a.includes("WPS"),f=s.child("defaultTextStyle"),p=new Map;for(let[e,l]of t.themes){let t=U(l);p.set(e,tt(t))}let m=new Map,x=new Map;for(let[e,l]of t.slideMasters){let i=function(t){let e=t.child("cSld"),l=e.child("bg"),i=l.exists()?l:void 0,r=e.child("spTree"),n=function(t){let e=new Map,l=t.element;if(!l)return e;let i=l.attributes;for(let t=0;t<i.length;t++){let l=i[t];
2e.set(l.localName,l.value)}return e}(t.child("clrMap")),a=t.child("txStyles"),o=a.child("titleStyle"),s=a.child("bodyStyle"),d=a.child("otherStyle"),u=t.child("defaultTextStyle"),h=function t(e,l){let i=[];for(let r of e.allChildren()){if("grpSp"===r.localName){let e=function(t){let e=t.child("grpSpPr");if(!e.exists())return null;let l=e.child("xfrm");if(!l.exists())return null;let i=l.child("off"),r=l.child("ext"),n=l.child("chOff"),a=l.child("chExt"),o=i.numAttr("x")??0,s=i.numAttr("y")??0,d=r.numAttr("cx")??0,u=r.numAttr("cy")??0,h=n.exists()?n.numAttr("x")??0:0,c=n.exists()?n.numAttr("y")??0:0,$=a.exists()?a.numAttr("cx")??d:d,f=a.exists()?a.numAttr("cy")??u:u;return{offX:o,offY:s,cx:d,cy:u,chOffX:h,chOffY:c,chExtCx:$>0?$:1,chExtCy:f>0?f:1}}(r);if(e&&e.chExtCx>0&&e.chExtCy>0){let n=e.cx/e.chExtCx,a=e.cy/e.chExtCy,o=e.offX-e.chOffX*n,s=e.offY-e.chOffY*a,d=l?{offX:l.offX+o*l.scaleX,offY:l.offY+s*l.scaleY,scaleX:l.scaleX*n,scaleY:l.scaleY*a}:{offX:o,offY:s,scaleX:n,scaleY:a};i.push(...t(r,d))}else i.push(...t(r,l));continue}if(!function(t){for(let e of["nvSpPr","nvPicPr","nvGraphicFramePr","nvCxnSpPr"]){let l=t.child(e);if(l.exists()&&l.child("nvPr").child("ph").exists())return!0}return!1}(r))continue;let e=function(t){let e=t.child("spPr").child("xfrm"),l=e.exists()?e:t.child("xfrm");if(!l.exists())return null;let i=l.child("off"),r=l.child("ext");return{offX:i.numAttr("x")??0,offY:i.numAttr("y")??0,cx:r.numAttr("cx")??0,cy:r.numAttr("cy")??0}}(r);if(!e){i.push({node:r});continue}if(l){let t=l.offX+e.offX*l.scaleX,n=l.offY+e.offY*l.scaleY,a=e.cx*l.scaleX,o=e.cy*l.scaleY;i.push({node:r,absoluteXfrm:{position:{x:q(t),y:q(n)},size:{w:q(a),h:q(o)}}})}else i.push({node:r,absoluteXfrm:{position:{x:q(e.offX),y:q(e.offY)},size:{w:q(e.cx),h:q(e.cy)}}})}return i}(r,null),c=h.map(t=>t.node);return{colorMap:n,background:i,textStyles:{titleStyle:o.exists()?o:void 0,bodyStyle:s.exists()?s:void 0,otherStyle:d.exists()?d:void 0},defaultTextStyle:u.exists()?u:void 0,placeholders:c,placeholderEntries:h,spTree:r,rels:new Map}}(U(l)),r=tm(e),n=t.slideMasterRels.get(r);if(n){let t=Y(n);i.rels=t;let l=tx(t,"theme");if(l){let t=V(tp(e),l.target);x.set(e,t)}}m.set(e,i)}let g=new Map,y=new Map;for(let[e,l]of t.slideLayouts){let i=function(t){let e,l=t.child("cSld"),i=l.child("bg"),r=i.exists()?i:void 0,n=l.child("spTree"),a=t.child("clrMapOvr");if(a.exists()){let t=a.child("overrideClrMapping");t.exists()&&(e=function(t){let e=new Map,l=t.element;if(!l)return e;let i=l.attributes;for(let t=0;t<i.length;t++){let l=i[t];e.set(l.localName,l.value)}return e}(t))}let o=function t(e,l){let i=[];for(let r of e.allChildren()){if("grpSp"===r.localName){let e=function(t){let e=t.child("grpSpPr");if(!e.exists())return null;let l=e.child("xfrm");if(!l.exists())return null;let i=l.child("off"),r=l.child("ext"),n=l.child("chOff"),a=l.child("chExt"),o=i.numAttr("x")??0,s=i.numAttr("y")??0,d=r.numAttr("cx")??0,u=r.numAttr("cy")??0,h=n.exists()?n.numAttr("x")??0:0,c=n.exists()?n.numAttr("y")??0:0,$=a.exists()?a.numAttr("cx")??d:d,f=a.exists()?a.numAttr("cy")??u:u;return{offX:o,offY:s,cx:d,cy:u,chOffX:h,chOffY:c,chExtCx:$>0?$:1,chExtCy:f>0?f:1}}(r);if(e&&e.chExtCx>0&&e.chExtCy>0){let n=e.cx/e.chExtCx,a=e.cy/e.chExtCy,o=e.offX-e.chOffX*n,s=e.offY-e.chOffY*a,d=t(r,l?{offX:l.offX+o*l.scaleX,offY:l.offY+s*l.scaleY,scaleX:l.scaleX*n,scaleY:l.scaleY*a}:{offX:o,offY:s,scaleX:n,scaleY:a});i.push(...d)}else i.push(...t(r,l));continue}if(!function(t){for(let e of["nvSpPr","nvPicPr","nvGraphicFramePr","nvCxnSpPr"]){let l=t.child(e);if(l.exists()&&l.child("nvPr").child("ph").exists())return!0}return!1}(r))continue;let e=function(t){let e=t.child("spPr").child("xfrm"),l=e.exists()?e:t.child("xfrm");if(!l.exists())return null;let i=l.child("off"),r=l.child("ext");return{offX:i.numAttr("x")??0,offY:i.numAttr("y")??0,cx:r.numAttr("cx")??0,cy:r.numAttr("cy")??0}}(r);if(!e){i.push({node:r});continue}if(l){let t=l.offX+e.offX*l.scaleX,n=l.offY+e.offY*l.scaleY,a=e.cx*l.scaleX,o=e.cy*l.scaleY;i.push({node:r,absoluteXfrm:{position:{x:q(t),y:q(n)},size:{w:q(a),h:q(o)}}})}else i.push({node:r,absoluteXfrm:{position:{x:q(e.offX),y:q(e.offY)}
2,size:{w:q(e.cx),h:q(e.cy)}}})}return i}(n,null),s=ti(t.attr("showMasterSp"),!0);return{colorMapOverride:e,background:r,placeholders:o,spTree:n,rels:new Map,showMasterSp:s}}(U(l)),r=tm(e),n=t.slideLayoutRels.get(r);if(n){let t=Y(n);i.rels=t;let l=tx(t,"slideMaster");if(l){let t=V(tp(e),l.target);y.set(e,t)}}g.set(e,i)}let b=new Map,v=new Map,M=new Map,L=new Map;for(let[e,a]of t.charts){let o=U(a);o.exists()&&b.set(e,o);let s=tm(e),d=null==(l=t.chartRels)?void 0:l.get(s);if(!d)continue;let u=Y(d),h=tx(u,"chartStyle");if(h){let l=V(tp(e),h.target),r=null==(i=t.chartStyles)?void 0:i.get(l);if(r){let t=U(r);t.exists()&&M.set(e,t)}}let c=tx(u,"chartColorStyle");if(c){let l=V(tp(e),c.target),i=null==(r=t.chartColors)?void 0:r.get(l);if(i){let t=U(i);t.exists()&&L.set(e,t)}}let $=tx(u,"themeOverride");if(!$)continue;let f=V(tp(e),$.target),p=(null==(n=t.themeOverrides)?void 0:n.get(f))??t.themes.get(f);if(!p)continue;let m=U(p);m.exists()&&v.set(e,tt(m))}let A=s.child("sldIdLst"),w=[];for(let t of A.children("sldId")){let e=t.attr("r:id")??t.attr("id");if(e){let t=d.get(e);if(t){let e=V("ppt",t.target);w.push(e)}}}if(0===w.length){let t=function(t,e){let l=[];for(let[i,r]of t)r.type.includes(e)&&l.push([i,r]);return l}(d,"slide");for(let[,e]of(t.sort((t,e)=>(parseInt(t[0].replace(/\D/g,""),10)||0)-(parseInt(e[0].replace(/\D/g,""),10)||0)),t))if(e.type.includes("/slide")&&!e.type.includes("slideLayout")&&!e.type.includes("slideMaster")){let t=V("ppt",e.target);w.push(t)}}let S=[],C=new Map;for(let l=0;l<w.length;l++){let i=w[l],r=t.slides.get(i);if(!r)continue;let n=tm(i),a=t.slideRels.get(n),o=a?Y(a):new Map,s=e.lazySlides?function(t,e,l,i=""){return{index:e,nodes:[],layoutIndex:t$(l),rels:l,slidePath:i,showMasterSp:!0,sourceXml:t,nodesMaterialized:!1}}(r,l,o,i):tf(U(r),l,o,i,t.diagramDrawings);if(s.layoutIndex){let t=V(tp(i),s.layoutIndex);s.layoutIndex=t,C.set(l,t)}S.push(s)}if(t.tableStyles){let e=U(t.tableStyles);e.exists()&&(o=e)}let k={width:h,height:c,slides:S,layouts:g,masters:m,themes:p,slideToLayout:C,layoutToMaster:y,masterToTheme:x,media:t.media,mediaResolver:t.mediaResolver,tableStyles:o,defaultTextStyle:f.exists()?f:void 0,charts:b,diagramDrawings:t.diagramDrawings,chartThemes:v,chartStyles:M,chartColorStyles:L,isWps:$};return e.lazySlides||function(t){for(let e=0;e<t.slides.length;e++)tM(t,t.slides[e])}(k),k}function ty(t){for(let e of["nvSpPr","nvPicPr","nvGrpSpPr","nvGraphicFramePr","nvCxnSpPr"]){let l=t.child(e);if(l.exists()){let t=l.child("nvPr").child("ph");if(t.exists()){let e=t.attr("type"),l=t.attr("idx"),i=void 0!==l?Number(l):void 0;return{type:e,idx:void 0===i||isNaN(i)?void 0:i}}}}return{}}function tb(t){let e=t.child("spPr").child("xfrm"),l=e.exists()?e:t.child("xfrm");if(l.exists()){let t=l.child("off"),e=l.child("ext"),i=t.numAttr("x"),r=e.numAttr("cx");if(void 0!==i&&void 0!==r)return{position:{x:q(t.numAttr("x")??0),y:q(t.numAttr("y")??0)},size:{w:q(e.numAttr("cx")??0),h:q(e.numAttr("cy")??0)}}}}function tv(t,e,l){let i;for(let r of t){let t=ty(r.node);if(void 0!==e&&t.type===e&&void 0!==l&&t.idx===l||(void 0===e||t.type!==e||i||(i=r),void 0!==l&&t.idx===l&&void 0===e&&void 0===t.type))return r}if(void 0===e&&void 0!==l){for(let e of t)if(ty(e.node).idx===l)return e}return i}function tM(t,e){if(e.placeholderInheritanceResolved)return;let l=t.slideToLayout.get(e.index)||e.layoutIndex,i=l?t.layouts.get(l):void 0,r=l?t.layoutToMaster.get(l):void 0,n=r?t.masters.get(r):void 0;(function(t,e,l){for(let i of t)i.nodeType,tC(i,e,l)})(e.nodes,i,n),e.placeholderInheritanceResolved=!0}function tL(t,e){(function(t,e){if(t.nodesMaterialized)return;if(!t.sourceXml){t.nodesMaterialized=!0;return}let l=t.layoutIndex,i=tf(U(t.sourceXml),t.index,t.rels,t.slidePath,e);t.hidden=i.hidden,t.nodes=i.nodes,t.background=i.background,t.layoutIndex=l||i.layoutIndex,t.showMasterSp=i.showMasterSp,t.nodesMaterialized=!0,t.sourceXml=void 0})(e,t.diagramDrawings),tM(t,e)}function tA(t){let e=t.child("txBody");if(!e.exists())return;let l=e.child("bodyPr");return l.exists()?l:void 0}function tw(t,e){if(t.type)return;let l=ty(e);l.type&&(t.type=l.type)}function tS(t,e){var l;let i,r;return e.parentGroup?(i=(l=e.parentGroup).childExtent.w>0?l.size.w/l.childExtent.w:1,r=l.childExtent.h>0?l.size.h/l.childExtent.h:1,0===i||0===r?t:{position:{x:l.childOffset.x+(t.position.x-l.position.x)/i,y:l.childOffset.
2y+(t.position.y-l.position.y)/r},size:{w:t.size.w/i,h:t.size.h/r}}):t}function tC(t,e,l,i={}){if(!t.placeholder)return;let{type:r,idx:n}=t.placeholder,a=()=>{var e;return l?tv(l.placeholderEntries??l.placeholders.map(t=>({node:t})),(null==(e=t.placeholder)?void 0:e.type)??r,n):void 0},o=0===t.size.w&&0===t.size.h,s=t.position.y<5;if(e){let l=tv(e.placeholders,r,n);if(l){tw(t.placeholder,l.node);let e=l.absoluteXfrm??tb(l.node);if(e){let l=tS(e,i);o?(t.position=l.position,t.size=l.size):s&&(t.position=l.position)}if("textBody"in t&&t.textBody){let e=tA(l.node);e&&(t.textBody.layoutBodyProperties=e)}if(e){let e=a();if(e&&(tw(t.placeholder,e.node),"textBody"in t&&t.textBody&&!t.textBody.layoutBodyProperties)){let l=tA(e.node);l&&(t.textBody.layoutBodyProperties=l)}return}}}let d=a();if(d){tw(t.placeholder,d.node);let e=d.absoluteXfrm??tb(d.node);if(e){let l=tS(e,i);o?(t.position=l.position,t.size=l.size):s&&(t.position=l.position)}if("textBody"in t&&t.textBody&&!t.textBody.layoutBodyProperties){let e=tA(d.node);e&&(t.textBody.layoutBodyProperties=e)}}}function tk(t){let e=t.replace(/^#/,"");if(6!==e.length&&3!==e.length)return{r:0,g:0,b:0};let l=parseInt(3===e.length?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e,16);return{r:l>>16&255,g:l>>8&255,b:255&l}}function tF(t,e,l){let i=t=>Math.max(0,Math.min(255,Math.round(t)));return"#"+[i(t),i(e),i(l)].map(t=>t.toString(16).padStart(2,"0")).join("")}function tE(t,e,l){let i=t/255,r=e/255,n=l/255,a=Math.max(i,r,n),o=Math.min(i,r,n),s=(a+o)/2,d=0,u=0;if(a!==o){let t=a-o;switch(u=s>.5?t/(2-a-o):t/(a+o),a){case i:d=((r-n)/t+6*(r<n))*60;break;case r:d=((n-i)/t+2)*60;break;case n:d=((i-r)/t+4)*60}}return{h:d,s:u,l:s}}function tj(t,e,l){if(t=(t%360+360)%360,e=Math.max(0,Math.min(1,e)),l=Math.max(0,Math.min(1,l)),0===e){let t=Math.round(255*l);return{r:t,g:t,b:t}}let i=(t,e,l)=>(l<0&&(l+=1),l>1&&(l-=1),l<1/6?t+(e-t)*6*l:l<.5?e:l<2/3?t+(e-t)*(2/3-l)*6:t),r=l<.5?l*(1+e):l+e-l*e,n=2*l-r,a=t/360;return{r:Math.round(255*i(n,r,a+1/3)),g:Math.round(255*i(n,r,a)),b:Math.round(255*i(n,r,a-1/3))}}function tB(t){let e=t/255;return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function tP(t){return Math.max(0,Math.min(255,Math.round(255*(t<=.0031308?12.92*t:1.055*t**.4166666666666667-.055))))}function tz(t,e){let{r:l,g:i,b:r}=tk(t),n=e/1e5,a=tB(l),o=tB(i),s=tB(r);return tF(tP(a*n+ +(1-n)),tP(o*n+ +(1-n)),tP(s*n+ +(1-n)))}function tN(t){return t/1e5*255}function tD(t,e,l){let i=tk(t);return i[e]=l(i[e]),tF(i.r,i.g,i.b)}function tI(t,e,l){return tD(t,e,t=>l/1e5*t)}function tR(t,e,l){return tD(t,e,t=>t+tN(l))}function tZ(t,e,l){return tD(t,e,()=>tN(l))}function tT(t,e){let l=t,i=1;for(let t of e)switch(t.name.startsWith("a:")?t.name.slice(2):t.name){case"tint":l=tz(l,t.val);break;case"shade":l=function(t,e){let{r:l,g:i,b:r}=tk(t),n=e/1e5;return tF(tP(tB(l)*n),tP(tB(i)*n),tP(tB(r)*n))}(l,t.val);break;case"red":l=tZ(l,"r",t.val);break;case"green":l=tZ(l,"g",t.val);break;case"blue":l=tZ(l,"b",t.val);break;case"redMod":l=tI(l,"r",t.val);break;case"greenMod":l=tI(l,"g",t.val);break;case"blueMod":l=tI(l,"b",t.val);break;case"redOff":l=tR(l,"r",t.val);break;case"greenOff":l=tR(l,"g",t.val);break;case"blueOff":l=tR(l,"b",t.val);break;case"lum":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a}=tE(l,i,r),o=tj(n,a,e/1e5);return tF(o.r,o.g,o.b)}(l,t.val);break;case"lumMod":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(n,a,Math.max(0,Math.min(1,e/1e5*o)));return tF(s.r,s.g,s.b)}(l,t.val);break;case"lumOff":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(n,a,Math.max(0,Math.min(1,o+e/1e5)));return tF(s.r,s.g,s.b)}(l,t.val);break;case"sat":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,l:a}=tE(l,i,r),o=tj(n,e/1e5,a);return tF(o.r,o.g,o.b)}(l,t.val);break;case"satMod":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(n,Math.max(0,Math.min(1,e/1e5*a)),o);return tF(s.r,s.g,s.b)}(l,t.val);break;case"hue":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{s:n,l:a}=tE(l,i,r),o=tj(e/6e4,n,a);return tF(o.r,o.g,o.b)}(l,t.val);break;case"hueMod":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(e/1e5*n%360,a,o);return tF(s.r,s.g,s.b)}(l,t.val);break;
2case"hueOff":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(((n+e/6e4)%360+360)%360,a,o);return tF(s.r,s.g,s.b)}(l,t.val);break;case"satOff":l=function(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(n,Math.max(0,Math.min(1,a+e/1e5)),o);return tF(s.r,s.g,s.b)}(l,t.val);break;case"inv":l=function(t){let{r:e,g:l,b:i}=tk(t);return tF(255-e,255-l,255-i)}(l);break;case"gray":l=function(t){let{r:e,g:l,b:i}=tk(t),r=.2126*e+.7152*l+.0722*i;return tF(r,r,r)}(l);break;case"comp":l=function(t){let{r:e,g:l,b:i}=tk(t),{h:r,s:n,l:a}=tE(e,l,i),o=tj(r+180,n,a);return tF(o.r,o.g,o.b)}(l);break;case"gamma":l=function(t){let{r:e,g:l,b:i}=tk(t);return tF(255*tB(e),255*tB(l),255*tB(i))}(l);break;case"invGamma":l=function(t){let{r:e,g:l,b:i}=tk(t);return tF(tP(e/255),tP(l/255),tP(i/255))}(l);break;case"alpha":i=Math.max(0,Math.min(1,t.val/1e5));break;case"alphaMod":case"alphaModFix":i=Math.max(0,Math.min(1,i*(t.val/1e5)));break;case"alphaOff":i=Math.max(0,Math.min(1,i+t.val/1e5))}return{color:l,alpha:i}}let tO={black:"#000000",white:"#FFFFFF",red:"#FF0000",green:"#008000",blue:"#0000FF",yellow:"#FFFF00",cyan:"#00FFFF",magenta:"#FF00FF",orange:"#FFA500",purple:"#800080",brown:"#A52A2A",pink:"#FFC0CB",gray:"#808080",grey:"#808080",lime:"#00FF00",navy:"#000080",teal:"#008080",maroon:"#800000",olive:"#808000",silver:"#C0C0C0",aqua:"#00FFFF",fuchsia:"#FF00FF",aliceBlue:"#F0F8FF",antiqueWhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",blanchedAlmond:"#FFEBCD",blueViolet:"#8A2BE2",burlyWood:"#DEB887",cadetBlue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerBlue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",darkBlue:"#00008B",darkCyan:"#008B8B",darkGoldenrod:"#B8860B",darkGray:"#A9A9A9",darkGrey:"#A9A9A9",darkGreen:"#006400",darkKhaki:"#BDB76B",darkMagenta:"#8B008B",darkOliveGreen:"#556B2F",darkOrange:"#FF8C00",darkOrchid:"#9932CC",darkRed:"#8B0000",darkSalmon:"#E9967A",darkSeaGreen:"#8FBC8F",darkSlateBlue:"#483D8B",darkSlateGray:"#2F4F4F",darkSlateGrey:"#2F4F4F",darkTurquoise:"#00CED1",darkViolet:"#9400D3",deepPink:"#FF1493",deepSkyBlue:"#00BFFF",dimGray:"#696969",dimGrey:"#696969",dodgerBlue:"#1E90FF",firebrick:"#B22222",floralWhite:"#FFFAF0",forestGreen:"#228B22",gainsboro:"#DCDCDC",ghostWhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",greenYellow:"#ADFF2F",honeydew:"#F0FFF0",hotPink:"#FF69B4",indianRed:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderBlush:"#FFF0F5",lawnGreen:"#7CFC00",lemonChiffon:"#FFFACD",lightBlue:"#ADD8E6",lightCoral:"#F08080",lightCyan:"#E0FFFF",lightGoldenrodYellow:"#FAFAD2",lightGray:"#D3D3D3",lightGrey:"#D3D3D3",lightGreen:"#90EE90",lightPink:"#FFB6C1",lightSalmon:"#FFA07A",lightSeaGreen:"#20B2AA",lightSkyBlue:"#87CEFA",lightSlateGray:"#778899",lightSlateGrey:"#778899",lightSteelBlue:"#B0C4DE",lightYellow:"#FFFFE0",limeGreen:"#32CD32",linen:"#FAF0E6",mediumAquamarine:"#66CDAA",mediumBlue:"#0000CD",mediumOrchid:"#BA55D3",mediumPurple:"#9370DB",mediumSeaGreen:"#3CB371",mediumSlateBlue:"#7B68EE",mediumSpringGreen:"#00FA9A",mediumTurquoise:"#48D1CC",mediumVioletRed:"#C71585",midnightBlue:"#191970",mintCream:"#F5FFFA",mistyRose:"#FFE4E1",moccasin:"#FFE4B5",navajoWhite:"#FFDEAD",oldLace:"#FDF5E6",oliveDrab:"#6B8E23",orangeRed:"#FF4500",orchid:"#DA70D6",paleGoldenrod:"#EEE8AA",paleGreen:"#98FB98",paleTurquoise:"#AFEEEE",paleVioletRed:"#DB7093",papayaWhip:"#FFEFD5",peachPuff:"#FFDAB9",peru:"#CD853F",plum:"#DDA0DD",powderBlue:"#B0E0E6",rosyBrown:"#BC8F8F",royalBlue:"#4169E1",saddleBrown:"#8B4513",salmon:"#FA8072",sandyBrown:"#F4A460",seaGreen:"#2E8B57",seaShell:"#FFF5EE",sienna:"#A0522D",skyBlue:"#87CEEB",slateBlue:"#6A5ACD",slateGray:"#708090",slateGrey:"#708090",snow:"#FFFAFA",springGreen:"#00FF7F",steelBlue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whiteSmoke:"#F5F5F5",yellowGreen:"#9ACD32"};function tW(t){if(void 0!==tO[t])return tO[t];let e=t.toLowerCase();for(let[t,l]of Object.entries(tO))if(t.toLowerCase()===e)return l}function tH(t){let e=[];for(let l of t.allChildren()){let t=l.localName,i=l.numAttr("val")??l.numAttr("amt");void 0!==i&&t?e.push({name:t,val:i}):("inv"===t||"gray"===t||"comp"===t||"gamma"===t||"invGamma"===t)&&e.push({name:t,val:0})}return e}function tU(t,e){let l=t;if(e.layout.colorMapOverride){let i=e.layout.colorMapOverride.get(t);i&&(l=i)}if(l===t){let i=e.master.colorMap.get(t);i&&(l=i)}return e.theme.colorScheme.get(l)||e.theme.colorScheme.get(t)||"000000"}function tG(t,e){let l=function(t){let e=[t.localName,t.attr("val")??""];for(let l of t.allChildren()){let t=l.localName,i=l.attr("val")??l.attr("amt");for(let r of(t&&e.push(`${t}:${i??""}`),l.allChildren())){let t=r.localName,l=r.attr("val")??r.attr("amt");t&&e.push(`${t}:${l??""}`)}}return e.join("|")}(t),i=e.colorCache.get(l);if(i)return i;let r=tX(t,e);return e.colorCache.set(l,r),r}function tX(t,e,l){for(let i of t.allChildren()){let t=i.localName,r=tH(i);switch(t){case"srgbClr":return tT(i.attr("val")||"000000",r);case"schemeClr":{let t=i.attr("val")||"tx1";if("phclr"===t.toLowerCase()&&null!=l&&l.exists()){let t=tG(l,e),i=tT(t.color.startsWith("#")?t.color.slice(1):t.color,r);return{color:i.color,alpha:i.alpha*t.alpha}}return tT(tU(t,e),r)}case"sysClr":return tT(i.attr("lastClr")||i.attr("val")||"000000",r);case"prstClr":return tT((tW(i.attr("val")||"black")||"#000000").replace("#",""),r);case"hslClr":{let t=tj((i.numAttr("hue")??0)/6e4,(i.numAttr("sat")??0)/1e5,(i.numAttr("lum")??0)/1e5);return tT(tF(t.r,t.g,t.b).replace("#",""),r)}case"scrgbClr":return tT(tF(Math.round((i.numAttr("r")??0)/1e5*255),Math.round((i.numAttr("g")??0)/1e5*255),Math.round((i.numAttr("b")??0)/1e5*255)).replace("#",""),r)}}let i=t.localName;if("srgbClr"===i)return tT(t.attr("val")||"000000",tH(t));if("schemeClr"===i){let i=t.attr("val")||"tx1";if("phclr"===i.toLowerCase()&&null!=l&&l.exists()){let i=tG(l,e),r=tT(i.color.startsWith("#")?i.color.slice(1):i.color,tH(t));return{color:r.color,alpha:r.alpha*i.alpha}}return tT(tU(i,e),tH(t))}if("sysClr"===i)return tT(t.attr("lastClr")||t.attr("val")||"000000",tH(t));if("prstClr"===i)return tT((tW(t.attr("val")||"black")||"#000000").replace("#",""),tH(t));if("hslClr"===i){let e=tj((t.numAttr("hue")??0)/6e4,(t.numAttr("sat")??0)/1e5,(t.numAttr("lum")??0)/1e5);return tT(tF(e.r,e.g,e.b).replace("#",""),tH(t))}return"scrgbClr"===i?tT(tF(Math.round((t.numAttr("r")??0)/1e5*255),Math.round((t.numAttr("g")??0)/1e5*255),Math.round((t.numAttr("b")??0)/1e5*255)).replace("#",""),tH(t)):{color:"#000000",alpha:1}}function tY(t,e){let{color:l,alpha:i}=tG(t,e);return tV(l,i)}function tV(t,e){let l=t.startsWith("#")?t:`#${t}`,{r:i,g:r,b:n}=tk(l);return e>=1?l:`rgba(${i},${r},${n},${e.toFixed(3)})`}function tq(t,e,l){return null!=l&&l.exists()?tX(t,e,l):tG(t,e)}function t_(t,e){let l=t.child("solidFill");
2if(l.exists()){let{color:t,alpha:i}=tG(l,e);return tV(t,i)}let i=t.child("gradFill");if(i.exists())return tK(i,e);if(t.child("blipFill").exists())return"";let r=t.child("pattFill");return r.exists()?tQ(r,e):t.child("grpFill").exists()?e.groupFillNode?t_(e.groupFillNode,e):"":t.child("noFill").exists()?"transparent":""}function tQ(t,e,l){let i=t.attr("prst")??"solid",r="#000000",n="#ffffff",a=t.child("fgClr");if(a.exists()){let{color:t,alpha:i}=tq(a,e,l);r=tV(t,i)}let o=t.child("bgClr");if(o.exists()){let{color:t,alpha:i}=tq(o,e,l);n=tV(t,i)}let s=t=>`${t} 0 0 / 8px 8px, ${n}`,d=(t,e)=>`${t} 0 0 / 8px 8px, ${e} 0 0 / 8px 8px, ${n}`;switch(i){case"solid":case"solidDmnd":return r;case"pct5":case"pct10":case"pct20":case"pct25":case"dotGrid":case"dotDmnd":return s(`radial-gradient(${r} 1px, transparent 1px)`);case"pct30":case"pct40":case"pct50":return s(`radial-gradient(${r} 1.5px, transparent 1.5px)`);case"pct60":case"pct70":case"pct75":case"pct80":case"pct90":return s(`radial-gradient(${r} 2.5px, transparent 2.5px)`);case"horz":case"ltHorz":case"narHorz":case"dkHorz":return s(`repeating-linear-gradient(0deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`);case"vert":case"ltVert":case"narVert":case"dkVert":return s(`repeating-linear-gradient(90deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`);case"dnDiag":case"ltDnDiag":case"narDnDiag":case"dkDnDiag":case"wdDnDiag":return s(`repeating-linear-gradient(45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`);case"upDiag":case"ltUpDiag":case"narUpDiag":case"dkUpDiag":case"wdUpDiag":return s(`repeating-linear-gradient(-45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`);case"smGrid":case"lgGrid":case"cross":return d(`repeating-linear-gradient(0deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`,`repeating-linear-gradient(90deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`);case"smCheck":case"lgCheck":case"diagCross":case"openDmnd":return d(`repeating-linear-gradient(45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`,`repeating-linear-gradient(-45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent 8px)`);case"trellis":case"weave":return d(`repeating-linear-gradient(45deg, ${r} 0px, ${r} 2px, transparent 2px, transparent 8px)`,`repeating-linear-gradient(-45deg, ${r} 0px, ${r} 2px, transparent 2px, transparent 8px)`);case"dashDnDiag":case"dashUpDiag":case"dashHorz":case"dashVert":{let t=i.includes("Dn")?"45deg":i.includes("Up")?"-45deg":i.includes("Horz")?"0deg":"90deg";return s(`repeating-linear-gradient(${t}, ${r} 0px, ${r} 3px, transparent 3px, transparent 8px)`)}case"sphere":case"shingle":case"plaid":case"divot":case"zigZag":return s(`radial-gradient(${r} 2px, transparent 2px)`);default:return n}}function tK(t,e,l){let i=t.child("gsLst"),r=[];for(let t of i.children("gs")){let i=100*Q(t.numAttr("pos")??0),{color:n,alpha:a}=tq(t,e,l);r.push({position:i,color:tV(n,a)})}if(0===r.length)return"";r.sort((t,e)=>t.position-e.position);let n=t6(r),a=t.child("lin");if(a.exists())return`linear-gradient(${((_(a.numAttr("ang")??0)+90)%360).toFixed(1)}deg, ${n})`;let o=t.child("path");if(o.exists()){let t=o.attr("path");if("circle"===t||"shape"===t||"rect"===t){let e=t1(o),{cx:l,cy:i}=t2(e),n=t6(t3({stops:r,cx:l,cy:i,fillToRect:e}));return"rect"===t?`radial-gradient(closest-side at ${(100*l).toFixed(1)}% ${(100*i).toFixed(1)}%, ${n})`:`radial-gradient(ellipse at ${(100*l).toFixed(1)}% ${(100*i).toFixed(1)}%, ${n})`}}return`linear-gradient(180deg, ${n})`}function tJ(t,e,l){let i=q(t.numAttr("w")??0),r="transparent",n=t.child("solidFill");if(n.exists()){let t=n.child("schemeClr");if(t.exists()&&"phclr"===(t.attr("val")??"").toLowerCase()&&l&&l.exists()){let i=tG(l,e),n=tT(i.color.startsWith("#")?i.color.slice(1):i.color,tH(t));r=tV(n.color,n.alpha*i.alpha)}else{let t=tG(n,e);r=tV(t.color,t.alpha)}}else if(l&&l.exists()&&(l.numAttr("idx")??0)>0){let t=l.numAttr("idx")??0;if(t>0&&e.theme.lineStyles&&e.theme.lineStyles.length>=t){let n=e.theme.lineStyles[t-1];0===i&&(i=q(n.numAttr("w")??0));let a=tG(l,e);r=tV(a.color,a.alpha)}else{let n=tG(l,e);r=tV(n.color,n.alpha),0===i&&t>0&&(i=.75*t)}}if(0===i&&l&&l.exists()){let t=l.numAttr("idx")??0;t>0&&e.theme.lineStyles&&e.theme.lineStyles.length>=t?i=q(e.theme.lineStyles[t-1].numAttr("w")??0):t>0&&(i=.75*t)}0!==i||"transparent"===r||t.child("noFill").exists()||(i=1);let a="solid",o="solid",s=t.child("prstDash");if(s.exists()){let t=s.attr("val")||"solid";o=t,a=t0(t)}if("solid"===a&&l&&l.exists()){let t=l.numAttr("idx")??0;if(t>0&&e.theme.lineStyles&&e.theme.lineStyles.length>=t){let l=e.theme.lineStyles[t-1].child("prstDash");l.exists()&&(a=t0(o=l.attr("val")||"solid"))}}return{width:i,color:r,dash:a,dashKind:o}}function t0(t){switch(t){case"solid":default:return"solid";case"dot":case"sysDot":return"dotted";case"dash":case"sysDash":case"lgDash":case"dashDot":case"lgDashDot":case"lgDashDotDot":case"sysDashDot":case"sysDashDotDot":return"dashed"}}function t1(t){let e=t.child("fillToRect");
2if(e.exists())return{l:(e.numAttr("l")??0)/1e5,t:(e.numAttr("t")??0)/1e5,r:(e.numAttr("r")??0)/1e5,b:(e.numAttr("b")??0)/1e5}}function t2(t){return t?{cx:(t.l+(1-t.r))/2,cy:(t.t+(1-t.b))/2}:{cx:.5,cy:.5}}function t5(t){return Math.max(0,Math.min(1,t))}function t3(t,e={}){let l=function(t,e={}){let l=t.fillToRect;if(!l)return 0;let i=Math.max(0,1-l.l-l.r),r=Math.max(0,1-l.t-l.b);if(i<=0&&r<=0)return 0;let n=t.cx??.5,a=t.cy??.5,o=Math.max(Math.abs(n),Math.abs(1-n)),s=Math.max(Math.abs(a),Math.abs(1-a));if("x"===e.axis)return o>0?t5(i/2/o):0;if("y"===e.axis)return s>0?t5(r/2/s):0;let d=e.width??1,u=e.height??1,h=Math.hypot(i/2*d,r/2*u),c=Math.hypot(o*d,s*u);return c>0?t5(h/c):0}(t,e);return l<=0?t.stops:t.stops.map(t=>({...t,position:100*l+t.position*(1-l)}))}function t6(t){return t.map(t=>`${t.color} ${t.position.toFixed(1)}%`).join(", ")}function t4(t,e,l){let i=t.child("gsLst"),r=[];for(let t of i.children("gs")){let i=100*Q(t.numAttr("pos")??0),{color:n,alpha:a}=tq(t,e,l);r.push({position:i,color:tV(n,a)})}if(0===r.length)return null;r.sort((t,e)=>t.position-e.position);let n=t.child("lin");if(n.exists())return{type:"linear",stops:r,angle:_(n.numAttr("ang")??0),colorInterpolation:"linearRGB"};let a=t.child("path");if(a.exists()){let t=a.attr("path");if("circle"===t||"shape"===t||"rect"===t){let e=t1(a),{cx:l,cy:i}=t2(e);return{type:"radial",stops:r,angle:0,cx:l,cy:i,pathType:t,fillToRect:e,colorInterpolation:"linearRGB"}}}return{type:"linear",stops:r,angle:0,colorInterpolation:"linearRGB"}}function t8(t,e){let l=t.child("gradFill");return!l.exists()&&t.child("grpFill").exists()&&e.groupFillNode&&(l=e.groupFillNode.child("gradFill")),l.exists()?t4(l,e):null}function t7(t,e){let l=t.numAttr("idx")??0;return t9(t,e,e.theme.fillStyles,l)}function t9(t,e,l,i){if(i<=0||((null==l?void 0:l.length)??0)<i)return{fillCss:tY(t,e),gradientFillData:null};let r=null==l?void 0:l[i-1];if(!(null!=r&&r.exists()))return{fillCss:tY(t,e),gradientFillData:null};if("solidFill"===r.localName){let l=tq(r,e,t);return{fillCss:tV(l.color,l.alpha),gradientFillData:null}}return"gradFill"===r.localName?{fillCss:tK(r,e,t),gradientFillData:t4(r,e,t)}:"pattFill"===r.localName?{fillCss:tQ(r,e,t),gradientFillData:null}:"noFill"===r.localName?{fillCss:"transparent",gradientFillData:null}:{fillCss:tY(t,e),gradientFillData:null}}let et=new Set(["http:","https:","mailto:"]),ee=new Set(["http:","https:"]);function el(t){try{return new URL(t).protocol.toLowerCase()}catch{return}}function ei(t){let e=el(t);return void 0!==e&&et.has(e)}function er(t){let e=el(t);return void 0!==e&&ee.has(e)}function en(t){let e=function(t){let e=0;for(let l=t.length-1;l>=0;l--){let i=t[l];if(")"===i)e++;else if("("===i)e>0&&e--;else if(","===i&&0===e)return l}return -1}(t);if(e<0)return null;let l=t.slice(e+1).trim();return!function(t){if(!t)return!1;if("#"===t[0]){if(![3,4,6,8].includes(t.length-1))return!1;for(let l=1;l<t.length;l++){var e;if(!(ea(e=t.charCodeAt(l))||e>=65&&e<=70||e>=97&&e<=102))return!1}return!0}let l=t.toLowerCase();if(l.startsWith("rgb(")||l.startsWith("rgba("))return t.endsWith(")")&&!t.slice(0,-1).includes(")");for(let e=0;e<t.length;e++)if(!eo(t.charCodeAt(e)))return!1;return!0}(l)?null:{imageLayers:t.slice(0,e).split("0 0 / 8px 8px").join("").trimEnd(),color:l}}function ea(t){return t>=48&&t<=57}function eo(t){return t>=65&&t<=90||t>=97&&t<=122}let es=0;function ed(t,e,l,i){let r=Math.round(t*i+255*(1-i)),n=Math.round(e*i+255*(1-i)),a=Math.round(l*i+255*(1-i));return`rgb(${r},${n},${a})`}function eu(t,e){if(e.includes("gradient")&&e.includes(" 0 0 / ")){let l=en(e);if(l){t.style.backgroundImage=l.imageLayers,t.style.backgroundSize="8px 8px",t.style.backgroundRepeat="repeat",t.style.backgroundColor=l.color;return}}e.includes("gradient")||e.startsWith("url(")||e.includes("repeating-")?t.style.background=e:t.style.backgroundColor=e}function eh(t,e){for(let l of e){let e=document.createElementNS("http://www.w3.org/2000/svg","stop");e.setAttribute("offset",`${l.position}%`),e.setAttribute("stop-color",l.color),t.appendChild(e)}}function ec(t,e,l){return null!=t&&!!t.pathType&&(function(t,e,l,i){let r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"svg");n.setAttribute("data-pptx-background-gradient","true"),n.setAttribute("viewBox",`0 0 ${l} ${i}`),n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.width="100%",n.style.height="100%",
2n.style.pointerEvents="none",n.style.display="block";let a=document.createElementNS(r,"defs");n.appendChild(a);let o=`bg-grad-${++es}`;if("radial"===e.type&&"rect"===e.pathType){let t=e.cx??.5,s=e.cy??.5,d=(t,l)=>{let i=t3(e,{axis:l}),r=[];for(let e of i){let l=e.position/100;r.push({offset:t-l*t,color:e.color}),r.push({offset:t+l*(1-t),color:e.color})}return r.sort((t,e)=>t.offset-e.offset)},u=`${o}-h`,h=document.createElementNS(r,"linearGradient");for(let l of(h.setAttribute("id",u),h.setAttribute("color-interpolation",e.colorInterpolation??"linearRGB"),h.setAttribute("x1","0%"),h.setAttribute("y1","0%"),h.setAttribute("x2","100%"),h.setAttribute("y2","0%"),d(t,"x"))){let t=document.createElementNS(r,"stop");t.setAttribute("offset",`${(100*l.offset).toFixed(2)}%`),t.setAttribute("stop-color",l.color),h.appendChild(t)}a.appendChild(h);let c=`${o}-v`,$=document.createElementNS(r,"linearGradient");for(let t of($.setAttribute("id",c),$.setAttribute("color-interpolation",e.colorInterpolation??"linearRGB"),$.setAttribute("x1","0%"),$.setAttribute("y1","0%"),$.setAttribute("x2","0%"),$.setAttribute("y2","100%"),d(s,"y"))){let e=document.createElementNS(r,"stop");e.setAttribute("offset",`${(100*t.offset).toFixed(2)}%`),e.setAttribute("stop-color",t.color),$.appendChild(e)}a.appendChild($);let f=document.createElementNS(r,"g");f.setAttribute("style","isolation: isolate");let p=document.createElementNS(r,"rect");for(let t of(p.setAttribute("width",String(l)),p.setAttribute("height",String(i)),p.setAttribute("fill","black"),f.appendChild(p),[u,c])){let e=document.createElementNS(r,"rect");e.setAttribute("width",String(l)),e.setAttribute("height",String(i)),e.setAttribute("fill",`url(#${t})`),e.setAttribute("style","mix-blend-mode: lighten"),f.appendChild(e)}n.appendChild(f)}else if("radial"===e.type){let t=document.createElementNS(r,"radialGradient");t.setAttribute("id",o),t.setAttribute("color-interpolation",e.colorInterpolation??"linearRGB"),t.setAttribute("gradientUnits","userSpaceOnUse");let s=e.cx??.5,d=e.cy??.5;t.setAttribute("cx",String(s*l)),t.setAttribute("cy",String(d*i));let u=Math.max(s,1-s),h=Math.max(d,1-d);t.setAttribute("r",String(Math.hypot(u*l,h*i))),eh(t,t3(e,{width:l,height:i})),a.appendChild(t);let c=document.createElementNS(r,"rect");c.setAttribute("width",String(l)),c.setAttribute("height",String(i)),c.setAttribute("fill",`url(#${o})`),n.appendChild(c)}else{let t,s=document.createElementNS(r,"linearGradient");s.setAttribute("id",o),s.setAttribute("color-interpolation",e.colorInterpolation??"linearRGB"),s.setAttribute("gradientUnits","userSpaceOnUse");let d={x1:50-50*Math.cos(t=e.angle*Math.PI/180),y1:50-50*Math.sin(t),x2:50+50*Math.cos(t),y2:50+50*Math.sin(t)};s.setAttribute("x1",String(d.x1/100*l)),s.setAttribute("y1",String(d.y1/100*i)),s.setAttribute("x2",String(d.x2/100*l)),s.setAttribute("y2",String(d.y2/100*i)),eh(s,e.stops),a.appendChild(s);let u=document.createElementNS(r,"rect");u.setAttribute("width",String(l)),u.setAttribute("height",String(i)),u.setAttribute("fill",`url(#${o})`),n.appendChild(u)}t.style.position||(t.style.position="relative"),t.style.background="",t.querySelectorAll('svg[data-pptx-background-gradient="true"]').forEach(t=>{t.remove()}),t.insertBefore(n,t.firstChild)}(l,t,e.presentation.width,e.presentation.height),!0)}function e$(t,e,l){var i;let r,n,a,o,s=(i=t.child("blip"),r=1,(n=i.child("alphaModFix")).exists()&&(r*=(n.numAttr("amt")??1e5)/1e5),(a=i.child("alphaMod")).exists()&&(r*=(a.numAttr("val")??1e5)/1e5),(o=i.child("alphaOff")).exists()&&(r+=(o.numAttr("val")??0)/1e5),Math.max(0,Math.min(1,r)));if(s<1||t.child("srcRect").exists())return void function(t,e,l,i){var r;let n;e.style.position||(e.style.position="relative"),e.style.backgroundImage="",e.querySelectorAll('[data-pptx-background-image="true"]').forEach(t=>{t.remove()});let a=document.createElement("div");a.setAttribute("data-pptx-background-image","true"),a.style.position="absolute",a.style.pointerEvents="none",a.style.opacity=`${Number(i.toFixed(4))}`;let o=t.child("stretch");r=a,n=function(t){if(!t.exists())return{left:0,top:0,width:100,height:100};let e=ef(t,"l"),l=ef(t,"t");return{left:e,top:l,width:100-e-ef(t,"r"),height:100-l-ef(t,"b")}}(o.exists()?o.child("fillRect"):new H(null)),r.style.left=`${n.left}%`,r.style.top=`${n.top}%`,r.style.width=`${n.width}%`,r.style.height=`${n.height}%`;let s=t.child("srcRect");
2if(s.exists()){a.style.overflow="hidden";let t=document.createElement("div");t.setAttribute("data-pptx-background-crop","true"),t.style.position="absolute",t.style.backgroundImage=`url("${l}")`,t.style.backgroundSize="100% 100%",t.style.backgroundRepeat="no-repeat",function(t,e){let l=ef(e,"l")/100,i=ef(e,"t")/100,r=ef(e,"r")/100,n=ef(e,"b")/100,a=1-l-r,o=1-i-n;if(a<=.001||o<=.001){t.style.left="0%",t.style.top="0%",t.style.width="100%",t.style.height="100%";return}let s=1/a,d=1/o;t.style.left=`${-l*s*100}%`,t.style.top=`${-i*d*100}%`,t.style.width=`${100*s}%`,t.style.height=`${100*d}%`}(t,s),a.appendChild(t),e.insertBefore(a,e.firstChild);return}a.style.backgroundImage=`url("${l}")`,o.exists()&&(a.style.backgroundSize="100% 100%",a.style.backgroundRepeat="no-repeat"),t.child("tile").exists()&&(a.style.backgroundRepeat="repeat",a.style.backgroundSize="auto"),e.insertBefore(a,e.firstChild)}(t,e,l,s);e.style.backgroundImage=`url("${l}")`;let d=t.child("stretch");d.exists()&&(function(t,e){if(!e.exists()){t.style.backgroundSize="100% 100%",t.style.backgroundPosition="";return}let l=ef(e,"l"),i=ef(e,"t"),r=ef(e,"r"),n=ef(e,"b"),a=100-l-r,o=100-i-n;t.style.backgroundSize=`${a}% ${o}%`,t.style.backgroundPosition=`${ep(l,r)}% ${ep(i,n)}%`}(e,d.child("fillRect")),e.style.backgroundRepeat="no-repeat"),t.child("tile").exists()&&(e.style.backgroundRepeat="repeat",e.style.backgroundSize="auto")}function ef(t,e){return(t.numAttr(e)??0)/1e3}function ep(t,e){let l=t+e;return 1e-4>Math.abs(l)?0:t/l*100}function em(t,e){var l,i;let r=null==(l=null==t?void 0:t.bodyProperties)?void 0:l.child(e);if(null!=r&&r.exists())return r;let n=null==(i=null==t?void 0:t.layoutBodyProperties)?void 0:i.child(e);if(null!=n&&n.exists())return n}let ex=/^\+(mj|mn)-(lt|ea|cs)$/,eg={lt:"latin",ea:"ea",cs:"cs"},ey=["Hans","Hant","Jpan","Hang"];function eb(t,e,l){let i=t.match(ex);if(!i)return t;let r=i[1],n=i[2],a="mj"===r?e.theme.majorFont:e.theme.minorFont,o=a[eg[n]];if(o)return o;if("ea"===n){let t=function(t,e){if(t){for(let l of Array.isArray(e)?e.filter(t=>"string"==typeof t&&t.length>0):"string"==typeof e&&e.length>0?[e]:[]){let e=function(t){let e=t.toLowerCase();return e.startsWith("zh")?/-(tw|hk|mo)\b/.test(e)?"Hant":"Hans":e.startsWith("ja")?"Jpan":e.startsWith("ko")?"Hang":e.startsWith("ar")?"Arab":e.startsWith("he")?"Hebr":e.startsWith("th")?"Thai":e.startsWith("hi")||e.startsWith("mr")||e.startsWith("ne")?"Deva":void 0}(l);if(e&&t[e])return t[e]}for(let e of ey)if(t[e])return t[e]}}(a.scripts,l);if(t)return t}return a.latin||a.ea||a.cs||t}function ev(t,e,l){let i=new Set,r=[];for(let n of t){if(!n)continue;let t=eb(n,e,l).trim();if(!t)continue;let a=t.toLowerCase();i.has(a)||(i.add(a),r.push(t))}return r}let eM=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","emoji","math","fangsong"]),eL=["PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Source Han Sans SC","Arial Unicode MS","sans-serif"],eA=new Set(["microsoft yahei","microsoft yahei ui","微软雅黑","dengxian","ç‰线","simhei","黑体","heiti sc"]),ew={calibri:["Calibri","Aptos","Carlito","system-ui","Arial","Helvetica","sans-serif"],"calibri light":["Calibri Light","Aptos Display","Aptos","Carlito","system-ui","Arial","Helvetica","sans-serif"],aptos:["Aptos","system-ui","Arial","Helvetica","sans-serif"],"aptos display":["Aptos Display","Aptos","system-ui","Arial","Helvetica","sans-serif"],"microsoft yahei":["Microsoft YaHei","微软雅黑"],"microsoft yahei ui":["Microsoft YaHei UI","Microsoft YaHei","微软雅黑"],微软雅黑:["微软雅黑","Microsoft YaHei"],dengxian:["DengXian","ç‰线"],ç‰线:["ç‰线","DengXian"],simhei:["SimHei","黑体"],黑体:["黑体","SimHei"],"heiti sc":["Heiti SC","黑体","SimHei"]};function eS(t){return t.trim().replace(/^['"]|['"]$/g,"").toLowerCase()}function eC(t){let e=eS(t);return eM.has(e)?e:`"${t.trim().replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function ek(t){return ew[eS(t)]??[t.trim()]}function eF(t){let e=Array.isArray(t)?t.flatMap(ek):ek(t),l=e.some(t=>eA.has(eS(t)))?[...e,...eL]:e,i=new Set;return l.filter(t=>{let e=eS(t);
2return!i.has(e)&&(i.add(e),!0)}).map(eC).join(", ")}function eE(t){let e=t.search(/[?#]/);return e>=0?t.slice(0,e):t}function ej(t){return eE(t).replace(/\\/g,"/").replace(/^\/+/,"")}function eB(t){let e=t.slide.index;if(e>=0&&e<t.presentation.slides.length)return e;let l=ej(t.slide.slidePath||""),i=t.presentation.slides.findIndex(t=>ej(t.slidePath||"")===l);return i>=0?i:0}function eP(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return t}}function ez(t,e,l){return(null==e?void 0:e.toLowerCase())==="ppaction://hlinksldjump"&&l?function(t,e){let l,i;if(G(e.targetMode))return;let r=ej(V((i=(l=(t.slide.slidePath||"ppt/slides/slide1.xml").replace(/\\/g,"/")).lastIndexOf("/"))>=0?l.slice(0,i):"",e.target)),n=t.presentation.slides.findIndex(t=>ej(t.slidePath||"")===r);if(n>=0)return n;let a=eE(e.target).match(/(?:^|[\\/])slide(\d+)\.xml$/i);if(a)return parseInt(a[1],10)-1}(t,l):e?function(t,e){var l;let i=e.match(/^ppaction:\/\/hlinkshowjump\?(.+)$/i);if(!i)return;let r=null==(l=function(t,e){let l=e.toLowerCase();for(let e of t.split("&")){let[t,...i]=e.split("=");if(eP(t).toLowerCase()===l)return eP(i.join("="))}}(i[1],"jump"))?void 0:l.toLowerCase(),n=t.presentation.slides.length;if(0!==n)switch(r){case"firstslide":return 0;case"lastslide":return n-1;case"nextslide":{let e=eB(t)+1;return e<n?e:void 0}case"previousslide":{let e=eB(t)-1;return e>=0?e:void 0}default:return}}(t,e):void 0}function eN(t){return`Go to slide ${t+1}`}function eD(t){if(!t)return;let e=t.trim();if(!(0===e.length||e.length>32))return/^[+-]?(?:\d+(?:[.,]\d+)?|\d{1,3}(?:,\d{3})+(?:\.\d+)?)\s*(?:%|[A-Za-z]{1,4})?$/.test(e)?e:void 0}function eI(t,e){e&&t.appendChild(document.createTextNode(e.replace(/ {2}/g," \xa0")))}function eR(t,e){if(!t||!t.exists())return new H(null);let l=t.child(`lvl${e+1}pPr`);return l.exists()?l:t.child("defPPr")}function eZ(t,e){for(let l of t){let t,i=l.child("nvSpPr");if(i.exists()&&(t=i.child("nvPr").child("ph")),!t||!t.exists()){let e=l.child("nvPicPr");e.exists()&&(t=e.child("nvPr").child("ph"))}if(!t||!t.exists())continue;let r=t.attr("type"),n=t.numAttr("idx");if(void 0!==e.idx&&n===e.idx||e.type&&r===e.type)return l}}function eT(t){let e=t.child("txBody");if(!e.exists())return;let l=e.child("lstStyle");return l.exists()?l:void 0}function eO(t,e){if(!e.exists())return;let l=e.attr("algn");l&&(t.align=l);let i=e.attr("rtl");void 0!==i&&(t.rtl=ti(i));let r=e.numAttr("marL");void 0!==r&&(t.marginLeft=q(r));let n=e.numAttr("indent");void 0!==n&&(t.textIndent=q(n));let a=e.numAttr("defTabSz");void 0!==a&&(t.defaultTabSize=q(a));let o=e.child("lnSpc");if(o.exists()){let e=o.child("spcPct");if(e.exists()){let l=e.numAttr("val");void 0!==l&&(t.lineHeight=`${(l/1e5).toFixed(3)}`)}let l=o.child("spcPts");if(l.exists()){let e=l.numAttr("val");void 0!==e&&(t.lineHeight=`${e/100}pt`,t.lineHeightAbsolute=!0)}}let s=e.child("spcBef");if(s.exists()){let e=s.child("spcPts");if(e.exists()){let l=e.numAttr("val");void 0!==l&&(t.spaceBefore=l/100)}let l=s.child("spcPct");if(l.exists()){let e=l.numAttr("val");void 0!==e&&(t.spaceBeforePct=e/1e5)}}let d=e.child("spcAft");if(d.exists()){let e=d.child("spcPts");if(e.exists()){let l=e.numAttr("val");void 0!==l&&(t.spaceAfter=l/100)}let l=d.child("spcPct");if(l.exists()){let e=l.numAttr("val");void 0!==e&&(t.spaceAfterPct=e/1e5)}}let u=e.child("buChar");u.exists()&&(t.bulletChar=u.attr("char")||"",t.bulletNone=!1);let h=e.child("buAutoNum");if(h.exists()){t.bulletAutoNum=h.attr("type")||"arabicPeriod";let e=h.numAttr("startAt");void 0!==e&&(t.bulletAutoNumStartAt=e),t.bulletNone=!1}e.child("buNone").exists()&&(t.bulletNone=!0,t.bulletChar=void 0,t.bulletAutoNum=void 0);let c=e.child("buFont");c.exists()&&(t.bulletFont=c.attr("typeface"));let $=e.child("buSzPct");if($.exists()){let e=$.numAttr("val");void 0!==e&&(t.bulletSizePct=e/1e5,t.bulletSizePt=void 0)}let f=e.child("buSzPts");if(f.exists()){let e=f.numAttr("val");void 0!==e&&(t.bulletSizePt=e/100,t.bulletSizePct=void 0)}e.child("buSzTx").exists()&&(t.bulletSizePct=void 0,t.bulletSizePt=void 0),e.child("buClrTx").exists()&&(t.bulletColorFollowsText=!0,t.bulletColorNode=void 0);let p=e.child("buClr");p.exists()&&(t.bulletColorNode=p,t.bulletColorFollowsText=!1);let m=e.child("defRPr");m.exists()&&(t.defRPr=m,t.defRPrs??(t.defRPrs=[]),t.defRPrs.push(m))}function eW(t,e,l){if(!e.exists())return;let i=e.numAttr("sz");void 0!==i&&(t.fontSize=i/100);let r=e.attr("b");void 0!==r&&(t.bold=ti(r));let n=e.attr("i");void 0!==n&&(t.italic=ti(n));let a=e.attr("u");void 0!==a&&"none"!==a&&(t.underline=!0),"none"===a&&(t.underline=!1);let o=e.attr("strike");void 0!==o&&"noStrike"!==o&&(t.strikethrough=!0),"noStrike"===o&&(t.strikethrough=!1);let s=e.child("highlight");s.exists()&&(t.highlightColor=tY(s,l));let d=e.child("uFill");
2if(d.exists()){let e=d.child("solidFill");e.exists()&&(t.underlineColor=tY(e,l),t.underlineFollowsText=!1)}e.child("uFillTx").exists()&&(t.underlineFollowsText=!0,t.underlineColor=void 0);let u=e.child("solidFill");if(u.exists()){delete t.textGradientCss,delete t.textPatternCss,delete t.textNoFill;let{color:e,alpha:i}=tG(u,l),r=e.startsWith("#")?e:`#${e}`;if(i<1){let{r:e,g:l,b:n}=eG(r);t.color=`rgba(${e},${l},${n},${i.toFixed(3)})`}else t.color=r}let h=e.child("gradFill");if(h.exists()){delete t.color,delete t.textPatternCss,delete t.textNoFill;let e=eQ(h,l);e&&(t.textGradientCss=e)}if(e.child("pattFill").exists()){delete t.color,delete t.textGradientCss,delete t.textNoFill;let i=t_(e,l);i&&(t.textPatternCss=i)}let c=[],$=[e.attr("lang"),e.attr("altLang")];for(let t of["latin","ea","cs"]){let i=e.child(t);if(!i.exists())continue;let r=i.attr("typeface");r&&c.push(eb(r,l,$))}c.length>0&&(t.fontFamily=c[0],t.fontFamilyStack=c);let f=e.child("hlinkClick");if(f.exists()){let e=f.attr("id")??f.attr("r:id"),i=e?l.slide.rels.get(e):void 0,r=ez(l,f.attr("action"),i);void 0!==r&&l.onNavigate?(t.hlinkSlideIndex=r,t.hlinkTooltip=f.attr("tooltip"),void 0===t.underline&&(t.underline=!0)):i&&G(i.targetMode)&&ei(i.target)&&(t.hlinkClick=i.target,void 0===t.underline&&(t.underline=!0))}let p=e.numAttr("spc");void 0!==p&&(t.letterSpacingPt=p/100);let m=e.numAttr("kern");void 0!==m&&(t.kern=m/100);let x=e.attr("cap");void 0!==x&&(t.cap=x);let g=e.numAttr("baseline");void 0!==g&&(t.baseline=g);let y=e.child("effectLst"),b=y.child("outerShdw");if(b.exists()){let e=function(t,e){let l=q(t.numAttr("dist")??0),i=q(t.numAttr("blurRad")??0),r=(t.numAttr("dir")??0)/6e4,n=l*Math.cos(r*Math.PI/180),a=l*Math.sin(r*Math.PI/180),{color:o,alpha:s}=tG(t,e);if(!(!o||s<=0))return`${n.toFixed(1)}px ${a.toFixed(1)}px ${i.toFixed(1)}px ${eX(o,s)}`}(b,l);e&&eY(t,e)}let v=y.child("glow");if(v.exists()){let e=function(t,e){let l=q(t.numAttr("rad")??0);if(!(l>0))return;let{color:i,alpha:r}=tG(t,e);if(!(!i||r<=0))return`0px 0px ${l.toFixed(1)}px ${eX(i,r)}`}(v,l);e&&eY(t,e)}e.child("noFill").exists()&&(delete t.color,delete t.textGradientCss,delete t.textPatternCss,t.textNoFill=!0);let M=e.child("ln");if(M.exists()&&!M.child("noFill").exists()){let e=M.numAttr("w");t.textOutlineWidth=e?q(e):.75;let i=M.child("solidFill");if(i.exists()){let{color:e,alpha:r}=tG(i,l);t.textOutlineColor=eX(e,r)}let r=M.child("gradFill");r.exists()&&(t.textOutlineGradientCss=eQ(r,l))}}function eH(t,e,l){for(let i of e.defRPrs??[])eW(t,i,l)}function eU(t,e){let l={};return eH(l,t,e),l}function eG(t){let e=t.replace(/^#/,""),l=parseInt(3===e.length?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e,16);return{r:l>>16&255,g:l>>8&255,b:255&l}}function eX(t,e){let l=t.startsWith("#")?t:`#${t}`;if(e>=1)return l;let{r:i,g:r,b:n}=eG(l);return`rgba(${i},${r},${n},${e.toFixed(3)})`}function eY(t,e){t.textShadow=t.textShadow?`${t.textShadow}, ${e}`:e}function eV(t,e){if(!(null!=t&&t.exists()))return;let l={};return eW(l,t,e),l.color}function eq(t){if(!t)return;let e=t.trim().toLowerCase();if(e.startsWith("#")){let{r:t,g:l,b:i}=eG(e);return`${t},${l},${i},1`}let l=e.match(/^rgba?\(([^)]+)\)$/);if(!l)return e;let i=l[1].split(",").map(t=>t.trim());if(i.length<3)return e;let[r,n,a]=i,o=i[3]??"1";return`${Number(r)},${Number(n)},${Number(a)},${Number(o)}`}function e_(t,e){let l=eq(t),i=eq(e);return void 0!==l&&l===i}function eQ(t,e){let l=t.child("gsLst"),i=[];for(let t of l.children("gs")){let l=100*Q(t.numAttr("pos")??0),{color:r,alpha:n}=tG(t,e);i.push({position:l,color:eX(r,n)})}if(0===i.length)return"";i.sort((t,e)=>t.position-e.position);let r=i.map(t=>`${t.color} ${t.position.toFixed(1)}%`).join(", "),n=t.child("lin");return n.exists()?`linear-gradient(${((_(n.numAttr("ang")??0)+90)%360).toFixed(1)}deg, ${r})`:`linear-gradient(180deg, ${r})`}function eK(t,e){var l;if(t.style.background=e,!t.style.background&&e.includes(" 0 0 / 8px 8px, ")){let i=e.split(" 0 0 / 8px 8px, "),r=null==(l=i[i.length-1])?void 0:l.trim(),n=i.slice(0,-1).map(t=>t.trim());n.length>0&&(t.style.backgroundImage=n.join(", "),t.style.backgroundSize=n.map(()=>"8px 8px").join(", ")),r&&(t.style.backgroundColor=r)}
2t.style.webkitBackgroundClip="text",t.style.backgroundClip="text",t.style.color="transparent"}function eJ(t){let e=[1e3,900,500,400,100,90,50,40,10,9,5,4,1],l=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],i="",r=t;for(let t=0;t<e.length;t++)for(;r>=e[t];)i+=l[t],r-=e[t];return i}function e0(t,e,l,i,r){var n,a,o,s,d;let u=function(t){if(!t||!t.type)return"other";let e=t.type;return"title"===e||"ctrTitle"===e?"title":"body"===e||"subTitle"===e||"obj"===e||"dt"===e||"ftr"===e||"sldNum"===e?"body":"other"}(e),h=1,c=0,$=em(t,"normAutofit");if(null!=$&&$.exists()){let t=$.numAttr("fontScale");void 0!==t&&(h=t/1e5);let e=$.numAttr("lnSpcReduction");void 0!==e&&(c=e/1e5)}let f=new Map,p=t.paragraphs.map((t,e)=>({index:e,visible:t.runs.some(t=>null!=t.text&&t.text.length>0)})).filter(t=>t.visible).map(t=>t.index),m=p[0],x=p[p.length-1],g=1===p.length?p[0]:void 0;for(let[$,p]of t.paragraphs.entries()){let y=document.createElement("div");y.style.width="100%",y.style.minWidth="0px",y.style.maxWidth="100%",y.style.boxSizing="border-box",y.style.overflowWrap="anywhere";let b=p.level;null!=r&&r.isVerticalText&&(y.style.wordBreak="keep-all");let v=p.runs.some(t=>t.text===` 3`),M=(null==r?void 0:r.compactSingleLineSpacing)&&$===g&&!v,L={};if(eO(L,eR(l.presentation.defaultTextStyle,b)),eO(L,eR(l.master.defaultTextStyle,b)),eO(L,eR("title"===u?l.master.textStyles.titleStyle:"body"===u?l.master.textStyles.bodyStyle:l.master.textStyles.otherStyle,b)),e){let t=eZ(l.master.placeholders,e);t&&eO(L,eR(eT(t),b))}if(e){let t=eZ(l.layout.placeholders.map(t=>t.node),e);t&&eO(L,eR(eT(t),b))}if(eO(L,eR(t.listStyle,b)),p.properties&&eO(L,p.properties),L.align){let t={l:"left",ctr:"center",r:"right",just:"justify",justLow:"justify",dist:"justify",thaiDist:"justify"};y.style.textAlign=t[L.align]||"left"}void 0!==L.rtl&&(y.style.direction=L.rtl?"rtl":"ltr"),void 0!==L.marginLeft&&(y.style.paddingLeft=`${L.marginLeft}px`),void 0!==L.textIndent&&(y.style.textIndent=`${L.textIndent}px`);let A=L.lineHeight??(null==r?void 0:r.defaultLineHeight);if(A){if(c>0){let t=parseFloat(A);isNaN(t)||(A=A.includes("pt")?`${(t*(1-c)).toFixed(2)}pt`:`${(t*(1-c)).toFixed(3)}`)}null!=r&&r.isVerticalText&&!L.lineHeightAbsolute?A="1":M&&L.lineHeightAbsolute&&(A="normal"),y.style.lineHeight=A}let w=12,S=eU(L,l);if(void 0!==S.fontSize&&(w=S.fontSize),p.runs.length>0&&p.runs[0].properties){let t=p.runs[0].properties.numAttr("sz");void 0!==t&&(w=t/100)}else if(0===p.runs.length&&p.endParaRPr){let t=p.endParaRPr.numAttr("sz");void 0!==t&&(w=t/100)}y.style.fontSize=`${w*h}pt`;let C=(null==r?void 0:r.trimOuterParagraphSpacing)&&$===m,k=(null==r?void 0:r.trimOuterParagraphSpacing)&&$===x;C?y.style.marginTop="0px":void 0!==L.spaceBefore?y.style.marginTop=`${L.spaceBefore}pt`:void 0!==L.spaceBeforePct&&(y.style.marginTop=`${L.spaceBeforePct*w}pt`),k?y.style.marginBottom="0px":void 0!==L.spaceAfter?y.style.marginBottom=`${L.spaceAfter}pt`:void 0!==L.spaceAfterPct&&(y.style.marginBottom=`${L.spaceAfterPct*w}pt`);let F=!p.runs.some(t=>null!=t.text&&t.text.length>0)||(null==e?void 0:e.type)==="sldNum"||(null==e?void 0:e.type)==="dt"||(null==e?void 0:e.type)==="ftr"||(null==e?void 0:e.type)==="title"||(null==e?void 0:e.type)==="ctrTitle"||(null==e?void 0:e.type)==="subTitle",E="";if(!F&&!0!==L.bulletNone){if(L.bulletChar)E=L.bulletChar;else if(L.bulletAutoNum){let t=`${b}:${L.bulletAutoNum}`,e=L.bulletAutoNumStartAt??f.get(t)??1;E=function(t,e){switch(t){case"arabicPeriod":default:return`${e}.`;case"arabicParenR":return`${e})`;case"arabicParenBoth":return`(${e})`;case"arabicPlain":return`${e}`;case"romanUcPeriod":return`${eJ(e)}.`;case"romanLcPeriod":return`${eJ(e).toLowerCase()}.`;case"alphaUcPeriod":return`${String.fromCharCode(64+((e-1)%26+1))}.`;case"alphaLcPeriod":return`${String.fromCharCode(96+((e-1)%26+1))}.`;case"alphaUcParenR":return`${String.fromCharCode(64+((e-1)%26+1))})`;case"alphaLcParenR":return`${String.fromCharCode(96+((e-1)%26+1))})`}}(L.bulletAutoNum,e),f.set(t,e+1)}}if(E){let e,i=document.createElement("span");i.textContent=E+" ";let n=L.marginLeft,a=L.textIndent;if(void 0!==n&&n>0&&void 0!==a&&a<0){let t=Math.max(0,n+a),e=Math.max(0,n-t);y.style.textIndent="0px","ctr"===L.align||"r"===L.align?(y.style.paddingLeft="0px",i.style.display="inline-block"):(y.style.position="relative",i.style.position="absolute",i.style.left=`${t}px`,i.style.top="0px"),i.style.width=`${e}px`,i.style.whiteSpace="pre"}L.bulletFont&&(i.style.fontFamily=eF(eb(L.bulletFont,l)));let o=L.bulletSizePt??w*(L.bulletSizePct??1);i.style.fontSize=`${o*h}pt`;let s=()=>{let t=p.runs.find(t=>null!=t.text&&t.text.length>0);if(!t)return;let e=eU(L,l);return t.properties&&eW(e,t.properties,l),e.color??(null==r?void 0:r.fontRefColor)??(null==r?void 0:r.cellTextColor)??(e.textNoFill?"transparent":void 0)};if(L.bulletColorNode&&L.bulletColorNode.exists()&&(e=tY(L.bulletColorNode,l)),void 0===e&&(e=s()),void 0===e&&t.listStyle){let i=eR(t.listStyle,b);if(i.exists()){let t=i.child("defRPr");if(t.exists()){let i={};eW(i,t,l),void 0!==i.color&&(e=i.color)}}}i.style.color=e??(null==r?void 0:r.fontRefColor)??(null==r?void 0:r.cellTextColor)??"#000000",y.appendChild(i)}let j=function(t){let e=new Map,l=1;for(let i=0;i<t.length;i++){if(e.has(i))continue;let r="",n=-1;for(let e=i;e<t.length&&e<i+4;e++){let l=t[e].text;if(void 0===l||l===` 4`||l.includes(" ")||(r+=l).trim().length>32)break;e>i&&void 0!==eD(r)&&(n=e)}if(n>i){let t=l++;for(let l=i;l<=n;l++)e.set(l,t);i=n}}return e}(p.runs),B=new Map;if(0===p.runs.length&&y.appendChild(document.createElement("br")),p.runs.some(t=>{var e;return null==(e=t.text)?void 0:e.includes(" ")})){let t=L.defaultTabSize??96;y.style.tabSize=`${t}px`}let P=L.lineHeightAbsolute&&v&&A,z=null;for(let[e,i]of(P&&((z=document.createElement("div")).style.height=A,z.style.overflow="visible",y.appendChild(z)),p.runs.entries())){let u,c;if(i.text===` 5`){P?((z=document.createElement("div")).style.height=A,z.style.overflow="visible",y.appendChild(z)):y.appendChild(document.createElement("br"));continue}let $={};if(eH($,L,l),i.properties&&eW($,i.properties,l),void 0===$.color&&t.listStyle){let e=eR(t.listStyle,b);if(e.exists()){let t=e.child("defRPr");if(t.exists()){let e={};eW(e,t,l),void 0!==e.color&&($.color=e.color)}}}if(void 0!==$.hlinkSlideIndex){let t=document.createElement("span"),e=$.hlinkSlideIndex;t.setAttribute("role","link"),t.tabIndex=0,t.title=$.hlinkTooltip||eN(e),t.style.cursor="pointer",t.addEventListener("click",t=>{var i;t.stopPropagation(),null==(i=l.onNavigate)||i.call(l,{slideIndex:e})}),t.addEventListener("keydown",t=>{var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),null==(i=l.onNavigate)||i.call(l,{slideIndex:e}))}),u=t}else if($.hlinkClick){let t=document.createElement("a");t.href=$.hlinkClick,t.target="_blank",t.rel="noopener noreferrer",u=t}else u=document.createElement("span");let f=eD(i.text),m=!!$.textGradientCss||!!$.textPatternCss||!!$.textNoFill||void 0!==$.textOutlineWidth||!!$.textOutlineColor||!!$.textOutlineGradientCss,x=!!i.text&&!!f&&i.text!==f&&!m;if(i.text&&i.text.includes(" "))u.textContent=i.text,u.style.whiteSpace="pre";else if(x){let t=i.text.indexOf(f),e=t+f.length;eI(u,i.text.slice(0,t));
5let l=document.createElement("span");l.textContent=f,l.style.whiteSpace="nowrap",u.appendChild(l),eI(u,i.text.slice(e))}else if(i.text&&/ {2}/.test(i.text)){let t=i.text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ {2}/g," \xa0");u.innerHTML=t}else u.textContent=i.text;f&&(i.text===f||i.text&&i.text!==f&&m)&&(u.style.whiteSpace="nowrap");let g=$.fontSize||12;u.style.fontSize=`${g*h}pt`,((null==(n=i.properties)?void 0:n.attr("b"))!==void 0?$.bold:(null==r?void 0:r.cellTextBold)??$.bold)&&(u.style.fontWeight="bold"),((null==(a=i.properties)?void 0:a.attr("i"))!==void 0?$.italic:(null==r?void 0:r.cellTextItalic)??$.italic)&&(u.style.fontStyle="italic");let v=[];$.underline&&v.push("underline"),$.strikethrough&&v.push("line-through"),v.length>0&&(u.style.textDecoration=v.join(" ")),$.highlightColor&&(u.style.backgroundColor=$.highlightColor);let M=function(t){if(!(null!=t&&t.exists()))return"none";if(t.child("gradFill").exists())return"explicit";let e=t.child("solidFill");if(!e.exists())return"none";let l=e.child("schemeClr").attr("val");return"tx1"===l||"tx2"===l?"defaultTextScheme":"explicit"}(i.properties),w="none"!==M;if(c=null!=r&&r.fontRefColor?w?$.color:r.fontRefColor:null!=r&&r.cellTextColor&&!w?r.cellTextColor:$.color,function(t,e,l,i,r,n){var a;return!!(l.hlinkClick||void 0!==l.hlinkSlideIndex)&&(!r||"defaultTextScheme"===i||"explicit"===i&&!!(null==(a=t.properties)?void 0:a.child("solidFill").child("srgbClr").exists())&&function(t,e,l,i){if(!l)return!1;for(let n of e.runs){var r;if(!(n===t||(null==(r=n.properties)?void 0:r.child("hlinkClick").exists()))&&e_(l,eV(n.properties,i)))return!0}return e_(l,eV(e.endParaRPr,i))}(t,e,l.color,n))}(i,p,$,M,w,l)){let t=l.theme.colorScheme.get("hlink");t&&(c=t.startsWith("#")?t:`#${t}`)}if(c?u.style.color=c:u.style.color="#000000",$.underlineFollowsText&&c&&(u.style.textDecorationColor=c),$.underlineColor&&(u.style.textDecorationColor=$.underlineColor),$.textShadow&&(u.style.textShadow=$.textShadow),$.textGradientCss&&eK(u,$.textGradientCss),$.textPatternCss&&eK(u,$.textPatternCss),$.textNoFill||$.textOutlineWidth){let t=$.textOutlineWidth??.75;if($.textNoFill&&$.textOutlineGradientCss){u.style.color="transparent",u.style.webkitTextStrokeWidth=`${t}px`,u.style.webkitTextStrokeColor="#ffffff",u.style.paintOrder="stroke fill";let e=$.textOutlineGradientCss;u.style.maskImage=e,u.style.webkitMaskImage=e}else $.textNoFill&&$.textOutlineColor?(u.style.color="transparent",u.style.webkitTextStrokeWidth=`${t}px`,u.style.webkitTextStrokeColor=$.textOutlineColor,u.style.paintOrder="stroke fill"):$.textNoFill?u.style.color="transparent":$.textOutlineColor&&(u.style.webkitTextStrokeWidth=`${t}px`,u.style.webkitTextStrokeColor=$.textOutlineColor,u.style.paintOrder="stroke fill")}let S=(null==(o=i.properties)?void 0:o.child("latin").exists())||(null==(s=i.properties)?void 0:s.child("ea").exists())||(null==(d=i.properties)?void 0:d.child("cs").exists())?$.fontFamilyStack??$.fontFamily:(null==r?void 0:r.cellTextFontFamily)??$.fontFamilyStack??$.fontFamily;if(S){let t=Array.isArray(S)?S.map(t=>eb(t,l)):eb(S,l);u.style.fontFamily=eF(t)}else{let t=l.theme.minorFont.latin||l.theme.minorFont.ea;t&&(u.style.fontFamily=eF(t))}if(void 0!==$.letterSpacingPt&&(u.style.letterSpacing=`${$.letterSpacingPt}pt`),void 0!==$.kern){let t=($.fontSize||12)*h;u.style.fontKerning=t>=$.kern?"normal":"none"}if("all"===$.cap?u.style.textTransform="uppercase":"small"===$.cap&&(u.style.fontVariant="small-caps"),void 0!==$.baseline&&0!==$.baseline){let t=$.baseline/1e3;u.style.verticalAlign=`${t}%`,Math.abs(t)>=20&&(u.style.fontSize=`${g*h*.65}pt`)}let C=z??y,k=j.get(e);if(void 0!==k){let t=B.get(k);t||((t=document.createElement("span")).style.whiteSpace="nowrap",B.set(k,t),C.appendChild(t)),t.appendChild(u)}else C.appendChild(u)}if(p.endParaRPr){let t=p.runs[p.runs.length-1];if((null==t?void 0:t.text)===` 6`){let t=p.endParaRPr.numAttr("sz");if(void 0!==t){let e=document.createElement("span");e.textContent="​",e.style.fontSize=`${t/100*h}pt`,(z??y).appendChild(e)}}}i.appendChild(y)}}function e1(t,e,l,i){let r=t.child("pathLst");if(!r.exists())return"";let n=r.children("path"),a=[];for(let t of n){let r=function(t){let e=0,l=0;for(let i of t.allChildren()){if("moveTo"===i.localName||"lnTo"===i.localName){let t=i.child("pt");e=Math.max(e,t.numAttr("x")??0),l=Math.max(l,t.numAttr("y")??0);continue}if("cubicBezTo"===i.localName||"quadBezTo"===i.localName){for(let t of i.children("pt"))e=Math.max(e,t.numAttr("x")??0),l=Math.max(l,t.numAttr("y")??0);continue}"arcTo"===i.localName&&(e=Math.max(e,i.numAttr("wR")??0),l=Math.max(l,i.numAttr("hR")??0))}return{w:Math.max(1,e),h:Math.max(1,l)}}(t),n=t.numAttr("w")??(null==i?void 0:i.w)??r.w,o=t.numAttr("h")??(null==i?void 0:i.h)??r.h,s=n>0?e/n:1,d=o>0?l/o:1,u=0,h=0;for(let e of t.allChildren())switch(e.localName){case"moveTo":{let t=e.child("pt"),l=(t.numAttr("x")??0)*s,i=(t.numAttr("y")??0)*d;a.push(`M${l},${i}`),u=l,h=i;break}case"lnTo":{let t=e.child("pt"),l=(t.numAttr("x")??0)*s,i=(t.numAttr("y")??0)*d;
6a.push(`L${l},${i}`),u=l,h=i;break}case"cubicBezTo":{let t=e.children("pt");if(t.length>=3){let e=(t[0].numAttr("x")??0)*s,l=(t[0].numAttr("y")??0)*d,i=(t[1].numAttr("x")??0)*s,r=(t[1].numAttr("y")??0)*d,n=(t[2].numAttr("x")??0)*s,o=(t[2].numAttr("y")??0)*d;a.push(`C${e},${l} ${i},${r} ${n},${o}`),u=n,h=o}break}case"quadBezTo":{let t=e.children("pt");if(t.length>=2){let e=(t[0].numAttr("x")??0)*s,l=(t[0].numAttr("y")??0)*d,i=(t[1].numAttr("x")??0)*s,r=(t[1].numAttr("y")??0)*d;a.push(`Q${e},${l} ${i},${r}`),u=i,h=r}break}case"arcTo":{let t=e.numAttr("wR")??0,l=e.numAttr("hR")??0,i=t*s,r=l*d,n=e.numAttr("stAng")??0,o=e.numAttr("swAng")??0,c=n/6e4,$=o/6e4;if(0===i||0===r||0===$)break;let f=c*Math.PI/180,p=Math.atan2(t*Math.sin(f),l*Math.cos(f)),m=(c+$)*Math.PI/180,x=Math.atan2(t*Math.sin(m),l*Math.cos(m)),g=(u/s-t*Math.cos(p)+t*Math.cos(x))*s,y=(h/d-l*Math.sin(p)+l*Math.sin(x))*d,b=+(Math.abs($)>180),v=+($>0);a.push(`A${i},${r} 0 ${b},${v} ${g},${y}`),u=g,h=y;break}case"close":a.push("Z")}}return a.join(" ")}function e2(t,e,l){return((null==t?void 0:t.get(e))??l)/1e5}function e5(t,e,l){return(null==t?void 0:t.get(e))??l}function e3(t,e,l,i=.4){let r=t/2,n=e/2,a=t/2,o=e/2,s=a*i,d=o*i,u=2*l,h=[];for(let t=0;t<u;t++){let e=2*Math.PI*t/u-Math.PI/2,l=t%2==0,i=r+(l?a:s)*Math.cos(e),c=n+(l?o:d)*Math.sin(e);h.push(0===t?`M${i},${c}`:`L${i},${c}`)}return h.push("Z"),h.join(" ")}let e6=new Map;function e4(t){let e=t.indexOf("Z");return -1===e?{outer:t,remainder:""}:{outer:t.slice(0,e+1).trim(),remainder:t.slice(e+1).trim()}}function e8(t,e,l,i){let r=e6.get(t)(e,l,i),{outer:n,remainder:a}=e4(r);return a?"curvedRightArrow"===t?[{d:a,fill:"norm",stroke:!0},{d:n,fill:"norm",stroke:!0}]:[{d:n,fill:"norm",stroke:!0},{d:a,fill:"norm",stroke:!0}]:[{d:r,fill:"norm",stroke:!0}]}function e7(t,e,l,i){let r=e6.get("curvedDownArrow")(e,l,i),{outer:n,remainder:a}=e4(r),o=a?[{d:a,fill:"norm",stroke:!0},{d:n,fill:"norm",stroke:!0}]:[{d:r,fill:"norm",stroke:!0}];return"curvedDownArrow"===t?o:o.map(t=>({...t,d:function(t,e){let l=t.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!l)return t;let i=[],r=0;for(;r<l.length;){let t=l[r++];if(!t)break;if(i.push(t),"Z"!==t){if("M"===t||"L"===t){let t=Number(l[r++]),n=Number(l[r++]);i.push(String(t),String(e-n));continue}if("A"===t){let t=l[r++],n=l[r++],a=l[r++],o=l[r++],s=Number(l[r++]),d=Number(l[r++]),u=Number(l[r++]);i.push(t,n,a,o,String(+!s),String(d),String(e-u))}}}return i.join(" ")}(t.d,l)})).reverse()}function e9(t,e,l,i=!1,r="circularArrow"){let n,a,o,s,d=t/2,u=e/2,h=Math.min(t,e),c=t=>t/6e4*Math.PI/180,$=(t,e)=>t*Math.sin(c(e)),f=(t,e)=>t*Math.cos(c(e)),p=(t,e,l)=>t*Math.cos(Math.atan2(l,e)),m=(t,e,l)=>t*Math.sin(Math.atan2(l,e)),x=(t,e)=>180*Math.atan2(e,t)/Math.PI*6e4,g=(t,e,l)=>Math.sqrt(t*t+e*e+l*l),y="leftCircularArrow"===r,b=(null==l?void 0:l.get("adj1"))??12500,v=(null==l?void 0:l.get("adj2"))??(y?-1142319:1142319),M=(null==l?void 0:l.get("adj3"))??(y?1142319:0x13828d1),L=(null==l?void 0:l.get("adj4"))??108e5,A=Math.max(0,Math.min((null==l?void 0:l.get("adj5"))??12500,25e3)),w=Math.max(1,Math.min(M,0x14996ff)),S=Math.max(0,Math.min(L,0x14996ff)),C=h*Math.max(0,Math.min(b,2*A))/1e5,k=h*A/1e5,F=C/2,E=t/2+F-k,j=e/2+F-k,B=E-C,P=j-C,z=B+F,N=P+F,D=$(z,w),I=f(N,w),R=p(z,I,D),Z=m(N,I,D),T=d+R,O=u+Z,W=Math.min(B,P),H=R*R,U=Z*Z,G=W*W,X=H-G,Y=Math.sqrt(Math.max(0,1-(0!==U?(0!==U?X*(U-G)/H:0)/U:0))),V=0!==Z?(0!==R?X/R:0)/Z:0,q=x(1,0!==V?(1+Y)/V:0),_=(q>=0?q:q+216e5)-w,Q=_>=0?_:_+216e5,K=Math.abs(Q-108e5>=0?Q-216e5:Q),J=w+(y?Math.max(-K,Math.min(-Math.abs(v),0)):Math.max(0,Math.min(v,K))),tt=$(z,J),te=f(N,J),tl=p(z,te,tt),ti=m(N,te,tt),tr=d+tl,tn=u+ti,ta=$(E,S),to=f(j,S),ts=p(E,to,ta),td=m(j,to,ta),tu=d+ts,th=u+td,tc=f(k,J),t$=$(k,J),tf=T+tc,tp=O+t$,tm=T-tc,tx=O-t$,tg=tm-d,ty=tx-u,tb=tf-d,tv=tp-u,tM=Math.min(E,j),tL=0!==E?tg*tM/E:0,tA=0!==j?ty*tM/j:0,tw=0!==E?tb*tM/E:0,tS=0!==j?tv*tM/j:0,tC=tw-tL,tk=tS-tA,tF=g(tC,tk,0),tE=tL*tS-tw*tA,tj=tF*tF,tB=Math.sqrt(Math.max(tM*tM*tj-tE*tE,0)),tP=-1*tk>=0?-1:1,tz=tP*tC*tB,tN=tE*tk,tD=0!==tj?(tN+tz)/tj:0,tI=0!==tj?(tN-tz)/tj:0,tR=Math.abs(tk)*tB,tZ=-(tE*tC*1),tT=0!==tj?(tZ+tR)/tj:0,tO=0!==tj?(tZ-tR)/tj:0,tW=g(tw-tD,tS-tT,0),tH=g(tw-tI,tS-tO,0)-tW,tU=0!==tM?(tH>=0?tD:tI)*E/tM:0,tG=0!==tM?(tH>=0?tT:tO)*j/tM:0,tX=d+tU,tY=u+tG,tV=0!==B?tg*W/B:0,tq=0!==P?ty*W/P:0,t_=0!==B?tb*W/B:0,tQ=0!==P?tv*W/P:0,tK=t_-tV,tJ=tQ-tq,t0=g(tK,tJ,0),t1=tV*tQ-t_*tq,t2=t0*t0,t5=Math.sqrt(Math.max(W*W*t2-t
61*t1,0)),t3=tP*tK*t5,t6=t1*tJ,t4=0!==t2?(t6+t3)/t2:0,t8=0!==t2?(t6-t3)/t2:0,t7=Math.abs(tJ)*t5,t9=-(t1*tK*1),et=0!==t2?(t9+t7)/t2:0,ee=0!==t2?(t9-t7)/t2:0,el=g(tV-t4,tq-et,0),ei=g(tV-t8,tq-ee,0)-el,er=0!==W?(ei>=0?t4:t8)*B/W:0,en=0!==W?(ei>=0?et:ee)*P/W:0,ea=d+er,eo=u+en,es=x(er,en),ed=es>=0?es:es+216e5,eu=S-ed;if(y){let t=eu>=0?eu:eu+216e5;n=ed+t,a=-t}else n=ed,a=eu>=0?eu-216e5:eu;let eh=g(tX-ea,tY-eo,0)/2-k,ec=eh>=0?tX:tf,e$=eh>=0?tY:tp,ef=eh>=0?ea:tm,ep=eh>=0?eo:tx,em=x(tU,tG),ex=(em>=0?em:em+216e5)-S;if(y){let t=ex>=0?ex-216e5:ex;o=S+t,s=-t}else o=S,s=ex>=0?ex:ex+216e5;let eg=o+s,ey=$(E,eg),eb=f(j,eg),ev=d+p(E,eb,ey),eM=u+m(j,eb,ey),eL=n+a,eA=$(B,eL),ew=f(P,eL),eS=d+p(B,ew,eA),eC=u+m(P,ew,eA),ek=+(Math.abs(s/6e4)>180),eF=+(s>0),eE=+(Math.abs(a/6e4)>180),ej=+(a>0);if(y){let t=$(B,S),e=f(P,S),l=d+p(B,e,t),i=u+m(P,e,t);return`M${tu},${th} L${l},${i} A${B},${P} 0 ${eE},${ej} ${eS},${eC} L${ef},${ep} L${tr},${tn} L${ec},${e$} L${tX},${tY} A${E},${j} 0 ${ek},${eF} ${ev},${eM} Z`}return`M${tu},${th} A${E},${j} 0 ${ek},${eF} ${ev},${eM} L${ec},${e$} L${tr},${tn} L${ef},${ep} L${ea},${eo} A${B},${P} 0 ${eE},${ej} ${eS},${eC} Z`}function lt(t,e,l,i,r){let n=t/2,a=e/2,o=Math.min(t,e),s=o*Math.min(Math.max(i,0),2e4)/1e5,d=o*Math.min(Math.max(r,0),6===l?5358:2679)/1e5,u=t/2-s,h=e/2-s;if(u<=0||h<=0)return`M0,0 L${t},0 L${t},${e} L0,${e} Z`;let c=Math.atan2(s/2+d/2,Math.min(u,h)),$=6===l?[330,30,90,150,210,270]:[310,350,30,70,110,150,190,230,270],f=[];for(let t=0;t<$.length;t++){let e=$[t]*Math.PI/180,l=e-c,i=e+c,r=n+u*Math.cos(l),o=a+h*Math.sin(l),p=n+u*Math.cos(i),m=a+h*Math.sin(i),x=p-r,g=m-o,y=Math.sqrt(x*x+g*g),b=Math.cos(e),v=Math.sin(e),M=b,L=v;y>0&&(M=-g/y,L=x/y),M*b+L*v<0&&(M=-M,L=-L);let A=y>0?x/y:0,w=y>0?g/y:0,S=r+A*d+M*s,C=o+w*d+L*s,k=p-A*d+M*s,F=m-w*d+L*s;if(0===t){let t=$[$.length-1]*Math.PI/180+c,e=n+u*Math.cos(t),l=a+h*Math.sin(t);f.push(`M${e},${l}`),f.push(`A${u},${h} 0 0,1 ${r},${o}`)}if(f.push(`L${S},${C}`),f.push(`L${k},${F}`),f.push(`L${p},${m}`),t<$.length-1){let e=$[t+1]*Math.PI/180-c,l=n+u*Math.cos(e),i=a+h*Math.sin(e);f.push(`A${u},${h} 0 0,1 ${l},${i}`)}}return f.push("Z"),f.join(" ")}e6.set("rect",(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`),e6.set("roundRect",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",16667);return`M${i},0 L${t-i},0 A${i},${i} 0 0,1 ${t},${i} L${t},${e-i} A${i},${i} 0 0,1 ${t-i},${e} L${i},${e} A${i},${i} 0 0,1 0,${e-i} L0,${i} A${i},${i} 0 0,1 ${i},0 Z`}),e6.set("plaque",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e5(l,"adj",16667),0),5e4)/1e5,r=t-i,n=e-i,a=ln(0,i,i,i,90,-90),o=ln(r,0,i,i,180,-90),s=ln(t,n,i,i,270,-90),d=ln(i,e,i,i,0,-90);return[`M0,${i}`,a.svg,`L${r},0`,o.svg,`L${t},${n}`,s.svg,`L${i},${e}`,d.svg,"Z"].join(" ")}),e6.set("cornerTabs",(t,e)=>{let l=Math.sqrt(t*t+e*e)/20;return`M0,0 L${l},0 L0,${l} Z M${t},0 L${t-l},0 L${t},${l} Z M${t},${e} L${t-l},${e} L${t},${e-l} Z M0,${e} L${l},${e} L0,${e-l} Z`}),e6.set("squareTabs",(t,e)=>{let l=Math.sqrt(t*t+e*e)/20;return`M0,0 L${l},0 L${l},${l} L0,${l} Z M${t-l},0 L${t},0 L${t},${l} L${t-l},${l} Z M0,${e-l} L${l},${e-l} L${l},${e} L0,${e} Z M${t-l},${e-l} L${t},${e-l} L${t},${e} L${t-l},${e} Z`}),e6.set("plaqueTabs",(t,e)=>{let l=Math.sqrt(t*t+e*e)/20;return`M0,0 L${l},0 A${l},${l} 0 0,1 0,${l} Z M${t},0 L${t-l},0 A${l},${l} 0 0,0 ${t},${l} Z M0,${e} L0,${e-l} A${l},${l} 0 0,1 ${l},${e} Z M${t},${e} L${t-l},${e} A${l},${l} 0 0,1 ${t},${e-l} Z`}),e6.set("ellipse",(t,e)=>{let l=t/2,i=e/2;return`M${t},${i} A${l},${i} 0 1,1 0,${i} A${l},${i} 0 1,1 ${t},${i} Z`}),e6.set("triangle",(t,e,l)=>{let i=e2(l,"adj",5e4);return`M${t*i},0 L${t},${e} L0,${e} Z`}),e6.set("isosTriangle",(t,e,l)=>{let i=e2(l,"adj",5e4);return`M${t*i},0 L${t},${e} L0,${e} Z`}),e6.set("rtTriangle",(t,e)=>`M0,0 L${t},${e} L0,${e} Z`),e6.set("diamond",(t,e)=>{let l=t/2,i=e/2;return`M${l},0 L${t},${i} L${l},${e} L0,${i} Z`}),e6.set("pentagon",(t,e)=>{let l=t/2,i=105146*l/1e5,r=e/2*110557/1e5,n=i*Math.cos(18*Math.PI/180),a=i*Math.cos(54*Math.PI/180),o=r*Math.sin(18*Math.PI/180),s=r*Math.sin(54*Math.PI/180);return`M${l-n},${r-o} L${l},0 L${l+n},${r-o} L${l+a},${r+s} L${l-a},${r+s} Z`}),e6.set("hexagon",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max(e5(l,"adj",25e3),0),i>0?5e4*t/i:5e4),n=i*r/1e5,a=t-n,o=e/2,s=e/2*115470/1e5*Math.sin(60*Math.PI/180),d=o-s,u=o+s;return`M0,${o} L${n},${d} L${a},${d} L${t},${o} L${a},${u} L${n},${u} Z`}),e6.set("octagon",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e5(l,"adj",29289),0),5e4)/1e5,r=t-i,n=e-i;return`M0,${i} L${i},0 L${r},0 L${t},${i} L${t},${n} L${r},${e} L${i},${e} L0,${n} Z`}),e6.set("heptagon",(t,e)=>{let l=t/2,i=102572*l/1e5,r=e/2*105210/1e5,n=e/2*105210/1e5,a=97493*i/1e5,o=78183*i/1e5,s=43388*i/1e5,d=62349*r/1e5,u=22252*r/1e5,h=90097*r/1e5;return`M${l-a},${n+u} L${l-o},${n-d} L${l},0 L${l+o},${n-d} L${l+a},${n+u} L${l+s}
6,${n+h} L${l-s},${n+h} Z`}),e6.set("decagon",(t,e)=>{let l=t/2,i=e/2,r=105146*i/1e5,n=l*Math.cos(36*Math.PI/180),a=l*Math.cos(72*Math.PI/180),o=r*Math.sin(72*Math.PI/180),s=r*Math.sin(36*Math.PI/180);return`M0,${i} L${l-n},${i-s} L${l-a},${i-o} L${l+a},${i-o} L${l+n},${i-s} L${t},${i} L${l+n},${i+s} L${l+a},${i+o} L${l-a},${i+o} L${l-n},${i+s} Z`}),e6.set("dodecagon",(t,e)=>{let l=2894*t/21600,i=7906*t/21600,r=13694*t/21600,n=18706*t/21600,a=2894*e/21600,o=7906*e/21600,s=13694*e/21600,d=18706*e/21600;return`M0,${o} L${l},${a} L${i},0 L${r},0 L${n},${a} L${t},${o} L${t},${s} L${n},${d} L${r},${e} L${i},${e} L${l},${d} L0,${s} Z`}),e6.set("parallelogram",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max(e5(l,"adj",25e3),0),i>0?1e5*t/i:1e5),n=i*r/1e5;return`M0,${e} L${n},0 L${t},0 L${t-n},${e} Z`}),e6.set("trapezoid",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max(e5(l,"adj",25e3),0),i>0?5e4*t/i:5e4),n=i*r/1e5;return`M0,${e} L${n},0 L${t-n},0 L${t},${e} Z`}),e6.set("nonIsoscelesTrapezoid",(t,e,l)=>{let i=Math.min(t,e),r=i>0?5e4*t/i:5e4,n=Math.min(Math.max(e5(l,"adj1",25e3),0),r),a=Math.min(Math.max(e5(l,"adj2",25e3),0),r);return`M0,${e} L${i*n/1e5},0 L${t-i*a/1e5},0 L${t},${e} Z`}),e6.set("corner",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max(e2(l,"adj1",5e4),0),1),n=i*Math.min(Math.max(e2(l,"adj2",5e4),0),1),a=e-i*r;return`M0,0 L${n},0 L${n},${a} L${t},${a} L${t},${e} L0,${e} Z`}),e6.set("diagStripe",(t,e,l)=>{let i=Math.min(Math.max(e2(l,"adj",5e4),0),1);return`M0,${e*i} L${t*i},0 L${t},0 L0,${e} Z`}),e6.set("star4",(t,e,l)=>e3(t,e,4,Math.min(Math.max(2*e2(l,"adj",12500),0),1))),e6.set("star5",(t,e,l)=>{let i=Math.min(Math.max((null==l?void 0:l.get("adj"))??19098,0),5e4),r=t/2*105146/1e5,n=e/2*110557/1e5,a=e/2*110557/1e5,o=r*i/5e4,s=n*i/5e4,d=t/2,u=2*Math.PI/5,h=u/2,c=-Math.PI/2,$=[];for(let t=0;t<5;t++){let e=c+u*t,l=e+h,i=d+r*Math.cos(e),f=a+n*Math.sin(e),p=d+o*Math.cos(l),m=a+s*Math.sin(l);$.push(0===t?`M${i},${f}`:`L${i},${f}`),$.push(`L${p},${m}`)}return $.push("Z"),$.join(" ")}),e6.set("star6",(t,e,l)=>{let i=Math.min(Math.max((null==l?void 0:l.get("adj"))??28868,0),5e4),r=t/2*115470/1e5,n=e/2,a=r*i/5e4,o=n*i/5e4,s=t/2,d=e/2,u=2*Math.PI/6,h=u/2,c=-Math.PI/2,$=[];for(let t=0;t<6;t++){let e=c+u*t,l=e+h,i=s+r*Math.cos(e),f=d+n*Math.sin(e),p=s+a*Math.cos(l),m=d+o*Math.sin(l);$.push(0===t?`M${i},${f}`:`L${i},${f}`),$.push(`L${p},${m}`)}return $.push("Z"),$.join(" ")}),e6.set("star7",(t,e,l)=>{let i=Math.min(Math.max((null==l?void 0:l.get("adj"))??34601,0),5e4),r=t/2*102572/1e5,n=e/2*105210/1e5,a=r*i/5e4,o=n*i/5e4,s=t/2,d=2*Math.PI/7,u=d/2,h=-Math.PI/2,c=[];for(let t=0;t<7;t++){let e=h+d*t,l=e+u,i=s+r*Math.cos(e),$=n+n*Math.sin(e),f=s+a*Math.cos(l),p=n+o*Math.sin(l);c.push(0===t?`M${i},${$}`:`L${i},${$}`),c.push(`L${f},${p}`)}return c.push("Z"),c.join(" ")}),e6.set("star8",(t,e,l)=>e3(t,e,8,Math.min(Math.max(2*e2(l,"adj",37500),0),1))),e6.set("star10",(t,e,l)=>{let i=Math.min(Math.max((null==l?void 0:l.get("adj"))??42533,0),5e4),r=t/2*105146/1e5,n=e/2,a=r*i/5e4,o=n*i/5e4,s=t/2,d=e/2,u=2*Math.PI/10,h=u/2,c=-Math.PI/2,$=[];for(let t=0;t<10;t++){let e=c+u*t,l=e+h,i=s+r*Math.cos(e),f=d+n*Math.sin(e),p=s+a*Math.cos(l),m=d+o*Math.sin(l);$.push(0===t?`M${i},${f}`:`L${i},${f}`),$.push(`L${p},${m}`)}return $.push("Z"),$.join(" ")}),e6.set("star12",(t,e,l)=>e3(t,e,12,Math.min(Math.max(2*e2(l,"adj",37500),0),1))),e6.set("star16",(t,e,l)=>e3(t,e,16,Math.min(Math.max(2*e2(l,"adj",37500),0),1))),e6.set("star24",(t,e,l)=>e3(t,e,24,Math.min(Math.max(2*e2(l,"adj",37500),0),1))),e6.set("star32",(t,e,l)=>e3(t,e,32,Math.min(Math.max(2*e2(l,"adj",37500),0),1))),e6.set("line",(t,e)=>0===t?`M0.5,0 L0.5,${e||1}`:0===e?`M0,0.5 L${t||1},0.5`:`M0,0 L${t},${e}`),e6.set("lineInv",(t,e)=>0===t?`M0.5,0 L0.5,${e||1}`:0===e?`M0,0.5 L${t||1},0.5`:`M${t},0 L0,${e}`),e6.set("straightConnector1",(t,e)=>0===t?`M0.5,0 L0.5,${e||1}`:0===e?`M0,0.5 L${t||1},0.5`:`M0,0 L${t},${e}`),e6.set("bentConnector2",(t,e)=>`M0,0 L${t},0 L${t},${e}`),e6.set("bentConnector3",(t,e,l)=>{let i=t*e2(l,"adj1",5e4);return`M0,0 L${i},0 L${i},${e} L${t},${e}`}),e6.set("bentConnector4",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=t*i,a=e*r;return`M0,0 L${n},0 L${n},${a} L${t},${a} L${t},${e}`}),e6.set("curvedConnector2",(t,e)=>`M0,0 C${t/2},0 ${t},${e/2} ${t},${e}`),e6.set("curvedConnector3",(t,e,l)=>{let i=t*e2(l,"adj1",5e4);return`M0,0 C${i/2},0 ${i},${e/4} ${i},${e/2} C${i},${3*e/4} ${(t+i)/2},${e} ${t},${e}`}),e6.set("curvedConnector4",(t,e,l)=>{let i=t*e2(l,"adj1",5e4),r=e*e2(l,"adj2",5e4),n=(t+i)/2,a=r/2;return`M0,0 C${i/2},0 ${i},${a/2} ${i},${a} C${i},${(a+r)/2} ${(i+n)/2},${r} ${n},${r} C${(n+t)/2},${r} ${t},${(e+r)/2} ${t},${e}`}),e6.set("curvedConnector5",(t,e,l)=>{let i=t*e2(l,"adj1",5e4),r=e*e2(l,"adj2",5e4),n=t*e2(l,"adj3",5e4),a=(i+n)/2,o=r/2,s=(e+r)/2;return`M0,0 C${i/2},0 ${i},${o/2} ${i},${o} C${i},${(o+r)/2} ${(i+a)/2},${r} ${a},${r} C${(n+a)/2},${r} ${n},${(s+r)/2} ${n},${s} C${n},${(s+e)/2} ${(n+t)/2},${e} ${t},${e}`}
6),e6.set("bentConnector5",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=e2(l,"adj3",5e4),a=t*i,o=e*r,s=t*n;return`M0,0 L${a},0 L${a},${o} L${s},${o} L${s},${e} L${t},${e}`}),e6.set("rightArrow",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=Math.min(t,e),a=e*i/2,o=e/2,s=t-n*r;return`M0,${o-a} L${s},${o-a} L${s},0 L${t},${o} L${s},${e} L${s},${o+a} L0,${o+a} Z`}),e6.set("leftArrow",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=Math.min(t,e),a=e*i/2,o=n*r,s=e/2;return`M${t},${s-a} L${o},${s-a} L${o},0 L0,${s} L${o},${e} L${o},${s+a} L${t},${s+a} Z`}),e6.set("upArrow",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=t*i/2,a=e*r,o=t/2;return`M${o-n},${e} L${o-n},${a} L0,${a} L${o},0 L${t},${a} L${o+n},${a} L${o+n},${e} Z`}),e6.set("downArrow",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=t*i/2,a=t/2,o=e-e*r;return`M${a-n},0 L${a+n},0 L${a+n},${o} L${t},${o} L${a},${e} L0,${o} L${a-n},${o} Z`}),e6.set("downArrowCallout",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??25e3,n=(null==l?void 0:l.get("adj3"))??25e3,a=(null==l?void 0:l.get("adj4"))??64977,o=Math.min(t,e),s=Math.max(0,Math.min(r,5e4*t/Math.max(o,1))),d=Math.max(0,Math.min(i,2*s)),u=Math.max(0,Math.min(n,1e5*e/Math.max(o,1))),h=Math.max(0,Math.min(a,1e5-u*o/Math.max(e,1))),c=t/2,$=o*s/1e5,f=o*d/2e5,p=c-f,m=c+f,x=e-o*u/1e5,g=e*h/1e5;return`M0,0 L${t},0 L${t},${g} L${m},${g} L${m},${x} L${c+$},${x} L${c},${e} L${c-$},${x} L${p},${x} L${p},${g} L0,${g} Z`}),e6.set("rightArrowCallout",(t,e,l)=>{let i=Math.min(t,e),r=5e4*e/Math.max(i,1),n=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,r)),a=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,2*n)),o=1e5*t/Math.max(i,1),s=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,o)),d=s*i/Math.max(t,1),u=Math.max(0,Math.min((null==l?void 0:l.get("adj4"))??64977,1e5-d)),h=e/2,c=i*n/1e5,$=i*a/2e5,f=h-$,p=h+$,m=t-i*s/1e5,x=t*u/1e5;return`M0,0 L${x},0 L${x},${f} L${m},${f} L${m},${h-c} L${t},${h} L${m},${h+c} L${m},${p} L${x},${p} L${x},${e} L0,${e} Z`}),e6.set("leftArrowCallout",(t,e,l)=>{let i=Math.min(t,e),r=5e4*e/Math.max(i,1),n=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,r)),a=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,2*n)),o=1e5*t/Math.max(i,1),s=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,o)),d=s*i/Math.max(t,1),u=Math.max(0,Math.min((null==l?void 0:l.get("adj4"))??64977,1e5-d)),h=e/2,c=i*n/1e5,$=i*a/2e5,f=h-$,p=h+$,m=i*s/1e5,x=t-t*u/1e5;return`M0,${h} L${m},${h-c} L${m},${f} L${x},${f} L${x},0 L${t},0 L${t},${e} L${x},${e} L${x},${p} L${m},${p} L${m},${h+c} Z`}),e6.set("upArrowCallout",(t,e,l)=>{let i=Math.min(t,e),r=5e4*t/Math.max(i,1),n=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,r)),a=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,2*n)),o=1e5*e/Math.max(i,1),s=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,o)),d=s*i/Math.max(e,1),u=Math.max(0,Math.min((null==l?void 0:l.get("adj4"))??64977,1e5-d)),h=t/2,c=i*n/1e5,$=i*a/2e5,f=h-$,p=h+$,m=i*s/1e5,x=e-e*u/1e5;return`M0,${x} L${f},${x} L${f},${m} L${h-c},${m} L${h},0 L${h+c},${m} L${p},${m} L${p},${x} L${t},${x} L${t},${e} L0,${e} Z`}),e6.set("upDownArrowCallout",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??25e3,n=(null==l?void 0:l.get("adj3"))??25e3,a=(null==l?void 0:l.get("adj4"))??48123,o=Math.min(t,e),s=Math.max(0,Math.min(r,5e4*t/Math.max(o,1))),d=Math.max(0,Math.min(i,2*s)),u=Math.max(0,Math.min(n,5e4*e/Math.max(o,1))),h=u*o/Math.max(e,1),c=o*s/1e5,$=o*d/2e5,f=t/2,p=f-c,m=f-$,x=f+$,g=f+c,y=o*u/1e5,b=e*Math.max(0,Math.min(a,1e5-h-h))/2e5,v=e/2-b,M=e/2+b,L=e-y;return`M${f},0 L${g},${y} L${x},${y} L${x},${v} L${t},${v} L${t},${M} L${x},${M} L${x},${L} L${g},${L} L${f},${e} L${p},${L} L${m},${L} L${m},${M} L0,${M} L0,${v} L${m},${v} L${m},${y} L${p},${y} Z`}),e6.set("leftRightArrowCallout",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??25e3,n=(null==l?void 0:l.get("adj3"))??25e3,a=(null==l?void 0:l.get("adj4"))??48123,o=Math.min(t,e),s=Math.max(0,Math.min(r,5e4*e/Math.max(o,1))),d=Math.max(0,Math.min(i,2*s)),u=Math.max(0,Math.min(n,5e4*t/Math.max(o,1))),h=u*o/Math.max(t,1),c=o*s/1e5,$=o*d/2e5,f=e/2,p=f-c,m=f-$,x=f+$,g=f+c,y=o*u/1e5,b=t*Math.max(0,Math.min(a,1e5-h-h))/2e5,v=t/2-b,M=t/2+b,L=t-y;return`M0,${f} L${y},${p} L${y},${m} L${v},${m} L${v},0 L${M},0 L${M},${m} L${L},${m} L${L},${p} L${t},${f} L${L},${g} L${L},${x} L${M},${x} L${M},${e} L${v},${e} L${v},${x} L${y},${x} L${y},${g} Z`}),e6.set("uturnArrow",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??25e3,n=(null==l?void 0:l.get("adj3"))??25e3,a=(null==l?void 0:l.get("adj4"))??43750,o=(null==l?void 0:l.get("adj5"))??75e3,s=Math.min(t,e),d=Math.max(0,Math.min(r,25e3)),u=Math.max(0,Math.min(i,2*d)),h=Math.max(0,Math.min(n,(1e5-u*s/Math.max(e,1))*e/Math.max(s,1))),c=Math.max((h+u)*s/Math.max(e,1),Math.min(o,1e5)),$=s*u/1e5,f=s*d/1e5,p=f-$/2,m=e*c/1e5,x=m-s*h/1e5,g=t-p,y=Math.max(0,Math.min(a,1e5*Math.min(g/2,x)/Math.max(s,1))),b=s*y/1e5,v=Math.max(b-$,0),M=$+v,L=t-f,A=L-f,w=A+p,S=w-v;return[`M0,${e}`,`L0,${b}`,b>.1?`A${b},${b} 0 0,1 ${b},0`:"L0,0",`L${g-b},0`,b>.1?`A${b},${b} 0 0,1 ${g},${b}`:`L${g},0`,`L${g},${x}`,`L${t},${x}`,`L${L},${m}`,`L${A},${x}`,`L${w},${x}`,`L${w},${M}`,v>
6.1?`A${v},${v} 0 0,0 ${S},${$}`:`L${S},${$}`,`L${M},${$}`,v>.1?`A${v},${v} 0 0,0 ${$},${M}`:`L${$},${M}`,`L${$},${e}`,"Z"].join(" ")}),e6.set("leftRightArrow",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max((null==l?void 0:l.get("adj1"))??5e4,0),1e5),n=Math.min(Math.max((null==l?void 0:l.get("adj2"))??5e4,0),i>0?5e4*t/i:0),a=i*n/1e5,o=t-a,s=e*r/2e5,d=e/2,u=d-s,h=d+s;return`M0,${d} L${a},0 L${a},${u} L${o},${u} L${o},0 L${t},${d} L${o},${e} L${o},${h} L${a},${h} L${a},${e} Z`}),e6.set("leftUpArrow",(t,e,l)=>{let i=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,5e4)),r=2*i,n=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,r)),a=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,1e5-r)),o=Math.min(t,e),s=o*a/1e5,d=o*i/5e4,u=o*i/1e5,h=t-u,c=e-u,$=o*n/2e5,f=h-$,p=h+$,m=c-$,x=c+$;return`M0,${c} L${s},${e-d} L${s},${m} L${f},${m} L${f},${s} L${t-d},${s} L${h},0 L${t},${s} L${p},${s} L${p},${x} L${s},${x} L${s},${e} Z`}),e6.set("upDownArrow",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??5e4,r=(null==l?void 0:l.get("adj2"))??5e4,n=Math.min(t,e),a=Math.max(0,Math.min(r,5e4*e/Math.max(n,1))),o=n*Math.max(0,Math.min(i,1e5))/2e5,s=n*a/1e5,d=t/2;return`M${d},0 L${t},${s} L${d+o},${s} L${d+o},${e-s} L${t},${e-s} L${d},${e} L0,${e-s} L${d-o},${e-s} L${d-o},${s} L0,${s} Z`}),e6.set("notchedRightArrow",(t,e,l)=>{let i=e2(l,"adj1",5e4),r=e2(l,"adj2",5e4),n=Math.min(t,e),a=e*i/2,o=n*r,s=e/2,d=t-o;return`M0,${s-a} L${d},${s-a} L${d},0 L${t},${s} L${d},${e} L${d},${s+a} L0,${s+a} L${s>0?a*o/s:0},${s} Z`}),e6.set("chevron",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",5e4);return`M0,0 L${t-i},0 L${t},${e/2} L${t-i},${e} L0,${e} L${i},${e/2} Z`}),e6.set("homePlate",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",5e4),r=t-i;return`M0,0 L${r},0 L${t},${e/2} L${r},${e} L0,${e} Z`}),e6.set("stripedRightArrow",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max(e5(l,"adj1",5e4),0),1e5),n=Math.min(Math.max(e5(l,"adj2",5e4),0),i>0?84375*t/i:84375),a=e*r/2e5,o=t-i*n/1e5,s=e/2,d=s-a,u=s+a,h=i/32,c=i/16,$=i/8,f=5*i/32;return`M0,${d} L${h},${d} L${h},${u} L0,${u} Z M${c},${d} L${$},${d} L${$},${u} L${c},${u} Z M${f},${d} L${o},${d} L${o},0 L${t},${s} L${o},${e} L${o},${u} L${f},${u} Z`}),e6.set("bentArrow",(t,e,l)=>{let i=Math.min(t,e),r=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,5e4)),n=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,2*r)),a=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,5e4)),o=i*n/1e5,s=i*r/1e5,d=s-o/2,u=i*a/1e5,h=Math.min(t-u,e-d),c=Math.max(0,Math.min((null==l?void 0:l.get("adj4"))??43750,h>0?1e5*h/i:0)),$=i*c/1e5,f=Math.max($-o,0),p=t-u,m=d+o,x=[`M0,${e}`,`L0,${d+$}`];return $>.1?x.push(`A${$},${$} 0 0,1 ${$},${d}`):x.push(`L0,${d}`),x.push(`L${p},${d}`,`L${p},0`,`L${t},${s}`,`L${p},${m+d}`,`L${p},${m}`,`L${o+f},${m}`),f>.1?x.push(`A${f},${f} 0 0,0 ${o},${m+f}`):x.push(`L${o},${m}
6`),x.push(`L${o},${e}`,"Z"),x.join(" ")}),e6.set("bentUpArrow",(t,e,l)=>{let i=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,5e4)),r=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,5e4)),n=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,5e4)),a=Math.min(t,e),o=a*n/1e5,s=t-a*r/1e5,d=a*i/2e5,u=s-d,h=s+d,c=e-a*i/1e5;return`M0,${c} L${u},${c} L${u},${o} L${t-a*r/5e4},${o} L${s},0 L${t},${o} L${h},${o} L${h},${e} L0,${e} Z`}),e6.set("curvedRightArrow",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??5e4,n=(null==l?void 0:l.get("adj3"))??25e3,a=Math.max(Math.min(t,e),1),o=Math.max(0,Math.min(r,5e4*e/a)),s=a*Math.max(0,Math.min(i,o))/1e5,d=a*o/1e5,u=e/2-(s+d)/4,h=2*u,c=Math.sqrt(Math.max(h*h-s*s,0))*t/Math.max(h,1e-6),$=Math.max(0,Math.min(n,1e5*c/a)),f=a*$/1e5,p=u+s,m=Math.sqrt(Math.max(t*t-f*f,0))*u/Math.max(t,1e-6),x=u+m,g=p+m,y=(d-s)/2,b=t-f,v=Math.atan(m/Math.max(f,1e-6)),M=180*(Math.PI-v)/Math.PI,L=-(180*v)/Math.PI,A=180*v/Math.PI,w=180*(Math.atan2(s/2,Math.max(c,1e-6))-Math.PI/2)/Math.PI,S=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=n*Math.PI/180,s=t+l*Math.cos(a),d=e+i*Math.sin(a),u=t+l*Math.cos(o),h=e+i*Math.sin(o),c=n-r,$=+(Math.abs(c)>180);return`M${s},${d} A${l},${i} 0 ${$},${+(c>=0)} ${u},${h}`};return[`M0,${u}`,S(t,u,t,u,180,180+L).replace("M","L"),`L${b},${x}`,`L${b},${x-y}`,`L${t},${e-d/2}`,`L${b},${g+y}`,`L${b},${g}`,S(t,p,t,u,M,M+A).replace("M","L"),"Z",S(t,u,t,u,180,270),`L${t},${s}`,S(t,p,t,u,270,270+w).replace("M","L"),"Z"].join(" ")}),e6.set("curvedLeftArrow",(t,e,l)=>(function(t,e){let l=t.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!l)return t;let i=[],r=0;for(;r<l.length;){let n=l[r++];if(!n)break;if(i.push(n),"Z"!==n){if("M"===n||"L"===n){let t=Number(l[r++]),n=Number(l[r++]);i.push(String(e-t),String(n));continue}if("A"===n){let t=l[r++],n=l[r++],a=l[r++],o=l[r++],s=Number(l[r++]),d=Number(l[r++]),u=Number(l[r++]);i.push(t,n,a,o,String(+!s),String(e-d),String(u));continue}return t}}return i.join(" ")})(e6.get("curvedRightArrow")(t,e,l),t)),e6.set("curvedUpArrow",(t,e,l)=>{let i=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=n*Math.PI/180,s=t+l*Math.cos(a),d=e+i*Math.sin(a),u=t+l*Math.cos(o),h=e+i*Math.sin(o),c=n-r,$=+(Math.abs(c)>180);return`M${s},${d} A${l},${i} 0 ${$},${+(c>=0)} ${u},${h}`},r=Math.min(t,e),n=(null==l?void 0:l.get("adj1"))??25e3,a=(null==l?void 0:l.get("adj2"))??5e4,o=(null==l?void 0:l.get("adj3"))??25e3,s=Math.max(0,Math.min(a,5e4*t/Math.max(r,1))),d=r*Math.max(0,Math.min(n,1e5))/1e5,u=r*s/1e5,h=t/2-(d+u)/4,c=2*h,$=Math.sqrt(Math.max(c*c-d*d,0))*e/Math.max(c,1),f=Math.max(0,Math.min(o,1e5*$/Math.max(r,1))),p=r*f/1e5,m=h+d,x=Math.sqrt(Math.max(e*e-p*p,0))*h/Math.max(e,1),g=h+x,y=m+x,b=(u-d)/2,v=Math.atan2(x,p),M=Math.atan2(d/2,$),L=Math.PI/2-v,A=180*(Math.PI/2-M)/Math.PI,w=180*(M-v)/Math.PI,S=180*L/Math.PI,C=180*v/Math.PI;return[i(h,0,h,e,A,A+w),`L${g},${p}`,`L${g-b},${p}`,`L${t-u/2},0`,`L${y+b},${p}`,`L${y},${p}`,i(m,0,h,e,S,S+C).replace("M","L"),`L${h},${e}`,i(h,0,h,e,90,180).replace("M","L"),`L${d},0`,i(m,0,h,e,180,90).replace("M","L"),"Z"].join(" ")}),e6.set("curvedDownArrow",(t,e,l)=>{let i=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=n*Math.PI/180,s=t+l*Math.cos(a),d=e+i*Math.sin(a),u=t+l*Math.cos(o),h=e+i*Math.sin(o),c=n-r,$=+(Math.abs(c)>180);return`M${s},${d} A${l},${i} 0 ${$},${+(c>=0)} ${u},${h}`},r=Math.min(t,e),n=(null==l?void 0:l.get("adj1"))??25e3,a=(null==l?void 0:l.get("adj2"))??5e4,o=(null==l?void 0:l.get("adj3"))??25e3,s=Math.max(0,Math.min(a,5e4*t/Math.max(r,1))),d=r*Math.max(0,Math.min(n,1e5))/1e5,u=r*s/1e5,h=t/2-(d+u)/4,c=2*h,$=Math.sqrt(Math.max(c*c-d*d,0))*e/Math.max(c,1),f=Math.max(0,Math.min(o,1e5*$/Math.max(r,1))),p=r*f/1e5,m=h+d,x=Math.sqrt(Math.max(e*e-p*p,0))*h/Math.max(e,1),g=h+x,y=m+x,b=(u-d)/2,v=e-p,M=180*Math.atan2(x,p)/Math.PI,L=180*Math.atan2(d/2,$)/Math.PI,A=270+M,w=270-L;return[`M${t-u/2},${e}`,`L${g-b},${v}`,`L${g},${v}`,i(h,e,h,e,A,A-M).replace("M","L"),`L${m},0`,i(m,e,h,e,270,270+M).replace("M","L"),`L${g+d},${v}`,`L${y+b},${v}`,"Z",`M${m},0`,i(m,e,h,e,w,w+(L-90)).replace("M","L"),i(h,e,h,e,180,180+(90+L)).replace("M","L"),"Z"].join(" ")}),e6.set("circularArrow",(t,e,l)=>
6e9(t,e,l,!1,"circularArrow")),e6.set("leftCircularArrow",(t,e,l)=>e9(t,e,l,!1,"leftCircularArrow")),e6.set("leftRightCircularArrow",(t,e,l)=>{let i=t/400,r=e/280,n=(t,e)=>({x:t*i,y:e*r}),a=n(35,140),o=n(19.9536,89.9471),s=n(33.4296,89.9471),d=n(74.6127,28.1974),u=n(182.5744,.5489),h=n(274.5688,28.1924),c=n(315.4978,40.4912),$=n(348.2481,62.4743),f=n(366.5707,89.9471),p=n(380.0463,89.9471),m=n(365,140),x=n(310.0463,89.9471),g=n(320.9838,89.9471),y=n(274.3848,50.3095),b=n(182.4425,40.5864),v=n(115.6249,68.2298),M=n(101.3589,74.1319),L=n(88.9651,81.4842),A=n(79.0159,89.947),w=n(89.9536,89.9471);return`M${a.x},${a.y} L${o.x},${o.y} L${s.x},${s.y} C${d.x},${d.y} ${u.x},${u.y} ${h.x},${h.y} C${c.x},${c.y} ${$.x},${$.y} ${f.x},${f.y} L${p.x},${p.y} L${m.x},${m.y} L${x.x},${x.y} L${g.x},${g.y} C${y.x},${y.y} ${b.x},${b.y} ${v.x},${v.y} C${M.x},${M.y} ${L.x},${L.y} ${A.x},${A.y} L${w.x},${w.y} Z`}),e6.set("quadArrow",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??22500,r=(null==l?void 0:l.get("adj2"))??22500,n=(null==l?void 0:l.get("adj3"))??22500,a=e/2,o=t/2,s=Math.min(t,e),d=Math.max(0,Math.min(r,5e4)),u=Math.max(0,Math.min(i,2*d)),h=s*Math.max(0,Math.min(n,(1e5-2*d)/2))/1e5,c=s*d/1e5,$=o-c,f=o+c,p=s*u/2e5,m=o-p,x=o+p,g=t-h,y=a-c,b=a+c,v=a-p,M=a+p,L=e-h;return`M0,${a} L${h},${y} L${h},${v} L${m},${v} L${m},${h} L${$},${h} L${o},0 L${f},${h} L${x},${h} L${x},${v} L${g},${v} L${g},${y} L${t},${a} L${g},${b} L${g},${M} L${x},${M} L${x},${L} L${f},${L} L${o},${e} L${$},${L} L${m},${L} L${m},${M} L${h},${M} L${h},${b} Z`}),e6.set("quadArrowCallout",(t,e,l)=>{let i=Math.min(t,e),r=t/2,n=e/2,a=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??18515,5e4)),o=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??18515,2*a)),s=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??18515,5e4-a)),d=Math.max(o,Math.min((null==l?void 0:l.get("adj4"))??48123,1e5-2*s)),u=i*a/1e5,h=i*o/2e5,c=i*s/1e5,$=t*d/2e5,f=e*d/2e5,p=t-c,m=r-$,x=r+$,g=r-u,y=r+u,b=r-h,v=r+h,M=e-c,L=n-f,A=n+f,w=n-u,S=n+u,C=n-h,k=n+h;return`M0,${n} L${c},${w} L${c},${C} L${m},${C} L${m},${L} L${b},${L} L${b},${c} L${g},${c} L${r},0 L${y},${c} L${v},${c} L${v},${L} L${x},${L} L${x},${C} L${p},${C} L${p},${w} L${t},${n} L${p},${S} L${p},${k} L${x},${k} L${x},${A} L${v},${A} L${v},${M} L${y},${M} L${r},${e} L${g},${M} L${b},${M} L${b},${A} L${m},${A} L${m},${k} L${c},${k} L${c},${S} Z`}),e6.set("leftRightUpArrow",(t,e,l)=>{let i=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??25e3,5e4)),r=2*i,n=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??25e3,r)),a=Math.max(0,Math.min((null==l?void 0:l.get("adj3"))??25e3,(1e5-r)/2)),o=Math.min(t,e),s=t/2,d=o*a/1e5,u=o*i/1e5,h=o*n/2e5,c=s-h,$=s+h,f=t-d,p=e-o*i/5e4,m=e-u,x=m-h,g=m+h;return`M0,${m} L${d},${p} L${d},${x} L${c},${x} L${c},${d} L${s-u},${d} L${s},0 L${s+u},${d} L${$},${d} L${$},${x} L${f},${x} L${f},${p} L${t},${m} L${f},${e} L${f},${g} L${d},${g} L${d},${e} Z`}),e6.set("swooshArrow",(t,e,l)=>{let i=Math.min(t,e),r=(null==l?void 0:l.get("adj1"))??25e3,n=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??16667,7e4*t/i)),a=e*Math.max(1,Math.min(r,75e3))/1e5,o=i/8,s=e/6,d=Math.tan(Math.PI/2/14),u=t-i*n/1e5,h=o*d,c=o+a,$=u+a*d,f=c+o;return`M0,${e} Q${t/6},${s+s} ${u},${o} L${u-h},0 L${t},${f/2+e/20} L${$+h},${f} L${$},${c} Q${t/4},${c+s/2} 0,${e} Z`}),e6.set("flowChartProcess",(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`),e6.set("flowChartDecision",(t,e)=>{let l=t/2,i=e/2;return`M${l},0 L${t},${i} L${l},${e} L0,${i} Z`}),e6.set("flowChartTerminator",(t,e)=>{let l=3475*t/21600,i=18125*t/21600,r=e/2;return`M${l},0 L${i},0 A${l},${r} 0 0,1 ${i},${e} L${l},${e} A${l},${r} 0 0,1 ${l},0 Z`}),e6.set("flowChartDocument",(t,e)=>{let l=17322*e/21600;return`M0,0 L${t},0 L${t},${l} C${t/2},${l} ${t/2},${23922*e/21600} 0,${20172*e/21600} Z`}),e6.set("flowChartInputOutput",(t,e)=>{let l=t/5;return`M${l},0 L${t},0 L${t-l},${e} L0,${e} Z`}),e6.set("flowChartPredefinedProcess",(t,e)=>{let l=t/8;return`M0,0 L${t},0 L${t},${e} L0,${e} Z M${l},0 L${l},${e} M${t-l},0 L${t-l},${e}`}),e6.set("flowChartAlternateProcess",(t,e)=>{let l=Math.min(t,e)/6;return`M${l},0 L${t-l},0 A${l},${l} 0 0,1 ${t},${l} L${t},${e-l} A${l},${l} 0 0,1 ${t-l},${e} L${l},${e} A${l},${l} 0 0,1 0,${e-l} L0,${l} A${l},${l} 0 0,1 ${l},0 Z`}),e6.set("flowChartManualInput",(t,e)=>`M0,${.2*e} L${t},0 L${t},${e} L0,${e} Z`),e6.set("flowChartManualOperation",(t,e)=>`M0,0 L${t},0 L${4*t/5},${e} L${t/5},${e} Z`),e6.set("flowChartPreparation",(t,e)=>{let l=.2*t,i=e/2;return`M${l},0 L${t-l},0 L${t},${i} L${t-l},${e} L${l},${e} L0,${i} Z`}),e6.set("flowChartData",(t,e)=>{let l=.15*t;return`M${l},0 L${t},0 L${t-l},${e} L0,${e} Z`}),e6.set("flowChartInternalStorage",(t,e)=>{let l=t/8,i=e/8;return`M0,0 L${t},0 L${t},${e} L0,${e} Z M${l},0 L${l},${e} M0,${i} L${t},${i}`}),e6.set("flowChartMagneticDisk",(t,e)=>{let l=e/6,i=e-l;return`M0,${l} A${t/2},${l} 0 1,1 ${t},${l} L${t},${i} A${t/2},${l} 0 1,1 0,${i} L0,${l} Z M${t},${l} A${t/2},${l} 0 1,1 0,${l}`}),e6.set("flowChartDelay",(t,e)=>{let l=t/2,i=ln(l,0,l,e/2,270,180);return["M0,0",`L${l},0`,i.svg,`L0,${e}`,"Z"].join(" ")}),e6.set("flowChartDisplay",(t,e)=>{let l=t/6,i=e/6,r=ln(5*l,0,l,3*i,270,180);return[`M0,${3*i}`,`L${l},0`,`L${5*l},0`,r.svg,`L${l},${e}`,"Z"].join(" ")}),e6.set("flowChartExtract",(t,e)=>`M${t/2},0 L${t},${e} L0,${e} Z`),e6.set("flowChartMerge",(t,e)=>`M0,0 L${t},0 L${t/2},${e} Z`),e6.set("flowChartOffpageConnector",(t,e)=>{let l=.2*e;return`M0,0 L${t},0 L${t},${e-l} L${t/2},${e} L0,${e-l} Z`}),e6.set("flowChartConnector",(t,e)=>{let l=t/2,i=e/2;return`M${t},${i} A${l},${i} 0 1,1 0,${i} A${l},${i} 0 1,1 ${t},${i} Z`}),e6.set("flowChartSort",(t,e)=>{let l=t/2,i=e/2;return`M${l},0 L${t},${i} L${l},${e} L0,${i} Z M0,${i} L${t},${i}`}),e6.set("flowChartCollate",(t,e)=>{let l=t/2,i=e/2;return`M0,0 L${t},0 L${l},${i} Z M0,${e} L${t},${e} L${l},${i} Z`}),e6.set("flowChartPunchedTape",(t,e)=>{let l=t/20,i=e/20,r=(t,e,l,i,r,n)=>{let a=r/6e4,o=n/6e4,s=a*Math.PI/180,d=(a+o)*Math.PI/180,u=t-l*Math.cos(s)+l*Math.cos(d),h=e-i*Math.sin(s)+i*Math.sin(d),c=+(Math.abs(o)>180);return{endX:u,endY:h,svg:`A${l},${i} 0 ${c},${+(o>0)} ${u},${h}`}},n=5*l,a=2*i,o=0,s=2*i,d=[`M${o},${s}
6`],u=r(o,s,n,a,108e5,-108e5);d.push(u.svg),d.push((u=r(o=u.endX,s=u.endY,n,a,108e5,108e5)).svg),o=u.endX,s=u.endY;let h=20*l,c=18*i;return d.push(`L${h},${c}`),d.push((u=r(o=h,s=c,n,a,0,-108e5)).svg),d.push((u=r(o=u.endX,s=u.endY,n,a,0,108e5)).svg),d.push("Z"),d.join(" ")}),e6.set("flowChartPunchedCard",(t,e)=>`M0,${e/5} L${t/5},0 L${t},0 L${t},${e} L0,${e} Z`),e6.set("flowChartSummingJunction",(t,e)=>{let l=t/2,i=e/2,r=l*Math.cos(Math.PI/4),n=i*Math.sin(Math.PI/4),a=l-r,o=l+r,s=i-n,d=i+n;return`M0,${i} A${l},${i} 0 1,1 ${t},${i} A${l},${i} 0 1,1 0,${i} Z M${a},${s} L${o},${d} M${o},${s} L${a},${d}`}),e6.set("flowChartOr",(t,e)=>{let l=t/2,i=e/2;return`M0,${i} A${l},${i} 0 1,1 ${t},${i} A${l},${i} 0 1,1 0,${i} Z M${l},0 L${l},${e} M0,${i} L${t},${i}`}),e6.set("flowChartOnlineStorage",(t,e)=>{let l=t/6;return`M${l},0 L${t},0 A${l},${e/2} 0 0,0 ${t},${e} L${l},${e} A${l},${e/2} 0 0,1 ${l},0 Z`}),e6.set("flowChartMagneticDrum",(t,e)=>{let l=t/6,i=5*t/6,r=e/2;return`M${l},0 L${i},0 A${l},${r} 0 0,1 ${i},${e} L${l},${e} A${l},${r} 0 0,1 ${l},0 Z M${i},${e} A${l},${r} 0 0,1 ${i},0`}),e6.set("flowChartMagneticTape",(t,e)=>{let l=t/2,i=e/2,r=Math.atan2(e,t),n=i+i*Math.sin(Math.PI/4),a=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=(r+n)*Math.PI/180,s=t-l*Math.cos(a)+l*Math.cos(o),d=e-i*Math.sin(a)+i*Math.sin(o),u=+(Math.abs(n)>180);return{endX:s,endY:d,svg:`A${l},${i} 0 ${u},${+(n>0)} ${s},${d}`}},o=l,s=e,d=a(o,s,l,i,90,90),u=a(o=d.endX,s=d.endY,l,i,180,90),h=a(o=u.endX,s=u.endY,l,i,270,90);o=h.endX;let c=180*r/Math.PI,$=a(o,s=h.endY,l,i,0,c);return[`M${l},${e}`,d.svg,u.svg,h.svg,$.svg,`L${t},${n}`,`L${t},${e}`,"Z"].join(" ")}),e6.set("flowChartMultidocument",(t,e)=>`M0,${20782*e/21600} C${9298*t/21600},${23542*e/21600} ${9298*t/21600},${18022*e/21600} ${18595*t/21600},${18022*e/21600} L${18595*t/21600},${3675*e/21600} L0,${3675*e/21600} Z M${1532*t/21600},${3675*e/21600} L${1532*t/21600},${1815*e/21600} L${2e4*t/21600},${1815*e/21600} L${2e4*t/21600},${16252*e/21600} C${19298*t/21600},${16252*e/21600} ${18595*t/21600},${16352*e/21600} ${18595*t/21600},${16352*e/21600} L${18595*t/21600},${3675*e/21600} Z M${2972*t/21600},${1815*e/21600} L${2972*t/21600},0 L${t},0 L${t},${14392*e/21600} C${20800*t/21600},${14392*e/21600} ${2e4*t/21600},${14467*e/21600} ${2e4*t/21600},${14467*e/21600} L${2e4*t/21600},${1815*e/21600} Z`),e6.set("wedgeRectCallout",(t,e,l)=>{let i=t*((null==l?void 0:l.get("adj1"))??-20833)/1e5,r=e*((null==l?void 0:l.get("adj2"))??62500)/1e5,n=t/2+i,a=e/2+r,o=Math.abs(r)-Math.abs(i*e/t),s=t*(i>=0?7:2)/12,d=t*(i>=0?10:5)/12,u=e*(r>=0?7:2)/12,h=e*(r>=0?10:5)/12;return`M0,0 L${s},0 L${o>0?r>=0?s:n:s},${o>0?r>=0?0:a:0} L${d},0 L${t},0 L${t},${u} L${o>0?t:i>=0?n:t},${o>0?u:i>=0?a:u} L${t},${h} L${t},${e} L${d},${e} L${o>0&&r>=0?n:s},${o>0&&r>=0?a:e} L${s},${e} L0,${e} L0,${h} L${o>0||i>=0?0:n},${o>0||i>=0?u:a} L0,${u} Z`}),e6.set("wedgeRoundRectCallout",(t,e,l)=>{let i=Math.min(t,e),r=t*((null==l?void 0:l.get("adj1"))??-20833)/1e5,n=e*((null==l?void 0:l.get("adj2"))??62500)/1e5,a=i*((null==l?void 0:l.get("adj3"))??16667)/1e5,o=t/2+r,s=e/2+n,d=Math.abs(n)-Math.abs(r*e/t),u=t-a,h=e-a,c=t*(r>=0?7:2)/12,$=t*(r>=0?10:5)/12,f=e*(n>=0?7:2)/12,p=e*(n>=0?10:5)/12;return`M0,${a} A${a},${a} 0 0,1 ${a},0 L${c},0 L${d>0?n>=0?c:o:c},${d>0?n>=0?0:s:0} L${$},0 L${u},0 A${a},${a} 0 0,1 ${t},${a} L${t},${f} L${d>0?t:r>=0?o:t},${d>0?f:r>=0?s:f} L${t},${p} L${t},${h} A${a},${a} 0 0,1 ${u},${e} L${$},${e} L${d>0&&n>=0?o:c},${d>0&&n>=0?s:e} L${c},${e} L${a},${e} A${a},${a} 0 0,1 0,${h} L0,${p} L${d>0||r>=0?0:o},${d>0||r>=0?f:s} L0,${f} Z`}),e6.set("wedgeEllipseCallout",(t,e,l)=>{var i,r;let n,a,o,s,d,u,h,c,$=e2(l,"adj1",-20833),f=e2(l,"adj2",62500),p=t/2,m=e/2,x=p+t*$,g=m+e*f,y=Math.atan2(g-m,x-p);return[(i=(y+.15)*180/Math.PI,r=(y-.15+2*Math.PI)*180/Math.PI,n=i*Math.PI/180,a=r*Math.PI/180,o=p+p*Math.cos(n),s=m+m*Math.sin(n),d=p+p*Math.cos(a),u=m+m*Math.sin(a),0==(h=((r-i)%360+360)%360)&&i!==r&&(h=360),c=+(h>180),`M${o},${s} A${p},${m} 0 ${c},1 ${d},${u}`),`L${x},${g}`,"Z"].join(" ")}),e6.set("cloudCallout",(t,e,l)=>{let i=e2(l,"adj1",-20833),r=e2(l,"adj2",62500),n=t/2+t*i,a=e/2+e*r,o=e6.get("cloud")(t,e),s=t/2,d=e/2,u=n-s,h=a-d,c=.04*Math.min(t,e),$=.025*Math.min(t,e),f=s+.5*u,p=d+.5*h,m=s+.75*u,x=d+.75*h;return[o,`M${f+c},${p} A${c},${c} 0 1,1 ${f-c},${p} A${c},${c} 0 1,1 ${f+c},${p} Z`,`M${m+$},${x} A${$},${$} 0 1,1 ${m-$},${x} A${$},${$} 0 1,1 ${m+$},${x} Z`].join(" ")}),e6.set("borderCallout1",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??112500)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-38333)/1e5;return`M0,0 L${t},0 L${t},${e} L0,${e} Z M${r},${i} L${a},${n}`}),e6.set("cube",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",25e3);return`M0,${i} L${t-i},${i} L${t-i},${e} L0,${e} Z M0,${i} L${i},0 L${t},0 L${t-i},${i} Z M${t-i},${i} L${t},0 L${t},${e-i} L${t-i},${e} Z`}),e6.set("plus",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e5(l,"adj",25e3),0),5e4)/1e5,r=t-i,n=e-i;return`M0,${i} L${i},${i} L${i},0 L${r},0 L${r},${i} L${t},${i} L${t},${n} L${r},${n} L${r},${e} L${i},${e} L${i},${n} L0,${n} Z`}),e6.set("heart",(t,e)=>{let l=t/2,i=e/4,r=49*t/48,n=10*t/48,a=-(e/3);return`M${l},${i} C${l+n},${a} ${l+r},${i} ${l},${e} C${l-r},${i} ${l-n},${a} ${l},${i} Z`}),e6.set("cloud",(t,e)=>{let l=t/43200,i=e/43200,r=3900*l,n=14370*i,a=[`M${r},${n}`],o=3900,s=14370;for(let[t,e,d,u]of[[6753,9190,-0xae6581,7426832],[5333,7267,-8646143,5396714],[4365,5945,-8748475,5983381],[4857,6595,-7859164,7034504],[5333,7273,-4722533,6541615],[6775,9220,-2776035,7816140],[5785,7867,37501,6842e3],[6752,9215,1347096,6910353],[7720,10543,3974558,4542661],[4360,5918,-0xfbb78d,8804134],[4345,5945,-0xe1fa6e,9151131]]){let h=d/6e4,c=u/6e4,$=h*Math.PI/180,f=Math.atan2(t*Math.sin($),e*Math.cos($)),p=(h+c)*Math.PI/180,m=Math.atan2(t*Math.sin(p),e*Math.cos(p)),x=o-t*Math.cos(f)+t*Math.cos(m),g=s-e*Math.sin(f)+e*Math.sin(m),y=x*l,b=g*i,v=t*l,M=e*i,L=+(Math.abs(c)>180),A=+(c>0);a.push(`A${v},${M} 0 ${L},${A} ${y},${b}`),o=x,s=g,r=y,n=b}return a.push("Z"),a.join(" ")}),e6.set("frame",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj1",12500);return`M0,0 L${t},0 L${t},${e} L0,${e} Z M${i},${i} L${i},${e-i} L${t-i},${e-i} L${t-i},${i} Z`}),e6.set("halfFrame",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??33333,r=(null==l?void 0:l.get("adj2"))??33333,n=Math.min(t,e),a=Math.max(0,Math.min(r,1e5*t/Math.max(n,1))),o=n*a/1e5,s=e*o/Math.max(t,1),d=Math.max(0,Math.min(i,1e5*(e-s)/Math.max(n,1))),u=n*d/1e5,h=t-u*t/Math.max(e,1),c=e-o*e/Math.max(t,1);return`M0,0 L${t},0 L${h},${u} L${o},${u} L${o},${c} L0,${e} Z`}),e6.set("donut",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e5(l,"adj",25e3),0),5e4)/1e5,r=t/2,n=e/2,a=Math.max(0,r-i),o=Math.max(0,n-i);return`M0,${n} A${r},${n} 0 1,1 ${t},${n} A${r},${n} 0 1,1 0,${n} Z M${i},${n} A${a},${o} 0 1,0 ${t-i},${n} A${a},${o} 0 1,0 ${i},${n} Z`}),e6.set("noSmoking",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e5(l,"adj",18750),0),5e4)/1e5,r=t/2,n=e/2,a=t/2,o=e/2,s=r-i,d=n-i,u=Math.atan2(e,t),h=d*Math.cos(u),c=s*Math.sin(u),$=Math.atan2(i/2,s*d/(Math.sqrt(h*h+c*c)||1)),f=-(Math.PI-2*$),p=u-$,m=p-Math.PI,x=t=>{let e=d*Math.cos(t),l=s*Math.sin(t),i=s*d/(Math.sqrt(e*e+l*l)||1);return{x:a+i*Math.cos(t),y:o+i*Math.sin(t)}},g=x(p),y=x(m),b=x(p+f),v=x(m+f),M=+(Math.abs(f)>Math.PI),L=+(f>0);return`M0,${o} A${r},${n} 0 1,1 ${t},${o} A${r},${n} 0 1,1 0,${o} Z M${g.x},${g.y} A${s},${d} 0 ${M}
6,${L} ${b.x},${b.y} Z M${y.x},${y.y} A${s},${d} 0 ${M},${L} ${v.x},${v.y} Z`}),e6.set("blockArc",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??108e5,r=(null==l?void 0:l.get("adj2"))??0,n=(null==l?void 0:l.get("adj3"))??25e3,a=Math.min(Math.max(i/6e4,0),360),o=Math.min(Math.max(r/6e4,0),360),s=(o-a+360)%360||360,d=t/2,u=e/2,h=Math.min(t,e)*Math.max(0,Math.min(n,5e4))/1e5,c=Math.max(1,d-h),$=Math.max(1,u-h),f=(t,e,l,i,r)=>{let n=r*Math.PI/180;return{x:t+l*Math.cos(n),y:e+i*Math.sin(n)}},p=f(d,u,d,u,a),m=f(d,u,d,u,a+s),x=f(d,u,c,$,o),g=f(d,u,c,$,o-s),y=+(s>180);return`M${p.x},${p.y} A${d},${u} 0 ${y},1 ${m.x},${m.y} L${x.x},${x.y} A${c},${$} 0 ${y},0 ${g.x},${g.y} Z`}),e6.set("gear6",(t,e,l)=>lt(t,e,6,(null==l?void 0:l.get("adj1"))??15e3,(null==l?void 0:l.get("adj2"))??3526)),e6.set("gear9",(t,e,l)=>lt(t,e,9,(null==l?void 0:l.get("adj1"))??1e4,(null==l?void 0:l.get("adj2"))??1763)),e6.set("mathPlus",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max(e5(l,"adj",23520),0),73490),n=73490*t/2e5,a=73490*e/2e5,o=i*r/2e5,s=t/2,d=e/2,u=s-n,h=s-o,c=s+o,$=s+n,f=d-a,p=d-o,m=d+o,x=d+a;return`M${u},${p} L${h},${p} L${h},${f} L${c},${f} L${c},${p} L${$},${p} L${$},${m} L${c},${m} L${c},${x} L${h},${x} L${h},${m} L${u},${m} Z`}),e6.set("mathMinus",(t,e,l)=>{let i=e*Math.min(Math.max(e5(l,"adj1",23520),0),1e5)/2e5,r=73490*t/2e5,n=t/2,a=e/2,o=n-r,s=n+r,d=a-i,u=a+i;return`M${o},${d} L${s},${d} L${s},${u} L${o},${u} Z`}),e6.set("mathMultiply",(t,e,l)=>{let i=Math.min(t,e),r=t/2,n=e/2,a=i*Math.min(Math.max(e5(l,"adj1",23520),0),51965)/1e5,o=Math.atan2(e,t),s=Math.sin(o),d=Math.cos(o),u=s/d,h=Math.sqrt(t*t+e*e),c=h-51965*h/1e5,$=d*c/2,f=s*c/2,p=s*a/2,m=d*
6a/2,x=$-p,g=f+m,y=$+p,b=f-m,v=(r-y)*u+b,M=t-y,L=t-x,A=(n-g)/u,w=e-g,S=e-b;return`M${x},${g} L${y},${b} L${r},${v} L${M},${b} L${L},${g} L${L-A},${n} L${L},${w} L${M},${S} L${r},${e-v} L${y},${S} L${x},${w} L${x+A},${n} Z`}),e6.set("mathDivide",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??23520,r=(null==l?void 0:l.get("adj2"))??5880,n=(null==l?void 0:l.get("adj3"))??11760,a=Math.min(Math.max(i,1e3),36745),o=Math.min(Math.max(n,1e3),Math.min((73490-a)/4,36745*t/Math.max(e,1))),s=Math.min(Math.max(r,0),73490-4*o-a),d=t/2,u=e/2,h=e*a/2e5,c=e*o/1e5,$=73490*t/2e5,f=u-h,p=u+h,m=f-(e*s/1e5+c)-c,x=e-m,g=d-$,y=d+$;return`M${d+c},${m+c} A${c},${c} 0 1,1 ${d-c},${m+c} A${c},${c} 0 1,1 ${d+c},${m+c} Z M${d+c},${x-c} A${c},${c} 0 1,1 ${d-c},${x-c} A${c},${c} 0 1,1 ${d+c},${x-c} Z M${g},${f} L${y},${f} L${y},${p} L${g},${p} Z`}),e6.set("mathEqual",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??23520,r=(null==l?void 0:l.get("adj2"))??11760,n=Math.min(Math.max(i,0),36745),a=Math.min(Math.max(r,0),Math.max(1e5-2*n,0)),o=e*n/1e5,s=e*a/2e5,d=73490*t/2e5,u=t/2,h=e/2,c=h-s,$=h+s,f=c-o,p=$+o,m=u-d,x=u+d;return`M${m},${f} L${x},${f} L${x},${c} L${m},${c} Z M${m},${$} L${x},${$} L${x},${p} L${m},${p} Z`}),e6.set("mathNotEqual",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??23520,r=null==l?void 0:l.get("adj2"),n=(null==l?void 0:l.get("adj3"))??11760,a=t/2,o=e/2,s=e/2,d=Math.min(Math.max(i,0),5e4),u=Math.min(Math.max(n,0),1e5-2*d),h=e*d/1e5,c=e*u/2e5,$=73490*t/2e5,f=a-$,p=a+$,m=o-c,x=o+c,g=m-h,y=x+h,b=(void 0===r?110*Math.PI/180:Math.min(Math.max(r/6e4*Math.PI/180,70*Math.PI/180),110*Math.PI/180))-Math.PI/2,v=s*Math.tan(b),M=Math.hypot(v,s)||1,L=M*h/s,A=a+v-L/2,w=A-v*g/s,S=A-v*m/s,C=A-v*x/s,k=A-v*y/s,F=A+L,E=h*s/M,j=b>0?A+E:F,B=b>0?A:F-E,P=h*v/M,z=b>0?P:0,N=b>0?0:-P;return`M${f},${g} L${w},${g} L${B},${N} L${j},${z} L${w+L},${g} L${p},${g} L${p},${m} L${S+L},${m} L${C+L},${x} L${p},${x} L${p},${y} L${k+L},${y} L${t-B},${e-N} L${t-j},${e-z} L${k},${y} L${f},${y} L${f},${x} L${C},${x} L${S},${m} L${f},${m} Z`}),e6.set("round1Rect",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",16667);return`M0,0 L${t-i},0 A${i},${i} 0 0,1 ${t},${i} L${t},${e} L0,${e} Z`}),e6.set("round2SameRect",(t,e,l)=>{let i=e2(l,"adj1",16667),r=e2(l,"adj2",0),n=Math.min(t,e)*i,a=Math.min(t,e)*r;return`M${n},0 L${t-n},0 A${n},${n} 0 0,1 ${t},${n} L${t},${e-a} A${a},${a} 0 0,1 ${t-a},${e} L${a},${e} A${a},${a} 0 0,1 0,${e-a} L0,${n} A${n},${n} 0 0,1 ${n},0 Z`}),e6.set("round2DiagRect",(t,e,l)=>{let i=e2(l,"adj1",16667),r=e2(l,"adj2",0),n=Math.min(t,e)*i,a=Math.min(t,e)*r;return`M${n},0 L${t},0 L${t},${e-a} A${a},${a} 0 0,1 ${t-a},${e} L0,${e} L0,${n} A${n},${n} 0 0,1 ${n},0 Z`}),e6.set("snip1Rect",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",16667);return`M0,0 L${t-i},0 L${t},${i} L${t},${e} L0,${e} Z`}),e6.set("snip2SameRect",(t,e,l)=>{let i=e2(l,"adj1",16667),r=e2(l,"adj2",0),n=Math.min(t,e)*i,a=Math.min(t,e)*r;return`M${n},0 L${t-n},0 L${t},${n} L${t},${e-a} L${t-a},${e} L${a},${e} L0,${e-a} L0,${n} Z`}),e6.set("snip2DiagRect",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max((null==l?void 0:l.get("adj1"))??0,0),5e4),n=Math.min(Math.max((null==l?void 0:l.get("adj2"))??16667,0),5e4),a=i*r/1e5,o=i*n/1e5;return`M${a},0 L${t-o},0 L${t},${o} L${t},${e-a} L${t-a},${e} L${o},${e} L0,${e-o} L0,${a} Z`}),e6.set("snipRoundRect",(t,e,l)=>{let i=e2(l,"adj1",16667),r=e2(l,"adj2",16667),n=Math.min(t,e)*i,a=Math.min(t,e)*r;return`M${n},0 L${t-a},0 L${t},${a} L${t},${e} L0,${e} L0,${n} A${n},${n} 0 0,1 ${n},0 Z`}),e6.set("bevel",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",12500);return`M0,0 L${t},0 L${t},${e} L0,${e} Z M${i},${i} L${i},${e-i} L${t-i},${e-i} L${t-i},${i} Z M0,0 L${t},0 L${t-i},${i} L${i},${i} Z M${t},0 L${t},${e} L${t-i},${e-i} L${t-i},${i} Z M${t},${e} L0,${e} L${i},${e-i} L${t-i},${e-i} Z M0,${e} L0,0 L${i},${i} L${i},${e-i} Z`}),e6.set("foldedCorner",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",16667)*.7;return`M0,0 L${t},0 L${t},${e} L0,${e} Z M${t-i},${e} L${t},${e} L${t},${e-i}`}),e6.set("sun",(t,e,l)=>{let i=Math.min(Math.max((null==l?void 0:l.get("adj"))??25e3,12500),46875),r=5e4-i,n=3*(5e4-30274*r/32768)/4,a=3*(5e4-12540*r/32768)/4,o=n+3662,
6s=a+3662,d=a+12500,u=1e5-n,h=1e5-o,c=1e5-s,$=1e5-d,f=t/2,p=e/2,m=18436*t/21600,x=3163*e/21600,g=3163*t/21600,y=18436*e/21600,b=t*n/1e5,v=t*o/1e5,M=t*s/1e5,L=t*d/1e5,A=t*u/1e5,w=t*h/1e5,S=t*c/1e5,C=t*$/1e5,k=t*r/1e5,F=e*r/1e5,E=e*n/1e5,j=e*o/1e5,B=e*s/1e5,P=e*d/1e5,z=e*u/1e5,N=e*h/1e5,D=e*c/1e5,I=e*$/1e5,R=t*i/1e5;return`M${t},${p} L${A},${I} L${A},${P} Z M${m},${x} L${w},${B} L${S},${j} Z M${f},0 L${C},${E} L${L},${E} Z M${g},${x} L${M},${j} L${v},${B} Z M0,${p} L${b},${P} L${b},${I} Z M${g},${y} L${v},${D} L${M},${N} Z M${f},${e} L${L},${z} L${C},${z} Z M${m},${y} L${S},${N} L${w},${D} Z M${R},${p} A${k},${F} 0 1,1 ${R+2*k},${p} A${k},${F} 0 1,1 ${R},${p} Z`}),e6.set("moon",(t,e,l)=>{if(t<=0||e<=0)return`M0,0 L${t},0 L${t},${e} L0,${e} Z`;let i=Math.min(t,e),r=e/2,n=i*Math.min(Math.max((null==l?void 0:l.get("adj"))??5e4,0),87500)/1e5,a=i-n;if(a<=0)return`M0,0 L${t},0 L${t},${e} L0,${e} Z`;let o=(2*i*i-n*n)/a;return`M${t},${e} A${t},${r} 0 0,1 ${t},0 A${((o-n)*t/i-n*t/i)/2},${(o/2-n)*r/i} 0 0,0 ${t},${e} Z`}),e6.set("lightningBolt",(t,e)=>`M${.3895*t},${0*e} L${0*t},${.1821*e} L${.3425*t},${.3845*e} L${.2265*t},${.4452*e} L${.5497*t},${.6391*e} L${.453*t},${.683*e} L${.9972*t},${.9983*e} L${.6796*t},${.5919*e} L${.7624*t},${.5514*e} L${.5138*t},${.3153*e} L${.5939*t},${.2816*e} Z`),e6.set("bracketPair",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e5(l,"adj",16667),0),5e4)/1e5,r=t-i,n=e-i;return`M${i},${e} A${i},${i} 0 0,1 0,${n} L0,${i} A${i},${i} 0 0,1 ${i},0 M${r},0 A${i},${i} 0 0,1 ${t},${i} L${t},${n} A${i},${i} 0 0,1 ${r},${e}`}),e6.set("bracePair",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",8333),r=e/2;return`M${2*i},0 A${i},${i} 0 0,0 ${i},${i} L${i},${r-i} A${i},${i} 0 0,1 0,${r} A${i},${i} 0 0,1 ${i},${r+i} L${i},${e-i} A${i},${i} 0 0,0 ${2*i},${e} M${t-2*i},0 A${i},${i} 0 0,1 ${t-i},${i} L${t-i},${r-i} A${i},${i} 0 0,0 ${t},${r} A${i},${i} 0 0,0 ${t-i},${r+i} L${t-i},${e-i} A${i},${i} 0 0,1 ${t-2*i},${e}`}),e6.set("leftBracket",(t,e,l)=>{let i=Math.min(t,e),r=i>0?5e4*e/i:0,n=i*Math.max(0,Math.min((null==l?void 0:l.get("adj"))??8333,r))/1e5,a=(t,e,l,i,r,n)=>{let a=r/6e4*Math.PI/180,o=n/6e4*Math.PI/180,s=t-l*Math.cos(a),d=e-i*Math.sin(a),u=s+l*Math.cos(a+o),h=d+i*Math.sin(a+o),c=+(Math.abs(n/6e4)>180);return{cmd:`A${l},${i} 0 ${c},1 ${u},${h}`,x:u,y:h}},o=a(t,e,t,n,54e5,54e5),s=a(0,n,t,n,108e5,54e5);return[`M${t},${e}`,o.cmd,`L0,${n}`,s.cmd].join(" ")}),e6.set("rightBracket",(t,e,l)=>{let i=Math.min(t,e),r=Math.max(0,Math.min((null==l?void 0:l.get("adj"))??8333,i>0?5e4*e/i:0)),n=i*r/1e5,a=e-n,o=(t,e,l,i,r,n)=>{let a=r/6e4*Math.PI/180,o=n/6e4*Math.PI/180,s=t-l*Math.cos(a),d=e-i*Math.sin(a),u=s+l*Math.cos(a+o),h=d+i*Math.sin(a+o),c=+(Math.abs(n/6e4)>180);return{cmd:`A${l},${i} 0 ${c},1 ${u},${h}`,x:u,y:h}},s=o(0,0,t,n,162e5,54e5),d=o(t,a,t,n,0,54e5);return["M0,0",s.cmd,`L${t},${a}`,d.cmd].join(" ")}),e6.set("leftBrace",(t,e,l)=>{let i=Math.min(t,e),r=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??5e4,1e5)),n=Math.min(1e5-r,r)/2,a=i*Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??8333,i>0?n*e/i:0))/1e5,o=e*r/1e5+a,s=t/2,d=t/2,u=(t,e,l,i,r,n)=>{let a=r/6e4*Math.PI/180,o=n/6e4*Math.PI/180,s=t-l*Math.cos(a),d=e-i*Math.sin(a),u=s+l*Math.cos(a+o),h=d+i*Math.sin(a+o),c=+(Math.abs(n/6e4)>180);return{cmd:`A${l},${i} 0 ${c},${+(n>=0)} ${u},${h}`,x:u,y:h}},h=t,c=e,$=u(h,c,s,a,54e5,54e5);h=$.x,c=$.y;let f=u(d,o,s,a,0,-54e5),p=u(f.x,f.y,s,a,54e5,-54e5),m=u(d,a,s,a,108e5,54e5);return[`M${t},${e}`,$.cmd,`L${d},${o}`,f.cmd,p.cmd,`L${d}
6,${a}`,m.cmd].join(" ")}),e6.set("rightBrace",(t,e,l)=>{let i=Math.min(t,e),r=Math.max(0,Math.min((null==l?void 0:l.get("adj2"))??5e4,1e5)),n=Math.min(1e5-r,r)/2,a=Math.max(0,Math.min((null==l?void 0:l.get("adj1"))??8333,i>0?n*e/i:0)),o=i*a/1e5,s=e*r/1e5-o,d=e-o,u=t/2,h=t/2,c=(t,e,l,i,r,n)=>{let a=r/6e4*Math.PI/180,o=n/6e4*Math.PI/180,s=t-l*Math.cos(a),d=e-i*Math.sin(a),u=s+l*Math.cos(a+o),h=d+i*Math.sin(a+o),c=+(Math.abs(n/6e4)>180);return{cmd:`A${l},${i} 0 ${c},${+(n>=0)} ${u},${h}`,x:u,y:h}},$=c(0,0,u,o,162e5,54e5),f=c(h,s,u,o,108e5,-54e5),p=c(f.x,f.y,u,o,162e5,-54e5),m=c(h,d,u,o,0,54e5);return["M0,0",$.cmd,`L${h},${s}`,f.cmd,p.cmd,`L${h},${d}`,m.cmd].join(" ")}),e6.set("actionButtonBlank",(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`);let le=new Map;le.set("actionButtonForwardNext",(t,e)=>{let l=t/2,i=e/2,r=.3*Math.min(t,e);return`M${l-.5*r},${i-r} L${l+r},${i} L${l-.5*r},${i+r} Z`}),le.set("actionButtonBackPrevious",(t,e)=>{let l=t/2,i=e/2,r=.3*Math.min(t,e);return`M${l+.5*r},${i-r} L${l-r},${i} L${l+.5*r},${i+r} Z`}),le.set("actionButtonReturn",(t,e)=>{let l=t/2,i=e/2,r=.28*Math.min(t,e),n=.22*r,a=i+.4*r,o=i-.4*r,s=l-.6*r,d=l+.6*r,u=(a-o)/2;return`M${s},${a} L${d},${a} A${u},${u} 0 0,1 ${d},${o} L${s+.15*r},${o} L${s+.15*r},${o+n} L${d-.3*n},${o+n} A${u-n},${u-n} 0 0,0 ${d-.3*n},${a-n} L${s},${a-n} Z M${s-.3*r},${o+n/2} L${s+.15*r},${o-.2*r} L${s+.15*r},${o+n+.2*r} Z`}),le.set("actionButtonBeginning",(t,e)=>{let l=t/2,i=e/2,r=.28*Math.min(t,e);return`M${l-r},${i-r} L${l-r+.2*r},${i-r} L${l-r+.2*r},${i+r} L${l-r},${i+r} Z M${l+r},${i-r} L${l-r+.35*r},${i} L${l+r},${i+r} Z`}),le.set("actionButtonEnd",(t,e)=>{let l=t/2,i=e/2,r=.28*Math.min(t,e);return`M${l+r-.2*r},${i-r} L${l+r},${i-r} L${l+r},${i+r} L${l+r-.2*r},${i+r} Z M${l-r},${i-r} L${l+r-.35*r},${i} L${l-r},${i+r} Z`}),le.set("actionButtonInformation",(t,e)=>{let l=t/2,i=e/2,r=.28*Math.min(t,e);return`M${l-.1*r},${i-.65*r} L${l+.1*r},${i-.65*r} L${l+.1*r},${i-.4*r} L${l-.1*r},${i-.4*r} Z M${l-.12*r},${i-.2*r} L${l+.12*r},${i-.2*r} L${l+.12*r},${i+.65*r} L${l-.12*r},${i+.65*r} Z`}),le.set("actionButtonDocument",(t,e)=>{let l=t/2,i=e/2,r=.28*Math.min(t,e),n=.7*r,a=.3*r;return`M${l-n},${i-r} L${l+n-a},${i-r} L${l+n},${i-r+a} L${l+n},${i+r} L${l-n},${i+r} Z M${l+n-a},${i-r} L${l+n-a},${i-r+a} L${l+n},${i-r+a}`}),e6.set("wave",(t,e,l)=>{let i=Math.min(Math.max(e5(l,"adj1",12500),0),2e4),r=Math.min(Math.max(e5(l,"adj2",0),-1e4),1e4),n=e*i/1e5,a=10*n/3,o=e-n,s=t*r/5e4,d=s<0?0:s,u=s<0?s:0,h=-d,c=t-u,$=h+(c-h)/3,f=t+d,p=u+(f-u)/3;return`M${h},${n} C${$},${n-a} ${($+c)/2},${n+a} ${c},${n} L${f},${o} C${(p+f)/2},${o+a} ${p},${o-a} ${u},${o} Z`}),e6.set("doubleWave",(t,e,l)=>{let i=Math.min(Math.max(e5(l,"adj1",6250),0),12500),r=Math.min(Math.max(e5(l,"adj2",0),-1e4),1e4),n=e*i/1e5,a=10*n/3,o=n-a,s=n+a,d=e-n,u=d-a,h=d+a,c=t*r/5e4,$=c<0?0:c,f=c<0?c:0,p=-$,m=t-f,x=(m-p)/6,g=(p+m)/2,y=g+x,b=t+$,v=(b-f)/6,M=(f+b)/2,L=M+v;return`M${p},${n} C${p+x},${o} ${p+(m-p)/3},${s} ${g},${n} C${y},${o} ${(y+m)/2},${s} ${m},${n} L${b},${d} C${(L+b)/2},${h} ${L},${u} ${M},${d} C${f+(b-f)/3},${h} ${f+v},${u} ${f},${d} Z`}),e6.set("irregularSeal1",(t,e)=>`M${10800*t/21600},${5800*e/21600} L${14522*t/21600},0 L${14155*t/21600},${5325*e/21600} L${18380*t/21600},${4457*e/21600} L${16702*t/21600},${7315*e/21600} L${21097*t/21600},${8137*e/21600} L${17607*t/21600},${10475*e/21600} L${21600*t/21600},${13290*e/21600} L${16837*t/21600},${12942*e/21600} L${18145*t/21600},${18095*e/21600} L${14020*t/21600},${14457*e/21600} L${13247*t/21600},${19737*e/21600} L${10532*t/21600},${14935*e/21600} L${8485*t/21600},${21600*e/21600} L${7715*t/21600},${15627*e/21600} L${4762*t/21600},${17617*e/21600} L${5667*t/21600},${13937*e/21600} L${135*t/21600},${14587*e/21600} L${3722*t/21600},${11775*e/21600} L0,${8615*e/21600} L${4627*t/21600},${7617*e/21600} L${370*t/21600},${2295*e/21600} L${7312*t/21600},${6320*e/21600} L${8352*t/21600},${2295*e/21600} Z`),e6.set("irregularSeal2",(t,e)=>`M${11462*t/21600},${4342*e/21600} L${14790*t/21600},0 L${14525*t/21600},${5777*e/21600} L${18007*t/21600},${3172*e/21600} L${16380*t/21600},${6532*e/21600} L${t},${6645*e/21600} L${16985*t/21600},${9402*e/21600} L${18270*t/21600},${11290*e/21600} L${16380*t/21600},${12310*e/21600} L${18877*t/21600},${15632*e/21600} L${14640*t/21600},${14350*e/21600} L${14942*t/21600}
6,${17370*e/21600} L${12180*t/21600},${15935*e/21600} L${11612*t/21600},${18842*e/21600} L${9872*t/21600},${17370*e/21600} L${8700*t/21600},${19712*e/21600} L${7527*t/21600},${18125*e/21600} L${4917*t/21600},${e} L${4805*t/21600},${18240*e/21600} L${1285*t/21600},${17825*e/21600} L${3330*t/21600},${15370*e/21600} L0,${12877*e/21600} L${3935*t/21600},${11592*e/21600} L${1172*t/21600},${8270*e/21600} L${5372*t/21600},${7817*e/21600} L${4502*t/21600},${3625*e/21600} L${8550*t/21600},${6382*e/21600} L${9722*t/21600},${1887*e/21600} Z`),e6.set("teardrop",(t,e)=>{let l=t/2,i=e/2;return`M${t},${i} A${l},${i} 0 1,1 ${l},0 L${t},0 L${t},${i} Z`}),e6.set("pie",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??0,r=(null==l?void 0:l.get("adj2"))??162e5,n=i/6e4%360,a=r/6e4%360,o=((a-n)%360+360)%360;0===o&&n!==a&&(o=360);let s=t/2,d=e/2,u=t=>t*Math.PI/180,h=t=>Math.atan2(Math.sin(u(t))/d,Math.cos(u(t))/s),c=h(n),$=h(a),f=s+s*Math.cos(c),p=d+d*Math.sin(c),m=s+s*Math.cos($),x=d+d*Math.sin($),g=+(o>180);return`M${s},${d} L${f},${p} A${s},${d} 0 ${g},1 ${m},${x} Z`}),e6.set("pieWedge",(t,e)=>`M0,${e} A${t},${e} 0 0,1 ${t},0 L${t},${e} Z`),e6.set("arc",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??162e5,r=(null==l?void 0:l.get("adj2"))??0,n=i/6e4,a=r/6e4,o=t/2,s=e/2,d=t=>t*Math.PI/180,u=t=>Math.atan2(Math.sin(d(t))/s,Math.cos(d(t))/o),h=u(n),c=u(a),$=o+o*Math.cos(h),f=s+s*Math.sin(h),p=o+o*Math.cos(c),m=s+s*Math.sin(c),x=((a-n)%360+360)%360;0===x&&n!==a&&(x=360);let g=+(x>180);return`M${$},${f} A${o},${s} 0 ${g},1 ${p},${m}`}),e6.set("chord",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??27e5,r=(null==l?void 0:l.get("adj2"))??162e5,n=i/6e4,a=r/6e4,o=t/2,s=e/2,d=t/2,u=e/2,h=t=>t*Math.PI/180,c=t=>Math.atan2(Math.sin(h(t))/u,Math.cos(h(t))/d),$=c(n),f=c(a),p=o+d*Math.cos($),m=s+u*Math.sin($),x=o+d*Math.cos(f),g=s+u*Math.sin(f),y=((a-n)%360+360)%360;if(0===y&&n!==a&&(y=360),0===y)return`M${o-d},${s} A${d},${u} 0 1,1 ${o+d},${s} A${d},${u} 0 1,1 ${o-d},${s} Z`;let b=+(y>180);return`M${p},${m} A${d},${u} 0 ${b},1 ${x},${g} Z`}),e6.set("funnel",(t,e)=>{let l=Math.min(t,e),i=t/2,r=e/4,n=t/2,a=l/20,o=i-a,s=r-a,d=8*Math.PI/180,u=i*Math.cos(d),h=Math.atan2(r*Math.sin(d),u),c=Math.PI-h,$=Math.PI+2*h,f=Math.PI-2*h,p=i/4,m=r/4,x=r*Math.cos(c),g=i*Math.sin(c),y=i*r/Math.sqrt(x*x+g*g),b=y*Math.cos(c),v=y*Math.sin(c),M=c+$,L=r*Math.cos(M),A=i*Math.sin(M),w=i*r/Math.sqrt(L*L+A*A),S=w*Math.cos(M),C=w*Math.sin(M),k=e-m,F=m*Math.cos(h),E=p*Math.sin(h),j=p*m/Math.sqrt(F*F+E*E),B=j*Math.cos(h),P=j*Math.sin(h),z=h+f,N=m*Math.cos(z),D=p*Math.sin(z),I=p*m/Math.sqrt(N*N+D*D),R=I*Math.cos(z),Z=I*Math.sin(z),T=+(Math.abs(180*$/Math.PI)>180),O=+(Math.abs(180*f/Math.PI)>180),W=`M${n+b},${r+v} A${i},${r} 0 ${T},${+($>0)} ${n+S},${r+C} L${n+B},${k+P} A${p},${m} 0 ${O},${+(f>0)} ${n+R},${k+Z} Z`,H=i-o,U=`M${H},${r} A${o},${s} 0 1,0 ${i+o},${r} A${o},${s} 0 1,0 ${H},${r} Z`;return`${W} ${U}`}),new Map().set("can",(t,e)=>{let l=.1*e,i=t/2;return[{path:`M0,${l} A${i},${l} 0 0,1 ${t},${l} A${i},${l} 0 0,1 0,${l} Z`,fillModifier:"lighten"}]});let ll=new Map;function li(t,e){let l=Math.min(t,e),i=t/2,r=e/2,n=3*l/8;return{ss:l,hc:i,vc:r,dx2:n,g9:r-n,g10:r+n,g11:i-n,g12:i+n,g13:3*l/4}}let lr=(t,e)=>`M0,0 L${t},0 L${t},${e} L0,${e} Z`;function ln(t,e,l,i,r,n){let a=r*Math.PI/180,o=(r+n)*Math.PI/180,s=t-l*Math.cos(a)+l*Math.cos(o),d=e-i*Math.sin(a)+i*Math.sin(o),u=+(Math.abs(n)>180);return{svg:`A${l},${i} 0 ${u},${+(n>=0)} ${s},${d}`,x:s,y:d}}function la(t,e,l,i){if("textNoShape"===t||"textnoshape"===t.toLowerCase())return"";let r=t.toLowerCase(),n=e6.get(r)??e6.get(t);return n?n(e,l,i):(console.warn(`Unknown preset shape: "${t}", falling back to rectangle`),`M0,0 L${e},0 L${e},${l} L0,${l} Z`)}function lo(t,e=1e5){if(!t||t.length>e)return null;let l=[],i=0;for(;i<t.length;){var r,n;let e=t.charCodeAt(i);if(44===(r=e)||32===r||9===r||10===r||13===r||12===r){i++;continue}if((n=e)>=65&&n<=90||n>=97&&n<=122){l.push(t[i++]);continue}let a=function(t,e){let l=e;("-"===t[l]||"+"===t[l])&&l++;let i=0;for(;lh(t.charCodeAt(l));)l++,i++;if("."===t[l])for(l++;lh(t.charCodeAt(l));)l++,i++;if(0===i)return e;if("e"===t[l]||"E"===t[l]){let e=l;("-"===t[++l]||"+"===t[l])&&l++;let i=0;for(;lh(t.charCodeAt(l));)l++,i++;if(0===i)return e}return l}(t,i);if(a>i){l.push(t.slice(i,a)),i=a;continue}i++}return l}function ls(t){let e=lo(t);if(!e||6!==e.length||"M"!==e[0]||"L"!==e[3])return null;let l=ld(e,1),i=ld(e,4);return l&&i?{start:l,end:i}:null}function ld(t,e){if(e+1>=t.length)return null;let l=Number(t[e]),i=Number(t[e+1]);return Number.isFinite(l)&&Number.isFinite(i)?{x:l,y:i}:null}function lu(t){return Number.isInteger(t)?String(t):String(Number(t.toFixed(6)))}function lh(t){return t>=48&&t<=57}function lc(t){let e=0;for(let l of t.paragraphs)if(l.runs.some(t=>null!=t.text&&t.text.length>0)&&(++e>1||l.runs.some(t=>t.text===` 7`)))return!1;return 1===e}function l$(t){return Array.from(t.paragraphs.flatMap(t=>t.runs.map(t=>t.text??"")).join("").replace(/\s+/g,"")).length}function lf(t,e){t.style.transform=`${t.style.transform||""} ${e}`.trim()}function lp(t,e){let l=t.style.filter.trim();t.style.filter=l?`${l} ${e}`:e}function lm(t){return Number.isInteger(t)?String(t):String(Number(t.toFixed(6)))}function lx(t,e){if(!(e>0))return t;let l=t.trim();if(!l)return`${100/e}%`;if(l.length>128)return t;let i=function(t){let e=0;("-"===t[0]||"+"===t[e])&&e++;let l=0;for(;ea(t.charCodeAt(e));)e++,l++;if("."===t[e])for(e++;ea(t.charCodeAt(e));)e++,l++;if(0===l)return null;if("e"===t[e]||"E"===t[e]){let l=e;("-"===t[++e]||"+"===t[e])&&e++;let i=0;for(;ea(t.charCodeAt(e));)e++,i++;0===i&&(e=l)}let i=Number(t.slice(0,e));if(!Number.isFinite(i))return null;let r=t.slice(e);return!function(t){if(!t||"%"===t)return!0;for(let e=0;e<t.length;e++)if(!eo(t.charCodeAt(e)))return!1;return!0}(r)?null:{value:i,unit:r}}(l);return i?`${i.value/e}${i.unit||"%"}`:t}function lg(t,e,l=!1,i="vertical-rl"){t.style.writingMode=i,t.style.justifyContent="center",t.style.alignItems="b"===e?"flex-end":"ctr"===e?"center":"flex-start",l&&(t.style.textOrientation="upright",t.style.whiteSpace="normal")}async function ly(t,e){let l=t.child("blip"),i=l.attr("embed")??l.attr("r:embed"),r=l.attr("link")??l.attr("r:link"),n=i??r;if(!n)return null;let a=e.slide.rels.get(n);if(!a)return null;if(G(a.targetMode))return er(a.target)?a.target:null;let o=await k(a.target,e.presentation.media,e.presentation.mediaResolver);if(!o)return null;let{mediaPath:s,data:d}=o;return F(s,d,e.mediaUrlCache)}function lb(t,e){return(t.numAttr(e)??0)/1e3}function lv(t,e,l,i,r,n,a,o){let s=`shape-clip-${++lL}`,d=document.createElementNS(t,"clipPath");d.setAttribute("id",s);let u=document.createElementNS(t,"path");u.setAttribute("d",r),d.appendChild(u),l.appendChild(d);let h=document.createElementNS(t,"image"),c=function(t,e){let l=t.child("stretch");if(!l.exists())return{x:0,y:0,w:e.w,h:e.h,preserveAspectRatio:"xMidYMid slice"};let i=l.child("fillRect"),r=i.exists()?lb(i,"l"):0,n=i.exists()?lb(i,"t"):0,a=i.exists()?lb(i,"r"):0,o=i.exists()?lb(i,"b"):0;return{x:e.w*(r/100),y:e.h*(n/100),w:e.w*((100-r-a)/100),h:e.h*((100-n-o)/100),preserveAspectRatio:"none"}}(i,n);h.setAttributeNS("http://www.w3.org/1999/xlink","href",a),h.setAttribute("x",String(c.x)),h.setAttribute("y",String(c.y)),h.setAttribute("width",String(c.w)),h.setAttribute("height",String(c.h)),h.setAttribute("clip-path",`url(#${s})`),h.setAttribute("preserveAspectRatio",c.preserveAspectRatio),l.parentNode||e.appendChild(l),(null==o?void 0:o.parentNode)===e?e.insertBefore(h,o):e.appendChild(h)}ll.set("actionButtonForwardNext",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,vc:a}
7=li(t,e),o=`M${n},${a} L${r},${l} L${r},${i} Z`;return[{d:`${lr(t,e)} ${o}`,fill:"norm",stroke:!1},{d:o,fill:"darken",stroke:!1},{d:o,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonForward",(t,e)=>{let l=ll.get("actionButtonForwardNext");return l?l(t,e):[]}),ll.set("actionButtonBackPrevious",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,vc:a}=li(t,e),o=`M${r},${a} L${n},${l} L${n},${i} Z`;return[{d:`${lr(t,e)} ${o}`,fill:"norm",stroke:!1},{d:o,fill:"darken",stroke:!1},{d:o,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonBeginning",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,g13:a,vc:o}=li(t,e),s=r+a/8,d=`M${r+a/4},${o} L${n},${l} L${n},${i} Z`,u=`M${s},${l} L${r},${l} L${r},${i} L${s},${i} Z`,h=`${d} ${u}`;return[{d:`${lr(t,e)} ${h}`,fill:"norm",stroke:!1},{d:h,fill:"darken",stroke:!1},{d:h,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonEnd",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,g13:a,vc:o}=li(t,e),s=r+7*a/8,d=`M${r+3*a/4},${o} L${r},${l} L${r},${i} Z`,u=`M${s},${l} L${n},${l} L${n},${i} L${s},${i} Z`,h=`${d} ${u}`;return[{d:`${lr(t,e)} ${h}`,fill:"norm",stroke:!1},{d:h,fill:"darken",stroke:!1},{d:h,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonReturn",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,g13:a,hc:o}=li(t,e),s=3*a/4,d=5*a/8,u=3*a/8,h=a/4,c=a/8,$=l+s,f=l+d,p=l+h,m=r+7*a/8,x=r+s,g=r+d,y=r+u,b=r+h,v=`M${n},${p} L${x},${l} L${o},${p} L${g},${p} L${g},${f} A${c},${c} 0 0,1 ${g-c},${$} L${y},${$} A${c},${c} 0 0,1 ${b},${f} L${b},${p} L${r},${p} L${r},${f} A${u},${u} 0 0,0 ${y},${i} L${o},${i} A${u},${u} 0 0,0 ${o+u},${i-u} L${m},${p} Z`,M=`M${n},${p} L${m},${p} L${m},${f} A${u},${u} 0 0,1 ${r+a/2},${i} L${y},${i} A${u},${u} 0 0,1 ${r},${f} L${r},${p} L${b},${p} L${b},${f} A${c},${c} 0 0,0 ${y},${$} L${o},${$} A${c},${c} 0 0,0 ${g},${f} L${g},${p} L${o},${p} L${x},${l} Z`;return[{d:`${lr(t,e)} ${v}`,fill:"norm",stroke:!1},{d:v,fill:"darken",stroke:!1},{d:M,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonSound",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,g13:a,vc:o}=li(t,e),s=5*a/16,d=l+s,u=l+11*a/16,h=r+s,c=r+5*a/8,$=r+3*a/4,f=`M${r},${d} L${r},${u} L${h},${u} L${c},${i} L${c},${l} L${h},${d} Z`,p=`M${r},${d} L${h},${d} L${c},${l} L${c},${i} L${h},${u} L${r},${u} Z`,m=`M${$},${d} L${n},${l+a/8}`,x=`M${$},${o} L${n},${o}`,g=`M${$},${u} L${n},${l+7*a/8}`,y=`${p} ${m} ${x} ${g}`;return[{d:`${lr(t,e)} ${f}`,fill:"norm",stroke:!1},{d:f,fill:"darken",stroke:!1},{d:y,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonInformation",(t,e)=>{let{g9:l,g10:i,g11:r,g13:n,hc:a,dx2:o}=li(t,e),s=5*n/16,d=3*n/32,u=l+n/32,h=l+s,c=l+3*n/8,$=l+13*n/16,f=l+7*n/8,p=r+s,m=r+13*n/32,x=r+19*n/32,g=r+11*n/16,y=`M${a},${l} A${o},${o} 0 1,1 ${a},${i} A${o},${o} 0 1,1 ${a},${l} Z`,b=`M${a},${u} A${d},${d} 0 1,1 ${a},${u+2*d} A${d},${d} 0 1,1 ${a},${u} Z`,v=`M${p},${h} L${g},${h} L${g},${c} L${x},${c} L${x},${$} L${g},${$} L${g},${f} L${p},${f} L${p},${$} L${m},${$} L${m},${c} L${p},${c} Z`,M=`${b} ${v}`;return[{d:`${lr(t,e)} ${y}`,fill:"norm",stroke:!1},{d:`${y} ${M}`,fill:"darken",stroke:!1},{d:M,fill:"lighten",stroke:!1},{d:`${y} ${M}`,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonHome",(t,e)=>{let{g9:l,g10:i,g11:r,g12:n,g13:a,hc:o,vc:s}=li(t,e),d=l+a/16,u=l+3*a/16,h=l+5*a/16,c=l+3*a/4,$=r+a/8,f=r+7*a/16,p=r+9*a/16,m=r+11*a/16,x=r+13*a/16,g=r+7*a/8,y=`M${o},${l} L${r},${s} L${$},${s} L${$},${i} L${g},${i} L${g},${s} L${n},${s} L${x},${h} L${x},${d} L${m},${d} L${m},${u} Z`,b=`M${x},${h} L${x},${d} L${m},${d} L${m},${u} Z`,v=`M${$},${s} L${$},${i} L${f},${i} L${f},${c} L${p},${c} L${p},${i} L${g},${i} L${g},${s} Z`,M=`M${o},${l} L${r},${s} L${n},${s} Z`,L=`M${f},${c} L${p},${c} L${p},${i} L${f},${i} Z`,A=`M${o},${l} L${m},${u} L${m},${d} L${x},${d} L${x},${h} L${n},${s} L${g},${s} L${g},${i} L${$},${i} L${$},${s} L${r},${s} Z M${m},${u} L${x},${h} M${g},${s} L${$},${s} M${f},${i} L${f},${c} L${p},${c} L${p},${i}`;return[{d:`${lr(t,e)} ${y}`,fill:"norm",stroke:!1},{d:`${b} ${v}
7`,fill:"darkenLess",stroke:!1},{d:`${M} ${L}`,fill:"darken",stroke:!1},{d:A,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonHelp",(t,e)=>{let{g9:l,g11:i,g13:r,hc:n}=li(t,e),a=r/7,o=3*r/14,s=2*r/7,d=r/14,u=3*r/28,h=l+s,c=l+17*r/28,$=l+21*r/28,f=l+11*r/14,p=i+o,m=i+3*r/7,x=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=(r+n)*Math.PI/180,s=t-l*Math.cos(a)+l*Math.cos(o),d=e-i*Math.sin(a)+i*Math.sin(o),u=+(Math.abs(n)>180);return{endX:s,endY:d,svg:`A${l},${i} 0 ${u},${+(n>0)} ${s},${d}`}},g=p,y=h,b=x(g,y,s,s,180,180),v=x(g=b.endX,y=b.endY,a,o,0,90),M=x(g=v.endX,y=v.endY,d,u,270,-90),L=x(m,c,a,o,180,90),A=x(L.endX,L.endY,d,u,90,-90),w=x(A.endX,A.endY,a,a,0,-180),S=`M${n},${f} A${u},${u} 0 1,1 ${n},${f+2*u} A${u},${u} 0 1,1 ${n},${f} Z`,C=`M${p},${h} ${b.svg} ${v.svg} ${M.svg} L${i+4*r/7},${$} L${m},${$} L${m},${c} ${L.svg} ${A.svg} ${w.svg} Z ${S}`;return[{d:`${lr(t,e)} ${C}`,fill:"norm",stroke:!1},{d:C,fill:"darken",stroke:!1},{d:C,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonDocument",(t,e)=>{let l=Math.min(t,e),i=t/2,r=e/2,n=3*l/8,a=9*l/32,o=r-n,s=r+n,d=i-a,u=i+a,h=3*l/16,c=u-h,$=o+h,f=`M${d},${o} L${c},${o} L${u},${$} L${u},${s} L${d},${s} Z`,p=`M${c},${o} L${c},${$} L${u},${$} Z`,m=`${f} M${u},${$} L${c},${$} L${c},${o}`;return[{d:`${lr(t,e)} ${f}`,fill:"norm",stroke:!1},{d:f,fill:"darkenLess",stroke:!1},{d:p,fill:"darken",stroke:!1},{d:m,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("actionButtonMovie",(t,e)=>{let{g9:l,g11:i,g12:r,g13:n}=li(t,e),a=i+1455*n/21600,o=i+1905*n/21600,s=i+2325*n/21600,d=i+17010*n/21600,u=i+20595*n/21600,h=l+5280*n/21600,c=l+5730*n/21600,$=l+6630*n/21600,f=l+7492*n/21600,p=l+9067*n/21600,m=l+9555*n/21600,x=l+13342*n/21600,g=l+14580*n/21600,y=l+15592*n/21600,b=`M${i},${h} L${i},${m} L${a},${m} L${o},${p} L${s},${p} L${s},${y} L${d},${y} L${d},${x} L${i+19335*n/21600},${x} L${u},${g} L${r},${g} L${r},${$} L${u},${$} L${i+19725*n/21600},${f} L${d},${f} L${d},${$} L${i+16155*n/21600},${c} L${o},${c} L${a},${h} Z`;return[{d:`${lr(t,e)} ${b}`,fill:"norm",stroke:!1},{d:b,fill:"darken",stroke:!1},{d:b,fill:"none",stroke:!0},{d:lr(t,e),fill:"none",stroke:!0}]}),ll.set("flowChartOfflineStorage",(t,e)=>{let l=`M0,0 L${t},0 L${t/2},${e} Z`,i=4*e/5;return[{d:l,fill:"norm",stroke:!1},{d:`M${2*t/5},${i} L${3*t/5},${i}`,fill:"none",stroke:!0},{d:l,fill:"none",stroke:!0}]}),ll.set("cube",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e2(l,"adj",25e3),0),.45);return[{d:`M0,${i} L${t-i},${i} L${t-i},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M0,${i} L${i},0 L${t},0 L${t-i},${i} Z`,fill:"lightenLess",stroke:!0},{d:`M${t-i},${i} L${t},0 L${t},${e-i} L${t-i},${e} Z`,fill:"darkenLess",stroke:!0}]}),ll.set("bevel",(t,e,l)=>{let i=Math.min(t,e)*Math.min(Math.max(e2(l,"adj",12500),0),.45),r=`M${i},${i} L${t-i},${i} L${t-i},${e-i} L${i},${e-i} Z`,n=`M0,0 L${t},0 L${t-i},${i} L${i},${i} Z`,a=`M0,${e} L${i},${e-i} L${t-i},${e-i} L${t},${e} Z`,o=`M0,0 L${i},${i} L${i},${e-i} L0,${e} Z`;return[{d:r,fill:"norm",stroke:!0},{d:n,fill:"lightenLess",stroke:!0},{d:`M${t},0 L${t},${e} L${t-i},${e-i} L${t-i},${i} Z`,fill:"darken",stroke:!0},{d:a,fill:"darken",stroke:!0},{d:o,fill:"lighten",stroke:!0}]}),ll.set("leftRightRibbon",(t,e,l)=>{let i=Math.min(t,e),r=t/32,n=t/2,a=e/2,o=Math.min(Math.max(((null==l?void 0:l.get("adj3"))??16667)/1e5,0),.33333),s=Math.min(Math.max(((null==l?void 0:l.get("adj1"))??5e4)/1e5,0),1-o),d=(t/2-r)/i,u=i*Math.min(Math.max(((null==l?void 0:l.get("adj2"))??5e4)/1e5,0),d),h=t-u,c=e*s/2,$=-e*o/2,f=a+$-c,p=a+c-$,m=f+c,x=2*m,g=x-f,y=e-g,b=o*i/4,v=n-r,M=n+r,L=f+b,A=y-b,w=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=(r+n)*Math.PI/180,s=t-l*Math.cos(a)+l*Math.cos(o),d=e-i*Math.sin(a)+i*Math.sin(o),u=+(Math.abs(n)>180);return{endX:s,endY:d,svg:`A${l},${i} 0 ${u},${+(n>0)} ${s},${d}`}},S=w(n,f,r,b,270,180),C=w(S.endX,S.endY,r,b,270,-180),k=w(n,p,r,b,90,90),F=[`M0,${m}`,`L${u},0`,`L${u},${f}`,`L${n},${f}`,S.svg,C.svg,`L${h},${y}`,`L${h},${e-x}`,`L${t},${e-m}`,`L${h},${e}`,`L${h},${p}`,`L${n},${p}`,k.svg,`L${v},${g}`,`L${u},${g}`,`L${u},${x}`,"Z"].join(" "),E=w(M,L,r,b,0,90),j=w(E.endX,E.endY,r,b,270,-180),B=[`M${M},${L}`,E.svg,j.svg,`L${M},${y}`,"Z"].join(" "),P=[F,`M${M},${L} L${M},${y}`,`M${v},${A} L${v},${g}`].join(" ");return[{d:F,fill:"norm",stroke:!1}
7,{d:B,fill:"darkenLess",stroke:!1},{d:P,fill:"none",stroke:!0}]}),ll.set("ellipseRibbon",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??5e4,n=(null==l?void 0:l.get("adj3"))??12500,a=Math.max(0,Math.min(i,1e5)),o=t/2-t*Math.max(25e3,Math.min(r,75e3))/2e5,s=o+t/8,d=t-s,u=t-o,h=t-t/8,c=e*Math.max(Math.max(0,a-(1e5-a)/2),Math.min(n,a))/1e5,$=t>0?4*c/t:0,f=e=>$*(e-e*e/t),p=f(s),m=s/2,x=$*m,g=t-m,y=e*a/1e5,b=y-c,v=f(o),M=v+b,L=c+b-M+c+b,A=e-y,w=(14*c/16+A)/2,S=v+A,C=M+A,k=o/2,F=$*k+A,E=t-k,j=L+A,B=p+b,P=t/2,z=t/8;return[{d:`M0,0 Q${m},${x} ${s},${p} L${o},${M} Q${P},${L} ${u},${M} L${d},${p} Q${g},${x} ${t},0 L${h},${w} L${t},${A} Q${E},${F} ${u},${S} L${u},${C} Q${P},${j} ${o},${C} L${o},${S} Q${k},${F} 0,${A} L${z},${w} Z`,fill:"norm",stroke:!1},{d:`M${s},${B} L${s},${p} L${o},${M} Q${P},${L} ${u},${M} L${d},${p} L${d},${B} Q${P},${y+y-B} ${s},${B} Z`,fill:"darkenLess",stroke:!1},{d:`M0,0 Q${m},${x} ${s},${p} L${o},${M} Q${P},${L} ${u},${M} L${d},${p} Q${g},${x} ${t},0 L${h},${w} L${t},${A} Q${E},${F} ${u},${S} L${u},${C} Q${P},${j} ${o},${C} L${o},${S} Q${k},${F} 0,${A} L${z},${w} Z M${o},${S} L${o},${M} M${u},${M} L${u},${S} M${s},${p} L${s},${B} M${d},${B} L${d},${p}`,fill:"none",stroke:!0}]}),ll.set("ellipseRibbon2",(t,e,l)=>{let i=(null==l?void 0:l.get("adj1"))??25e3,r=(null==l?void 0:l.get("adj2"))??5e4,n=(null==l?void 0:l.get("adj3"))??12500,a=Math.max(0,Math.min(i,1e5)),o=t/2-t*Math.max(25e3,Math.min(r,75e3))/2e5,s=o+t/8,d=t-s,u=t-o,h=t-t/8,c=e*Math.max(Math.max(0,a-(1e5-a)/2),Math.min(n,a))/1e5,$=t>0?4*c/t:0,f=$*(s-s*s/t),p=e-f,m=s/2,x=e-$*m,g=t-m,y=e*a/1e5,b=y-c,v=$*(o-o*o/t),M=v+b,L=e-M,A=c+b-M+c+b,w=e-A,S=e-y,C=e-(14*c/16+S)/2,k=e-(v+S),F=e-(M+S),E=o/2,j=e-($*E+S),B=t-E,P=e-(A+S),z=f+b,N=e-z,D=t/2,I=t/8;return[{d:`M0,${e} Q${m},${x} ${s},${p} L${o},${L} Q${D},${w} ${u},${L} L${d},${p} Q${g},${x} ${t},${e} L${h},${C} L${t},${y} Q${B},${j} ${u},${k} L${u},${F} Q${D},${P} ${o},${F} L${o},${k} Q${E},${j} 0,${y} L${I},${C} Z`,fill:"norm",stroke:!1},{d:`M${s},${N} L${s},${p} L${o},${L} Q${D},${w} ${u},${L} L${d},${p} L${d},${N} Q${D},${e-(y+y-z)} ${s},${N} Z`,fill:"darkenLess",stroke:!1},{d:`M0,${e} L${I},${C} L0,${y} Q${E},${j} ${o},${k} L${o},${F} Q${D},${P} ${u},${F} L${u},${k} Q${B},${j} ${t},${y} L${h},${C} L${t},${e} Q${g},${x} ${d},${p} L${u},${L} Q${D},${w} ${o},${L} L${s},${p} Q${m},${x} 0,${e} Z M${o},${L} L${o},${k} M${u},${k} L${u},${L} M${s},${N} L${s},${p} M${d},${p} L${d},${N}`,fill:"none",stroke:!0}]}),ll.set("smileyFace",(t,e,l)=>{let i=t/2,r=e/2,n=e/2,a=Math.max(-4653,Math.min((null==l?void 0:l.get("adj"))??4653,4653)),o=6215*t/21600,s=13135*t/21600,d=7570*e/21600,u=1125*t/21600,h=1125*e/21600,c=16515*e/21600,$=e*a/1e5,f=c-$,p=`M${t},${n} A${i},${r} 0 1,1 0,${n} A${i},${r} 0 1,1 ${t},${n} Z`,m=`M${(o+u).toFixed(2)},${d.toFixed(2)} A${u.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(o-u).toFixed(2)},${d.toFixed(2)} A${u.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(o+u).toFixed(2)},${d.toFixed(2)} Z`,x=`M${(s+u).toFixed(2)},${d.toFixed(2)} A${u.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(s-u).toFixed(2)},${d.toFixed(2)} A${u.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(s+u).toFixed(2)},${d.toFixed(2)} Z`;return[{d:p,fill:"norm",stroke:!1},{d:`${m} ${x}`,fill:"darkenLess",stroke:!1},{d:`M${(4969*t/21699).toFixed(2)},${f.toFixed(2)} Q${(t/2).toFixed(2)},${(c+$+e*a/5e4).toFixed(2)} ${(16640*t/21600).toFixed(2)},${f.toFixed(2)}`,fill:"none",stroke:!0},{d:`M${t},${n} A${i},${r} 0 1,1 0,${n} A${i},${r} 0 1,1 ${t},${n} Z`,fill:"none",stroke:!0}]}),ll.set("foldedCorner",(t,e,l)=>{let i=Math.min(t,e)*e2(l,"adj",16667)*.7;return[{d:`M0,0 L${t},0 L${t},${e-i} L${t-i},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${t-i},${e} L${t-i},${e-i} L${t},${e-i} Z`,fill:"darkenLess",stroke:!1},{d:`M${t-i},${e} L${t-i},${e-i}`,fill:"none",stroke:!0}]}),ll.set("can",(t,e,l)=>{let i=Math.min(t,e),r=Math.min(Math.max((null==l?void 0:l.get("adj"))??25e3,0),5e4*e/i),n=i*r/2e5,a=e-n,o=t/2,s=(t,e,l,i,r,n)=>{let a=r*Math.PI/180,o=(r+n)*Math.PI/180,s=t-l*Math.cos(a)+l*Math.cos(o),d=e-i*Math.sin(a)+i*Math.sin(o),u=+(Math.abs(n)>180);
7return{endX:s,endY:d,svg:`A${l},${i} 0 ${u},${+(n>0)} ${s},${d}`}},d=s(0,n,o,n,180,-180),u=s(t,a,o,n,0,180),h=`M0,${n} ${d.svg} L${t},${a} ${u.svg} Z`,c=s(0,n,o,n,180,180),$=s(c.endX,c.endY,o,n,0,180),f=`M0,${n} ${c.svg} ${$.svg} Z`,p=s(t,n,o,n,0,180),m=s(p.endX,p.endY,o,n,180,180),x=s(t,a,o,n,0,180);return[{d:h,fill:"norm",stroke:!1},{d:f,fill:"lighten",stroke:!1},{d:`M${t},${n} ${p.svg} ${m.svg} L${t},${a} ${x.svg} L0,${n}`,fill:"none",stroke:!0}]}),ll.set("curvedrightarrow",(t,e,l)=>e8("curvedRightArrow",t,e,l)),ll.set("curvedleftarrow",(t,e,l)=>e8("curvedLeftArrow",t,e,l)),ll.set("curveduparrow",(t,e,l)=>e7("curvedUpArrow",t,e,l)),ll.set("curveddownarrow",(t,e,l)=>e7("curvedDownArrow",t,e,l)),ll.set("bordercallout1",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??112500)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-38333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${r},${i} L${a},${n}`,fill:"none",stroke:!0}]}),ll.set("accentcallout1",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??112500)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-38333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${r},0 L${r},${e}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${n}`,fill:"none",stroke:!0}]}),ll.set("accentcallout2",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??112500)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-46667)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${r},0 L${r},${e}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${n} L${s},${o}`,fill:"none",stroke:!0}]}),ll.set("accentcallout3",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??1e5)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-16667)/1e5,d=e*((null==l?void 0:l.get("adj7"))??112963)/1e5,u=t*((null==l?void 0:l.get("adj8"))??-8333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${r},0 L${r},${e}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${n} L${s},${o} L${u},${d}`,fill:"none",stroke:!0}]}),ll.set("callout1",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??112500)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-38333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${r},${i} L${a},${n}`,fill:"none",stroke:!0}]}),ll.set("callout2",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??112500)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-46667)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${r},${i} L${a},${n} L${s},${o}`,fill:"none",stroke:!0}]}),ll.set("callout3",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??1e5)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-16667)/1e5,d=e*((null==l?void 0:l.get("adj7"))??112963)/1e5,u=t*((null==l?void 0:l.get("adj8"))??-8333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${r},${i} L${a},${n} L${s},${o} L${u},${d}`,fill:"none",stroke:!0}]}),ll.set("bordercallout2",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??187
750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??112500)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-46667)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${r},${i} L${a},${n} L${s},${o}`,fill:"none",stroke:!0}]}),ll.set("bordercallout3",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??1e5)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-16667)/1e5,d=e*((null==l?void 0:l.get("adj7"))??112963)/1e5,u=t*((null==l?void 0:l.get("adj8"))??-8333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${r},${i} L${a},${n} L${s},${o} L${u},${d}`,fill:"none",stroke:!0}]}),ll.set("accentbordercallout1",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??112500)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-38333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${r},0 L${r},${e}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${n}`,fill:"none",stroke:!0}]}),ll.set("accentbordercallout2",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??112500)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-46667)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${r},0 L${r},${e}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${n} L${s},${o}`,fill:"none",stroke:!0}]}),ll.set("accentbordercallout3",(t,e,l)=>{let i=e*((null==l?void 0:l.get("adj1"))??18750)/1e5,r=t*((null==l?void 0:l.get("adj2"))??-8333)/1e5,n=e*((null==l?void 0:l.get("adj3"))??18750)/1e5,a=t*((null==l?void 0:l.get("adj4"))??-16667)/1e5,o=e*((null==l?void 0:l.get("adj5"))??1e5)/1e5,s=t*((null==l?void 0:l.get("adj6"))??-16667)/1e5,d=e*((null==l?void 0:l.get("adj7"))??112963)/1e5,u=t*((null==l?void 0:l.get("adj8"))??-8333)/1e5;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!0},{d:`M${r},0 L${r},${e}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${n} L${s},${o} L${u},${d}`,fill:"none",stroke:!0}]}),ll.set("chartx",(t,e)=>[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M0,0 L${t},${e} M${t},0 L0,${e}`,fill:"none",stroke:!0}]),ll.set("chartplus",(t,e)=>{let l=t/2,i=e/2;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M${l},0 L${l},${e} M0,${i} L${t},${i}`,fill:"none",stroke:!0}]}),ll.set("chartstar",(t,e)=>{let l=t/2;return[{d:`M0,0 L${t},0 L${t},${e} L0,${e} Z`,fill:"norm",stroke:!1},{d:`M0,0 L${t},${e} M${t},0 L0,${e} M${l},0 L${l},${e}`,fill:"none",stroke:!0}]}),ll.set("ribbon",(t,e,l)=>{let i,r,n,a=(null==l?void 0:l.get("adj1"))??16667,o=(null==l?void 0:l.get("adj2"))??5e4,s=Math.min(Math.max(a,0),33333),d=t/2,u=t/8,h=t/32,c=t-u,$=t*Math.min(Math.max(o,25e3),75e3)/2e5,f=d-$,p=d+$,m=f+h,x=p-h,g=f+u,y=p-u,b=g-h,v=y+h,M=e*s/2e5,L=e*s/1e5,A=e-L,w=A/2,S=e*s/4e5,C=e-S,k=L-S,F=[];i=0,r=0,F.push("M0,0"),F.push(`L${b},0`),r=0,F.push((n=ln(i=b,r,h,S,270,180)).svg),i=n.x,r=n.y,F.push(`L${m},${M}`),F.push((n=ln(i=m,r=M,h,S,270,-180)).svg),i=n.x,r=n.y,F.push(`L${x},${L}`),F.push((n=ln(i=x,r=L,h,S,90,-180)).svg),i=n.x,r=n.y,F.push(`L${v},${M}`),F.push((n=ln(i=v,r=M,h,S,90,180)).svg),i=n.x,r=n.y,F.push(`L${t},0`),F.push(`L${c},${w}`),F.push(`L${t},${A}`),F.push(`L${p},${A}`),F.push(`L${p},${C}`),F.push((n=ln(i=p,r=C,h,S,0,90)).svg),i=n.x,r=n.y,F.push(`L${m},${e}`),F.push((n=ln(i=m,r=e,h,S,90,90)).svg),i=n.x,r=n.y,F.push(`L${f},${A}`),F.push(`L0,${A}`),F.push(`L${u},${w}`),F.push("Z");let E=[];i=g,r=S,E.push(`M${i},${r}`),E.push((n=ln(i,r,h,S,0,90)).svg),i=n.x,r=n.y,E.push(`L${m},${M}`),E.push((n=ln(i=m,r=M,h,S,270,-180)).svg),i=n.x,r=n.y,E.push(`L${g},${L}`),E.push("Z"),i=y,r=S,E.push(`M${i},${r}`),E.push((n=ln(i,r,h,S,180,-90)).svg),i=n.x,r=n.y,E.push(`L${x},${M}`),E.push((n=ln(i=x,r=M,h,S,270,180)).svg),i=n.x,r=n.y,E.push(`L${y},${L}`),E.push("Z");let j=[];return i=0,r=0,j.push("M0,0"),j.push(`L${b},0`),r=0,j.push((n=ln(i=b,r,h,S,270,180)).svg),i=n.x,r=n.y,j.push(`L${m},${M}`),j.push((n=ln(i=m,r=M,h,S,270,-180)).svg),i=n.x,r=n.y,j.push(`L${x},${L}`),j.push((n=ln(i=x,r=L,h,S,90,-180)).svg),i=n.x,r=n.y,j.push(`L${v},${M}`),j.push((n=ln(i=v,r=M,h,S,90,180)).svg),i=n.x,r=n.y,j.push(`L${t},0`),j.push(`L${c},${w}`),j.push(`L${t},${A}`),j.push(`L${p},${A}`),j.push(`L${p},${C}`),j.push((n=ln(i=p,r=C,h,S,0,90)).svg),i=n.x,r=n.y,j.push(`L${m},${e}`),j.push((n=ln(i=m,r=e,h,S,90,90)).svg),i=n.x,r=n.y,j.push(`L${f},${A}`),j.push(`L0,${A}`),j.push(`L${u},${w}`),j.push("Z"),j.push(`M${g},${S} L${g},${L}`),j.push(`M${y},${L} L${y},${S}`),j.push(`M${f},${A} L${f},${k}`),j.push(`M${p},${k} L${p},${A}`),[{d:F.join(" "),fill:"norm",stroke:!1}
7,{d:E.join(" "),fill:"darkenLess",stroke:!1},{d:j.join(" "),fill:"none",stroke:!0}]}),ll.set("ribbon2",(t,e,l)=>{let i,r,n,a=(null==l?void 0:l.get("adj1"))??16667,o=(null==l?void 0:l.get("adj2"))??5e4,s=Math.min(Math.max(a,0),33333),d=t/2,u=t/8,h=t/32,c=t-u,$=t*Math.min(Math.max(o,25e3),75e3)/2e5,f=d-$,p=d+$,m=f+h,x=p-h,g=f+u,y=p-u,b=g-h,v=y+h,M=e*s/2e5,L=e-M,A=e*s/1e5,w=e-A,S=(A+e)/2,C=e*s/4e5,k=e-C,F=L-C,E=[];E.push(`M0,${e}`),E.push(`L${b},${e}`),E.push((n=ln(i=b,r=e,h,C,90,-180)).svg),i=n.x,r=n.y,E.push(`L${m},${L}`),E.push((n=ln(i=m,r=L,h,C,90,180)).svg),i=n.x,r=n.y,E.push(`L${x},${w}`),E.push((n=ln(i=x,r=w,h,C,270,180)).svg),i=n.x,r=n.y,E.push(`L${v},${L}`),E.push((n=ln(i=v,r=L,h,C,270,-180)).svg),i=n.x,r=n.y,E.push(`L${t},${e}`),E.push(`L${c},${S}`),E.push(`L${t},${A}`),E.push(`L${p},${A}`),E.push(`L${p},${C}`),E.push((n=ln(i=p,r=C,h,C,0,-90)).svg),i=n.x,r=n.y,E.push(`L${m},0`),r=0,E.push((n=ln(i=m,r,h,C,270,-90)).svg),i=n.x,r=n.y,E.push(`L${f},${A}`),E.push(`L0,${A}`),E.push(`L${u},${S}`),E.push("Z");let j=[];i=g,r=k,j.push(`M${i},${r}`),j.push((n=ln(i,r,h,C,0,-90)).svg),i=n.x,r=n.y,j.push(`L${m},${L}`),j.push((n=ln(i=m,r=L,h,C,90,180)).svg),i=n.x,r=n.y,j.push(`L${g},${w}`),j.push("Z"),i=y,r=k,j.push(`M${i},${r}`),j.push((n=ln(i,r,h,C,180,90)).svg),i=n.x,r=n.y,j.push(`L${x},${L}`),j.push((n=ln(i=x,r=L,h,C,90,-180)).svg),i=n.x,r=n.y,j.push(`L${y},${w}`),j.push("Z");let B=[];return B.push(`M0,${e}`),B.push(`L${u},${S}
7`),B.push(`L0,${A}`),B.push(`L${f},${A}`),B.push(`L${f},${C}`),B.push((n=ln(i=f,r=C,h,C,180,90)).svg),i=n.x,r=n.y,B.push(`L${x},0`),r=0,B.push((n=ln(i=x,r,h,C,270,90)).svg),i=n.x,r=n.y,B.push(`L${p},${A}`),B.push(`L${t},${A}`),B.push(`L${c},${S}`),B.push(`L${t},${e}`),B.push(`L${v},${e}`),B.push((n=ln(i=v,r=e,h,C,90,180)).svg),i=n.x,r=n.y,B.push(`L${x},${L}`),B.push((n=ln(i=x,r=L,h,C,90,-180)).svg),i=n.x,r=n.y,B.push(`L${m},${w}`),B.push((n=ln(i=m,r=w,h,C,270,-180)).svg),i=n.x,r=n.y,B.push(`L${b},${L}`),B.push((n=ln(i=b,r=L,h,C,270,180)).svg),i=n.x,r=n.y,B.push("Z"),B.push(`M${g},${w} L${g},${k}`),B.push(`M${y},${k} L${y},${w}`),B.push(`M${f},${F} L${f},${A}`),B.push(`M${p},${A} L${p},${F}`),[{d:E.join(" "),fill:"norm",stroke:!1},{d:j.join(" "),fill:"darkenLess",stroke:!1},{d:B.join(" "),fill:"none",stroke:!0}]}),ll.set("horizontalscroll",(t,e,l)=>{let i,r,n=Math.min(t,e)*Math.min(Math.max((null==l?void 0:l.get("adj"))??12500,0),25e3)/1e5,a=n/2,o=n/4,s=n+a,d=n+n,u=e-n,h=e-a,c=u-a,$=t-n,f=t-a,p=[];i=t,r=a,p.push(`M${i},${r}`);let m=ln(i,r,a,a,0,90);p.push(m.svg),i=m.x,r=m.y,p.push(`L${f},${a}`),p.push((m=ln(f,a,o,o,0,180)).svg),i=m.x,r=m.y,p.push(`L${$},${n}`),p.push(`L${a},${n}`),p.push((m=ln(i=a,r=n,a,a,270,-90)).svg),i=m.x,r=m.y,p.push(`L0,${h}`),p.push((m=ln(i=0,r=h,a,a,180,-180)).svg),i=m.x,r=m.y,p.push(`L${n},${u}`),p.push(`L${f},${u}`),p.push((m=ln(i=f,r=u,a,a,90,-90)).svg),p.push("Z"),i=a,r=d,p.push(`M${i},${r}`),p.push((m=ln(i,r,a,a,90,-90)).svg),p.push((m=ln(i=m.x,r=m.y,o,o,0,-180)).svg),p.push("Z");let x=[];i=a,r=d,x.push(`M${i},${r}`),x.push((m=ln(i,r,a,a,90,-90)).svg),x.push((m=ln(i=m.x,r=m.y,o,o,0,-180)).svg),x.push("Z"),i=f,r=n,x.push(`M${i},${r}`),x.push((m=ln(i,r,a,a,90,-270)).svg),x.push((m=ln(i=m.x,r=m.y,o,o,180,-180)).svg),x.push("Z");let g=[];return i=0,r=s,g.push(`M${i},${r}`),g.push((m=ln(i,r,a,a,180,90)).svg),i=m.x,r=m.y,g.push(`L${$},${n}`),g.push(`L${$},${a}`),g.push((m=ln(i=$,r=a,a,a,180,180)).svg),i=m.x,r=m.y,g.push(`L${t},${c}`),g.push((m=ln(i=t,r=c,a,a,0,90)).svg),i=m.x,r=m.y,g.push(`L${n},${u}`),g.push(`L${n},${h}`),g.push((m=ln(i=n,r=h,a,a,0,180)).svg),g.push("Z"),g.push(`M${$},${n}`),g.push(`L${f},${n}`),g.push((m=ln(i=f,r=n,a,a,90,-90)).svg),g.push(`M${f},${n}`),g.push(`L${f},${a}`),g.push((m=ln(i=f,r=a,o,o,0,180)).svg),g.push(`M${a},${d}`),g.push(`L${a},${s}`),g.push((m=ln(i=a,r=s,o,o,180,180)).svg),g.push((m=ln(i=m.x,r=m.y,a,a,0,180)).svg),g.push(`M${n},${s}`),g.push(`L${n},${u}`),[{d:p.join(" "),fill:"norm",stroke:!1},{d:x.join(" "),fill:"darkenLess",stroke:!1},{d:g.join(" "),fill:"none",stroke:!0}]}),ll.set("verticalscroll",(t,e,l)=>{let i,r,n=Math.min(t,e)*Math.min(Math.max((null==l?void 0:l.get("adj"))??12500,0),25e3)/1e5,a=n/2,o=n/4,s=n+a,d=n+n,u=t-n,h=t-a,c=e-n,$=e-a,f=[];i=a,r=e,f.push(`M${i},${r}`);let p=ln(i,r,a,a,90,-90);f.push(p.svg),i=p.x,r=p.y,f.push(`L${a},${$}`),f.push((p=ln(i=a,r=$,o,o,90,-180)).svg),i=p.x,r=p.y,f.push(`L${n},${c}`),f.push(`L${n},${a}`),f.push((p=ln(i=n,r=a,a,a,180,90)).svg),i=p.x,r=p.y,f.push(`L${h},0`),r=0,f.push((p=ln(i=h,r,a,a,270,180)).svg),i=p.x,r=p.y,f.push(`L${u},${n}`),f.push(`L${u},${$}`),f.push((p=ln(i=u,r=$,a,a,0,90)).svg),f.push("Z"),i=d,r=a,f.push(`M${i},${r}`),f.push((p=ln(i,r,a,a,0,90)).svg),f.push((p=ln(i=p.x,r=p.y,o,o,90,180)).svg),f.push("Z");let m=[];i=d,r=a,m.push(`M${i},${r}`),m.push((p=ln(i,r,a,a,0,90)).svg),m.push((p=ln(i=p.x,r=p.y,o,o,90,180)).svg),m.push("Z"),i=n,r=$,m.push(`M${i},${r}`),m.push((p=ln(i,r,a,a,0,270)).svg),m.push((p=ln(i=p.x,r=p.y,o,o,270,180)).svg),m.push("Z");let x=[];return i=n,r=c,x.push(`M${i},${r}
7`),x.push(`L${n},${a}`),x.push((p=ln(i=n,r=a,a,a,180,90)).svg),i=p.x,r=p.y,x.push(`L${h},0`),r=0,x.push((p=ln(i=h,r,a,a,270,180)).svg),i=p.x,r=p.y,x.push(`L${u},${n}`),x.push(`L${u},${$}`),x.push((p=ln(i=u,r=$,a,a,0,90)).svg),i=p.x,r=p.y,x.push(`L${a},${e}`),x.push((p=ln(i=a,r=e,a,a,90,180)).svg),x.push("Z"),x.push(`M${s},0`),r=0,x.push((p=ln(i=s,r,a,a,270,180)).svg),x.push((p=ln(i=p.x,r=p.y,o,o,90,180)).svg),i=p.x,r=p.y,x.push(`L${d},${a}`),x.push(`M${u},${n}`),x.push(`L${s},${n}`),x.push(`M${a},${c}`),x.push((p=ln(i=a,r=c,o,o,270,180)).svg),i=p.x,r=p.y,x.push(`L${n},${$}`),x.push(`M${a},${e}`),x.push((p=ln(i=a,r=e,a,a,90,-90)).svg),i=p.x,r=p.y,x.push(`L${n},${c}`),[{d:f.join(" "),fill:"norm",stroke:!1},{d:m.join(" "),fill:"darkenLess",stroke:!1},{d:x.join(" "),fill:"none",stroke:!0}]});let lM=0,lL=0;function lA(t,e,l,i,r){let n=`shape-shadow-${++lL}`,a=document.createElementNS(t,"filter"),o=Math.max(Math.abs(r.dx),Math.abs(r.dy))+4*r.blur+4;a.setAttribute("id",n),a.setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x",String(-o)),a.setAttribute("y",String(-o)),a.setAttribute("width",String(i.w+2*o)),a.setAttribute("height",String(i.h+2*o));let s=document.createElementNS(t,"feDropShadow");s.setAttribute("dx",r.dx.toFixed(1)),s.setAttribute("dy",r.dy.toFixed(1)),s.setAttribute("stdDeviation",Math.max(0,r.blur/2).toFixed(2)),s.setAttribute("flood-color",`rgb(${r.color.r},${r.color.g},${r.color.b})`),s.setAttribute("flood-opacity",r.opacity.toFixed(4)),a.appendChild(s),e.appendChild(a),!e.parentNode&&l.ownerSVGElement&&l.ownerSVGElement.insertBefore(e,l.ownerSVGElement.firstChild),l.setAttribute("filter",`url(#${n})`)}function lw(t,e){let l=Math.max(e,1);switch(t){case"dot":case"sysDot":return`${l},${2*l}`;case"dash":case"sysDash":return`${4*l},${2*l}`;case"lgDash":return`${8*l},${3*l}`;case"dashDot":case"sysDashDot":return`${4*l},${2*l},${l},${2*l}`;case"lgDashDot":return`${8*l},${3*l},${l},${3*l}`;case"lgDashDotDot":case"sysDashDotDot":return`${8*l},${3*l},${l},${2*l},${l},${2*l}`;default:return null}}function lS(t){if(!t)return null;let e=t.trim();if(e.startsWith("#"))return tk(e);let l=e.match(/rgba?\(([^)]+)\)/i);if(!l)return null;let i=l[1].split(",").map(t=>Number.parseFloat(t.trim()));return i.length<3||i.some(t=>Number.isNaN(t))?null:{r:Math.max(0,Math.min(255,i[0])),g:Math.max(0,Math.min(255,i[1])),b:Math.max(0,Math.min(255,i[2]))}}function lC(t,e,l){let i=Math.max(0,Math.min(1,l));return tF(t.r+(e.r-t.r)*i,t.g+(e.g-t.g)*i,t.b+(e.b-t.b)*i)}function lk(t){let e=t*Math.PI/180,l=Math.round(50+50*Math.cos(e)),i=Math.round(50+50*Math.sin(e)),r=Math.round(50-50*Math.cos(e)),n=Math.round(50-50*Math.sin(e));return{x1:`${r}%`,y1:`${n}%`,x2:`${l}%`,y2:`${i}%`}}function lF(t){switch(t){case"sm":return .5;case"lg":return 1.5;default:return 1}}function lE(t,e){let l=lF(t.w);return{markerW:Math.max(3*e,10)*lF(t.len),markerH:Math.max(2.5*e,7.5)*l}}function lj(t){if(!t)return!0;let e=t.trim().toLowerCase();if("transparent"===e)return!0;let l=e.match(/^rgba\([^,]+,[^,]+,[^,]+,\s*([0-9.]+)\)$/);return!!l&&.001>=Number(l[1])}function lB(t,e,l){var i,r;if(0===t.length)return l;let n="start"===e?0:t.length-1,a="start"===e?1:-1,o=null==(i=t[n])?void 0:i.color;if(o&&!lj(o))return o;for(let e=n;e>=0&&e<t.length;e+=a){let l=null==(r=t[e])?void 0:r.color;if(l&&!lj(l))return l}return o||l}function lP(t,e,l){return{x:t.x+(e.x-t.x)*l,y:t.y+(e.y-t.y)*l}}function lz(t,e,l,i,r){let n=0,a=t;for(let o=1;o<=24;o++){let s=function(t,e,l,i,r){let n=lP(t,e,r),a=lP(e,l,r),o=lP(l,i,r),s=lP(n,a,r),d=lP(a,o,r);return lP(s,d,r)}(t,e,l,i,r*o/24);n+=Math.hypot(s.x-a.x,s.y-a.y),a=s}return n}function lN(t){return function(t){let e=lo(t);if(!e||e.length<8||"M"!==e[0])return null;let l=ld(e,1);if(!l)return null;let i=[],r=3;for(;r<e.length;){if("C"!==e[r++])return null;let t=ld(e,r),l=ld(e,r+2),n=ld(e,r+4);if(!t||!l||!n)return null;i.push({c1:t,c2:l,end:n}),r+=6}return i.length>0?{start:l,segments:i}:null}(t)}function lD(t,e){let l=[`M${lm(t.x)},${lm(t.y)}`];for(let t of e)l.push(`C${lm(t.c1.x)},${lm(t.c1.y)} ${lm(t.c2.x)},${lm(t.c2.y)} ${lm(t.end.x)},${lm(t.end.y)}`);return l.join(" ")}function lI(t){return function(t){let e=lo(t);if(!e||11!==e.length||"M"!==e[0]||"A"!==e[3])return null;let l=ld(e,1),i=Number(e[4]),r=Number(e[5]),n=Number(e[6]),a=+!!Number(e[7]),o=+!!Number(e[8]),s=ld(e,9);return l&&s&&Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(n)?{start:l,arc:{rx:i,ry:r,xAxisRotation:n,largeArc:a,sweep:o,end:s}}:null}(t)}function lR(t,e){let l,i;if(0!==e.xAxisRotation)return null;let r=Math.abs(e.rx),n=Math.abs(e.ry);if(!(r>0)||!(n>0))return null;let a=(t.x-e.end.x)/2,o=(t.y-e.end.y)/2,s=a*a/(r*r)+o*o/(n*n);if(s>1){let t=Math.sqrt(s);r*=t,n*=t}let d=r*r,u=n*n,h=a*a,c=o*o,$=d*c+u*h;if(!($>0))return null;let f=(e.largeArc===e.sweep?-1:1)*Math.sqrt(Math.max(0,(d*u-d*c-u*h)/$)),p=f*r*o/n,m=-f*n*a/r,x={x:(t.x+e.end.x)/2+p,y:(t.y+e.end.y)/2+m},g=(a-p)/r,y=(o-m)/n,b=(-a-p)/r,v=(-o-m)/n,M=Math.atan2(y,g),L=(i=Math.acos(Math.min(1,Math.max(-1,(l=Math.hypot(g,y)*Math.hypot(b,v))>0?(g*b+y*v)/l:1))),g*v-y*b<0?-i:i);return 0===e.sweep&&L>0&&(L-=2*Math.PI),1===e.sweep&&L<0&&(L+=2*Math.PI),{center:x,rx:r,ry:n,startAngle:M,deltaAngle:L,xAxisRotation:e.xAxisRotation,sweep:e.sweep}}function lZ(t,e){let l=t.startAngle+t.deltaAngle*e;return{x:t.center.x+t.rx*Math.cos(l),y:t.center.y+t.ry*Math.sin(l)}}function lT(t,e){let l=0,i=lZ(t,0);for(let r=1;r<=24;r++){let n=lZ(t,e*r/24);l+=Math.hypot(n.x-i.x,n.y-i.y),i=n}return l}function lO(t,e,l,i){let r=+(Math.abs(e.deltaAngle*l)>Math.PI);return[`M${lm(t.x)},${lm(t.y)}`,`A${lm(e.rx)}
7,${lm(e.ry)}`,lm(e.xAxisRotation),`${r},${e.sweep}`,`${lm(i.x)},${lm(i.y)}`].join(" ")}function lW(t){return function(t){let e=lo(t);if(!e||e.length<3||"M"!==e[0])return null;let l=[],i=1,r=ld(e,1);if(!r)return null;for(l.push(r),i+=2;i<e.length;){if("L"!==e[i++])return null;let t=ld(e,i);if(!t)return null;l.push(t),i+=2}return l.length>=2?l:null}(t)}function lH(t){return t.map((t,e)=>`${0===e?"M":"L"}${lm(t.x)},${lm(t.y)}`).join(" ")}function lU(t,e){return Math.hypot(e.x-t.x,e.y-t.y)}function lG(t,e,l,i,r){let n=document.createElementNS(t,"marker"),a=`arrow-marker-${++lM}`;n.setAttribute("id",a),n.setAttribute("markerUnits","userSpaceOnUse"),n.setAttribute("orient","auto");let{markerW:o,markerH:s}=lE(e,i);switch(e.type){case"triangle":case"arrow":{n.setAttribute("viewBox","0 0 10 10"),n.setAttribute("refX",r?"10":"0"),n.setAttribute("refY","5"),n.setAttribute("markerWidth",String(o)),n.setAttribute("markerHeight",String(s));let e=document.createElementNS(t,"polygon");r?e.setAttribute("points","0,5 10,0 10,10"):e.setAttribute("points","10,5 0,0 0,10"),e.setAttribute("fill",l),n.appendChild(e);break}case"stealth":{n.setAttribute("viewBox","0 0 10 10"),n.setAttribute("refX",r?"10":"0"),n.setAttribute("refY","5"),n.setAttribute("markerWidth",String(o)),n.setAttribute("markerHeight",String(s));let e=document.createElementNS(t,"path");r?e.setAttribute("d","M0,5 L10,0 L7,5 L10,10 Z"):e.setAttribute("d","M10,5 L0,0 L3,5 L0,10 Z"),e.setAttribute("fill",l),n.appendChild(e);break}case"diamond":{n.setAttribute("viewBox","0 0 10 10"),n.setAttribute("refX","5"),n.setAttribute("refY","5"),n.setAttribute("markerWidth",String(o)),n.setAttribute("markerHeight",String(s));let e=document.createElementNS(t,"polygon");e.setAttribute("points","5,0 10,5 5,10 0,5"),e.setAttribute("fill",l),n.appendChild(e);break}case"oval":{n.setAttribute("viewBox","0 0 10 10"),n.setAttribute("refX","5"),n.setAttribute("refY","5"),n.setAttribute("markerWidth",String(o)),n.setAttribute("markerHeight",String(s));let e=document.createElementNS(t,"circle");e.setAttribute("cx","5"),e.setAttribute("cy","5"),e.setAttribute("r","4"),e.setAttribute("fill",l),n.appendChild(e);break}default:return null}return n._markerId=a,n}let lX=new WeakMap,lY=[37,80,68,70],lV=[37,37,69,79,70];function lq(t){let e=function(t,e){let l=t.length-e.length;for(let i=0;i<=l;i++)if(l_(t,i,e))return i;return -1}(t,lY);if(-1===e)return null;let l=-1;for(let i=t.length-lV.length;i>=e;i--)if(l_(t,i,lV)){l=i+lV.length;break}return -1===l&&(l=t.length),t.slice(e,l)}function l_(t,e,l){for(let i=0;i<l.length;i++)if(t[e+i]!==l[i])return!1;return!0}let lQ=null,lK=null;function lJ(t){try{let e;if("function"==typeof e)return e(t)}catch{}return null}function l0(t,e){if(!t||"object"!=typeof t)return null;let l=t[e];return"string"!=typeof l?null:l.trim()||null}let l1=` 8let pdfjsLib = null; 9 10// PDF.js resolves its nested worker through browser window APIs. Aliasing
11// this isolated worker global keeps it on the real-worker path; otherwise its 12// fake-worker fallback would bind to this worker's message port. 13globalThis.window = globalThis; 14 15self.onmessage = async (e) => { 16 const { id, pdfData, width, height, pdfjsUrl, pdfWorkerUrl } = e.data; 17 try { 18 if (!pdfjsLib) { 19 pdfjsLib = await import(pdfjsUrl); 20 pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerUrl; 21 } 22 23 const loadingTask = pdfjsLib.getDocument({ data: pdfData }); 24 let doc = null; 25 try { 26 doc = await loadingTask.promise; 27 if (doc.numPages < 1) { 28 self.postMessage({ id, error: 'no pages' }); 29 return; 30 } 31 const page = await doc.getPage(1); 32 const vp = page.getViewport({ scale: 1 }); 33 const scale = Math.max(width / vp.width, height / vp.height); 34 const svp = page.getViewport({ scale }); 35 36 const canvas = new OffscreenCanvas(Math.ceil(svp.width), Math.ceil(svp.height)); 37 const ctx = canvas.getContext('2d', { alpha: true }); 38 await page.render({ canvasContext: ctx, viewport: svp, background: 'rgba(0,0,0,0)' }).promise; 39 40 const blob = await canvas.convertToBlob({ type: 'image/png' }); 41 self.postMessage({ id, blob }); 42 } finally { 43 if (typeof loadingTask.destroy === 'function') { 44 await loadingTask.destroy(); 45 } else if (doc && typeof doc.destroy === 'function') { 46 await doc.destroy(); 47 } 48 } 49 } catch (err) { 50 self.postMessage({ id, error: String(err) }); 51 } 52}; 53`,l2=0,l5=[];function l3(){for(;l2<4;){let t=l5.shift();if(!t)return;t.start()}}async function l6(t,e,l,i,r){var n;if(null!=r&&r.aborted)return null;let a=!1===i?null:l0(i,"moduleUrl")??(null!==lQ?lQ:(lQ=lJ("pdfjs-dist/build/pdf.min.mjs")??"")||null),o=!1===i?null:l0(i,"workerUrl")??(null!==lK?lK:(lK=lJ("pdfjs-dist/build/pdf.worker.min.mjs")??"")||null);if(!a||!o||typeof OffscreenCanvas>"u"||typeof Worker>"u")return null;try{let i=await (n=()=>null!=r&&r.aborted?Promise.resolve(null):new Promise(i=>{let n=null,s,d=!1,u=t=>{d||(d=!0,void 0!==s&&clearTimeout(s),null==r||r.removeEventListener("abort",h),n&&(n.onmessage=null,n.onerror=null,n.terminate(),n=null),i(t))},h=()=>u(null);try{let i=new Blob([l1],{type:"text/javascript"}),d=URL.createObjectURL(i);try{n=new Worker(d,{type:"module"})}finally{URL.revokeObjectURL(d)}n.onmessage=t=>{let{blob:e,error:l}=t.data;u(l?null:e??null)},n.onerror=()=>u(null),null==r||r.addEventListener("abort",h,{once:!0});let c=t.slice();n.postMessage({id:1,pdfData:c,width:e,height:l,pdfjsUrl:a,pdfWorkerUrl:o},[c.buffer]),s=setTimeout(()=>u(null),15e3)}catch{u(null)}}),null!=r&&r.aborted?Promise.resolve(null):new Promise(t=>{let e=!1,l=!1,i=e=>{l||(l=!0,t(e))},a={start:()=>{l||(e=!0,null==r||r.removeEventListener("abort",a.cancel),l2+=1,Promise.resolve().then(n).then(i,()=>i(null)).finally(()=>{l2-=1,l3()}))},cancel:()=>{if(e||l)return;let t=l5.indexOf(a);t>=0&&l5.splice(t,1),null==r||r.removeEventListener("abort",a.cancel),i(null)}};null==r||r.addEventListener("abort",a.cancel,{once:!0}),l5.push(a),l3()}));if(i&&!(null!=r&&r.aborted))return URL.createObjectURL(i)}catch{}return null}function l4(t){var e;return"wmf"===((null==(e=t.split(".").pop())?void 0:e.toLowerCase())||"")}let l8=0;function l7(t,e){if(G(t.targetMode))return er(t.target)?t.target:void 0;let l=C(t.target,e.presentation.media);if(!l)return;let{mediaPath:i,data:r}=l;if(!l4(i))return F(i,r,e.mediaUrlCache)}function l9(t,e,l,i,r){var n;if("emf"===((null==(n=i.split(".").pop())?void 0:n.toLowerCase())||""))return void function(t,e,l,i,r){let n=function(t){if(t.length<44)return{type:"unsupported"};let e=new DataView(t.buffer,t.byteOffset,t.byteLength);if(0x464d4520!==e.getUint32(40,!0))return{type:"unsupported"};let l=0,i=0;for(;l+8<=t.length;){let r=e.getUint32(l,!0),n=e.getUint32(l+4,!0);if(n<8||l+n>t.length||(i++,14===r))break;if(70===r&&n>16){let i=function(t,e,l,i){if(l+16>t.length)return null;if(0x43494447===e.getUint32(l+12,!0)&&l+20<=t.length){let r=e.getUint32(l+16,!0);if(2===r){let e=lq(t.subarray(l+8,l+i));if(e)return{type:"pdf",data:e}}if(0x40000004===r&&l+24<=t.length){let i=function(t,e,l){if(l+40>t.length)return null;let i=e.getUint32(l+36,!0),r=l+40;for(let n=0;n<i&&n<10;n++){let i=r+16*n;if(i+16>t.length)break;let a=e.getUint32(i+8,!0),o=l+e.getUint32(i+12,!0);if(o+a>t.length||0===a)continue;let s=lq(t.subarray(o,o+a));if(s)return{type:"pdf",data:s}}return null}(t,e,l);if(i)return i}}if(i>100){let e=lq(t.subarray(l+8,l+i));if(e)return{type:"pdf",data:e}}return null}(t,e,l,n);if(i)return i}if(81===r&&n>80){let i=function(t,e,l){if(l+80>t.length)return null;let i=e.getUint32(l+48,!0),r=e.getUint32(l+52,!0),n=e.getUint32(l+56,!0),a=e.getUint32(l+60,!0);if(0===r||0===a)return null;let o=l+i;if(o+40>t.length)return null;let s=e.getInt32(o+4,!0),d=e.getInt32(o+8,!0),u=e.getUint16(o+14,!0);if(0!==e.getUint32(o+16,!0)||24!==u&&32!==u)return null;let h=Math.abs(s),c=Math.abs(d);if(0===h||0===c||h>8192||c>8192||h*c>0x1000000)return null;let $=l+n;if($+a>t.length)return null;let f=u/8,p=4*Math.ceil(h*f/4),m=p*c;if(a<m)return null;let x=t.subarray($,$+m),g=d<0,y=new ImageData(h,c);for(let t=0;t<c;t++){let e=(g?t:c-1-t)*p,l=t*h*4;for(let t=0;t<h;t++){let i=e+t*f;if(i+f>x.length)break;y.data[l+4*t+0]=x[i+2],y.data[l+4*t+1]=x[i+1],y.data[l+4*t+2]=x[i+0],y.data[l+4*t+3]=32===u?x[i+3]:255}}return{type:"bitmap",imageData:y}}(t,e,l);if(i)return i}l+=n}return i<=2?{type:"empty"}:{type:"unsupported"}}(t);switch(n.type){case"pdf":!function(t,e,l,i,r){var n;let a=`${r}:emf-pdf`,o=i.mediaUrlCache.get(a);if(o)return e.appendChild(io(o));let s=l6(t,l.size.w,l.size.h,i.pdfjs,i.signal).then(t=>{var l;if(t){if(null!=(l=i.signal)&&l.aborted)return void URL.revokeObjectURL(t);
53i.mediaUrlCache.set(a,t),e.appendChild(io(t))}}).catch(()=>{});null==(n=i.asyncTasks)||n.push(s)}(n.data,i,e,l,r);break;case"bitmap":!function(t,e,l,i){var r;let n=`${i}:emf-bitmap`,a=l.mediaUrlCache.get(n);if(a)return e.appendChild(io(a));let o=document.createElement("canvas");o.width=t.width,o.height=t.height;let s=o.getContext("2d");if(!s)return;s.putImageData(t,0,0);let d=new Promise(t=>{o.toBlob(i=>{if(i){let t=URL.createObjectURL(i);l.mediaUrlCache.set(n,t),e.appendChild(io(t))}t()},"image/png")});null==(r=l.asyncTasks)||r.push(d)}(n.imageData,i,l,r)}}(r instanceof Uint8Array?r:new Uint8Array(r),t,e,l,i);let a=F(i,r,e.mediaUrlCache);it(t,e,l,a)}function it(t,e,l,i){var r,n,a,o,s,d;let u,h,c,$,f,p,m,x,g=t.source.child("blipFill"),y=g.child("blip"),b=(u=1,(h=(r=y).child("alphaModFix")).exists()&&(u*=(h.numAttr("amt")??1e5)/1e5),(c=r.child("alphaMod")).exists()&&(u*=(c.numAttr("val")??1e5)/1e5),($=r.child("alphaOff")).exists()&&(u+=($.numAttr("val")??0)/1e5),Math.max(0,Math.min(1,u)));if(g.child("tile").exists()){l.style.backgroundImage=`url("${i}")`,l.style.backgroundRepeat="repeat",l.style.backgroundSize="auto",b<1&&(l.style.opacity=`${Number(b.toFixed(4))}`);return}let v=document.createElement("img");v.src=i,v.style.width="100%",v.style.height="100%",v.style.objectFit="fill",v.style.display="block",v.draggable=!1;let M=t.source.child("blipFill").child("stretch").child("fillRect"),L=M.exists()?(f=ie(n=M,"l"),{left:f,top:p=ie(n,"t"),width:100-f-ie(n,"r"),height:100-p-ie(n,"b")}):void 0,A=il(t);if(A){(function(t,e,l,i,r){let n="http://www.w3.org/2000/svg",a=document.createElementNS(n,"svg");a.setAttribute("viewBox",`0 0 ${t.size.w} ${t.size.h}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.style.display="block",a.style.overflow="hidden";let o=`picture-clip-${l8++}`,s=document.createElementNS(n,"defs"),d=document.createElementNS(n,"clipPath");d.setAttribute("id",o),d.setAttribute("clipPathUnits","userSpaceOnUse");let u=document.createElementNS(n,"path");u.setAttribute("d",i);let h=t.flipH&&t.flipV?`translate(${t.size.w} ${t.size.h}) scale(-1 -1)`:t.flipH?`translate(${t.size.w} 0) scale(-1 1)`:t.flipV?`translate(0 ${t.size.h}) scale(1 -1)`:void 0;h&&u.setAttribute("transform",h),d.appendChild(u),s.appendChild(d),a.appendChild(s);let c=document.createElementNS(n,"image");c.setAttribute("href",l),c.setAttribute("preserveAspectRatio","none"),h&&c.setAttribute("transform",h);let $=document.createElementNS(n,"g");$.setAttribute("clip-path",`url(#${o})`);let f=((null==r?void 0:r.left)??0)/100*t.size.w,p=((null==r?void 0:r.top)??0)/100*t.size.h,m=((null==r?void 0:r.width)??100)/100*t.size.w,x=((null==r?void 0:r.height)??100)/100*t.size.h;if(t.crop){let{top:e,right:l,bottom:i,left:n}=t.crop,a=1-n-l,o=1-e-i;if(a>.001&&o>.001){let l=1/a,i=1/o;m*=l,x*=i,f+=-n*l*(((null==r?void 0:r.width)??100)/100)*t.size.w,p+=-e*i*(((null==r?void 0:r.height)??100)/100)*t.size.h}}c.setAttribute("x",String(f)),c.setAttribute("y",String(p)),c.setAttribute("width",String(m)),c.setAttribute("height",String(x)),e.appendChild(a),a.appendChild($),$.appendChild(c)})(t,l,i,A,L),b<1&&(l.style.opacity=`${Number(b.toFixed(4))}`);return}if(L&&(a=v,o=L,a.style.position="absolute",a.style.left=`${o.left}%`,a.style.top=`${o.top}%`,a.style.width=`${o.width}%`,a.style.height=`${o.height}%`),t.crop){let{top:e,right:l,bottom:i,left:r}=t.crop,n=1-r-l,a=1-e-i;if(n>.001&&a>.001){let l=1/n,i=1/a,o=t.size.w*(((null==L?void 0:L.width)??100)/100),s=t.size.h*(((null==L?void 0:L.height)??100)/100);v.style.width=`${(l*o).toFixed(4)}px`,v.style.height=`${(i*s).toFixed(4)}px`,v.style.marginLeft=`${(-r*l*o).toFixed(4)}px`,v.style.marginTop=`${(-e*i*s).toFixed(4)}px`}}b<1&&(l.style.opacity=`${Number(b.toFixed(4))}`),y.child("grayscl").exists()&&ii(v,"grayscale(1)");let w=y.child("duotone");w.exists()&&function(t,e,l){let i=t.allChildren();if(i.length<2)return;let{color:r}=tG(i[0],e),{color:n}=tG(i[1],e);if(!r||!n)return;let a=r.startsWith("#")?r:`#${r}`,o=n.startsWith("#")?n:`#${n}`,s=tk(a),d=tk(o),u=()=>{let t=l.naturalWidth,e=l.naturalHeight;if(!t||!e)return;let i=document.createElement("canvas");i.width=t,i.height=e;let r=i.getContext("2d");if(!r)return;r.drawImage(l,0,0);let n=r.getImageData(0,0,t,e),a=n.data;for(let t=0;t<a.length;t+=4){let e=(.2126*a[t]+.7152*a[t+1]+.0722*a[t+2])/255;a[t]=Math.round(s.r+(d.r-s.r)*e),a[t+1]=Math.round(s.g+(d.g-s.g)*e),a[t+2]=Math.round(s.b+(d.b-s.b)*e)}r.putImageData(n,0,0),l.src=i.toDataURL()};
53l.complete&&l.naturalWidth?u():l.addEventListener("load",u,{once:!0})}(w,e,v);let S=y.child("lum");S.exists()&&function(t,e){let l=(t.numAttr("bright")??0)/1e5,i=(t.numAttr("contrast")??0)/1e5;if(0===l&&0===i)return;let r=()=>{let t=e.naturalWidth,r=e.naturalHeight;if(!t||!r)return;let n=document.createElement("canvas");n.width=t,n.height=r;let a=n.getContext("2d");if(!a)return;a.drawImage(e,0,0);let o=a.getImageData(0,0,t,r),s=o.data;for(let t=0;t<s.length;t+=4)for(let e=0;e<3;e++){let r=s[t+e]/255;0!==i&&(r=.5+(r-.5)*(1+i)),r+=l,s[t+e]=Math.round(Math.max(0,Math.min(255,255*r)))}a.putImageData(o,0,0),e.src=n.toDataURL()};e.complete&&e.naturalWidth?r():e.addEventListener("load",r,{once:!0})}(S,v);let C=y.child("biLevel");C.exists()&&(s=C,d=v,m=(s.numAttr("thresh")??5e4)/1e5,x=()=>{let t=d.naturalWidth,e=d.naturalHeight;if(!t||!e)return;let l=document.createElement("canvas");l.width=t,l.height=e;let i=l.getContext("2d");if(!i)return;i.drawImage(d,0,0);let r=i.getImageData(0,0,t,e),n=r.data;for(let t=0;t<n.length;t+=4){let e=255*((.2126*n[t]+.7152*n[t+1]+.0722*n[t+2])/255>=m);n[t]=e,n[t+1]=e,n[t+2]=e}i.putImageData(r,0,0),d.src=l.toDataURL()},d.complete&&d.naturalWidth?x():d.addEventListener("load",x,{once:!0})),l.appendChild(v)}function ie(t,e){return(t.numAttr(e)??0)/1e3}function il(t){let e=t.source.child("spPr").child("custGeom"),l=t.customGeometry??(e.exists()?e:void 0);if(null!=l&&l.exists()){let e=t.source.child("spPr").child("xfrm").child("ext"),i={w:e.numAttr("cx")??0,h:e.numAttr("cy")??0};return e1(l,t.size.w,t.size.h,i)||void 0}let i=t.source.child("spPr").child("prstGeom").attr("prst"),r=t.presetGeometry??i;return r&&"rect"!==r&&la(r,t.size.w,t.size.h)||void 0}function ii(t,e){let l=t.style.filter.trim();t.style.filter=l?`${l} ${e}`:e}function ir(t,e){if(!t)return;let l=e.slide.rels.get(t);if(!l)return;if(G(l.targetMode))return er(l.target)?l.target:void 0;let i=C(l.target,e.presentation.media);if(!i)return;let{mediaPath:r,data:n}=i;return F(r,n,e.mediaUrlCache)}function ia(t,e){let l=document.createElement("div");l.style.width="100%",l.style.height="100%",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",l.style.backgroundColor="#f0f0f0",l.style.color="#888",l.style.fontSize="12px",l.style.border="1px dashed #ccc",l.textContent=e,t.appendChild(l)}function io(t){let e=document.createElement("img");return e.src=t,e.style.width="100%",e.style.height="100%",e.style.objectFit="fill",e.style.display="block",e.draggable=!1,e}let is=new Map([["{2D5ABB26-0587-4C30-8999-92F81FD0307C}",["Themed-Style-1",""]],["{3C2FFA5D-87B4-456A-9821-1D502468CF0F}",["Themed-Style-1","accent1"]],["{284E427A-3D55-4303-BF80-6455036E1DE7}",["Themed-Style-1","accent2"]],["{69C7853C-536D-4A76-A0AE-DD22124D55A5}",["Themed-Style-1","accent3"]],["{775DCB02-9BB8-47FD-8907-85C794F793BA}",["Themed-Style-1","accent4"]],["{35758FB7-9AC5-4552-8A53-C91805E547FA}",["Themed-Style-1","accent5"]],["{08FB837D-C827-4EFA-A057-4D05807E0F7C}",["Themed-Style-1","accent6"]],["{5940675A-B579-460E-94D1-54222C63F5DA}",["Themed-Style-2",""]],["{D113A9D2-9D6B-4929-AA2D-F23B5EE8CBE7}",["Themed-Style-2","accent1"]],["{18603FDC-E32A-4AB5-989C-0864C3EAD2B8}",["Themed-Style-2","accent2"]],["{306799F8-075E-4A3A-A7F6-7FBC6576F1A4}",["Themed-Style-2","accent3"]],["{E269D01E-BC32-4049-B463-5C60D7B0CCD2}",["Themed-Style-2","accent4"]],["{327F97BB-C833-4FB7-BDE5-3F7075034690}",["Themed-Style-2","accent5"]],["{638B1855-1B75-4FBE-930C-398BA8C253C6}",["Themed-Style-2","accent6"]],["{9D7B26C5-4107-4FEC-AEDC-1716B250A1EF}",["Light-Style-1",""]],["{3B4B98B0-60AC-42C2-AFA5-B58CD77FA1E5}",["Light-Style-1","accent1"]],["{0E3FDE45-AF77-4B5C-9715-49D594BDF05E}",["Light-Style-1","accent2"]],["{C083E6E3-FA7D-4D7B-A595-EF9225AFEA82}",["Light-Style-1","accent3"]],["{D27102A9-8310-4765-A935-A1911B00CA55}",["Light-Style-1","accent4"]],["{5FD0F851-EC5A-4D38-B0AD-8093EC10F338}",["Light-Style-1","accent5"]],["{68D230F3-CF80-4859-8CE7-A43EE81993B5}",["Light-Style-1","accent6"]],["{7E9639D4-E3E2-4D34-9284-5A2195B3D0D7}",["Light-Style-2",""]],["{69012ECD-51FC-41F1-AA8D-1B2483CD663E}",["Light-Style-2","accent1"]],["{72833802-FEF1-4C79-8D5D-14CF1EAF98D9}",["Light-Style-2","accent2"]],["{F2DE63D5-997A-4646-A377-4702673A728D}",["Light-Style-2","accent3"]],["{17292A2E-F333-43FB-9621-5CBBE7FDCDCB}",["Light-Style-2","accent4"]],["{5A111915-BE36-4E01-A7E5-04B1672EAD32}",["Light-Style-2","accent5"]],["{912C8C85-51F0-491E-9774-3900AFEF0FD7}",["Light-Style-2","accent6"]],["{616DA210-FB5B-4158-B5E0-FEB733F419BA}",["Light-Style-3",""]],["{BC89EF96-8CEA-46FF-86C4-4CE0E7609802}",["Light-Style-3","accent1"]],["{5DA37D80-6434-44D0-A028-1B22A696006F}",["Light-Style-3","accent2"]],["{8799B23B-EC83-4686-B30A-512413B5E67A}",["Light-Style-3","accent3"]],["{ED083AE6-46FA-4A59-8FB0-9F97EB10719F}
53",["Light-Style-3","accent4"]],["{BDBED569-4797-4DF1-A0F4-6AAB3CD982D8}",["Light-Style-3","accent5"]],["{E8B1032C-EA38-4F05-BA0D-38AFFFC7BED3}",["Light-Style-3","accent6"]],["{793D81CF-94F2-401A-BA57-92F5A7B2D0C5}",["Medium-Style-1",""]],["{B301B821-A1FF-4177-AEE7-76D212191A09}",["Medium-Style-1","accent1"]],["{9DCAF9ED-07DC-4A11-8D7F-57B35C25682E}",["Medium-Style-1","accent2"]],["{1FECB4D8-DB02-4DC6-A0A2-4F2EBAE1DC90}",["Medium-Style-1","accent3"]],["{1E171933-4619-4E11-9A3F-F7608DF75F80}",["Medium-Style-1","accent4"]],["{FABFCF23-3B69-468F-B69F-88F6DE6A72F2}",["Medium-Style-1","accent5"]],["{10A1B5D5-9B99-4C35-A422-299274C87663}",["Medium-Style-1","accent6"]],["{073A0DAA-6AF3-43AB-8588-CEC1D06C72B9}",["Medium-Style-2",""]],["{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}",["Medium-Style-2","accent1"]],["{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}",["Medium-Style-2","accent2"]],["{F5AB1C69-6EDB-4FF4-983F-18BD219EF322}",["Medium-Style-2","accent3"]],["{00A15C55-8517-42AA-B614-E9B94910E393}",["Medium-Style-2","accent4"]],["{7DF18680-E054-41AD-8BC1-D1AEF772440D}",["Medium-Style-2","accent5"]],["{93296810-A885-4BE3-A3E7-6D5BEEA58F35}",["Medium-Style-2","accent6"]],["{8EC20E35-A176-4012-BC5E-935CFFF8708E}",["Medium-Style-3",""]],["{6E25E649-3F16-4E02-A733-19D2CDBF48F0}",["Medium-Style-3","accent1"]],["{85BE263C-DBD7-4A20-BB59-AAB30ACAA65A}",["Medium-Style-3","accent2"]],["{EB344D84-9AFB-497E-A393-DC336BA19D2E}",["Medium-Style-3","accent3"]],["{EB9631B5-78F2-41C9-869B-9F39066F8104}",["Medium-Style-3","accent4"]],["{74C1A8A3-306A-4EB7-A6B1-4F7E0EB9C5D6}",["Medium-Style-3","accent5"]],["{2A488322-F2BA-4B5B-9748-0D474271808F}",["Medium-Style-3","accent6"]],["{D7AC3CCA-C797-4891-BE02-D94E43425B78}",["Medium-Style-4",""]],["{69CF1AB2-1976-4502-BF36-3FF5EA218861}",["Medium-Style-4","accent1"]],["{8A107856-5554-42FB-B03E-39F5DBC370BA}",["Medium-Style-4","accent2"]],["{0505E3EF-67EA-436B-97B2-0124C06EBD24}",["Medium-Style-4","accent3"]],["{C4B1156A-380E-4F78-BDF5-A606A8083BF9}",["Medium-Style-4","accent4"]],["{22838BEF-8BB2-4498-84A7-C5851F593DF1}",["Medium-Style-4","accent5"]],["{16D9F66E-5EB9-4882-86FB-DCBF35E3C3E4}",["Medium-Style-4","accent6"]],["{E8034E78-7F5D-4C2E-B375-FC64B27BC917}",["Dark-Style-1",""]],["{125E5076-3810-47DD-B79F-674D7AD40C01}",["Dark-Style-1","accent1"]],["{37CE84F3-28C3-443E-9E96-99CF82512B78}",["Dark-Style-1","accent2"]],["{D03447BB-5D67-496B-8E87-E561075AD55C}",["Dark-Style-1","accent3"]],["{E929F9F4-4A8F-4326-A1B4-22849713DDAB}",["Dark-Style-1","accent4"]],["{8FD4443E-F989-4FC4-A0C8-D5A2AF1F390B}",["Dark-Style-1","accent5"]],["{AF606853-7671-496A-8E4F-DF71F8EC918B}",["Dark-Style-1","accent6"]],["{5202B0CA-FC54-4496-8BCA-5EF66A818D29}",["Dark-Style-2",""]],["{0660B408-B3CF-4A94-85FC-2B1E0A45F4A2}",["Dark-Style-2","accent1"]],["{91EBBBCC-DAD2-459C-BE2E-F6DE35CF9A28}",["Dark-Style-2","accent3"]],["{46F890A9-2807-4EBB-B81D-B2AA78EC7F39}",["Dark-Style-2","accent5"]]]);function id(t,e){let l=e?`<a:${e}/>`:"";return`<a:fill><a:solidFill><a:schemeClr val="${t}">${l}</a:schemeClr></a:solidFill></a:fill>`}function iu(t,e){let l=e?`<a:${e}/>`:"";return`<a:ln w="12700"><a:solidFill><a:schemeClr val="${t}">${l}</a:schemeClr></a:solidFill></a:ln>`}function ih(t,e){var l,i;let r;if(!e.textColor&&!e.bold&&!e.fill&&!e.borders)return"";let n=[`<a:${t}>`];if((e.textColor||e.bold)&&n.push((l=e.textColor??"",i=e.bold,r=l?`<a:schemeClr val="${l}"/>`:"",`<a:tcTxStyle${i?' b="on"':""}>${r}</a:tcTxStyle>`)),n.push("<a:tcStyle>"),e.fill&&n.push(e.fill),e.borders){for(let[t,l]of(n.push("<a:tcBdr>"),Object.entries(e.borders)))n.push(`<a:${t}>${l}</a:${t}>`);n.push("</a:tcBdr>")}return n.push("</a:tcStyle>"),n.push(`</a:${t}>`),n.join("")}function ic(t,e,l){return`<a:tblStyle xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" styleId="${t}" styleName="${e}">${l}</a:tblStyle>`}let i$={"Themed-Style-1":function(t,e){let l=""!==t,i=l?t:"tx1",r=[];if(l){let t={left:iu(i),right:iu(i),top:iu(i),bottom:iu(i),insideH:iu(i),insideV:iu(i)};r.push(ih("wholeTbl",{textColor:"dk1",borders:t}));let e=id(i,'alpha val="40000"');r.push(ih("band1H",{fill:e})),r.push(ih("band1V",{fill:e})),r.push(ih("firstRow",{textColor:"lt1",bold:!0,fill:id(i),borders:{left:iu(i),right:iu(i),top:iu(i),bottom:iu("lt1")}})),r.push(ih("lastRow",{bold:!0,borders:{left:iu(i),right:iu(i),top:iu(i),bottom:iu(i)}}));let l={left:iu(i),right:iu(i),top:iu(i),bottom:iu(i),insideH:iu(i)};
53r.push(ih("firstCol",{bold:!0,borders:l})),r.push(ih("lastCol",{bold:!0,borders:l}))}else{r.push(ih("wholeTbl",{textColor:"tx1"}));let t=id("tx1",'alpha val="40000"');r.push(ih("band1H",{fill:t})),r.push(ih("band1V",{fill:t}))}return ic(e,"Themed-Style-1",r.join(""))},"Themed-Style-2":function(t,e){let l=[];if(""!==t){let i=`<a:tblBg><a:fillRef idx="1"><a:schemeClr val="${t}"/></a:fillRef></a:tblBg>`,r={left:iu(t,'tint val="50000"'),right:iu(t,'tint val="50000"'),top:iu(t,'tint val="50000"'),bottom:iu(t,'tint val="50000"')};l.push(ih("wholeTbl",{textColor:"lt1",borders:r}));let n=id("lt1",'alpha val="20000"');return l.push(ih("band1H",{fill:n})),l.push(ih("band1V",{fill:n})),l.push(ih("firstRow",{textColor:"lt1",bold:!0,borders:{bottom:iu("lt1")}})),l.push(ih("lastRow",{bold:!0,borders:{top:iu("lt1")}})),l.push(ih("firstCol",{bold:!0,borders:{right:iu("lt1")}})),l.push(ih("lastCol",{bold:!0,borders:{left:iu("lt1")}})),ic(e,"Themed-Style-2",i+l.join(""))}{let t={left:iu("tx1",'tint val="50000"'),right:iu("tx1",'tint val="50000"'),top:iu("tx1",'tint val="50000"'),bottom:iu("tx1",'tint val="50000"'),insideH:iu("tx1"),insideV:iu("tx1")};l.push(ih("wholeTbl",{borders:t}));let i=id("tx1",'alpha val="20000"');return l.push(ih("band1H",{fill:i})),l.push(ih("band1V",{fill:i})),ic(e,"Themed-Style-2",l.join(""))}},"Light-Style-1":function(t,e){let l=t||"tx1",i=[];i.push(ih("wholeTbl",{textColor:"tx1",borders:{top:iu(l),bottom:iu(l)}}));let r=id(l,'alpha val="20000"');return i.push(ih("band1H",{fill:r})),i.push(ih("band1V",{fill:r})),i.push(ih("firstRow",{textColor:"tx1",bold:!0,borders:{bottom:iu(l)}})),i.push(ih("lastRow",{bold:!0,borders:{top:iu(l)}})),i.push(ih("firstCol",{textColor:"tx1",bold:!0})),i.push(ih("lastCol",{textColor:"tx1",bold:!0})),ic(e,"Light-Style-1",i.join(""))},"Light-Style-2":function(t,e){let l=t||"tx1",i=[];return i.push(ih("wholeTbl",{textColor:"tx1",borders:{left:iu(l),right:iu(l),top:iu(l),bottom:iu(l)}})),i.push(ih("band1H",{borders:{top:iu(l),bottom:iu(l)}})),i.push(ih("band1V",{borders:{left:iu(l),right:iu(l)}})),i.push(ih("band2V",{borders:{left:iu(l),right:iu(l)}})),i.push(ih("firstRow",{textColor:"bg1",bold:!0,fill:id(l)})),i.push(ih("lastRow",{bold:!0,borders:{top:iu(l)}})),i.push(ih("firstCol",{bold:!0})),i.push(ih("lastCol",{bold:!0})),ic(e,"Light-Style-2",i.join(""))},"Light-Style-3":function(t,e){let l=t||"tx1",i=[];i.push(ih("wholeTbl",{textColor:"tx1",borders:{left:iu(l),right:iu(l),top:iu(l),bottom:iu(l),insideH:iu(l),insideV:iu(l)}}));let r=id(l,'alpha val="20000"');return i.push(ih("band1H",{fill:r})),i.push(ih("band1V",{fill:r})),i.push(ih("firstRow",{textColor:l,bold:!0,borders:{bottom:iu(l)}})),i.push(ih("lastRow",{bold:!0,borders:{top:iu(l)}})),i.push(ih("firstCol",{bold:!0})),i.push(ih("lastCol",{bold:!0})),ic(e,"Light-Style-3",i.join(""))},"Medium-Style-1":function(t,e){let l=t||"dk1",i=[];i.push(ih("wholeTbl",{textColor:"dk1",fill:id("lt1"),borders:{left:iu(l),right:iu(l),top:iu(l),bottom:iu(l),insideH:iu(l)}}));let r=id(l,'tint val="20000"');return i.push(ih("band1H",{fill:r})),i.push(ih("band1V",{fill:r})),i.push(ih("firstRow",{textColor:"lt1",bold:!0,fill:id(l)})),i.push(ih("lastRow",{bold:!0,fill:id("lt1"),borders:{top:iu(l)}})),i.push(ih("firstCol",{bold:!0})),i.push(ih("lastCol",{bold:!0})),ic(e,"Medium-Style-1",i.join(""))},"Medium-Style-2":function(t,e){let l=t||"dk1",i=[];i.push(ih("wholeTbl",{textColor:"dk1",fill:id(l,'tint val="20000"'),borders:{left:iu("lt1"),right:iu("lt1"),top:iu("lt1"),bottom:iu("lt1"),insideH:iu("lt1"),insideV:iu("lt1")}}));let r=id(l,'tint val="40000"');return i.push(ih("band1H",{fill:r})),i.push(ih("band1V",{fill:r})),i.push(ih("firstRow",{textColor:"lt1",bold:!0,fill:id(l),borders:{bottom:iu("lt1")}})),i.push(ih("lastRow",{textColor:"lt1",bold:!0,fill:id(l),borders:{top:iu("lt1")}})),i.push(ih("firstCol",{textColor:"lt1",bold:!0,fill:id(l)})),i.push(ih("lastCol",{textColor:"lt1",bold:!0,fill:id(l)})),ic(e,"Medium-Style-2",i.join(""))},"Medium-Style-3":function(t,e){let l=t||"dk1",i=[];i.push(ih("wholeTbl",{textColor:"dk1",fill:id("lt1"),borders:{top:iu("dk1"),bottom:iu("dk1")}}));let r=id("dk1",'tint val="20000"');return i.push(ih("band1H",{fill:r})),i.push(ih("band1V",{fill:r})),i.push(ih("firstRow",{textColor:"lt1",bold:!0,fill:id(l),borders:{bottom:iu("dk1")}})),i.push(ih("lastRow",{bold:!0,fill:id("lt1"),borders:{top:iu("dk1")}})),i.push(ih("firstCol",{textColor:"lt1",bold:!0,fill:id(l)})),i.push(ih("lastCol",{textColor:"lt1",bold:!0,fill:id(l)})),ic(e,"Medium-Style-3",i.join(""))},"Medium-Style-4":function(t,e){let l=t||"dk1",i=[];i.push(ih("wholeTbl",{textColor:"dk1",fill:id(l,'tint val="20000"'),borders:{left:iu(l),right:iu(l),top:iu(l),bottom:iu(l),insideH:iu(l),insideV:iu(l)}}));let r=id(l,'tint val="40000"');return i.push(ih("band1H",{fill:r})),i.push(ih("band1V",{fill:r})),i.push(ih("firstRow",{textColor:l,bold:!0,fill:id(l,'tint val="20000"')})),i.push(ih("lastRow",{bold:!0,fill:id("dk1",'tint val="20000"'),borders:{top:iu("dk1")}})),i.push(ih("firstCol",{bold:!0})),i.push(ih("lastCol",{bold:!0})),ic(e,"Medium-Style-4",i.join(""))},"Dark-Style-1":function(t,e){let l=""!==t,i=l?t:"dk1",r=l?"shade":"tint",n=[];n.push(ih("wholeTbl",{textColor:"dk1",fill:id(i,`${r} val="20000"`)}));let a=id(i,`${r} val="40000"`);return n.push(ih("band1H",{fill:a})),n.push(ih("band1V",{fill:a})),n.push(ih("firstRow",{textColor:"lt1",bold:!0,fill:id("dk1"),borders:{bottom:iu("lt1")}})),n.push(ih("lastRow",{bold:!0,fill:id(i),borders:{top:iu("lt1")}})),n.push(ih("firstCol",{bold:!0,fill:id(i,`${r} val="60000"`),borders:{right:iu("lt1")}})),n.push(ih("lastCol",{bold:!0,fill:id(i,`${r} val="60000"`),borders:{left:iu("lt1")}})),ic(e,"Dark-Style-1",n.join(""))},"Dark-Style-2":function(t,e){let l,i=t||"dk1",r=[];l=""===t?"dk1":"accent1"===t?"accent2":"accent3"===t?"accent4":"accent5"===t?"accent6":i,r.push(ih("wholeTbl",{textColor:"dk1",fill:id(i,'tint val="20000"')}));let n=id(i,'tint val="40000"');return r.push(ih("band1H",{fill:n})),r.push(ih("band1V",{fill:n})),r.push(ih("firstRow",{textColor:"lt1",bold:!0,fill:id(l)})),r.push(ih("lastRow",{bold:!0,fill:id(i,'tint val="20000"'),borders:{top:iu("dk1")}})),r.push(ih("firstCol",{bold:!0})),r.push(ih("lastCol",{bold:!0})),ic(e,"Dark-Style-2",r.join(""))}},ip=new Map;function im(t,e){if(ix(t),e.includes("gradient")&&e.includes(" 0 0 / ")){let l=en(e);if(l){t.style.backgroundImage=l.imageLayers,t.style.backgroundSize="8px 8px",t.style.backgroundRepeat="repeat",t.style.backgroundColor=l.color;return}}e.includes("gradient")||e.startsWith("url(")||e.includes("repeating-")?t.style.background=e:t.style.backgroundColor=e}function ix(t){t.style.background="",t.style.backgroundColor="",t.style.backgroundImage="",t.style.backgroundRepeat="",t.style.backgroundSize=""}function ig(t){let e=[];return t.flipH&&e.push("scaleX(-1)"),t.flipV&&e.push("scaleY(-1)"),e.join(" ")}function iy(t,e,l,i,r){let n=e.child(l);if(!n.exists())return;if(n.child("noFill").exists()){t.style[i]="none";return}let a=tJ(n,r);a.width>0&&"transparent"!==a.color&&(t.style[i]=`${Math.max(a.width,.5)}px ${a.dash} ${a.color}`)}function ib(t){return"table"!==t.nodeType&&"chart"!==t.nodeType}function iv(t){let e=t.child("ptCount").numAttr("val"),l=-1;for(let e of t.children("pt")){let t=e.numAttr("idx");void 0!==t&&Number.isInteger(t)&&t>=0&&t<1e4&&(l=Math.max(l,t))}let i=l+1;if(void 0===e||!Number.isFinite(e)||e<0)return i;let r=Math.floor(e);return r>
531e4?i:Math.min(Math.max(r,i),1e4)}function iM(t,e){return void 0!==t&&Number.isInteger(t)&&t>=0&&t<e&&t<1e4}function iL(t){let e=t.child("strRef").exists()?t.child("strRef").child("strCache"):t.child("strCache");if(!e.exists()){let e=t.child("numRef").exists()?t.child("numRef").child("numCache"):t.child("numCache");return e.exists()?function(t){let e=iv(t),l=Array(e).fill(""),i=t.child("formatCode").text(),r=i&&/[yYmMdD]/.test(i)&&!/[#0]/.test(i);for(let i of t.children("pt")){let t=i.numAttr("idx");if(iM(t,e)){let e=i.child("v").text();r&&e?l[t]=function(t){if(!Number.isFinite(t)||t<1)return String(t);let e=new Date(Date.UTC(1899,11,31)+864e5*(t>59?t-1:t));return`${e.getUTCFullYear()}/${e.getUTCMonth()+1}/${e.getUTCDate()}`}(parseFloat(e)):l[t]=e}}return l}(e):[]}let l=iv(e),i=Array(l).fill("");for(let t of e.children("pt")){let e=t.numAttr("idx");if(iM(e,l)){let l=t.child("v").text();i[e]=l}}return i}function iA(t,e){if(!e||"General"===e)return Number.isInteger(t)?String(t):parseFloat(t.toFixed(2)).toString();if(e.includes("%")){let l=e.match(/0\.(0+)%/),i=l?l[1].length:0;return`${(100*t).toFixed(i)}%`}let l=function(t,e){let l=function(t){let e=[],l="",i=!1;for(let r=0;r<t.length;r++){let n=t[r];if('"'===n){i=!i,l+=n;continue}if(";"===n&&!i){e.push(l),l="";continue}l+=n}return e.push(l),e}(e),i=t<0&&l.length>1,r=function(t){let e=t.replace(/\[[^\]]+\]/g,""),l="";for(let t=0;t<e.length;t++){let i=e[t];if('"'===i){for(t++;t<e.length&&'"'!==e[t];)t++;continue}if("\\"===i){t+1<e.length&&(l+=e[++t]);continue}if("_"===i||"*"===i){t++;continue}l+=i}return l.trim()}(i?l[1]:l[0]);if(!/[#0]/.test(r)||!r.includes(",")&&1===l.length)return;let n=r.match(/\.(0+|#+)/),a=n?n[1].length:0,o=r.includes(","),s=(i?Math.abs(t):t).toLocaleString("en-US",{useGrouping:o,minimumFractionDigits:null!=n&&n[1].includes("0")?a:0,maximumFractionDigits:a});return i?r.includes("(")&&r.includes(")")?`(${s})`:r.includes("-")?`-${s}`:s:s}(t,e);if(void 0!==l)return l;let i=e.match(/\.(0+|#+)/);if(i){let e=i[1].length;return parseFloat(t.toFixed(e)).toString()}return/^[#0,]+$/.test(e.replace(/[[\]"\\]/g,""))?Math.round(t).toString():Number.isInteger(t)?String(t):parseFloat(t.toFixed(2)).toString()}is.size;function iw(t){let e=t.child("numRef").exists()?t.child("numRef").child("numCache"):t.child("numCache");if(!e.exists())return{values:[],blankIndices:new Set};let l=iv(e),i=Array(l).fill(0),r=new Set;for(let t=0;t<l;t++)r.add(t);for(let t of e.children("pt")){let e=t.numAttr("idx");if(iM(e,l)){let l=t.child("v").text().trim(),n=parseFloat(l);""===l||isNaN(n)||(i[e]=n,r.delete(e))}}return{values:i,blankIndices:r}}function iS(t){var e;return!!t.exists()&&(e=t.attr("val"),ti(e,!0))}function iC(t,e){try{let{color:l}=tG(t,e);return l.startsWith("#")?l:`#${l}`}catch{return}}function ik(t){return Number((96*t/72).toFixed(3))}function iF(t,e){if(!t.exists()||t.child("noFill").exists())return;let l=tJ(t,e);if(!(l.width<=0||"transparent"===l.color)){var i;return{color:l.color,width:Math.max(l.width,.5),type:"dotted"===(i=l.dash)?"dotted":"dashed"===i?"dashed":"solid"}}}r.Y([o.a,s.a,d.a,u.a,h.a,c.a,$.a,f.a,p.a,m.a,x.a,g.a,y.a,b.a,v._,M.a]);let iE=Symbol("pptxExplicitFontSize"),ij="#000000",iB="#898989",iP={color:iB,width:1,type:"solid"},iz={color:"#868686",width:1,type:"solid"},iN=["accent1","accent2","accent3","accent4","accent5","accent6"];function iD(t){return t[iE]=!0,t}function iI(t){return!!(t&&"object"==typeof t&&t[iE])}let iR=["barChart","bar3DChart","lineChart","line3DChart","areaChart","area3DChart","pieChart","pie3DChart","doughnutChart","radarChart","scatterChart","bubbleChart","stockChart","surface3DChart"];function iZ(t){let e=t.child("tx");if(!e.exists())return;let l=e.child("rich");if(l.exists()){let t=[];for(let e of l.children("p")){let l=[];for(let t of e.allChildren()){if("br"===t.localName){l.push(` 54`);continue}if("r"!==t.localName&&"fld"!==t.localName)continue;let e=t.child("t").text();e&&l.push(e)}let i=l.join("");
54i&&t.push(i)}if(t.length>0)return t.join(` 55`)}let i=e.child("strRef");if(i.exists()){let t=i.child("strCache").children("pt");if(t.length>0)return t[0].child("v").text()}}function iT(t){return t.replace(/\\/g,"\\\\").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\|/g,"\\|")}function iO(t){if(!t)return;let e={...t.color?{color:t.color}:{},...void 0!==t.fontSize?{fontSize:t.fontSize}:{},...t.fontFamily?{fontFamily:t.fontFamily}:{},...t.textShadowColor?{textShadowColor:t.textShadowColor}:{},...void 0!==t.textShadowBlur?{textShadowBlur:t.textShadowBlur}:{},...void 0!==t.textShadowOffsetX?{textShadowOffsetX:t.textShadowOffsetX}:{},...void 0!==t.textShadowOffsetY?{textShadowOffsetY:t.textShadowOffsetY}:{}};return void 0!==t.bold&&(e.fontWeight=t.bold?"bold":"normal"),Object.keys(e).length>0?e:void 0}function iW(t,e){let l=t.child("txPr");if(l.exists())for(let t of l.children("p")){let l=t.child("pPr");if(!l.exists())continue;let i=l.child("defRPr");if(!i.exists())continue;let r=i.child("solidFill");if(r.exists())return iC(r,e)}}function iH(t,e){if(!t.exists())return;let l={},i=t.child("solidFill");if(i.exists()){let t=iC(i,e);t&&(l.color=t)}let r=t.numAttr("sz");void 0!==r&&r>0&&(l.fontSize=Math.round(r/100),l[iE]=!0);let n=t.attr("b");void 0!==n&&(l.bold=ti(n));let a=ev([t.child("latin").attr("typeface"),t.child("ea").attr("typeface"),t.child("cs").attr("typeface")],e,[t.attr("lang"),t.attr("altLang")]);a.length>0&&(l.fontFamily=eF(a));let o=function(t,e){let l=t.child("effectLst").child("outerShdw");if(l.exists())try{let{color:t,alpha:i}=tG(l,e);if(!t||i<=0)return;let r=q(l.numAttr("dist")??0),n=q(l.numAttr("blurRad")??0),a=(l.numAttr("dir")??0)/6e4,o=r*Math.cos(a*Math.PI/180),s=r*Math.sin(a*Math.PI/180);return{textShadowColor:function(t,e){let l,i,r=t.startsWith("#")?t:`#${t}`;if(e>=1)return r;let{r:n,g:a,b:o}=(l=r.replace(/^#/,""),{r:(i=parseInt(3===l.length?l[0]+l[0]+l[1]+l[1]+l[2]+l[2]:l,16))>>16&255,g:i>>8&255,b:255&i});return`rgba(${n},${a},${o},${e.toFixed(3)})`}(t,i),textShadowBlur:n,textShadowOffsetX:o,textShadowOffsetY:s}}catch{return}}(t,e);return o&&Object.assign(l,o),l.color||void 0!==l.fontSize||void 0!==l.bold||void 0!==l.fontFamily||void 0!==l.textShadowColor?l:void 0}function iU(t,e){for(let l of t.children("p")){let t=l.child("pPr");if(!t.exists())continue;let i=iH(t.child("defRPr"),e);if(i)return i}}function iG(t,e){let l=t.child("txPr");if(l.exists())return iU(l,e)}function iX(t,e){return iG(t,e)??iU(t.child("tx").child("rich"),e)}let iY={deleted:!1,tickLblPos:"nextTo",hasMajorGridlines:!1,orientation:"minMax"};function iV(t,e){let l=t.theme.colorScheme.get(e);return null==l?void 0:l.replace("#","").toUpperCase()}function iq(t,e){if(!t.exists())return{...iY};let l=iS(t.child("delete")),i=t.child("tickLblPos").attr("val")||"nextTo",r=t.child("crosses").attr("val"),n=t.child("numFmt"),a=n.exists()&&n.attr("formatCode")||void 0,o=t.child("scaling"),s=o.child("min"),d=o.child("max"),u=s.exists()?parseFloat(s.attr("val")||""):void 0,h=d.exists()?parseFloat(d.attr("val")||""):void 0,c=t.child("majorGridlines").exists(),$=t.child("majorTickMark").attr("val"),f=o.child("orientation").attr("val")||"minMax",p=iG(t,e),m=(null==p?void 0:p.color)??function(t,e){let l=t.child("txPr");if(l.exists())for(let t of l.children("p")){let l=t.child("pPr");if(!l.exists())continue;let i=l.child("defRPr");if(!i.exists())continue;let r=i.child("solidFill");if(r.exists())return iC(r,e)}}(t,e),x=null==p?void 0:p.fontSize,g=function(t){if("4F81BD"===iV(t,"accent1")&&"C0504D"===iV(t,"accent2"))return"#000000"}(e),y=function(t,e){let l=t.child("spPr").child("ln");if(!l.exists())return;let i=l.child("solidFill");if(i.exists())return iC(i,e)}(t,e)??g,b=c?iF(t.child("majorGridlines").child("spPr").child("ln"),e)??(g?{...iP,color:g}:void 0):void 0,v=function(t,e){let l=t.child("title");if(!l.exists())return{};let i=iZ(l);return i?{title:i,titleStyle:iX(l,e),titleRotation:function(t){let e=(t.child("tx").child("rich").child("bodyPr").exists()?t.child("tx").child("rich").child("bodyPr"):t.child("txPr").child("bodyPr")).numAttr("rot");if(void 0!==e)return Number((e/6e4).toFixed(3))}(l)}:{}}(t,e);return{deleted:l,tickLblPos:i,crosses:r,numFmt:a&&"General"!==a?a:void 0,min:void 0===u||isNaN(u)?void 0:u,max:void 0===h||isNaN(h)?void 0:h,hasMajorGridlines:c,majorTickMark:$,orientation:f,...v,labelColor:m,labelFontSize:x,lineColor:y,majorGridlineStyle:b}}function i_(t){return null!=t&&t.exists()?t.children("axId").map(t=>t.attr("val")).filter(t=>void 0!==t&&""!==t):[]}function iQ(t,e,l){var i;if(l){for(let i of e){let e=t.children(i).find(t=>t.child("axId").attr("val")===l);if(e)return e}return new H(null)}for(let l of e){let e=t.children(l);if(null!=(i=e[0])&&i.exists())return e[0]}return new H(null)}function iK(t,e,l){let i=i_(l),r=i[0],n=iQ(t,["valAx"],i[1]),a=iQ(t,["catAx","dateAx"],r);return{valueAxis:iq(n,e),categoryAxis:iq(a,e)}}function iJ(t,e){let l=t.children("valAx"),i={...iY},r={...iY};for(let t of l){let l=t.child("axPos").attr("val")??"",n=iq(t,e);
55"b"===l||"t"===l?i=n:("l"===l||"r"===l)&&(r=n)}return 1===l.length&&(r=iq(l[0],e)),{xAxis:i,yAxis:r}}function i0(t,e,l){var i,r,n,a;if(e.deleted){t.axisLabel={...t.axisLabel||{},show:!1},t.axisLine={show:!1},t.axisTick={show:!1},"value"===l&&(t.splitLine={show:!1});return}if("maxMin"===e.orientation&&(t.inverse=!0),"autoZero"===e.crosses){let e=t.axisLine||{};t.axisLine={...e,onZero:!0}}if(e.title){t.name=e.title,t.nameLocation="middle",t.nameGap="value"===l?42:28,void 0!==e.titleRotation&&(t.nameRotate=e.titleRotation);let o={};null!=(i=e.titleStyle)&&i.color&&(o.color=e.titleStyle.color),(null==(r=e.titleStyle)?void 0:r.fontSize)!==void 0&&(o.fontSize=e.titleStyle.fontSize),null!=(n=e.titleStyle)&&n.fontFamily&&(o.fontFamily=e.titleStyle.fontFamily),(null==(a=e.titleStyle)?void 0:a.bold)!==void 0&&(o.fontWeight=e.titleStyle.bold?"bold":"normal"),Object.keys(o).length>0&&(t.nameTextStyle=o)}if("none"===e.tickLblPos&&(t.axisLabel={...t.axisLabel||{},show:!1}),"none"===e.majorTickMark){let e=t.axisTick||{};t.axisTick={...e,show:!1}}else if(!e.deleted){let l=t.axisTick||{},i=l.lineStyle||{};void 0===i.color&&(t.axisTick={...l,lineStyle:{...i,color:e.lineColor??iB}})}if("value"===l&&(void 0!==e.min&&(t.min=e.min),void 0!==e.max&&(t.max=e.max)),"value"===l&&!e.deleted&&"none"!==e.tickLblPos){let l=t.axisLabel||{};if(!l.formatter){let i=e.numFmt;t.axisLabel={...l,formatter:t=>iA(t,i)}}}if(!e.deleted&&"none"!==e.tickLblPos){let e=t.axisLabel||{};void 0===e.fontSize&&(t.axisLabel={...e,fontSize:10})}if("value"===l)if(e.hasMajorGridlines)if(e.majorGridlineStyle){let l=t.splitLine||{},i=l.lineStyle||{};t.splitLine={...l,show:!0,lineStyle:{...i,...e.majorGridlineStyle}}}else{let e=t.splitLine||{},l=e.lineStyle||{};t.splitLine={...e,show:!0,lineStyle:{...iP,...l}}}else t.splitLine={show:!1};if(e.labelColor||!e.deleted){let l=t.axisLabel||{},i=e.labelColor??(void 0===l.color?ij:void 0);i&&(t.axisLabel={...l,color:i})}if(void 0!==e.labelFontSize){let l=t.axisLabel||{};t.axisLabel={...l,fontSize:e.labelFontSize}}if(e.lineColor||!e.deleted){let l=t.axisLine||{},i=l.lineStyle||{},r=e.lineColor??(void 0===i.color?iB:void 0);r&&(t.axisLine={...l,show:l.show??!0,lineStyle:{...i,color:r}})}}function i1(t,e){return iS(t.child(e))}function i2(t){let e=t.child("layout").child("manualLayout");if(!e.exists())return;let l={},i=e.child("x").numAttr("val"),r=e.child("y").numAttr("val"),n=e.child("w").numAttr("val"),a=e.child("h").numAttr("val");return void 0!==i&&(l.x=i),void 0!==r&&(l.y=r),void 0!==n&&(l.width=n),void 0!==a&&(l.height=a),Object.keys(l).length>0?l:void 0}function i5(t,e){let l=t.child("dLbls");if(!l.exists())return;let i=i1(l,"showVal"),r=i1(l,"showCatName"),n=i1(l,"showSerName"),a=i1(l,"showPercent"),o=i1(l,"showLeaderLines"),s=l.child("dLblPos"),d=s.exists()&&s.attr("val")||void 0,u=i2(l),h=iG(l,e),c=(null==h?void 0:h.color)??iW(l,e),$=null==h?void 0:h.fontSize,f=null==h?void 0:h.bold,p=i6(l,e);if(!(!i&&!r&&!n&&!a))return{showVal:i,showCatName:r,showSerName:n,showPercent:a,position:d,showLeaderLines:o,manualLayout:u,color:c,fontSize:$,bold:f,...p}}function i3(t,e){let l=t.child(e);if(l.exists())return iS(l)}function i6(t,e){let l={},i=t.child("spPr");if(i.exists()){let t=i.child("solidFill");if(t.exists()){let i=iC(t,e);i&&(l.backgroundColor=i)}let r=i.child("ln");if(r.exists()&&!r.child("noFill").exists()){let t=r.child("solidFill");if(t.exists()){let i=iC(t,e);i&&(l.borderColor=i)}let i=r.numAttr("w");void 0!==i&&i>0?l.borderWidth=Math.max(1,q(i)):l.borderColor&&(l.borderWidth=1)}}let r=t.child("txPr").child("bodyPr");if(r.exists()){let t=q(r.numAttr("tIns")??0),e=q(r.numAttr("rIns")??0),i=q(r.numAttr("bIns")??0),n=q(r.numAttr("lIns")??0);(t||e||i||n)&&(l.padding=[t,e,i,n])}return l}function i4(t,e){let l=new Map;if(!t.exists())return l;for(let i of t.children("dLbl")){let t=i.child("idx").numAttr("val");if(void 0===t)continue;let r=iG(i,e),n=i.child("dLblPos"),a={},o=i3(i,"delete"),s=i3(i,"showVal"),d=i3(i,"showCatName"),u=i3(i,"showSerName"),h=i3(i,"showPercent"),c=i3(i,"showLeaderLines"),$=i2(i);if(void 0!==s&&(a.showVal=s),void 0!==d&&(a.showCatName=d),void 0!==u&&(a.showSerName=u),void 0!==h&&(a.showPercent=h),!0===o&&(a.deleted=!0,a.showVal=!1,a.showCatName=!1,a.showSerName=!1,a.showPercent=!1),void 0!==c&&(a.showLeaderLines=c),$&&(a.manualLayout=$),n.exists()&&(a.position=n.attr("val")||void 0),null!=r&&r.color)a.color=r.color;else{let t=iW(i,e);t&&(a.color=t)}(null==r?void 0:r.fontSize)!==void 0&&(a.fontSize=r.fontSize),(null==r?void 0:r.bold)!==void 0&&(a.bold=r.bold),Ob
55ject.assign(a,i6(i,e)),Object.keys(a).length>0&&l.set(t,a)}return l}let i8=new Set(["srgbClr","schemeClr","sysClr","prstClr","hslClr","scrgbClr"]);function i7(t){return iN.map(e=>t.theme.colorScheme.get(e)).filter(t=>!!t).map(t=>t.startsWith("#")?t:`#${t}`)}function i9(t){let e=Math.round(1e4*t)/100;return`${Number.isInteger(e)?e.toFixed(0):e}%`.replace(/\.0%$/,"%")}function rt(t,e){let l,i=t.child("legend");if(!i.exists())return;let r=i.child("legendPos"),n=r.exists()&&r.attr("val")||"r",a=["b","t","l","r","tr"].includes(n)?n:"r",o=iS(i.child("overlay")),s={confine:!0};switch(a){case"b":l={...s,bottom:"5%",orient:"horizontal"};break;case"t":l={...s,top:"14%",orient:"horizontal"};break;case"l":l={...s,left:"2%",top:"middle",orient:"vertical"};break;case"r":default:l={...s,right:"2%",top:"middle",orient:"vertical"};break;case"tr":l={...s,top:"14%",right:"2%",orient:"vertical"}}return{option:l,position:a,overlay:o,textStyle:(()=>{let t=iG(i,e);if(!t)return;let l={...t.color?{color:t.color}:{},...void 0!==t.fontSize?{fontSize:t.fontSize}:{},...!0===t.bold?{fontWeight:"bold"}:{},...t.fontFamily?{fontFamily:t.fontFamily}:{},...t.textShadowColor?{textShadowColor:t.textShadowColor}:{},...void 0!==t.textShadowBlur?{textShadowBlur:t.textShadowBlur}:{},...void 0!==t.textShadowOffsetX?{textShadowOffsetX:t.textShadowOffsetX}:{},...void 0!==t.textShadowOffsetY?{textShadowOffsetY:t.textShadowOffsetY}:{}};return iI(t)&&(l[iE]=!0),l})(),manualLayout:function(t){let e=t.child("layout").child("manualLayout");if(!e.exists())return{};let l={},i=e.child("x").numAttr("val"),r=e.child("y").numAttr("val"),n=e.child("w").numAttr("val"),a=e.child("h").numAttr("val");return void 0!==i&&(l.left=i9(i)),void 0!==r&&(l.top=i9(r)),void 0!==n&&(l.width=i9(n)),void 0!==a&&(l.height=i9(a)),l}(i)}}function re(t){return(null==t?void 0:t.position)==="t"||(null==t?void 0:t.position)==="tr"}function rl(t,e){let l=re(e),i=(null==e?void 0:e.overlay)??!1;return t?l&&!i?52:68:l&&!i?32:20}function ri(t,e){if(re(e))return t?26:6}function rr(t){if(t){let e=t.option;if(e&&void 0!==e.bottom)return 35}return 20}function rn(t,e,l,i,r){if(!t)return{show:!1};let n=(null==e?void 0:e.manualLayout)??{},a=void 0!==n.top?n.top:void 0!==l?l:void 0,o=r.fontSize??10,s=i.some(t=>"object"==typeof t&&t.icon),d=s&&i.every(t=>"object"==typeof t&&"string"==typeof t.icon&&t.icon===i[0].icon)?i[0].icon:void 0,u=void 0!==d&&!d.startsWith("path://"),h=u?i.map(t=>"string"==typeof t?t:t.name):i,c=i.some(t=>"object"==typeof t&&"string"==typeof t.icon&&t.icon.startsWith("path://"));return{...t,...n,...void 0!==a?{top:a}:{},...u?{icon:d}:s?{}:{icon:"rect"},itemWidth:c?Math.max(24,Math.round(2.2*o)):o,itemHeight:c?Math.max(8,Math.round(.9*o)):o,data:h,textStyle:r}}function ra(t){return t?Array.isArray(t)?t[0]??null:t:null}function ro(t,e){return"string"==typeof t?t:e}function rs(){return"path://M2 4.5 L22 4.5"}function rd(t){return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(t=>"object"==typeof t&&null!==t).map(t=>{let e=t.name??(t.name={});return e.textStyle??(e.textStyle={})})}function ru(t){return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(t=>"object"==typeof t&&null!==t).flatMap(t=>t.indicator??[]).map(t=>t.axisLabel).filter(t=>!!t)}function rh(t,e,l){if("number"==typeof t&&Number.isFinite(t))return t;if("string"==typeof t){let l=t.trim();if(l.endsWith("%"))return e*parseFloat(l)/100;let i=parseFloat(l);if(Number.isFinite(i))return i}return l}function rc(t,e,l=5){let i=r$(t,e,l),r=Math.ceil(t/i)*i;return r<=t?r+i:r}function r$(t,e,l=5){if(0===t&&0===e)return 1;let i=t-Math.min(0,e);if(0===i)return t>0?1.2*t:1;let r=i/l,n=Math.pow(10,Math.floor(Math.log10(r))),a=r/n;return a<=1?n:a<=2?2*n:a<=5?5*n:10*n}function rf(t,e){let l=iF(t.child("spPr").child("ln"),e);if(l)return{borderColor:l.color,borderWidth:l.width,borderStyle:l.type}}function rp(t,e){if("number"==typeof t)return`${t}px`;let l=t.trim();if(l.endsWith("%")){let t=Number.parseFloat(l.slice(0,-1));if(!Number.isNaN(t))return`${t/100*e}px`}return l}function rm(t,e,l,i){let r=function(t,e){let l=t.child("autoTitleDeleted");if(iS(l))return;let i=t.child("title");return i.exists()?iZ(i):l.exists()&&!iS(l)&&e&&1===e.length&&e[0].name?e[0].name:void 0}(t,e);if(!r)return;let n=t.child("title"),a=function(t,e){let l=t.child("tx").child("rich");if(!l.exists())return;let i=[],r={},n=0;for(let t of l.children("p")){let l=[];for(let i of t.allChildren()){if("br"===i.localName){l.push(` 56`);continue}if("r"!==i.localName&&"fld"!==i.localName)continue;let t=i.child("t").text();if(!t)continue;let a=iO(iH(i.child("rPr"),e));if(!a){l.push(iT(t));continue}let o=`r${n++}`;r[o]=a,l.push(`{${o}|${iT(t)}}`)}let a=l.join("");a&&i.push(a)}if(0!==Object.keys(r).length)return{text:i.join(`
57`),rich:r}}(n,l),o=iO(iX(n,l)),s=function(t){let e=t.child("title").child("layout").child("manualLayout");if(!e.exists())return{};let l={},i=e.child("x").numAttr("val"),r=e.child("y").numAttr("val");return void 0!==i&&(l.left=i9(i)),void 0!==r&&(l.top=i9(r)),l}(t);return{text:(null==a?void 0:a.text)??r,left:"center",...s,textStyle:{fontSize:i,...o??{},...a?{rich:a.rich}:{}}}}function rx(t,e=!1){return e?t:Math.round(.5*t)}let rg={circle:"circle",square:"rect",diamond:"diamond",triangle:"triangle",none:"none",star:"circle",dash:"circle",dot:"circle",plus:"circle",x:"circle"};function ry(t){if(t)return rg[t]??"circle"}let rb=["diamond","rect","triangle","circle"],rv=["diamond","square","triangle","circle"],rM=ik(9);function rL(t,e){return"lineMarker"===t||"smoothMarker"===t?rb[e%rb.length]:"circle"}function rA(t){return rv[t%rv.length]}function rw(t){return void 0!==t.left||void 0!==t.top||void 0!==t.width||void 0!==t.height}function rS(t){return{...t.backgroundColor?{backgroundColor:t.backgroundColor}:{},...t.borderColor?{borderColor:t.borderColor}:{},...void 0!==t.borderWidth?{borderWidth:t.borderWidth}:{},...t.padding?{padding:t.padding}:{}}}function rC(t){let e=null==t?void 0:t.fontSize;if(void 0===e)return;let l=Math.max(e+5,Math.round(1.45*e));return`font-size: ${e}px; line-height: ${l}px;`}function rk(t,e="clustered"){let l=t.child("grouping");return l.exists()&&l.attr("val")||e}function rF(t){return"stacked"===t||"percentStacked"===t}function rE(t){return"percentStacked"===t}function rj(t){let e=Math.max(0,...t.map(t=>t.values.length)),l=Array(e).fill(0);for(let i of t)for(let t=0;t<e;t++)l[t]+=Math.max(i.values[t]??0,0);return t.map(t=>t.values.map((t,e)=>{let i=l[e]??0;return 0===i?0:Number((Math.max(t,0)/i).toFixed(6))}))}function rB(t){t.min=0,t.max=1,t.interval=.1,t.axisLabel={...t.axisLabel||{},formatter:t=>iA(t,"0%")}}function rP(t,e){let{r:l,g:i,b:r}=tk(t),{h:n,s:a,l:o}=tE(l,i,r),s=tj(n+(e.hueOffset??0),Math.min(1,a*e.saturationScale),Math.max(0,Math.min(1,o+e.lightnessOffset)));return tF(s.r,s.g,s.b)}function rz(t,e){if(!(!t&&!e))return{showVal:(null==t?void 0:t.showVal)??!1,showCatName:(null==t?void 0:t.showCatName)??
57!1,showSerName:(null==t?void 0:t.showSerName)??!1,showPercent:(null==t?void 0:t.showPercent)??!1,position:null==t?void 0:t.position,showLeaderLines:null==t?void 0:t.showLeaderLines,manualLayout:null==t?void 0:t.manualLayout,color:null==t?void 0:t.color,fontSize:null==t?void 0:t.fontSize,bold:null==t?void 0:t.bold,backgroundColor:null==t?void 0:t.backgroundColor,borderColor:null==t?void 0:t.borderColor,borderWidth:null==t?void 0:t.borderWidth,padding:null==t?void 0:t.padding,...e}}function rN(t,e){let l=null==t?void 0:t.child("dLbls");return null!=l&&l.exists()?l:e.child("dLbls")}function rD(t){return!!(t&&!t.deleted&&(t.showVal||t.showCatName||t.showSerName||t.showPercent))}function rI(t){let e=t.child("dispBlanksAs").attr("val");return"zero"===e||"span"===e?e:"gap"}function rR(t,e,l,i){var r;return null!=(r=t.blankIndices)&&r.has(e)?"zero"===i?0:null:l}function rZ(t){var e;let l=null==(e=t[0])?void 0:e.formatCode;if(l)return t.every(t=>t.formatCode===l)?l:void 0}function rT(t,e,l){if(!t||!rD(t))return;let i={show:!0,formatter:i=>{let r=[];return t.showSerName&&l&&r.push(l),t.showCatName&&r.push(i.name),t.showVal&&r.push(iA(i.value,e)),t.showPercent&&r.push(`${i.percent}%`),r.join(" ")},fontSize:t.fontSize??10,...!0===t.bold?{fontWeight:"bold"}:{},...t.color?{color:t.color}:{},position:function(t){switch(t){case"ctr":case"inEnd":case"inBase":return"inside";default:return"outside"}}(t.position),...rS(t)};return void 0!==t.fontSize?iD(i):i}function rO(t){return 0===t.size?void 0:e=>{if(void 0===e.dataIndex)return;let l=t.get(e.dataIndex);if(!l)return;let i=e.rect,r={};return void 0!==l.x&&(r.x=i?i.x+i.width*l.x:i9(l.x)),void 0!==l.y&&(r.y=i?i.y+i.height*l.y:i9(l.y)),void 0!==l.width&&(r.width=i?i.width*l.width:i9(l.width)),void 0!==l.height&&(r.height=i?i.height*l.height:i9(l.height)),r}}function rW(t,e,l,i,r,n){var a;let o=(null==(a=l.find(t=>t.categories.length>0))?void 0:a.categories)||[],s=rm(e,l,i,14),d=rt(e,i),u=null==d?void 0:d.option,h={fontSize:10,...(null==d?void 0:d.textStyle)??{}},c=rk(t,"standard"),$=rF(c),f=rE(c),p=f?rj(l):void 0,m=rI(e),x=i5(t,i);if(!x){let e=t.children("ser")[0];null!=e&&e.exists()&&(x=i5(e,i))}let g=t.children("ser").map((t,e)=>({ser:t,order:t.child("order").numAttr("val")??e})).sort((t,e)=>t.order-e.order).map(t=>t.ser),y=t.child("marker"),b=y.exists()?iS(y):void 0,v=(t,e)=>t.colorHex??(null==n?void 0:n[e%n.length]),M=(t,e)=>{let l=v(t,e);return"string"==typeof l?l:void 0},L=l.map((e,l)=>{let n=v(e,l),a=ry(e.markerSymbol??(!0===b?rA(l):!1===b?"none":void 0)),o=e.lineWidth??3,s={...n?{color:n}:{},width:o,cap:"round",join:"round",...e.lineNoFill?{opacity:0}:{}},d=e.formatCode,u=i5(g[l]??t,i)??x,h=t=>{if(!t||!rD(t))return;let e={show:!0,position:function(t){switch(t){case"l":return"left";case"r":return"right";case"b":return"bottom";default:return"top"}}(t.position),fontSize:t.fontSize??9,...t.color?{color:t.color}:{},...!0===t.bold?{fontWeight:"bold"}:{},...rS(t),formatter:e=>{let l=null==e?void 0:e.value,i=l&&"object"==typeof l&&"value"in l?l.value:l,r=[];return t.showSerName&&null!=e&&e.seriesName&&r.push(e.seriesName),t.showCatName&&null!=e&&e.name&&r.push(e.name),t.showVal&&"number"==typeof i&&r.push(iA(i,f?"0%":d)),t.showPercent&&"number"==typeof(null==e?void 0:e.percent)&&r.push(`${e.percent}%`),r.join(" ")}};return void 0!==t.fontSize?iD(e):e},c=h(u),y=i4(rN(g[l],t),i),M=new Map,L=((null==p?void 0:p[l])??e.values).map((t,l)=>{let i=rR(e,l,t,m),r=y.get(l);if(!r)return i;r.manualLayout&&M.set(l,r.manualLayout);let n=r.deleted?{show:!1}:h(rz(u,r));return n?{value:i,label:n}:i}
57),A=!!(null!=c&&c.show&&"none"===a),w=A?"circle":a&&"none"!==a?a:void 0,S=A?0:e.markerSize??(void 0===e.markerSymbol&&!0===b?rM:void 0),C=!!A||(!r||void 0!==a)&&(void 0!==a?"none"!==a:void 0);return{type:"line",name:e.name,data:L,stack:$?"total":void 0,areaStyle:r?{...n?{color:n}:{},opacity:1}:void 0,itemStyle:n?{color:n}:void 0,lineStyle:s,label:c,labelLayout:rO(M),connectNulls:"span"===m,...e.smooth?{smooth:!0}:{},...e.formatCode?{tooltip:{valueFormatter:t=>iA(t,f?"0%":e.formatCode)}}:{},endLabel:{show:!1},...w?{symbol:w}:{},...void 0!==S?{symbolSize:S}:{},...void 0!==C?{showSymbol:C}:{},...!0===C&&void 0!==w&&"none"!==w&&0!==S?{showAllSymbol:!0}:{},z:3}}),{valueAxis:A,categoryAxis:w}=iK(e.child("plotArea"),i,t),S=rZ(l),C=(f?"0%":void 0)||A.numFmt||(null!=S&&S.includes("%")?S:void 0),k={type:"value",...C?{axisLabel:{formatter:t=>iA(t,C)}}:{}};f&&rB(k),i0(k,A,"value"),!f&&r&&function(t,e,l){let i=(function(t,e){var l;if(!e)return t.flatMap(t=>t.values.filter((e,l)=>{var i;return!(null!=(i=t.blankIndices)&&i.has(l))}));let i=Math.max(0,...t.map(t=>t.values.length)),r=[];for(let e=0;e<i;e++){let i=0,n=!1;for(let r of t)null!=(l=r.blankIndices)&&l.has(e)||(i+=r.values[e]??0,n=!0);n&&r.push(i)}return r})(e,l).filter(t=>Number.isFinite(t));if(0===i.length)return;let r=Math.min(...i),n=Math.max(...i),a=r$(n,r,8);if(void 0===t.min&&r>=0&&(t.min=0),void 0===t.interval&&(t.interval=a),void 0===t.max)if(l)t.max=Math.ceil(n/a)*a+a;else{let e=rc(n,r,8);e>n&&e-n<.25*a&&(e+=a),t.max=e}}(k,l,$);let F={type:"category",data:o,...r?{boundaryGap:!1}:{},axisLabel:{interval:0,rotate:0}};i0(F,w,"category");let E=rl(!!s,d),j=ri(!!s,d),B=A.deleted?4:18,P=C||S,z=rr(d),N=rX(e),D=!rw(N),I=l.map((t,e)=>({series:t,idx:e})),R=$||f?[...I].reverse():I;return{title:s,tooltip:{trigger:"axis",textStyle:h,extraCssText:rC(h),...P?{valueFormatter:t=>iA(Array.isArray(t)?t[0]:t,P)}:{}},legend:rn(u,d,j,r?R.map(({series:t,idx:e})=>{let l=M(t,e);return l?{name:t.name,itemStyle:{color:l}}:t.name}):R.map(({series:t,idx:e})=>{let l=ry(t.markerSymbol??(!0===b?rA(e):!1===b?"none":void 0)),i=M(t,e),r=i?{lineStyle:{color:i},itemStyle:{color:i}}:{};return l&&"none"!==l?{name:t.name,icon:rs(),marker:l,...r}:{name:t.name,icon:rs(),...r}}
57),h),grid:{containLabel:D,left:B,right:10,top:E,bottom:z,...N},xAxis:F,yAxis:k,series:L}}function rH(t,e,l,i,r){let n=rm(e,l,r,12),a=rt(e,r),o=null==a?void 0:a.option,s={fontSize:10,...(null==a?void 0:a.textStyle)??{}},d=i?l:l.slice(0,1);if(0===d.length)return{title:n};let u=t.children("ser").map((t,e)=>({ser:t,order:t.child("order").numAttr("val")??e})).sort((t,e)=>t.order-e.order).map(t=>t.ser),h=d.map((e,l)=>{let i=u[l],n=(null!=i&&i.exists()?i5(i,r):void 0)??i5(t,r),a=rN(i,t),o=(null==i?void 0:i.exists())&&i.child("dLbls").exists()||t.child("dLbls").exists(),s=i4(a,r),d=[...s.values()].some(t=>rD(rz(n,t)));return{series:e,serNode:i,sharedLabels:n,pointOverrides:s,labelsExplicitlyOff:o&&!n&&!d,explosions:i?function(t,e){let l=Array(e).fill(0),i=!1,r=t.child("explosion").numAttr("val")??0;for(let e of(r>0&&(l.fill(r),i=!0),t.children("dPt"))){let t=e.child("idx").numAttr("val");if(void 0===t)continue;let r=e.child("explosion").numAttr("val");void 0!==r&&r>0&&(l[t]=r,i=!0)}return i?l:void 0}(i,e.categories.length):void 0}}),c=h.some(t=>!t.labelsExplicitlyOff&&(rD(t.sharedLabels)||[...t.pointOverrides.values()].some(e=>rD(rz(t.sharedLabels,e))))),$=i?t.child("holeSize").numAttr("val")??50:50,f=function(t,e,l,i=50,r=!1){let n=function(t){if(!t||t.overlay||!t.option||"object"!=typeof t.option)return"none";let e=t.option;return void 0!==e.bottom?"bottom":void 0!==e.top&&void 0===e.left&&void 0===e.right?"top":void 0!==e.left?"left"
57:void 0!==e.right?"right":"none"}(t),a=["50%","55%"],o=l?78:82;if("right"===n?e&&r?(a=["45%","55%"],o=76):e?(a=["39%","54%"],o=87):(a=["38%","55%"],o=82):"left"===n?(a=["62%","55%"],o=82):"top"===n?a=["50%","60%"]:"bottom"===n&&(a=["50%","45%"]),("top"===n||"bottom"===n)&&(o-=4),!e)return{center:a,radius:`${o}%`};let s=Math.round(Math.min(Math.max(i,10),90)/100*o);return{center:a,radius:[`${s}%`,`${o}%`]}}(a,i,c,$,h.some(t=>{var e;return null==(e=t.explosions)?void 0:e.some(t=>t>0)})),p=function(t){if(!(void 0===t||!Number.isFinite(t)))return((90-t)%360+360)%360}(t.child("firstSliceAng").numAttr("val")),m=h.map((t,e)=>{var l;let r=new Map,n=t.series.categories.map((e,l)=>{var n,a,o;let s=t.pointOverrides.get(l),d=rz(t.sharedLabels,s);null!=d&&d.manualLayout&&r.set(l,d.manualLayout);let u={name:e||`Item ${l+1}`,value:t.series.values[l]??0},h=null==(n=t.series.dataPointStyles)?void 0:n[l];return h?u.itemStyle={...h.color?{color:h.color}:{},...h.borderColor?{borderColor:h.borderColor}:{},...void 0!==h.borderWidth?{borderWidth:h.borderWidth}:{},...h.borderType?{borderType:h.borderType}:{}}:null!=(a=t.series.dataPointColors)&&a[l]&&(u.itemStyle={color:t.series.dataPointColors[l]}),null!=(o=t.explosions)&&o[l]&&t.explosions[l]>0&&(u.selected=!0,u.selectedOffset=rx(t.explosions[l],i)),null!=s&&s.deleted?u.label={show:!1}:s&&rD(d)&&(u.label=rT(d,t.series.formatCode,t.series.name)),u}),a=rT(t.sharedLabels,t.series.formatCode,t.series.name),o=!!(null!=(l=t.sharedLabels)&&l.showLeaderLines)||[...t.pointOverrides.values()].some(t=>!0===t.showLeaderLines),s=t.explosions&&Math.max(...t.explosions.map(t=>rx(t,i)));return{type:"pie",name:t.series.name,radius:i?function(t,e,l){if(!Array.isArray(t)||l<=1)return t;let i=Number.parseFloat(t[0]),r=Number.parseFloat(t[1]);if(!Number.isFinite(i)||!Number.isFinite(r)||r<=i)return t;let n=(r-i-(l-1))/l,a=Math.round(i+e*(n+1)),o=Math.round(a+n);return[`${a}%`,`${o}%`]}(f.radius,e,h.length):f.radius,center:f.center,data:n,selectedMode:!!t.explosions&&"multiple",...s?{selectedOffset:s}:{},...void 0!==p?{startAngle:p,clockwise:!0}:{},label:a??{show:!1},labelLine:{show:o},labelLayout:rO(r)}}),x=ri(!!n,a),g=rZ(d),y=i?function(t){let e=new Set,l=[];for(let i of t)for(let t of i.categories)e.has(t)||(e.add(t),l.push(t));return l}(d):d[0].categories;return{title:n,tooltip:{trigger:"item",...g?{valueFormatter:t=>iA(Array.isArray(t)?t[0]:t,g)}:{}},legend:rn(o,a,x,y,s),series:m}}function rU(t,e,l){if(void 0!==t.max||0===e.length)return;let i=e.map((t,e)=>({value:t,bubbleSize:l[e]??0})).filter(({value:t})=>Number.isFinite(t));if(0===i.length)return;let r=Math.min(...i.map(({value:t})=>t)),n=Math.max(...i.map(({value:t})=>t)),a=n-Math.min(0,r)<=3?3:8,o=r$(n,r,a),s=rc(n,r,a);s>n&&s-n<.25*o&&(s+=o);let d=Math.max(...i.map(({bubbleSize:t})=>t)),u=Math.max(...i.filter(({value:t})=>1e-9>Math.abs(t-n)).map(({bubbleSize:t})=>t),0);d>0&&u/d>=.75&&(s+=o),t.max=s,void 0===t.min&&r>=0&&(t.min=0),void 0===t.interval&&(t.interval=o)}function rG(t){let e=t.child("plotArea").child("layout").child("manualLayout");return e.exists()?{x:e.child("x").numAttr("val"),y:e.child("y").numAttr("val"),w:e.child("w").numAttr("val"),h:e.child("h").numAttr("val")}:{}}function rX(t){let e=rG(t),l={};return void 0!==e.x&&(l.left=i9(e.x)),void 0!==e.y&&(l.top=i9(e.y)),void 0!==e.w&&(l.width=i9(e.w)),void 0!==e.h&&(l.height=i9(e.h)),l}function rY(t,e,l,i,r,a,o){switch(t){case"barChart":case"bar3DChart":return function(t,e,l,i){var r;let n=t.child("barDir").attr("val")||t.attr("barDir")||"col",a=rk(t),o="bar"===n,s=t.child("gapWidth").numAttr("val")??150,d=t.child("overlap").numAttr("val"),u=(null==(r=l.find(t=>t.categories.length>0))?void 0:r.categories)||[],h=rm(e,l,i,12),c=rt(e,i),$=null==c?void 0:c.option,f={fontSize:10,...(null==c?void 0:c.textStyle)??{}},p=rF(a),m=rE(a),x=m?rj(l):void 0,g=rI(e),y=t.child("varyColors"),b=1===l.length&&l[0].values.length>1&&!p&&!m&&!l[0].colorHex,v=y.exists()?iS(y):b,M=function(t,e={}){let l=i7(t);return!1===e.darken?l:l.map(t=>(function(t){let e=t.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(e))return t;let l=t=>
57Math.max(0,Math.min(255,Math.round(.88*parseInt(e.slice(t,t+2),16))));return`#${[l(0),l(2),l(4)].map(t=>t.toString(16).padStart(2,"0")).join("")}`})(t))}(i,{darken:!o}),L=i5(t,i);if(!L){let e=t.children("ser")[0];null!=e&&e.exists()&&(L=i5(e,i))}let A=t.children("ser").map((t,e)=>({ser:t,order:t.child("order").numAttr("val")??e})).sort((t,e)=>t.order-e.order).map(t=>t.ser),w=l.map((e,r)=>{let n=e.formatCode,a=i5(A[r]??t,i)??L,o=t=>{if(!(null!=t&&t.showVal))return;let e={show:!0,position:function(t,e){switch(t){case"outEnd":return"top";case"inEnd":return"insideTop";case"ctr":return"inside";case"inBase":return"insideBottom";default:return e?"inside":"top"}}(t.position,p),fontSize:t.fontSize??9,...t.color?{color:t.color}:{},...!0===t.bold?{fontWeight:"bold"}:{},...rS(t),formatter:t=>{let e=null==t?void 0:t.value,l=e&&"object"==typeof e&&"value"in e?e.value:e;return 0===l||null===l?"":iA(l,m?"0%":n)}};return void 0!==t.fontSize?iD(e):e},u=o(a),h=i4(rN(A[r],t),i),c=((null==x?void 0:x[r])??e.values).map((t,l)=>{var i;let r,n,s=h.get(l),d=e.values[l]??t,u=rR(e,l,t,g),c=null==(i=e.dataPointStyles)?void 0:i[l];return c?r={...c.color?{color:c.color}:{},...c.borderColor?{borderColor:c.borderColor}:{},...void 0!==c.borderWidth?{borderWidth:c.borderWidth}:{},...c.borderType?{borderType:c.borderType}:{}}:!1!==e.invertIfNegative&&d<0?r={color:"#FFFFFF",borderColor:"#000000",borderWidth:1}:v&&!e.colorHex&&M.length>0&&(r={color:M[l%M.length]}),null!=s&&s.deleted?n={show:!1}:s&&(n=o({showVal:(null==a?void 0:a.showVal)??!1,showCatName:(null==a?void 0:a.showCatName)??
57!1,showSerName:(null==a?void 0:a.showSerName)??!1,showPercent:(null==a?void 0:a.showPercent)??!1,position:null==a?void 0:a.position,showLeaderLines:null==a?void 0:a.showLeaderLines,manualLayout:null==a?void 0:a.manualLayout,color:null==a?void 0:a.color,fontSize:null==a?void 0:a.fontSize,bold:null==a?void 0:a.bold,backgroundColor:null==a?void 0:a.backgroundColor,borderColor:null==a?void 0:a.borderColor,borderWidth:null==a?void 0:a.borderWidth,padding:null==a?void 0:a.padding,...s})),r||n?{value:u,...r?{itemStyle:r}:{},...n?{label:n}:{}}:u});return{type:"bar",name:e.name,data:c,stack:p?"total":void 0,itemStyle:e.colorHex?{color:e.colorHex}:void 0,label:u,...e.formatCode?{tooltip:{valueFormatter:t=>iA(t,m?"0%":e.formatCode)}}:{},barGap:void 0!==d?`${-d}%`:"0%",barCategoryGap:void 0!==s?`${Math.round(100*s/(100*(p?1:l.length)+s))}%`:void 0}}),{valueAxis:S,categoryAxis:C}=iK(e.child("plotArea"),i,t),k={type:"category",data:u,axisLabel:{interval:0,rotate:0,fontSize:10}};i0(k,C,"category");let F=rZ(l),E=(m?"0%":void 0)||S.numFmt||(null!=F&&F.includes("%")?F:void 0),j={type:"value",...E?{axisLabel:{formatter:t=>iA(t,E)}}:{}};m&&rB(j),i0(j,S,"value");let B=!!h,P=o&&B?60:rl(B,c),z=ri(B,c),N=o?15:S.deleted?4:18,D=E||F,I=rr(c),R=rX(e),Z=!rw(R);return{title:h,tooltip:{trigger:"axis",textStyle:f,extraCssText:rC(f),...D?{valueFormatter:t=>iA(Array.isArray(t)?t[0]:t,D)}:{}},legend:rn($,c,z,l.map(t=>t.name),f),grid:{containLabel:Z,left:N,right:o?28:10,top:P,bottom:I,...R},xAxis:o?j:k,yAxis:o?k:j,series:w}}(e,l,i,r);case"lineChart":case"line3DChart":return rW(e,l,i,r,!1,a);case"areaChart":case"area3DChart":case"surface3DChart":return rW(e,l,i,r,!0,a);case"pieChart":case"pie3DChart":return rH(e,l,i,!1,r);case"doughnutChart":return rH(e,l,i,!0,r);case"radarChart":return function(t,e,l,i,r,a){var o,s;let d,u=rm(e,l,i,12),h=rt(e,i),c=null==h?void 0:h.option,$={fontSize:10,...(null==h?void 0:h.textStyle)??{}},f=(null==(o=l.find(t=>t.categories.length>0))?void 0:o.categories)||[],p=e.child("plotArea"),{valueAxis:m}=iK(p,i);if(void 0!==m.max)d=m.max;else{let t=0,e=0;for(let i of l)for(let l of i.values)l>t&&(t=l),l<e&&(e=l);let i=r$(t,e,5);d=Math.ceil(t/i)*i||100}let x=!m.deleted&&"none"!==m.tickLblPos,g=t.child("radarStyle").attr("val"),y=x?{show:!0,formatter:t=>iA(t,m.numFmt),color:m.labelColor??"#000000",...void 0!==m.labelFontSize?{fontSize:m.labelFontSize}:{}}:void 0,b="filled"===g?{radarZ:4,seriesZ:2}:{radarZ:void 0,seriesZ:void 0},v=null==(s=t.children("axId")[1])?void 0:s.attr("val"),M=p.children("valAx").find(t=>t.child("axId").attr("val")===v)??p.child("valAx"),L=M.child("majorGridlines").child("spPr").exists(),A=M.child("spPr").child("ln").exists(),w=m.hasMajorGridlines&&("filled"!==g||L)?{show:!0,lineStyle:{...iz,...L?m.majorGridlineStyle??{}:{}}}:{show:!1},S=m.deleted?{show:!1}:{show:!0,lineStyle:{color:A?m.lineColor??iz.color:iz.color}},C=(f.length>1?[f[0],...f.slice(1).reverse()]:f).map((t,e)=>({name:t,max:d,...void 0!==m.min?{min:m.min}:{},...0===e&&y?{axisLabel:y}:{}})),k=re(h)&&!(null!=h&&h.overlay),F=function(t,e){let{x:l,y:i,w:r,h:n}=rG(t);if(void 0===l||void 0===i||void 0===r||void 0===n)return;let a=l+r/2,o=i+n/2;return e?{center:[a*e.w,o*e.h],radius:Math.min(r*e.w,n*e.h)/2}:{center:[i9(a),i9(o)],radius:i9(Math.min(r,n)/2)}}(e,a),E=(null==F?void 0:F.center)??(k?["50%","66%"]:"filled"===g?["50%","55%"]:["50%","50%"]),j=(null==F?void 0:F.radius)??(k?"58%":"filled"===g?"76%":"86%"),B=l.map((t,e)=>{let l=t.values.length>1?[t.values[0],...t.values.slice(1).reverse()]:t.values,i=ry(t.markerSymbol),a="marker"===g||void 0!==i&&"none"!==i,o=t.colorHex??(null==r?void 0:r[e%r.length]),s="string"==typeof o?new n.A(0,0,0,1,[{offset:0,color:rP(o,{saturationScale:1.95,lightnessOffset:.217})},{offset:1,color:rP(o,{hueOffset:-5,saturationScale:1.7,lightnessOffset:-.128})}]):o,d="filled"===g?{...s?{color:s}:{},opacity:.75}:void 0;return{name:t.name,value:l,...o?{lineStyle:{color:o,width:t.lineWidth??3,cap:"round",join:"round",...t.lineNoFill?{opacity:0}:{}},itemStyle:{color:o}}:{lineStyle:{width:t.lineWidth??3,cap:"round",join:"round",...t.lineNoFill?{opacity:0}
57:{}}},...d?{areaStyle:d}:{},...i&&"none"!==i?{symbol:i}:{},...a?{}:{symbol:"none"},...t.markerSize?{symbolSize:t.markerSize}:{},...a?{symbolSize:t.markerSize??6}:{}}}),P=ri(!!u,h);return{title:u,tooltip:{},legend:rn(c,h,P,l.map(t=>{let e=ry(t.markerSymbol);return t.lineNoFill&&e&&"none"!==e?{name:t.name,icon:e}:{name:t.name,icon:rs(),...e&&"none"!==e?{marker:e}:{}}}),$),radar:{...void 0!==b.radarZ?{z:b.radarZ}:{},indicator:C,radius:j,center:E,splitNumber:5,splitLine:w,axisLine:S,splitArea:{show:!1}},series:[{type:"radar",...void 0!==b.seriesZ?{z:b.seriesZ}:{},data:B}]}}(e,l,i,r,a,o);case"scatterChart":return function(t,e,l,i){let r=rm(e,l,i,14),n=rt(e,i),a=null==n?void 0:n.option,o={fontSize:10,...(null==n?void 0:n.textStyle)??{}},s=t.child("scatterStyle").attr("val")??"lineMarker",d="lineMarker"===s||"line"===s||"smoothMarker"===s||"smooth"===s,u="smoothMarker"===s||"smooth"===s,h="line"===s||"smooth"===s,c=l.map((t,e)=>{let l=t.values.map((e,l)=>[t.xValues&&l<t.xValues.length?t.xValues[l]:l,e]),i=ry(t.markerSymbol)??rL(s,e),r=!h&&"none"!==i;if((d||t.smooth)&&!t.lineNoFill){let e=t.smooth??u?function(t,e=24){if(t.length<3)return t;for(let e=1;e<t.length;e++)if(t[e][0]<=t[e-1][0])return t;let l=t.length,i=Array(l-1);for(let e=0;e<l-1;e++)i[e]=(t[e+1][1]-t[e][1])/(t[e+1][0]-t[e][0]);let r=Array(l);r[0]=i[0],r[l-1]=1.2*i[l-2];for(let t=1;t<l-1;t++)r[t]=(i[t-1]+i[t])/2*.3;let n=[[t[0][0],t[0][1]]];for(let i=0;i<l-1;i++){let[l,a]=t[i],[o,s]=t[i+1],d=o-l,u=r[i],h=r[i+1];for(let t=1;t<=e;t++){let i=t/e,r=2*i**3-3*i**2+1,o=i**3-2*i**2+i,c=-2*i**3+3*i**2,$=i**3-i**2,f=l+d*i,p=r*a+o*d*u+c*s+$*d*h;n.push([Number(f.toFixed(4)),Number(p.toFixed(4))])}}return n}(l):l,n=t.lineWidth??3;return{type:"line",name:t.name,data:e,smooth:!1,showSymbol:r,...r?{symbol:i,symbolSize:t.markerSize??rM}:{},...t.colorHex?{lineStyle:{color:t.colorHex,width:n,cap:"round",join:"round"},itemStyle:{color:t.colorHex}}:{lineStyle:{width:n,cap:"round",join:"round"}}}}return{type:"scatter",name:t.name,data:l,symbol:r?i:"none",symbolSize:r?t.markerSize??rM:0,itemStyle:t.colorHex?{color:t.colorHex}:void 0}}),$=l.map((t,e)=>{let l=ry(t.markerSymbol)??rL(s,e);return(d||t.smooth)&&!t.lineNoFill?!h&&"none"!==l&&l?{name:t.name,icon:l}:{name:t.name,icon:rs()}:l&&"none"!==l?{name:t.name,icon:l}:t.name}),{xAxis:f,yAxis:p}=iJ(e.child("plotArea"),i),m=rl(!!r,n),x=ri(!!r,n),g=rX(e),y=!rw(g),b=p.deleted?4:18,v=Math.max(rr(n),20),M={type:"value"},L={type:"value"};return i0(M,f,"value"),i0(L,p,"value"),{title:r,tooltip:{trigger:"item"},legend:rn(a,n,x,$,o),grid:{containLabel:y,left:b,right:10,top:m,bottom:v,...g},xAxis:M,yAxis:L,series:c}}(e,l,i,r);case"bubbleChart":return function(t,e,l,i){let r=rm(e,l,i,14),n=rt(e,i),a=null==n?void 0:n.option,o={fontSize:10,...(null==n?void 0:n.textStyle)??{}},s=Math.max(t.child("bubbleScale").numAttr("val")??100,0)/100*120,d=-1/0;for(let t of l)if(t.bubbleSizes)for(let e of t.bubbleSizes)e>d&&(d=e);let u=d>0?d:1,h=l.map(t=>{let e=t.values.map((e,l)=>[t.xValues&&l<t.xValues.length?t.xValues[l]:l,e,t.bubbleSizes&&l<t.bubbleSizes.length?t.bubbleSizes[l]:0]);return{type:"scatter",name:t.name,data:e,symbolSize:t=>Math.sqrt(Math.max(Number(t[2])||0,0)/u)*s,itemStyle:t.colorHex?{color:t.colorHex}:void 0}}),{xAxis:c,yAxis:$}=iJ(e.child("plotArea"),i),f=rl(!!r,n),p=ri(!!r,n),m=rX(e),x=!rw(m),g=$.deleted?4:18,y=Math.max(rr(n),20),b={type:"value"},v={type:"value"};i0(b,c,"value"),i0(v,$,"value");let M=l.flatMap(t=>t.values.map((e,l)=>({x:t.xValues&&l<t.xValues.length?t.xValues[l]:l,y:e,bubbleSize:t.bubbleSizes&&l<t.bubbleSizes.length?t.bubbleSizes[l]:0})));return rU(b,M.map(t=>t.x),M.map(t=>t.bubbleSize)),rU(v,M.map(t=>t.y),M.map(t=>t.bubbleSize)),{title:r,tooltip:{trigger:"item",formatter:t=>`${t.seriesName}<br/>x: ${t.value[0]}, y: ${t.value[1]}, size: ${t.value[2]}`},legend:rn(a,n,p,l.map(t=>({name:t.name,icon:"circle"})),o),grid:{containLabel:x,left:g,right:10,top:f,bottom:y,...m},xAxis:b,yAxis:v,series:h}}(e,l,i,r);case"stockChart":return function(t,e,l,i){var r,n,a,o,s,d,u;let h=rm(e,l,i,14),c=rt(e,i),$=(null==(r=l.find(t=>t.categories.length>0))?void 0:r.categories)||[],f=$.length||Math.max(...l.map(t=>t.values.length),0),p=[];if(l.length>=4)for(let t=0;t<f;t++)p.push([l[0].values[t]??0,l[3].values[t]??0,l[2].values[t]??0,l[1].values[t]??0]);else if(l.length>=3)for(let t=0;t<f;t++){let e=l[2].values[t]??0;p.push([e,e,l[1].values[t]??0,l[0].values[t]??0])}else for(let t=0;t<f;
57t++){let e=(null==(n=l[0])?void 0:n.values[t])??0;p.push([0,e,0,e])}let{valueAxis:m,categoryAxis:x}=iK(e.child("plotArea"),i,t),g=rl(!!h,c),y=rX(e),b=!rw(y),v={type:"category",data:$,axisLabel:{interval:0,rotate:0,fontSize:10},splitLine:{show:!1}};i0(v,x,"category");let M=$.length>=3&&$.every(t=>/^\d{4}[/-]\d{1,2}[/-]\d{1,2}$/.test(t.trim()))&&!x.deleted&&"none"!==x.tickLblPos;if(M){let t=v.axisLabel||{};v.axisLabel={...t,rotate:45,margin:Math.max(Number(t.margin)||0,10)}}let L={type:"value"};i0(L,m,"value");let A=p.flatMap(t=>[t[2],t[3]]).filter(t=>Number.isFinite(t));if(A.length>0){let t=Math.min(...A),e=Math.max(...A);if(void 0===L.min&&t>=0&&(L.min=0),void 0===L.interval&&(L.interval=r$(e,t,7)),void 0===L.max){let l=Number(L.interval)||r$(e,t,7);L.max=Math.ceil(e/l)*l+l}}let w=null==c?void 0:c.option,S={fontSize:10,...(null==c?void 0:c.textStyle)??{}},C=ri(!!h,c),k=Math.max(rr(c),56*!!M),F=l.length>=3&&l.length<4,E=F?l.slice(0,3).map((t,e)=>({name:t.name,icon:2===e?function(t){switch(t){case"dot":case"circle":default:return"circle";case"square":return"rect";case"diamond":case"triangle":return t;case"none":case void 0:return"none"}}(t.markerSymbol):"none"})):l.map(t=>t.name),j=F?[{type:"custom",name:l[2].name,coordinateSystem:"cartesian2d",data:Array.from({length:f},(t,e)=>[e,l[0].values[e]??0,l[1].values[e]??0,l[2].values[e]??0]),renderItem:(t,e)=>{let i=e.value(0),r=e.value(1),n=e.value(2),a=e.value(3),o=e.coord([i,r]),s=e.coord([i,n]),d=e.coord([i,a]),u=Math.min(4,Math.max(2,Math.round(.04*Math.max(8,e.size([1,0])[0]||12)))),h=ro(l[0].colorHex,"#000000"),c=ro(l[2].colorHex,"#00B050");return{type:"group",children:[{type:"line",shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:{stroke:h,lineWidth:1}},{type:"line",shape:{x1:d[0],y1:d[1],x2:d[0]+u,y2:d[1]},style:{stroke:c,lineWidth:1}}]}},silent:!0}]:[{type:"candlestick",name:l.length>=3?l[2].name:null==(a=l[0])?void 0:a.name,data:p,itemStyle:{color:ro(null==(o=l[l.length>=4?3:2])?void 0:o.colorHex,"#ec0000"),color0:ro(null==(s=l[0])?void 0:s.colorHex,"#00da3c"),borderColor:ro(null==(d=l[l.length>=4?3:2])?void 0:d.colorHex,"#ec0000"),borderColor0:ro(null==(u=l[0])?void 0:u.colorHex,"#00da3c")}}];return{title:h,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:rn(w,c,C,E,S),grid:{containLabel:b,left:24,right:10,top:g,bottom:k,...y},xAxis:v,yAxis:L,series:j}}(e,l,i,r);default:return}}function rV(t){return"barChart"===t||"bar3DChart"===t||"lineChart"===t||"line3DChart"===t||"areaChart"===t||"area3DChart"===t||"stockChart"===t||"surface3DChart"===t}function rq(t,e){let l=ra(t),i=ra(e);if(!l)return e;if(!i)return t;let r=[...l.data??[],...i.data??[]],n=new Set,a=r.filter(t=>{let e="string"==typeof t?t:t.name;return!n.has(e)&&(n.add(e),!0)}),o={...l,data:a};return a.some(t=>"object"==typeof t&&t.icon)&&delete o.icon,o}function r_(t){return void 0===t?[]:Array.isArray(t)?t:[t]}function rQ(t,e,l){if("number"==typeof t&&Number.isFinite(t))return t;if("string"==typeof t){if(t.endsWith("%")){let i=parseFloat(t);return Number.isFinite(i)?e*i/100:l}let i=parseFloat(t);return Number.isFinite(i)?i:l}return l}function rK(t,e,l,i){if("string"==typeof(null==t?void 0:t.width)&&"left"===l&&t.width.endsWith("%"))return e*parseFloat(t.width)/100;if("string"==typeof(null==t?void 0:t.height)&&"top"===l&&t.height.endsWith("%"))return e*parseFloat(t.height)/100;if("number"==typeof(null==t?void 0:t.width)&&"left"===l)return t.width;if("number"==typeof(null==t?void 0:t.height)&&"top"===l)return t.height;let r=rQ(null==t?void 0:t[l],e,0),n=rQ(null==t?void 0:t[i],e,0);return Math.max(0,e-r-n)}function rJ(t,e,l){var i;if(!e||"category"!==t.type||"value"!==e.type||(null==(i=t.axisLine)?void 0:i.onZero)!==!0||!("number"==typeof e.min&&"number"==typeof e.max&&e.min<0&&e.max>0)||l<=0)return!1;let r=l*((0-e.min)/(e.max-e.min)),n=t.axisLabel??(t.axisLabel={}),a=Math.max(6,Math.round(n.fontSize??10));return n.margin=-Math.round(Math.max(0,r-a)),t.z=Math.max(t.z??0,20),!0}function r0(t,e){switch(t.nodeType){case"shape":return function(t,e){var l,i,r,n,a,o,s,d,u,h,c,$,f,p,m,x,g,y,b,v,M,L,A,w,S,k,E,j,B,P,z,N;let D=document.createElement("div");D.style.position="absolute",D.style.left=`${t.position.x}px`,D.style.top=`${t.position.y}px`,D.style.width=`${t.size.w}px`;let I=(null==(l=t.presetGeometry)?void 0:l.toLowerCase())??"",R=new Set(["arc"]),Z=!!I&&("line"===I||"lineinv"===I||I.startsWith("straightconnector")||I.startsWith("bentconnector")||I.startsWith("curvedconnector")||R.has(I)),T="cxnSp"===t.source.localName,O=t.size.w>0&&t.size.h<1||t.size.w<1&&t.size.h>0,W=Z||T||O,H=W&&t.size.h<1?1:t.size.h,U=W&&t.size.w<1?1:t.size.w;D.style.height=`${H}px`,0===t.size.w&&(D.style.width=`${U}px`),D.style.overflow="visible";let X=[];0!==t.rotation&&X.push(`rotate(${t.rotation}deg)`),t.flipH&&!W&&X.push("scaleX(-1)"),t.flipV&&!W&&X.push("scaleY(-1)"),X.length>0&&(D.style.transform=X.join(" "));let Y=t.size.w,V=t.size.h,K=t.source.child("style"),J=K.exists()?K.child("lnRef"):void 0,tt=K.exists()?K.child("fillRef"):void 0,te="",tl=null;if(t.presetGeometry){let e=t.presetGeometry;T&&"line"===e&&(e="straightConnector1");let l=function(t,e,l,i){var r,n,a;let o,s,d=(n=t.adjustments)&&0!==n.size?Array.from(n.entries()).sort(([t],[e])=>t.localeCompare(e)).map(([t,e])=>`${t}:${e}`).join("|"):"",u=lX.get(t);if(u&&u.effectivePreset===e&&u.w===l&&u.h===i&&u.adjustmentKey===d)return{pathD:u.pathD,multiPaths:u.multiPaths};let h=(a=t.adjustments,o=e.toLowerCase(),(s=ll.get(o)??ll.get(e))?s(l,i,a):null),c=h?(null==(r=h[0])?void 0:r.d)??"":la(e,l,i,t.adjustments);return lX.set(t,{effectivePreset:e,w:l,h:i,adjustmentKey:d,pathD:c,multiPaths:h}),{pathD:c,multiPaths:h}}(t,e,Y,V);te=l.pathD,tl=l.multiPaths}else if(t.customGeometry){let e=t.source.child("spPr").child("xfrm").child("ext"),l={w:e.numAttr("cx")??0,h:e.numAttr("cy")??0};te=e1(t.customGeometry,Y,V,l)}!te&&W&&(null!=(i=t.line)&&i.exists()||null!=J&&J.exists()&&(J.numAttr("idx")??0)>0&&((null==(r=e.theme.lineStyles)?void 0:r.length)??0)>=(J.numAttr("idx")??0))&&(te=la(T?"straightConnector1":"line",Y,V,void 0)),te&&W&&(t.flipH||t.flipV)&&(te=function(t,e,l,i,r){if(!t||!i&&!r)return t;let n=lo(t);if(!n)return t;let a=[],o=0,s=t=>{if(o+t>n.length)return null;let e=n.slice(o,o+t).map(Number);return e.some(t=>!Number.isFinite(t))?null:(o+=t,e)},d=(t,n)=>`${lu(i?e-t:t)},${lu(r?l-n:n)}`;for(;o<n.length;){let u=n[o++];if("Z"===u||"z"===u){a.push("Z");continue}let h="C"===u?6:"Q"===u?4:"A"===u?7:2;if("M"!==u&&"L"!==u&&"C"!==u&&"Q"!==u&&"A"!==u)return t;let c=s(h);if(!c)return t;if("M"===u||"L"===u)a.push(`${u}${d(c[0],c[1])}`);else if("C"===u)a.push(`C${d(c[0],c[1])} ${d(c[2],c[3])} ${d(c[4],c[5])}`);else if("Q"===u)a.push(`Q${d(c[0],c[1])} ${d(c[2],c[3])}`);else{let[t,n,o,s,d,u,h]=c,$=i!==r?+!d:d,f=i?e-u:u,p=r?l-h:h;a.push(`A${lu(t)},${lu(n)} ${lu(i!==r?-o:o)} ${s},${$} ${lu(f)},${lu(p)}`)}}return a.join(" ")}(te,Y,V,t.flipH,t.flipV));let tr=t.source.child("spPr"),tn="",ta=t.fill?t8(tr,e):null;if(t.fill&&t.fill.exists()){if("solidFill"===t.fill.localName){let l=t.fill.child("srgbClr").exists()?t.fill.child("srgbClr"):t.fill.child("schemeClr").exists()?t.fill.child("schemeClr"):t.fill.child("scrgbClr").exists()?t.fill.child("scrgbClr"):t.fill.child("sysClr").exists()?t.fill.child("sysClr"):void 0;null!=l&&l.exists()&&(tn=tY(l,e))}tn||(tn=t_(tr,e))}if(!tn){let t=tr.child("solidFill");
57if(t.exists()){let l=t.child("srgbClr").exists()?t.child("srgbClr"):t.child("schemeClr").exists()?t.child("schemeClr"):t.child("scrgbClr").exists()?t.child("scrgbClr"):t.child("sysClr").exists()?t.child("sysClr"):void 0;null!=l&&l.exists()&&(tn=tY(l,e))}}if(!tn&&tt&&tt.exists()&&(tt.numAttr("idx")??0)>0){let t=t7(tt,e);tn=t.fillCss,ta||(ta=t.gradientFillData)}W&&(tn="",ta=null);let to="none",ts=0,td="",tu="solid",th="",tc="",t$=null,tf=t.line&&t.line.child("noFill").exists(),tp=t.line&&!tf,tm=!tp&&!tf&&null!=J&&J.exists()&&(J.numAttr("idx")??0)>0&&((null==(n=e.theme.lineStyles)?void 0:n.length)??0)>=(J.numAttr("idx")??0)?e.theme.lineStyles[(J.numAttr("idx")??1)-1]:void 0,tx=tp?t.line:tm;if(tf&&(tx=void 0),null!=tx&&tx.exists()){if(!(t$=function(t,e){let l=t.child("gradFill");if(!l.exists())return null;let i=l.child("gsLst"),r=[];for(let t of i.children("gs")){let l=100*Q(t.numAttr("pos")??0),{color:i,alpha:n}=tG(t,e),a=tV(i,n);r.push({position:l,color:a})}if(0===r.length)return null;r.sort((t,e)=>t.position-e.position);let n=l.child("lin"),a=0;n.exists()&&(a=_(n.numAttr("ang")??0));let o=q(t.numAttr("w")??0);return o<=0&&(o=1),{stops:r,angle:a,width:o,colorInterpolation:"linearRGB"}}(tx,e))){let t=tJ(tx,e,J);to=t.color,ts=t.width,td=t.dash,tu=t.dashKind}let t=tx.attr("cap");"rnd"===t?th="round":"sq"===t?th="square":"flat"===t&&(th="butt"),tx.child("round").exists()?tc="round":tx.child("bevel").exists()?tc="bevel":tx.child("miter").exists()&&(tc="miter")}tf&&(to="none",ts=0,t$=null);let tg=(null==(a=t.presetGeometry)?void 0:a.toLowerCase())==="circulararrow";if(tg&&(to="none",ts=0,t$=null,!tn)){let t=tr.child("solidFill");if(t.exists()){let l=t.child("srgbClr").exists()?t.child("srgbClr"):t.child("schemeClr").exists()?t.child("schemeClr"):t.child("scrgbClr").exists()?t.child("scrgbClr"):t.child("sysClr").exists()?t.child("sysClr"):void 0;null!=l&&l.exists()&&(tn=tY(l,e))}}let ty=null,tb=null,tv=null,tM=null;if(te){let l="http://www.w3.org/2000/svg",i=document.createElementNS(l,"svg"),r=W?U:Y,n=W?H:V;i.setAttribute("viewBox",`0 0 ${r} ${n}`),i.setAttribute("width",String(r)),i.setAttribute("height",String(n)),i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.overflow="visible";let a=tr.child("blipFill"),p=a.exists()?function(t,e){let l=t.child("blip"),i=l.attr("embed")??l.attr("r:embed"),r=l.attr("link")??l.attr("r:link"),n=i??r;if(!n)return null;let a=e.slide.rels.get(n);if(!a)return null;if(G(a.targetMode))return er(a.target)?a.target:null;let o=C(a.target,e.presentation.media);if(!o)return null;let{mediaPath:s,data:d}=o;return F(s,d,e.mediaUrlCache)}(a,e):null;if(p){let t=document.createElementNS(l,"defs");lv(l,i,t,a,te,{w:r,h:n},p);let e=tl&&(null==(o=tl[0])?void 0:o.stroke)===!1;if(!tg&&!e&&!t$&&ts>0&&"none"!==to&&"transparent"!==to){let t=document.createElementNS(l,"path");t.setAttribute("d",te),t.setAttribute("fill","none"),t.setAttribute("stroke",to),t.setAttribute("stroke-width",String(ts)),th&&t.setAttribute("stroke-linecap",th),tc&&t.setAttribute("stroke-linejoin",tc);let e=lw(tu,ts);e?t.setAttribute("stroke-dasharray",e):"dashed"===td?t.setAttribute("stroke-dasharray",`${4*ts},${2*ts}`):"dotted"===td&&t.setAttribute("stroke-dasharray",`${ts},${2*ts}`),i.appendChild(t)}D.appendChild(i)}else{let o=document.createElementNS(l,"defs"),p=document.createElementNS(l,"path");p.setAttribute("d",te),ty=l,tb=o,tv=p,tM={w:r,h:n};let m=null==(s=t.presetGeometry)?void 0:s.toLowerCase();if("curveduparrow"===m||"curveddownarrow"===m?(p.setAttribute("fill-rule","evenodd"),p.setAttribute("stroke-linejoin","round")):"funnel"===m&&p.setAttribute("fill-rule","evenodd"),tn){let t=tr.child("pattFill"),i=t.exists()?function(t,e,l,i){if(!l.exists())return null;let r=l.attr("prst")??"solid";if("solid"===r||"solidDmnd"===r)return null;let n=l.child("fgClr"),a=l.child("bgClr"),o=n.exists()?tY(n,i):"#000000",s=a.exists()?tY(a,i):"#ffffff",d=`shape-pattern-${++lL}`,u=document.createElementNS(t,"pattern");u.setAttribute("id",d),u.setAttribute("patternUnits","userSpaceOnUse"),u.setAttribute("width",String(8)),u.setAttribute("height",String(8));let h=document.createElementNS(t,"rect");h.setAttribute("width",String(8)),h.setAttribute("height",String(8)),h.setAttribute("fill",s),u.appendChild(h);let c=!1,$=(e,l,i,r,n)=>{let a=document.createElementNS(t,"line");a.setAttribute("x1",String(e)),a.setAttribute("y1",String(l)),a.setAttribute("x2",String(i)),a.setAttribute("y2",String(r)),a.setAttribute("stroke",o),a.setAttribute("stroke-width",String(1)),n&&a.setAttribute("stroke-dasharray",n),u.appendChild(a),c=!0},f=(e,l,i)=>{let r=document.createElementNS(t,"circle");r.setAttribute("cx",String(e)),r.setAttribute("cy",String(l)),r.setAttribute("r",String(i)),r.setAttribute("fill",o),u.appendChild(r),c=!0},p="3,2",m=0;switch(r){case"pct5":case"pct10":case"pct20":case"pct25":f(4,4,.75);break;case"pct30":case"pct40":case"pct50":case"dotGrid":case"dotDmnd":f(4,4,1);break;case"pct60":case"pct70":case"pct75":case"pct80":case"pct90":case"sphere":case"shingle":case"plaid":case"divot":case"zigZag":f(4,4,1.5);break;case"horz":case"ltHorz":case"narHorz":case"dkHorz":$(0,.5,8,.5);break;
57case"vert":case"ltVert":case"narVert":case"dkVert":$(.5,0,.5,8);break;case"dnDiag":case"ltDnDiag":case"narDnDiag":case"dkDnDiag":case"wdDnDiag":$(0,8,8,0);break;case"upDiag":case"ltUpDiag":case"narUpDiag":case"dkUpDiag":case"wdUpDiag":$(0,0,8,8);break;case"smGrid":case"lgGrid":case"cross":m=-3,$(0,.5,8,.5),$(.5,0,.5,8);break;case"smCheck":case"lgCheck":case"diagCross":case"openDmnd":case"trellis":case"weave":$(0,8,8,0),$(0,0,8,8);break;case"dashHorz":$(0,.5,8,.5,p);break;case"dashVert":$(.5,0,.5,8,p);break;case"dashDnDiag":$(0,8,8,0,p);break;case"dashUpDiag":$(0,0,8,8,p);break;default:return null}return c?(0!==m&&u.setAttribute("y",String(m)),e.appendChild(u),d):null}(l,o,t,e):null;if(i)p.setAttribute("fill",`url(#${i})`);else if(ta&&ta.stops.length>0){let t=`grad-fill-${++lL}`;if("radial"===ta.type&&"rect"===ta.pathType){let e=ta.cx??.5,i=ta.cy??.5,r=(t,e)=>{let l=t3(ta,{axis:e}),i=[];for(let e of l){let l=e.position/100,r=t-l*t,n=t+l*(1-t);i.push({offset:r,color:e.color}),i.push({offset:n,color:e.color})}return i.sort((t,e)=>t.offset-e.offset),i},n=`${t}-h`,a=document.createElementNS(l,"linearGradient");for(let t of(a.setAttribute("id",n),a.setAttribute("color-interpolation",ta.colorInterpolation??"linearRGB"),a.setAttribute("x1","0%"),a.setAttribute("y1","0%"),a.setAttribute("x2","100%"),a.setAttribute("y2","0%"),r(e,"x"))){let e=document.createElementNS(l,"stop");e.setAttribute("offset",`${(100*t.offset).toFixed(2)}%`),e.setAttribute("stop-color",t.color),a.appendChild(e)}o.appendChild(a);let s=`${t}-v`,d=document.createElementNS(l,"linearGradient");for(let t of(d.setAttribute("id",s),d.setAttribute("color-interpolation",ta.colorInterpolation??"linearRGB"),d.setAttribute("x1","0%"),d.setAttribute("y1","0%"),d.setAttribute("x2","0%"),d.setAttribute("y2","100%"),r(i,"y"))){let e=document.createElementNS(l,"stop");e.setAttribute("offset",`${(100*t.offset).toFixed(2)}%`),e.setAttribute("stop-color",t.color),d.appendChild(e)}o.appendChild(d);let u=`${t}-clip`,h=document.createElementNS(l,"clipPath");h.setAttribute("id",u);let c=document.createElementNS(l,"path");c.setAttribute("d",te),h.appendChild(c),o.appendChild(h);let $=document.createElementNS(l,"g");$.setAttribute("clip-path",`url(#${u})`),$.setAttribute("style","isolation: isolate");let f=document.createElementNS(l,"rect");f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("fill","black"),$.appendChild(f);let m=document.createElementNS(l,"path");m.setAttribute("d",te),m.setAttribute("fill",`url(#${n})`),m.setAttribute("style","mix-blend-mode: lighten"),$.appendChild(m);let x=document.createElementNS(l,"path");x.setAttribute("d",te),x.setAttribute("fill",`url(#${s})`),x.setAttribute("style","mix-blend-mode: lighten"),$.appendChild(x),p.setAttribute("fill","none"),p.__rectBlendGroup=$}else if("radial"===ta.type){let e=document.createElementNS(l,"radialGradient");e.setAttribute("id",t),e.setAttribute("color-interpolation",ta.colorInterpolation??"linearRGB"),e.setAttribute("gradientUnits","userSpaceOnUse");let i=ta.cx??.5,a=ta.cy??.5;e.setAttribute("cx",String(i*r)),e.setAttribute("cy",String(a*n));let s=Math.max(i,1-i),d=Math.max(a,1-a);for(let t of(e.setAttribute("r",String(Math.hypot(s*r,d*n))),t3(ta,{width:r,height:n}))){let i=document.createElementNS(l,"stop");i.setAttribute("offset",`${t.position}%`),i.setAttribute("stop-color",t.color),e.appendChild(i)}o.appendChild(e)}else{let e=document.createElementNS(l,"linearGradient");e.setAttribute("id",t),e.setAttribute("color-interpolation",ta.colorInterpolation??"linearRGB"),e.setAttribute("gradientUnits","userSpaceOnUse");let i=lk(ta.angle);for(let t of(e.setAttribute("x1",String(parseFloat(i.x1)/100*r)),e.setAttribute("y1",String(parseFloat(i.y1)/100*n)),e.setAttribute("x2",String(parseFloat(i.x2)/100*r)),e.setAttribute("y2",String(parseFloat(i.y2)/100*n)),ta.stops)){let i=document.createElementNS(l,"stop");i.setAttribute("offset",`${t.position}%`),i.setAttribute("stop-color",t.color),e.appendChild(i)}o.appendChild(e)}"radial"===ta.type&&"rect"===ta.pathType||p.setAttribute("fill",`url(#${t})`)}else"transparent"===tn?p.setAttribute("fill","none"):tn.includes("gradient")?(D.style.background=tn,p.setAttribute("fill","transparent")):p.setAttribute("fill",tn)}else p.setAttribute("fill","none");if(tg){if(!tn||"none"===tn||"transparent"===tn){let l=["srgbClr","schemeClr","scrgbClr","sysClr","hslClr","prstClr"],i="",r=tr.child("solidFill");
57if(r.exists()){for(let t of r.allChildren())if(l.includes(t.localName)){i=tY(t,e);break}}if(!i&&null!=(d=t.fill)&&d.exists()){for(let r of t.fill.allChildren())if(l.includes(r.localName)){i=tY(r,e);break}}i&&p.setAttribute("fill",i)}p.setAttribute("stroke","none")}let x=t.headEnd,g=t.tailEnd;if((!x||!g)&&null!=tx&&tx.exists()){let t=function(t){let e={},l=t.child("headEnd");if(l.exists()){let t=l.attr("type");t&&"none"!==t&&(e.headEnd={type:t,w:l.attr("w"),len:l.attr("len")})}let i=t.child("tailEnd");if(i.exists()){let t=i.attr("type");t&&"none"!==t&&(e.tailEnd={type:t,w:i.attr("w"),len:i.attr("len")})}return e}(tx);!x&&t.headEnd&&(x=t.headEnd),!g&&t.tailEnd&&(g=t.tailEnd)}let y=t$?lB(t$.stops,"start","black"):to,b=t$?lB(t$.stops,"end",y):to,v=t$?t$.width:ts;W&&(x||g)&&v<=0&&(v=1);let C=W&&(x||g)?"butt":th;if(W&&(x||g)&&v>0&&(te=function(t,e,l,i){if(!l&&!i)return t;let r=lW(t);if(!r||r.length<3)return t;let n=Math.min(Math.max(2,1.5*e),4),a=r.slice();if(l&&a.length>=3){let t=lU(a[0],a[1]),e=lU(a[1],a[2]);t<=n&&e>n&&(a=a.slice(1))}if(i&&a.length>=3){let t=a.length-1,e=lU(a[t-1],a[t]),l=lU(a[t-2],a[t-1]);e<=n&&l>n&&(a=a.slice(0,-1))}return a.length===r.length?t:lH(a)}(te,v,!!x,!!g),p.setAttribute("d",te)),W&&x&&v>0){let t=(M=x,L=v,"triangle"!==M.type&&"arrow"!==M.type&&"stealth"!==M.type?0:lE(M,L).markerW);t>0&&(te=function(t,e){if(!(e>0))return t;let l=ls(t);if(!l)return function(t,e){let l=lW(t);if(!l||l.length<3)return null;let i=l[0],r=l[1],n=r.x-i.x,a=r.y-i.y,o=Math.hypot(n,a);return o>e?lH([{x:i.x+n/o*e,y:i.y+a/o*e},...l.slice(1)]):null}(t,e)??function(t,e){let l=lI(t);if(!l)return null;let i=lR(l.start,l.arc);if(!i)return null;let r=lT(i,1);if(!(r>0))return null;let n=Math.min(e,.95*r),a=0,o=1;for(let t=0;t<24;t++){let t=(a+o)/2;lT(i,t)<n?a=t:o=t}let s=o;return lO(lZ(i,s),i,1-s,l.arc.end)}(t,e)??function(t,e){let l=lN(t);if(!l)return t;let i=l.start,r=l.segments[0],n=r.c1,a=r.c2,o=r.end,s=lz(i,n,a,o,1);if(!(s>0))return t;let d=Math.min(e,.95*s),u=0,h=1;for(let t=0;t<24;t++){let t=(u+h)/2;lz(i,n,a,o,t)<d?u=t:h=t}let c=h,$=lP(i,n,c),f=lP(n,a,c),p=lP(a,o,c),m=lP($,f,c),x=lP(f,p,c),g=lP(m,x,c),y=l.segments.slice();return y[0]={c1:x,c2:p,end:o},lD(g,y)}(t,e);let i=l.start.x,r=l.start.y,n=l.end.x,a=l.end.y,o=n-i,s=a-r,d=Math.hypot(o,s);if(!(d>0))return t;let u=Math.min(e,.95*d);return`M${i+o/d*u},${r+s/d*u} L${n},${a}`}(te,t),p.setAttribute("d",te))}if(W&&g&&v>0){let t=(A=g,w=v,"triangle"!==A.type&&"arrow"!==A.type&&"stealth"!==A.type?0:lE(A,w).markerW);t>0&&(te=function(t,e){if(!(e>0))return t;let l=ls(t);if(!l)return function(t,e){let l=lW(t);if(!l||l.length<3)return null;let i=l[l.length-1],r=l[l.length-2],n=i.x-r.x,a=i.y-r.y,o=Math.hypot(n,a);if(!(o>e))return null;let s={x:i.x-n/o*e,y:i.y-a/o*e};return lH([...l.slice(0,-1),s])}(t,e)??function(t,e){let l=lN(t);if(!l)return null;let i=l.segments.length-1,r=0===i?l.start:l.segments[i-1].end,n=l.segments[i],a=lz(r,n.c1,n.c2,n.end,1);if(!(a>0))return null;let o=a-Math.min(e,.95*a),s=0,d=1;for(let t=0;t<24;t++){let t=(s+d)/2;lz(r,n.c1,n.c2,n.end,t)<o?s=t:d=t}let u=d,h=lP(r,n.c1,u),c=lP(n.c1,n.c2,u),$=lP(n.c2,n.end,u),f=lP(h,c,u),p=lP(f,lP(c,$,u),u),m=l.segments.slice();return m[i]={c1:h,c2:f,end:p},lD(l.start,m)}(t,e)??function(t,e){let l=lI(t);if(!l)return null;let i=lR(l.start,l.arc);if(!i)return null;let r=lT(i,1);if(!(r>0))return null;let n=r-Math.min(e,.95*r),a=0,o=1;for(let t=0;t<24;t++){let t=(a+o)/2;lT(i,t)<n?a=t:o=t}let s=o;return lO(l.start,i,s,lZ(i,s))}(t,e)??t;let i=l.start.x,r=l.start.y,n=l.end.x,a=l.end.y,o=n-i,s=a-r,d=Math.hypot(o,s);if(!(d>0))return t;let u=Math.min(e,.95*d);return`M${i},${r} L${n-o/d*u},${a-s/d*u}`}(te,t),p.setAttribute("d",te))}let k=tl&&(null==(u=tl[0])?void 0:u.stroke)===!1;if(!tg&&!k&&t$&&t$.stops.length>0){let t=`grad-stroke-${++lL}`,e=document.createElementNS(l,"linearGradient");if(e.setAttribute("id",t),e.setAttribute("color-interpolation",t$.colorInterpolation??"linearRGB"),e.setAttribute("gradientUnits","userSpaceOnUse"),W||r<=1||n<=1){let t=t$.angle*Math.PI/180,l=Math.cos(t),i=Math.sin(t),a=r/2,o=n/2,s=Math.max(r,n)/2;e.setAttribute("x1",String(a-s*l)),e.setAttribute("y1",String(o-s*i)),e.setAttribute("x2",String(a+s*l)),e.setAttribute("y2",String(o+s*i))}else{let t=lk(t$.angle);e.setAttribute("x1",String(parseFloat(t.x1)/100*r)),e.setAttribute("y1",String(parseFloat(t.y1)/100*n)),e.setAttribute("x2",String(parseFloat(t.x2)/100*r)),e.setAttribute("y2",String(parseFloat(t.y2)/100*n))}for(let t of t$.stops){let i=document.createElementNS(l,"stop");i.setAttribute("offset",`${t.position}%`),i.setAttribute("stop-color",t.color),e.appendChild(i)}o.appendChild(e);let i=W||r<=1||n<=1?Math.max(t$.width,1):t$.width;p.setAttribute("stroke",`url(#${t})`),p.setAttribute("stroke-width",String(i)),C&&p.setAttribute("stroke-linecap",C),tc&&p.setAttribute("stroke-linejoin",tc)}else if(tg||k||!(v>0)||"transparent"===to)p.setAttribute("stroke","none");else{p.setAttribute("stroke",to),p.setAttribute("stroke-width",String(v)),C&&p.setAttribute("stroke-linecap",C),tc&&p.setAttribute("stroke-linejoin",tc);let t=lw(tu,v);t?p.setAttribute("stroke-dasharray",t):"dashed"===td?p.setAttribute("stroke-dasharray",`${4*v},${2*v}`):"dotted"===td&&p.setAttribute("stroke-dasharray",`${v},${2*v}`)}if(v>0&&(x||g)){if(x){let t=lG(l,x,y,v,!0);t&&(o.appendChild(t),p.setAttribute("marker-start",`url(#${t._markerId})`))}if(g){let t=lG(l,g,b,v,!1);
57t&&(o.appendChild(t),p.setAttribute("marker-end",`url(#${t._markerId})`))}}if(p.__rectBlendGroup&&(i.appendChild(p.__rectBlendGroup),delete p.__rectBlendGroup),i.appendChild(p),a.exists()&&e.presentation.mediaResolver){let t=ly(a,e).then(t=>{t&&lv(l,i,o,a,te,{w:r,h:n},t,p)}).catch(()=>{});null==(h=e.asyncTasks)||h.push(t),e.asyncTasks}if(tl&&tl.length>1){let a=p.getAttribute("fill")??"",s=(null==(c=t.presetGeometry)?void 0:c.toLowerCase())??"",d=lS(a&&!a.startsWith("url(")?a:null!=tt&&tt.exists()?tY(tt,e):(null==($=null==ta?void 0:ta.stops[0])?void 0:$.color)??tn),u=(t,e)=>{if((null==ta?void 0:ta.type)!=="linear"||0===ta.stops.length)return;let i=`grad-fill-detail-${++lL}`,a=document.createElementNS(l,"linearGradient");a.setAttribute("id",i),a.setAttribute("gradientUnits","userSpaceOnUse"),a.setAttribute("color-interpolation",ta.colorInterpolation??"sRGB");let s=lk(ta.angle);for(let i of(a.setAttribute("x1",String(parseFloat(s.x1)/100*r)),a.setAttribute("y1",String(parseFloat(s.y1)/100*n)),a.setAttribute("x2",String(parseFloat(s.x2)/100*r)),a.setAttribute("y2",String(parseFloat(s.y2)/100*n)),ta.stops)){let r=document.createElementNS(l,"stop");r.setAttribute("offset",`${i.position}%`);let n=lS(i.color);r.setAttribute("stop-color",n?lC(n,e,t):i.color),a.appendChild(r)}return o.appendChild(a),`url(#${i})`};for(let e=1;e<tl.length;e++){let h=tl[e],c=document.createElementNS(l,"path");if(c.setAttribute("d",h.d),"none"===h.fill)c.setAttribute("fill","none");else if("darkenLess"===h.fill)c.setAttribute("fill",u(.15,{r:0,g:0,b:0})||(d?lC(d,{r:0,g:0,b:0},.15):"rgba(0,0,0,0.15)"));else if("darken"===h.fill)c.setAttribute("fill",u(.3,{r:0,g:0,b:0})||(d?lC(d,{r:0,g:0,b:0},.3):"rgba(0,0,0,0.3)"));else if("lightenLess"===h.fill)c.setAttribute("fill",u(.18,{r:255,g:255,b:255})||(d?lC(d,{r:255,g:255,b:255},.18):"rgba(255,255,255,0.15)"));else if("lighten"===h.fill){let t;if("can"===s&&(null==ta?void 0:ta.type)==="linear"&&ta.stops.length>0){let e=`grad-fill-face-${++lL}`,i=document.createElementNS(l,"linearGradient");i.setAttribute("id",e),i.setAttribute("gradientUnits","userSpaceOnUse"),i.setAttribute("color-interpolation","sRGB");let a=lk(ta.angle);for(let t of(i.setAttribute("x1",String(parseFloat(a.x1)/100*r)),i.setAttribute("y1",String(parseFloat(a.y1)/100*n)),i.setAttribute("x2",String(parseFloat(a.x2)/100*r)),i.setAttribute("y2",String(parseFloat(a.y2)/100*n)),ta.stops)){let e=document.createElementNS(l,"stop");e.setAttribute("offset",`${t.position}%`),e.setAttribute("stop-color",tz(t.color,65e3)),i.appendChild(e)}o.appendChild(i),t=`url(#${e})`}else"can"===s&&a.startsWith("url(")&&(t=a);let e="can"===s?void 0:u(.3,{r:255,g:255,b:255});c.setAttribute("fill",t||e||(d?lC(d,{r:255,g:255,b:255},.3):"rgba(255,255,255,0.3)"))}else c.setAttribute("fill",a||"none");if(h.stroke&&v>0&&"transparent"!==to){c.setAttribute("stroke",to);let e=(null==(f=t.presetGeometry)?void 0:f.toLowerCase())==="bordercallout1"&&"none"===h.fill,i=h.strokeWidthScale&&Number.isFinite(h.strokeWidthScale)&&h.strokeWidthScale>0?v*h.strokeWidthScale:v,a=e?Math.max(i,2.4):i;if(c.setAttribute("stroke-width",String(a)),e&&c.setAttribute("stroke-linecap","round"),h.maskToMainOutlineBandScale&&h.maskToMainOutlineBandScale>0&&h.maskToMainOutlineBandScale<1){let t=`shape-detail-band-mask-${++lL}`,e=document.createElementNS(l,"mask");e.setAttribute("id",t),e.setAttribute("maskUnits","userSpaceOnUse"),e.setAttribute("maskContentUnits","userSpaceOnUse");let i=document.createElementNS(l,"rect");i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("width",String(r)),i.setAttribute("height",String(n)),i.setAttribute("fill","black"),e.appendChild(i);let a=document.createElementNS(l,"path");a.setAttribute("d",te),a.setAttribute("fill","white"),a.setAttribute("stroke","none"),e.appendChild(a);let s=h.maskToMainOutlineBandScale,d=document.createElementNS(l,"path");d.setAttribute("d",te),d.setAttribute("fill","black"),d.setAttribute("stroke","none");let u=r*(1-s)/2,$=n*(1-s)/2;d.setAttribute("transform",`translate(${u} ${$}) scale(${s})`),e.appendChild(d),o.appendChild(e),c.setAttribute("mask",`url(#${t})`)}else if(h.maskToMainOutline){let t=`shape-detail-mask-${++lL}`,e=document.createElementNS(l,"mask");e.setAttribute("id",t),e.setAttribute("maskUnits","userSpaceOnUse"),e.setAttribute("maskContentUnits","userSpaceOnUse");let i=document.createElementNS(l,"rect");i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("width",String(r)),i.setAttribute("height",String(n)),i.setAttribute("fill","black"),e.appendChild(i);let s=document.createElementNS(l,"path");s.setAttribute("d",te),s.setAttribute("fill","none"),s.setAttribute("stroke","white");let d=Math.max(a*(h.maskStrokeScale&&h.maskStrokeScale>0?h.maskStrokeScale:3),a);s.setAttribute("stroke-width",String(d)),s.setAttribute("stroke-linecap","round"),s.setAttribute("stroke-linejoin","round"),e.appendChild(s),o.appendChild(e),c.setAttribute("mask",`url(#${t})`)}}else if(h.stroke&&!tf){let t=d?lC(d,{r:0,g:0,b:0},.55):"#666666";c.setAttribute("stroke",t),c.setAttribute("stroke-width","1")}else c.setAttribute("stroke","none");i.appendChild(c)}}if(o.children.length>0&&!o.parentNode&&i.insertBefore(o,i.firstChild),tg&&(p.setAttribute("stroke","none"),p.removeAttribute("stroke-width"),p.removeAttribute("marker-start"),p.removeAttribute("marker-end")),t.presetGeometry&&!tl){let e,r,n=(S=t.presetGeometry,e=S.toLowerCase(),null==(r=le.get(e)??le.get(S))?void 0:r(Y,V));if(n){let t=document.createElementNS(l,"path");t.setAttribute("d",n);let e="#333333";if(tn&&"transparent"!==tn&&"none"!==tn){let t=tn.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i);t&&(e=tF(Math.round(.5*parseInt(t[1],16)),Math.round(.5*parseInt(t[2],16)),Math.round(.5*parseInt(t[3],16))))}t.setAttribute("fill",e),t.setAttribute("stroke","none"),i.appendChild(t)}}D.appendChild(i)}}else tn&&"transparent"!==tn&&(tn.includes("gradient")?D.style.background=tn:D.style.backgroundColor=tn);if(t.textBody&&t.textBody.paragraphs.length>0&&function(t){for(let e of t.paragraphs)for(let t of e.runs)if(null!=t.text&&t.text.trim().length>0)return!0;return!1}(t.textBody)){let l=function(t,e){var l;let i,r;if(!t.textBody)return null;let n="textArchDown"===(r=null==(i=null==(l=t.textBody.bodyProperties)?void 0:l.child("prstTxWarp"))?void 0:i.attr("prst"))||"textArchUp"===r?r:null;if(!n)return null;let a=function(t){let e="",l=0;for(let i of t.paragraphs){let t=i.runs.filter(t=>null!=t.text&&t.text.length>0);if(0!==t.length){if(++l>1||t.some(t=>t.text===` 58`))return null;e+=t.map(t=>t.text).join("")}}return e.length>0?e:null}(t.textBody);if(!a)return null;let o=function(t){for(let e of t.paragraphs)for(let t of e.runs)if(null!=t.text&&t.text.length>0)return t.properties}(t.textBody),s=(null==o?void 0:o.numAttr("sz"))!==void 0?o.numAttr("sz")/100:12,d=ev([null==o?void 0:o.child("latin").attr("typeface"),null==o?void 0:o.child("ea").attr("typeface"),null==o?void 0:o.child("cs").attr("typeface")],e,[null==o?void 0:o.attr("lang"),null==o?void 0:o.attr("altLang")]),u=ti(null==o?void 0:o.attr("b"))?"bold":void 0,h=null==o?void 0:o.child("solidFill"),c=null!=h&&h.exists()?tY(h,e):"#000000",$="http://www.w3.org/2000/svg",f=document.createElementNS($,"svg");f.setAttribute("viewBox",`0 0 ${t.size.w} ${t.size.h}`),f.setAttribute("width",String(t.size.w)),f.setAttribute("height",String(t.size.h)),f.style.position="absolute",f.style.left="0",f.style.top="0",f.style.overflow="visible";let p=document.createElementNS($,"defs"),m=document.createElementNS($,"path"),x=`text-warp-${++lL}`;m.setAttribute("id",x),m.setAttribute("d",function(t,e,l){let i=Math.min(Math.max(.04*e,4),18),r=Math.max(i,e-i);if("textArchDown"===t){let t=.36*l;return`M${i},${t} Q${e/2},${.9*l} ${r},${t}`}let n=.66*l;return`M${i},${n} Q${e/2},${.08*l} ${r},${n}`}(n,t.size.w,t.size.h)),m.setAttribute("fill","none"),p.appendChild(m),f.appendChild(p);let g=document.createElementNS($,"text");g.setAttribute("font-size",`${s}pt`),d.length>0&&g.setAttribute("font-family",eF(d)),u&&g.setAttribute("font-weight",u),g.setAttribute("fill",c),g.setAttribute("dominant-baseline","middle");let y=document.createElementNS($,"textPath");return y.setAttribute("href",`#${x}`),y.setAttribute("startOffset","50%"),y.setAttribute("text-anchor","middle"),y.setAttribute("xml:space","preserve"),y.textContent=a,g.appendChild(y),f.appendChild(g),f}(t,e);if(l)D.appendChild(l);else{let l,i,r,n,a,o=document.createElement("div");o.style.position="absolute",t.textBoxBounds?(o.style.left=`${t.textBoxBounds.x}px`,o.style.top=`${t.textBoxBounds.y}px`,o.style.width=`${t.textBoxBounds.w}px`,o.style.height=`${t.textBoxBounds.h}px`):(o.style.left="0",o.style.top="0",o.style.width="100%",o.style.height="100%"),o.style.display="flex",o.style.flexDirection="column",o.style.boxSizing="border-box";let s=em(t.textBody,"spAutoFit"),d=null==s?void 0:s.exists(),u=em(t.textBody,"normAutofit"),h=null==u?void 0:u.exists(),c=em(t.textBody,"noAutofit"),$=null==c?void 0:c.exists(),f=t.textBody.bodyProperties,g=t.textBody.layoutBodyProperties,y=(f?f.attr("wrap"):void 0)??(g?g.attr("wrap"):void 0),b=(f?f.attr("horzOverflow"):void 0)??(g?g.attr("horzOverflow"):void 0),v=(f?f.attr("vertOverflow"):void 0)??(g?g.attr("vertOverflow"):void 0),M=d&&!h&&"overflow"===b,L=d&&!h&&"overflow"===v,A=!d&&!h&&!$&&lc(t.textBody)&&!(k=t.textBody).paragraphs.some(t=>t.runs.some(t=>null!=t.text&&t.text.length>0)&&function(t,e){var l,i;for(let r of[e.properties,null==(l=t.listStyle)?void 0:l.child(`lvl${e.level
58+1}pPr`),null==(i=t.listStyle)?void 0:i.child("defPPr")])if(null!=r&&r.exists()){if(r.child("buNone").exists())return!1;if(r.child("buChar").exists()||r.child("buAutoNum").exists()||r.child("buBlip").exists())return!0}return!1}(k,t))&&("none"===y||void 0===y&&(i=l$(t.textBody))>0&&i<=36),w=$&&((null==(E=t.placeholder)?void 0:E.type)==="title"||(null==E?void 0:E.type)==="ctrTitle")&&lc(t.textBody);o.style.overflowX="visible",o.style.overflowY="visible";let S=!1;if(h&&u){o.style.overflowX="hidden",o.style.overflowY="hidden";let t=u.numAttr("lnSpcReduction")??0;S=!0,t>0&&(o.style.lineHeight=`${1-t/1e5}`)}if(d&&!h){if(M===L){let t=M?"visible":"hidden";o.style.overflowX=t,o.style.overflowY=t}else o.style.overflowX=M?"visible":"clip",o.style.overflowY=L?"visible":"clip";S=!M||!L}A&&(o.style.overflowX="hidden",o.style.overflowY="hidden",S=!0),w&&(S=!0);let C=!1,F=!!d&&!h&&lc(t.textBody),j=0!==(r=t.textBody.paragraphs.filter(t=>t.runs.some(t=>null!=t.text&&t.text.length>0))).length&&r.every(t=>{var e;return(null==(e=t.properties)?void 0:e.attr("algn"))==="ctr"});{f&&"none"===y&&(o.style.whiteSpace="nowrap");let e=f?f.attr("anchor"):void 0,l=g?g.attr("anchor"):void 0,i=e||l,r=(f?f.attr("vert"):null)||(g?g.attr("vert"):null);"t"===i?o.style.justifyContent="flex-start":"ctr"===i?o.style.justifyContent="center":"b"===i?o.style.justifyContent="flex-end":o.style.justifyContent="flex-start";let n=(f?f.numAttr("lIns"):void 0)??(g?g.numAttr("lIns"):void 0),a=(f?f.numAttr("tIns"):void 0)??(g?g.numAttr("tIns"):void 0),s=(f?f.numAttr("rIns"):void 0)??(g?g.numAttr("rIns"):void 0),d=(f?f.numAttr("bIns"):void 0)??(g?g.numAttr("bIns"):void 0),u=q(void 0!==n?n:91440),h=q(void 0!==a?a:45720),c=q(void 0!==s?s:91440),$=q(void 0!==d?d:45720),m=(null==(p=t.textBoxBounds)?void 0:p.h)??t.size.h,x=A&&!r&&"ctr"===i&&m>0&&h+$>=m;o.style.paddingLeft=`${u}px`,o.style.paddingTop=`${x?0:h}px`,o.style.paddingRight=`${c}px`,o.style.paddingBottom=`${x?0:$}px`,"eaVert"===r?(lg(o,i),C=!0):"wordArtVert"===r?(lg(o,i,!0,"vertical-lr"),C=!0):"vert"===r?(lg(o,i),C=!0):"vert270"===r&&(lg(o,i),lf(o,"rotate(180deg)"),C=!0),F&&void 0===e&&void 0===l&&!C&&j&&(o.style.justifyContent="center")}if(null!=(m=t.textBoxBounds)&&m.rotation&&0!==t.textBoxBounds.rotation&&(lf(o,`rotate(${t.textBoxBounds.rotation}deg)`),o.style.transformOrigin="center center"),t.flipH||t.flipV){let t=o.style.transform||"";o.style.transform=`${t} scaleX(-1)`.trim()}let B=t.source.child("style");if(B.exists()){let t=B.child("fontRef");t.exists()&&t.allChildren().length>0&&(l=tY(t,e))}let P=l||C||d&&!h?{...l?{fontRefColor:l}:{},...C?{isVerticalText:C}:{},...d&&!h?(n=t.textBody.paragraphs.filter(t=>t.runs.some(t=>null!=t.text&&t.text.length>0)).length,a=!t.textBody.paragraphs.some(t=>{let e=t.properties;return(null==e?void 0:e.child("lnSpc").exists())||(null==e?void 0:e.child("spcBef").exists())||(null==e?void 0:e.child("spcAft").exists())})&&"none"!==y&&(n>1||l$(t.textBody)>36),{trimOuterParagraphSpacing:!0,...F&&!C&&("none"===y||j)?{compactSingleLineSpacing:!0,defaultLineHeight:"1"}:a?{defaultLineHeight:"1.1"}:{}}):{}}:void 0;if(e0(t.textBody,t.placeholder,e,o,P),D.appendChild(o),S){let t=
58o.style.transform,l=o.style.transformOrigin,i=o.style.width,r=o.style.height,n=o.style.whiteSpace,a=o.style.overflowY,s=()=>{var s;o.style.transform=t,o.style.transformOrigin=l,o.style.width=i,o.style.height=r,o.style.whiteSpace=n,o.style.overflowY=a;let u=D.isConnected,c=D.style.visibility,$=null!=(s=e.measurementRoot)&&s.isConnected?e.measurementRoot:document.body;u||(D.style.visibility="hidden",$.appendChild(D));let f=o.style.justifyContent,p=o.style.whiteSpace;o.style.justifyContent="flex-start";let m=o.clientWidth,x=o.clientHeight,g=o.scrollHeight,b=o.scrollWidth,v=b,S=g,k=m>0&&b<=m+1,E=F?1.25:1.1,B=x>0&&(g<=x||!L&&k&&g<=x*E),P=d&&!h&&!L&&k&&B&&g>x&&x>0,z=!1;C||M||m>0&&x>0&&k&&B||k&&B&&!F&&!A&&!w||(o.style.whiteSpace="nowrap",v=o.scrollWidth,S=o.scrollHeight,z=!0,o.style.whiteSpace=p),o.style.justifyContent=f,u||(D.parentNode===$&&$.removeChild(D),D.style.visibility=c);let N=1,I=w||A,R=d&&!h&&"none"!==y&&z&&!B&&v<=m+1&&S<=x;if(R&&(o.style.whiteSpace="nowrap"),!M&&v>m+1&&m>0){let t=m/v,e=d&&!h&&!B&&S<=x&&t>=.9;(!d||h||e||d&&!h&&F&&(void 0===y||"none"===y||j)||A||w)&&(!w||t>=.9)&&(N=Math.min(N,t))}let Z=d&&!h&&N<1&&S<=x&&!B;Z&&(o.style.whiteSpace="nowrap"),I||R||Z||L||B||!(S>x)||!(x>0)||(N=Math.min(N,x/S)),I||R||Z||L||1!==N||B||!(g>x)||!(x>0)||(N=x/g),N<1?(o.style.transform||(o.style.transformOrigin="top left"),lf(o,`scale(${N})`),o.style.width=lx(i,N),o.style.height=lx(r,N)):(P||A&&k&&g>x&&x>0)&&(o.style.overflowY="visible")},u=()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(()=>requestAnimationFrame(s)):setTimeout(s,0)};s(),u(),(null==(x=document.fonts)?void 0:x.status)==="loading"&&document.fonts.ready&&document.fonts.ready.then(()=>u()).catch(()=>{})}}}let tL=tr.child("effectLst");if(!tL.exists()){let l=t.source.child("style").child("effectRef").numAttr("idx")??0;if(l>0&&((null==(g=e.theme.effectStyles)?void 0:g.length)??0)>=l){let t=e.theme.effectStyles[l-1];if(t.exists()){let e=t.child("effectLst");e.exists()&&(tL=e)}}}if(tL.exists()){let l,i=tL.child("outerShdw");if(i.exists()){let l=i.numAttr("dir")??0,r=i.numAttr("dist")??0,n=i.numAttr("blurRad")??0,a=i.numAttr("sx"),o=i.numAttr("sy"),s=i.attr("algn"),d=l/6e4,u=q(r),h=q(n),c=u*Math.cos(d*Math.PI/180),$=u*Math.sin(d*Math.PI/180),f="rgba(0,0,0,0.4)",p={r:0,g:0,b:0},{color:m,alpha:x}=tG(i,e);if(m){let{r:t,g:e,b:l}=tk(m.startsWith("#")?m:`#${m}`);p={r:t,g:e,b:l},f=`rgba(${t},${e},${l},${x.toFixed(3)})`}if(null!=a&&null!=o&&a>0&&o>0){let e=a/1e5,l=o/1e5,i=(null==(y=t.size)?void 0:y.w)??100,r=(null==(b=t.size)?void 0:b.h)??100,n=i,d=r;if(W||i<=1||r<=1){let e=Math.max(1,q((null==(v=t.line)?void 0:v.numAttr("w"))??12700));n=e,d=e}let u=Math.max(0,(n*(e-1)/2+d*(l-1)/2)/2),g=0,M=0;if(s){let t=s.toLowerCase();("t"===t||"tl"===t||"tr"===t)&&(M=d*(l-1)/2),("b"===t||"bl"===t||"br"===t)&&(M=-d*(l-1)/2),("l"===t||"tl"===t||"bl"===t)&&(g=n*(e-1)/2),("r"===t||"tr"===t||"br"===t)&&(g=-n*(e-1)/2)}let L=u>0?Math.min(h,3*u):h,A=x;if(u>0&&h>0&&u<h&&(A=u/h*x),A>=.01){let t=c+g,e=$+M,l=f;if(m){let{r:t,g:e,b:i}=tk(m.startsWith("#")?m:`#${m}`);p={r:t,g:e,b:i},l=`rgba(${t},${e},${i},${A.toFixed(4)})`}!W&&ty&&tb&&tv&&tM?lA(ty,tb,tv,tM,{dx:t,dy:e,blur:L,color:p,opacity:A}):D.style.boxShadow=`${t.toFixed(1)}px ${e.toFixed(1)}px ${L.toFixed(1)}px ${u.toFixed(1)}px ${l}`}}else!W&&ty&&tb&&tv&&tM?lA(ty,tb,tv,tM,{dx:c,dy:$,blur:h,color:p,opacity:x}):lp(D,`drop-shadow(${c.toFixed(1)}px ${$.toFixed(1)}px ${h.toFixed(1)}px ${f})`)}let r=tL.child("glow");r.exists()&&(l=function(t,e){let l=q(t.numAttr("rad")??0);if(!(l>0))return;let{color:i,alpha:r}=tG(t,e);if(!i||r<=0)return;let{r:n,g:a,b:o}=tk(i.startsWith("#")?i:`#${i}`);return`drop-shadow(0px 0px ${l.toFixed(1)}px rgba(${n},${a},${o},${r.toFixed(3)}))`}(r,e))&&lp(D,l);let n=tL.child("softEdge");if(n.exists()&&!W&&ty&&tb&&tv&&tM){let t=q(n.numAttr("rad")??0);t>0&&function(t,e,l,i,r){let n=`shape-soft-edge-${++lL}`,a=document.createElementNS(t,"filter"),o=Math.max(4*r+4,i.w,i.h);a.setAttribute("id",n),a.setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x",String(-o)),a.setAttribute("y",String(-o)),a.setAttribute("width",String(i.w+2*o)),a.setAttribute("height",String(i.h+2*o));let s=document.createElementNS(t,"feGaussianBlur");s.setAttribute("in","SourceGraphic"),s.setAttribute("stdDeviation",Math.max(0,r/2).toFixed(2)),a.appendChild(s),e.appendChild(a),!e.parentNode&&l.ownerSVGElement&&l.ownerSVGElement.insertBefore(e,l.ownerSVGElement.firstChild);let d=l.parentNode;if(!d)return;let u=document.createElementNS(t,"g");u.setAttribute("filter",`url(#${n})`),d.insertBefore(u,l),u.appendChild(l)}(ty,tb,tv,tM,t)}let a=tL.child("innerShdw");if(a.exists()&&!W&&ty&&tb&&tv&&tM){let t=a.numAttr("dir")??0,l=q(a.numAttr("dist")??0),i=q(a.numAttr("blurRad")??0),r=t/6e4,n=l*Math.cos(r*Math.PI/180),o=l*Math.sin(r*Math.PI/180),{color:s,alpha:d}=tG(a,e);
58if(s&&d>0){let t,e,l,r,a,u,h,c,$,f,p,m=s.startsWith("#")?s:`#${s}`;j=ty,B=tb,P=tv,z=tM,N={dx:n,dy:o,blur:i,color:tk(m),opacity:d},t=`shape-inner-shadow-${++lL}`,e=document.createElementNS(j,"filter"),l=Math.max(Math.abs(N.dx),Math.abs(N.dy))+4*N.blur+4,e.setAttribute("id",t),e.setAttribute("filterUnits","userSpaceOnUse"),e.setAttribute("x",String(-l)),e.setAttribute("y",String(-l)),e.setAttribute("width",String(z.w+2*l)),e.setAttribute("height",String(z.h+2*l)),(r=document.createElementNS(j,"feOffset")).setAttribute("in","SourceAlpha"),r.setAttribute("dx",N.dx.toFixed(1)),r.setAttribute("dy",N.dy.toFixed(1)),r.setAttribute("result","innerOffset"),e.appendChild(r),(a=document.createElementNS(j,"feGaussianBlur")).setAttribute("in","innerOffset"),a.setAttribute("stdDeviation",Math.max(0,N.blur/2).toFixed(2)),a.setAttribute("result","innerBlur"),e.appendChild(a),(u=document.createElementNS(j,"feComposite")).setAttribute("in","innerBlur"),u.setAttribute("in2","SourceAlpha"),u.setAttribute("operator","in"),u.setAttribute("result","innerMask"),e.appendChild(u),(h=document.createElementNS(j,"feFlood")).setAttribute("flood-color",`rgb(${N.color.r},${N.color.g},${N.color.b})`),h.setAttribute("flood-opacity",N.opacity.toFixed(4)),h.setAttribute("result","innerColor"),e.appendChild(h),(c=document.createElementNS(j,"feComposite")).setAttribute("in","innerColor"),c.setAttribute("in2","innerMask"),c.setAttribute("operator","in"),c.setAttribute("result","innerShadow"),e.appendChild(c),$=document.createElementNS(j,"feMerge"),(f=document.createElementNS(j,"feMergeNode")).setAttribute("in","SourceGraphic"),(p=document.createElementNS(j,"feMergeNode")).setAttribute("in","innerShadow"),$.appendChild(f),$.appendChild(p),e.appendChild($),B.appendChild(e),!B.parentNode&&P.ownerSVGElement&&P.ownerSVGElement.insertBefore(B,P.ownerSVGElement.firstChild),P.setAttribute("filter",`url(#${t})`)}}let o=tL.child("reflection");if(o.exists()){let t=q(o.numAttr("dist")??0),e=(o.numAttr("stA")??5e4)/1e5,l=(o.numAttr("endA")??0)/1e5,i=Math.max(0,Math.min(100,(o.numAttr("stPos")??0)/1e3)),r=Math.max(0,Math.min(100,(o.numAttr("endPos")??1e5)/1e3)),n=`linear-gradient(to bottom, rgba(255,255,255,${e.toFixed(3)}) ${i.toFixed(1)}%, rgba(255,255,255,${l.toFixed(3)}) ${r.toFixed(1)}%)`,a=`below ${t.toFixed(1)}px ${n}`;D.style.setProperty("-webkit-box-reflect",a),D.style.webkitBoxReflect=a}}if(t.hlinkClick&&e.onNavigate){let{action:l,rId:i}=t.hlinkClick,r=i?e.slide.rels.get(i):void 0,n=ez(e,l,r);void 0!==n?(D.style.cursor="pointer",D.title=t.hlinkClick.tooltip||eN(n),D.addEventListener("click",t=>{t.stopPropagation(),e.onNavigate({slideIndex:n})})):i&&r&&G(r.targetMode)&&ei(r.target)&&(D.style.cursor="pointer",D.title=t.hlinkClick.tooltip||r.target,D.addEventListener("click",t=>{t.stopPropagation(),e.onNavigate({url:r.target})}))}return D}(t,e);case"picture":return function(t,e){var l,i,r,n,a,o,s,d,u;let h,c,$=document.createElement("div");$.style.position="absolute",$.style.left=`${t.position.x}px`,$.style.top=`${t.position.y}px`,$.style.width=`${t.size.w}px`,$.style.height=`${t.size.h}px`,$.style.overflow="hidden";let f=il(t),p=[];if(0!==t.rotation&&p.push(`rotate(${t.rotation}deg)`),t.flipH&&!f&&p.push("scaleX(-1)"),t.flipV&&!f&&p.push("scaleY(-1)"),p.length>0&&($.style.transform=p.join(" ")),i=$,r=t,n=e,a=i,o=r,s=n,(h=t_(o.source.child("spPr"),s))&&function(t,e){var l;if((l=t).style.background="",l.style.backgroundColor="",l.style.backgroundImage="",l.style.backgroundRepeat="",l.style.backgroundSize="",e.includes("gradient")&&e.includes(" 0 0 / ")){let l=en(e);if(l){t.style.backgroundImage=l.imageLayers,t.style.backgroundSize="8px 8px",t.style.backgroundRepeat="repeat",t.style.backgroundColor=l.color;return}}e.includes("gradient")||e.startsWith("url(")||e.includes("repeating-")?t.style.background=e:t.style.backgroundColor=e}(a,h),function(t,e,l){var i,r,n;let a=e.source.child("style").child("lnRef");if(null==(i=e.line)?void 0:i.child("noFill").exists())return;let o=(null==(r=e.line)?void 0:r.exists())??!1,s=!o&&a.exists()&&(a.numAttr("idx")??0)>0&&((null==(n=l.theme.lineStyles)?void 0:n.length)??0)>=(a.numAttr("idx")??0)?l.theme.lineStyles[(a.numAttr("idx")??1)-1]:void 0,d=o?e.line:s;if(!(null!=d&&d.exists()))return;let u=tJ(d,l,a);u.width<=0||"transparent"===u.color||(t.style.boxSizing="border-box",t.style.border=`${u.width}px ${u.dash} ${u.color}`)}(i,r,n),function(t,e,l){var i,r;let n,a,o,s,d,u,h,c=e.source.child("spPr").child("effectLst");if(!c.exists())return;let $=c.child("outerShdw");$.exists()&&function(t,e,l,i){let r=l.numAttr("dir")??0,n=q(l.numAttr("dist")??0),a=q(l.numAttr("blurRad")??0),o=r/6e4,s=n*Math.cos(o*Math.PI/180),d=n*Math.sin(o*Math.PI/180),u=function(t,e,l){let{color:i,alpha:r}=tG(t,e);if(!i)return l;let{r:n,g:a,b:o}=tk(i.startsWith("#")?i:`#${i}`);return`rgba(${n},${a},${o},${r.toFixed(3)})`}(l,i,"rgba(0,0,0,0.4)"),h=l.numAttr("sx"),c=l.numAttr("sy");if(null!=h&&null!=c&&h>0&&c>0){let l=Math.max(0,(e.size.w*(h/1e5-1)/2+e.size.h*(c/1e5-1)/2)/2);t.style.boxShadow=`${s.toFixed(1)}px ${d.toFixed(1)}px ${a.toFixed(1)}px ${l.toFixed(1)}px ${u}`;return}ii(t,`drop-shadow(${s.toFixed(1)}px ${d.toFixed(1)}px ${a.toFixed(1)}px ${u})`)}(t,e,$,l);let f=c.child("glow");f.exists()&&function(t,e,l){let i=q(e.numAttr("rad")??0);if(!(i>0))return;let{color:r,alpha:n}=tG(e,l);if(!r||n<=0)return;
58let{r:a,g:o,b:s}=tk(r.startsWith("#")?r:`#${r}`);ii(t,`drop-shadow(0px 0px ${i.toFixed(1)}px rgba(${a},${o},${s},${n.toFixed(3)}))`)}(t,f,l);let p=c.child("softEdge");p.exists()&&function(t,e,l){let i=q(l.numAttr("rad")??0);if(!(i>0))return;let r=Math.max(0,Math.min(e.size.w,e.size.h)/2),n=r>0?Math.min(i,r):i,a=`${Number(n.toFixed(4))}px`,o="var(--pptx-soft-edge-radius)",s=`linear-gradient(to right, transparent 0, black ${o}, black calc(100% - ${o}), transparent 100%), linear-gradient(to bottom, transparent 0, black ${o}, black calc(100% - ${o}), transparent 100%)`;t.style.setProperty("--pptx-soft-edge-radius",a),t.style.setProperty("-webkit-mask-image",s),t.style.setProperty("mask-image",s),t.style.setProperty("-webkit-mask-size","100% 100%"),t.style.setProperty("mask-size","100% 100%"),t.style.setProperty("-webkit-mask-repeat","no-repeat"),t.style.setProperty("mask-repeat","no-repeat"),t.style.setProperty("-webkit-mask-composite","source-in"),t.style.setProperty("mask-composite","intersect");let d=t.style;d.webkitMaskImage=s,d.maskImage=s,d.webkitMaskComposite="source-in",d.maskComposite="intersect"}(t,e,p);let m=c.child("reflection");m.exists()&&(i=t,n=q((r=m).numAttr("dist")??0),a=(r.numAttr("stA")??5e4)/1e5,o=(r.numAttr("endA")??0)/1e5,s=Math.max(0,Math.min(100,(r.numAttr("stPos")??0)/1e3)),d=Math.max(0,Math.min(100,(r.numAttr("endPos")??1e5)/1e3)),u=`linear-gradient(to bottom, rgba(255,255,255,${a.toFixed(3)}) ${s.toFixed(1)}%, rgba(255,255,255,${o.toFixed(3)}) ${d.toFixed(1)}%)`,h=`below ${n.toFixed(1)}px ${u}`,i.style.setProperty("-webkit-box-reflect",h),i.style.webkitBoxReflect=h)}(i,r,n),function(t,e,l){if(!e.hlinkClick||!l.onNavigate)return;let{action:i,rId:r}=e.hlinkClick,n=r?l.slide.rels.get(r):void 0,a=ez(l,i,n);if(void 0!==a){t.style.cursor="pointer",t.title=e.hlinkClick.tooltip||eN(a),t.addEventListener("click",t=>{t.stopPropagation(),l.onNavigate({slideIndex:a})});return}r&&n&&G(n.targetMode)&&ei(n.target)&&(t.style.cursor="pointer",t.title=e.hlinkClick.tooltip||n.target,t.addEventListener("click",t=>{t.stopPropagation(),l.onNavigate({url:n.target})}))}(i,r,n),t.isVideo)return function(t,e,l){let i,r=ir(t.mediaRId,e);if(t.blipEmbed){let l=e.slide.rels.get(t.blipEmbed);l&&(i=l7(l,e))}if(r){let t=document.createElement("video");t.src=r,t.preload="none",t.controls=!0,t.style.width="100%",t.style.height="100%",t.style.objectFit="contain",t.style.backgroundColor="#000",i&&(t.poster=i),l.appendChild(t)}else if(i){let t=document.createElement("img");t.src=i,t.style.width="100%",t.style.height="100%",t.style.objectFit="fill",l.appendChild(t);let e=document.createElement("div");e.style.position="absolute",e.style.inset="0",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.backgroundColor="rgba(0,0,0,0.3)",e.style.color="#fff",e.style.fontSize="24px",e.textContent="▶",l.appendChild(e)}else ia(l,"Video")}(t,e,$),$;if(t.isAudio)return function(t,e,l){let i=ir(t.mediaRId,e);if(i){if(t.blipEmbed){let i=e.slide.rels.get(t.blipEmbed);if(i){let t=l7(i,e);if(t){let e=document.createElement("img");e.src=t,e.style.width="100%",e.style.height="calc(100% - 32px)",e.style.objectFit="contain",l.appendChild(e)}}}let r=document.createElement("audio");r.src=i,r.preload="none",r.controls=!0,r.style.width="100%",r.style.position="absolute",r.style.bottom="0",r.style.left="0",l.appendChild(r)}else ia(l,"Audio")}(t,e,$),$;let m=t.blipEmbed;if(m){let i=e.slide.rels.get(m);if(!i)return ia($,"Missing image reference"),$;if(G(i.targetMode)){if(!(c=er(i.target)?i.target:void 0))return ia($,"Image not found"),$}else{let r=w(i.target);if(l4(r)){let t,e,l,i;return d=$,t=(null==(u=r.split(".").pop())?void 0:u.toUpperCase())||"Unknown",(e=document.createElement("div")).style.width="100%",e.style.height="100%",e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.justifyContent="center",e.style.backgroundColor="#f5f5f5",e.style.color="#999",e.style.fontSize="11px",e.style.border="1px dashed #ddd",(l=document.createElement("div")).style.fontSize="24px",l.style.marginBottom="4px",l.textContent="\uD83D\uDDBC",(i=document.createElement("div")).textContent=`Unsupported format: ${t}`,e.appendChild(l),e.appendChild(i),d.appendChild(e),$}let n=C(i.target,e.presentation.media);
58if(!n){if(e.presentation.mediaResolver){let r=k(i.target,e.presentation.media,e.presentation.mediaResolver).then(l=>{l?l9(t,e,$,l.mediaPath,l.data):ia($,"Image not found")}).catch(()=>{ia($,"Image not found")});return null==(l=e.asyncTasks)||l.push(r),e.asyncTasks,$}return ia($,"Image not found"),$}return l9(t,e,$,n.mediaPath,n.data),$}}else if(!t.blipLink)return ia($,"No image data"),$;else if(!(c=ir(t.blipLink,e)))return ia($,"Image not found"),$;return it(t,e,$,c),$}(t,e);case"table":return function(t,e){let l=document.createElement("div");l.style.position="absolute",l.style.left=`${t.position.x}px`,l.style.top=`${t.position.y}px`,l.style.width=`${t.size.w}px`,l.style.height=`${t.size.h}px`,l.style.overflow="hidden";let i=[];0!==t.rotation&&i.push(`rotate(${t.rotation}deg)`),t.flipH&&i.push("scaleX(-1)"),t.flipV&&i.push("scaleY(-1)"),i.length>0&&(l.style.transform=i.join(" "));let r=function(t,e){if(!t||!e.presentation.tableStyles)return;let l=e.presentation.tableStyles;for(let e of l.children("tblStyle"))if(e.attr("styleId")===t)return e;for(let e of l.children())if("tblStyle"===e.localName&&e.attr("styleId")===t)return e;return function(t){let e=ip.get(t);if(e)return e;let l=is.get(t);if(!l)return;let[i,r]=l,n=i$[i];if(!n)return;let a=U(n(r,t));if(a.exists())return ip.set(t,a),a}(t)}(t.tableStyleId,e),n=t.properties,a=t.rows.length,o=t.columns.length,s=document.createElement("table");s.style.borderCollapse="collapse",s.style.width="100%",s.style.height="100%",s.style.tableLayout="fixed",r&&function(t,e,l){let i=e.child("tblBg");if(!i.exists())return;let r=i.child("fillRef");if(r.exists()){let{fillCss:e}=t7(r,l);im(t,e);return}let n=i.child("solidFill");if(n.exists()){ix(t);let{color:e,alpha:i}=tG(n,l),r=e.startsWith("#")?e:`#${e}`;if(i<1){let{r:e,g:l,b:n}=tk(r);t.style.backgroundColor=`rgba(${e},${l},${n},${i.toFixed(3)})`}else t.style.backgroundColor=r;return}let a=t_(i,l);a&&im(t,a)}(s,r,e);let d=t.columns.reduce((t,e)=>t+e,0);if(d>0&&t.columns.length>0){let e=document.createElement("colgroup");for(let l of t.columns){let t=document.createElement("col");t.style.width=`${l/d*100}%`,e.appendChild(t)}s.appendChild(e)}let u=t.rows.reduce((t,e)=>t+e.height,0),h=document.createElement("tbody"),c=0;for(let l=0;l<t.rows.length;l++){let i=t.rows[l],s=document.createElement("tr");for(let d of(i.height>0&&u>0&&(s.style.height=`${i.height/u*100}%`),c=0,i.cells)){if(d.hMerge||d.vMerge){d.vMerge&&!d.hMerge&&(c+=d.gridSpan);continue}let i=document.createElement("td");i.style.overflow="hidden",d.gridSpan>1&&(i.colSpan=d.gridSpan),d.rowSpan>1&&(i.rowSpan=d.rowSpan);let u=[];if(r)for(let t of u=function(t,e,l,i,r,n){let a=[],o=(t,e)=>{if(!n)return!1;let l=n.attr(t);if(void 0!==l)return ti(l);let i=n.child(e);return!!i.exists()&&ti(i.attr("val"),!0)},s=o("bandRow","bandRow"),d=o("bandCol","bandCol"),u=o("firstRow","firstRow"),h=o("lastRow","lastRow"),c=o("firstCol","firstCol"),$=o("lastCol","lastCol"),f=t.child("wholeTbl");if(f.exists()&&a.push(f),s){let l=u?e-1:e;if(l>=0&&l%2==1){let e=t.child("band2H");e.exists()&&a.push(e)}else if(l>=0&&l%2==0){let e=t.child("band1H");e.exists()&&a.push(e)}}if(d)if(l%2==1){let e=t.child("band2V");e.exists()&&a.push(e)}else{let e=t.child("band1V");e.exists()&&a.push(e)}if(u&&0===e){let e=t.child("firstRow");e.exists()&&a.push(e)}if(h&&e===i-1){let e=t.child("lastRow");e.exists()&&a.push(e)}if(c&&0===l){let e=t.child("firstCol");e.exists()&&a.push(e)}if($&&l===r-1){let e=t.child("lastCol");e.exists()&&a.push(e)}return a}(r,l,c,a,o,n)){let r=t.child("tcStyle");r.exists()&&(function(t,e,l){let i=e.child("fill");if(!i.exists())return;if(i.child("noFill").exists())return ix(t),t.style.background="transparent";let r=i.child("solidFill");if(r.exists()){ix(t);let{color:e,alpha:i}=tG(r,l),n=e.startsWith("#")?e:`#${e}`;if(i<1){let{r:e,g:l,b:r}=tk(n);t.style.backgroundColor=`rgba(${e},${l},${r},${i.toFixed(3)})`}else t.style.backgroundColor=n;return}let n=t_(i,l);if(n)return im(t,n);let a=i.child("fillRef");if(a.exists()){let{fillCss:e}=t7(a,l);im(t,e)}}(i,r,e),function(t,e,l,i,r,n,a){let o=e.child("tcBdr");if(!o.exists())return;let s=[["top","borderTop"],["bottom","borderBottom"],["left","borderLeft"],["right","borderRight"]];for(let[e,d]of(o.child("insideH").exists()&&void 0!==i&&void 0!==n&&(i<n-1&&s.push(["insideH","borderBottom"]),i>0&&s.push(["insideH","borderTop"])),o.child("insideV").exists()&&void 0!==r&&void 0!==a&&(r<a-1&&s.push(["insideV","borderRight"]),r>0&&s.push(["insideV","borderLeft"])),s)){let i=o.child(e);if(!i.exists())continue;let r=i.child("ln");if(r.exists()){if(r.child("noFill").exists())continue;let e=tJ(r,l);e.width>0&&"transparent"!==e.color&&(t.style[d]=`${Math.max(e.width,.5)}px ${e.dash} ${e.color}`);continue}let n=i.child("lnRef");if(n.exists()){let e=n.numAttr("idx")??0;if(0===e)continue;let{color:i,alpha:r}=tG(n,l),a=i.startsWith("#")?i:`#${i}`,o=1;l.theme.lineStyles&&l.theme.lineStyles.length>
58=e&&(o=q(l.theme.lineStyles[e-1].numAttr("w")??12700));let s=r<1?`rgba(${tk(a).r},${tk(a).g},${tk(a).b},${r.toFixed(3)})`:a;o>0&&(t.style[d]=`${Math.max(o,.5)}px solid ${s}`)}}}(i,r,e,l,c,a,o))}!function(t,e,l){let i=e.properties;if((null==i?void 0:i.attr("horzOverflow"))==="overflow"&&(t.style.overflow="visible"),i){if(i.child("noFill").exists())ix(t),t.style.background="transparent";else if(i.child("solidFill").exists()){let e=i.child("solidFill");ix(t);let{color:r,alpha:n}=tG(e,l),a=r.startsWith("#")?r:`#${r}`;if(n<1){let{r:e,g:l,b:i}=tk(a);t.style.backgroundColor=`rgba(${e},${l},${i},${n.toFixed(3)})`}else t.style.backgroundColor=a}else{let e=t_(i,l);e&&im(t,e)}iy(t,i,"lnT","borderTop",l),iy(t,i,"lnB","borderBottom",l),iy(t,i,"lnL","borderLeft",l),iy(t,i,"lnR","borderRight",l)}let r=null==i?void 0:i.numAttr("marL"),n=null==i?void 0:i.numAttr("marR"),a=null==i?void 0:i.numAttr("marT"),o=null==i?void 0:i.numAttr("marB");t.style.paddingLeft=`${q(r??91440)}px`,t.style.paddingRight=`${q(n??91440)}px`,t.style.paddingTop=`${q(a??45720)}px`,t.style.paddingBottom=`${q(o??45720)}px`;let s=null==i?void 0:i.attr("anchor");t.style.verticalAlign=({t:"top",ctr:"middle",b:"bottom"})[s||"t"]||"top"}(i,d,e);let h=u.length>0?function(t,e){for(let l=t.length-1;l>=0;l--){let i=t[l].child("tcTxStyle");if(!i.exists())continue;let r={},n=i.attr("b");void 0!==n&&(r.bold=ti(n));let a=i.attr("i");for(let t of(void 0!==a&&(r.italic=ti(a)),i.allChildren())){let l=t.localName;if("schemeClr"===l||"solidFill"===l||"srgbClr"===l||"scrgbClr"===l||"prstClr"===l||"sysClr"===l){let{color:l,alpha:i}=tG(t,e),n=l.startsWith("#")?l:`#${l}`;if(i<1){let{r:t,g:e,b:l}=tk(n);r.color=`rgba(${t},${e},${l},${i.toFixed(3)})`}else r.color=n;break}}let o=i.child("font");if(o.exists()){let t=ev([o.child("latin").attr("typeface"),o.child("ea").attr("typeface"),o.child("cs").attr("typeface")],e);t.length>0&&(r.fontFamily=t)}if(!r.fontFamily){let t=i.child("fontRef");if(t.exists()){let l=t.attr("idx");if("major"===l){let t=ev(["+mj-lt","+mj-ea","+mj-cs"],e);t.length>0&&(r.fontFamily=t)}else if("minor"===l){let t=ev(["+mn-lt","+mn-ea","+mn-cs"],e);t.length>0&&(r.fontFamily=t)}}}return r}}(u,e):void 0;if(d.textBody){let l=ig(t)?document.createElement("div"):i,r=ig(t);r&&l!==i&&(l.style.width="100%",l.style.height="100%",l.style.transform=r,l.style.transformOrigin="center center");let n={defaultLineHeight:"1",trimOuterParagraphSpacing:!0,...h?{cellTextColor:h.color,cellTextBold:h.bold,cellTextItalic:h.italic,cellTextFontFamily:h.fontFamily}:{}};e0(d.textBody,void 0,e,l,n),l!==i&&i.appendChild(l)}s.appendChild(i),c+=d.gridSpan}h.appendChild(s)}return s.appendChild(h),l.appendChild(s),l}(t,e);case"group":return function(t,e,l){let i=document.createElement("div");i.style.position="absolute",i.style.left=`${t.position.x}px`,i.style.top=`${t.position.y}px`,i.style.width=`${t.size.w}px`,i.style.height=`${t.size.h}px`;let r=[];0!==t.rotation&&r.push(`rotate(${t.rotation}deg)`),r.length>0&&(i.style.transform=r.join(" "),i.style.transformOrigin="center center");let n=t.childOffset,a=t.childExtent,o=t.size.w,s=t.size.h,d=t.source.child("grpSpPr"),u={...e};if(d.exists()){for(let l of(!function(t,e,l,i){let r,n,a,o,s,d,u,h=i.child("effectLst");if(!h.exists())return;let c=h.child("outerShdw");c.exists()&&function(t,e,l,i){let r=l.numAttr("dir")??0,n=q(l.numAttr("dist")??0),a=q(l.numAttr("blurRad")??0),o=r/6e4,s=n*Math.cos(o*Math.PI/180),d=n*Math.sin(o*Math.PI/180),u=function(t,e,l){let{color:i,alpha:r}=tG(t,e);if(!i)return l;let{r:n,g:a,b:o}=tk(i.startsWith("#")?i:`#${i}`);return`rgba(${n},${a},${o},${r.toFixed(3)})`}(l,i,"rgba(0,0,0,0.4)"),h=l.numAttr("sx"),c=l.numAttr("sy");if(null!=h&&null!=c&&h>0&&c>0){let l=Math.max(0,(e.size.w*(h/1e5-1)/2+e.size.h*(c/1e5-1)/2)/2);t.style.boxShadow=`${s.toFixed(1)}px ${d.toFixed(1)}px ${a.toFixed(1)}px ${l.toFixed(1)}px ${u}`;return}t.style.filter=`drop-shadow(${s.toFixed(1)}px ${d.toFixed(1)}px ${a.toFixed(1)}px ${u})`}(t,e,c,l);let $=h.child("reflection");$.exists()&&(r=q($.numAttr("dist")??0),n=($.numAttr("stA")??5e4)/1e5,a=($.numAttr("endA")??0)/1e5,o=Math.max(0,Math.min(100,($.numAttr("stPos")??0)/1e3)),s=Math.max(0,Math.min(100,($.numAttr("endPos")??1e5)/1e3)),d=`linear-gradient(to bottom, rgba(255,255,255,${n.toFixed(3)}) ${o.toFixed(1)}%, rgba(255,255,255,${a.toFixed(3)}) ${s.toFixed(1)}%)`,u=`below ${r.toFixed(1)}px ${d}`,t.style.setProperty("-webkit-box-reflect",u),t.style.webkitBoxReflect=u)}(i,t,e,d),["solidFill","gradFill","blipFill","pattFill"]))if(d.child(l).exists()){u.groupFillNode=d;break}!u.groupFillNode&&d.child("grpFill").exists()&&e.groupFillNode&&(u.groupFillNode=e.groupFillNode)}let h=new Map,c=l=>{var i,r,n;let a;return h.has(l)||h.set(l,(i=t.children[l],r=e,n=t,(a=tc(i,{rels:r.slide.rels,partPath:r.partPath??r.slide.slidePath,diagramDrawings:r.presentation.diagramDrawings,skipPlaceholders:r.skipPlaceholderChildren}))&&tC(a,r.layout,r.master,{parentGroup:n}),a)),h.get(l)},$=null,f=null;if(6===t.children.length&&a.w>0&&a.h>0){let e=t=>t.child("spPr").child("prstGeom").attr("prst"),l=t.children.slice(0,3).every(t=>"pie"===e(t)),i=t.children.slice(3,6).every(t=>"circularArrow"===e(t));if(l&&i){let t=[0,1,2].map(t=>
58c(t)).filter(Boolean);if(3===t.length){let e=Math.min(Math.max(...t.map(t=>t.size.w)),Math.max(...t.map(t=>t.size.h)),a.w,a.h),l=n.x+a.w/2,i=n.y+a.h/2;$={x:(l-e/2-n.x)/a.w*o,y:(i-e/2-n.y)/a.h*s,w:e/a.w*o,h:e/a.h*s};let r=t[0].size;t.every(t=>.01>Math.abs(t.size.w-r.w)&&.01>Math.abs(t.size.h-r.h))&&(f=new Map(t.map((t,e)=>[e,{x:(t.position.x+t.size.w/2-l)/a.w*o,y:(t.position.y+t.size.h/2-i)/a.h*s}])))}}}for(let e of($?[3,4,5,0,1,2]:void 0)??t.children.map((t,e)=>e))try{let r=c(e);if(!r)continue;if(a.w>0&&a.h>0){let t=o/a.w,e=s/a.h,l=function(t){let e=(t%360+360)%360;return 1e-4>Math.abs(e-90)||1e-4>Math.abs(e-270)}(r.rotation),i=r.position,d=r.size;if(l){let l=i.x+(d.w-d.h)/2,a=i.y+(d.h-d.w)/2,o={w:d.w*e,h:d.h*t};r.position={x:(l-n.x)*t-(o.w-o.h)/2,y:(a-n.y)*e-(o.h-o.w)/2},r.size=o}else r.position={x:(i.x-n.x)*t,y:(i.y-n.y)*e},r.size={w:d.w*t,h:d.h*e};!function(t,e,l,i){if("shape"!==t.nodeType||!t.textBoxBounds)return;let r=i?l:e,n=i?e:l,a=t.textBoxBounds;t.textBoxBounds={...a,x:a.x*r,y:a.y*n,w:a.w*r,h:a.h*n}}(r,t,e,l)}if(t.flipH&&(r.position={...r.position,x:o-r.position.x-r.size.w},ib(r)&&(r.flipH=!r.flipH)),t.flipV&&(r.position={...r.position,y:s-r.position.y-r.size.h},ib(r)&&(r.flipV=!r.flipV)),$&&e<3&&"shape"===r.nodeType){let t=r.size.w,l=r.size.h,i=(null==f?void 0:f.get(e))??{x:0,y:0};if(r.position={x:$.x+i.x,y:$.y+i.y},r.size={w:$.w,h:$.h},t>0&&l>0&&r.textBoxBounds){let e=r.textBoxBounds;r.textBoxBounds={x:e.x/t*$.w,y:e.y/l*$.h,w:e.w/t*$.w,h:e.h/l*$.h}}}let d=l(r,u);i.appendChild(d)}catch{let t=document.createElement("div");t.style.position="absolute",t.style.border="1px dashed #ff6b6b",t.style.backgroundColor="rgba(255,107,107,0.1)",t.style.fontSize="10px",t.style.color="#cc0000",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.padding="2px",t.textContent="Group child error",i.appendChild(t)}return i}(t,e,r0);case"chart":return function(t,e){var l,i,r,o;let s,d,u,h,c,$,f=document.createElement("div");f.style.position="absolute",f.style.left=`${t.position.x}px`,f.style.top=`${t.position.y}px`,f.style.width=`${t.size.w}px`,f.style.height=`${t.size.h}px`,f.style.overflow="hidden",f.style.display="flex",f.style.flexDirection="column";let p=null==(l=e.presentation.charts)?void 0:l.get(t.chartPath);if(!p)return f.style.border="1px dashed #ccc",f.style.display="flex",f.style.alignItems="center",f.style.justifyContent="center",f.style.color="#999",f.style.fontSize="12px",f.textContent="Chart not found",f;let m=document.createElement("div");m.style.width="100%",m.style.flex="1",m.style.minWidth="0",m.style.minHeight="0",m.style.overflow="hidden",f.appendChild(m);let x=null==(i=e.presentation.chartThemes)?void 0:i.get(t.chartPath),{option:g,dataTable:y,chartFrameStyle:b}=function(t,e,l,i){let r,a=(r=function(t){let e=t.child("clrMapOvr");if(!e.exists())return;let l=e.element,i=e.child("overrideClrMapping");if(i.exists()&&i.element)l=i.element;else if(e.child("masterClrMapping").exists())return;if(!l)return;let r=l.attributes,n=new Map;for(let t=0;t<r.length;t++){let e=r[t];n.set(e.localName,e.value)}return n.size>0?n:void 0}(t))?{...e,layout:{...e.layout,colorMapOverride:r},colorCache:new Map}:e,o=function(t,e,l){var i;if(l){let t=function(t,e){if(!(null!=t&&t.exists()))return[];let l=[];for(let i of t.allChildren()){let t=function(t,e){if(!t.element||!i8.has(t.localName))return;let l=t.element.ownerDocument.createElementNS(t.element.namespaceURI,"solidFill");return l.appendChild(t.element.cloneNode(!0)),iC(new H(l),e)}(i,e);t&&l.push(t)}return l}(null==(i=e.presentation.chartColorStyles)?void 0:i.get(l),e);if(t.length>0)return t}let r=i7(e);return 0===r.length?void 0:(function(t){if(void 0!==t.child("style").numAttr("val"))return;let e=t.child("AlternateContent");if(e.exists())for(let t of e.allChildren()){let e=t.child("style").numAttr("val");if(void 0!==e)return e}}(t),r)}(t,a,l),s=t.child("chart"),d=s.child("plotArea");if(!d.exists())return{option:{title:{text:"Unsupported chart",left:"center"}},chartFrameStyle:rf(t,a)};let{chartBg:u,plotAreaBg:h}=function(t,e,l){let i,r,n=t.child("spPr");if(n.exists()&&!n.child("noFill").exists()){let t=n.child("solidFill");i=t.exists()?iC(t,l):"#ffffff"}let a=e.child("plotArea");if(a.exists()){let t=a.child("spPr");if(t.exists()&&!t.child("noFill").exists()){let e=t.child("solidFill");e.exists()&&(r=iC(e,l))}}return{chartBg:i,plotAreaBg:r}}(t,s,a),c=rf(t,a),$=iR.flatMap(t=>d.children(t).map(e=>{let l=function(t,e){let l=[];for(let i of t.children("ser")){let t,r=function(t){let e=t.child("strRef");if(e.exists()){let t=e.child("strCache").children("pt");if(t.length>0)return t[0].child("v").text()}let l=t.child("v");return l.exists()?l.text():""}(i.child("tx")),a=i.child("order").numAttr("val")??l.length,o=iL(i.child("cat")),s=i.
58child("val"),d=iw(s),u=d.values,h=d.blankIndices,c=function(t){let e=t.child("numRef").exists()?t.child("numRef").child("numCache"):t.child("numCache");if(!e.exists())return;let l=e.child("formatCode");return l.exists()&&l.text()||void 0}(s),$=i.child("xVal"),f=i.child("yVal");if(f.exists()){let t=iw(f);t.values.length>0&&(u.length=0,u.push(...t.values),h=t.blankIndices)}if($.exists()&&(t=iw($).values,0===o.length)){let t=iL($);t.length>0&&o.push(...t)}let p=i.child("bubbleSize"),m=p.exists()?iw(p).values:void 0,x=function(t,e){let l=t.child("spPr");if(!l.exists())return;let i=l.child("solidFill");if(i.exists()){let t=iC(i,e);if(t)return t}let r=l.child("gradFill");if(r.exists()){let t=function(t,e){let l=t.child("gsLst");if(!l.exists())return;let i=[];for(let t of l.children("gs")){let l=function(t,e){let l=t.numAttr("pos");if(void 0!==l)for(let i of t.allChildren()){let r=i.localName;if("srgbClr"===r||"schemeClr"===r||"sysClr"===r||"prstClr"===r)try{let i=tG(t,e);return{color:i.color.startsWith("#")?i.color:`#${i.color}`,alpha:i.alpha,pos:l/1e5}}catch{if("sysClr"===r){let t=i.attr("lastClr");if(t){let e=i.child("alpha");return{color:`#${t}`,alpha:e.exists()?(e.numAttr("val")??1e5)/1e5:1,pos:l/1e5}}}return}}}(t,e);if(l){let t=l.color.replace("#",""),e=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16);i.push({offset:l.pos,color:`rgba(${e},${r},${n},${l.alpha})`})}}if(i.length<2)return;i.sort((t,e)=>t.offset-e.offset);let r=t.child("lin"),a=(r.exists()?r.numAttr("ang")??54e5:54e5)/6e4*Math.PI/180,o=.5-.5*Math.cos(a),s=.5-.5*Math.sin(a),d=.5+.5*Math.cos(a),u=.5+.5*Math.sin(a);return new n.A(o,s,d,u,i)}(r,e);if(t)return t}let a=l.child("ln");if(a.exists()){let t=a.child("solidFill");if(t.exists()){let l=iC(t,e);if(l)return l}}}(i,e),g=function(t){let e=t.child("spPr").child("ln").numAttr("w");if(!(void 0===e||e<=0))return Math.max(1,Number((e/12700).toFixed(3)))}(i),y=i.child("spPr").child("ln").child("noFill").exists(),b=function(t,e){let l=t.children("dPt");if(0===l.length)return;let i=[];for(let t of l){let l=t.child("idx").numAttr("val");if(void 0===l)continue;let r=t.child("spPr");if(!r.exists())continue;let n={},a=r.child("solidFill");if(a.exists()){let t=iC(a,e);t&&(n.color=t)}let o=iF(r.child("ln"),e);if(o&&(n.borderColor=o.color,n.borderWidth=o.width,n.borderType=o.type),Object.keys(n).length>0){for(;i.length<=l;)i.push(void 0);i[l]=n}}return i.length>0?i:void 0}(i,e),v=null==b?void 0:b.map(t=>null==t?void 0:t.color),M=i.child("invertIfNegative"),L=M.exists()?iS(M):void 0,A=i.child("marker"),w=A.child("symbol").attr("val"),S=A.child("size").numAttr("val"),C=void 0!==S?ik(S):void 0,k=i.child("smooth"),F=k.exists()?iS(k):void 0;l.push({name:r,order:a,categories:o,values:u,xValues:t,bubbleSizes:m,colorHex:x,dataPointColors:v,dataPointStyles:b,formatCode:c,blankIndices:h,invertIfNegative:L,markerSymbol:w,markerSize:C,smooth:F,lineWidth:g,lineNoFill:y})}return l.sort((t,e)=>t.order-e.order),l}(e,a);return 0===l.length?null:{typeName:t,chartTypeNode:e,seriesArr:l}})).filter(t=>null!==t);for(let[e,l]of $.entries()){let r=rY(l.typeName,l.chartTypeNode,s,l.seriesArr,a,o,i);if(!r)continue;if(0===e&&$.length>1&&rV(l.typeName))for(let t of $.slice(1)){if(!rV(t.typeName))continue;let e=rY(t.typeName,t.chartTypeNode,s,t.seriesArr,a,o,i);e&&(r=function(t,e,l,i){let r=Array.isArray(t.series)?t.series:[],n=Array.isArray(e.series)?e.series:[],a=i_(l)[1],o=i_(i)[1];if(void 0!==a&&void 0!==o&&a!==o){let l=r_(t.yAxis),i=r_(e.yAxis),a=l.length;return{...t,legend:rq(t.legend,e.legend),yAxis:[...l,...i],series:[...r,...n.map(t=>({...t,yAxisIndex:void 0!==t.yAxisIndex?t.yAxisIndex:a}))]}}return{...t,legend:rq(t.legend,e.legend),series:[...r,...n]}}(r,e,l.chartTypeNode,t.chartTypeNode))}let n=function(t){let e=t.child("txPr");if(e.exists())for(let t of e.children("p")){let e=t.child("pPr");if(!e.exists())continue;let l=e.child("defRPr");if(!l.exists())continue;let i=l.numAttr("sz");if(void 0!==i&&i>0)return Math.round(i/100*(96/72))}}(t);n&&function(t,e){var l,i,r,n;for(let r of(null!=(i=null==(l=t.title)?void 0:l.textStyle)&&i.fontSize&&t.title.textStyle.fontSize<=14&&(t.title.textStyle.fontSize=e),rd(t))){let t=r.fontSize;("number"!=typeof t||t<=10)&&(r.fontSize=e)}for(let l of ru(t)){let t=l.fontSize;("number"!=typeof t||t<=10)&&(l.fontSize=e)}for(let l of Array.isArray(t.series)?t.series:t.series?[t.series]:[])null!=(r=null==l?void 0:l.label)&&r.fontSize&&l.label.fontSize<=10&&!iI(l.label)&&(l.label.fontSize=e);let a=t=>{if(!(null!=t&&t.axisLabel))return;let l=t.axisLabel.fontSize;(void 0===l||l<=10)&&(t.axisLabel.fontSize=e)};for(let e of[...Array.isArray(t.xAxis)?t.xAxis:t.xAxis?[t.xAxis]:[],...Array.isArray(t.yAxis)?t.yAxis:t.yAxis?[t.yAxis]:[]])a(e);if(null!=(n=t.legend)&&n.textStyle){let l=t.legend.textStyle.fontSize;(void 0===l||l<=10)&&!iI(t.legend.textStyle)&&(t.legend.textStyle.fontSize=e)}}(r,n);let f=function(t){let e=ev(["+mn-lt","+mn-ea","+mj-lt","+mj-ea"],t);return e.length>0?eF(e):void 0}(a);if(f&&function(t,e){var l,i,r;
58null!=(l=t.title)&&l.textStyle&&!t.title.textStyle.fontFamily&&(t.title.textStyle.fontFamily=e),null!=(i=t.title)&&i.textStyle&&!t.title.textStyle.fontWeight&&(t.title.textStyle.fontWeight="bold");let n=t=>{if(!t)return;let l=t.axisLabel??(t.axisLabel={});l.fontFamily||(l.fontFamily=e)};for(let e of[...Array.isArray(t.xAxis)?t.xAxis:t.xAxis?[t.xAxis]:[],...Array.isArray(t.yAxis)?t.yAxis:t.yAxis?[t.yAxis]:[]])n(e);for(let l of(null!=(r=t.legend)&&r.textStyle&&!t.legend.textStyle.fontFamily&&(t.legend.textStyle.fontFamily=e),rd(t)))l.fontFamily||(l.fontFamily=e);for(let l of ru(t))l.fontFamily||(l.fontFamily=e)}(r,f),function(t){var e;for(let l of(null!=(e=t.title)&&e.textStyle&&void 0===t.title.textStyle.color&&(t.title.textStyle.color=ij),Array.isArray(t.legend)?t.legend:t.legend?[t.legend]:[])){if(!l||!1===l.show)continue;let t=l.textStyle??(l.textStyle={});void 0===t.color&&(t.color=ij)}for(let e of[...Array.isArray(t.xAxis)?t.xAxis:t.xAxis?[t.xAxis]:[],...Array.isArray(t.yAxis)?t.yAxis:t.yAxis?[t.yAxis]:[]]){if(!(null!=e&&e.name))continue;let t=e.nameTextStyle??(e.nameTextStyle={});void 0===t.color&&(t.color=ij)}for(let e of rd(t))void 0===e.color&&(e.color=ij);for(let e of ru(t))void 0===e.color&&(e.color=ij)}(r),function(t,e,l){var i,r,n;if(!t.grid||!t.legend||!1===t.legend.show)return;let a=e.child("legend");if(!a.exists()||iS(a.child("overlay")))return;let o=a.child("legendPos").attr("val")||"r";if("r"===o||"l"===o){let a=t.legend.data;if(!a||0===a.length)return;let s=a.map(t=>"string"==typeof t?t:t.name),d=(null==(r=null==(i=t.legend)?void 0:i.textStyle)?void 0:r.fontSize)??l??12,u=Number(null==(n=t.legend)?void 0:n.itemWidth)||d,h=0;for(let t of s){let e=0;for(let l of t)e+=l.charCodeAt(0)>11904?d:.55*d;e>h&&(h=e)}let c=u+8+h+14,$=e.child("plotArea").child("lineChart").exists(),f=Array.isArray(t.series)?t.series.length:+!!t.series,p=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,m=Array.isArray(null==p?void 0:p.data)?p.data.length:0,x=Math.max(84,Math.round(c+($?"r"===o&&$&&1===f&&m>=20?-10:0:18)));if("string"==typeof t.grid.left&&t.grid.left.includes("%")||"string"==typeof t.grid.right&&t.grid.right.includes("%"))return;"r"===o?t.grid.right=x:t.grid.left=x}}(r,s,n),function(t,e){var l,i;if(!t.xAxis&&!t.yAxis)return;let r=[],n=[],a=[],o=Array.isArray(t.series)?t.series:t.series?[t.series]:[],s=new Map,d=[],u=new Map,h=(t,e)=>{u.has(t)||u.set(t,[]),u.get(t).push(...e)};for(let t of o){if(!t.data)continue;let e=[];for(let l of t.data)if("number"==typeof l)e.push(l);else if(l&&"object"==typeof l&&"value"in l&&"number"==typeof l.value)e.push(l.value);else if(Array.isArray(l))for(let t of(l.length>=2&&"number"==typeof l[0]&&"number"==typeof l[1]&&(n.push(l[0]),a.push(l[1])),l))"number"==typeof t&&e.push(t);else e.push(0);let l="number"==typeof t.yAxisIndex&&Number.isFinite(t.yAxisIndex)?t.yAxisIndex:0;if(t.stack){let i=`${l}:${String(t.stack)}`;s.has(i)||s.set(i,{axisIndex:l,values:[]}),s.get(i).values.push(e)}else d.push(...e),h(l,e)}for(let t of s.values()){let e=[],l=Math.max(...t.values.map(t=>t.length));for(let i=0;i<l;i++){let l=0;for(let e of t.values)l+=e[i]??0;e.push(l),r.push(l)}h(t.axisIndex,e)}r.push(...d);let c=o.some(t=>"bar"===t.type),$=o.some(t=>t.type&&"bar"!==t.type),f=c&&!$,p=f?10:8,m=f?2.6:2;if(0===r.length)return;let x=n.length>0&&a.length>0&&(null==(l=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis)?void 0:l.type)==="value"&&(null==(i=Array.isArray(t.yAxis)?t.yAxis[0]:t.yAxis)?void 0:i.type)==="value",g=(t,e,l)=>{if(!t||"value"!==t.type||0===e.length||void 0!==t.min&&void 0!==t.max)return;let i=Math.min(...e),r=Math.max(...e),n=r$(r,i,l);if(void 0===t.max){let e=rc(r,i,l);e>r&&e-r<.25*n&&(e+=n),t.max=e}void 0===t.min&&i>=0&&(t.min=0),void 0===t.interval&&(t.interval=n)},y=t=>{if(0===t.length)return 8;let e=Math.min(...t);return Math.max(...t)-Math.min(0,e)<=3?3:8};if(x){let e=Array.isArray(t.xAxis)?t.xAxis:[t.xAxis],l=Array.isArray(t.yAxis)?t.yAxis:[t.yAxis];e.forEach(t=>g(t,n,y(n))),l.forEach(t=>g(t,a,y(a)));return}let b=(l,i,n)=>{l&&(Array.isArray(l)?l:[l]).forEach((l,a)=>{if(!l||"value"!==l.type||void 0!==l.min&&void 0!==l.max)return;let o=(null==n?void 0:n.get(a))??r;if(0===o.length)return;let s=Math.min(...o),d=Math.max(...o),u=function(t,e,l,i,r,n=2.6){let a=function(t,e,l){if(!e)return;let i="x"===l?e.w:e.h,r=Array.isArray(t)?t[0]:t;if(!r)return i;
58let n=rh(r["x"===l?"left":"top"],i,0),a=rh(r["x"===l?"right":"bottom"],i,0);return Math.max(0,i-n-a)}(r,i,l);if(void 0===a||a<=0)return e;let o=t.axisLabel??{};return Math.max(1,Math.min(e,Math.max(2,Math.floor(a/Math.max(28,("number"==typeof o.fontSize?o.fontSize:12)*n))+1)-1))}(l,p,i,e,t.grid,m),h=r$(d,s,u);if(void 0===l.max){let t=rc(d,s,u);u>1&&t>d&&t-d<.25*h&&(t+=h),l.max=t}void 0===l.min&&s>=0?l.min=0:void 0===l.min&&s<0&&(l.min=function(t,e,l=5){let i=r$(t,e,l),r=Math.floor(e/i)*i;return r>=e?r-i:r}(d,s,u)),void 0===l.interval&&(l.interval=h)})};b(t.xAxis,"x"),b(t.yAxis,"y",u)}(r,i),u&&(r.backgroundColor=u),o&&o.length>0&&(r.color=o),h)if(r.grid)r.grid.backgroundColor=h,r.grid.show=!0;else{let t=function(t,e,l){if(!l)return;let{x:i=0,y:r=0,w:n=1,h:a=1}=rG(t);return{type:"rect",silent:!0,z:-10,left:i*l.w,top:r*l.h,shape:{width:n*l.w,height:a*l.h},style:{fill:e,stroke:"none"}}}(s,h,i);t&&function(t,e){let l=t.graphic;if(!l){t.graphic=e;return}t.graphic=Array.isArray(l)?[e,...l]:[e,l]}(r,t)}let p=0===e&&$.length>1&&rV(l.typeName)?$.filter(t=>rV(t.typeName)).flatMap(t=>t.seriesArr).sort((t,e)=>t.order-e.order):l.seriesArr,m=function(t){let e=t.child("dTable");return e.exists()?{showKeys:ti(e.child("showKeys").attr("val"),!0)}:void 0}(d);return{option:r,dataTable:m?{seriesArr:p,showKeys:m.showKeys}:void 0,chartFrameStyle:c}}return{option:{title:{text:"Unsupported chart type",left:"center",textStyle:{fontSize:12}}},chartFrameStyle:c}}(p,x?{...e,theme:x,colorCache:new Map}:e,t.chartPath,t.size);o=t.size,s=r_(g.grid)[0],d=r_(g.xAxis),u=r_(g.yAxis),h=rK(s,o.h,"top","bottom"),c=rK(s,o.w,"left","right"),$=!1,d.forEach((t,e)=>{$=rJ(t,u[e]??u[0],h)||$}),u.forEach((t,e)=>{$=rJ(t,d[e]??d[0],c)||$}),$&&s&&(s.containLabel=!1,s.left=Math.max(rQ(s.left,o.w,0),48)),b&&(f.style.boxSizing="border-box",b.borderColor&&b.borderWidth&&b.borderStyle&&(f.style.border=`${b.borderWidth}px ${b.borderStyle} ${b.borderColor}`));let v=function(t,e){var l,i,r,n,a;let o=ra(t.legend);if(!o||!1===o.show)return null;let s="vertical"===o.orient,d="horizontal"===o.orient||void 0===o.orient,u=void 0!==o.top||void 0!==o.bottom||void 0!==o.left||void 0!==o.right;if(s&&void 0===o.left&&void 0===o.right||d&&!u)return null;let h=Array.isArray(t.color)?t.color.filter(t=>"string"==typeof t):[],c=o.data??[],$=Array.isArray(t.series)?t.series:t.series?[t.series]:[],f=1===$.length&&(null==(l=$[0])?void 0:l.type)==="radar"?$[0]:void 0,p=Array.isArray(null==f?void 0:f.data)?f.data:void 0,m=c.map((t,e)=>{var l;let i,r,n="string"==typeof t?t:t.name,a="string"==typeof t?void 0:t.icon,s="string"==typeof t?void 0:t.marker,d="string"==typeof t?void 0:t;if(!n)return null;let u=$.findIndex(t=>(null==t?void 0:t.name)===n),c=(null==p?void 0:p.findIndex(t=>t.name===n))??-1,f=u>=0?$[u]:$[e],m=p&&c>=0?p[c]:(null==p?void 0:p[e])??void 0,x=p?m??d??f:d??f,g=m??f,y=m??f??d,b={...(null==g?void 0:g.lineStyle)??{},...(null==d?void 0:d.lineStyle)??{}},v=(l=h[u>=0?u:e]??"#2f6f8f",i=(null==x?void 0:x.lineStyle)??{},r=(null==x?void 0:x.itemStyle)??{},("string"==typeof i.color?i.color:void 0)??("string"==typeof r.color?r.color:void 0)??l),M="number"==typeof b.width&&Number.isFinite(b.width)?Math.max(1,b.width):2,L=null==y?void 0:y.symbolSize,A="number"==typeof L&&Number.isFinite(L)?Math.max(3,L):void 0;return{name:n,icon:a??o.icon,marker:s,markerSize:A,color:v,lineWidth:M}}).filter(t=>null!==t);if(0===m.length)return null;let x=document.createElement("div");x.className="pptx-chart-custom-legend",x.style.position="absolute",x.style.display="flex",x.style.flexDirection=s?"column":"row",x.style.gap=s?"6px":"12px",x.style.pointerEvents="none",x.style.zIndex="1",x.style.whiteSpace="nowrap",void 0!==o.left&&(x.style.left=rp(o.left,e.w)),void 0!==o.right&&(x.style.right=rp(o.right,e.w)),void 0!==o.width&&(x.style.width=rp(o.width,e.w)),void 0!==o.height&&(x.style.height=rp(o.height,e.h)),(void 0!==o.width||void 0!==o.height)&&(x.style.boxSizing="border-box",d?(x.style.alignItems="center",void 0!==o.width&&(x.style.justifyContent="center")):(void 0!==o.width&&(x.style.alignItems="center"),void 0!==o.height&&(x.style.justifyContent="center"))),"vertical"===o.orient&&(void 0!==o.left||void 0!==o.right)?"middle"===o.top?(x.style.top=`${e.h/2}px`,x.style.transform="translateY(-50%)"):void 0!==o.top?x.style.top=rp(o.top,e.h):void 0===o.bottom&&(x.style.top=`${e.h/2}px`,x.style.transform="translateY(-50%)"):void 0!==o.top&&(x.style.top=rp(o.top,e.h)),void 0!==o.bottom&&(x.style.bottom=rp(o.bottom,e.h)),d&&void 0===o.left&&void 0===o.right&&(x.style.left="50%",x.style.transform="translateX(-50%)");let g=(null==(i=o.textStyle)?void 0:i.fontSize)??10,y=o.itemWidth??g,b=o.itemHeight??g;for(let t of m){let e=document.createElement("div");e.style.display="flex",e.style.alignItems="center",e.style.gap="6px";let l=t.marker&&"none"!==t.marker?t.markerSize:void 0,i=void 0!==l?Math.max(y,Math.ceil(l)):y,s=void 0!==l?Math.max(b,Math.ceil(l)):b,d=function(t,e,l,i,r=2,n,a){if("none"===t)return null;let o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg");s.setAttribute("width",String(l)),s.setAttribute("height",String(i)),s.setAttribute("viewBox",`0 0 ${l} ${i}`),s.style.display="block";let d=t??"rect";if(d.startsWith("path://")){let t=document.createElementNS(o,"path");
58if(t.setAttribute("d",d.slice(7)),t.setAttribute("fill","none"),t.setAttribute("stroke",e),t.setAttribute("stroke-width",String(r)),t.setAttribute("stroke-linecap","round"),s.appendChild(t),n&&"none"!==n){let t=l/2,r=i/2,d=Math.min(l,i,void 0!==a?Math.max(3,a):Math.max(3,.55*i));if("diamond"===n){let l=document.createElementNS(o,"path");l.setAttribute("d",`M${t} ${r-d/2} L${t+d/2} ${r} L${t} ${r+d/2} L${t-d/2} ${r} Z`),l.setAttribute("fill",e),s.appendChild(l)}else if("rect"===n){let l=document.createElementNS(o,"rect");l.setAttribute("x",String(t-d/2)),l.setAttribute("y",String(r-d/2)),l.setAttribute("width",String(d)),l.setAttribute("height",String(d)),l.setAttribute("fill",e),s.appendChild(l)}else if("triangle"===n){let l=document.createElementNS(o,"path");l.setAttribute("d",`M${t} ${r-d/2} L${t+d/2} ${r+d/2} L${t-d/2} ${r+d/2} Z`),l.setAttribute("fill",e),s.appendChild(l)}else{let l=document.createElementNS(o,"circle");l.setAttribute("cx",String(t)),l.setAttribute("cy",String(r)),l.setAttribute("r",String(d/2)),l.setAttribute("fill",e),s.appendChild(l)}}return s}if("diamond"===d){let t=document.createElementNS(o,"path");return t.setAttribute("d",`M${l/2} 1 L${l-1} ${i/2} L${l/2} ${i-1} L1 ${i/2} Z`),t.setAttribute("fill",e),s.appendChild(t),s}if("circle"===d){let t=document.createElementNS(o,"circle");return t.setAttribute("cx",String(l/2)),t.setAttribute("cy",String(i/2)),t.setAttribute("r",String(Math.max(2,Math.min(l,i)/2-1))),t.setAttribute("fill",e),s.appendChild(t),s}let u=document.createElementNS(o,"rect");return u.setAttribute("x","1"),u.setAttribute("y","1"),u.setAttribute("width",String(Math.max(2,l-2))),u.setAttribute("height",String(Math.max(2,i-2))),u.setAttribute("fill",e),s.appendChild(u),s}(t.icon,t.color,i,s,t.lineWidth,t.marker,l);d&&e.appendChild(d);let u=document.createElement("span");u.textContent=t.name,u.style.color=(null==(r=o.textStyle)?void 0:r.color)??"#000000",u.style.fontSize=`${g}px`,null!=(n=o.textStyle)&&n.fontFamily&&(u.style.fontFamily=o.textStyle.fontFamily),(null==(a=o.textStyle)?void 0:a.fontWeight)!==void 0&&(u.style.fontWeight=String(o.textStyle.fontWeight)),e.appendChild(u),x.appendChild(e)}return x}(g,t.size),M=ra(g.legend);if(v&&M&&(M.show=!1,f.appendChild(v)),y){let t=y.seriesArr.map(t=>t.colorHex).filter(Boolean),e=function(t,e){var l,i;let r=document.createElement("table");r.style.width="100%",r.style.borderCollapse="collapse",r.style.fontSize="10px",r.style.marginTop="8px";let{seriesArr:n,showKeys:a,formatCode:o}=t,s=(null==(l=n.find(t=>t.categories.length>0))?void 0:l.categories)||[],d=document.createElement("thead"),u=document.createElement("tr"),h=document.createElement("th");h.style.border="1px solid #ccc",h.style.padding="2px 6px",h.style.textAlign="left",h.style.fontWeight="bold",u.appendChild(h);for(let t=0;t<s.length;t++){let e=document.createElement("th");e.style.border="1px solid #ccc",e.style.padding="2px 6px",e.style.textAlign="right",e.style.fontWeight="bold",e.textContent=s[t]??"",u.appendChild(e)}d.appendChild(u),r.appendChild(d);let c=document.createElement("tbody");for(let t=0;t<n.length;t++){let l=n[t],r=document.createElement("tr"),d=document.createElement("td");if(d.style.border="1px solid #ccc",d.style.padding="2px 6px",d.style.textAlign="left",d.style.fontWeight="bold",a&&e&&e[t]){let l=document.createElement("span");l.style.display="inline-block",l.style.width="8px",l.style.height="8px",l.style.marginRight="4px",l.style.verticalAlign="middle",l.style.backgroundColor=e[t],d.appendChild(l)}d.appendChild(document.createTextNode(l.name||"")),r.appendChild(d);for(let t=0;t<s.length;t++){let e=document.createElement("td");e.style.border="1px solid #ccc",e.style.padding="2px 6px",e.style.textAlign="right";let n=l.values[t];e.textContent=void 0===n||null!=(i=l.blankIndices)&&i.has(t)?"":iA(n,o??l.formatCode),r.appendChild(e)}c.appendChild(r)}return r.appendChild(c),r}(y,t.length>0?t:void 0);f.appendChild(e)}let L=e.chartInstances,A=new Promise(t=>{let e=()=>{(function(t,e,l){try{let i=a.Ts(t);if(i.setOption(e),null==l||l.add(i),typeof ResizeObserver>"u")return;let r=new ResizeObserver(()=>{t.isConnected?i.resize():(r.disconnect(),i.isDisposed()||i.dispose(),null==l||l.delete(i))});r.observe(t)}catch(e){console.warn("Failed to initialize ECharts:",e),t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.color="#999",t.style.fontSize="12px",t.textContent="Chart render error"}})(m,g,L),t()};requestAnimationFrame(()=>{if(!m.isConnected)return void t();if(0===m.offsetWidth||0===m.offsetHeight){if(typeof ResizeObserver>"u")return void e();let l=new ResizeObserver(t=>{var i;if(!m.isConnected)return void l.disconnect();let{width:r,height:n}=(null==(i=t[0])?void 0:i.contentRect)??{width:0,height:0};r>0&&n>0&&(l.disconnect(),e())});return l.observe(m),void t()}e()})});return null==(r=e.asyncTasks)||r.push(A),f}(t,e);default:{let e=document.createElement("div");return e.style.position="absolute",e.style.left=`${t.position.x}px`,e.style.top=`${t.position.y}px`,e.style.width=`${t.size.w}px`,e.style.height=`${t.size.h}px`,e}}}let r1=new WeakMap;function r2(t,e,l,i){let r=r1.get(t);if(r&&r.rels===e&&r.partPath===l&&r.diagramDrawings===i)return r.nodes;let n=function(t,e,l,i){let r=[];if(!t||!t.exists||!t.exists())return r;let n={rels:e??new Map,partPath:l,diagramDrawings:i};for(let e of t.allChildren())if(!th(e))try{let t=tc(e,n);t&&(t.size.w>0||t.size.h>0)&&r.push(t)}catch{}return r}(t,e,l,i);return r1.set(t,{nodes:n,rels:e,partPath:l,diagramDrawings:i}),n}function r5(t,e,l){var i,r,n,a,o;let s,d,u,h,c,$;tL(t,e);let f=!!(null!=l&&l.mediaUrlCache),p=(null==l?void 0:l.chartInstances)??new Set,m=[],x=new AbortController,g=(n=null==l?void 0:l.mediaUrlCache,a=null==l?void 0:l.pdfjs,o=x.signal,s=t.slideToLayout.get(e.index)||"",d=t.layoutToMaster.get(s)||"",u=t.masterToTheme.get(d)||"",h=t.layouts.get(s)||{placeholders:[],spTree:{},rels:new Map,showMasterSp:!0},c=t.masters.get(d)||{colorMap:new Map,textStyles:{},placeholders:[],spTree:{},rels:new Map},$=t.themes.get(u)||{colorScheme:new Map,majorFont:{latin:"Calibri",ea:"",cs:""},minorFont:{latin:"Calibri",ea:"",cs:""},fillStyles:[],bgFillStyles:[],lineStyles:[],effectStyles:[]},{presentation:t,slide:e,theme:$,master:c,layout:h,partPath:e.slidePath,layoutPath:s,masterPath:d,mediaUrlCache:n??new Map,colorCache:new Map,pdfjs:a,signal:o,chartInstances:p});g.asyncTasks=m,null!=l&&l.onNavigate&&(g.onNavigate=l.onNavigate);let y=document.createElement("div");y.style.position="relative",y.style.width=`${t.width}px`,y.style.height=`${t.height}px`,y.style.overflow="hidden",y.style.backgroundColor="#FFFFFF",g.measurementRoot=y;let b=function(t){if(t.isConnected)return()=>{};let e={position:t.style.position,left:t.style.left,top:t.style.top,visibility:t.style.visibility,pointerEvents:t.style.pointerEvents,contain:t.style.contain};return t.style.position="fixed",t.style.left="-100000px",t.style.top="0",t.style.visibility="hidden",t.style.pointerEvents="none",t.style.contain="layout style paint",document.body.appendChild(t),()=>{t.parentNode===document.body&&document.body.removeChild(t),t.style.position=e.position,t.style.left=e.left,t.style.top=e.top,t.style.visibility=e.visibility,t.style.pointerEvents=e.pointerEvents,t.style.contain=e.contain}}(y);try{try{!function(t,e){let l,i=t.slide.rels;if(t.slide.background?(l=t.slide.background,i=t.slide.rels):t.layout.background?(l=t.layout.background,i=t.layout.rels):t.master.background&&(l=t.master.background,i=t.master.rels),!l){e.style.backgroundColor="#FFFFFF";return}let r=l.child("bgPr");if(r.exists())return function(t,e,l,i){let r=t.child("solidFill");
58if(r.exists()){let{color:t,alpha:i}=tG(r,e),n=t.startsWith("#")?t:`#${t}`;if(i<1){let{r:t,g:e,b:r}=tk(n);l.style.backgroundColor=ed(t,e,r,i)}else l.style.backgroundColor=n;return}if(t.child("gradFill").exists()){if(ec(t8(t,e),e,l))return;let i=t_(t,e);i&&(l.style.background=i);return}if(t.child("pattFill").exists()){let i=t_(t,e);i&&eu(l,i);return}let n=t.child("blipFill");if(n.exists())return function(t,e,l,i){var r;let n,a=t.child("blip"),o=a.attr("embed")??a.attr("r:embed"),s=a.attr("link")??a.attr("r:link"),d=o??s;if(!d)return;let u=(i??e.slide.rels).get(d);if(u){if(G(u.targetMode)){if(!er(u.target))return;n=u.target}else{let i=C(u.target,e.presentation.media);if(!i){if(e.presentation.mediaResolver){let i=k(u.target,e.presentation.media,e.presentation.mediaResolver).then(i=>{i&&e$(t,l,F(i.mediaPath,i.data,e.mediaUrlCache))}).catch(()=>{});null==(r=e.asyncTasks)||r.push(i),e.asyncTasks}return}let{mediaPath:a,data:o}=i;n=F(a,o,e.mediaUrlCache)}e$(t,l,n)}}(n,e,l,i);t.child("noFill").exists()&&(l.style.backgroundColor="#FFFFFF")}(r,t,e,i);let n=l.child("bgRef");n.exists()?function(t,e,l){var i,r;let n=t.numAttr("idx")??0;if(n>=1001&&n-1e3<=((null==(i=e.theme.bgFillStyles)?void 0:i.length)??0)||n>0&&n<=((null==(r=e.theme.fillStyles)?void 0:r.length)??0)){let i,{fillCss:r,gradientFillData:n}=(i=t.numAttr("idx")??0)>=1001?t9(t,e,e.theme.bgFillStyles??[],i-1e3):t9(t,e,e.theme.fillStyles,i);if(ec(n,e,l))return;eu(l,r);return}let{color:a,alpha:o}=tG(t,e);if(a&&"#000000"!==a){let t=a.startsWith("#")?a:`#${a}`;if(o<1){let{r:e,g:i,b:r}=tk(t);l.style.backgroundColor=ed(e,i,r,o)}else l.style.backgroundColor=t}else l.style.backgroundColor="#FFFFFF"}(n,t,e):e.style.backgroundColor="#FFFFFF"}(g,y)}catch(t){null==(i=null==l?void 0:l.onNodeError)||i.call(l,"__background__",t)}if(e.showMasterSp&&g.layout.showMasterSp){let e={...g,slide:{...g.slide,rels:g.master.rels},partPath:g.masterPath,skipPlaceholderChildren:!0};for(let l of r2(g.master.spTree,g.master.rels,g.masterPath,t.diagramDrawings))try{let t=r0(l,e);y.appendChild(t)}catch{}}if(e.showMasterSp){let e={...g,slide:{...g.slide,rels:g.layout.rels},partPath:g.layoutPath,skipPlaceholderChildren:!0};for(let l of r2(g.layout.spTree,g.layout.rels,g.layoutPath,t.diagramDrawings))try{let t=r0(l,e);y.appendChild(t)}catch{}}for(let t of e.nodes)try{let e=r0(t,g);y.appendChild(e)}catch(e){null==(r=null==l?void 0:l.onNodeError)||r.call(l,t.id,e),y.appendChild(function(t){let e=document.createElement("div");return e.style.position="absolute",e.style.left=`${t.position.x}px`,e.style.top=`${t.position.y}px`,e.style.width=`${t.size.w}px`,e.style.height=`${t.size.h}px`,e.style.border="2px dashed #ff4444",e.style.backgroundColor="rgba(255,68,68,0.08)",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.color="#cc0000",e.style.fontSize="11px",e.style.fontFamily="monospace",e.style.overflow="hidden",e.style.boxSizing="border-box",e.style.padding="4px",e.textContent="Render Error",e.title=`Failed to render node: ${t.id} (${t.name})`,e}(t))}}finally{b()}let v=!1,M=g.mediaUrlCache,L=Promise.allSettled(m).then(()=>{}),A=()=>{if(!v){if(v=!0,x.abort(),p)for(let t of p)!t.isDisposed()&&y.contains(t.getDom())&&(t.dispose(),p.delete(t));if(!f){for(let t of M.values())URL.revokeObjectURL(t);M.clear()}}};return{element:y,ready:L,dispose:A,[Symbol.dispose](){A()}}}let r3={includeShapes:!0,includeTables:!0,includeGroups:!0},r6={offsetX:0,offsetY:0,scaleX:1,scaleY:1},r4=t=>t?t.paragraphs.map(t=>t.runs.map(t=>t.text).join("")).join(` 59`):"",r8=(t,e=r6)=>({x:e.offsetX+t.position.x*e.scaleX,y:e.offsetY+t.position.y*e.scaleY,w:t.size.w*e.scaleX,h:t.size.h*e.scaleY}),r7=t=>t.trim().length>0,r9=t=>void 0!==t&&/[A-Za-z0-9_]/.test(t),nt=(t,e,l)=>!r9(t[e-1])&&!r9(t[l]),ne=(t,e,l,i)=>{let r=Math.max(0,e-i),n=Math.min(t.length,l+i),a=r>0?"...":"",o=n<t.length?"...":"";return`${a}${t.slice(r,n)}${o}`},nl=(t,e,l=!1,i)=>{let r=tc(t,{...e,skipPlaceholders:l});return r&&tC(r,e.layout,e.master,{parentGroup:i}),r},ni=(t,e,l,i,r,n,a=r6,o=!1)=>{if(!(o&&l.placeholder))switch(l.nodeType){case"shape":let s;
59r.includeShapes&&r7(s=r4(l.textBody))&&t.push({slideIndex:e,nodeId:l.id,nodePath:i,nodeType:l.nodeType,textKind:"shape",text:s,bounds:r8(l,a)});break;case"table":r.includeTables&&l.rows.forEach((r,n)=>{r.cells.forEach((r,o)=>{let s=r4(r.textBody);r7(s)&&t.push({slideIndex:e,nodeId:l.id,nodePath:`${i}/rows/${n}/cells/${o}`,nodeType:l.nodeType,textKind:"table-cell",text:s,bounds:r8(l,a),rowIndex:n,cellIndex:o})})});break;case"group":if(!r.includeGroups)break;l.children.forEach((s,d)=>{try{let u=nl(s,n,o,l);if(!u)return;let h=((t,e,l)=>{let i;if(t.childExtent.w<=0||t.childExtent.h<=0)return{offsetX:l.offsetX+t.position.x*l.scaleX,offsetY:l.offsetY+t.position.y*l.scaleY,scaleX:l.scaleX,scaleY:l.scaleY};let r=t.childExtent.w>0?t.size.w/t.childExtent.w:1,n=t.childExtent.h>0?t.size.h/t.childExtent.h:1;if(i=(e.rotation%360+360)%360,1e-4>Math.abs(i-90)||1e-4>Math.abs(i-270)){let i=e.position.x+(e.size.w-e.size.h)/2,a=e.position.y+(e.size.h-e.size.w)/2,o={w:e.size.w*n,h:e.size.h*r},s={x:(i-t.childOffset.x)*r-(o.w-o.h)/2,y:(a-t.childOffset.y)*n-(o.h-o.w)/2},d=l.scaleX*n,u=l.scaleY*r;return{offsetX:l.offsetX+(t.position.x+s.x)*l.scaleX-e.position.x*d,offsetY:l.offsetY+(t.position.y+s.y)*l.scaleY-e.position.y*u,scaleX:d,scaleY:u}}return{offsetX:l.offsetX+(t.position.x-t.childOffset.x*r)*l.scaleX,offsetY:l.offsetY+(t.position.y-t.childOffset.y*n)*l.scaleY,scaleX:l.scaleX*r,scaleY:l.scaleY*n}})(l,u,a),c=u.id||u.name||String(d);ni(t,e,u,`${i}/children/${d}/${c}`,r,n,h,o)}catch{}})}},nr=(t,e,l,i,r,n)=>
59{null!=l&&l.exists()&&l.allChildren().forEach((l,a)=>{if(!th(l))try{let o=nl(l,n,!0);if(!o)return;let s=o.id||o.name||String(a);ni(t,e,o,`slides/${e}/${i}/nodes/${s}`,r,n,r6,!0)}catch{}})};class nn extends EventTarget{constructor(t,e){super(),this.presentation=null,this.mediaUrlCache=new Map,this.chartInstances=new Set,this.currentSlide=0,this._isRendering=!1,this.zoomFactor=1,this.renderChain=Promise.resolve(),this.renderGeneration=0,this.suppressScrollChange=!1,this.resizeRafId=null,this.lastMeasuredContainerWidth=0,this.mountedSlides=new Set,this.slideHandles=new Map,this.searchHighlightHandles=new Set,this.textIndexCache=null,this.activeRenderMode=null,this.listOptions={windowed:!1,batchSize:12,initialSlides:4,overscanViewport:1.5,showSlideLabels:!1},this.container=t,this.viewerOptions=e??{};const l=this.normalizeZoomPercent((null==e?void 0:e.zoomPercent)??100);if(this._fitMode=(null==e?void 0:e.fitMode)??"contain",this.zoomFactor=l/100,null!=e&&e.onSlideChange){const t=e.onSlideChange;this.addEventListener("slidechange",e=>t(e.detail.index))}if(null!=e&&e.onSlideRendered){const t=e.onSlideRendered;this.addEventListener("sliderendered",e=>t(e.detail.index,e.detail.element))}if(null!=e&&e.onSlideError){const t=e.onSlideError;this.addEventListener("slideerror",e=>t(e.detail.index,e.detail.error))}if(null!=e&&e.onSlideUnmounted){const t=e.onSlideUnmounted;this.addEventListener("slideunmounted",e=>t(e.detail.index))}if(null!=e&&e.onNodeError){const t=e.onNodeError;this.addEventListener("nodeerror",e=>t(e.detail.nodeId,e.detail.error))}if(null!=e&&e.onRenderStart){const t=e.onRenderStart;this.addEventListener("renderstart",()=>t())}if(null!=e&&e.onRenderComplete){const t=e.onRenderComplete;this.addEventListener("rendercomplete",()=>t())}}emitRenderStart(){this._isRendering=!0,this.dispatchEvent(new Event("renderstart"))}emitRenderComplete(){this._isRendering=!1,this.dispatchEvent(new Event("rendercomplete"))}emitSlideChange(t){this.dispatchEvent(new CustomEvent("slidechange",{detail:{index:t}}))}emitSlideRendered(t,e){this.dispatchEvent(new CustomEvent("sliderendered",{detail:{index:t,element:e}}))}emitSlideError(t,e){this.dispatchEvent(new CustomEvent("slideerror",{detail:{index:t,error:e}}))}emitSlideUnmounted(t){this.dispatchEvent(new CustomEvent("slideunmounted",{detail:{index:t}}))}emitNodeError(t,e){this.dispatchEvent(new CustomEvent("nodeerror",{detail:{nodeId:t,error:e}}))}load(t){this.renderGeneration++,this._isRendering=!1,this.unloadRenderedState(),this.presentation=t,this.currentSlide=0,this.textIndexCache=null,this.setupAdaptiveResize()}async renderList(t){this.activeRenderMode="list",this.listOptions={windowed:(null==t?void 0:t.windowed)??!1,batchSize:this.normalizeBatchSize((null==t?void 0:t.batchSize)??12),initialSlides:this.normalizePositiveInt((null==t?void 0:t.initialSlides)??4,4),overscanViewport:this.normalizePositiveFloat((null==t?void 0:t.overscanViewport)??1.5,1.5),showSlideLabels:(null==t?void 0:t.showSlideLabels)??!1},await this.queueRender()}async renderSlide(t){this.activeRenderMode="slide",void 0!==t&&this.presentation&&(this.currentSlide=Math.max(0,Math.min(t,this.presentation.slides.length-1))),await this.queueRender()}async open(t,e){let l=null==e?void 0:e.signal,i=()=>{if(null!=l&&l.aborted)throw new DOMException("Preview aborted","AbortError")};i(),this.destroy();let r=await na(t);i();let n=(null==e?void 0:e.lazyMedia)??this.viewerOptions.lazyMedia?await O(r,this.viewerOptions.zipLimits):await T(r,this.viewerOptions.zipLimits);i();let a=(null==e?void 0:e.lazySlides)??this.viewerOptions.lazySlides?tg(n,{lazySlides:!0}):tg(n);i(),this.load(a),((null==e?void 0:e.renderMode)??"list")==="slide"?await this.renderSlide(0):await this.renderList(null==e?void 0:e.listOptions),i()}static async open(t,e,l){let i=new nn(e,l);return await i.open(t,{renderMode:null==l?void 0:l.renderMode,listOptions:null==l?void 0:l.listOptions,signal:null==l?void 0:l.signal,lazyMedia:null==l?void 0:l.lazyMedia,lazySlides:null==l?void 0:l.lazySlides}),i}async goToSlide(t,e){var l;if(!this.presentation)return;let i=this.currentSlide;if(this.currentSlide=Math.max(0,Math.min(t,this.presentation.slides.length-1)),this.currentSlide!==i&&this.emitSlideChange(this.currentSlide),"slide"===this.activeRenderMode){let{scale:t,displayWidth:e,displayHeight:l}=this.getDisplayMetrics();this.renderSingleSlide(t,e,l)}else{this.suppressScrollChange=!0,await new Promise(t=>requestAnimationFrame(()=>{this.suppressScrollChange=!1,t()})),null==(l=this.ensureListSlideMountedFn)||l.call(this,this.currentSlide);
59let t=this.container.querySelector(`[data-slide-index="${this.currentSlide}"]`);t&&"function"==typeof t.scrollIntoView&&t.scrollIntoView(e??{behavior:"smooth",block:"center"})}}async setZoom(t){let e=this.normalizeZoomPercent(t)/100;e!==this.zoomFactor&&(this.zoomFactor=e,await this.queueRender())}async setFitMode(t){this._fitMode!==t&&(this._fitMode=t,"none"===t&&(this.lastMeasuredContainerWidth=0),await this.queueRender())}get presentationData(){return this.presentation}get slideCount(){var t;return(null==(t=this.presentation)?void 0:t.slides.length)??0}get slideWidth(){var t;return(null==(t=this.presentation)?void 0:t.width)??0}get slideHeight(){var t;return(null==(t=this.presentation)?void 0:t.height)??0}get currentSlideIndex(){return this.currentSlide}get isRendering(){return this._isRendering}get zoomPercent(){return 100*this.zoomFactor}get fitMode(){return this._fitMode}on(t,e){return this.addEventListener(t,e),this}off(t,e){return this.removeEventListener(t,e),this}isSlideMounted(t){return this.mountedSlides.has(t)}getMountedSlides(){return[...this.mountedSlides].sort((t,e)=>t-e)}renderSlideToContainer(t,e,l){if(!this.presentation)return null;let i=this.presentation.slides[t];if(!i)return null;let r=r5(this.presentation,i,{onNodeError:(t,e)=>this.emitNodeError(t,e),onNavigate:t=>this.handleNavigate(t),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});return void 0!==l&&1!==l&&(r.element.style.transform=`scale(${l})`,r.element.style.transformOrigin="top left"),e.appendChild(r.element),this.emitSlideRendered(t,r.element),r}searchText(t,e){return this.presentation?((t,e,l={})=>{let i=((t,e)=>{if(t instanceof RegExp){let e=new Set(t.flags.split(""));return e.add("g"),new RegExp(t.source,[...e].join(""))}return t?new RegExp(e.useRegex?t:t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.matchCase?"g":"gi"):null})(e,l);if(!i)return[];let r=l.snippetRadius??32,n=[];for(let e of t){let t;for(i.lastIndex=0;null!==(t=i.exec(e.text));){let a=t[0];if(0===a.length){i.lastIndex+=1;continue}let o=t.index,s=o+a.length;l.wholeWord&&!nt(e.text,o,s)||n.push({...e,matchStart:o,matchEnd:s,snippet:ne(e.text,o,s,r)})}}return n})(this.getTextIndex(e),t,e):[]}renderThumbnailToContainer(t,e,l){if(!this.presentation||!this.presentation.slides[t])return null;let i=this.getThumbnailScale(l),r=this.presentation.width*i,n=this.presentation.height*i,a=document.createElement("div");a.dataset.slideIndex=String(t),a.dataset.pptxThumbnail="true",a.style.cssText=` 60 width: ${r}px; 61 height: ${n}px; 62 overflow: hidden; 63 position: relative; 64 background: #fff; 65 contain: layout paint style; 66 `,e.appendChild(a);let o=this.renderSlideToContainer(t,a,i);if(!o)return a.remove(),null;let s=!1,d=()=>{s||(s=!0,o.dispose(),a.remove())};return{element:a,ready:o.ready,dispose:d,[Symbol.dispose](){d()}}}async highlightSearchResult(t,e){if(!this.presentation||!this.presentation.slides[t.slideIndex])return null;await this.prepareSearchHighlightTarget(t.slideIndex,e);let l=this.findRenderedSlideElement(t.slideIndex);if(!l)return null;"static"===getComputedStyle(l).position&&(l.style.position="relative");let i=document.createElement("div");i.className="pptx-search-highlight",null!=e&&e.className&&i.classList.add(...e.className.split(/\s+/).filter(Boolean)),i.dataset.pptxSearchHighlight="true",this.applySearchHighlightStyle(i,t,e),l.appendChild(i);let r=!1,n={element:i,result:t,dispose:()=>{r||(r=!0,i.remove(),this.searchHighlightHandles.delete(n))},[Symbol.dispose](){this.dispose()}};return this.searchHighlightHandles.add(n),n}clearSearchHighlights(){for(let t of[...this.searchHighlightHandles])t.dispose();this.searchHighlightHandles.clear()}afterSingleSlideRender(){}destroy(){this.renderGeneration++,this._isRendering=!1,this.teardownAdaptiveResize(),this.unloadRenderedState(),this.presentation=null}unloadRenderedState(){var t,e;for(let l of(this.clearSearchHighlights(),null==(t=this.cleanupScrollObserver)||t.call(this),this.cleanupScrollObserver=void 0,null==(e=this.cleanupListMount)||e.call(this),this.cleanupListMount=void 0,this.ensureListSlideMountedFn=void 0,this.mountedSlides.clear(),this.slideHandles.values())
66)l.dispose();for(let t of(this.slideHandles.clear(),this.textIndexCache=null,this.disposeAllCharts(),this.mediaUrlCache.values()))URL.revokeObjectURL(t);this.mediaUrlCache.clear(),this.container.innerHTML="",this.activeRenderMode=null}[Symbol.dispose](){this.destroy()}normalizeZoomPercent(t){return Number.isFinite(t)?Math.max(10,Math.min(400,t)):100}normalizeBatchSize(t){return Number.isInteger(t)&&t>0?t:12}normalizePositiveInt(t,e){return Number.isInteger(t)&&t>0?t:e}normalizePositiveFloat(t,e){return Number.isFinite(t)&&t>0?t:e}toCssLength(t,e){return void 0===t?e:"number"==typeof t?`${t}px`:t}async prepareSearchHighlightTarget(t,e){var l;let i=null==e?void 0:e.scrollIntoView;!1!==i?await this.goToSlide(t,"object"==typeof i?i:{behavior:"smooth",block:"center"}):"slide"===this.activeRenderMode&&this.currentSlide!==t?await this.goToSlide(t):"list"===this.activeRenderMode&&(null==(l=this.ensureListSlideMountedFn)||l.call(this,t))}findRenderedSlideElement(t){if("list"===this.activeRenderMode){let e=this.container.querySelector(`[data-slide-index="${t}"]`),l=null==e?void 0:e.firstElementChild,i=null==l?void 0:l.firstElementChild;return i instanceof HTMLElement?i:null}let e=this.container.firstElementChild,l=null==e?void 0:e.firstElementChild;return l instanceof HTMLElement?l:null}applySearchHighlightStyle(t,e,l){let i=Number.isFinite(null==l?void 0:l.padding)?Math.max(0,l.padding):0;if(t.style.position="absolute",t.style.pointerEvents="none",t.style.boxSizing="border-box",t.style.left=`${e.bounds.x-i}px`,t.style.top=`${e.bounds.y-i}px`,t.style.width=`${e.bounds.w+2*i}px`,t.style.height=`${e.bounds.h+2*i}px`,t.style.zIndex=String((null==l?void 0:l.zIndex)??1e4),t.style.borderStyle="solid",t.style.borderWidth=this.toCssLength(null==l?void 0:l.borderWidth,"3px"),t.style.borderColor=(null==l?void 0:l.borderColor)??"rgba(255, 214, 102, 0.95)",t.style.borderRadius=this.toCssLength(null==l?void 0:l.borderRadius,"6px"),t.style.background=(null==l?void 0:l.backgroundColor)??"rgba(255, 214, 102, 0.16)",t.style.boxShadow=(null==l?void 0:l.boxShadow)??"0 0 0 2px rgba(17, 17, 34, 0.45)",null!=l&&l.style)for(let[e,i]of Object.entries(l.style))void 0!==i&&t.style.setProperty(e,String(i))}getTextIndex(t){var e,l;let i,r,n=JSON.stringify({includeShapes:(null==t?void 0:t.includeShapes)??!0,includeTables:(null==t?void 0:t.includeTables)??!0,includeGroups:(null==t?void 0:t.includeGroups)??!0});if((null==(e=this.textIndexCache)?void 0:e.key)===n)return this.textIndexCache.entries;let a=this.presentation?(l=this.presentation,i={...r3,...t},r=[],l.slides.forEach((t,e)=>{tL(l,t);let n=l.slideToLayout.get(t.index)||t.layoutIndex,a=l.layouts.get(n),o=n?l.layoutToMaster.get(n):"",s=o?l.masters.get(o):void 0;t.showMasterSp&&(null!=a&&a.showMasterSp&&s&&nr(r,e,s.spTree,"master",i,{rels:s.rels,partPath:o,diagramDrawings:l.diagramDrawings,layout:a,master:s}),a&&nr(r,e,a.spTree,"layout",i,{rels:a.rels,partPath:n,diagramDrawings:l.diagramDrawings,layout:a,master:s})),t.nodes.forEach((n,o)=>{let d=n.id||n.name||String(o);ni(r,e,n,`slides/${e}/nodes/${d}`,i,{rels:t.rels,partPath:t.slidePath,diagramDrawings:l.diagramDrawings,layout:a,master:s})})}),r):[];return this.textIndexCache={key:n,entries:a},a}getThumbnailScale(t){if(!this.presentation)return 1;if((null==t?void 0:t.scale)!==void 0&&Number.isFinite(t.scale)&&t.scale>0)return t.scale;let e=(null==t?void 0:t.width)!==void 0&&Number.isFinite(t.width)&&t.width>0?t.width/this.presentation.width:void 0,l=(null==t?void 0:t.height)!==void 0&&Number.isFinite(t.height)&&t.height>0?t.height/this.presentation.height:void 0;return void 0!==e&&void 0!==l?Math.min(e,l):void 0!==e?e:void 0!==l?l:180/this.presentation.width}getDisplayMetrics(){if(!this.presentation)return{scale:1,displayWidth:0,displayHeight:0};let t=this.viewerOptions.width??(this.container.clientWidth||960);"contain"===this._fitMode&&void 0===this.viewerOptions.width&&(this.lastMeasuredContainerWidth=t);let e=("contain"===this._fitMode?t/this.presentation.width:1)*this.zoomFactor;return{scale:e,displayWidth:this.presentation.width*e,displayHeight:this.presentation.height*e}}async queueRender(){let t=++this.renderGeneration;
66return this.renderChain=this.renderChain.catch(()=>{}).then(async()=>{var e,l;if(!this.isRenderStale(t)){this.emitRenderStart();try{if(this.isRenderStale(t))return;let{scale:i,displayWidth:r,displayHeight:n}=this.getDisplayMetrics();for(let t of(null==(e=this.cleanupScrollObserver)||e.call(this),this.cleanupScrollObserver=void 0,null==(l=this.cleanupListMount)||l.call(this),this.cleanupListMount=void 0,this.ensureListSlideMountedFn=void 0,this.clearSearchHighlights(),this.mountedSlides.clear(),this.slideHandles.values()))t.dispose();if(this.slideHandles.clear(),this.disposeAllCharts(),this.container.innerHTML="",this.container.style.position="relative","slide"===this.activeRenderMode?this.renderSingleSlide(i,r,n):this.listOptions.windowed?await this.renderAllSlidesWindowed(i,r,n,t):await this.renderAllSlidesFull(i,r,n,t),this.isRenderStale(t))return;"slide"!==this.activeRenderMode&&this.correctListMetricsIfNeeded(),this.emitSlideChange(this.currentSlide)}finally{this.emitRenderComplete()}}}),this.renderChain}isRenderStale(t){return t!==this.renderGeneration||!this.presentation}handleContainerResize(){if(!this.presentation||"contain"!==this._fitMode||void 0!==this.viewerOptions.width)return;let t=this.container.clientWidth||0;t&&t!==this.lastMeasuredContainerWidth&&(this.lastMeasuredContainerWidth=t,null!==this.resizeRafId&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=null,this.queueRender()}))}setupAdaptiveResize(){if(this.teardownAdaptiveResize(),"u">typeof ResizeObserver){let t=new ResizeObserver(()=>this.handleContainerResize());t.observe(this.container),this.resizeObserver=t;return}this.windowResizeHandler=()=>this.handleContainerResize(),window.addEventListener("resize",this.windowResizeHandler)}teardownAdaptiveResize(){var t;null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0,this.windowResizeHandler&&(window.removeEventListener("resize",this.windowResizeHandler),this.windowResizeHandler=void 0),null!==this.resizeRafId&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=null)}disposeAllCharts(){for(let t of this.chartInstances)t.isDisposed()||t.dispose();this.chartInstances.clear()}createListSlideItem(t,e,l){let i=document.createElement("div");i.dataset.slideIndex=String(t),i.style.cssText="width: fit-content; margin: 0 auto 20px;";let r=document.createElement("div");if(r.style.cssText=` 67 width: ${e}px; 68 height: ${l}px; 69 box-shadow: 0 2px 8px rgba(0,0,0,0.15); 70 overflow: hidden; 71 position: relative; 72 background: #fff; 73 `,i.appendChild(r),this.listOptions.showSlideLabels){let e=document.createElement("div");e.style.cssText="text-align: center; padding: 4px; font-size: 12px; color: #666;",e.textContent=`Slide ${t+1}`,i.appendChild(e)}return{item:i,wrapper:r}}mountListSlide(t,e,l,i,r){if(!this.presentation||"1"===e.dataset.mounted)return;e.dataset.mounted="1",e.innerHTML="",this.mountedSlides.add(t);let n=this.presentation.slides[t];try{let i=r5(this.presentation,n,{onNodeError:(t,e)=>this.emitNodeError(t,e),onNavigate:t=>this.handleNavigate(t),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});this.slideHandles.set(t,i),i.element.style.transform=`scale(${l})`,i.element.style.transformOrigin="top left",e.appendChild(i.element),this.emitSlideRendered(t,i.element)}catch(l){this.emitSlideError(t,l),e.style.background="#fff3f3",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.border="2px dashed #ff6b6b",e.style.color="#cc0000",e.style.fontSize="14px",e.textContent=`Slide ${t+1}: Render Error - ${l instanceof Error?l.message:String(l)}`}}unmountListSlide(t,e,l){if("1"!==e.dataset.mounted)return;e.dataset.mounted="0",this.mountedSlides.delete(t);let i=this.slideHandles.get(t);i&&(i.dispose(),this.slideHandles.delete(t)),e.innerHTML="",e.style.background="#fff",e.style.display="",e.style.alignItems="",e.style.justifyContent="",e.style.border="",e.style.color="",e.style.fontSize="",e.style.height=`${l}px`,this.emitSlideUnmounted(t)}async renderAllSlidesFull(t,e,l,i){if(!this.presentation)return;let r=this.listOptions.batchSize,n=document.createDocumentFragment();for(let a=0;a<this.presentation.slides.length;a++){if(this.isRenderStale(i))return;let{item:o,wrapper:s}=this.createListSlideItem(a,e,l);if(this.mountListSlide(a,s,t,e,l),n.appendChild(o),(a+1)%r==0&&(this.container.appendChild(n),n=document.createDocumentFragment(),await new Promise(t=>requestAnimationFrame(()=>t())),this.isRenderStale(i)))return}this.isRenderStale(i)||(n.childNodes.length>0&&this.container.appendChild(n),this.setupScrollSlideTracking())}async renderAllSlidesWindowed(t,e,l,i){if(!this.presentation)return;let r=this.listOptions.batchSize,n=document.createDocumentFragment(),a=[];for(let t=0;t<this.presentation.slides.length;t++){if(this.isRenderStale(i))return;let{item:o,wrapper:s}=this.createListSlideItem(t,e,l);if(a.push(s),n.appendChild(o),(t+1)%r==0&&(this.container.appendChild(n),n=document.createDocumentFragment(),await new Promise(t=>requestAnimationFrame(()=>t())),this.isRenderStale(i)))return}if(this.isRenderStale(i))return;n.childNodes.length>0&&this.container.appendChild(n);let o=i=>{i<0||i>=a.length||this.mountListSlide(i,a[i],t,e,l)},s=t=>{t<0||t>=a.length||this.unmountListSlide(t,a[t],l)},d=this.listOptions.initialSlides;for(let t=0;t<Math.min(d,a.length);t++)o(t);this.ensureListSlideMountedFn=o;let u=window.IntersectionObserver;if(!u){for(let t=d;t<a.length;t++)o(t);this.setupScrollSlideTracking();return}let h=this.viewerOptions.scrollContainer??null,c=this.listOptions.overscanViewport,$=h?h.clientHeight:window.innerHeight,f=new u(t=>{for(let e of t){let t=e.target.parentElement,l=Number((null==t?void 0:t.dataset.slideIndex)??"-1");Number.isNaN(l)||l<0||(e.isIntersecting?o(l):s(l))}},{root:h,rootMargin:`${Math.round($*c)}px 0px`,threshold:0});a.forEach(t=>{f.observe(t)}),this.cleanupListMount=()=>{f.disconnect(),this.ensureListSlideMountedFn=void 0},this.setupScrollSlideTracking()}setupScrollSlideTracking(){if("slide"===this.activeRenderMode)return;let t=window.IntersectionObserver;if(!t)return;
73let e=this.container.querySelectorAll("[data-slide-index]");if(!e.length)return;let l=new Map,i=new t(t=>{for(let e of t){let t=Number(e.target.dataset.slideIndex??"-1");Number.isNaN(t)||t<0||l.set(t,e.intersectionRatio)}if(this.suppressScrollChange)return;let e=-1,i=-1;for(let[t,r]of l)r>i&&(i=r,e=t);e>=0&&e!==this.currentSlide&&(this.currentSlide=e,this.emitSlideChange(e))},{root:this.viewerOptions.scrollContainer??null,threshold:[0,.25,.5,.75,1]});e.forEach(t=>i.observe(t)),this.cleanupScrollObserver=()=>{i.disconnect()}}renderSingleSlide(t,e,l){if(!this.presentation)return;let i=this.presentation.slides[this.currentSlide];if(!i)return;for(let t of this.slideHandles.values())t.dispose();this.slideHandles.clear(),this.disposeAllCharts(),this.container.innerHTML="",this.mountedSlides.clear(),this.mountedSlides.add(this.currentSlide);let r=document.createElement("div");r.style.cssText=` 74 width: ${e}px; height: ${l}px; 75 margin: 0 auto; overflow: hidden; position: relative; 76 box-shadow: 0 2px 8px rgba(0,0,0,0.15); 77 `;try{let e=r5(this.presentation,i,{onNodeError:(t,e)=>this.emitNodeError(t,e),onNavigate:t=>this.handleNavigate(t),mediaUrlCache:this.mediaUrlCache,pdfjs:this.viewerOptions.pdfjs,chartInstances:this.chartInstances});this.slideHandles.set(this.currentSlide,e),e.element.style.transform=`scale(${t})`,e.element.style.transformOrigin="top left",r.appendChild(e.element),this.emitSlideRendered(this.currentSlide,e.element)}catch(t){this.emitSlideError(this.currentSlide,t),r.style.background="#fff3f3",r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.border="2px dashed #ff6b6b",r.style.color="#cc0000",r.style.fontSize="14px",r.textContent=`Slide ${this.currentSlide+1}: Render Error - ${t instanceof Error?t.message:String(t)}`}this.container.appendChild(r),this.afterSingleSlideRender()}correctListMetricsIfNeeded(){if(!this.presentation||"contain"!==this._fitMode||void 0!==this.viewerOptions.width)return;let t=this.container.clientWidth||0;if(!t||t===this.lastMeasuredContainerWidth)return;this.lastMeasuredContainerWidth=t;let e=t/this.presentation.width*this.zoomFactor,l=this.presentation.width*e,i=this.presentation.height*e;for(let t of this.container.querySelectorAll("[data-slide-index]")){let r=t.firstElementChild;if(!r)continue;r.style.width=`${l}px`,r.style.height=`${i}px`;let n=r.firstElementChild;n&&(n.style.transform=`scale(${e})`)}}handleNavigate(t){void 0!==t.slideIndex?this.goToSlide(t.slideIndex):t.url&&ei(t.url)&&window.open(t.url,"_blank","noopener,noreferrer")}}async function na(t){if(t instanceof ArrayBuffer)return t;if(t instanceof Uint8Array){let e=new Uint8Array(t.byteLength);return e.set(t),e.buffer}if("function"==typeof t.arrayBuffer)return t.arrayBuffer();if("u">typeof FileReader)return new Promise((e,l)=>{let i=new FileReader;i.onload=()=>e(i.result),i.onerror=()=>l(i.error??Error("Failed to read Blob input")),i.readAsArrayBuffer(t)});if("u">typeof Response)return new Response(t).arrayBuffer();throw Error("Blob preview input is not supported in this runtime")}}}]); 78//# sourceMappingURL=f7cf217f.dd91fe0a10f69bf0.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.