jordium-gantt-vue3 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,311 @@
1
+ "use strict";const n=require("vue"),uc={"zh-CN":{dateNotSet:"未设置",taskName:"任务名称",predecessor:"前置任务",assignee:"分配人",startDate:"开始日期",endDate:"结束日期",estimatedHours:"预计工时(hr)",actualHours:"实际工时(hr)",progress:"进度",type:"类型",description:"描述",csvHeaders:{id:"ID",taskName:"任务名称",predecessor:"前置任务",assignee:"分配人",startDate:"开始日期",endDate:"结束日期",estimatedHours:"预计工时(hr)",actualHours:"实际工时(hr)",progress:"进度(%)",type:"类型",description:"描述"},yearMonthFormat:(t,e)=>`${t}年${String(e).padStart(2,"0")}月`,monthFormat:t=>`${t}月`,monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],weekDays:["日","一","二","三","四","五","六"],milestone:"里程碑",targetDate:"目标日期",today:"今天",milestoneDetails:"里程碑详情",milestoneName:"里程碑名称",milestoneDate:"里程碑日期",milestoneIcon:"里程碑图标",diamond:"菱形",rocket:"火箭",enterMilestoneName:"请输入里程碑名称",enterAssignee:"请输入负责人",enterDescription:"请输入描述信息",milestoneNameRequired:"里程碑名称为必填项",milestoneDateRequired:"里程碑日期为必填项",save:"保存",close:"关闭",confirm:"确认",delete:"删除",confirmDelete:"确定要删除这个里程碑吗?",addTask:"新增需求/任务",addMilestone:"新增里程碑",todayLocate:"今日",todayLocateTooltip:"定位到今天",exportCsv:"导出 CSV",exportPdf:"导出 PDF",language:"中文",languageTooltip:"选择语言",lightMode:"明亮模式",darkMode:"暗黑模式",fullscreen:"全屏",exitFullscreen:"退出全屏",githubDocs:"查看Github文档",giteeDocs:"查看Gitee文档",timeScaleHour:"时",timeScaleDay:"日",timeScaleWeek:"周",timeScaleMonth:"月",timeScaleQuarter:"季",timeScaleYear:"年",timeScaleTooltip:"切换时间刻度",halfYearFirst:"上半年",halfYearSecond:"下半年",confirmDialogMessage:"是否需要保留该设置?",newTask:"新建任务",taskNamePlaceholder:"请输入任务名称",assigneePlaceholder:"请输入负责人",progressPlaceholder:"0-100",hoursPlaceholder:"工时",descriptionPlaceholder:"请输入任务描述...",hours:"小时",create:"创建",taskNameRequired:"任务名称不能为空",startDateRequired:"开始日期不能为空",endDateRequired:"结束日期不能为空",endDateInvalid:"结束日期不能早于开始日期",newMilestone:"新建里程碑",editMilestone:"编辑里程碑",cancel:"取消",startTimer:"开始计时",stopTimer:"停止计时",timerStarted:"任务计时已开始",timerStopped:"任务计时已停止",addPredecessor:"添加前置任务",addSuccessor:"添加后置任务",pdfExportLoading:"正在生成PDF,请稍候...",pdfExportTitle:"甘特图导出",pdfExportDate:"导出日期",milestoneGroup:"里程碑",collapseTaskList:"收起任务列表",expandTaskList:"展开任务列表",taskType:"任务类型",taskTypeRequired:"请选择任务类型",taskTypeMap:{task:"任务",milestone:"里程碑",story:"需求",epic:"史诗",bug:"缺陷"},editTask:"编辑任务",parentTask:"上级任务",time:"时间",selectTime:"选择时间",hour:"时",minute:"分",noParentTask:"无上级任务",update:"更新",taskNameTooLong:"任务名称不能超过50个字符",predecessorPlaceholder:"请选择前置任务",selectPredecessor:"选择前置任务",removePredecessor:"移除前置任务",operationFailed:"操作失败,请重试",taskUpdateSuccess:"任务更新成功",taskCreateSuccess:"任务创建成功",confirmDeleteTask:'确定要删除任务"{name}"吗?此操作不可撤销。',taskDeleteFailed:"删除失败,请重试",confirmDeleteStory:"是否删除该需求{name}及其所有的子任务?该操作不可撤回",storyDeleteYes:"是, 继续",storyDeleteNo:"不,仅删除需求",storyDeleteAllSuccess:"已删除需求【{name}】及其所有子任务",storyDeleteOnlySuccess:"已删除需求【{name}】,{count}个子任务已升级保留",storyNotFound:"未找到要删除的需求,ID:{id}",milestoneDeleteSuccess:"里程碑删除成功",taskDeletedSuccess:"已删除任务",selectAssignee:"请选择负责人",customCsvExportCalled:"自定义CSV导出被调用",languageSwitchedTo:"语言切换到:{language}",themeSwitchedTo:"主题切换到:{theme}",lightModeText:"明亮模式",darkModeText:"暗黑模式",taskNotFound:"未找到要更新的任务,ID:{id}",newParentTaskNotFound:"未找到新父任务,ID:{parentId},将作为顶级任务添加",inPlaceUpdateFailed:"就地更新失败,未找到任务,ID:{id}",taskToDeleteNotFound:"未找到要删除的任务,ID:{id}",milestoneIconUpdateNotFound:"未找到要更新图标的里程碑,ID:{id}",overtime:"超",overdue:"逾期",days:"天",timerConfirmPrefix:"即将为任务",timerConfirmSuffix:"计时,若有特殊说明请完善下面的描述",timerConfirmPlaceholder:"请输入计时说明"},"en-US":{dateNotSet:"Not set",taskName:"Task Name",predecessor:"Predecessor",assignee:"Assignee",startDate:"Start Date",endDate:"End Date",estimatedHours:"Est. Hours",actualHours:"Act. Hours",progress:"Progress",type:"Type",csvHeaders:{id:"ID",taskName:"Task Name",predecessor:"Predecessor",assignee:"Assignee",startDate:"Start Date",endDate:"End Date",estimatedHours:"Est. Hours",actualHours:"Act. Hours",progress:"Progress (%)",type:"Type",description:"Description"},yearMonthFormat:(t,e)=>`${t}/${String(e).padStart(2,"0")}`,monthFormat:t=>`${String(t).padStart(2,"0")}`,monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],milestone:"Milestone",today:"Today",targetDate:"Target Date",milestoneDetails:"Milestone Details",milestoneName:"Milestone Name",milestoneDate:"Milestone Date",milestoneIcon:"Milestone Icon",diamond:"Diamond",rocket:"Rocket",enterMilestoneName:"Enter milestone name",enterAssignee:"Enter assignee",enterDescription:"Enter description",milestoneNameRequired:"Milestone name is required",milestoneDateRequired:"Milestone date is required",save:"Save",close:"Close",confirm:"Confirm",description:"Description",delete:"Delete",confirmDelete:"Are you sure you want to delete this milestone?",addTask:"Add Requirement/Task",addMilestone:"Add Milestone",todayLocate:"Today",todayLocateTooltip:"Locate to today",exportCsv:"Export CSV",exportPdf:"Export PDF",language:"English",languageTooltip:"Select language",lightMode:"Light Mode",darkMode:"Dark Mode",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",githubDocs:"GitHub Docs",giteeDocs:"Gitee Docs",timeScaleHour:"Hour",timeScaleDay:"Day",timeScaleWeek:"Week",timeScaleMonth:"Month",timeScaleQuarter:"Quarter",timeScaleYear:"Year",timeScaleTooltip:"Switch Time Scale",halfYearFirst:"First Half",halfYearSecond:"Second Half",confirmDialogMessage:"Do you want to save this setting?",taskNamePlaceholder:"Enter task name",assigneePlaceholder:"Enter assignee",progressPlaceholder:"0-100",hoursPlaceholder:"Hours",descriptionPlaceholder:"Enter task description...",hours:"Hours",create:"Create",taskNameRequired:"Task name is required",startDateRequired:"Start date is required",endDateRequired:"End date is required",endDateInvalid:"End date cannot be earlier than start date",newMilestone:"New Milestone",editMilestone:"Edit Milestone",cancel:"Cancel",timerStarted:"Timer Started",timerStopped:"Timer Stopped",startTimer:"Start Timer",stopTimer:"Stop Timer",addPredecessor:"Add Predecessor",addSuccessor:"Add Successor",pdfExportLoading:"Generating PDF, please wait...",pdfExportTitle:"Gantt Chart Export",pdfExportDate:"Export Date",milestoneGroup:"Milestone",collapseTaskList:"Collapse Task List",expandTaskList:"Expand Task List",taskType:"Task Type",taskTypeRequired:"Please select task type",taskTypeMap:{task:"Task",milestone:"Milestone",story:"Story",epic:"Epic",bug:"Bug"},editTask:"Edit Task",newTask:"New Task",parentTask:"Parent Task",time:"Time",selectTime:"Select Time",hour:"Hour",minute:"Minute",noParentTask:"No Parent Task",update:"Update",taskNameTooLong:"Task name cannot exceed 50 characters",predecessorPlaceholder:"Select predecessor",selectPredecessor:"Select Predecessor",removePredecessor:"Remove Predecessor",operationFailed:"Operation failed, please try again",taskUpdateSuccess:"Task updated successfully",taskCreateSuccess:"Task created successfully",confirmDeleteTask:'Are you sure you want to delete task "{name}"? This action cannot be undone.',taskDeleteFailed:"Delete failed, please try again",confirmDeleteStory:"Do you want to delete the requirement {name} and all its subtasks? This action cannot be undone",storyDeleteYes:"Yes, Continue",storyDeleteNo:"No, Delete Requirement Only",storyDeleteAllSuccess:"Deleted requirement [{name}] and all its subtasks",storyDeleteOnlySuccess:"Deleted requirement [{name}], {count} subtasks have been promoted",storyNotFound:"Requirement not found, ID: {id}",milestoneDeleteSuccess:"Milestone deleted successfully",taskDeletedSuccess:"Task deleted",selectAssignee:"Select assignee",customCsvExportCalled:"Custom CSV export called",languageSwitchedTo:"Language switched to: {language}",themeSwitchedTo:"Theme switched to: {theme}",lightModeText:"Light Mode",darkModeText:"Dark Mode",taskNotFound:"Task not found for update, ID: {id}",newParentTaskNotFound:"New parent task not found, ID: {parentId}, will be added as top-level task",inPlaceUpdateFailed:"In-place update failed, task not found, ID: {id}",taskToDeleteNotFound:"Task to delete not found, ID: {id}",milestoneIconUpdateNotFound:"Milestone not found for icon update, ID: {id}",overtime:"Over",overdue:"Overdue",days:" days",timerConfirmPrefix:"About to start timing for",timerConfirmSuffix:". If there are special notes, please complete the description below.",timerConfirmPlaceholder:"Please enter timer description"}};function Nu(t,e){uc[t]&&Object.assign(uc[t],e)}const Fg="gantt-locale",Qg=()=>{if(typeof window<"u"){const t=localStorage.getItem(Fg);if(t&&(t==="zh-CN"||t==="en-US"))return t}return"zh-CN"},Dl=n.ref(Qg());function kr(){const t=n.computed(()=>uc[Dl.value]),e=l=>{const u=t.value[l];return typeof u=="string"?u:l},A=(l,u)=>{let d=e(l);return Object.keys(u).forEach(p=>{d=d.replace(new RegExp(`{${p}}`,"g"),String(u[p]))}),d},r=l=>{Dl.value=l,window.dispatchEvent(new CustomEvent("locale-changed",{detail:{locale:l}}))},a=n.computed(()=>Dl.value);return{t,getTranslation:e,formatTranslation:A,locale:a,setLocale:r,formatYearMonth:(l,u)=>t.value.yearMonthFormat(l,u),formatMonth:l=>t.value.monthFormat(l)}}function Eg(t){if(!t)return null;const[e,A,r]=t.split("-").map(Number);return new Date(e,A-1,r)}function ad(t){return t?Array.isArray(t)&&typeof t[0]=="number"?t:Array.isArray(t)?t.filter(e=>e&&e.toString().trim()).map(e=>Number(e.toString().trim())).filter(e=>!isNaN(e)):t.split(",").map(e=>e.trim()).filter(e=>e).map(e=>Number(e)).filter(e=>!isNaN(e)):[]}function fc(t){const e=ad(t);return e.length>0?e.join(", "):"-"}const Ug={class:"confirm-timer-dialog-overlay"},Lg={class:"confirm-timer-dialog"},kg={class:"dialog-message"},xg={class:"task-name-highlight"},Sg=["placeholder"],Dg={class:"dialog-actions"},Ig=n.defineComponent({__name:"ConfirmTimerDialog",props:{visible:Boolean,title:{type:String,default:"确认开始计时"},message:{type:String,default:""},defaultDesc:{type:String,default:""},placeholder:{type:String,default:"请输入计时说明"}},emits:["confirm","cancel"],setup(t,{emit:e}){const A=t,r=e,{getTranslation:a}=kr(),i=n.ref(A.defaultDesc);n.watch(()=>A.visible,u=>{u&&(i.value=A.defaultDesc)});const o=()=>r("confirm",i.value),l=n.computed(()=>{if(A.message){const u=A.message.match(/任务([\S\s]+?)计时|Task ([\S\s]+?) timing/);if(u&&(u[1]||u[2]))return u[1]||u[2]}return A.defaultDesc});return(u,d)=>(n.openBlock(),n.createElementBlock("div",Ug,[n.createElementVNode("div",Lg,[n.createElementVNode("div",kg,[n.createElementVNode("span",null,n.toDisplayString(n.unref(a)("timerConfirmPrefix")),1),n.createElementVNode("span",xg,n.toDisplayString(l.value),1),n.createElementVNode("span",null,n.toDisplayString(n.unref(a)("timerConfirmSuffix")),1)]),n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":d[0]||(d[0]=p=>i.value=p),class:"dialog-textarea",placeholder:n.unref(a)("timerConfirmPlaceholder"),rows:"3"},null,8,Sg),[[n.vModelText,i.value]]),n.createElementVNode("div",Dg,[n.createElementVNode("button",{class:"btn btn-default",onClick:d[1]||(d[1]=p=>u.$emit("cancel"))},n.toDisplayString(n.unref(a)("cancel")),1),n.createElementVNode("button",{class:"btn btn-confirm",onClick:o},n.toDisplayString(n.unref(a)("startTimer")),1)])])]))}}),or=(t,e)=>{const A=t.__vccOpts||t;for(const[r,a]of e)A[r]=a;return A},id=or(Ig,[["__scopeId","data-v-a9b5daff"]]),Ng={class:"gantt-confirm-header"},Tg={class:"gantt-confirm-title"},Hg={class:"gantt-confirm-content"},_g={class:"gantt-confirm-footer"},Mg={class:"gantt-confirm-footer-right"},Pg=n.defineComponent({__name:"GanttConfirmDialog",props:{visible:Boolean,title:{type:String,default:"确认"},message:{type:String,default:""},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},yesText:{type:String,default:"是"},noText:{type:String,default:"否"},type:{type:String,default:"confirm-cancel"}},emits:["confirm","cancel","yes","no"],setup(t,{emit:e}){const A=t,r=e,a=()=>r("confirm"),i=()=>r("cancel"),o=()=>r("yes"),l=()=>r("no");return(u,d)=>t.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:"gantt-confirm-overlay",onClick:i},[n.createElementVNode("div",{class:"gantt-confirm-dialog",onClick:d[0]||(d[0]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",Ng,[n.createElementVNode("h4",Tg,n.toDisplayString(A.title),1)]),n.createElementVNode("div",Hg,[n.createElementVNode("p",null,n.toDisplayString(A.message),1)]),n.createElementVNode("div",_g,[A.type==="yes-no-cancel"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("button",{type:"button",class:"btn btn-default",onClick:i},n.toDisplayString(A.cancelText),1),n.createElementVNode("div",Mg,[n.createElementVNode("button",{type:"button",class:"btn btn-warning",onClick:l},n.toDisplayString(A.noText),1),n.createElementVNode("button",{type:"button",class:"btn btn-danger",onClick:o},n.toDisplayString(A.yesText),1)])],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("button",{type:"button",class:"btn btn-default",onClick:i},n.toDisplayString(A.cancelText),1),n.createElementVNode("button",{type:"button",class:"btn btn-danger",onClick:a},n.toDisplayString(A.confirmText),1)],64))])])])):n.createCommentVNode("",!0)}}),zc=or(Pg,[["__scopeId","data-v-200a3102"]]),Og={class:"icon-wrapper"},Rg=n.defineComponent({__name:"TaskContextMenu",props:{visible:{type:Boolean},position:{},task:{}},emits:["start-timer","stop-timer","add-predecessor","add-successor","delete","close"],setup(t,{emit:e}){const A=t,r=e,{t:a}=kr(),i=n.ref(null),o=n.ref({x:0,y:0}),l=n.ref({display:"none",left:"50%",top:"-8px",transform:"rotate(0deg)"}),u=n.ref(!1),d=n.ref(""),p=n.ref(!1),B=n.computed(()=>{var x;return((x=A.task)==null?void 0:x.type)==="story"?"yes-no-cancel":"confirm-cancel"}),w=n.computed(()=>{var x,R,k;return((x=A.task)==null?void 0:x.type)==="story"?a.value.confirmDeleteStory.replace("{name}",((R=A.task)==null?void 0:R.name)||""):a.value.confirmDeleteTask.replace("{name}",((k=A.task)==null?void 0:k.name)||"")});function g(){var x;d.value=((x=A.task)==null?void 0:x.name)||"",u.value=!0}function y(){u.value=!1}function Q(x){if(u.value=!1,A.task&&typeof A.task=="object"){r("close");const R=Date.now();Object.assign(A.task,{timerStartDesc:x||"",isTimerRunning:!0,timerStartTime:R,timerElapsedTime:0}),r("start-timer",A.task)}}function _(){p.value=!0}const v=()=>{p.value=!1,A.task&&(r("delete",A.task),r("close"))},U=()=>{p.value=!1},M=()=>{p.value=!1,A.task&&(r("delete",A.task,!0),Y())},J=()=>{p.value=!1,A.task&&(r("delete",A.task,!1),Y())},Z=n.computed(()=>{var x;return((x=A.task)==null?void 0:x.type)!=="story"});n.watch([()=>A.visible,()=>A.position],([x,R])=>{x&&R&&n.nextTick(()=>{if(i.value){const k=window.innerWidth,X=window.innerHeight,$=i.value.offsetWidth,j=i.value.offsetHeight;let V=R.x-$/2,AA=R.y+10,sA="50%",DA="-8px",F="rotate(0deg)";if(V+$>k){const D=V+$-k+5;V-=D,sA=`calc(50% + ${D}px)`}if(V<5){const D=5-V;V=5,sA=`calc(50% - ${D}px)`}AA+j>X&&(AA=R.y-j-10,DA="100%",F="rotate(180deg)"),o.value={x:V,y:AA},l.value={display:"block",left:sA,top:DA,transform:F}}})},{immediate:!0,deep:!0});const Y=()=>{r("close")},G=()=>{var x;(x=A.task)!=null&&x.isTimerRunning?(r("close"),Object.assign(A.task,{isTimerRunning:!1,timerEndTime:Date.now(),timerElapsedTime:(A.task.timerElapsedTime||0)+(Date.now()-(A.task.timerStartTime||Date.now()))}),r("stop-timer",A.task)):g()},P=()=>{A.task&&(r("close"),n.nextTick(()=>{r("add-predecessor",A.task)}))},z=()=>{A.task&&(r("close"),n.nextTick(()=>{r("add-successor",A.task)}))},fA=x=>{i.value&&!i.value.contains(x.target)&&Y()},I=x=>{x.key==="Escape"&&Y()};return n.onMounted(()=>{document.addEventListener("mousedown",fA),document.addEventListener("keydown",I)}),n.onUnmounted(()=>{document.removeEventListener("mousedown",fA),document.removeEventListener("keydown",I)}),(x,R)=>{var k,X,$,j;return n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[x.visible?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"menuRef",ref:i,class:"task-context-menu",style:n.normalizeStyle({left:`${o.value.x}px`,top:`${o.value.y}px`,zIndex:1e4,position:"fixed"})},[n.createElementVNode("div",{class:"menu-arrow",style:n.normalizeStyle({display:l.value.display,left:l.value.left,top:l.value.top,transform:l.value.transform})},null,4),Z.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"menu-item",onClick:G},[n.createElementVNode("div",Og,[n.createElementVNode("i",{class:n.normalizeClass(["menu-icon",(k=A.task)!=null&&k.isTimerRunning?"stop-icon":"timer-icon"])},null,2)]),n.createTextVNode(" "+n.toDisplayString((X=A.task)!=null&&X.isTimerRunning?n.unref(a).stopTimer:n.unref(a).startTimer),1)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"menu-item",onClick:P},[R[0]||(R[0]=n.createElementVNode("div",{class:"icon-wrapper"},[n.createElementVNode("i",{class:"menu-icon predecessor-icon"})],-1)),n.createTextVNode(" "+n.toDisplayString(n.unref(a).addPredecessor),1)]),n.createElementVNode("div",{class:"menu-item",onClick:z},[R[1]||(R[1]=n.createElementVNode("div",{class:"icon-wrapper"},[n.createElementVNode("i",{class:"menu-icon successor-icon"})],-1)),n.createTextVNode(" "+n.toDisplayString(n.unref(a).addSuccessor),1)]),R[3]||(R[3]=n.createElementVNode("div",{class:"menu-divider"},null,-1)),n.createElementVNode("div",{class:"menu-item menu-item-danger",onClick:_},[R[2]||(R[2]=n.createElementVNode("div",{class:"icon-wrapper"},[n.createElementVNode("i",{class:"menu-icon delete-icon"})],-1)),n.createTextVNode(" "+n.toDisplayString(n.unref(a).delete),1)]),n.createVNode(zc,{visible:p.value,title:n.unref(a).delete,type:B.value,message:w.value,"confirm-text":n.unref(a).confirm,"cancel-text":n.unref(a).cancel,"yes-text":n.unref(a).storyDeleteYes,"no-text":n.unref(a).storyDeleteNo,onConfirm:v,onYes:M,onNo:J,onCancel:U},null,8,["visible","title","type","message","confirm-text","cancel-text","yes-text","no-text"]),u.value?(n.openBlock(),n.createBlock(id,{key:1,visible:u.value,title:"确认开始计时",message:`即将为任务${($=A.task)==null?void 0:$.name}计时,若有特殊说明请完善下面的描述`,"default-desc":((j=A.task)==null?void 0:j.name)||"",onConfirm:Q,onCancel:y},null,8,["visible","message","default-desc"])):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0)])}}}),sd=or(Rg,[["__scopeId","data-v-12581219"]]),Vg={width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Kg={key:0,points:"9,18 15,12 9,6"},Gg={key:1,points:"18,15 12,9 6,15"},jg={key:1,class:"milestone-spacer"},qg={class:"task-icon"},Wg={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"milestone-group-icon"},Yg={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},zg={key:2,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},$g=["title"],Xg={key:0,class:"timer-dot"},Jg={key:1,class:"status-badge overtime"},Zg={key:2,class:"status-badge overdue"},Ap={class:"col col-pre"},ep={class:"col col-assignee"},tp={class:"assignee-info"},rp={class:"avatar"},np={class:"assignee-name"},ap={class:"col col-date"},ip={class:"col col-date"},sp={class:"col col-hours"},op={class:"col col-hours"},lp={class:"col col-progress"},cp=10,up=n.defineComponent({__name:"TaskRow",props:{task:{},level:{},onDoubleClick:{type:Function},isHovered:{type:Boolean},hoveredTaskId:{},onHover:{type:Function}},emits:["toggle","dblclick","contextmenu","start-timer","stop-timer","add-predecessor","add-successor","delete"],setup(t,{emit:e}){const A=t,r=e,{t:a}=kr(),i=n.computed(()=>{var k;return((k=a.value)==null?void 0:k.overtime)??""}),o=n.computed(()=>{var k;return((k=a.value)==null?void 0:k.overdue)??""}),l=n.computed(()=>{var k;return((k=a.value)==null?void 0:k.days)??""}),u=`${cp+A.level*20}px`;function d(){r("toggle",A.task)}function p(){(A.task.type==="story"||A.task.children&&A.task.children.length>0)&&A.task.type!=="milestone-group"&&r("toggle",A.task)}const B=k=>{k.stopPropagation(),A.onDoubleClick&&typeof A.onDoubleClick=="function"?A.onDoubleClick(A.task):r("dblclick",A.task)},w=()=>{v.value||A.onHover&&A.onHover(A.task.id)},g=()=>{v.value||A.onHover&&A.onHover(null)};function y(){const k=A.task.progress||0,X=new Date,$=A.task.endDate?new Date(A.task.endDate):null;return $&&X>$&&k<100?"progress-danger":k>=100?"progress-success":k>0?"progress-warning":""}function Q(){return A.task.actualHours&&A.task.estimatedHours&&A.task.actualHours>A.task.estimatedHours}function _(){const k=new Date,X=A.task.endDate?new Date(A.task.endDate):null,$=A.task.progress||0;if(X&&k>X&&$<100){const j=new Date(k.getFullYear(),k.getMonth(),k.getDate()),V=new Date(X.getFullYear(),X.getMonth(),X.getDate());return Math.floor((j.getTime()-V.getTime())/(1e3*60*60*24))}return 0}const v=n.ref(!1),U=()=>{v.value=!0},M=()=>{v.value=!1},J=n.ref(0),Z=n.ref(null),Y=n.computed(()=>{const k=Math.floor(J.value/1e3),X=Math.floor(k/3600),$=Math.floor(k%3600/60),j=k%60;return`${String(X).padStart(2,"0")}:${String($).padStart(2,"0")}:${String(j).padStart(2,"0")}`}),G=()=>{if(A.task.isTimerRunning&&A.task.timerStartTime){const k=A.task.timerElapsedTime||0;J.value=Date.now()-A.task.timerStartTime+k}else A.task.timerElapsedTime?J.value=A.task.timerElapsedTime:J.value=0};n.watch(()=>[A.task.isTimerRunning,A.task.timerStartTime,A.task.timerElapsedTime],()=>{Z.value&&(clearInterval(Z.value),Z.value=null),A.task.isTimerRunning?(G(),Z.value=window.setInterval(G,1e3)):G()},{immediate:!0});const P=n.ref(!1),z=n.ref({x:0,y:0}),fA=n.computed(()=>A.task);function I(k){if(window.dispatchEvent(new CustomEvent("close-all-taskbar-menus")),A.task.type!=="task"&&A.task.type!=="story"){k.preventDefault(),P.value=!1;return}k.preventDefault(),P.value=!0,z.value={x:k.clientX,y:k.clientY}}function x(){P.value=!1}const R=(k,X)=>{r("delete",k,X),x()};return n.onMounted(()=>{window.addEventListener("splitter-drag-start",U),window.addEventListener("splitter-drag-end",M),window.addEventListener("close-all-taskbar-menus",x)}),n.onUnmounted(()=>{window.removeEventListener("splitter-drag-start",U),window.removeEventListener("splitter-drag-end",M),window.removeEventListener("close-all-taskbar-menus",x),Z.value&&clearInterval(Z.value)}),(k,X)=>{const $=n.resolveComponent("TaskRow",!0);return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",{class:n.normalizeClass(["task-row",{"task-row-hovered":k.isHovered,"parent-task":A.task.type==="story"||A.task.children&&A.task.children.length>0||A.task.type==="milestone-group","milestone-group-row":A.task.type==="milestone-group","task-type-story":A.task.type==="story","task-type-task":A.task.type==="task","task-type-milestone":A.task.type==="milestone"}]),onClick:p,onDblclick:B,onMouseenter:w,onMouseleave:g,onContextmenu:I},[n.createElementVNode("div",{class:"col col-name",style:n.normalizeStyle({paddingLeft:u})},[(A.task.type==="story"||A.task.children&&A.task.children.length>0)&&A.task.type!=="milestone-group"?(n.openBlock(),n.createElementBlock("span",{key:0,class:"collapse-btn",onClick:n.withModifiers(d,["stop"])},[(n.openBlock(),n.createElementBlock("svg",Vg,[A.task.collapsed?(n.openBlock(),n.createElementBlock("polyline",Kg)):(n.openBlock(),n.createElementBlock("polyline",Gg))]))])):n.createCommentVNode("",!0),A.task.type==="milestone-group"?(n.openBlock(),n.createElementBlock("span",jg)):n.createCommentVNode("",!0),n.createElementVNode("span",qg,[A.task.type==="milestone-group"?(n.openBlock(),n.createElementBlock("svg",Wg,X[10]||(X[10]=[n.createElementVNode("polygon",{points:"12,2 22,12 12,22 2,12"},null,-1)]))):A.task.type==="story"||A.task.children&&A.task.children.length>0?(n.openBlock(),n.createElementBlock("svg",Yg,X[11]||(X[11]=[n.createElementVNode("path",{d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-5l-2-2H5a2 2 0 00-2 2z"},null,-1)]))):(n.openBlock(),n.createElementBlock("svg",zg,X[12]||(X[12]=[n.createStaticVNode('<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-6f0df841></path><polyline points="14,2 14,8 20,8" data-v-6f0df841></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-6f0df841></line><line x1="16" y1="17" x2="8" y2="17" data-v-6f0df841></line><polyline points="10,9 9,9 8,9" data-v-6f0df841></polyline>',5)])))]),n.createElementVNode("span",{class:n.normalizeClass(["task-name-text",{"parent-task":A.task.type==="story"||A.task.children&&A.task.children.length>0||A.task.type==="milestone-group"}]),title:A.task.name},[n.createTextVNode(n.toDisplayString(A.task.name)+" ",1),A.task.isTimerRunning||A.task.timerElapsedTime?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["timer-badge",{"timer-active":A.task.isTimerRunning}])},[A.task.isTimerRunning?(n.openBlock(),n.createElementBlock("span",Xg)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(Y.value),1)],2)):n.createCommentVNode("",!0),Q()?(n.openBlock(),n.createElementBlock("span",Jg,n.toDisplayString(i.value),1)):n.createCommentVNode("",!0),_()>0?(n.openBlock(),n.createElementBlock("span",Zg,n.toDisplayString(o.value)+n.toDisplayString(_()>0?_()+l.value:""),1)):n.createCommentVNode("",!0)],10,$g)],4),A.task.type==="milestone-group"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[X[13]||(X[13]=n.createStaticVNode('<div class="col col-pre milestone-empty-col" data-v-6f0df841></div><div class="col col-assignee milestone-empty-col" data-v-6f0df841></div><div class="col col-date milestone-empty-col" data-v-6f0df841></div><div class="col col-date milestone-empty-col" data-v-6f0df841></div><div class="col col-hours milestone-empty-col" data-v-6f0df841></div><div class="col col-hours milestone-empty-col" data-v-6f0df841></div><div class="col col-progress milestone-empty-col" data-v-6f0df841></div>',7))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",Ap,n.toDisplayString(n.unref(fc)(A.task.predecessor)),1),n.createElementVNode("div",ep,[n.createElementVNode("div",tp,[n.createElementVNode("div",rp,n.toDisplayString(A.task.assignee?A.task.assignee.charAt(0):"-"),1),n.createElementVNode("span",np,n.toDisplayString(A.task.assignee||"-"),1)])]),n.createElementVNode("div",ap,n.toDisplayString(A.task.startDate||"-"),1),n.createElementVNode("div",ip,n.toDisplayString(A.task.endDate||"-"),1),n.createElementVNode("div",sp,n.toDisplayString(A.task.estimatedHours||"-"),1),n.createElementVNode("div",op,n.toDisplayString(A.task.actualHours||"-"),1),n.createElementVNode("div",lp,[n.createElementVNode("span",{class:n.normalizeClass(["progress-value",y()])},n.toDisplayString(A.task.progress!=null?A.task.progress+"%":"-"),3)])],64))],34),A.task.children&&!A.task.collapsed&&A.task.type!=="milestone-group"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(A.task.children,j=>(n.openBlock(),n.createBlock($,{key:j.id,task:j,level:A.level+1,"is-hovered":A.hoveredTaskId===j.id,"hovered-task-id":A.hoveredTaskId,"on-double-click":A.onDoubleClick,"on-hover":A.onHover,onToggle:X[0]||(X[0]=V=>r("toggle",V)),onDblclick:X[1]||(X[1]=V=>r("dblclick",V)),onStartTimer:X[2]||(X[2]=V=>r("start-timer",V)),onStopTimer:X[3]||(X[3]=V=>r("stop-timer",V)),onAddPredecessor:X[4]||(X[4]=V=>r("add-predecessor",V)),onAddSuccessor:X[5]||(X[5]=V=>r("add-successor",V)),onDelete:R},null,8,["task","level","is-hovered","hovered-task-id","on-double-click","on-hover"]))),128)):n.createCommentVNode("",!0),n.createVNode(sd,{visible:P.value,task:fA.value,position:z.value,onClose:x,onStartTimer:X[6]||(X[6]=j=>k.$emit("start-timer",A.task)),onStopTimer:X[7]||(X[7]=j=>k.$emit("stop-timer",A.task)),onAddPredecessor:X[8]||(X[8]=j=>k.$emit("add-predecessor",A.task)),onAddSuccessor:X[9]||(X[9]=j=>k.$emit("add-successor",A.task)),onDelete:R},null,8,["visible","task","position"])])}}}),od=or(up,[["__scopeId","data-v-6f0df841"]]),fp={class:"task-list"},dp={class:"task-list-header"},hp={class:"col col-name"},gp={class:"col col-pre"},pp={class:"col col-assignee"},Bp={class:"col col-date"},mp={class:"col col-date"},wp={class:"col col-hours"},vp={class:"col col-hours"},yp={class:"col col-progress"},Cp=n.defineComponent({__name:"TaskList",props:{tasks:{},onTaskDoubleClick:{type:Function},editComponent:{},useDefaultDrawer:{type:Boolean}},emits:["task-collapse-change","start-timer","stop-timer","add-predecessor","add-successor","delete"],setup(t,{emit:e}){const A=t,r=e,{t:a}=kr(),i=n.ref([]),o=n.ref(null),l=n.ref(!1),u=()=>{l.value=!0},d=()=>{l.value=!1},p=k=>{l.value||(o.value=k,window.dispatchEvent(new CustomEvent("task-list-hover",{detail:k})))},B=k=>{o.value=k.detail},w=k=>{k.type==="milestone"||k.type==="milestone-group"||(A.onTaskDoubleClick&&typeof A.onTaskDoubleClick=="function"?A.onTaskDoubleClick(k):A.useDefaultDrawer&&window.dispatchEvent(new CustomEvent("task-row-double-click",{detail:k})))},g=k=>{if(!k.children||k.children.length===0)return{progress:k.progress||0,startDate:k.startDate||"",endDate:k.endDate||""};const X=[],$=T=>{T.forEach(K=>{X.push(K),K.children&&K.children.length>0&&$(K.children)})};$(k.children);const j=X.reduce((T,K)=>T+(K.progress||0),0),V=X.length>0?Math.round(j/X.length):0,AA=X.filter(T=>T.startDate&&T.endDate);if(AA.length===0)return{progress:V,startDate:k.startDate||"",endDate:k.endDate||""};const sA=AA.map(T=>new Date(T.startDate)),DA=AA.map(T=>new Date(T.endDate)),F=new Date(Math.min(...sA.map(T=>T.getTime()))),D=new Date(Math.max(...DA.map(T=>T.getTime())));return{progress:V,startDate:F.toISOString().split("T")[0],endDate:D.toISOString().split("T")[0]}},y=()=>{const k=X=>X.map($=>{if($.children&&$.children.length>0){const j=k($.children),V=g({...$,children:j});return{...$,progress:V.progress,startDate:V.startDate,endDate:V.endDate,children:j}}return $});i.value=k(i.value)},Q=k=>{const X=[],$=j=>{j.forEach(V=>{X.push(V),V.children&&V.children.length>0&&$(V.children)})};return $(k),X};n.watch(()=>A.tasks,k=>{i.value=k||[],y()},{immediate:!0,deep:!0});function _(k){k.collapsed=!k.collapsed,r("task-collapse-change",k)}const v=k=>{const X=$=>$.map(j=>j.id===k.id?{...j,...k,children:j.children}:j.children?{...j,children:X(j.children)}:j);i.value=X(i.value),y()},U=k=>{const X=k.detail;v(X)},M=k=>{const X=k.detail;i.value.push(X),y()},J=()=>{const k=Q(i.value);window.dispatchEvent(new CustomEvent("task-list-updated",{detail:k}))},Z=k=>{const{milestoneId:X,icon:$}=k.detail,j=V=>{for(const AA of V){if(AA.type==="milestone-group"&&AA.children){const sA=AA.children.find(DA=>DA.id===X);if(sA)return sA.icon=$,!0}if(AA.children&&j(AA.children))return!0}return!1};j(i.value)},Y=k=>{const X=k.target;if(!X)return;const $=X.scrollTop;window.dispatchEvent(new CustomEvent("task-list-vertical-scroll",{detail:{scrollTop:$}}))},G=k=>{const{scrollTop:X}=k.detail,$=document.querySelector(".task-list-body");$&&$.scrollTop!==X&&($.scrollTop=X)},P=k=>{try{window.dispatchEvent(new CustomEvent("context-menu",{detail:k}))}catch(X){console.error("TaskList - Failed to dispatch context-menu event",X)}},z=k=>{r("start-timer",k)},fA=k=>{r("stop-timer",k)},I=k=>{r("add-predecessor",k)},x=k=>{r("add-successor",k)},R=(k,X)=>{r("delete",k,X)};return n.onMounted(async()=>{window.addEventListener("task-updated",U),window.addEventListener("task-added",M),window.addEventListener("request-task-list",J),window.addEventListener("timeline-task-hover",B),window.addEventListener("timeline-vertical-scroll",G),window.addEventListener("milestone-icon-changed",Z),window.addEventListener("splitter-drag-start",u),window.addEventListener("splitter-drag-end",d),y()}),n.onUnmounted(()=>{window.removeEventListener("task-updated",U),window.removeEventListener("task-added",M),window.removeEventListener("request-task-list",J),window.removeEventListener("timeline-task-hover",B),window.removeEventListener("timeline-vertical-scroll",G),window.removeEventListener("milestone-icon-changed",Z),window.removeEventListener("splitter-drag-start",u),window.removeEventListener("splitter-drag-end",d)}),(k,X)=>(n.openBlock(),n.createElementBlock("div",fp,[n.createElementVNode("div",dp,[n.createElementVNode("div",hp,n.toDisplayString(n.unref(a).taskName),1),n.createElementVNode("div",gp,n.toDisplayString(n.unref(a).predecessor),1),n.createElementVNode("div",pp,n.toDisplayString(n.unref(a).assignee),1),n.createElementVNode("div",Bp,n.toDisplayString(n.unref(a).startDate),1),n.createElementVNode("div",mp,n.toDisplayString(n.unref(a).endDate),1),n.createElementVNode("div",wp,n.toDisplayString(n.unref(a).estimatedHours),1),n.createElementVNode("div",vp,n.toDisplayString(n.unref(a).actualHours),1),n.createElementVNode("div",yp,n.toDisplayString(n.unref(a).progress),1)]),n.createElementVNode("div",{class:"task-list-body",onScroll:Y},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,$=>(n.openBlock(),n.createBlock(od,{key:$.id,task:$,level:0,"is-hovered":o.value===$.id,"hovered-task-id":o.value,"on-double-click":A.onTaskDoubleClick,"on-hover":p,onToggle:_,onDblclick:w,onContextmenu:P,onStartTimer:z,onStopTimer:fA,onAddPredecessor:I,onAddSuccessor:x,onDelete:R},null,8,["task","is-hovered","hovered-task-id","on-double-click"]))),128))],32)]))}}),ld=or(Cp,[["__scopeId","data-v-204c9a9c"]]),ZA={HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",QUARTER:"quarter",YEAR:"year"};ZA.HOUR,ZA.DAY,ZA.WEEK,ZA.MONTH,ZA.YEAR;const bp={key:0,class:"parent-label"},Fp={class:"tooltip-title"},Qp={class:"tooltip-content"},Ep={class:"tooltip-row"},Up={class:"tooltip-label"},Lp={class:"tooltip-value"},kp={class:"tooltip-row"},xp={class:"tooltip-label"},Sp={class:"tooltip-value"},Dp={class:"tooltip-row"},Ip={class:"tooltip-label"},Np={class:"tooltip-value"},Tp={class:"tooltip-row"},Hp={class:"tooltip-label"},_p={class:"tooltip-value"},Mp={class:"tooltip-row"},Pp={class:"tooltip-label"},Op={class:"tooltip-value"},Rp=n.defineComponent({__name:"TaskBar",props:{task:{},rowHeight:{},dayWidth:{},startDate:{},isParent:{type:Boolean},onDoubleClick:{type:Function},scrollLeft:{},containerWidth:{},hideBubbles:{type:Boolean},timelineData:{},currentTimeScale:{}},emits:["update:task","bar-mounted","dblclick","drag-end","resize-end","scroll-to-position","start-timer","stop-timer","add-predecessor","add-successor","delete","contextmenu"],setup(t,{emit:e}){const A=t,r=e,{getTranslation:a}=kr(),i=oA=>a(oA),o=oA=>{if(!oA)return null;if(oA instanceof Date)return oA;if(typeof oA=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(oA)){const[HA,qA,pe]=oA.split("-").map(Number);return new Date(HA,qA-1,pe)}if(typeof oA=="string"&&/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(oA)){const[HA,qA]=oA.split(" "),[pe,te,se]=HA.split("-").map(Number),[hA,vA]=qA.split(":").map(Number);return new Date(pe,te-1,se,hA,vA)}const pA=new Date(oA);return isNaN(pA.getTime())?null:pA},l=()=>{const oA=new Date;return new Date(oA.getFullYear(),oA.getMonth(),oA.getDate())},u=oA=>{const pA=oA.getFullYear(),HA=String(oA.getMonth()+1).padStart(2,"0"),qA=String(oA.getDate()).padStart(2,"0");if(A.currentTimeScale===ZA.HOUR){const pe=String(oA.getHours()).padStart(2,"0"),te=String(oA.getMinutes()).padStart(2,"0");return`${pA}-${HA}-${qA} ${pe}:${te}`}return`${pA}-${HA}-${qA}`},d=(oA,pA)=>{const HA=new Date(oA);return HA.setDate(HA.getDate()+pA),HA},p=(oA,pA)=>{const HA=new Date(oA);return HA.setMinutes(HA.getMinutes()+pA),HA},B=(oA,pA)=>Math.round((pA.getTime()-oA.getTime())/(1e3*60)),w=n.computed(()=>A.currentTimeScale===ZA.YEAR),g=n.ref(!1),y=n.ref(!1),Q=n.ref(!1),_=n.ref(0),v=n.ref(0),U=n.ref(0),M=n.ref(0),J=n.ref(0),Z=n.ref(0),Y=n.ref(0),G=n.ref(null),P=n.ref(null),z=n.computed(()=>{var hA,vA;const oA=((hA=G.value)==null?void 0:hA.startDate)||A.task.startDate,pA=((vA=G.value)==null?void 0:vA.endDate)||A.task.endDate,HA=o(oA),qA=o(pA),pe=o(A.startDate);if(!HA||!qA||!pe)return{left:"0px",width:"0px",height:`${A.rowHeight-10}px`,top:"4px"};let te=0,se=0;if(A.currentTimeScale===ZA.HOUR){const TA=new Date(pe);TA.setHours(0,0,0,0);let PA=HA,tA=qA;const yA=oA||A.task.startDate,QA=pA||A.task.endDate;typeof yA=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(yA.trim())&&(PA=new Date(HA),PA.setHours(0,0,0,0)),typeof QA=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(QA.trim())&&(tA=new Date(qA),tA.setDate(tA.getDate()+1),tA.setHours(0,0,0,0));const EA=B(TA,PA),_A=B(TA,tA),fe=40/60;te=Math.max(0,EA*fe),se=Math.max(4,(_A-EA)*fe)}else{const TA=new Date(HA.getFullYear(),HA.getMonth(),HA.getDate()),PA=new Date(qA.getFullYear(),qA.getMonth(),qA.getDate()),tA=new Date(pe.getFullYear(),pe.getMonth(),pe.getDate());if(A.currentTimeScale===ZA.YEAR){const yA=RA(TA,tA),QA=RA(PA,tA);te=yA,se=Math.max(QA-yA,4)}else if(A.timelineData&&A.currentTimeScale&&(A.currentTimeScale===ZA.WEEK||A.currentTimeScale===ZA.MONTH||A.currentTimeScale===ZA.QUARTER)){const yA=ne(TA,A.timelineData,A.currentTimeScale),QA=new Date(PA);QA.setDate(QA.getDate()+1);let EA=ne(QA,A.timelineData,A.currentTimeScale);if(EA===yA){let _A=2;A.currentTimeScale===ZA.WEEK?_A=60/7:A.currentTimeScale===ZA.QUARTER&&(_A=60/90),EA=ne(PA,A.timelineData,A.currentTimeScale)+_A}te=yA,se=Math.max(EA-yA,4)}else{const yA=Math.floor((TA.getTime()-tA.getTime())/864e5),QA=PA.getTime()-TA.getTime(),EA=Math.round(QA/(1e3*60*60*24)),_A=EA===0?1:EA+1;te=yA*A.dayWidth,se=_A*A.dayWidth}}return{left:`${te}px`,width:`${se}px`,height:`${A.rowHeight-10}px`,top:"4px"}}),fA=n.computed(()=>{if(A.isParent)return{type:"parent",color:"#409eff",bgColor:"#409eff",borderColor:"#409eff"};const oA=l(),pA=o(A.task.endDate||""),HA=A.task.progress||0;return HA>=100?{type:"completed",color:"#909399",bgColor:"#f4f4f5",borderColor:"#d3d4d6"}:pA&&pA<oA&&HA<100?{type:"delayed",color:"#f56c6c",bgColor:"#fef0f0",borderColor:"#fbc4c4"}:pA&&pA>=oA&&HA>0?{type:"in-progress",color:"#e6a23c",bgColor:"#fdf6ec",borderColor:"#f5dab1"}:{type:"not-started",color:"#409eff",bgColor:"#ecf5ff",borderColor:"#b3d8ff"}}),I=n.computed(()=>(A.task.progress||0)>=100),x=n.computed(()=>{const oA=A.task.progress||0,pA=parseInt(z.value.width);return`${oA/100*pA}px`}),R=n.computed(()=>A.dayWidth<=9),k=n.computed(()=>parseFloat(z.value.width||"0")<80),X=n.computed(()=>R.value&&k.value),$=(oA,pA)=>{if(I.value||A.isParent||w.value||(oA.preventDefault(),oA.stopPropagation(),G.value=null,!document.querySelector(".timeline")||!P.value))return;const qA=P.value.getBoundingClientRect();Y.value=oA.clientX-qA.left,pA==="drag"?(g.value=!0,_.value=oA.clientX,v.value=parseInt(z.value.left),U.value=parseInt(z.value.width)):pA==="resize-left"?(y.value=!0,M.value=oA.clientX,J.value=parseInt(z.value.width),Z.value=parseInt(z.value.left)):pA==="resize-right"&&(Q.value=!0,M.value=oA.clientX,J.value=parseInt(z.value.width),Z.value=parseInt(z.value.left)),window.addEventListener("timeline-auto-scroll",j),document.addEventListener("mousemove",AA),document.addEventListener("mouseup",sA)},j=oA=>{const{scrollDelta:pA}=oA.detail;g.value?_.value-=pA:(y.value||Q.value)&&(M.value-=pA)};function V(){if(P.value){const oA=P.value.getBoundingClientRect();r("bar-mounted",{id:A.task.id,left:oA.left,top:oA.top,width:oA.width,height:oA.height})}}const AA=oA=>{if(window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:oA.clientX,isDragging:g.value||y.value||Q.value}})),g.value){const pA=oA.clientX-_.value;if(A.currentTimeScale===ZA.HOUR){const HA=.6666666666666666,qA=HA*15,pe=Math.max(0,v.value+pA),te=Math.round(pe/qA)*qA,se=Math.round(te/HA),hA=new Date(A.startDate);hA.setHours(0,0,0,0);const vA=p(hA,se),TA=o(A.task.startDate)||A.startDate,PA=o(A.task.endDate)||A.startDate;let tA;if(A.task.startDate&&!A.task.startDate.includes(" ")){const QA=PA.getTime()-TA.getTime();tA=Math.max(1,Math.round(QA/(1e3*60*60*24))+1)*24*60}else tA=B(TA,PA);const yA=p(vA,tA);G.value={startDate:u(vA),endDate:u(yA)}}else{const HA=Math.max(0,v.value+pA),qA=d(A.startDate,HA/A.dayWidth),pe=U.value/A.dayWidth,te=d(qA,pe-1);G.value={startDate:u(qA),endDate:u(te)}}}else if(y.value){const pA=oA.clientX-M.value;if(A.currentTimeScale===ZA.HOUR){const HA=.6666666666666666,qA=HA*15,pe=Math.max(0,Z.value+pA),te=Math.round(pe/qA)*qA,se=Math.round(te/HA),hA=new Date(A.startDate);hA.setHours(0,0,0,0);const vA=p(hA,se);G.value={startDate:u(vA),endDate:A.task.endDate}}else{const HA=Math.max(0,Z.value+pA),qA=d(A.startDate,HA/A.dayWidth);G.value={startDate:u(qA),endDate:A.task.endDate}}}else if(Q.value){const pA=oA.clientX-M.value;if(A.currentTimeScale===ZA.HOUR){const HA=.6666666666666666,qA=HA*15,pe=Math.max(qA,J.value+pA),te=Math.round(pe/qA)*qA,se=Math.round(te/HA),hA=o(A.task.startDate)||A.startDate,vA=p(hA,se);G.value={startDate:A.task.startDate,endDate:u(vA)}}else{const qA=Math.max(A.dayWidth,J.value+pA)/A.dayWidth,pe=d(A.startDate,Z.value/A.dayWidth+qA-1);G.value={startDate:A.task.startDate,endDate:u(pe)}}}},sA=()=>{if(window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:0,isDragging:!1}})),G.value){const oA={...A.task,...G.value};g.value?r("drag-end",oA):(y.value||Q.value)&&r("resize-end",oA),r("update:task",oA),G.value=null,n.nextTick(()=>{V()})}window.removeEventListener("timeline-auto-scroll",j),g.value=!1,y.value=!1,Q.value=!1,document.removeEventListener("mousemove",AA),document.removeEventListener("mouseup",sA)};n.onMounted(()=>{n.nextTick(()=>{V()});const oA=()=>{n.nextTick(()=>{V()})},pA=()=>{n.nextTick(()=>{setTimeout(()=>{V()},10)})};window.addEventListener("timeline-scale-updated",oA),window.addEventListener("timeline-force-recalculate",pA),window.addEventListener("close-all-taskbar-menus",He),n.onUnmounted(()=>{window.removeEventListener("timeline-scale-updated",oA),window.removeEventListener("timeline-force-recalculate",pA),window.removeEventListener("close-all-taskbar-menus",He)})}),n.watch(()=>[A.task.startDate,A.task.endDate],()=>{n.nextTick(()=>{V()})},{deep:!0});const DA=oA=>{oA.stopPropagation(),oA.preventDefault(),g.value=!1,y.value=!1,Q.value=!1,G.value=null,document.removeEventListener("mousemove",AA),document.removeEventListener("mouseup",sA),A.onDoubleClick&&typeof A.onDoubleClick=="function"?A.onDoubleClick(A.task):r("dblclick",A.task)},F=n.computed(()=>{const oA=A.scrollLeft||0,pA=A.containerWidth||0;if(!oA&&!pA)return{nameLeft:"",namePosition:"",nameTop:"",progressLeft:"",progressPosition:"",progressTop:""};const HA=parseInt(z.value.left),qA=parseInt(z.value.width),pe=HA+qA,te=HA+qA/2,se=oA,hA=oA+pA;let vA="",TA="",PA="",tA="",yA="",QA="";const EA=A.task.name||"",_A=Math.max(EA.length*7,40),fe=35,Fe=te-_A/2,Ce=te+_A/2,Ae=te-fe/2,SA=te+fe/2,Be=Fe<se&&pe>se&&te<se,Me=Ce>hA&&HA<hA&&te>hA;Be?(vA=`${se-HA+8}px`,TA="absolute",PA="6px"):Me&&(vA=`${hA-HA-_A-8}px`,TA="absolute",PA="6px");const qe=Ae<se&&pe>se&&te<se,Re=SA>hA&&HA<hA&&te>hA;return qe?(tA=`${se-HA+8}px`,yA="absolute",QA="24px"):Re&&(tA=`${hA-HA-fe-8}px`,yA="absolute",QA="24px"),{nameLeft:vA,namePosition:TA,nameTop:PA,progressLeft:tA,progressPosition:yA,progressTop:QA}}),D=n.computed(()=>{const oA=A.scrollLeft||0,pA=A.containerWidth||0;if(!pA||pA<=0)return{show:!1,left:"0px",side:"left",color:"#409eff",animationType:"none"};if(lA.value||NA.value||A.hideBubbles)return{show:!1,left:"0px",side:"left",color:fA.value.color,animationType:"none"};const HA=parseInt(z.value.left),qA=parseInt(z.value.width),pe=HA+qA,te=oA,se=oA+pA,hA=pe<=te,vA=HA>=se;return hA?{show:!0,left:`${te-HA-4}px`,side:"left",color:fA.value.color,animationType:"morphToSemiCircle"}:vA?{show:!0,left:`${se-HA-8}px`,side:"right",color:fA.value.color,animationType:"morphToSemiCircle"}:{show:!1,left:"0px",side:"left",color:fA.value.color,animationType:"none"}}),T=n.ref(!1),K=n.ref({x:0,y:0}),eA=n.ref(!1),uA=n.ref(null),dA=n.ref(!1),lA=n.ref(!0),WA=n.ref(!1),NA=n.ref(!1),JA=()=>{const oA=A.scrollLeft||0,pA=A.containerWidth||0;if(!oA&&!pA)return;const HA=parseInt(z.value.left),qA=parseInt(z.value.width),te=HA+qA/2-pA/2;WA.value=!0,NA.value=!0,T.value=!1,r("scroll-to-position",te)};n.watch(()=>[A.scrollLeft,A.containerWidth],(oA,pA)=>{const[HA,qA]=oA,[pe,te]=pA||[0,0],se=HA||0,hA=qA||0,vA=pe||0,TA=te||0;if(Math.abs(hA-TA)>1&&TA>0){dA.value=!0,n.nextTick(()=>{}),setTimeout(()=>{dA.value=!1},500);return}lA.value&&se>=0&&hA>0&&setTimeout(()=>{lA.value=!1},1e3),se!==vA&&!dA.value&&(eA.value=!0,uA.value&&clearTimeout(uA.value),uA.value=setTimeout(()=>{eA.value=!1,WA.value&&(WA.value=!1,setTimeout(()=>{NA.value=!1},300))},200))}),n.watch(()=>A.hideBubbles,(oA,pA)=>{pA&&!oA&&n.nextTick(()=>{})}),n.watch(()=>D.value.show,()=>{});const jA=()=>{dA.value=!0,n.nextTick(()=>{}),setTimeout(()=>{dA.value=!1},300)};n.onMounted(()=>{window.addEventListener("resize",jA),window.addEventListener("zoom",jA)}),n.onUnmounted(()=>{document.removeEventListener("mousemove",AA),document.removeEventListener("mouseup",sA),window.removeEventListener("resize",jA),window.removeEventListener("zoom",jA)});const de=oA=>{T.value=!0;const HA=D.value.side==="right"?-180:15;K.value={x:oA.clientX+HA,y:oA.clientY-10}},UA=()=>{T.value=!1},S=oA=>{oA.stopPropagation(),T.value=!1},FA=oA=>{if(!oA)return i("dateNotSet");const pA=o(oA);if(!pA)return i("dateNotSet");const HA=pA.getFullYear(),qA=String(pA.getMonth()+1).padStart(2,"0"),pe=String(pA.getDate()).padStart(2,"0");return`${HA}-${qA}-${pe}`},KA=n.computed(()=>{const oA=o(A.task.startDate),pA=o(A.task.endDate);let HA=0;if(oA&&pA){const te=Math.abs(pA.getTime()-oA.getTime());HA=Math.ceil(te/(1e3*60*60*24))*8}const qA=A.task.progress||0,pe=Math.round(HA*qA/100);return{total:HA,used:pe}}),GA=n.computed(()=>!0),$A=()=>{const oA=F.value,pA={};return oA.nameLeft&&(pA.left=oA.nameLeft),oA.namePosition&&(pA.position=oA.namePosition),oA.nameTop&&(pA.top=oA.nameTop),pA},ee=()=>{const oA=F.value,pA={};return oA.progressLeft&&(pA.left=oA.progressLeft),oA.progressPosition&&(pA.position=oA.progressPosition),oA.progressTop&&(pA.top=oA.progressTop),pA},RA=(oA,pA)=>{const HA=oA.getFullYear(),qA=pA.getFullYear(),pe=360,te=180;let hA=(HA-qA)*pe;const vA=oA.getMonth()+1;vA>6&&(hA+=te);let TA=0,PA;vA<=6?PA=new Date(HA,0,1):PA=new Date(HA,6,1),TA=Math.floor((oA.getTime()-PA.getTime())/(1e3*60*60*24));const tA=vA<=6?Math.floor((new Date(HA,6,1).getTime()-new Date(HA,0,1).getTime())/(1e3*60*60*24)):Math.floor((new Date(HA+1,0,1).getTime()-new Date(HA,6,1).getTime())/(1e3*60*60*24)),yA=TA/tA*te;return hA+=yA,hA},ne=(oA,pA,HA)=>{var pe;let qA=0;for(const te of pA)if(HA===ZA.QUARTER){const se=te.quarters||[];for(const hA of se){const vA=hA,TA=new Date(vA.startDate),PA=new Date(vA.endDate);if(oA>=TA&&oA<=PA){const QA=60/Math.ceil((PA.getTime()-TA.getTime())/864e5),EA=Math.ceil((oA.getTime()-TA.getTime())/(1e3*60*60*24));return qA+EA*QA}qA+=60}}else if(HA===ZA.WEEK){const se=te.weeks||[];for(const hA of se){const vA=new Date(hA.weekStart),TA=new Date(hA.weekEnd);if(oA>=vA&&oA<=TA){const tA=hA.subDays||[],yA=60/7;for(let EA=0;EA<tA.length;EA++){const _A=tA[EA],fe=new Date(_A.date);if(fe.getFullYear()===oA.getFullYear()&&fe.getMonth()===oA.getMonth()&&fe.getDate()===oA.getDate())return qA+EA*yA}const QA=oA.getDay();return qA+QA*yA}qA+=60}}else if(HA===ZA.MONTH){const se=new Date(te.startDate),hA=new Date(te.endDate);if(oA>=se&&oA<=hA){const PA=60/(((pe=te.monthData)==null?void 0:pe.dayCount)||30),tA=oA.getDate();return qA+(tA-1)*PA}qA+=60}return qA},he=n.ref(!1),ve=n.ref({x:0,y:0}),be=n.computed(()=>A.task);function Se(oA){if(window.dispatchEvent(new CustomEvent("close-all-taskbar-menus")),A.task.type!=="task"&&A.task.type!=="story"){oA.preventDefault(),he.value=!1;return}oA.preventDefault(),he.value=!0,ve.value={x:oA.clientX,y:oA.clientY}}function He(){he.value=!1}const me=(oA,pA)=>{r("delete",oA,pA),He()};return n.onMounted(()=>{window.addEventListener("close-all-taskbar-menus",He)}),n.onUnmounted(()=>{window.removeEventListener("close-all-taskbar-menus",He)}),(oA,pA)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{ref_key:"barRef",ref:P,class:n.normalizeClass(["task-bar",{dragging:g.value,resizing:y.value||Q.value,completed:I.value,"parent-task":oA.isParent,"week-view":R.value,"short-task-bar":k.value,"overflow-effect":X.value}]),style:n.normalizeStyle({...z.value,backgroundColor:fA.value.bgColor,borderColor:fA.value.borderColor,color:fA.value.color,cursor:I.value||oA.isParent?"default":"move","--row-height":`${oA.rowHeight}px`}),onContextmenu:Se,onDblclick:DA},[oA.isParent?(n.openBlock(),n.createElementBlock("div",bp,n.toDisplayString(oA.task.name)+" ("+n.toDisplayString(oA.task.progress||0)+"%)",1)):n.createCommentVNode("",!0),!oA.isParent&&oA.task.progress&&oA.task.progress>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-bar",style:n.normalizeStyle({width:x.value,backgroundColor:fA.value.color})},null,4)):n.createCommentVNode("",!0),!I.value&&!oA.isParent&&!w.value?(n.openBlock(),n.createElementBlock("div",{key:2,class:"resize-handle resize-handle-left",onMousedown:pA[0]||(pA[0]=HA=>$(HA,"resize-left"))},null,32)):n.createCommentVNode("",!0),oA.isParent?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:3,class:"task-bar-content",style:n.normalizeStyle({cursor:w.value?"default":"move"}),onMousedown:pA[1]||(pA[1]=HA=>w.value?null:$(HA,"drag"))},[n.createElementVNode("div",{class:"task-name",style:n.normalizeStyle($A())},n.toDisplayString(oA.task.name),5),GA.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"task-progress",style:n.normalizeStyle(ee())},n.toDisplayString(oA.task.progress||0)+"% ",5)):n.createCommentVNode("",!0)],36)),!I.value&&!oA.isParent&&!w.value?(n.openBlock(),n.createElementBlock("div",{key:4,class:"resize-handle resize-handle-right",onMousedown:pA[2]||(pA[2]=HA=>$(HA,"resize-right"))},null,32)):n.createCommentVNode("",!0),D.value.show&&!oA.isParent?(n.openBlock(),n.createElementBlock("div",{key:5,class:n.normalizeClass(["bubble-indicator",[`bubble-${D.value.side}`,`bubble-animation-${D.value.animationType}`]]),style:n.normalizeStyle({left:D.value.left,backgroundColor:D.value.color,borderColor:D.value.color}),onMouseenter:de,onMouseleave:UA,onMousedown:S,onClick:JA},null,38)):n.createCommentVNode("",!0),n.createVNode(sd,{visible:he.value,task:be.value,position:ve.value,onClose:He,onStartTimer:pA[3]||(pA[3]=HA=>oA.$emit("start-timer",A.task)),onStopTimer:pA[4]||(pA[4]=HA=>oA.$emit("stop-timer",A.task)),onAddPredecessor:pA[5]||(pA[5]=HA=>oA.$emit("add-predecessor",A.task)),onAddSuccessor:pA[6]||(pA[6]=HA=>oA.$emit("add-successor",A.task)),onDelete:me},null,8,["visible","task","position"])],38),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[T.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"task-tooltip",style:n.normalizeStyle({left:`${K.value.x}px`,top:`${K.value.y}px`})},[pA[7]||(pA[7]=n.createElementVNode("div",{class:"tooltip-arrow"},null,-1)),n.createElementVNode("div",Fp,n.toDisplayString(oA.task.name),1),n.createElementVNode("div",Qp,[n.createElementVNode("div",Ep,[n.createElementVNode("span",Up,n.toDisplayString(i("startDate"))+":",1),n.createElementVNode("span",Lp,n.toDisplayString(FA(oA.task.startDate)),1)]),n.createElementVNode("div",kp,[n.createElementVNode("span",xp,n.toDisplayString(i("endDate"))+":",1),n.createElementVNode("span",Sp,n.toDisplayString(FA(oA.task.endDate)),1)]),n.createElementVNode("div",Dp,[n.createElementVNode("span",Ip,n.toDisplayString(i("estimatedHours"))+":",1),n.createElementVNode("span",Np,n.toDisplayString(KA.value.total)+"h",1)]),n.createElementVNode("div",Tp,[n.createElementVNode("span",Hp,n.toDisplayString(i("actualHours"))+":",1),n.createElementVNode("span",_p,n.toDisplayString(KA.value.used)+"h",1)]),n.createElementVNode("div",Mp,[n.createElementVNode("span",Pp,n.toDisplayString(i("progress"))+":",1),n.createElementVNode("span",Op,n.toDisplayString(oA.task.progress||0)+"%",1)])])],4)):n.createCommentVNode("",!0)]))],64))}}),cd=or(Rp,[["__scopeId","data-v-af74579f"]]),Vp=["title"],Kp={key:0,transform:"rotate(45 16 16)"},Gp=["fill","stroke"],jp={key:1},qp={key:2,transform:"rotate(45 16 16)"},Wp=["fill","stroke"],Yp={key:1,class:"milestone-label milestone-label-right"},zp={class:"tooltip-content"},$p=n.defineComponent({__name:"MilestonePoint",props:{date:{},rowHeight:{},dayWidth:{},startDate:{},name:{},milestone:{},scrollLeft:{},containerWidth:{},milestoneId:{},otherMilestones:{},timelineData:{},currentTimeScale:{}},emits:["milestone-double-click","update:milestone","drag-end"],setup(t,{emit:e}){const A=t,r=e,{getTranslation:a}=kr(),i=j=>a(j),o=n.ref(!1),l=n.ref(0),u=n.ref(0),d=n.ref(null),p=j=>{if(j.preventDefault(),j.stopPropagation(),!(Y.value.isSticky||Y.value.isPushedOut||!Y.value.showIcon))if(o.value=!1,d.value=null,document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",_),A.milestone)r("milestone-double-click",A.milestone);else{const V={name:A.name||"里程碑",startDate:A.date,type:"milestone"};r("milestone-double-click",V)}},B=(j,V)=>{const AA=new Date(j);return AA.setDate(AA.getDate()+V),AA},w=j=>{const V=j.getFullYear(),AA=String(j.getMonth()+1).padStart(2,"0"),sA=String(j.getDate()).padStart(2,"0");return`${V}-${AA}-${sA}`},g=j=>{Y.value.isSticky||Y.value.isPushedOut||!Y.value.showIcon||(j.preventDefault(),j.stopPropagation(),!document.querySelector(".timeline"))||(l.value=j.clientX,u.value=parseInt(U.value.left),d.value=null,window.addEventListener("timeline-auto-scroll",y),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",_))},y=j=>{const{scrollDelta:V}=j.detail;o.value&&(l.value-=V)},Q=j=>{window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:j.clientX,isDragging:o.value}}));const V=j.clientX-l.value;if(Math.abs(V)>3){o.value=!0;const AA=Math.max(0,u.value+V),sA=B(A.startDate,AA/A.dayWidth);d.value={startDate:w(sA)}}},_=()=>{if(window.dispatchEvent(new CustomEvent("drag-boundary-check",{detail:{mouseX:0,isDragging:!1}})),o.value&&d.value&&A.milestone){const j={...A.milestone,...d.value};r("update:milestone",j),r("drag-end",j)}window.removeEventListener("timeline-auto-scroll",y),o.value=!1,d.value=null,document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",_)},v=j=>{if(j.preventDefault(),j.stopPropagation(),o.value||Y.value.isPushedOut||!Y.value.showIcon||Y.value.isFullyVisible)return;const V=A.containerWidth||0,AA=parseInt(U.value.left)+12;if(V>0){const sA=Math.max(0,AA-V/2);window.dispatchEvent(new CustomEvent("milestone-click-locate",{detail:{scrollLeft:sA,smooth:!0}}))}},U=n.computed(()=>{var DA;const j=((DA=d.value)==null?void 0:DA.startDate)||A.date,V=Eg(j);if(!A.startDate||!V||isNaN(V.getTime()))return{left:"0px",top:"0px",width:"auto",height:"auto"};let AA=0,sA=24;return A.currentTimeScale===ZA.YEAR||A.currentTimeScale===ZA.QUARTER?sA=Math.min(A.rowHeight,24):A.currentTimeScale===ZA.MONTH?sA=Math.min(A.rowHeight,20):A.currentTimeScale===ZA.WEEK?sA=Math.min(A.rowHeight,Math.max(A.dayWidth*.8,16),24):sA=Math.min(A.rowHeight,A.dayWidth*1.2,24),A.currentTimeScale===ZA.YEAR?AA=R(V,A.startDate)-sA/2:A.currentTimeScale===ZA.QUARTER?AA=X(V,A.startDate)-sA/2:A.currentTimeScale===ZA.HOUR?AA=k(V,A.startDate)-sA/2:A.timelineData&&A.currentTimeScale&&(A.currentTimeScale===ZA.WEEK||A.currentTimeScale===ZA.MONTH)?AA=$(V,A.timelineData,A.currentTimeScale)-sA/2:AA=Math.floor((V.getTime()-A.startDate.getTime())/864e5)*A.dayWidth+A.dayWidth/2-sA/2,{left:`${AA}px`,top:`${(A.rowHeight-sA)/2}px`,width:"auto",height:"auto"}}),M=n.computed(()=>"var(--gantt-danger, #f56c6c)"),J=n.computed(()=>"var(--gantt-danger-light, #fab6b6)"),Z=n.computed(()=>{var j;return((j=A.milestone)==null?void 0:j.icon)||"diamond"}),Y=n.computed(()=>{const j=A.scrollLeft||0,V=A.containerWidth||0;if(!V||V<=0)return{showIcon:!0,showLabel:!0,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!1,clipPath:"none",isFullyVisible:!0};const AA=parseInt(U.value.left)+12,sA=j,DA=j+V,F=24,D=AA-F/2,T=AA+F/2,K=A.milestoneId,eA=D>=sA&&T<=DA,uA=A.otherMilestones||[];if(T<=sA+F/2){const dA=uA.filter(lA=>lA.id!==K&&lA.stickyPosition==="left"&&lA.isSticky);if(dA.length>0){const lA=parseInt(U.value.left)+12;if(dA.some(NA=>NA.originalLeft>lA))return{showIcon:!1,showLabel:!1,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!0,clipPath:"none",isFullyVisible:!1}}return{showIcon:!0,showLabel:!1,isSticky:!0,stickyPosition:"left",iconLeft:`${sA-parseInt(U.value.left)-F/2}px`,isPushedOut:!1,clipPath:"polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%)",isFullyVisible:!1}}if(D>=DA-F/2){const dA=uA.filter(lA=>lA.id!==K&&lA.stickyPosition==="right"&&lA.isSticky);if(dA.length>0){const lA=parseInt(U.value.left)+12;if(dA.some(NA=>NA.originalLeft<lA))return{showIcon:!1,showLabel:!1,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!0,clipPath:"none",isFullyVisible:!1}}return{showIcon:!0,showLabel:!1,isSticky:!0,stickyPosition:"right",iconLeft:`${DA-parseInt(U.value.left)-F/2}px`,isPushedOut:!1,clipPath:"polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%)",isFullyVisible:!1}}return{showIcon:!0,showLabel:!0,isSticky:!1,stickyPosition:"none",iconLeft:"0px",isPushedOut:!1,clipPath:"none",isFullyVisible:eA}}),G=n.ref(!1),P=n.ref({x:0,y:0}),z=j=>{var V;if(Y.value.isSticky&&Y.value.showIcon&&!Y.value.isPushedOut){G.value=!0;const AA=!A.milestone||((V=A.milestone)==null?void 0:V.icon)==="diamond"?-300:-270,sA=Y.value.stickyPosition==="left"?10:AA;P.value={x:j.clientX+sA,y:j.clientY-10}}},fA=()=>{G.value=!1},I=j=>{if(!j)return i("dateNotSet");try{const V=new Date(j);if(isNaN(V.getTime()))return i("dateNotSet");const AA=V.getFullYear(),sA=String(V.getMonth()+1).padStart(2,"0"),DA=String(V.getDate()).padStart(2,"0");return`${AA}-${sA}-${DA}`}catch{return i("dateNotSet")}},x=n.computed(()=>{var AA,sA;const j=A.name||((AA=A.milestone)==null?void 0:AA.name)||i("milestone"),V=I(A.date||((sA=A.milestone)==null?void 0:sA.startDate)||"");return`${i("milestone")}:${j} - ${i("targetDate")}:${V}`});n.onUnmounted(()=>{o.value=!1,d.value=null,document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",_)});const R=(j,V)=>{const AA=j.getFullYear(),sA=V.getFullYear(),DA=360,F=180;let T=(AA-sA)*DA;const K=j.getMonth()+1;K>6&&(T+=F);let eA=0,uA;K<=6?uA=new Date(AA,0,1):uA=new Date(AA,6,1),eA=Math.floor((j.getTime()-uA.getTime())/(1e3*60*60*24));const dA=K<=6?Math.floor((new Date(AA,6,1).getTime()-new Date(AA,0,1).getTime())/(1e3*60*60*24)):Math.floor((new Date(AA+1,0,1).getTime()-new Date(AA,6,1).getTime())/(1e3*60*60*24)),lA=eA/dA*F;return T+=lA,T},k=(j,V)=>{const AA=new Date(j.getFullYear(),j.getMonth(),j.getDate()),sA=new Date(V.getFullYear(),V.getMonth(),V.getDate()),DA=AA.getTime()-sA.getTime(),T=Math.floor(DA/(1e3*60*60*24))*960,eA=j.getHours()*40,dA=j.getMinutes()/60*40;return T+eA+dA},X=(j,V)=>{const AA=j.getFullYear(),sA=V.getFullYear(),DA=240,F=60;let T=(AA-sA)*DA;const K=j.getMonth()+1;let eA=1;K>=1&&K<=3?eA=1:K>=4&&K<=6?eA=2:K>=7&&K<=9?eA=3:eA=4,T+=(eA-1)*F;let uA=0,dA,lA;eA===1?(dA=new Date(AA,0,1),lA=new Date(AA,2,31)):eA===2?(dA=new Date(AA,3,1),lA=new Date(AA,5,30)):eA===3?(dA=new Date(AA,6,1),lA=new Date(AA,8,30)):(dA=new Date(AA,9,1),lA=new Date(AA,11,31)),uA=Math.floor((j.getTime()-dA.getTime())/(1e3*60*60*24));const WA=lA.getTime(),NA=dA.getTime(),JA=Math.floor((WA-NA)/(1e3*60*60*24))+1,jA=uA/JA*F;return T+=jA,T},$=(j,V,AA)=>{var DA;let sA=0;for(const F of V)if(AA===ZA.WEEK){const D=F.weeks||[];for(const T of D){const K=new Date(T.weekStart),eA=new Date(T.weekEnd);if(j>=K&&j<=eA){const dA=T.subDays||[],lA=60/7;for(let JA=0;JA<dA.length;JA++){const jA=dA[JA],de=new Date(jA.date);if(de.getFullYear()===j.getFullYear()&&de.getMonth()===j.getMonth()&&de.getDate()===j.getDate())return sA+JA*lA+lA/2}const WA=j.getDay(),NA=WA===0?6:WA-1;return sA+NA*lA+lA/2}sA+=60}}else if(AA===ZA.MONTH){const D=new Date(F.startDate),T=new Date(F.endDate);if(j>=D&&j<=T){const uA=60/(((DA=F.monthData)==null?void 0:DA.dayCount)||30),dA=j.getDate();return sA+(dA-1)*uA+uA/2}sA+=60}return sA};return(j,V)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",{class:n.normalizeClass(["milestone",{dragging:o.value,"milestone-sticky":Y.value.isSticky,"milestone-sticky-left":Y.value.stickyPosition==="left","milestone-sticky-right":Y.value.stickyPosition==="right","milestone-pushed-out":Y.value.isPushedOut}]),style:n.normalizeStyle(U.value),title:Y.value.isSticky?"":A.name||"里程碑",onClick:n.withModifiers(v,["stop"])},[Y.value.showIcon?(n.openBlock(),n.createElementBlock("svg",{key:0,width:24,height:24,viewBox:"0 0 24 24",style:n.normalizeStyle([{position:Y.value.isSticky?"relative":"static",left:Y.value.isSticky?Y.value.iconLeft:"0px",clipPath:Y.value.clipPath,zIndex:Y.value.isSticky?200:120},{cursor:"pointer"}]),onMouseenter:z,onMouseleave:fA,onClick:n.withModifiers(v,["stop"]),onDblclick:n.withModifiers(p,["stop"]),onMousedown:n.withModifiers(g,["stop"])},[Z.value==="diamond"?(n.openBlock(),n.createElementBlock("g",Kp,[n.createElementVNode("rect",{x:"4",y:"8",width:"15",height:"15",rx:"6",ry:"6",fill:M.value,stroke:J.value,"stroke-width":"2"},null,8,Gp)])):Z.value==="rocket"?(n.openBlock(),n.createElementBlock("g",jp,V[0]||(V[0]=[n.createElementVNode("foreignObject",{x:"0",y:"0",width:"24",height:"24"},[n.createElementVNode("div",{class:"rocket-emoji"},"🚀")],-1)]))):(n.openBlock(),n.createElementBlock("g",qp,[n.createElementVNode("rect",{x:"4",y:"8",width:"15",height:"15",rx:"6",ry:"6",fill:M.value,stroke:J.value,"stroke-width":"2"},null,8,Wp)]))],36)):n.createCommentVNode("",!0),A.name&&Y.value.showLabel?(n.openBlock(),n.createElementBlock("span",Yp,n.toDisplayString(A.name),1)):n.createCommentVNode("",!0)],14,Vp),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[G.value&&Y.value.isSticky?(n.openBlock(),n.createElementBlock("div",{key:0,class:"milestone-tooltip",style:n.normalizeStyle({left:`${P.value.x}px`,top:`${P.value.y}px`})},[n.createElementVNode("div",zp,n.toDisplayString(x.value),1)],4)):n.createCommentVNode("",!0)]))],64))}}),dc=or($p,[["__scopeId","data-v-5a1e17a1"]]),Xp={class:"el-input__wrapper"},Jp={class:"el-input__inner"},Zp=["value","placeholder","disabled"],A0={class:"el-input__suffix"},e0={class:"el-input__suffix-inner"},t0={key:1,class:"el-input__icon"},r0={class:"el-time-picker-header"},n0={class:"el-time-picker-title"},a0={class:"el-time-picker-content"},i0={class:"el-time-column"},s0={class:"el-time-column-header"},o0=["onClick"],l0={class:"el-time-column"},c0={class:"el-time-column-header"},u0=["onClick"],f0={class:"el-time-picker-footer"},d0={key:0,class:"el-year-picker"},h0={class:"el-year-picker__header"},g0={class:"el-year-picker__header-label"},p0={class:"el-year-picker__content"},B0=["onClick"],m0={key:1,class:"el-month-picker"},w0={class:"el-month-picker__header"},v0={class:"el-month-picker__content"},y0=["onClick"],C0={key:2,class:"el-date-picker__content-wrapper"},b0={class:"el-date-picker__header"},F0={class:"el-date-picker__header-label"},Q0={class:"el-date-picker__content"},E0={class:"el-date-table__header"},U0={class:"el-date-table__body"},L0=["onClick"],k0={class:"el-date-table__cell-inner"},x0={class:"el-time-picker-input"},S0={class:"el-time-picker-label"},D0=["value","placeholder"],I0={class:"el-date-picker-footer"},N0=n.defineComponent({__name:"DatePicker",props:{modelValue:{default:""},type:{default:"date"},placeholder:{default:"请选择日期"},startPlaceholder:{default:"开始日期"},endPlaceholder:{default:"结束日期"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{default:"default"},format:{default:"YYYY-MM-DD"},valueFormat:{default:"YYYY-MM-DD"},rangeSeparator:{default:"至"}},emits:["update:modelValue","change","focus","blur"],setup(t,{emit:e}){const A=t,r=e,{t:a}=kr(),i=n.ref(!1),o=n.ref(!1),l=n.ref(!1),u=n.ref(!1),d=n.ref(!1),p=n.ref(!1),B=n.ref(),w=n.ref(),g=n.ref(),y=n.ref(),Q=n.ref(),_=n.ref(),v=n.ref(null),U=n.ref(0),M=n.ref(new Date().getFullYear()),J=n.ref(new Date().getMonth()),Z=n.ref(Math.floor(new Date().getFullYear()/10)*10),Y=n.ref(""),G=n.ref(""),P=n.ref(""),z=n.ref("start"),fA=n.ref("12:00"),I=n.ref(12),x=n.ref(0),R=(hA,vA)=>{if(!hA)return"";const TA=new Date(hA);if(isNaN(TA.getTime()))return"";const PA=`${TA.getFullYear()}/${String(TA.getMonth()+1).padStart(2,"0")}/${String(TA.getDate()).padStart(2,"0")}`;return vA?`${PA} ${vA}`:PA},k=n.computed(()=>{if(A.type==="daterange"){const hA=G.value?R(G.value,fA.value):"",vA=P.value?R(P.value,fA.value):"";return hA&&vA?`${hA} ${A.rangeSeparator} ${vA}`:hA||vA||""}return Y.value?R(Y.value,fA.value):""}),X=hA=>{if(!hA)return{dateStr:"",timeStr:"12:00"};const vA=hA.trim().split(" ");if(vA.length>=2){const PA=vA[0],tA=vA[1],yA=PA.split("/");return yA.length===3?{dateStr:`${yA[0]}-${yA[1].padStart(2,"0")}-${yA[2].padStart(2,"0")}`,timeStr:tA}:{dateStr:PA,timeStr:tA}}const TA=vA[0];if(TA.includes("/")){const PA=TA.split("/");if(PA.length===3)return{dateStr:`${PA[0]}-${PA[1].padStart(2,"0")}-${PA[2].padStart(2,"0")}`,timeStr:"12:00"}}return{dateStr:TA,timeStr:"12:00"}};n.watch(()=>A.modelValue,hA=>{if(A.type==="daterange")if(Array.isArray(hA)&&hA.length===2){const vA=X(hA[0]||""),TA=X(hA[1]||"");G.value=vA.dateStr,P.value=TA.dateStr,vA.timeStr!=="12:00"&&(fA.value=vA.timeStr)}else G.value="",P.value="",fA.value="12:00";else{const vA=X(hA||"");Y.value=vA.dateStr,fA.value=vA.timeStr}},{immediate:!0});const $=()=>{A.type==="daterange"?(G.value="",P.value="",r("update:modelValue",["",""]),r("change",["",""])):(Y.value="",r("update:modelValue",""),r("change","")),l.value=!1},j=()=>{if(!A.disabled&&(l.value=!l.value,l.value)){lA.x=window.scrollX,lA.y=window.scrollY,U.value++;let hA;if(A.type==="daterange"){const vA=G.value||P.value;hA=vA?new Date(vA):new Date}else hA=Y.value?new Date(Y.value):new Date;isNaN(hA.getTime())?(hA=new Date,M.value=hA.getFullYear(),J.value=hA.getMonth()):(M.value=hA.getFullYear(),J.value=hA.getMonth())}},V=()=>{l.value=!1,u.value=!1,d.value=!1,p.value=!1,i.value=!1,v.value&&(clearTimeout(v.value),v.value=null)},AA=hA=>{if(hA&&(hA.preventDefault(),hA.stopPropagation()),p.value)return;v.value&&(clearTimeout(v.value),v.value=null),p.value=!0;const[vA,TA]=fA.value.split(":").map(Number);I.value=vA,x.value=TA,n.nextTick(()=>{sA()})},sA=()=>{if(Q.value){const hA=Q.value.querySelectorAll(".el-time-item"),vA=I.value;if(hA[vA]){const tA=Math.max(0,vA*28-80+14);Q.value.scrollTop=tA}}if(_.value){const hA=_.value.querySelectorAll(".el-time-item"),TA=[0,15,30,45].indexOf(x.value);if(TA>=0&&hA[TA]){const yA=Math.max(0,TA*28-80+14);_.value.scrollTop=yA}}},DA=()=>{p.value=!1},F=()=>{fA.value=`${String(I.value).padStart(2,"0")}:${String(x.value).padStart(2,"0")}`,DA()},D=n.computed(()=>Array.from({length:24},(hA,vA)=>vA)),T=n.computed(()=>[0,15,30,45]),K=hA=>{I.value=hA},eA=hA=>{x.value=hA},uA=()=>{if(A.type==="daterange"){if(G.value&&P.value){const hA=tA=>{const yA=new Date(tA),QA=`${yA.getFullYear()}/${String(yA.getMonth()+1).padStart(2,"0")}/${String(yA.getDate()).padStart(2,"0")}`;return fA.value?`${QA} ${fA.value}`:QA},vA=hA(G.value),TA=hA(P.value),PA=[vA,TA];r("update:modelValue",PA),r("change",PA)}}else if(Y.value){const hA=new Date(Y.value),vA=`${hA.getFullYear()}/${String(hA.getMonth()+1).padStart(2,"0")}/${String(hA.getDate()).padStart(2,"0")}`,TA=fA.value?`${vA} ${fA.value}`:vA;r("update:modelValue",TA),r("change",TA)}setTimeout(()=>{V()},150)},dA=hA=>{var yA,QA,EA;const vA=hA.target,TA=(yA=B.value)==null?void 0:yA.contains(vA),PA=(QA=w.value)==null?void 0:QA.contains(vA),tA=(EA=g.value)==null?void 0:EA.contains(vA);!TA&&!PA&&!tA?V():!tA&&p.value&&!PA&&DA()},lA={x:0,y:0},WA=()=>{if(l.value){const hA=window.scrollX,vA=window.scrollY,TA=Math.abs(hA-lA.x),PA=Math.abs(vA-lA.y);TA<50&&PA<50?U.value++:V(),lA.x=hA,lA.y=vA}},NA=()=>{l.value&&U.value++},JA=n.computed(()=>{const hA=new Date(M.value,J.value,1),vA=new Date(hA);vA.setDate(vA.getDate()-hA.getDay());const TA=[];for(let PA=0;PA<42;PA++){const tA=new Date(vA);tA.setDate(vA.getDate()+PA);const yA=`${tA.getFullYear()}-${String(tA.getMonth()+1).padStart(2,"0")}-${String(tA.getDate()).padStart(2,"0")}`,QA=tA.getMonth()===J.value,EA=yA===new Date().toISOString().split("T")[0],_A=A.type==="daterange"?yA===G.value||yA===P.value:yA===Y.value,fe=A.type==="daterange"&&G.value&&P.value?yA>=G.value&&yA<=P.value:!1;TA.push({date:tA,dateStr:yA,day:tA.getDate(),isCurrentMonth:QA,isToday:EA,isSelected:_A,isInRange:fe})}return TA}),jA=hA=>{A.type==="daterange"?z.value==="start"||!G.value||G.value&&P.value?(G.value=hA,P.value="",z.value="end"):(hA<G.value?(P.value=G.value,G.value=hA):P.value=hA,z.value="start"):Y.value=hA},de=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),J.value===0?(J.value=11,M.value--):J.value--},UA=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),J.value===11?(J.value=0,M.value++):J.value++},S=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),M.value--},FA=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),M.value++},KA=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),u.value=!0,d.value=!1,Z.value=Math.floor(M.value/10)*10},GA=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),d.value=!0,u.value=!1},$A=(hA,vA)=>{vA&&(vA.preventDefault(),vA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),M.value=hA,u.value=!1,d.value=!0},ee=(hA,vA)=>{vA&&(vA.preventDefault(),vA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),J.value=hA,d.value=!1},RA=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),Z.value-=10},ne=hA=>{hA&&(hA.preventDefault(),hA.stopPropagation()),v.value&&(clearTimeout(v.value),v.value=null),Z.value+=10},he=n.computed(()=>{const hA=[];for(let vA=0;vA<10;vA++)hA.push(Z.value+vA);return hA});n.onMounted(()=>{document.addEventListener("click",dA),window.addEventListener("scroll",WA,!0),window.addEventListener("resize",NA),lA.x=window.scrollX,lA.y=window.scrollY}),n.onUnmounted(()=>{document.removeEventListener("click",dA),window.removeEventListener("scroll",WA,!0),window.removeEventListener("resize",NA),v.value&&(clearTimeout(v.value),v.value=null)});const ve=hA=>{v.value&&(clearTimeout(v.value),v.value=null),i.value=!0,r("focus",hA)},be=hA=>{v.value=setTimeout(()=>{i.value=!1,V(),r("blur",hA)},150)},Se=()=>{v.value&&(clearTimeout(v.value),v.value=null)},He=()=>{p.value||(v.value=setTimeout(()=>{V()},150))},me=()=>{v.value&&(clearTimeout(v.value),v.value=null)},oA=()=>{v.value=setTimeout(()=>{DA()},150)},pA=()=>{o.value=!0},HA=()=>{o.value=!1},qA=n.computed(()=>["el-date-picker",`el-date-picker--${A.size}`,{"is-disabled":A.disabled,"is-focused":i.value,"is-range":A.type==="daterange"}]),pe=n.computed(()=>!A.clearable||A.disabled?!1:A.type==="daterange"?(G.value||P.value)&&o.value:Y.value&&o.value),te=n.computed(()=>{if(!B.value||!l.value)return{};const hA=B.value.getBoundingClientRect(),vA=280,TA=300,PA=4,tA=window.innerWidth,yA=window.innerHeight,QA={position:"fixed",zIndex:"10000"},EA=yA-hA.bottom,_A=hA.top;EA>=TA+PA||EA>=_A?QA.top=`${hA.bottom+PA}px`:QA.top=`${hA.top-TA-PA}px`;const fe=tA-hA.left,Fe=hA.right;if(fe>=vA)QA.left=`${hA.left}px`;else if(Fe>=vA)QA.left=`${hA.right-vA}px`;else{const SA=hA.left+(hA.width-vA)/2,Be=PA,Me=tA-vA-PA;QA.left=`${Math.max(Be,Math.min(SA,Me))}px`}const Ce=parseFloat(QA.top),Ae=parseFloat(QA.left);return Ce<PA?QA.top=`${PA}px`:Ce+TA>yA-PA&&(QA.top=`${yA-TA-PA}px`),Ae<PA?QA.left=`${PA}px`:Ae+vA>tA-PA&&(QA.left=`${tA-vA-PA}px`),QA}),se=n.computed(()=>{if(!y.value||!p.value)return{};const hA=y.value.getBoundingClientRect(),vA=180,TA=300,PA=4,tA=window.innerWidth,yA=window.innerHeight,QA={position:"fixed",zIndex:"10002"};tA-hA.left>=vA?QA.left=`${hA.left}px`:QA.left=`${Math.max(PA,tA-vA-PA)}px`,hA.top>=TA+PA?QA.top=`${hA.top-TA-PA}px`:QA.top=`${hA.bottom+PA}px`;const fe=parseFloat(QA.top);return fe<PA?QA.top=`${PA}px`:fe+TA>yA-PA&&(QA.top=`${yA-TA-PA}px`),QA});return(hA,vA)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(qA.value),onMouseenter:pA,onMouseleave:HA},[n.createElementVNode("div",{ref_key:"inputRef",ref:B,class:"el-input",onClick:j},[n.createElementVNode("div",Xp,[n.createElementVNode("div",Jp,[n.createElementVNode("input",{value:k.value,type:"text",class:"el-input__inner-input",placeholder:hA.type==="daterange"?`${hA.startPlaceholder} ${hA.rangeSeparator} ${hA.endPlaceholder}`:hA.placeholder,disabled:hA.disabled,readonly:"",onFocus:ve,onBlur:be},null,40,Zp)]),n.createElementVNode("div",A0,[n.createElementVNode("div",e0,[pe.value?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"el-input__clear",onClick:n.withModifiers($,["stop"])},vA[12]||(vA[12]=[n.createElementVNode("svg",{class:"el-icon",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})],-1)]))):(n.openBlock(),n.createElementBlock("span",t0,vA[13]||(vA[13]=[n.createElementVNode("svg",{class:"el-icon",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V384H128zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32z"}),n.createElementVNode("path",{fill:"currentColor",d:"M288 128a32 32 0 0 1 64 0v192a32 32 0 0 1-64 0V128zm384 0a32 32 0 0 1 64 0v192a32 32 0 0 1-64 0V128z"}),n.createElementVNode("path",{fill:"currentColor",d:"M96 320h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"})],-1)])))])])])],512),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"picker-fade"},{default:n.withCtx(()=>[p.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"timePickerRef",ref:g,class:"el-time-picker-panel",style:n.normalizeStyle(se.value),tabindex:"-1",onClick:vA[4]||(vA[4]=n.withModifiers(()=>{},["stop"])),onMousedown:vA[5]||(vA[5]=n.withModifiers(()=>{},["prevent"])),onFocus:me,onBlur:oA},[n.createElementVNode("div",r0,[n.createElementVNode("span",n0,n.toDisplayString(n.unref(a).selectTime),1)]),n.createElementVNode("div",a0,[n.createElementVNode("div",i0,[n.createElementVNode("div",s0,n.toDisplayString(n.unref(a).hour),1),n.createElementVNode("div",{ref_key:"hourListRef",ref:Q,class:"el-time-column-list"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(D.value,TA=>(n.openBlock(),n.createElementBlock("div",{key:TA,class:n.normalizeClass(["el-time-item",{"is-active":TA===I.value}]),onClick:n.withModifiers(PA=>K(TA),["stop"]),onMousedown:vA[0]||(vA[0]=n.withModifiers(()=>{},["prevent"]))},n.toDisplayString(String(TA).padStart(2,"0")),43,o0))),128))],512)]),n.createElementVNode("div",l0,[n.createElementVNode("div",c0,n.toDisplayString(n.unref(a).minute),1),n.createElementVNode("div",{ref_key:"minuteListRef",ref:_,class:"el-time-column-list"},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(T.value,TA=>(n.openBlock(),n.createElementBlock("div",{key:TA,class:n.normalizeClass(["el-time-item",{"is-active":TA===x.value}]),onClick:n.withModifiers(PA=>eA(TA),["stop"]),onMousedown:vA[1]||(vA[1]=n.withModifiers(()=>{},["prevent"]))},n.toDisplayString(String(TA).padStart(2,"0")),43,u0))),128))],512)])]),n.createElementVNode("div",f0,[n.createElementVNode("button",{class:"el-time-picker-btn el-time-picker-btn--cancel",onClick:n.withModifiers(DA,["stop"]),onMousedown:vA[2]||(vA[2]=n.withModifiers(()=>{},["prevent"]))},n.toDisplayString(n.unref(a).cancel),33),n.createElementVNode("button",{class:"el-time-picker-btn el-time-picker-btn--confirm",onClick:n.withModifiers(F,["stop"]),onMousedown:vA[3]||(vA[3]=n.withModifiers(()=>{},["prevent"]))},n.toDisplayString(n.unref(a).confirm),33)])],36)):n.createCommentVNode("",!0)]),_:1})])),(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"picker-fade"},{default:n.withCtx(()=>[l.value?(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:w,class:"el-picker-panel",style:n.normalizeStyle(te.value),tabindex:"-1",onFocus:Se,onBlur:He},[u.value?(n.openBlock(),n.createElementBlock("div",d0,[n.createElementVNode("div",h0,[n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:RA}," << "),n.createElementVNode("span",g0,n.toDisplayString(Z.value)+" - "+n.toDisplayString(Z.value+9),1),n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:ne}," >> ")]),n.createElementVNode("div",p0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(he.value,TA=>(n.openBlock(),n.createElementBlock("div",{key:TA,class:n.normalizeClass(["el-year-picker__item",{"is-current":TA===M.value}]),onClick:PA=>$A(TA,PA)},n.toDisplayString(TA),11,B0))),128))])])):d.value?(n.openBlock(),n.createElementBlock("div",m0,[n.createElementVNode("div",w0,[n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:S}," << "),n.createElementVNode("span",{class:"el-month-picker__header-label",onClick:vA[6]||(vA[6]=TA=>KA(TA))},n.toDisplayString(M.value),1),n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:FA}," >> ")]),n.createElementVNode("div",v0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(a).monthNames,(TA,PA)=>(n.openBlock(),n.createElementBlock("div",{key:PA,class:n.normalizeClass(["el-month-picker__item",{"is-current":PA===J.value}]),onClick:tA=>ee(PA,tA)},n.toDisplayString(TA),11,y0))),128))])])):(n.openBlock(),n.createElementBlock("div",C0,[n.createElementVNode("div",b0,[n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:S}," << "),n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:de}," < "),n.createElementVNode("span",F0,[n.createElementVNode("span",{class:"el-date-picker__header-year",onClick:vA[7]||(vA[7]=TA=>KA(TA))},n.toDisplayString(M.value),1),n.createElementVNode("span",{class:"el-date-picker__header-month",onClick:vA[8]||(vA[8]=TA=>GA(TA))},n.toDisplayString(n.unref(a).monthNames[J.value]),1)]),n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:UA}," > "),n.createElementVNode("button",{type:"button",class:"el-picker-panel__icon-btn",onClick:FA}," >> ")]),n.createElementVNode("div",Q0,[n.createElementVNode("div",E0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(a).weekDays,TA=>(n.openBlock(),n.createElementBlock("div",{key:TA,class:"el-date-table__header-cell"},n.toDisplayString(TA),1))),128))]),n.createElementVNode("div",U0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(JA.value,TA=>(n.openBlock(),n.createElementBlock("div",{key:`${TA.date.getTime()}`,class:n.normalizeClass(["el-date-table__cell",{"is-other-month":!TA.isCurrentMonth,"is-today":TA.isToday,"is-selected":TA.isSelected,"is-in-range":TA.isInRange,"is-range-start":hA.type==="daterange"&&TA.dateStr===G.value,"is-range-end":hA.type==="daterange"&&TA.dateStr===P.value}]),onClick:PA=>jA(TA.dateStr)},[n.createElementVNode("div",k0,n.toDisplayString(TA.day),1)],10,L0))),128))])]),n.createElementVNode("div",x0,[n.createElementVNode("label",S0,n.toDisplayString(n.unref(a).time)+":",1),n.createElementVNode("input",{ref_key:"timeInputRef",ref:y,type:"text",class:"el-time-input",value:fA.value,placeholder:n.unref(a).selectTime,readonly:"",onClick:vA[9]||(vA[9]=TA=>AA(TA)),onMousedown:vA[10]||(vA[10]=n.withModifiers(()=>{},["prevent"]))},null,40,D0)]),n.createElementVNode("div",I0,[n.createElementVNode("button",{class:"el-date-picker-btn el-date-picker-btn--confirm",onClick:n.withModifiers(uA,["stop"]),onMousedown:vA[11]||(vA[11]=n.withModifiers(()=>{},["prevent"]))},n.toDisplayString(n.unref(a).confirm),33)])]))],36)):n.createCommentVNode("",!0)]),_:1})]))],34))}}),hc=or(N0,[["__scopeId","data-v-19bb1865"]]),T0={class:"milestone-dialog-header"},H0={class:"milestone-dialog-title"},_0=["title"],M0={class:"milestone-dialog-content"},P0={class:"milestone-form-row"},O0={class:"milestone-form-item milestone-form-item-full"},R0={class:"milestone-form-label required",for:"milestone-name"},V0=["placeholder"],K0={key:0,class:"milestone-form-error"},G0={class:"milestone-form-row"},j0={class:"milestone-form-item"},q0={class:"milestone-form-label required",for:"milestone-date"},W0={key:0,class:"milestone-form-error"},Y0={class:"milestone-form-item"},z0={class:"milestone-form-label",for:"milestone-icon"},$0=["aria-expanded"],X0={class:"selected-icon"},J0={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Z0={key:1,class:"rocket-emoji-mini"},A1={key:0,class:"milestone-icon-options"},e1={class:"milestone-form-row"},t1={class:"milestone-form-item milestone-form-item-full"},r1={class:"milestone-form-label",for:"milestone-description"},n1={class:"textarea-wrapper"},a1=["placeholder"],i1={class:"textarea-footer"},s1={class:"char-count"},o1={class:"milestone-dialog-footer"},l1={class:"milestone-dialog-footer-left"},c1={class:"milestone-dialog-footer-right"},u1=["disabled"],f1=n.defineComponent({__name:"MilestoneDialog",props:{visible:{type:Boolean},milestone:{}},emits:["update:visible","close","save","delete"],setup(t,{emit:e}){const A=t,r=e,a=n.reactive({name:"",startDate:"",assignee:"",type:"milestone",icon:"diamond",description:""}),i=n.reactive({name:"",startDate:""}),o=n.ref(!1),l=n.ref(!1),u=n.ref(null),d=()=>{const Y=u.value;Y&&(Y.style.height="auto",Y.style.height=`${Math.min(Y.scrollHeight,120)}px`)};n.watch(()=>A.milestone,Y=>{Y?Object.assign(a,{id:Y.id,name:Y.name||"",startDate:Y.startDate||"",assignee:Y.assignee||"",type:Y.type||"milestone",icon:Y.icon||"diamond",description:Y.description||""}):Object.assign(a,{id:void 0,name:"",startDate:"",assignee:"",type:"milestone",icon:"diamond",description:""}),i.name="",i.startDate=""},{immediate:!0});const p=()=>{i.name="",i.startDate="";let Y=!0;return a.name.trim()||(i.name=Z("milestoneNameRequired"),Y=!1),a.startDate||(i.startDate=Z("milestoneDateRequired"),Y=!1),Y},B=n.computed(()=>a.name.trim()&&a.startDate),w=Y=>{a.icon=Y,o.value=!1},g=()=>{p()&&(r("save",{...a}),U())},y=()=>{a.id&&(l.value=!0)},Q=()=>{a.id&&(r("delete",a.id),l.value=!1,U())},_=()=>{l.value=!1},v=n.computed(()=>A.milestone&&A.milestone.id),U=()=>{o.value=!1,r("update:visible",!1),r("close")},M=()=>{U()},{t:J}=kr(),Z=Y=>J.value[Y]||Y;return(Y,G)=>{var P;return Y.visible?(n.openBlock(),n.createElementBlock("div",{key:0,class:"milestone-dialog-overlay",onClick:M},[n.createElementVNode("div",{class:"milestone-dialog",onClick:G[6]||(G[6]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",T0,[n.createElementVNode("h3",H0,[G[7]||(G[7]=n.createElementVNode("svg",{class:"milestone-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n.createElementVNode("g",{transform:"rotate(45 12 12)"},[n.createElementVNode("rect",{x:"4",y:"4",width:"16",height:"16",rx:"4",ry:"4",fill:"currentColor",opacity:"0.1"}),n.createElementVNode("rect",{x:"4",y:"4",width:"16",height:"16",rx:"4",ry:"4",stroke:"currentColor",fill:"none"})])],-1)),n.createTextVNode(" "+n.toDisplayString(v.value?n.unref(J).editMilestone:n.unref(J).newMilestone),1)]),n.createElementVNode("button",{class:"milestone-dialog-close",title:Z("close"),onClick:U},"×",8,_0)]),n.createElementVNode("div",M0,[n.createElementVNode("form",{class:"milestone-form",onSubmit:n.withModifiers(g,["prevent"])},[n.createElementVNode("div",P0,[n.createElementVNode("div",O0,[n.createElementVNode("label",R0,n.toDisplayString(Z("milestoneName")),1),n.withDirectives(n.createElementVNode("input",{id:"milestone-name","onUpdate:modelValue":G[0]||(G[0]=z=>a.name=z),type:"text",class:n.normalizeClass(["milestone-form-input",{error:i.name}]),placeholder:Z("enterMilestoneName"),required:""},null,10,V0),[[n.vModelText,a.name]]),i.name?(n.openBlock(),n.createElementBlock("span",K0,n.toDisplayString(i.name),1)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",G0,[n.createElementVNode("div",j0,[n.createElementVNode("label",q0,n.toDisplayString(Z("milestoneDate")),1),n.createVNode(hc,{id:"milestone-date",modelValue:a.startDate,"onUpdate:modelValue":G[1]||(G[1]=z=>a.startDate=z),type:"date",placeholder:"请选择里程碑日期",class:n.normalizeClass({error:i.startDate})},null,8,["modelValue","class"]),i.startDate?(n.openBlock(),n.createElementBlock("span",W0,n.toDisplayString(i.startDate),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Y0,[n.createElementVNode("label",z0,n.toDisplayString(Z("milestoneIcon")),1),n.createElementVNode("div",{class:n.normalizeClass(["milestone-icon-dropdown",{active:o.value}])},[n.createElementVNode("button",{id:"milestone-icon",type:"button",class:"milestone-icon-trigger","aria-expanded":o.value,"aria-haspopup":"listbox",onClick:G[2]||(G[2]=z=>o.value=!o.value)},[n.createElementVNode("div",X0,[a.icon==="diamond"?(n.openBlock(),n.createElementBlock("svg",J0,G[8]||(G[8]=[n.createElementVNode("g",{transform:"rotate(45 12 12)"},[n.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"3",ry:"3",fill:"currentColor"})],-1)]))):a.icon==="rocket"?(n.openBlock(),n.createElementBlock("div",Z0,"🚀")):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(Z(a.icon||"diamond")),1)]),G[9]||(G[9]=n.createElementVNode("svg",{class:"dropdown-arrow",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n.createElementVNode("polyline",{points:"6,9 12,15 18,9"})],-1))],8,$0),o.value?(n.openBlock(),n.createElementBlock("div",A1,[n.createElementVNode("div",{class:n.normalizeClass(["icon-option",{selected:a.icon==="diamond"}]),onClick:G[3]||(G[3]=z=>w("diamond"))},[G[10]||(G[10]=n.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n.createElementVNode("g",{transform:"rotate(45 12 12)"},[n.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"3",ry:"3",fill:"currentColor"})])],-1)),n.createElementVNode("span",null,n.toDisplayString(Z("diamond")),1)],2),n.createElementVNode("div",{class:n.normalizeClass(["icon-option",{selected:a.icon==="rocket"}]),onClick:G[4]||(G[4]=z=>w("rocket"))},[G[11]||(G[11]=n.createElementVNode("div",{class:"rocket-emoji-option"},"🚀",-1)),n.createElementVNode("span",null,n.toDisplayString(Z("rocket")),1)],2)])):n.createCommentVNode("",!0)],2)])]),n.createElementVNode("div",e1,[n.createElementVNode("div",t1,[n.createElementVNode("label",r1,n.toDisplayString(Z("description")),1),n.createElementVNode("div",n1,[n.withDirectives(n.createElementVNode("textarea",{id:"milestone-description",ref_key:"descriptionTextarea",ref:u,"onUpdate:modelValue":G[5]||(G[5]=z=>a.description=z),class:"milestone-form-textarea",placeholder:Z("enterDescription"),rows:"4",maxlength:"500",onInput:d},null,40,a1),[[n.vModelText,a.description]]),n.createElementVNode("div",i1,[n.createElementVNode("span",s1,n.toDisplayString(((P=a.description)==null?void 0:P.length)||0)+"/500",1)])])])])],32)]),n.createElementVNode("div",o1,[n.createElementVNode("div",l1,[v.value?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn btn-danger",onClick:y},n.toDisplayString(n.unref(J).delete),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",c1,[n.createElementVNode("button",{type:"button",class:"btn btn-default",onClick:U},n.toDisplayString(n.unref(J).cancel),1),n.createElementVNode("button",{type:"button",class:"btn btn-primary",disabled:!B.value,onClick:g},n.toDisplayString(n.unref(J).confirm),9,u1)])])]),n.createVNode(zc,{visible:l.value,title:n.unref(J).delete,message:n.unref(J).confirmDelete,"confirm-text":n.unref(J).confirm,"cancel-text":n.unref(J).cancel,onConfirm:Q,onCancel:_},null,8,["visible","title","message","confirm-text","cancel-text"])])):n.createCommentVNode("",!0)}}}),ud=or(f1,[["__scopeId","data-v-67a961b6"]]),d1={class:"timeline-header"},h1={class:"timeline-header-row year-row"},g1={class:"year-label"},p1={class:"timeline-header-row half-years-row"},B1={class:"half-year-label"},m1={class:"timeline-header-row year-row"},w1={class:"year-label"},v1={class:"timeline-header-row months-row"},y1={class:"month-label"},C1={class:"timeline-header-row year-row"},b1={class:"year-label"},F1={class:"timeline-header-row quarters-row"},Q1={class:"quarter-label"},E1={class:"timeline-header-row date-row"},U1={class:"date-label"},L1={class:"timeline-header-row hours-row"},k1={class:"hour-label"},x1={class:"timeline-header-row year-month-row"},S1={class:"year-month-label"},D1={class:"timeline-header-row days-row"},I1={class:"week-label"},N1={class:"week-sub-days"},T1={class:"day-label"},H1=["width","height"],_1=["d"],M1=["onMouseenter"],Il=40,Tu=10,Hu=50,_u=5,P1=n.defineComponent({__name:"Timeline",props:{tasks:{default:()=>[]},milestones:{default:()=>[]},startDate:{},endDate:{},onTaskDoubleClick:{type:Function,default:void 0},editComponent:{default:void 0},useDefaultDrawer:{type:Boolean,default:!0},onTaskDelete:{type:Function,default:void 0},onTaskUpdate:{type:Function,default:void 0},onMilestoneDelete:{type:Function,default:void 0},onMilestoneUpdate:{type:Function,default:void 0},onMilestoneSave:{type:Function,default:void 0},workingHours:{default:()=>({morning:{start:8,end:11},afternoon:{start:13,end:17}})}},emits:["timeline-scale-changed","edit-task","start-timer","stop-timer","add-predecessor","add-successor","delete"],setup(t,{expose:e,emit:A}){const r=t,a=A,{formatYearMonth:i,formatMonth:o,getTranslation:l}=kr(),u=nA=>l(nA),d=()=>{const nA=new Date,BA=new Date(nA.getFullYear(),nA.getMonth()-6,1),q=new Date(nA.getFullYear(),nA.getMonth()+6+1,0);return{startDate:BA,endDate:q}},p=n.computed(()=>r.startDate?new Date(r.startDate):d().startDate),B=n.computed(()=>r.endDate?new Date(r.endDate):d().endDate),w=n.ref({startDate:p.value,endDate:B.value,zoomLevel:1}),g=n.ref(ZA.DAY);n.watch([p,B],([nA,BA])=>{w.value.startDate=nA,w.value.endDate=BA});const y=n.computed(()=>r.tasks||[]),Q=n.computed(()=>g.value===ZA.HOUR?960:g.value===ZA.WEEK?60/7:g.value===ZA.MONTH?2:g.value===ZA.QUARTER?60/90:g.value===ZA.YEAR?360/365:30),_=()=>{if(!y.value||y.value.length===0)return null;const nA=[],BA=IA=>{IA.startDate&&nA.push(new Date(IA.startDate)),IA.endDate&&nA.push(new Date(IA.endDate)),IA.children&&IA.children.length>0&&IA.children.forEach(BA)};if(y.value.forEach(BA),nA.length===0)return null;const q=nA.filter(IA=>!isNaN(IA.getTime()));if(q.length===0)return null;const wA=new Date(Math.min(...q.map(IA=>IA.getTime()))),LA=new Date(Math.max(...q.map(IA=>IA.getTime())));return{minDate:wA,maxDate:LA}},v=()=>{const nA=_();if(!nA){const IA=new Date,ie=new Date(IA.getFullYear()-2,0,1),XA=new Date(IA.getFullYear()+2,11,31);return{startDate:ie,endDate:XA}}const{minDate:BA,maxDate:q}=nA,wA=new Date(BA.getFullYear()-2,0,1),LA=new Date(q.getFullYear()+2,11,31);return{startDate:wA,endDate:LA}},U=()=>{const nA=_();if(!nA){const IA=new Date,ie=new Date(IA.getFullYear()-5,0,1),XA=new Date(IA.getFullYear()+5,11,31);return{startDate:ie,endDate:XA}}const{minDate:BA,maxDate:q}=nA,wA=new Date(BA.getFullYear()-5,0,1),LA=new Date(q.getFullYear()+5,11,31);return{startDate:wA,endDate:LA}},M=n.ref(!1),J=n.ref(null),Z=n.ref(null),Y=n.ref(!1),G=n.ref(!1),P=n.ref(!1),z=n.ref(0),fA=n.ref(!1);let I=null;const x=n.ref(0),R=n.ref(0),k=n.ref(!0),X=n.ref(!0),$=new Map,j=n.ref(!0),V=n.computed(()=>{if(g.value!==ZA.HOUR)return{startHour:0,endHour:0};if(j.value||x.value===0){const LA=new Date,IA=w.value.startDate,ie=Math.floor((LA.getTime()-IA.getTime())/(1e3*60*60));return{startHour:Math.max(0,ie-168),endHour:ie+168}}const nA=x.value,BA=R.value,q=Math.floor(nA/Il)-Tu,wA=Math.ceil((nA+BA)/Il)+Tu;return{startHour:Math.max(0,q),endHour:Math.max(q+1,wA)}}),sA=((nA,BA)=>{let q=null;return(...wA)=>{const LA=()=>{q=null,nA(...wA)};q&&clearTimeout(q),q=window.setTimeout(LA,BA)}})(()=>{uA()},16),DA=()=>{const nA=g.value,BA=w.value.startDate.getTime(),q=w.value.endDate.getTime(),wA=`${nA}-${BA}-${q}`;if(!$.has(wA)){let LA;nA===ZA.HOUR?LA=Se():nA===ZA.WEEK?LA=He():nA===ZA.MONTH?LA=hi():nA===ZA.QUARTER?LA=Fa():nA===ZA.YEAR?LA=sn():LA=ve(),$.set(wA,LA)}return $.get(wA)},F=n.computed(()=>{const nA=DA();if(g.value===ZA.HOUR&&Array.isArray(nA)){const{startHour:BA,endHour:q}=V.value;return nA.map(wA=>{const LA=new Date(w.value.startDate);LA.setHours(0,0,0,0);const IA=new Date(wA.year,wA.month-1,wA.day);IA.setHours(0,0,0,0);const XA=Math.floor((IA.getTime()-LA.getTime())/(1e3*60*60*24))*24,we=Math.max(0,BA-XA),De=Math.min(wA.hours.length,q-XA);return{...wA,hours:we<De?wA.hours.slice(we,De):[],hourOffset:XA+we,visibleHourStart:we,_debug:{totalHourOffset:XA,dayStartHour:we,dayEndHour:De,visibleRange:{startHour:BA,endHour:q}}}}).filter(wA=>wA.hours.length>0)}return nA}),D=n.computed(()=>{const nA=DA();if(g.value===ZA.HOUR){if(Array.isArray(nA))return nA.reduce((q,wA)=>q+wA.hours.length,0)*Il}else if(g.value===ZA.QUARTER){if(Array.isArray(nA))return nA.reduce((q,wA)=>q+wA.quarters.length,0)*60}else if(Array.isArray(nA))return g.value===ZA.WEEK?nA.reduce((q,wA)=>{var LA;return q+(((LA=wA.weeks)==null?void 0:LA.length)||0)},0)*60:g.value===ZA.MONTH?nA.length*60:g.value===ZA.YEAR?nA.length*360:nA.reduce((q,wA)=>{var LA;return q+(((LA=wA.days)==null?void 0:LA.length)||0)},0)*30;return 0}),T=n.ref(0);let K=null;const eA=n.ref(new Map),uA=()=>{const nA=new Map;y.value.forEach(BA=>{if(BA.type==="milestone-group"&&BA.children)BA.children.forEach(q=>{const wA=new Date(q.startDate||"");if(!isNaN(wA.getTime())){const IA=Math.floor((wA.getTime()-w.value.startDate.getTime())/864e5)*30+30/2-12,ie=IA-12,XA=IA+12,we=x.value,De=x.value+R.value;let ke=!1,Le="none";XA<=we+12?(ke=!0,Le="left"):ie>=De-12&&(ke=!0,Le="right"),nA.set(q.id,{left:IA,originalLeft:IA,isSticky:ke,stickyPosition:Le})}});else if(BA.type==="milestone"){const q=new Date(BA.startDate||"");if(!isNaN(q.getTime())){const LA=Math.floor((q.getTime()-w.value.startDate.getTime())/864e5)*30+30/2-12,IA=LA-12,ie=LA+12,XA=x.value,we=x.value+R.value;let De=!1,ke="none";ie<=XA+12?(De=!0,ke="left"):IA>=we-12&&(De=!0,ke="right"),nA.set(BA.id,{left:LA,originalLeft:LA,isSticky:De,stickyPosition:ke})}}}),eA.value=nA},dA=nA=>{const BA=[];return eA.value.forEach((q,wA)=>{wA!==nA&&BA.push({id:wA,left:q.left,originalLeft:q.originalLeft,isSticky:q.isSticky,stickyPosition:q.stickyPosition,priority:q.originalLeft})}),BA},lA=()=>{Y.value=!0},WA=()=>{Y.value=!1,k.value=!0,setTimeout(()=>{k.value=!1},300)},NA=()=>{k.value=!0,setTimeout(()=>{k.value=!1},300)},JA=nA=>{Y.value||(Z.value=nA,window.dispatchEvent(new CustomEvent("timeline-task-hover",{detail:nA})))},jA=n.computed(()=>{const q=y.value.length*51;return Math.max(q,400,T.value)}),de=nA=>{Z.value=nA.detail},UA=nA=>{const BA=nA.detail;yA(BA)},S=()=>{qA.value=ne()},FA=nA=>{J.value=nA,M.value=!0},KA=()=>{M.value=!1,J.value=null},GA=(nA,BA)=>{window.dispatchEvent(new CustomEvent("milestone-icon-changed",{detail:{milestoneId:nA,icon:BA}}))},$A=nA=>{r.onMilestoneSave&&typeof r.onMilestoneSave=="function"&&r.onMilestoneSave(nA),KA(),window.dispatchEvent(new CustomEvent("milestone-data-updated",{detail:{milestone:nA}}))},ee=nA=>{KA(),window.dispatchEvent(new CustomEvent("milestone-deleted",{detail:{milestoneId:nA}})),window.dispatchEvent(new CustomEvent("milestone-data-changed",{detail:{milestoneId:nA}}))},RA=nA=>{r.onMilestoneSave&&typeof r.onMilestoneSave=="function"&&r.onMilestoneSave(nA),window.dispatchEvent(new CustomEvent("milestone-data-updated",{detail:{milestone:nA}}))},ne=()=>DA(),he=()=>{$.clear()},ve=()=>{const nA=[],BA=new Date(w.value.startDate);for(;BA<=w.value.endDate;){const q=BA.getFullYear(),wA=BA.getMonth()+1,LA=[],IA=new Date(q,wA,0).getDate();for(let ie=1;ie<=IA;ie++){const XA=new Date(q,wA-1,ie),we=XA.getDay(),De=we===0||we===6;LA.push({day:ie,date:XA,label:String(ie).padStart(2,"0"),isToday:HA(XA),isWeekend:De})}nA.push({year:q,month:wA,yearMonthLabel:i(q,wA),startDate:new Date(BA),endDate:new Date(q,wA,0),days:LA}),BA.setMonth(BA.getMonth()+1)}return nA},be=(nA,BA)=>{if(BA===0||BA===6)return!1;const q=r.workingHours;if(!q)return!1;if(q.morning){const{start:wA,end:LA}=q.morning;if(nA>=wA&&nA<=LA)return!0}if(q.afternoon){const{start:wA,end:LA}=q.afternoon;if(nA>=wA&&nA<=LA)return!0}return!1},Se=()=>{const nA=[],BA=new Date(w.value.startDate);for(;BA<=w.value.endDate;){const q=BA.getFullYear(),wA=BA.getMonth()+1,LA=BA.getDate(),IA=[],ie=BA.getDay();for(let XA=0;XA<24;XA++){const we=new Date(q,wA-1,LA,XA);IA.push({hour:XA,label:`${String(XA).padStart(2,"0")}:00`,shortLabel:String(XA).padStart(2,"0"),date:we,isToday:HA(we)&&XA===new Date().getHours(),isWorkingHour:be(XA,ie),isWeekend:ie===0||ie===6})}nA.push({year:q,month:wA,day:LA,date:new Date(BA),dateLabel:`${q}/${String(wA).padStart(2,"0")}/${String(LA).padStart(2,"0")}`,isToday:HA(BA),hours:IA}),BA.setDate(BA.getDate()+1)}return nA},He=()=>{const nA=[],BA=new Date(w.value.startDate),q=new Date(w.value.endDate),wA=new Date(BA),LA=wA.getDay()||7;wA.setDate(wA.getDate()-(LA-1));const IA=new Date(wA);for(;IA<=q;){const we=new Date(IA);we.setDate(we.getDate()+6),(IA>=BA||we>=BA)&&nA.push({weekStart:new Date(IA),weekEnd:new Date(we),label:`${IA.getDate()}`,isToday:oA(IA,we),subDays:me(IA),belongsToYear:IA.getFullYear(),belongsToMonth:IA.getMonth()+1}),IA.setDate(IA.getDate()+7)}const ie=new Map;return nA.forEach(we=>{const De=we,ke=De.belongsToYear,Le=De.belongsToMonth,tt=`${ke}-${Le}`;ie.has(tt)||ie.set(tt,{year:ke,month:Le,yearMonthLabel:i(ke,Le),startDate:new Date(ke,Le-1,1),endDate:new Date(ke,Le,0),weeks:[],isWeekView:!0}),ie.get(tt).weeks.push(we)}),Array.from(ie.values()).sort((we,De)=>we.year!==De.year?we.year-De.year:we.month-De.month)},me=nA=>{const BA=[];for(let q=0;q<7;q++){const wA=new Date(nA);wA.setDate(wA.getDate()+q),BA.push({date:new Date(wA),dayOfWeek:wA.getDay()})}return BA},oA=(nA,BA)=>{const q=new Date;return q.setHours(0,0,0,0),q>=nA&&q<=BA},pA=nA=>{if(g.value=nA,j.value=!0,he(),nA===ZA.MONTH){const BA=v();pe=!0,w.value={...w.value,startDate:BA.startDate,endDate:BA.endDate},pe=!1}if(nA===ZA.YEAR){const BA=U();pe=!0,w.value={...w.value,startDate:BA.startDate,endDate:BA.endDate},pe=!1}qA.value=ne(),n.nextTick(()=>{a("timeline-scale-changed",nA),window.dispatchEvent(new CustomEvent("timeline-scale-updated")),setTimeout(()=>{window.dispatchEvent(new CustomEvent("timeline-force-recalculate")),setTimeout(()=>{se()},100)},50)})},HA=nA=>{const BA=new Date;return nA.getDate()===BA.getDate()&&nA.getMonth()===BA.getMonth()&&nA.getFullYear()===BA.getFullYear()},qA=n.ref(ne());let pe=!1;n.watch(()=>[w.value.startDate,w.value.endDate],()=>{pe||(he(),qA.value=ne())});let te=!1;n.watch(()=>[qA.value,w.value.startDate,w.value.endDate],()=>{te||n.nextTick(()=>{se(),te=!0})},{deep:!0});const se=(nA=0)=>{k.value=!0,X.value=!0;const BA=new Date,q=w.value.startDate,wA=new Date(BA.getFullYear(),BA.getMonth(),BA.getDate());let LA;if(g.value===ZA.YEAR){const Le=U();LA=new Date(Le.startDate.getFullYear(),Le.startDate.getMonth(),Le.startDate.getDate())}else if(g.value===ZA.QUARTER){const Le=U();LA=new Date(Le.startDate.getFullYear(),Le.startDate.getMonth(),Le.startDate.getDate())}else LA=new Date(q.getFullYear(),q.getMonth(),q.getDate());const IA=wA.getTime()-LA.getTime(),ie=Math.floor(IA/(1e3*60*60*24));let XA;if(g.value===ZA.HOUR){const Le=BA.getHours(),tt=BA.getMinutes(),kt=ie*Q.value,on=Le*40,Kr=tt/60*40;XA=kt+on+Kr}else if(g.value===ZA.QUARTER){const Le=wA.getFullYear(),tt=LA.getFullYear(),kt=240,on=60;XA=(Le-tt)*kt;const Gr=wA.getMonth()+1;let Br=1;Gr>=1&&Gr<=3?Br=1:Gr>=4&&Gr<=6?Br=2:Gr>=7&&Gr<=9?Br=3:Br=4,XA+=(Br-1)*on;let jr,Xt;Br===1?(jr=new Date(Le,0,1),Xt=new Date(Le,2,31)):Br===2?(jr=new Date(Le,3,1),Xt=new Date(Le,5,30)):Br===3?(jr=new Date(Le,6,1),Xt=new Date(Le,8,30)):(jr=new Date(Le,9,1),Xt=new Date(Le,11,31));const Qn=Math.floor((wA.getTime()-jr.getTime())/(1e3*60*60*24)),En=Math.floor((Xt.getTime()-jr.getTime())/(1e3*60*60*24))+1,Qa=Qn/En*on;XA+=Qa}else XA=ie*Q.value;const we=document.querySelector(".timeline"),De=we.clientWidth;if(De===0&&nA<10){setTimeout(()=>se(nA+1),60);return}const ke=XA-De/2+15;typeof we.scrollTo=="function"?we.scrollTo({left:Math.max(0,ke),behavior:"smooth"}):we.scrollLeft=Math.max(0,ke),setTimeout(()=>{X.value=!1,g.value===ZA.HOUR&&(j.value=!1),setTimeout(()=>{k.value=!1},300)},1500)},hA=n.computed(()=>{if(g.value!==ZA.YEAR)return-1;const nA=new Date,BA=new Date(nA.getFullYear(),nA.getMonth(),nA.getDate()),q=U(),LA=new Date(q.startDate.getFullYear(),q.startDate.getMonth(),q.startDate.getDate()).getFullYear(),IA=BA.getFullYear(),ie=IA-LA,XA=360,we=ie*XA,ke=BA.getMonth()/12*XA,Le=BA.getDate()-1,tt=new Date(IA,BA.getMonth()+1,0).getDate(),kt=Le/tt*(XA/12);return we+ke+kt}),vA=n.computed(()=>{if(g.value!==ZA.YEAR)return!1;const nA=new Date,BA=new Date(nA.getFullYear(),nA.getMonth(),nA.getDate()),q=U(),wA=q.startDate,LA=q.endDate;return BA>=wA&&BA<=LA}),TA=()=>{if(y.value.length===0){PA();return}const nA=y.value.map(ke=>ke.startDate).filter(ke=>!!ke).map(ke=>new Date(ke));if(nA.length===0){PA();return}const BA=new Date(Math.min(...nA.map(ke=>ke.getTime()))),q=BA.getFullYear(),wA=BA.getMonth(),LA=BA.getDate();let IA=0;for(let ke=0;ke<wA;ke++)IA+=new Date(q,ke+1,0).getDate();IA+=LA;const ie=document.querySelector(".gantt-panel-right"),XA=ie==null?void 0:ie.clientWidth,we=(IA-1)*30-(XA?XA/2:200),De=document.querySelector(".timeline");De&&(De.scrollLeft=Math.max(0,we))},PA=()=>{const nA=new Date,BA=w.value.startDate,q=new Date(nA.getFullYear(),nA.getMonth(),nA.getDate()),wA=new Date(BA.getFullYear(),BA.getMonth(),BA.getDate()),LA=q.getTime()-wA.getTime(),IA=Math.floor(LA/(1e3*60*60*24));if(IA<0||q>w.value.endDate)return;const ie=IA*30,XA=document.querySelector(".timeline");if(!XA)return;const we=XA.clientWidth,De=ie-we/2+15;XA.scrollTo({left:Math.max(0,De),behavior:"smooth"}),setTimeout(()=>{document.querySelectorAll(".day-column.today").forEach(Le=>{Le.classList.add("today-highlight"),setTimeout(()=>{Le.classList.remove("today-highlight")},2e3)})},500)},tA=nA=>{window.dispatchEvent(new CustomEvent("task-updated",{detail:nA}))},yA=nA=>{a("edit-task",nA)},QA=n.ref({}),EA=n.ref(null),_A=n.ref(0),fe=n.ref(0);function Fe(){EA.value&&(_A.value=EA.value.offsetWidth,fe.value=jA.value)}function Ce(nA){if(!EA.value)return;const BA=EA.value.getBoundingClientRect();QA.value[nA.id]={left:nA.left-BA.left,top:nA.top-BA.top,width:nA.width,height:nA.height},Fe()}const Ae=nA=>{window.dispatchEvent(new CustomEvent("taskbar-drag-end",{detail:nA}))},SA=nA=>{window.dispatchEvent(new CustomEvent("taskbar-resize-end",{detail:nA}))},Be=nA=>{window.dispatchEvent(new CustomEvent("context-menu",{detail:nA}))},Me=nA=>{if(Pe.value){k.value=!0;const BA=Pe.value.scrollWidth-Pe.value.clientWidth,q=Math.max(0,Math.min(nA,BA));Pe.value.scrollTo({left:q,behavior:"smooth"}),setTimeout(()=>{k.value=!1},1e3)}},qe=nA=>{window.dispatchEvent(new CustomEvent("milestone-drag-end",{detail:nA}))},Re=n.computed(()=>{const nA=[],BA=new Set(y.value.map(q=>q.id));for(const q of y.value)if(q.predecessor&&QA.value[q.id]){const wA=ad(q.predecessor);for(const LA of wA)if(QA.value[LA]&&BA.has(LA)){const IA=QA.value[LA],ie=QA.value[q.id],XA=IA.left+IA.width,we=IA.top+IA.height/2,De=ie.left,ke=ie.top+ie.height/2,Le=XA+40,tt=we,kt=De-40,Kr=`M${XA},${we} C${Le},${tt} ${kt},${ke} ${De},${ke}`;nA.push({from:LA,to:q.id,path:Kr})}}return nA});n.onMounted(()=>{n.nextTick(()=>{setTimeout(()=>{se()},60)}),window.addEventListener("task-row-double-click",UA),window.addEventListener("task-list-hover",de),window.addEventListener("task-list-vertical-scroll",Oe),window.addEventListener("locale-changed",S),window.addEventListener("splitter-drag-start",lA),window.addEventListener("splitter-drag-end",WA),window.addEventListener("timeline-container-resized",NA),window.addEventListener("milestone-click-locate",Fn),window.addEventListener("drag-boundary-check",nn),n.nextTick(()=>{const nA=document.querySelector(".timeline-body"),BA=document.querySelector(".timeline");if(nA&&(T.value=nA.clientHeight,K=new ResizeObserver(q=>{for(const wA of q)T.value=wA.contentRect.height}),K.observe(nA)),BA){x.value=BA.scrollLeft,R.value=BA.clientWidth;const q=new ResizeObserver(wA=>{for(const LA of wA){const IA=LA.contentRect.width;Math.abs(IA-R.value)>1&&(R.value=IA,k.value=!0,setTimeout(()=>{k.value=!1},300))}});q.observe(BA),K||(K=q)}}),setTimeout(()=>{se(),Fe()},200),window.addEventListener("resize",Fe)});const Oe=nA=>{const{scrollTop:BA}=nA.detail,q=document.querySelector(".timeline-body");q&&q.scrollTop!==BA&&(q.scrollTop=BA)},dt=nA=>{const BA=nA.target;if(!BA)return;const q=BA.scrollTop;q>=0&&window.dispatchEvent(new CustomEvent("timeline-vertical-scroll",{detail:{scrollTop:q}}))};n.watch(()=>y.value.length,()=>{n.nextTick(()=>{Fe()})},{immediate:!0});const cr=n.ref(!1),$t=n.ref(0),Pt=n.ref(0),Pe=n.ref(null),Lt=n.ref(!1);let Qt=null;const Ot=nA=>{var LA;const BA=nA.target,q=BA.closest(".timeline-header"),wA=BA.closest(".timeline-body");!q&&!wA||wA&&[".task-bar",".milestone","button","input","select","textarea",".task-bar-content",".progress-bar",".task-name",".task-controls"].some(XA=>BA.closest(XA))||(cr.value=!0,$t.value=nA.pageX,Pt.value=((LA=Pe.value)==null?void 0:LA.scrollLeft)||0,Pe.value&&(Pe.value.style.cursor="grabbing",Pe.value.style.userSelect="none"),nA.preventDefault(),document.addEventListener("mousemove",tr),document.addEventListener("mouseup",xr))},tr=nA=>{if(!cr.value||!Pe.value)return;nA.preventDefault();const q=(nA.pageX-$t.value)*1.5;Pe.value.scrollLeft=Pt.value-q},xr=()=>{cr.value=!1,Pe.value&&(Pe.value.style.cursor="grab",Pe.value.style.userSelect="auto"),document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",xr)},Cn=nA=>{const BA=nA.target;if(!BA)return;const q=BA.scrollLeft,wA=BA.scrollWidth,LA=BA.clientWidth,IA=wA-LA;if(x.value=q,R.value=LA,j.value&&q>0&&(j.value=!1),g.value===ZA.HOUR){fA.value=!0,I&&clearTimeout(I),I=setTimeout(()=>{fA.value=!1},200);return}z.value=IA>0?q/IA:0,G.value=q>20,P.value=q<IA-20,fA.value=!0,BA&&"classList"in BA&&typeof BA.classList.add=="function"&&BA.classList.add("scrolling"),sA(),I&&clearTimeout(I),I=setTimeout(()=>{fA.value=!1,BA&&"classList"in BA&&typeof BA.classList.remove=="function"&&BA.classList.remove("scrolling")},500)},rn=nA=>{if(Lt.value||!Pe.value)return;Lt.value=!0;const BA=()=>{if(!Pe.value||!Lt.value)return;const q=Pe.value.scrollLeft,wA=Pe.value.scrollWidth-Pe.value.clientWidth;let LA;if(nA==="left"?LA=Math.max(0,q-_u):LA=Math.min(wA,q+_u),LA===q){Sr();return}Pe.value.scrollLeft=LA,window.dispatchEvent(new CustomEvent("timeline-auto-scroll",{detail:{scrollDelta:LA-q}})),Qt=window.setTimeout(BA,16)};BA()},Sr=()=>{Lt.value=!1,Qt&&(clearTimeout(Qt),Qt=null)},nn=nA=>{const{mouseX:BA,isDragging:q}=nA.detail;if(!q||!Pe.value){Sr();return}const wA=Pe.value.getBoundingClientRect(),LA=BA-wA.left;LA<=Hu&&Pe.value.scrollLeft>0?rn("left"):LA>=wA.width-Hu&&Pe.value.scrollLeft<Pe.value.scrollWidth-Pe.value.clientWidth?rn("right"):Sr()};n.onUnmounted(()=>{Sr(),window.removeEventListener("task-row-double-click",UA),window.removeEventListener("task-list-hover",de),window.removeEventListener("task-list-vertical-scroll",Oe),window.removeEventListener("locale-changed",S),window.removeEventListener("splitter-drag-start",lA),window.removeEventListener("splitter-drag-end",WA),window.removeEventListener("timeline-container-resized",NA),window.removeEventListener("milestone-click-locate",Fn),window.removeEventListener("drag-boundary-check",nn),K&&(K.disconnect(),K=null),window.removeEventListener("resize",Fe),document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",xr)});const ya=(nA,BA)=>{a("delete",nA,BA)},di=n.computed(()=>{if(g.value!==ZA.MONTH)return{};const nA={};return qA.value.forEach(BA=>{const wA=BA.year;nA[wA]||(nA[wA]=[]),nA[wA].push(BA)}),nA}),an=n.computed(()=>{if(g.value!==ZA.YEAR)return[];try{const nA=sn();return Array.isArray(nA)?nA:[]}catch{return[]}});e({scrollToTasks:TA,scrollToToday:PA,scrollToTodayCenter:se,timelineConfig:w,updateTimeScale:pA});const bn=nA=>{a("start-timer",nA)},Ca=nA=>{a("stop-timer",nA)},ba=nA=>{const BA=nA.startDate||nA.endDate||"";return{...nA,type:"milestone",startDate:BA,endDate:nA.startDate||nA.endDate}};n.watch(y,uA,{immediate:!0,deep:!0}),n.watch([x,R],uA),n.watch(()=>y.value,nA=>{const BA=new Set(nA.map(q=>q.id));Object.keys(QA.value).forEach(q=>{const wA=parseInt(q);BA.has(wA)||delete QA.value[wA]})},{deep:!0});const Fn=nA=>{const{scrollLeft:BA,smooth:q}=nA.detail,wA=document.querySelector(".timeline"),LA=document.querySelector(".timeline-body");let IA=null;if(wA&&wA.scrollWidth>wA.clientWidth?IA=wA:LA&&LA.scrollWidth>LA.clientWidth&&(IA=LA),IA){const ie=IA.scrollWidth-IA.clientWidth,XA=Math.min(Math.max(0,BA),ie);q?IA.scrollTo({left:XA,behavior:"smooth"}):IA.scrollLeft=XA}},hi=()=>{let nA,BA;if(g.value===ZA.MONTH){const ie=v();nA=ie.startDate,BA=ie.endDate}else nA=new Date(w.value.startDate),BA=new Date(w.value.endDate);const q={},wA=new Date(nA);for(wA.setDate(1);wA<=BA;){const ie=wA.getFullYear(),XA=wA.getMonth()+1,De=new Date(ie,XA,0).getDate(),ke=new Date,Le=ie===ke.getFullYear()&&XA===ke.getMonth()+1;q[ie]||(q[ie]={year:ie,yearLabel:`${ie}年`,months:[]}),q[ie].months.push({year:ie,month:XA,monthLabel:o(XA),startDate:new Date(ie,XA-1,1),endDate:new Date(ie,XA,0),isToday:Le,dayCount:De}),wA.setMonth(wA.getMonth()+1)}const LA=[];let IA=0;for(const ie of Object.values(q))for(const XA of ie.months){const we=[];for(let tt=1;tt<=XA.dayCount;tt++){const kt=new Date(XA.year,XA.month-1,tt);we.push({day:tt,date:new Date(kt),dayOfWeek:kt.getDay(),isToday:HA(kt),isWeekend:kt.getDay()===0||kt.getDay()===6})}const De=60,ke=IA,Le=IA+De;LA.push({year:XA.year,month:XA.month,yearMonthLabel:i(XA.year,XA.month),startDate:XA.startDate,endDate:XA.endDate,isMonthView:!0,monthData:{monthLabel:XA.monthLabel,isToday:XA.isToday,dayCount:XA.dayCount},subDays:we,days:we.map(tt=>({day:tt.day,date:tt.date,label:String(tt.day).padStart(2,"0"),isToday:tt.isToday,isWeekend:tt.isWeekend})),_debugInfo:{monthStartPosition:ke,monthEndPosition:Le,monthWidth:De}}),IA+=De}return LA},Fa=()=>{const nA=U(),BA=nA.startDate,q=nA.endDate,wA=[],LA=new Date(BA);for(LA.setMonth(0),LA.setDate(1),LA.setHours(0,0,0,0);LA<=q;){const IA=LA.getFullYear(),ie=[];for(let XA=1;XA<=4;XA++){const we=(XA-1)*3,De=new Date(IA,we,1),ke=we+2,Le=new Date(IA,ke+1,0);ie.push({quarter:XA,label:`Q${XA}`,fullLabel:`${IA}年第${XA}季度`,startDate:De,endDate:Le,isToday:gi(De,Le),year:IA})}wA.push({year:IA,yearLabel:String(IA),startDate:new Date(IA,0,1),endDate:new Date(IA,11,31),quarters:ie}),LA.setFullYear(LA.getFullYear()+1)}return wA},gi=(nA,BA)=>{const q=new Date;return q.setHours(0,0,0,0),q>=nA&&q<=BA},sn=()=>{const nA=U(),BA=nA.startDate,q=nA.endDate,wA=[],LA=new Date(BA);for(LA.setMonth(0),LA.setDate(1);LA<=q;){const IA=LA.getFullYear(),ie=[{label:u("halfYearFirst"),startDate:new Date(IA,0,1),endDate:new Date(IA,6,0),width:180},{label:u("halfYearSecond"),startDate:new Date(IA,6,1),endDate:new Date(IA,11,31),width:180}];wA.push({year:IA,startDate:new Date(IA,0,1),endDate:new Date(IA,11,31),halfYears:ie,width:360}),LA.setFullYear(LA.getFullYear()+1)}return wA},pi=nA=>{a("add-predecessor",nA)},ot=nA=>{a("add-successor",nA)};return(nA,BA)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"timelineContainer",ref:Pe,class:"timeline",onMousedown:Ot,onScroll:Cn},[n.createElementVNode("div",d1,[g.value===n.unref(ZA).YEAR&&an.value&&an.value.length>0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",h1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(an.value,q=>(n.openBlock(),n.createElementBlock("div",{key:`year-${q.year}`,class:"timeline-year",style:{width:"360px"}},[n.createElementVNode("div",g1,n.toDisplayString(q.year),1)]))),128))]),n.createElementVNode("div",p1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(an.value,q=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`halfyear-${q.year}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.halfYears||[],wA=>(n.openBlock(),n.createElementBlock("div",{key:`halfyear-${q.year}-${wA.label}`,class:"timeline-half-year-item",style:{width:"180px"}},[n.createElementVNode("div",B1,n.toDisplayString(wA.label),1)]))),128))],64))),128))])],64)):g.value===n.unref(ZA).MONTH?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",m1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(di.value,(q,wA)=>(n.openBlock(),n.createElementBlock("div",{key:`year-${wA}`,class:"timeline-year",style:{width:"720px"}},[n.createElementVNode("div",w1,n.toDisplayString(wA),1)]))),128))]),n.createElementVNode("div",v1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(qA.value,q=>{var wA,LA;return n.openBlock(),n.createElementBlock("div",{key:`month-${q.year}-${q.month}`,class:n.normalizeClass(["timeline-month-item",{today:(wA=q.monthData)==null?void 0:wA.isToday}]),style:{width:"59px"}},[n.createElementVNode("div",y1,n.toDisplayString((LA=q.monthData)==null?void 0:LA.monthLabel),1)],2)}),128))])],64)):g.value===n.unref(ZA).QUARTER?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",C1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(qA.value,q=>(n.openBlock(),n.createElementBlock("div",{key:`year-${q.year}`,class:"timeline-year",style:{width:"240px"}},[n.createElementVNode("div",b1,n.toDisplayString(q.yearLabel),1)]))),128))]),n.createElementVNode("div",F1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(qA.value,q=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`quarters-${q.year}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.quarters,wA=>(n.openBlock(),n.createElementBlock("div",{key:`quarter-${q.year}-${wA.quarter}`,class:n.normalizeClass(["timeline-quarter-item",{today:wA.isToday}]),style:{width:"60px"}},[n.createElementVNode("div",Q1,n.toDisplayString(wA.label),1)],2))),128))],64))),128))])],64)):g.value===n.unref(ZA).HOUR?(n.openBlock(),n.createElementBlock("div",{key:3,class:"hour-header-container",style:n.normalizeStyle({width:`${D.value}px`})},[n.createElementVNode("div",E1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(F.value,q=>(n.openBlock(),n.createElementBlock("div",{key:`date-${q.year}-${q.month}-${q.day}`,class:"timeline-day-item",style:n.normalizeStyle({position:"absolute",width:`${q.hours.length*40}px`,left:`${(q.hourOffset||0)*40}px`})},[n.createElementVNode("div",U1,n.toDisplayString(q.dateLabel),1)],4))),128))]),n.createElementVNode("div",L1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(F.value,q=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`hours-${q.year}-${q.month}-${q.day}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.hours,(wA,LA)=>(n.openBlock(),n.createElementBlock("div",{key:`hour-${q.year}-${q.month}-${q.day}-${wA.hour}`,class:n.normalizeClass(["timeline-hour-item",{today:wA.isToday,"non-working-hour":!wA.isWorkingHour}]),style:n.normalizeStyle({position:"absolute",width:"40px",left:`${(q.hourOffset+LA)*40}px`})},[n.createElementVNode("div",k1,n.toDisplayString(wA.shortLabel),1)],6))),128))],64))),128))])],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[n.createElementVNode("div",x1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(qA.value,q=>(n.openBlock(),n.createElementBlock("div",{key:`year-month-${q.year}-${q.month}`,class:"timeline-month",style:n.normalizeStyle({width:q.isWeekView?`${(q.weeks||[]).length*60}px`:`${(q.days||[]).length*30}px`})},[n.createElementVNode("div",S1,n.toDisplayString(q.yearMonthLabel),1)],4))),128))]),n.createElementVNode("div",D1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(qA.value,q=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`timeline-${q.year}-${q.month}`},[q.isWeekView&&q.weeks?(n.openBlock(),n.createElementBlock("div",{key:0,class:"timeline-month-weeks",style:n.normalizeStyle({width:`${(q.weeks||[]).length*60}px`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.weeks||[],wA=>(n.openBlock(),n.createElementBlock("div",{key:`week-${q.year}-${q.month}-${wA.label}`,class:n.normalizeClass(["timeline-week",{today:wA.isToday}])},[n.createElementVNode("div",I1,n.toDisplayString(wA.label),1),n.createElementVNode("div",N1,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(wA.subDays||[],(LA,IA)=>(n.openBlock(),n.createElementBlock("div",{key:`subday-${IA}`,class:"week-sub-day"}))),128))])],2))),128))],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"timeline-month-days",style:n.normalizeStyle({width:`${q.days.length*30}px`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.days,wA=>(n.openBlock(),n.createElementBlock("div",{key:`day-${q.year}-${q.month}-${wA.day}`,class:n.normalizeClass(["timeline-day",{today:wA.isToday,weekend:wA.isWeekend&&!wA.isToday}])},[n.createElementVNode("div",T1,n.toDisplayString(wA.label),1)],2))),128))],4))],64))),128))])],64))]),n.createElementVNode("div",{class:"timeline-body",onScroll:dt},[n.createElementVNode("div",{ref_key:"bodyContentRef",ref:EA,class:"timeline-body-content"},[(n.openBlock(),n.createElementBlock("svg",{class:"gantt-links",width:_A.value,height:fe.value,style:{position:"absolute",left:"0",top:"0","z-index":"25","pointer-events":"none"}},[BA[2]||(BA[2]=n.createElementVNode("defs",null,[n.createElementVNode("marker",{id:"arrow",markerWidth:"4",markerHeight:"4",refX:"4",refY:"2",orient:"auto",markerUnits:"strokeWidth"},[n.createElementVNode("polygon",{points:"0,0 4,2 0,4",fill:"#c0c4cc"})])],-1)),n.createElementVNode("g",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Re.value,q=>(n.openBlock(),n.createElementBlock("path",{key:q.from+"-"+q.to,d:q.path,stroke:"#c0c4cc","stroke-width":"2","stroke-dasharray":"6,4",fill:"none","marker-end":"url(#arrow)"},null,8,_1))),128))])],8,H1)),vA.value&&hA.value>=0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"today-line-year-view",style:n.normalizeStyle({left:`${hA.value}px`,height:`${jA.value}px`})},null,4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"day-columns",style:n.normalizeStyle({height:`${jA.value}px`})},[g.value===n.unref(ZA).HOUR?(n.openBlock(),n.createElementBlock("div",{key:0,class:"hour-columns-container",style:n.normalizeStyle({width:`${D.value}px`,height:`${jA.value}px`,position:"relative"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(F.value,q=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`day-col-${q.year}-${q.month}-${q.day}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.hours,(wA,LA)=>(n.openBlock(),n.createElementBlock("div",{key:`hour-col-${q.year}-${q.month}-${q.day}-${wA.hour}`,class:n.normalizeClass(["hour-column",{today:wA.isToday,weekend:wA.isWeekend,"working-hour":wA.isWorkingHour,"rest-hour":!wA.isWorkingHour&&!wA.isWeekend}]),style:n.normalizeStyle({position:"absolute",width:"40px",height:`${jA.value}px`,left:`${(q.hourOffset+LA)*40}px`})},BA[3]||(BA[3]=[n.createElementVNode("div",{class:"quarter-hour-lines"},[n.createElementVNode("div",{class:"quarter-line",style:{left:"10px"}}),n.createElementVNode("div",{class:"quarter-line",style:{left:"20px"}}),n.createElementVNode("div",{class:"quarter-line",style:{left:"30px"}})],-1)]),6))),128))],64))),128))],4)):n.createCommentVNode("",!0),g.value===n.unref(ZA).YEAR?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(an.value,q=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`year-col-${q.year}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.halfYears||[],wA=>(n.openBlock(),n.createElementBlock("div",{key:`halfyear-col-${q.year}-${wA.label}`,class:"half-year-column",style:n.normalizeStyle({width:"180px",height:`${jA.value}px`})},null,4))),128))],64))),128)):n.createCommentVNode("",!0),g.value===n.unref(ZA).QUARTER?(n.openBlock(),n.createElementBlock("div",{key:2,class:"quarter-columns-container",style:n.normalizeStyle({width:`${D.value}px`,height:`${jA.value}px`,position:"relative"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(qA.value,(q,wA)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`quarter-col-${q.year}`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.quarters,(LA,IA)=>(n.openBlock(),n.createElementBlock("div",{key:`quarter-col-${q.year}-${LA.quarter}`,class:n.normalizeClass(["quarter-column",{today:LA.isToday}]),style:n.normalizeStyle({position:"absolute",width:"60px",height:`${jA.value}px`,left:`${wA*240+IA*60}px`})},null,6))),128))],64))),128))],4)):g.value!==n.unref(ZA).HOUR&&g.value!==n.unref(ZA).YEAR&&g.value!==n.unref(ZA).QUARTER?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:3},n.renderList(qA.value,q=>{var wA;return n.openBlock(),n.createElementBlock(n.Fragment,{key:`day-col-${q.year}-${q.month}`},[q.isMonthView?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["month-column",{today:(wA=q.monthData)==null?void 0:wA.isToday}]),style:n.normalizeStyle({width:"59px",height:`${jA.value}px`})},null,6)):q.isWeekView&&q.weeks?(n.openBlock(),n.createElementBlock("div",{key:1,class:"month-week-columns",style:n.normalizeStyle({width:`${(q.weeks||[]).length*60}px`,height:`${jA.value}px`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.weeks||[],LA=>(n.openBlock(),n.createElementBlock("div",{key:`week-col-${q.year}-${q.month}-${LA.label}`,class:n.normalizeClass(["week-column",{today:LA.isToday}]),style:n.normalizeStyle({height:`${jA.value}px`,width:"60px"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(LA.subDays||[],(IA,ie)=>(n.openBlock(),n.createElementBlock("div",{key:`subday-col-${ie}`,class:n.normalizeClass(["sub-day-column",{weekend:IA.dayOfWeek===0||IA.dayOfWeek===6,today:HA(IA.date)}]),style:n.normalizeStyle({height:`${jA.value}px`,width:"8.57px"})},null,6))),128))],6))),128))],4)):(n.openBlock(),n.createElementBlock("div",{key:2,class:"month-day-columns",style:n.normalizeStyle({width:`${(q.days||[]).length*30}px`,height:`${jA.value}px`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(q.days||[],LA=>(n.openBlock(),n.createElementBlock("div",{key:`day-col-${q.year}-${q.month}-${LA.day}`,class:n.normalizeClass(["day-column",{weekend:LA.isWeekend,today:LA.isToday}]),style:n.normalizeStyle({height:`${jA.value}px`})},null,6))),128))],4))],64)}),128)):n.createCommentVNode("",!0)],4),n.createElementVNode("div",{class:"task-bar-container",style:n.normalizeStyle({height:`${jA.value}px`})},[n.createElementVNode("div",{class:"task-rows",style:n.normalizeStyle({height:`${jA.value}px`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(y.value,(q,wA)=>(n.openBlock(),n.createElementBlock("div",{key:q.id,class:n.normalizeClass(["task-row",{"task-row-hovered":Z.value===q.id}]),style:n.normalizeStyle({top:`${wA*51}px`}),onMouseenter:LA=>JA(q.id),onMouseleave:BA[0]||(BA[0]=LA=>JA(null))},[q.type==="milestone-group"&&q.children?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(q.children,LA=>(n.openBlock(),n.createBlock(dc,{key:LA.id,date:LA.startDate||"","row-height":50,"day-width":Q.value,"start-date":g.value===n.unref(ZA).YEAR||g.value===n.unref(ZA).QUARTER?U().startDate:g.value===n.unref(ZA).MONTH?v().startDate:w.value.startDate,name:LA.name,milestone:ba(LA),"scroll-left":x.value,"container-width":R.value,"milestone-id":LA.id,"other-milestones":dA(LA.id),"timeline-data":qA.value,"current-time-scale":g.value,onMilestoneDoubleClick:FA,"onUpdate:milestone":RA,onDragEnd:qe},null,8,["date","day-width","start-date","name","milestone","scroll-left","container-width","milestone-id","other-milestones","timeline-data","current-time-scale"]))),128)):q.type==="milestone"?(n.openBlock(),n.createBlock(dc,{key:q.id,date:q.startDate||"","row-height":50,"day-width":Q.value,"start-date":g.value===n.unref(ZA).YEAR||g.value===n.unref(ZA).QUARTER?U().startDate:g.value===n.unref(ZA).MONTH?v().startDate:w.value.startDate,name:q.name,milestone:ba(q),"scroll-left":x.value,"container-width":R.value,"milestone-id":q.id,"other-milestones":dA(q.id),"timeline-data":qA.value,"current-time-scale":g.value,onMilestoneDoubleClick:FA,"onUpdate:milestone":RA,onDragEnd:qe},null,8,["date","day-width","start-date","name","milestone","scroll-left","container-width","milestone-id","other-milestones","timeline-data","current-time-scale"])):q.type!=="milestone-group"&&q.type!=="milestone"?(n.openBlock(),n.createBlock(cd,{key:2,task:q,"row-height":50,"day-width":Q.value,"start-date":g.value===n.unref(ZA).YEAR?U().startDate:g.value===n.unref(ZA).MONTH?v().startDate:w.value.startDate,"is-parent":q.isParent,"on-double-click":r.onTaskDoubleClick,"scroll-left":x.value,"container-width":R.value,"hide-bubbles":k.value,"timeline-data":g.value===n.unref(ZA).HOUR?F.value:qA.value,"current-time-scale":g.value,"onUpdate:task":tA,onBarMounted:Ce,onDblclick:LA=>yA(q),onDragEnd:Ae,onResizeEnd:SA,onScrollToPosition:Me,onContextMenu:Be,onStartTimer:bn,onStopTimer:Ca,onAddPredecessor:pi,onAddSuccessor:ot,onDelete:ya},null,8,["task","day-width","start-date","is-parent","on-double-click","scroll-left","container-width","hide-bubbles","timeline-data","current-time-scale","onDblclick"])):n.createCommentVNode("",!0)],46,M1))),128))],4)],4)],512)],32),n.createVNode(ud,{visible:M.value,"onUpdate:visible":BA[1]||(BA[1]=q=>M.value=q),milestone:J.value,onClose:KA,onSave:$A,onDelete:ee,onIconChanged:GA},null,8,["visible","milestone"])],544))}}),fd=or(P1,[["__scopeId","data-v-0788d9d3"]]),O1={class:"gantt-toolbar"},R1={class:"toolbar-left"},V1={key:0,class:"btn-group add-btn-group"},K1=["title"],G1=["title"],j1={key:1,class:"btn-group"},q1=["title"],W1=["title"],Y1={class:"toolbar-right"},z1={key:0,class:"segmented-control time-scale-segmented"},$1={class:"segmented-track"},X1=["title","onClick"],J1={key:1,class:"language-dropdown"},Z1=["title"],AB={class:"lang-text"},eB={key:0,class:"language-menu"},tB=["onClick"],rB={class:"option-text"},nB={key:0,class:"check-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},aB=["title"],iB=["title"],sB={key:0,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},oB={key:1,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},lB={class:"icon-fallback"},cB=["title"],uB={key:0,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},fB={key:1,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},dB={class:"icon-fallback"},hB={key:0,class:"confirm-dialog"},gB={class:"dialog-content"},pB={class:"dialog-message"},BB={class:"dialog-actions"},Nl="gantt-theme",mB="gantt-locale",wB=n.defineComponent({__name:"GanttToolbar",props:{config:{default:()=>({})},onAddTask:{type:Function,default:void 0},onAddMilestone:{type:Function,default:void 0},onTodayLocate:{type:Function,default:void 0},onExportCsv:{type:Function,default:void 0},onExportPdf:{type:Function,default:void 0},onLanguageChange:{type:Function,default:void 0},onThemeChange:{type:Function,default:void 0},onFullscreenChange:{type:Function,default:void 0},onTimeScaleChange:{type:Function,default:void 0},onSettingsConfirm:{type:Function,default:void 0}},emits:["add-task","add-milestone","today-locate","export-csv","export-pdf","language-change","theme-change","fullscreen-change","time-scale-change"],setup(t,{emit:e}){const A=t,r=e,a={zh:"zh-CN",en:"en-US"},i=()=>{if(typeof window<"u"){const D=localStorage.getItem(Nl);return D!==null?D==="dark":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}return!1},{locale:o,setLocale:l,getTranslation:u}=kr(),d=n.ref("zh"),p=n.ref(i()),B=n.ref(!1),w=n.ref(!1),g=n.ref(ZA.DAY),y=D=>u(D),Q=n.computed(()=>y("language")),_=n.ref(!1),v=n.ref(null),U=n.ref(null),M=()=>{A.onAddTask&&typeof A.onAddTask=="function"?A.onAddTask():r("add-task")},J=()=>{A.onAddMilestone&&typeof A.onAddMilestone=="function"?A.onAddMilestone():r("add-milestone")},Z=()=>{A.onTodayLocate&&typeof A.onTodayLocate=="function"?A.onTodayLocate():r("today-locate")},Y=()=>{A.onExportCsv&&typeof A.onExportCsv=="function"?A.onExportCsv():r("export-csv")},G=()=>{A.onExportPdf&&typeof A.onExportPdf=="function"?A.onExportPdf():r("export-pdf")},P=()=>{w.value=!w.value},z=D=>{d.value=D,w.value=!1;const T=a[d.value];l(T),A.onLanguageChange&&typeof A.onLanguageChange=="function"?A.onLanguageChange(T):r("language-change",T),U.value=T,v.value="language",_.value=!0},fA=async()=>{if(!v.value||U.value===null){k();return}if(A.onSettingsConfirm&&typeof A.onSettingsConfirm=="function")try{if(!await A.onSettingsConfirm(v.value,U.value)){k();return}}catch{k();return}v.value==="theme"?I():v.value==="language"&&x(),k()},I=()=>{typeof window<"u"&&typeof U.value=="boolean"&&localStorage.setItem(Nl,U.value?"dark":"light")},x=()=>{typeof window<"u"&&typeof U.value=="string"&&localStorage.setItem(mB,U.value)},R=()=>{k()},k=()=>{_.value=!1,v.value=null,U.value=null},X=()=>{const D=!p.value;p.value=D,document.documentElement.setAttribute("data-theme",D?"dark":"light"),A.onThemeChange&&typeof A.onThemeChange=="function"?A.onThemeChange(D):r("theme-change",D),U.value=D,v.value="theme",_.value=!0},$=()=>{B.value=!B.value,window.dispatchEvent(new CustomEvent("fullscreen-toggle",{detail:B.value})),A.onFullscreenChange&&typeof A.onFullscreenChange=="function"?A.onFullscreenChange(B.value):r("fullscreen-change",B.value)},j=D=>{g.value=D,A.onTimeScaleChange&&typeof A.onTimeScaleChange=="function"?A.onTimeScaleChange(D):r("time-scale-change",D)},V=n.computed(()=>{var T;const D=["hour","day","week","month","year"];return((T=A.config)==null?void 0:T.timeScaleDimensions)||D}),AA={hour:{value:ZA.HOUR,label:()=>y("timeScaleHour")},day:{value:ZA.DAY,label:()=>y("timeScaleDay")},week:{value:ZA.WEEK,label:()=>y("timeScaleWeek")},month:{value:ZA.MONTH,label:()=>y("timeScaleMonth")},quarter:{value:ZA.QUARTER,label:()=>y("timeScaleQuarter")},year:{value:ZA.YEAR,label:()=>y("timeScaleYear")}},sA=n.computed(()=>{const D=Object.entries(AA).find(([,T])=>T.value===g.value);return D?D[0]:"day"}),DA=()=>{const D=V.value.findIndex(uA=>uA===sA.value),T=V.value.length;if(T===0||D<0)return{transform:"translateX(0%)",width:`${100/T||25}%`};const K=100/T;return{transform:`translateX(${D*100}%)`,width:`${K}%`}},F=D=>{!D.target.closest(".language-dropdown")&&w.value&&(w.value=!1)};return n.onMounted(()=>{const D=o.value;d.value=D==="zh-CN"?"zh":"en",document.documentElement.setAttribute("data-theme",p.value?"dark":"light"),document.addEventListener("click",F),window.matchMedia&&typeof window<"u"&&!localStorage.getItem(Nl)&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",T=>{p.value=T.matches,document.documentElement.setAttribute("data-theme",T.matches?"dark":"light")})}),n.onUnmounted(()=>{document.removeEventListener("click",F)}),(D,T)=>(n.openBlock(),n.createElementBlock("div",O1,[n.createElementVNode("div",R1,[D.config.showAddTask!==!1||D.config.showAddMilestone!==!1?(n.openBlock(),n.createElementBlock("div",V1,[D.config.showAddTask!==!1?(n.openBlock(),n.createElementBlock("button",{key:0,class:"btn-group-item",title:y("addTask"),onClick:M},[T[0]||(T[0]=n.createElementVNode("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n.createElementVNode("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),n.createTextVNode(" "+n.toDisplayString(y("addTask")),1)],8,K1)):n.createCommentVNode("",!0),D.config.showAddMilestone!==!1?(n.openBlock(),n.createElementBlock("button",{key:1,class:"btn-group-item",title:y("addMilestone"),onClick:J},[T[1]||(T[1]=n.createStaticVNode('<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-18db2fd4><g transform="rotate(45 12 12)" data-v-18db2fd4><rect x="4" y="4" width="16" height="16" rx="4" ry="4" fill="none" stroke="currentColor" data-v-18db2fd4></rect></g><line x1="12" y1="8" x2="12" y2="16" data-v-18db2fd4></line><line x1="8" y1="12" x2="16" y2="12" data-v-18db2fd4></line></svg>',1)),n.createTextVNode(" "+n.toDisplayString(y("addMilestone")),1)],8,G1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),D.config.showExportCsv!==!1||D.config.showExportPdf!==!1?(n.openBlock(),n.createElementBlock("div",j1,[D.config.showExportCsv!==!1?(n.openBlock(),n.createElementBlock("button",{key:0,class:"btn-group-item",title:y("exportCsv"),onClick:Y},[T[2]||(T[2]=n.createStaticVNode('<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-18db2fd4><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-18db2fd4></path><polyline points="14,2 14,8 20,8" data-v-18db2fd4></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-18db2fd4></line><line x1="16" y1="17" x2="8" y2="17" data-v-18db2fd4></line><polyline points="10,9 9,9 8,9" data-v-18db2fd4></polyline></svg>',1)),n.createTextVNode(" "+n.toDisplayString(y("exportCsv")),1)],8,q1)):n.createCommentVNode("",!0),D.config.showExportPdf!==!1?(n.openBlock(),n.createElementBlock("button",{key:1,class:"btn-group-item",title:y("exportPdf"),onClick:G},[T[3]||(T[3]=n.createStaticVNode('<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-18db2fd4><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" data-v-18db2fd4></path><polyline points="14,2 14,8 20,8" data-v-18db2fd4></polyline><line x1="16" y1="13" x2="8" y2="13" data-v-18db2fd4></line><line x1="16" y1="17" x2="8" y2="17" data-v-18db2fd4></line><line x1="12" y1="13" x2="12" y2="17" data-v-18db2fd4></line></svg>',1)),n.createTextVNode(" "+n.toDisplayString(y("exportPdf")),1)],8,W1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),n.createElementVNode("div",Y1,[D.config.showTimeScale!==!1?(n.openBlock(),n.createElementBlock("div",z1,[n.createElementVNode("div",$1,[n.createElementVNode("div",{class:"segmented-thumb",style:n.normalizeStyle(DA())},null,4)]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(V.value,K=>(n.openBlock(),n.createElementBlock("button",{key:K,class:n.normalizeClass(["segmented-item",{active:sA.value===K}]),title:y("timeScaleTooltip"),onClick:eA=>j(AA[K].value)},n.toDisplayString(AA[K].label()),11,X1))),128))])):n.createCommentVNode("",!0),D.config.showLanguage!==!1?(n.openBlock(),n.createElementBlock("div",J1,[n.createElementVNode("button",{class:"toolbar-lang-btn",title:y("languageTooltip"),onClick:P},[T[4]||(T[4]=n.createElementVNode("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n.createElementVNode("circle",{cx:"12",cy:"12",r:"10"}),n.createElementVNode("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),n.createElementVNode("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),n.createElementVNode("span",AB,n.toDisplayString(Q.value),1),T[5]||(T[5]=n.createElementVNode("svg",{class:"dropdown-arrow",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[n.createElementVNode("polyline",{points:"6,9 12,15 18,9"})],-1))],8,Z1),w.value?(n.openBlock(),n.createElementBlock("div",eB,[(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(["zh","en"],K=>n.createElementVNode("div",{key:K,class:n.normalizeClass(["language-option",{active:d.value===K}]),onClick:eA=>z(K)},[n.createElementVNode("span",rB,n.toDisplayString(K==="zh"?"中文":"English"),1),d.value===K?(n.openBlock(),n.createElementBlock("svg",nB,T[6]||(T[6]=[n.createElementVNode("polyline",{points:"20,6 9,17 4,12"},null,-1)]))):n.createCommentVNode("",!0)],10,tB)),64))])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),D.config.showTodayLocate!==!1?(n.openBlock(),n.createElementBlock("button",{key:2,class:"toolbar-icon-btn today-locate-btn",title:y("todayLocateTooltip"),onClick:Z},T[7]||(T[7]=[n.createStaticVNode('<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-18db2fd4><rect x="3" y="4" width="18" height="18" rx="2" ry="2" data-v-18db2fd4></rect><line x1="16" y1="2" x2="16" y2="6" data-v-18db2fd4></line><line x1="8" y1="2" x2="8" y2="6" data-v-18db2fd4></line><line x1="3" y1="10" x2="21" y2="10" data-v-18db2fd4></line><circle cx="12" cy="16" r="1" data-v-18db2fd4></circle></svg>',1)]),8,aB)):n.createCommentVNode("",!0),D.config.showTheme!==!1?(n.openBlock(),n.createElementBlock("button",{key:3,class:"toolbar-icon-btn",title:y(p.value?"lightMode":"darkMode"),onClick:X},[p.value?(n.openBlock(),n.createElementBlock("svg",sB,T[8]||(T[8]=[n.createStaticVNode('<circle cx="12" cy="12" r="5" data-v-18db2fd4></circle><line x1="12" y1="1" x2="12" y2="3" data-v-18db2fd4></line><line x1="12" y1="21" x2="12" y2="23" data-v-18db2fd4></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64" data-v-18db2fd4></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78" data-v-18db2fd4></line><line x1="1" y1="12" x2="3" y2="12" data-v-18db2fd4></line><line x1="21" y1="12" x2="23" y2="12" data-v-18db2fd4></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36" data-v-18db2fd4></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22" data-v-18db2fd4></line>',9)]))):(n.openBlock(),n.createElementBlock("svg",oB,T[9]||(T[9]=[n.createElementVNode("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"},null,-1)]))),n.createElementVNode("span",lB,n.toDisplayString(p.value?"☀️":"🌙"),1)],8,iB)):n.createCommentVNode("",!0),D.config.showFullscreen!==!1?(n.openBlock(),n.createElementBlock("button",{key:4,class:"toolbar-icon-btn",title:y(B.value?"exitFullscreen":"fullscreen"),onClick:$},[B.value?(n.openBlock(),n.createElementBlock("svg",uB,T[10]||(T[10]=[n.createElementVNode("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)]))):(n.openBlock(),n.createElementBlock("svg",fB,T[11]||(T[11]=[n.createElementVNode("path",{d:"M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3"},null,-1)]))),n.createElementVNode("span",dB,n.toDisplayString(B.value?"⇲":"⇱"),1)],8,cB)):n.createCommentVNode("",!0)]),_.value?(n.openBlock(),n.createElementBlock("div",hB,[n.createElementVNode("div",gB,[n.createElementVNode("p",pB,n.toDisplayString(y("confirmDialogMessage")),1),n.createElementVNode("div",BB,[n.createElementVNode("button",{class:"btn btn-default",onClick:R},n.toDisplayString(y("cancel")),1),n.createElementVNode("button",{class:"btn btn-primary",onClick:fA},n.toDisplayString(y("confirm")),1)])])])):n.createCommentVNode("",!0)]))}}),vB=or(wB,[["__scopeId","data-v-18db2fd4"]]),yB={success:"#67c23a",warning:"#e6a23c",error:"#f56c6c",info:"#909399"};let fa=null;function CB(){return fa||(fa=document.createElement("div"),fa.className="message-container",fa.style.cssText=`
2
+ position: fixed;
3
+ top: 20px;
4
+ right: 20px;
5
+ z-index: 9999;
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: flex-end;
9
+ gap: 12px;
10
+ pointer-events: none;
11
+ `,document.body.appendChild(fa)),fa}const Ys=new Map,Mu=1e3;function $c(){return{showMessage:(e,A="success",r)=>{const a=Date.now(),i=`${A}:${e}`,o=Ys.get(i);if(!(r!=null&&r.allowDuplicate)&&o&&a-o<Mu)return;Ys.set(i,a);for(const[y,Q]of Ys.entries())a-Q>Mu*2&&Ys.delete(y);const l=document.createElement("div");l.className=`message ${A}`,l.textContent=e,l.style.cssText=`
12
+ min-width: 180px;
13
+ max-width: 360px;
14
+ margin: 0;
15
+ padding: 12px 20px 12px 20px;
16
+ border-radius: 4px;
17
+ color: white;
18
+ font-size: 14px;
19
+ background: ${yB[A]};
20
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
21
+ pointer-events: auto;
22
+ opacity: 0;
23
+ display: flex;
24
+ align-items: center;
25
+ gap: 12px;
26
+ transform: translateY(-20px);
27
+ transition: opacity 0.25s, transform 0.25s;
28
+ position: relative;
29
+ `;let u=!1;const d=(r==null?void 0:r.closable)??!1;if(d){const y=document.createElement("button");y.innerHTML='<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',y.style.cssText=`
30
+ background: transparent;
31
+ border: none;
32
+ color: white;
33
+ cursor: pointer;
34
+ margin-left: 8px;
35
+ padding: 0;
36
+ display: flex;
37
+ align-items: center;
38
+ opacity: 0.7;
39
+ transition: opacity 0.2s;
40
+ `,y.onmouseenter=()=>y.style.opacity="1",y.onmouseleave=()=>y.style.opacity="0.7",y.onclick=()=>g(),l.appendChild(y)}const p=CB();p.appendChild(l),setTimeout(()=>{l.style.opacity="0.98",l.style.transform="translateY(0)"},10);const B=(r==null?void 0:r.duration)??(d?0:3e3);let w;!d&&B>0&&(w=window.setTimeout(()=>g(),B));function g(){u||(u=!0,l.style.opacity="0",l.style.transform="translateY(-20px)",w&&clearTimeout(w),setTimeout(()=>{l.parentNode&&(p.removeChild(l),p.childElementCount===0&&(p.remove(),fa=null))},250))}}}}const bB={class:"multi-select-predecessor"},FB={class:"form-label",for:"predecessor-select"},QB={class:"predecessor-selector"},EB={key:0,class:"selected-tags"},UB=["onClick"],LB={class:"select-wrapper"},kB={value:""},xB=["value"],SB=n.defineComponent({__name:"MultiSelectPredecessor",props:{modelValue:{default:()=>[]},tasks:{},currentTaskId:{default:void 0},label:{default:"前置任务"},placeholder:{default:"请选择前置任务"}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,a=n.ref(""),i=n.computed(()=>A.modelValue||[]),o=n.computed(()=>i.value.map(p=>A.tasks.find(B=>B.id===p)).filter(p=>p)),l=n.computed(()=>A.tasks.filter(p=>p.type==="task"&&p.id!==A.currentTaskId&&!i.value.includes(p.id))),u=()=>{if(a.value){const p=Number(a.value);if(!i.value.includes(p)){const B=[...i.value,p];r("update:modelValue",B)}a.value=""}},d=p=>{const B=i.value.filter(w=>w!==p);r("update:modelValue",B)};return n.watch(()=>A.modelValue,()=>{a.value=""},{immediate:!0}),(p,B)=>(n.openBlock(),n.createElementBlock("div",bB,[n.createElementVNode("label",FB,n.toDisplayString(p.label),1),n.createElementVNode("div",QB,[o.value.length>0?(n.openBlock(),n.createElementBlock("div",EB,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value,w=>(n.openBlock(),n.createElementBlock("span",{key:w.id,class:"predecessor-tag"},[n.createTextVNode(n.toDisplayString(w.name)+" ("+n.toDisplayString(w.id)+") ",1),n.createElementVNode("button",{type:"button",class:"remove-tag-btn",onClick:g=>d(w.id)}," × ",8,UB)]))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",LB,[n.withDirectives(n.createElementVNode("select",{id:"predecessor-select","onUpdate:modelValue":B[0]||(B[0]=w=>a.value=w),class:"form-select",onChange:u},[n.createElementVNode("option",kB,n.toDisplayString(p.placeholder),1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,w=>(n.openBlock(),n.createElementBlock("option",{key:w.id,value:w.id},n.toDisplayString(w.name)+" (ID: "+n.toDisplayString(w.id)+") ",9,xB))),128))],544),[[n.vModelSelect,a.value]])])])]))}}),DB=or(SB,[["__scopeId","data-v-3bddb4ad"]]),IB={class:"drawer-header",style:{display:"flex","align-items":"center","justify-content":"flex-start",gap:"8px"}},NB={class:"drawer-title",style:{margin:"0"}},TB={key:0,class:"drawer-timer",style:{display:"flex","align-items":"center",gap:"6px","margin-left":"8px"}},HB={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",style:{display:"block",margin:"0 auto"}},_B={key:0,class:"timer-dot",style:{background:"#67c23a",width:"7px",height:"7px","border-radius":"50%","margin-right":"5px",animation:"pulse 1s infinite"}},MB={class:"close-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",style:{"vertical-align":"middle"}},PB={class:"drawer-body"},OB={class:"form-group"},RB={class:"form-label",for:"task-name"},VB=["placeholder"],KB={key:0,class:"error-text"},GB={class:"form-group"},jB={class:"form-label",for:"task-type"},qB={value:"story"},WB={value:"task"},YB={value:"bug"},zB={key:0,class:"error-text"},$B={class:"form-group"},XB={class:"form-label",for:"task-assignee"},JB={value:""},ZB={class:"form-group"},A2={class:"form-label",for:"task-parent"},e2={value:void 0},t2=["value"],r2={class:"form-row"},n2={class:"form-group"},a2={class:"form-label",for:"task-start-date"},i2={key:0,class:"error-text"},s2={class:"form-group"},o2={class:"form-label",for:"task-end-date"},l2={key:0,class:"error-text"},c2={class:"form-row"},u2={class:"form-group"},f2={class:"form-label",for:"task-estimated-hours"},d2={class:"form-group"},h2={class:"form-label",for:"task-actual-hours"},g2={class:"form-group"},p2={class:"form-label",for:"task-progress"},B2={class:"progress-container"},m2={class:"progress-input-group"},w2={class:"form-group"},v2={class:"form-label",for:"task-description"},y2=["placeholder"],C2={class:"drawer-footer"},b2={class:"footer-left"},F2=["disabled"],Q2={key:0,class:"loading-spinner"},E2={class:"footer-right"},U2=["disabled"],L2={key:0,class:"loading-spinner"},k2=n.defineComponent({__name:"TaskDrawer",props:{visible:{type:Boolean,default:!1},task:{default:null},isEdit:{type:Boolean,default:!1},onDelete:{type:Function,default:void 0}},emits:["update:visible","submit","close","delete","start-timer","stop-timer"],setup(t,{emit:e}){const A=t,r=e,{t:a}=kr(),{showMessage:i}=$c(),o=n.ref(!1),l=n.ref(A.visible),u=n.ref(!1),d=n.ref(0),p=n.ref(null),B=n.computed(()=>{var S;return(S=A.task)==null?void 0:S.isTimerRunning}),w=n.computed(()=>{var S;return(S=A.task)==null?void 0:S.timerStartTime}),g=n.computed(()=>{var S;return((S=A.task)==null?void 0:S.timerElapsedTime)||0}),y=n.computed(()=>{const S=Math.floor(d.value/1e3),FA=Math.floor(S/3600),KA=Math.floor(S%3600/60),GA=S%60;return`${String(FA).padStart(2,"0")}:${String(KA).padStart(2,"0")}:${String(GA).padStart(2,"0")}`}),Q=()=>{B.value&&w.value?d.value=Date.now()-w.value+g.value:d.value=g.value};n.watch(()=>{var S,FA,KA;return[(S=A.task)==null?void 0:S.isTimerRunning,(FA=A.task)==null?void 0:FA.timerStartTime,(KA=A.task)==null?void 0:KA.timerElapsedTime]},()=>{Q()});const _=n.ref(!1);n.watch(()=>{var S;return(S=A.task)==null?void 0:S.isTimerRunning},S=>{_.value=!!S,!S&&p.value&&(clearInterval(p.value),p.value=null)},{immediate:!0}),n.watch([_,w,g],()=>{p.value&&(clearInterval(p.value),p.value=null),_.value&&w.value?(Q(),p.value=window.setInterval(Q,1e3)):Q()},{immediate:!0}),n.onUnmounted(()=>{p.value&&clearInterval(p.value)});const v=n.computed(()=>{var S;return((S=A.task)==null?void 0:S.type)==="story"?"yes-no-cancel":"confirm-cancel"}),U=n.computed(()=>{var S,FA,KA;return((S=A.task)==null?void 0:S.type)==="story"?a.value.confirmDeleteStory.replace("{name}",((FA=A.task)==null?void 0:FA.name)||""):a.value.confirmDeleteTask.replace("{name}",((KA=A.task)==null?void 0:KA.name)||"")}),M=n.reactive({id:0,name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0}),J=n.ref([]),Z=n.computed(()=>J.value.filter(S=>{var FA;return S.id!==((FA=A.task)==null?void 0:FA.id)&&(S.type==="story"||S.type==="task")}).map(S=>({...S,displayName:`${S.name} (${Y(S.type||"task")})`}))),Y=S=>{var FA;return((FA=a.value.taskTypeMap)==null?void 0:FA[S])||S},G=n.computed(()=>({"--progress-percent":`${M.progress||0}%`})),P=n.ref("0"),z=S=>{const FA=S.target;let KA=FA.value;KA=KA.replace(/[^\d]/g,""),FA.value=KA,P.value=KA},fA=()=>{const S=P.value;let FA=parseInt(S)||0;FA<0||isNaN(FA)?FA=0:FA>100&&(FA=100),M.progress=FA,P.value=FA.toString()},I=S=>{const FA=S.target;let KA=parseFloat(FA.value);isNaN(KA)||KA<0?KA=0:KA>99999&&(KA=99999),M.estimatedHours=Math.round(KA*100)/100},x=S=>{const FA=S.target;let KA=parseFloat(FA.value);isNaN(KA)||KA<0?KA=0:KA>99999&&(KA=99999),M.actualHours=Math.round(KA*100)/100},R=S=>{const FA=S.target;setTimeout(()=>{FA.select()},0)},k=S=>{const FA=S.key,KA=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Meta","Alt","Shift"],GA=/^\d$/.test(FA),$A=KA.includes(FA);S.ctrlKey||S.metaKey||!GA&&!$A&&S.preventDefault()},X=(S,FA)=>{if(!S)return"";if(typeof S=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(S.trim())){if(FA==="start")return`${S} 00:00`;if(FA==="end"){const KA=new Date(S);KA.setDate(KA.getDate()+1);const GA=KA.getFullYear(),$A=String(KA.getMonth()+1).padStart(2,"0"),ee=String(KA.getDate()).padStart(2,"0");return`${GA}-${$A}-${ee} 00:00`}}return S},$=n.reactive({name:"",type:"",startDate:"",endDate:""});n.watch(()=>A.visible,S=>{if(l.value=S,S){if(j(),A.task&&A.isEdit){const FA={...A.task};FA.startDate=X(FA.startDate,"start"),FA.endDate=X(FA.endDate,"end"),Object.assign(M,FA)}else A.task&&!A.isEdit&&(M.parentId=A.task.parentId??void 0,M.predecessor=A.task.predecessor??[]);window.dispatchEvent(new CustomEvent("request-task-list"))}}),n.watch(l,S=>{r("update:visible",S)}),n.watch(()=>A.task,S=>{S&&!A.isEdit&&(M.parentId=S.parentId??void 0)},{immediate:!0});const j=()=>{Object.assign(M,{name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0}),Object.keys($).forEach(S=>{$[S]=""})},V=()=>{var FA;let S=!0;return Object.keys($).forEach(KA=>{$[KA]=""}),(FA=M.name)!=null&&FA.trim()?M.name.length>50&&($.name=a.value.taskNameTooLong,S=!1):($.name=a.value.taskNameRequired,S=!1),M.type||($.type=a.value.taskTypeRequired,S=!1),M.startDate||($.startDate=a.value.startDateRequired,S=!1),M.endDate?M.startDate&&new Date(M.endDate)<new Date(M.startDate)&&($.endDate=a.value.endDateInvalid,S=!1):($.endDate=a.value.endDateRequired,S=!1),S},AA=()=>{l.value=!1,r("close")},sA=()=>{AA()},DA=async()=>{if(V())try{o.value=!0;const S={...M,id:A.isEdit&&A.task?A.task.id:Date.now()};r("submit",S),AA()}catch{}finally{o.value=!1}},F=()=>{u.value=!0},D=S=>{let FA="";S&&typeof S=="object"&&"message"in S&&typeof S.message=="string"?FA=S.message:FA=String(S),i(FA,"error",{closable:!0})},T=()=>{if(u.value=!1,A.task&&A.isEdit)try{o.value=!0,r("delete",A.task),AA()}catch(S){D(S)}finally{o.value=!1}},K=()=>{u.value=!1},eA=()=>{if(u.value=!1,A.task&&A.isEdit)try{o.value=!0,r("delete",A.task,!0),AA()}catch(S){D(S)}finally{o.value=!1}},uA=()=>{if(u.value=!1,A.task&&A.isEdit)try{o.value=!0,r("delete",A.task,!1),AA()}catch(S){D(S)}finally{o.value=!1}},dA=S=>{J.value=S.detail||[]};n.onMounted(()=>{window.addEventListener("task-list-updated",dA),window.dispatchEvent(new CustomEvent("request-task-list"))}),n.onUnmounted(()=>{window.removeEventListener("task-list-updated",dA)}),n.watch(()=>M.progress,S=>{P.value=(S||0).toString()},{immediate:!0}),n.watch(()=>A.visible,S=>{S&&A.task&&A.task.type!=="story"&&(d.value=A.task.timerElapsedTime||0,A.task.isTimerRunning||p.value&&(clearInterval(p.value),p.value=null))},{immediate:!0});const lA=S=>{const FA=Date.now();A.task&&typeof A.task=="object"&&(Object.assign(A.task,{timerStartTime:FA,isTimerRunning:!0,timerElapsedTime:0,timerStartDesc:S||""}),r("start-timer",A.task)),d.value=0,_.value=!0,Q(),p.value&&(clearInterval(p.value),p.value=null),window.dispatchEvent(new CustomEvent("start-timer",{detail:A.task}))},WA=()=>{A.task&&typeof A.task=="object"&&r("stop-timer",A.task),_.value=!1,p.value&&(clearInterval(p.value),p.value=null),Q(),window.dispatchEvent(new CustomEvent("stop-timer",{detail:A.task}))},NA=n.ref(!1),JA=n.ref("");function jA(){var S;JA.value=((S=A.task)==null?void 0:S.name)||"",NA.value=!0}function de(){NA.value=!1}function UA(S){NA.value=!1,lA(S)}return(S,FA)=>{var KA,GA,$A,ee;return n.openBlock(),n.createElementBlock(n.Fragment,null,[l.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"drawer-overlay",onClick:sA},[n.createElementVNode("div",{class:"drawer-container",onClick:FA[12]||(FA[12]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("div",IB,[n.createElementVNode("h3",NB,n.toDisplayString(S.isEdit?n.unref(a).editTask:n.unref(a).newTask),1),((KA=A.task)==null?void 0:KA.type)!=="story"&&S.isEdit?(n.openBlock(),n.createElementBlock("div",TB,[_.value?(n.openBlock(),n.createElementBlock("button",{key:1,class:"timer-btn stop minimal",title:"停止计时",style:{width:"24px",height:"24px",background:"#f44336",border:"none",padding:"0",margin:"0","box-shadow":"none",cursor:"pointer","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center",transition:"background 0.2s"},onClick:n.withModifiers(WA,["stop"])},FA[14]||(FA[14]=[n.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[n.createElementVNode("circle",{cx:"12",cy:"12",r:"11",stroke:"#f44336","stroke-width":"2",fill:"#f44336"}),n.createElementVNode("rect",{x:"7",y:"7",width:"10",height:"10",fill:"#fff",rx:"1.5"})],-1)]))):(n.openBlock(),n.createElementBlock("button",{key:0,class:"timer-btn start minimal",title:"开始计时",style:{width:"24px",height:"24px",background:"#4caf50",border:"none",padding:"0",margin:"0","box-shadow":"none",cursor:"pointer","border-radius":"50%",display:"flex","align-items":"center","justify-content":"center",transition:"background 0.2s"},onClick:n.withModifiers(jA,["stop"])},[(n.openBlock(),n.createElementBlock("svg",HB,FA[13]||(FA[13]=[n.createElementVNode("circle",{cx:"12",cy:"12",r:"11",stroke:"#4caf50","stroke-width":"2",fill:"#4caf50"},null,-1),n.createElementVNode("polygon",{points:"9,7 18,12 9,17",fill:"#fff"},null,-1)])))])),_.value?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(["timer-badge",{"timer-active":_.value}]),style:{"margin-left":"8px","font-size":"13px","font-weight":"700",padding:"2px 10px","border-radius":"10px",background:"#fffbe6",color:"#e6a23c","box-shadow":"0 0 0 1px #ffe58f",display:"inline-flex","align-items":"center","min-width":"80px","justify-content":"center"}},[_.value?(n.openBlock(),n.createElementBlock("span",_B)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(y.value),1)],2)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),FA[16]||(FA[16]=n.createElementVNode("div",{style:{flex:"1"}},null,-1)),n.createElementVNode("button",{class:"drawer-close-btn",type:"button",onClick:AA},[(n.openBlock(),n.createElementBlock("svg",MB,FA[15]||(FA[15]=[n.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),n.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])))])]),n.createElementVNode("div",PB,[n.createElementVNode("form",{class:"task-form",onSubmit:n.withModifiers(DA,["prevent"])},[n.createElementVNode("div",OB,[n.createElementVNode("label",RB,[n.createTextVNode(n.toDisplayString(n.unref(a).taskName)+" ",1),FA[17]||(FA[17]=n.createElementVNode("span",{class:"required"},"*",-1))]),n.withDirectives(n.createElementVNode("input",{id:"task-name","onUpdate:modelValue":FA[0]||(FA[0]=RA=>M.name=RA),type:"text",class:n.normalizeClass(["form-input",{error:$.name}]),placeholder:n.unref(a).taskNamePlaceholder},null,10,VB),[[n.vModelText,M.name]]),$.name?(n.openBlock(),n.createElementBlock("span",KB,n.toDisplayString($.name),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",GB,[n.createElementVNode("label",jB,[n.createTextVNode(n.toDisplayString(n.unref(a).taskType)+" ",1),FA[18]||(FA[18]=n.createElementVNode("span",{class:"required"},"*",-1))]),n.withDirectives(n.createElementVNode("select",{id:"task-type","onUpdate:modelValue":FA[1]||(FA[1]=RA=>M.type=RA),class:n.normalizeClass(["form-select",{error:$.type}])},[n.createElementVNode("option",qB,n.toDisplayString(n.unref(a).taskTypeMap.story),1),n.createElementVNode("option",WB,n.toDisplayString(n.unref(a).taskTypeMap.task),1),n.createElementVNode("option",YB,n.toDisplayString(n.unref(a).taskTypeMap.bug),1)],2),[[n.vModelSelect,M.type]]),$.type?(n.openBlock(),n.createElementBlock("span",zB,n.toDisplayString($.type),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",$B,[n.createElementVNode("label",XB,n.toDisplayString(n.unref(a).assignee),1),n.withDirectives(n.createElementVNode("select",{id:"task-assignee","onUpdate:modelValue":FA[2]||(FA[2]=RA=>M.assignee=RA),class:"form-select"},[n.createElementVNode("option",JB,n.toDisplayString(n.unref(a).selectAssignee),1),FA[19]||(FA[19]=n.createStaticVNode('<option value="张三" data-v-ff152aa8>张三</option><option value="李四" data-v-ff152aa8>李四</option><option value="王五" data-v-ff152aa8>王五</option><option value="赵六" data-v-ff152aa8>赵六</option><option value="钱七" data-v-ff152aa8>钱七</option>',5))],512),[[n.vModelSelect,M.assignee]])]),n.createElementVNode("div",ZB,[n.createElementVNode("label",A2,n.toDisplayString(n.unref(a).parentTask),1),n.withDirectives(n.createElementVNode("select",{id:"task-parent","onUpdate:modelValue":FA[3]||(FA[3]=RA=>M.parentId=RA),class:"form-select"},[n.createElementVNode("option",e2,n.toDisplayString(n.unref(a).noParentTask),1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Z.value,RA=>(n.openBlock(),n.createElementBlock("option",{key:RA.id,value:RA.id},n.toDisplayString(RA.displayName),9,t2))),128))],512),[[n.vModelSelect,M.parentId]])]),n.createElementVNode("div",r2,[n.createElementVNode("div",n2,[n.createElementVNode("label",a2,[n.createTextVNode(n.toDisplayString(n.unref(a).startDate)+" ",1),FA[20]||(FA[20]=n.createElementVNode("span",{class:"required"},"*",-1))]),n.createVNode(hc,{id:"task-start-date",modelValue:M.startDate,"onUpdate:modelValue":FA[4]||(FA[4]=RA=>M.startDate=RA),type:"date",placeholder:n.unref(a).startDateRequired,class:n.normalizeClass({error:$.startDate})},null,8,["modelValue","placeholder","class"]),$.startDate?(n.openBlock(),n.createElementBlock("span",i2,n.toDisplayString($.startDate),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",s2,[n.createElementVNode("label",o2,[n.createTextVNode(n.toDisplayString(n.unref(a).endDate)+" ",1),FA[21]||(FA[21]=n.createElementVNode("span",{class:"required"},"*",-1))]),n.createVNode(hc,{id:"task-end-date",modelValue:M.endDate,"onUpdate:modelValue":FA[5]||(FA[5]=RA=>M.endDate=RA),type:"date",placeholder:n.unref(a).endDateRequired,class:n.normalizeClass({error:$.endDate})},null,8,["modelValue","placeholder","class"]),$.endDate?(n.openBlock(),n.createElementBlock("span",l2,n.toDisplayString($.endDate),1)):n.createCommentVNode("",!0)])]),n.createVNode(DB,{modelValue:M.predecessor,"onUpdate:modelValue":FA[6]||(FA[6]=RA=>M.predecessor=RA),tasks:J.value,"current-task-id":(GA=A.task)==null?void 0:GA.id,label:n.unref(a).predecessor,placeholder:n.unref(a).predecessorPlaceholder},null,8,["modelValue","tasks","current-task-id","label","placeholder"]),n.createElementVNode("div",c2,[n.createElementVNode("div",u2,[n.createElementVNode("label",f2,n.toDisplayString(n.unref(a).estimatedHours),1),n.withDirectives(n.createElementVNode("input",{id:"task-estimated-hours","onUpdate:modelValue":FA[7]||(FA[7]=RA=>M.estimatedHours=RA),type:"number",class:"form-input",placeholder:"0.00",min:"0",max:"99999",step:"0.01",onInput:I},null,544),[[n.vModelText,M.estimatedHours]])]),n.createElementVNode("div",d2,[n.createElementVNode("label",h2,n.toDisplayString(n.unref(a).actualHours),1),n.withDirectives(n.createElementVNode("input",{id:"task-actual-hours","onUpdate:modelValue":FA[8]||(FA[8]=RA=>M.actualHours=RA),type:"number",class:"form-input",placeholder:"0.00",min:"0",max:"99999",step:"0.01",onInput:x},null,544),[[n.vModelText,M.actualHours]])])]),n.createElementVNode("div",g2,[n.createElementVNode("label",p2,n.toDisplayString(n.unref(a).progress),1),n.createElementVNode("div",B2,[n.withDirectives(n.createElementVNode("input",{id:"task-progress","onUpdate:modelValue":FA[9]||(FA[9]=RA=>M.progress=RA),type:"range",class:"progress-slider",style:n.normalizeStyle(G.value),min:"0",max:"100",step:"5"},null,4),[[n.vModelText,M.progress,void 0,{number:!0}]]),n.createElementVNode("div",m2,[n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":FA[10]||(FA[10]=RA=>P.value=RA),type:"text",class:"progress-input",placeholder:"0",maxlength:"3",onBlur:fA,onKeyup:n.withKeys(fA,["enter"]),onInput:z,onFocus:R,onKeydown:k},null,544),[[n.vModelText,P.value]]),FA[22]||(FA[22]=n.createElementVNode("span",{class:"progress-unit"},"%",-1))])])]),n.createElementVNode("div",w2,[n.createElementVNode("label",v2,n.toDisplayString(n.unref(a).description),1),n.withDirectives(n.createElementVNode("textarea",{id:"task-description","onUpdate:modelValue":FA[11]||(FA[11]=RA=>M.description=RA),class:"form-textarea",placeholder:n.unref(a).descriptionPlaceholder,rows:"3"},null,8,y2),[[n.vModelText,M.description]])])],32)]),n.createElementVNode("div",C2,[n.createElementVNode("div",b2,[S.isEdit&&S.task?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:"btn btn-danger",disabled:o.value,onClick:F},[o.value?(n.openBlock(),n.createElementBlock("span",Q2)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(n.unref(a).delete),1)],8,F2)):n.createCommentVNode("",!0),n.createVNode(zc,{visible:u.value,title:n.unref(a).delete,type:v.value,message:U.value,"confirm-text":n.unref(a).confirm,"cancel-text":n.unref(a).cancel,"yes-text":n.unref(a).storyDeleteYes,"no-text":n.unref(a).storyDeleteNo,onConfirm:T,onYes:eA,onNo:uA,onCancel:K},null,8,["visible","title","type","message","confirm-text","cancel-text","yes-text","no-text"])]),n.createElementVNode("div",E2,[n.createElementVNode("button",{type:"button",class:"btn btn-default",onClick:AA},n.toDisplayString(n.unref(a).cancel),1),n.createElementVNode("button",{type:"button",class:"btn btn-primary",disabled:o.value,onClick:DA},[o.value?(n.openBlock(),n.createElementBlock("span",L2)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(S.isEdit?n.unref(a).update:n.unref(a).create),1)],8,U2)])])])])):n.createCommentVNode("",!0),NA.value?(n.openBlock(),n.createBlock(id,{key:1,visible:NA.value,title:"确认开始计时",message:`即将为任务${($A=A.task)==null?void 0:$A.name}计时,若有特殊说明请完善下面的描述`,"default-desc":((ee=A.task)==null?void 0:ee.name)||"",onConfirm:UA,onCancel:de},null,8,["visible","message","default-desc"])):n.createCommentVNode("",!0)],64)}}}),dd=or(k2,[["__scopeId","data-v-ff152aa8"]]);function ze(t){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(t)}var zt=Uint8Array,pr=Uint16Array,Xc=Int32Array,Go=new zt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jo=new zt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gc=new zt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hd=function(t,e){for(var A=new pr(31),r=0;r<31;++r)A[r]=e+=1<<t[r-1];for(var a=new Xc(A[30]),r=1;r<30;++r)for(var i=A[r];i<A[r+1];++i)a[i]=i-A[r]<<5|r;return{b:A,r:a}},gd=hd(Go,2),pd=gd.b,pc=gd.r;pd[28]=258,pc[258]=28;var Bd=hd(jo,0),x2=Bd.b,Pu=Bd.r,Bc=new pr(32768);for(var it=0;it<32768;++it){var Rn=(it&43690)>>1|(it&21845)<<1;Rn=(Rn&52428)>>2|(Rn&13107)<<2,Rn=(Rn&61680)>>4|(Rn&3855)<<4,Bc[it]=((Rn&65280)>>8|(Rn&255)<<8)>>1}var Zr=function(t,e,A){for(var r=t.length,a=0,i=new pr(e);a<r;++a)t[a]&&++i[t[a]-1];var o=new pr(e);for(a=1;a<e;++a)o[a]=o[a-1]+i[a-1]<<1;var l;if(A){l=new pr(1<<e);var u=15-e;for(a=0;a<r;++a)if(t[a])for(var d=a<<4|t[a],p=e-t[a],B=o[t[a]-1]++<<p,w=B|(1<<p)-1;B<=w;++B)l[Bc[B]>>u]=d}else for(l=new pr(r),a=0;a<r;++a)t[a]&&(l[a]=Bc[o[t[a]-1]++]>>15-t[a]);return l},Jn=new zt(288);for(var it=0;it<144;++it)Jn[it]=8;for(var it=144;it<256;++it)Jn[it]=9;for(var it=256;it<280;++it)Jn[it]=7;for(var it=280;it<288;++it)Jn[it]=8;var os=new zt(32);for(var it=0;it<32;++it)os[it]=5;var S2=Zr(Jn,9,0),D2=Zr(Jn,9,1),I2=Zr(os,5,0),N2=Zr(os,5,1),Tl=function(t){for(var e=t[0],A=1;A<t.length;++A)t[A]>e&&(e=t[A]);return e},Hr=function(t,e,A){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(e&7)&A},Hl=function(t,e){var A=e/8|0;return(t[A]|t[A+1]<<8|t[A+2]<<16)>>(e&7)},Jc=function(t){return(t+7)/8|0},md=function(t,e,A){return(A==null||A>t.length)&&(A=t.length),new zt(t.subarray(e,A))},T2=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Pr=function(t,e,A){var r=new Error(e||T2[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,Pr),!A)throw r;return r},H2=function(t,e,A,r){var a=t.length,i=0;if(!a||e.f&&!e.l)return A||new zt(0);var o=!A,l=o||e.i!=2,u=e.i;o&&(A=new zt(a*3));var d=function(NA){var JA=A.length;if(NA>JA){var jA=new zt(Math.max(JA*2,NA));jA.set(A),A=jA}},p=e.f||0,B=e.p||0,w=e.b||0,g=e.l,y=e.d,Q=e.m,_=e.n,v=a*8;do{if(!g){p=Hr(t,B,1);var U=Hr(t,B+1,3);if(B+=3,U)if(U==1)g=D2,y=N2,Q=9,_=5;else if(U==2){var Y=Hr(t,B,31)+257,G=Hr(t,B+10,15)+4,P=Y+Hr(t,B+5,31)+1;B+=14;for(var z=new zt(P),fA=new zt(19),I=0;I<G;++I)fA[gc[I]]=Hr(t,B+I*3,7);B+=G*3;for(var x=Tl(fA),R=(1<<x)-1,k=Zr(fA,x,1),I=0;I<P;){var X=k[Hr(t,B,R)];B+=X&15;var M=X>>4;if(M<16)z[I++]=M;else{var $=0,j=0;for(M==16?(j=3+Hr(t,B,3),B+=2,$=z[I-1]):M==17?(j=3+Hr(t,B,7),B+=3):M==18&&(j=11+Hr(t,B,127),B+=7);j--;)z[I++]=$}}var V=z.subarray(0,Y),AA=z.subarray(Y);Q=Tl(V),_=Tl(AA),g=Zr(V,Q,1),y=Zr(AA,_,1)}else Pr(1);else{var M=Jc(B)+4,J=t[M-4]|t[M-3]<<8,Z=M+J;if(Z>a){u&&Pr(0);break}l&&d(w+J),A.set(t.subarray(M,Z),w),e.b=w+=J,e.p=B=Z*8,e.f=p;continue}if(B>v){u&&Pr(0);break}}l&&d(w+131072);for(var sA=(1<<Q)-1,DA=(1<<_)-1,F=B;;F=B){var $=g[Hl(t,B)&sA],D=$>>4;if(B+=$&15,B>v){u&&Pr(0);break}if($||Pr(2),D<256)A[w++]=D;else if(D==256){F=B,g=null;break}else{var T=D-254;if(D>264){var I=D-257,K=Go[I];T=Hr(t,B,(1<<K)-1)+pd[I],B+=K}var eA=y[Hl(t,B)&DA],uA=eA>>4;eA||Pr(3),B+=eA&15;var AA=x2[uA];if(uA>3){var K=jo[uA];AA+=Hl(t,B)&(1<<K)-1,B+=K}if(B>v){u&&Pr(0);break}l&&d(w+131072);var dA=w+T;if(w<AA){var lA=i-AA,WA=Math.min(AA,dA);for(lA+w<0&&Pr(3);w<WA;++w)A[w]=r[lA+w]}for(;w<dA;++w)A[w]=A[w-AA]}}e.l=g,e.p=F,e.b=w,e.f=p,g&&(p=1,e.m=Q,e.d=y,e.n=_)}while(!p);return w!=A.length&&o?md(A,0,w):A.subarray(0,w)},Bn=function(t,e,A){A<<=e&7;var r=e/8|0;t[r]|=A,t[r+1]|=A>>8},Ki=function(t,e,A){A<<=e&7;var r=e/8|0;t[r]|=A,t[r+1]|=A>>8,t[r+2]|=A>>16},_l=function(t,e){for(var A=[],r=0;r<t.length;++r)t[r]&&A.push({s:r,f:t[r]});var a=A.length,i=A.slice();if(!a)return{t:vd,l:0};if(a==1){var o=new zt(A[0].s+1);return o[A[0].s]=1,{t:o,l:1}}A.sort(function(Z,Y){return Z.f-Y.f}),A.push({s:-1,f:25001});var l=A[0],u=A[1],d=0,p=1,B=2;for(A[0]={s:-1,f:l.f+u.f,l,r:u};p!=a-1;)l=A[A[d].f<A[B].f?d++:B++],u=A[d!=p&&A[d].f<A[B].f?d++:B++],A[p++]={s:-1,f:l.f+u.f,l,r:u};for(var w=i[0].s,r=1;r<a;++r)i[r].s>w&&(w=i[r].s);var g=new pr(w+1),y=mc(A[p-1],g,0);if(y>e){var r=0,Q=0,_=y-e,v=1<<_;for(i.sort(function(Y,G){return g[G.s]-g[Y.s]||Y.f-G.f});r<a;++r){var U=i[r].s;if(g[U]>e)Q+=v-(1<<y-g[U]),g[U]=e;else break}for(Q>>=_;Q>0;){var M=i[r].s;g[M]<e?Q-=1<<e-g[M]++-1:++r}for(;r>=0&&Q;--r){var J=i[r].s;g[J]==e&&(--g[J],++Q)}y=e}return{t:new zt(g),l:y}},mc=function(t,e,A){return t.s==-1?Math.max(mc(t.l,e,A+1),mc(t.r,e,A+1)):e[t.s]=A},Ou=function(t){for(var e=t.length;e&&!t[--e];);for(var A=new pr(++e),r=0,a=t[0],i=1,o=function(u){A[r++]=u},l=1;l<=e;++l)if(t[l]==a&&l!=e)++i;else{if(!a&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(a),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(a);i=1,a=t[l]}return{c:A.subarray(0,r),n:e}},Gi=function(t,e){for(var A=0,r=0;r<e.length;++r)A+=t[r]*e[r];return A},wd=function(t,e,A){var r=A.length,a=Jc(e+2);t[a]=r&255,t[a+1]=r>>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var i=0;i<r;++i)t[a+i+4]=A[i];return(a+4+r)*8},Ru=function(t,e,A,r,a,i,o,l,u,d,p){Bn(e,p++,A),++a[256];for(var B=_l(a,15),w=B.t,g=B.l,y=_l(i,15),Q=y.t,_=y.l,v=Ou(w),U=v.c,M=v.n,J=Ou(Q),Z=J.c,Y=J.n,G=new pr(19),P=0;P<U.length;++P)++G[U[P]&31];for(var P=0;P<Z.length;++P)++G[Z[P]&31];for(var z=_l(G,7),fA=z.t,I=z.l,x=19;x>4&&!fA[gc[x-1]];--x);var R=d+5<<3,k=Gi(a,Jn)+Gi(i,os)+o,X=Gi(a,w)+Gi(i,Q)+o+14+3*x+Gi(G,fA)+2*G[16]+3*G[17]+7*G[18];if(u>=0&&R<=k&&R<=X)return wd(e,p,t.subarray(u,u+d));var $,j,V,AA;if(Bn(e,p,1+(X<k)),p+=2,X<k){$=Zr(w,g,0),j=w,V=Zr(Q,_,0),AA=Q;var sA=Zr(fA,I,0);Bn(e,p,M-257),Bn(e,p+5,Y-1),Bn(e,p+10,x-4),p+=14;for(var P=0;P<x;++P)Bn(e,p+3*P,fA[gc[P]]);p+=3*x;for(var DA=[U,Z],F=0;F<2;++F)for(var D=DA[F],P=0;P<D.length;++P){var T=D[P]&31;Bn(e,p,sA[T]),p+=fA[T],T>15&&(Bn(e,p,D[P]>>5&127),p+=D[P]>>12)}}else $=S2,j=Jn,V=I2,AA=os;for(var P=0;P<l;++P){var K=r[P];if(K>255){var T=K>>18&31;Ki(e,p,$[T+257]),p+=j[T+257],T>7&&(Bn(e,p,K>>23&31),p+=Go[T]);var eA=K&31;Ki(e,p,V[eA]),p+=AA[eA],eA>3&&(Ki(e,p,K>>5&8191),p+=jo[eA])}else Ki(e,p,$[K]),p+=j[K]}return Ki(e,p,$[256]),p+j[256]},_2=new Xc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vd=new zt(0),M2=function(t,e,A,r,a,i){var o=i.z||t.length,l=new zt(r+o+5*(1+Math.ceil(o/7e3))+a),u=l.subarray(r,l.length-a),d=i.l,p=(i.r||0)&7;if(e){p&&(u[0]=i.r>>3);for(var B=_2[e-1],w=B>>13,g=B&8191,y=(1<<A)-1,Q=i.p||new pr(32768),_=i.h||new pr(y+1),v=Math.ceil(A/3),U=2*v,M=function(de){return(t[de]^t[de+1]<<v^t[de+2]<<U)&y},J=new Xc(25e3),Z=new pr(288),Y=new pr(32),G=0,P=0,z=i.i||0,fA=0,I=i.w||0,x=0;z+2<o;++z){var R=M(z),k=z&32767,X=_[R];if(Q[k]=X,_[R]=k,I<=z){var $=o-z;if((G>7e3||fA>24576)&&($>423||!d)){p=Ru(t,u,0,J,Z,Y,P,fA,x,z-x,p),fA=G=P=0,x=z;for(var j=0;j<286;++j)Z[j]=0;for(var j=0;j<30;++j)Y[j]=0}var V=2,AA=0,sA=g,DA=k-X&32767;if($>2&&R==M(z-DA))for(var F=Math.min(w,$)-1,D=Math.min(32767,z),T=Math.min(258,$);DA<=D&&--sA&&k!=X;){if(t[z+V]==t[z+V-DA]){for(var K=0;K<T&&t[z+K]==t[z+K-DA];++K);if(K>V){if(V=K,AA=DA,K>F)break;for(var eA=Math.min(DA,K-2),uA=0,j=0;j<eA;++j){var dA=z-DA+j&32767,lA=Q[dA],WA=dA-lA&32767;WA>uA&&(uA=WA,X=dA)}}}k=X,X=Q[k],DA+=k-X&32767}if(AA){J[fA++]=268435456|pc[V]<<18|Pu[AA];var NA=pc[V]&31,JA=Pu[AA]&31;P+=Go[NA]+jo[JA],++Z[257+NA],++Y[JA],I=z+V,++G}else J[fA++]=t[z],++Z[t[z]]}}for(z=Math.max(z,I);z<o;++z)J[fA++]=t[z],++Z[t[z]];p=Ru(t,u,d,J,Z,Y,P,fA,x,z-x,p),d||(i.r=p&7|u[p/8|0]<<3,p-=7,i.h=_,i.p=Q,i.i=z,i.w=I)}else{for(var z=i.w||0;z<o+d;z+=65535){var jA=z+65535;jA>=o&&(u[p/8|0]=d,jA=o),p=wd(u,p+1,t.subarray(z,jA))}i.i=o}return md(l,0,r+Jc(p)+a)},yd=function(){var t=1,e=0;return{p:function(A){for(var r=t,a=e,i=A.length|0,o=0;o!=i;){for(var l=Math.min(o+2655,i);o<l;++o)a+=r+=A[o];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}t=r,e=a},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},P2=function(t,e,A,r,a){if(!a&&(a={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),o=new zt(i.length+t.length);o.set(i),o.set(t,i.length),t=o,a.w=i.length}return M2(t,e.level==null?6:e.level,e.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,A,r,a)},Cd=function(t,e,A){for(;A;++e)t[e]=A,A>>>=8},O2=function(t,e){var A=e.level,r=A==0?0:A<6?1:A==9?3:2;if(t[0]=120,t[1]=r<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var a=yd();a.p(e.dictionary),Cd(t,2,a.d())}},R2=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Pr(6,"invalid zlib data"),(t[1]>>5&1)==1&&Pr(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function wc(t,e){e||(e={});var A=yd();A.p(t);var r=P2(t,e,e.dictionary?6:2,4);return O2(r,e),Cd(r,r.length-4,A.d()),r}function V2(t,e){return H2(t.subarray(R2(t),-4),{i:2},e,e)}var K2=typeof TextDecoder<"u"&&new TextDecoder,G2=0;try{K2.decode(vd,{stream:!0}),G2=1}catch{}/** @license
41
+ *
42
+ * jsPDF - PDF Document creation from JavaScript
43
+ * Version 3.0.1 Built on 2025-03-17T14:19:36.873Z
44
+ * CommitID 00000000
45
+ *
46
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
47
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
48
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
49
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
50
+ * 2010 Aaron Spike, https://github.com/acspike
51
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
52
+ * 2012 Pablo Hess, https://github.com/pablohess
53
+ * 2012 Florian Jenett, https://github.com/fjenett
54
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
55
+ * 2013 Youssef Beddad, https://github.com/lifof
56
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
57
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
58
+ * 2013 Jeremy Morel, https://github.com/jmorel
59
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
60
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
61
+ * 2014 James Makes, https://github.com/dollaruw
62
+ * 2014 Diego Casorran, https://github.com/diegocr
63
+ * 2014 Steven Spungin, https://github.com/Flamenco
64
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
65
+ *
66
+ * Permission is hereby granted, free of charge, to any person obtaining
67
+ * a copy of this software and associated documentation files (the
68
+ * "Software"), to deal in the Software without restriction, including
69
+ * without limitation the rights to use, copy, modify, merge, publish,
70
+ * distribute, sublicense, and/or sell copies of the Software, and to
71
+ * permit persons to whom the Software is furnished to do so, subject to
72
+ * the following conditions:
73
+ *
74
+ * The above copyright notice and this permission notice shall be
75
+ * included in all copies or substantial portions of the Software.
76
+ *
77
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
78
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
79
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
80
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
81
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
82
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
83
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
84
+ *
85
+ * Contributor(s):
86
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
87
+ * kim3er, mfo, alnorth, Flamenco
88
+ */var Ue=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Ml(){Ue.console&&typeof Ue.console.log=="function"&&Ue.console.log.apply(Ue.console,arguments)}var et={log:Ml,warn:function(t){Ue.console&&(typeof Ue.console.warn=="function"?Ue.console.warn.apply(Ue.console,arguments):Ml.call(null,arguments))},error:function(t){Ue.console&&(typeof Ue.console.error=="function"?Ue.console.error.apply(Ue.console,arguments):Ml(t))}};function Pl(t,e,A){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){da(r.response,e,A)},r.onerror=function(){et.error("could not download file")},r.send()}function Vu(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function zs(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var ts,vc,da=Ue.saveAs||((typeof window>"u"?"undefined":ze(window))!=="object"||window!==Ue?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,A){var r=Ue.URL||Ue.webkitURL,a=document.createElement("a");e=e||t.name||"download",a.download=e,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?Vu(a.href)?Pl(t,e,A):zs(a,a.target="_blank"):zs(a)):(a.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){zs(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,A){if(e=e||t.name||"download",typeof t=="string")if(Vu(t))Pl(t,e,A);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){zs(r)})}else navigator.msSaveOrOpenBlob(function(a,i){return i===void 0?i={autoBom:!1}:ze(i)!=="object"&&(et.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}(t,A),e)}:function(t,e,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Pl(t,e,A);var a=t.type==="application/octet-stream",i=/constructor/i.test(Ue.HTMLElement)||Ue.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&i)&&(typeof FileReader>"u"?"undefined":ze(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var p=l.result;p=o?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=p:location=p,r=null},l.readAsDataURL(t)}else{var u=Ue.URL||Ue.webkitURL,d=u.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});/**
89
+ * A class to parse color values
90
+ * @author Stoyan Stefanov <sstoo@gmail.com>
91
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
92
+ * @license Use it if you like it
93
+ */function bd(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<A.length;r++){var a=A[r].re,i=A[r].process,o=a.exec(t);o&&(e=i(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),u=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),d.length==1&&(d="0"+d),"#"+l+u+d}}/**
94
+ * @license
95
+ * Joseph Myers does not specify a particular license for his work.
96
+ *
97
+ * Author: Joseph Myers
98
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
99
+ *
100
+ * Modified by: Owen Leong
101
+ */function Ol(t,e){var A=t[0],r=t[1],a=t[2],i=t[3];A=Kt(A,r,a,i,e[0],7,-680876936),i=Kt(i,A,r,a,e[1],12,-389564586),a=Kt(a,i,A,r,e[2],17,606105819),r=Kt(r,a,i,A,e[3],22,-1044525330),A=Kt(A,r,a,i,e[4],7,-176418897),i=Kt(i,A,r,a,e[5],12,1200080426),a=Kt(a,i,A,r,e[6],17,-1473231341),r=Kt(r,a,i,A,e[7],22,-45705983),A=Kt(A,r,a,i,e[8],7,1770035416),i=Kt(i,A,r,a,e[9],12,-1958414417),a=Kt(a,i,A,r,e[10],17,-42063),r=Kt(r,a,i,A,e[11],22,-1990404162),A=Kt(A,r,a,i,e[12],7,1804603682),i=Kt(i,A,r,a,e[13],12,-40341101),a=Kt(a,i,A,r,e[14],17,-1502002290),A=Gt(A,r=Kt(r,a,i,A,e[15],22,1236535329),a,i,e[1],5,-165796510),i=Gt(i,A,r,a,e[6],9,-1069501632),a=Gt(a,i,A,r,e[11],14,643717713),r=Gt(r,a,i,A,e[0],20,-373897302),A=Gt(A,r,a,i,e[5],5,-701558691),i=Gt(i,A,r,a,e[10],9,38016083),a=Gt(a,i,A,r,e[15],14,-660478335),r=Gt(r,a,i,A,e[4],20,-405537848),A=Gt(A,r,a,i,e[9],5,568446438),i=Gt(i,A,r,a,e[14],9,-1019803690),a=Gt(a,i,A,r,e[3],14,-187363961),r=Gt(r,a,i,A,e[8],20,1163531501),A=Gt(A,r,a,i,e[13],5,-1444681467),i=Gt(i,A,r,a,e[2],9,-51403784),a=Gt(a,i,A,r,e[7],14,1735328473),A=jt(A,r=Gt(r,a,i,A,e[12],20,-1926607734),a,i,e[5],4,-378558),i=jt(i,A,r,a,e[8],11,-2022574463),a=jt(a,i,A,r,e[11],16,1839030562),r=jt(r,a,i,A,e[14],23,-35309556),A=jt(A,r,a,i,e[1],4,-1530992060),i=jt(i,A,r,a,e[4],11,1272893353),a=jt(a,i,A,r,e[7],16,-155497632),r=jt(r,a,i,A,e[10],23,-1094730640),A=jt(A,r,a,i,e[13],4,681279174),i=jt(i,A,r,a,e[0],11,-358537222),a=jt(a,i,A,r,e[3],16,-722521979),r=jt(r,a,i,A,e[6],23,76029189),A=jt(A,r,a,i,e[9],4,-640364487),i=jt(i,A,r,a,e[12],11,-421815835),a=jt(a,i,A,r,e[15],16,530742520),A=qt(A,r=jt(r,a,i,A,e[2],23,-995338651),a,i,e[0],6,-198630844),i=qt(i,A,r,a,e[7],10,1126891415),a=qt(a,i,A,r,e[14],15,-1416354905),r=qt(r,a,i,A,e[5],21,-57434055),A=qt(A,r,a,i,e[12],6,1700485571),i=qt(i,A,r,a,e[3],10,-1894986606),a=qt(a,i,A,r,e[10],15,-1051523),r=qt(r,a,i,A,e[1],21,-2054922799),A=qt(A,r,a,i,e[8],6,1873313359),i=qt(i,A,r,a,e[15],10,-30611744),a=qt(a,i,A,r,e[6],15,-1560198380),r=qt(r,a,i,A,e[13],21,1309151649),A=qt(A,r,a,i,e[4],6,-145523070),i=qt(i,A,r,a,e[11],10,-1120210379),a=qt(a,i,A,r,e[2],15,718787259),r=qt(r,a,i,A,e[9],21,-343485551),t[0]=qn(A,t[0]),t[1]=qn(r,t[1]),t[2]=qn(a,t[2]),t[3]=qn(i,t[3])}function qo(t,e,A,r,a,i){return e=qn(qn(e,t),qn(r,i)),qn(e<<a|e>>>32-a,A)}function Kt(t,e,A,r,a,i,o){return qo(e&A|~e&r,t,e,a,i,o)}function Gt(t,e,A,r,a,i,o){return qo(e&r|A&~r,t,e,a,i,o)}function jt(t,e,A,r,a,i,o){return qo(e^A^r,t,e,a,i,o)}function qt(t,e,A,r,a,i,o){return qo(A^(e|~r),t,e,a,i,o)}function Fd(t){var e,A=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)Ol(r,j2(t.substring(e-64,e)));t=t.substring(e-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)a[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(a[e>>2]|=128<<(e%4<<3),e>55)for(Ol(r,a),e=0;e<16;e++)a[e]=0;return a[14]=8*A,Ol(r,a),r}function j2(t){var e,A=[];for(e=0;e<64;e+=4)A[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return A}ts=Ue.atob.bind(Ue),vc=Ue.btoa.bind(Ue);var Ku="0123456789abcdef".split("");function q2(t){for(var e="",A=0;A<4;A++)e+=Ku[t>>8*A+4&15]+Ku[t>>8*A&15];return e}function W2(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function yc(t){return Fd(t).map(W2).join("")}var Y2=function(t){for(var e=0;e<t.length;e++)t[e]=q2(t[e]);return t.join("")}(Fd("hello"))!="5d41402abc4b2a76b9719d911017c592";function qn(t,e){if(Y2){var A=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(A>>16)<<16|65535&A}return t+e&4294967295}/**
102
+ * @license
103
+ * FPDF is released under a permissive license: there is no usage restriction.
104
+ * You may embed it freely in your application (commercial or not), with or
105
+ * without modifications.
106
+ *
107
+ * Reference: http://www.fpdf.org/en/script/script37.php
108
+ */function Cc(t,e){var A,r,a,i;if(t!==A){for(var o=(a=t,i=1+(256/t.length>>0),new Array(i+1).join(a)),l=[],u=0;u<256;u++)l[u]=u;var d=0;for(u=0;u<256;u++){var p=l[u];d=(d+p+o.charCodeAt(u))%256,l[u]=l[d],l[d]=p}A=t,r=l}else l=r;var B=e.length,w=0,g=0,y="";for(u=0;u<B;u++)g=(g+(p=l[w=(w+1)%256]))%256,l[w]=l[g],l[g]=p,o=l[(l[w]+l[g])%256],y+=String.fromCharCode(e.charCodeAt(u)^o);return y}/**
109
+ * @license
110
+ * Licensed under the MIT License.
111
+ * http://opensource.org/licenses/mit-license
112
+ * Author: Owen Leong (@owenl131)
113
+ * Date: 15 Oct 2020
114
+ * References:
115
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
116
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
117
+ * http://www.fpdf.org/en/script/script37.php
118
+ */var Gu={print:4,modify:8,copy:16,"annot-forms":32};function Ai(t,e,A,r){this.v=1,this.r=2;var a=192;t.forEach(function(l){if(Gu.perm!==void 0)throw new Error("Invalid permission: "+l);a+=Gu[l]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(e+this.padding).substr(0,32),o=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^a)),this.encryptionKey=yc(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Cc(this.encryptionKey,this.padding)}function ei(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",A=t.length,r=0;r<A;r++){var a=t.charCodeAt(r);a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?e+="#"+("0"+a.toString(16)).slice(-2):e+=t[r]}return e}function ju(t){if(ze(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(A,r,a){if(a=a||!1,typeof A!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(A)||(e[A]={});var i=Math.random().toString(35);return e[A][i]=[r,!!a],i},this.unsubscribe=function(A){for(var r in e)if(e[r][A])return delete e[r][A],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(A){if(e.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var i in e[A]){var o=e[A][i];try{o[0].apply(t,r)}catch(l){Ue.console&&et.error("jsPDF PubSub Error",l.message,l)}o[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Do(t){if(!(this instanceof Do))return new Do(t);var e="opacity,stroke-opacity".split(",");for(var A in t)t.hasOwnProperty(A)&&e.indexOf(A)>=0&&(this[A]=t[A]);this.id="",this.objectNumber=-1}function Qd(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function ha(t,e,A,r,a){if(!(this instanceof ha))return new ha(t,e,A,r,a);this.type=t==="axial"?2:3,this.coords=e,this.colors=A,Qd.call(this,r,a)}function ni(t,e,A,r,a){if(!(this instanceof ni))return new ni(t,e,A,r,a);this.boundingBox=t,this.xStep=e,this.yStep=A,this.stream="",this.cloneIndex=0,Qd.call(this,r,a)}function Ee(t){var e,A=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],i=arguments[3],o=[],l=1,u=16,d="S",p=null;ze(t=t||{})==="object"&&(A=t.orientation,r=t.unit||r,a=t.format||a,i=t.compress||t.compressPdf||i,(p=t.encryption||null)!==null&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(u=t.floatPrecision),d=t.defaultPathOperation||"S"),o=t.filters||(i===!0?["FlateEncode"]:o),r=r||"mm",A=(""+(A||"P")).toLowerCase();var B=t.putOnlyUsedFonts||!1,w={},g={internal:{},__private__:{}};g.__private__.PubSub=ju;var y="1.3",Q=g.__private__.getPdfVersion=function(){return y};g.__private__.setPdfVersion=function(f){y=f};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return _};var v=g.__private__.getPageFormat=function(f){return _[f]};a=a||"a4";var U={COMPAT:"compat",ADVANCED:"advanced"},M=U.COMPAT;function J(){this.saveGraphicsState(),S(new SA(pA,0,0,-pA,0,kn()*pA).toString()+" cm"),this.setFontSize(this.getFontSize()/pA),d="n",M=U.ADVANCED}function Z(){this.restoreGraphicsState(),d="S",M=U.COMPAT}var Y=g.__private__.combineFontStyleAndFontWeight=function(f,b){if(f=="bold"&&b=="normal"||f=="bold"&&b==400||f=="normal"&&b=="italic"||f=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(f=b==400||b==="normal"?f==="italic"?"italic":"normal":b!=700&&b!=="bold"||f!=="normal"?(b==700?"bold":b)+""+f:"bold"),f};g.advancedAPI=function(f){var b=M===U.COMPAT;return b&&J.call(this),typeof f!="function"||(f(this),b&&Z.call(this)),this},g.compatAPI=function(f){var b=M===U.ADVANCED;return b&&Z.call(this),typeof f!="function"||(f(this),b&&J.call(this)),this},g.isAdvancedAPI=function(){return M===U.ADVANCED};var G,P=function(f){if(M!==U.ADVANCED)throw new Error(f+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},z=g.roundToPrecision=g.__private__.roundToPrecision=function(f,b){var W=e||b;if(isNaN(f)||isNaN(W))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return f.toFixed(W).replace(/0+$/,"")};G=g.hpf=g.__private__.hpf=typeof u=="number"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return z(f,u)}:u==="smart"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return z(f,f>-1&&f<1?16:5)}:function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return z(f,16)};var fA=g.f2=g.__private__.f2=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f2");return z(f,2)},I=g.__private__.f3=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f3");return z(f,3)},x=g.scale=g.__private__.scale=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.scale");return M===U.COMPAT?f*pA:M===U.ADVANCED?f:void 0},R=function(f){return M===U.COMPAT?kn()-f:M===U.ADVANCED?f:void 0},k=function(f){return x(R(f))};g.__private__.setPrecision=g.setPrecision=function(f){typeof parseInt(f,10)=="number"&&(e=parseInt(f,10))};var X,$="00000000000000000000000000000000",j=g.__private__.getFileId=function(){return $},V=g.__private__.setFileId=function(f){return $=f!==void 0&&/^[a-fA-F0-9]{32}$/.test(f)?f.toUpperCase():$.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),p!==null&&(Rt=new Ai(p.userPermissions,p.userPassword,p.ownerPassword,$)),$};g.setFileId=function(f){return V(f),this},g.getFileId=function(){return j()};var AA=g.__private__.convertDateToPDFDate=function(f){var b=f.getTimezoneOffset(),W=b<0?"+":"-",rA=Math.floor(Math.abs(b/60)),mA=Math.abs(b%60),xA=[W,T(rA),"'",T(mA),"'"].join("");return["D:",f.getFullYear(),T(f.getMonth()+1),T(f.getDate()),T(f.getHours()),T(f.getMinutes()),T(f.getSeconds()),xA].join("")},sA=g.__private__.convertPDFDateToDate=function(f){var b=parseInt(f.substr(2,4),10),W=parseInt(f.substr(6,2),10)-1,rA=parseInt(f.substr(8,2),10),mA=parseInt(f.substr(10,2),10),xA=parseInt(f.substr(12,2),10),zA=parseInt(f.substr(14,2),10);return new Date(b,W,rA,mA,xA,zA,0)},DA=g.__private__.setCreationDate=function(f){var b;if(f===void 0&&(f=new Date),f instanceof Date)b=AA(f);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(f))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=f}return X=b},F=g.__private__.getCreationDate=function(f){var b=X;return f==="jsDate"&&(b=sA(X)),b};g.setCreationDate=function(f){return DA(f),this},g.getCreationDate=function(f){return F(f)};var D,T=g.__private__.padd2=function(f){return("0"+parseInt(f)).slice(-2)},K=g.__private__.padd2Hex=function(f){return("00"+(f=f.toString())).substr(f.length)},eA=0,uA=[],dA=[],lA=0,WA=[],NA=[],JA=!1,jA=dA,de=function(){eA=0,lA=0,dA=[],uA=[],WA=[],$t=Oe(),Pt=Oe()};g.__private__.setCustomOutputDestination=function(f){JA=!0,jA=f};var UA=function(f){JA||(jA=f)};g.__private__.resetCustomOutputDestination=function(){JA=!1,jA=dA};var S=g.__private__.out=function(f){return f=f.toString(),lA+=f.length+1,jA.push(f),jA},FA=g.__private__.write=function(f){return S(arguments.length===1?f.toString():Array.prototype.join.call(arguments," "))},KA=g.__private__.getArrayBuffer=function(f){for(var b=f.length,W=new ArrayBuffer(b),rA=new Uint8Array(W);b--;)rA[b]=f.charCodeAt(b);return W},GA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return GA};var $A=t.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(f){return $A=M===U.ADVANCED?f/pA:f,this};var ee,RA=g.__private__.getFontSize=g.getFontSize=function(){return M===U.COMPAT?$A:$A*pA},ne=t.R2L||!1;g.__private__.setR2L=g.setR2L=function(f){return ne=f,this},g.__private__.getR2L=g.getR2L=function(){return ne};var he,ve=g.__private__.setZoomMode=function(f){var b=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(f))ee=f;else if(isNaN(f)){if(b.indexOf(f)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+f+'" is not recognized.');ee=f}else ee=parseInt(f,10)};g.__private__.getZoomMode=function(){return ee};var be,Se=g.__private__.setPageMode=function(f){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(f)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+f+'" is not recognized.');he=f};g.__private__.getPageMode=function(){return he};var He=g.__private__.setLayoutMode=function(f){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(f)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+f+'" is not recognized.');be=f};g.__private__.getLayoutMode=function(){return be},g.__private__.setDisplayMode=g.setDisplayMode=function(f,b,W){return ve(f),He(b),Se(W),this};var me={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(f){if(Object.keys(me).indexOf(f)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return me[f]},g.__private__.getDocumentProperties=function(){return me},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(f){for(var b in me)me.hasOwnProperty(b)&&f[b]&&(me[b]=f[b]);return this},g.__private__.setDocumentProperty=function(f,b){if(Object.keys(me).indexOf(f)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return me[f]=b};var oA,pA,HA,qA,pe,te={},se={},hA=[],vA={},TA={},PA={},tA={},yA=null,QA=0,EA=[],_A=new ju(g),fe=t.hotfixes||[],Fe={},Ce={},Ae=[],SA=function f(b,W,rA,mA,xA,zA){if(!(this instanceof f))return new f(b,W,rA,mA,xA,zA);isNaN(b)&&(b=1),isNaN(W)&&(W=0),isNaN(rA)&&(rA=0),isNaN(mA)&&(mA=1),isNaN(xA)&&(xA=0),isNaN(zA)&&(zA=0),this._matrix=[b,W,rA,mA,xA,zA]};Object.defineProperty(SA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(SA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(SA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(SA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(SA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(SA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(SA.prototype,"a",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(SA.prototype,"b",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(SA.prototype,"c",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(SA.prototype,"d",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(SA.prototype,"e",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(SA.prototype,"f",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(SA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(SA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(SA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(SA.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),SA.prototype.join=function(f){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(G).join(f)},SA.prototype.multiply=function(f){var b=f.sx*this.sx+f.shy*this.shx,W=f.sx*this.shy+f.shy*this.sy,rA=f.shx*this.sx+f.sy*this.shx,mA=f.shx*this.shy+f.sy*this.sy,xA=f.tx*this.sx+f.ty*this.shx+this.tx,zA=f.tx*this.shy+f.ty*this.sy+this.ty;return new SA(b,W,rA,mA,xA,zA)},SA.prototype.decompose=function(){var f=this.sx,b=this.shy,W=this.shx,rA=this.sy,mA=this.tx,xA=this.ty,zA=Math.sqrt(f*f+b*b),le=(f/=zA)*W+(b/=zA)*rA;W-=f*le,rA-=b*le;var ye=Math.sqrt(W*W+rA*rA);return le/=ye,f*(rA/=ye)<b*(W/=ye)&&(f=-f,b=-b,le=-le,zA=-zA),{scale:new SA(zA,0,0,ye,0,0),translate:new SA(1,0,0,1,mA,xA),rotate:new SA(f,b,-b,f,0,0),skew:new SA(1,0,le,1,0,0)}},SA.prototype.toString=function(f){return this.join(" ")},SA.prototype.inversed=function(){var f=this.sx,b=this.shy,W=this.shx,rA=this.sy,mA=this.tx,xA=this.ty,zA=1/(f*rA-b*W),le=rA*zA,ye=-b*zA,Te=-W*zA,Ie=f*zA;return new SA(le,ye,Te,Ie,-le*mA-Te*xA,-ye*mA-Ie*xA)},SA.prototype.applyToPoint=function(f){var b=f.x*this.sx+f.y*this.shx+this.tx,W=f.x*this.shy+f.y*this.sy+this.ty;return new ka(b,W)},SA.prototype.applyToRectangle=function(f){var b=this.applyToPoint(f),W=this.applyToPoint(new ka(f.x+f.w,f.y+f.h));return new bi(b.x,b.y,W.x-b.x,W.y-b.y)},SA.prototype.clone=function(){var f=this.sx,b=this.shy,W=this.shx,rA=this.sy,mA=this.tx,xA=this.ty;return new SA(f,b,W,rA,mA,xA)},g.Matrix=SA;var Be=g.matrixMult=function(f,b){return b.multiply(f)},Me=new SA(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=Me;var qe=function(f,b){if(!TA[f]){var W=(b instanceof ha?"Sh":"P")+(Object.keys(vA).length+1).toString(10);b.id=W,TA[f]=W,vA[W]=b,_A.publish("addPattern",b)}};g.ShadingPattern=ha,g.TilingPattern=ni,g.addShadingPattern=function(f,b){return P("addShadingPattern()"),qe(f,b),this},g.beginTilingPattern=function(f){P("beginTilingPattern()"),Cs(f.boundingBox[0],f.boundingBox[1],f.boundingBox[2]-f.boundingBox[0],f.boundingBox[3]-f.boundingBox[1],f.matrix)},g.endTilingPattern=function(f,b){P("endTilingPattern()"),b.stream=NA[D].join(`
119
+ `),qe(f,b),_A.publish("endTilingPattern",b),Ae.pop().restore()};var Re=g.__private__.newObject=function(){var f=Oe();return dt(f,!0),f},Oe=g.__private__.newObjectDeferred=function(){return eA++,uA[eA]=function(){return lA},eA},dt=function(f,b){return b=typeof b=="boolean"&&b,uA[f]=lA,b&&S(f+" 0 obj"),f},cr=g.__private__.newAdditionalObject=function(){var f={objId:Oe(),content:""};return WA.push(f),f},$t=Oe(),Pt=Oe(),Pe=g.__private__.decodeColorString=function(f){var b=f.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length===5&&(b[4]==="k"||b[4]==="K")&&(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var W=parseFloat(b[0]);b=[W,W,W,"r"]}for(var rA="#",mA=0;mA<3;mA++)rA+=("0"+Math.floor(255*parseFloat(b[mA])).toString(16)).slice(-2);return rA},Lt=g.__private__.encodeColorString=function(f){var b;typeof f=="string"&&(f={ch1:f});var W=f.ch1,rA=f.ch2,mA=f.ch3,xA=f.ch4,zA=f.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof W=="string"&&W.charAt(0)!=="#"){var le=new bd(W);if(le.ok)W=le.toHex();else if(!/^\d*\.?\d*$/.test(W))throw new Error('Invalid color "'+W+'" passed to jsPDF.encodeColorString.')}if(typeof W=="string"&&/^#[0-9A-Fa-f]{3}$/.test(W)&&(W="#"+W[1]+W[1]+W[2]+W[2]+W[3]+W[3]),typeof W=="string"&&/^#[0-9A-Fa-f]{6}$/.test(W)){var ye=parseInt(W.substr(1),16);W=ye>>16&255,rA=ye>>8&255,mA=255&ye}if(rA===void 0||xA===void 0&&W===rA&&rA===mA)if(typeof W=="string")b=W+" "+zA[0];else switch(f.precision){case 2:b=fA(W/255)+" "+zA[0];break;case 3:default:b=I(W/255)+" "+zA[0]}else if(xA===void 0||ze(xA)==="object"){if(xA&&!isNaN(xA.a)&&xA.a===0)return b=["1.","1.","1.",zA[1]].join(" ");if(typeof W=="string")b=[W,rA,mA,zA[1]].join(" ");else switch(f.precision){case 2:b=[fA(W/255),fA(rA/255),fA(mA/255),zA[1]].join(" ");break;default:case 3:b=[I(W/255),I(rA/255),I(mA/255),zA[1]].join(" ")}}else if(typeof W=="string")b=[W,rA,mA,xA,zA[2]].join(" ");else switch(f.precision){case 2:b=[fA(W),fA(rA),fA(mA),fA(xA),zA[2]].join(" ");break;case 3:default:b=[I(W),I(rA),I(mA),I(xA),zA[2]].join(" ")}return b},Qt=g.__private__.getFilters=function(){return o},Ot=g.__private__.putStream=function(f){var b=(f=f||{}).data||"",W=f.filters||Qt(),rA=f.alreadyAppliedFilters||[],mA=f.addLength1||!1,xA=b.length,zA=f.objectId,le=function(Vt){return Vt};if(p!==null&&zA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");p!==null&&(le=Rt.encryptor(zA,0));var ye={};W===!0&&(W=["FlateEncode"]);var Te=f.additionalKeyValues||[],Ie=(ye=Ee.API.processDataByFilters!==void 0?Ee.API.processDataByFilters(b,W):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(rA)?rA.join(" "):rA.toString());if(ye.data.length!==0&&(Te.push({key:"Length",value:ye.data.length}),mA===!0&&Te.push({key:"Length1",value:xA})),Ie.length!=0)if(Ie.split("/").length-1==1)Te.push({key:"Filter",value:Ie});else{Te.push({key:"Filter",value:"["+Ie+"]"});for(var Ge=0;Ge<Te.length;Ge+=1)if(Te[Ge].key==="DecodeParms"){for(var lt=[],ct=0;ct<ye.reverseChain.split("/").length-1;ct+=1)lt.push("null");lt.push(Te[Ge].value),Te[Ge].value="["+lt.join(" ")+"]"}}S("<<");for(var yt=0;yt<Te.length;yt++)S("/"+Te[yt].key+" "+Te[yt].value);S(">>"),ye.data.length!==0&&(S("stream"),S(le(ye.data)),S("endstream"))},tr=g.__private__.putPage=function(f){var b=f.number,W=f.data,rA=f.objId,mA=f.contentsObjId;dt(rA,!0),S("<</Type /Page"),S("/Parent "+f.rootDictionaryObjId+" 0 R"),S("/Resources "+f.resourceDictionaryObjId+" 0 R"),S("/MediaBox ["+parseFloat(G(f.mediaBox.bottomLeftX))+" "+parseFloat(G(f.mediaBox.bottomLeftY))+" "+G(f.mediaBox.topRightX)+" "+G(f.mediaBox.topRightY)+"]"),f.cropBox!==null&&S("/CropBox ["+G(f.cropBox.bottomLeftX)+" "+G(f.cropBox.bottomLeftY)+" "+G(f.cropBox.topRightX)+" "+G(f.cropBox.topRightY)+"]"),f.bleedBox!==null&&S("/BleedBox ["+G(f.bleedBox.bottomLeftX)+" "+G(f.bleedBox.bottomLeftY)+" "+G(f.bleedBox.topRightX)+" "+G(f.bleedBox.topRightY)+"]"),f.trimBox!==null&&S("/TrimBox ["+G(f.trimBox.bottomLeftX)+" "+G(f.trimBox.bottomLeftY)+" "+G(f.trimBox.topRightX)+" "+G(f.trimBox.topRightY)+"]"),f.artBox!==null&&S("/ArtBox ["+G(f.artBox.bottomLeftX)+" "+G(f.artBox.bottomLeftY)+" "+G(f.artBox.topRightX)+" "+G(f.artBox.topRightY)+"]"),typeof f.userUnit=="number"&&f.userUnit!==1&&S("/UserUnit "+f.userUnit),_A.publish("putPage",{objId:rA,pageContext:EA[b],pageNumber:b,page:W}),S("/Contents "+mA+" 0 R"),S(">>"),S("endobj");var xA=W.join(`
120
+ `);return M===U.ADVANCED&&(xA+=`
121
+ Q`),dt(mA,!0),Ot({data:xA,filters:Qt(),objectId:mA}),S("endobj"),rA},xr=g.__private__.putPages=function(){var f,b,W=[];for(f=1;f<=QA;f++)EA[f].objId=Oe(),EA[f].contentsObjId=Oe();for(f=1;f<=QA;f++)W.push(tr({number:f,data:NA[f],objId:EA[f].objId,contentsObjId:EA[f].contentsObjId,mediaBox:EA[f].mediaBox,cropBox:EA[f].cropBox,bleedBox:EA[f].bleedBox,trimBox:EA[f].trimBox,artBox:EA[f].artBox,userUnit:EA[f].userUnit,rootDictionaryObjId:$t,resourceDictionaryObjId:Pt}));dt($t,!0),S("<</Type /Pages");var rA="/Kids [";for(b=0;b<QA;b++)rA+=W[b]+" 0 R ";S(rA+"]"),S("/Count "+QA),S(">>"),S("endobj"),_A.publish("postPutPages")},Cn=function(f){_A.publish("putFont",{font:f,out:S,newObject:Re,putStream:Ot}),f.isAlreadyPutted!==!0&&(f.objectNumber=Re(),S("<<"),S("/Type /Font"),S("/BaseFont /"+ei(f.postScriptName)),S("/Subtype /Type1"),typeof f.encoding=="string"&&S("/Encoding /"+f.encoding),S("/FirstChar 32"),S("/LastChar 255"),S(">>"),S("endobj"))},rn=function(){for(var f in te)te.hasOwnProperty(f)&&(B===!1||B===!0&&w.hasOwnProperty(f))&&Cn(te[f])},Sr=function(f){f.objectNumber=Re();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[G(f.x),G(f.y),G(f.x+f.width),G(f.y+f.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+f.matrix.toString()+"]"});var W=f.pages[1].join(`
122
+ `);Ot({data:W,additionalKeyValues:b,objectId:f.objectNumber}),S("endobj")},nn=function(){for(var f in Fe)Fe.hasOwnProperty(f)&&Sr(Fe[f])},ya=function(f,b){var W,rA=[],mA=1/(b-1);for(W=0;W<1;W+=mA)rA.push(W);if(rA.push(1),f[0].offset!=0){var xA={offset:0,color:f[0].color};f.unshift(xA)}if(f[f.length-1].offset!=1){var zA={offset:1,color:f[f.length-1].color};f.push(zA)}for(var le="",ye=0,Te=0;Te<rA.length;Te++){for(W=rA[Te];W>f[ye+1].offset;)ye++;var Ie=f[ye].offset,Ge=(W-Ie)/(f[ye+1].offset-Ie),lt=f[ye].color,ct=f[ye+1].color;le+=K(Math.round((1-Ge)*lt[0]+Ge*ct[0]).toString(16))+K(Math.round((1-Ge)*lt[1]+Ge*ct[1]).toString(16))+K(Math.round((1-Ge)*lt[2]+Ge*ct[2]).toString(16))}return le.trim()},di=function(f,b){b||(b=21);var W=Re(),rA=ya(f.colors,b),mA=[];mA.push({key:"FunctionType",value:"0"}),mA.push({key:"Domain",value:"[0.0 1.0]"}),mA.push({key:"Size",value:"["+b+"]"}),mA.push({key:"BitsPerSample",value:"8"}),mA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),mA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ot({data:rA,additionalKeyValues:mA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:W}),S("endobj"),f.objectNumber=Re(),S("<< /ShadingType "+f.type),S("/ColorSpace /DeviceRGB");var xA="/Coords ["+G(parseFloat(f.coords[0]))+" "+G(parseFloat(f.coords[1]))+" ";f.type===2?xA+=G(parseFloat(f.coords[2]))+" "+G(parseFloat(f.coords[3])):xA+=G(parseFloat(f.coords[2]))+" "+G(parseFloat(f.coords[3]))+" "+G(parseFloat(f.coords[4]))+" "+G(parseFloat(f.coords[5])),S(xA+="]"),f.matrix&&S("/Matrix ["+f.matrix.toString()+"]"),S("/Function "+W+" 0 R"),S("/Extend [true true]"),S(">>"),S("endobj")},an=function(f,b){var W=Oe(),rA=Re();b.push({resourcesOid:W,objectOid:rA}),f.objectNumber=rA;var mA=[];mA.push({key:"Type",value:"/Pattern"}),mA.push({key:"PatternType",value:"1"}),mA.push({key:"PaintType",value:"1"}),mA.push({key:"TilingType",value:"1"}),mA.push({key:"BBox",value:"["+f.boundingBox.map(G).join(" ")+"]"}),mA.push({key:"XStep",value:G(f.xStep)}),mA.push({key:"YStep",value:G(f.yStep)}),mA.push({key:"Resources",value:W+" 0 R"}),f.matrix&&mA.push({key:"Matrix",value:"["+f.matrix.toString()+"]"}),Ot({data:f.stream,additionalKeyValues:mA,objectId:f.objectNumber}),S("endobj")},bn=function(f){var b;for(b in vA)vA.hasOwnProperty(b)&&(vA[b]instanceof ha?di(vA[b]):vA[b]instanceof ni&&an(vA[b],f))},Ca=function(f){for(var b in f.objectNumber=Re(),S("<<"),f)switch(b){case"opacity":S("/ca "+fA(f[b]));break;case"stroke-opacity":S("/CA "+fA(f[b]))}S(">>"),S("endobj")},ba=function(){var f;for(f in PA)PA.hasOwnProperty(f)&&Ca(PA[f])},Fn=function(){for(var f in S("/XObject <<"),Fe)Fe.hasOwnProperty(f)&&Fe[f].objectNumber>=0&&S("/"+f+" "+Fe[f].objectNumber+" 0 R");_A.publish("putXobjectDict"),S(">>")},hi=function(){Rt.oid=Re(),S("<<"),S("/Filter /Standard"),S("/V "+Rt.v),S("/R "+Rt.r),S("/U <"+Rt.toHexString(Rt.U)+">"),S("/O <"+Rt.toHexString(Rt.O)+">"),S("/P "+Rt.P),S(">>"),S("endobj")},Fa=function(){for(var f in S("/Font <<"),te)te.hasOwnProperty(f)&&(B===!1||B===!0&&w.hasOwnProperty(f))&&S("/"+f+" "+te[f].objectNumber+" 0 R");S(">>")},gi=function(){if(Object.keys(vA).length>0){for(var f in S("/Shading <<"),vA)vA.hasOwnProperty(f)&&vA[f]instanceof ha&&vA[f].objectNumber>=0&&S("/"+f+" "+vA[f].objectNumber+" 0 R");_A.publish("putShadingPatternDict"),S(">>")}},sn=function(f){if(Object.keys(vA).length>0){for(var b in S("/Pattern <<"),vA)vA.hasOwnProperty(b)&&vA[b]instanceof g.TilingPattern&&vA[b].objectNumber>=0&&vA[b].objectNumber<f&&S("/"+b+" "+vA[b].objectNumber+" 0 R");_A.publish("putTilingPatternDict"),S(">>")}},pi=function(){if(Object.keys(PA).length>0){var f;for(f in S("/ExtGState <<"),PA)PA.hasOwnProperty(f)&&PA[f].objectNumber>=0&&S("/"+f+" "+PA[f].objectNumber+" 0 R");_A.publish("putGStateDict"),S(">>")}},ot=function(f){dt(f.resourcesOid,!0),S("<<"),S("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Fa(),gi(),sn(f.objectOid),pi(),Fn(),S(">>"),S("endobj")},nA=function(){var f=[];rn(),ba(),nn(),bn(f),_A.publish("putResources"),f.forEach(ot),ot({resourcesOid:Pt,objectOid:Number.MAX_SAFE_INTEGER}),_A.publish("postPutResources")},BA=function(){_A.publish("putAdditionalObjects");for(var f=0;f<WA.length;f++){var b=WA[f];dt(b.objId,!0),S(b.content),S("endobj")}_A.publish("postPutAdditionalObjects")},q=function(f){se[f.fontName]=se[f.fontName]||{},se[f.fontName][f.fontStyle]=f.id},wA=function(f,b,W,rA,mA){var xA={id:"F"+(Object.keys(te).length+1).toString(10),postScriptName:f,fontName:b,fontStyle:W,encoding:rA,isStandardFont:mA||!1,metadata:{}};return _A.publish("addFont",{font:xA,instance:this}),te[xA.id]=xA,q(xA),xA.id},LA=function(f){for(var b=0,W=GA.length;b<W;b++){var rA=wA.call(this,f[b][0],f[b][1],f[b][2],GA[b][3],!0);B===!1&&(w[rA]=!0);var mA=f[b][0].split("-");q({id:rA,fontName:mA[0],fontStyle:mA[1]||""})}_A.publish("addFonts",{fonts:te,dictionary:se})},IA=function(f){return f.foo=function(){try{return f.apply(this,arguments)}catch(rA){var b=rA.stack||"";~b.indexOf(" at ")&&(b=b.split(" at ")[1]);var W="Error in function "+b.split(`
123
+ `)[0].split("<")[0]+": "+rA.message;if(!Ue.console)throw new Error(W);Ue.console.error(W,rA),Ue.alert&&alert(W)}},f.foo.bar=f,f.foo},ie=function(f,b){var W,rA,mA,xA,zA,le,ye,Te,Ie;if(mA=(b=b||{}).sourceEncoding||"Unicode",zA=b.outputEncoding,(b.autoencode||zA)&&te[oA].metadata&&te[oA].metadata[mA]&&te[oA].metadata[mA].encoding&&(xA=te[oA].metadata[mA].encoding,!zA&&te[oA].encoding&&(zA=te[oA].encoding),!zA&&xA.codePages&&(zA=xA.codePages[0]),typeof zA=="string"&&(zA=xA[zA]),zA)){for(ye=!1,le=[],W=0,rA=f.length;W<rA;W++)(Te=zA[f.charCodeAt(W)])?le.push(String.fromCharCode(Te)):le.push(f[W]),le[W].charCodeAt(0)>>8&&(ye=!0);f=le.join("")}for(W=f.length;ye===void 0&&W!==0;)f.charCodeAt(W-1)>>8&&(ye=!0),W--;if(!ye)return f;for(le=b.noBOM?[]:[254,255],W=0,rA=f.length;W<rA;W++){if((Ie=(Te=f.charCodeAt(W))>>8)>>8)throw new Error("Character at position "+W+" of string '"+f+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");le.push(Ie),le.push(Te-(Ie<<8))}return String.fromCharCode.apply(void 0,le)},XA=g.__private__.pdfEscape=g.pdfEscape=function(f,b){return ie(f,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},we=g.__private__.beginPage=function(f){NA[++QA]=[],EA[QA]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(f[0]),topRightY:Number(f[1])}},Le(QA),UA(NA[D])},De=function(f,b){var W,rA,mA;switch(A=b||A,typeof f=="string"&&(W=v(f.toLowerCase()),Array.isArray(W)&&(rA=W[0],mA=W[1])),Array.isArray(f)&&(rA=f[0]*pA,mA=f[1]*pA),isNaN(rA)&&(rA=a[0],mA=a[1]),(rA>14400||mA>14400)&&(et.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),rA=Math.min(14400,rA),mA=Math.min(14400,mA)),a=[rA,mA],A.substr(0,1)){case"l":mA>rA&&(a=[mA,rA]);break;case"p":rA>mA&&(a=[mA,rA])}we(a),Bs(wi),S(Dr),yi!==0&&S(yi+" J"),Ci!==0&&S(Ci+" j"),_A.publish("addPage",{pageNumber:QA})},ke=function(f){f>0&&f<=QA&&(NA.splice(f,1),EA.splice(f,1),QA--,D>QA&&(D=QA),this.setPage(D))},Le=function(f){f>0&&f<=QA&&(D=f)},tt=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return NA.length-1},kt=function(f,b,W){var rA,mA=void 0;return W=W||{},f=f!==void 0?f:te[oA].fontName,b=b!==void 0?b:te[oA].fontStyle,rA=f.toLowerCase(),se[rA]!==void 0&&se[rA][b]!==void 0?mA=se[rA][b]:se[f]!==void 0&&se[f][b]!==void 0?mA=se[f][b]:W.disableWarning===!1&&et.warn("Unable to look up font label for font '"+f+"', '"+b+"'. Refer to getFontList() for available fonts."),mA||W.noFallback||(mA=se.times[b])==null&&(mA=se.times.normal),mA},on=g.__private__.putInfo=function(){var f=Re(),b=function(rA){return rA};for(var W in p!==null&&(b=Rt.encryptor(f,0)),S("<<"),S("/Producer ("+XA(b("jsPDF "+Ee.version))+")"),me)me.hasOwnProperty(W)&&me[W]&&S("/"+W.substr(0,1).toUpperCase()+W.substr(1)+" ("+XA(b(me[W]))+")");S("/CreationDate ("+XA(b(X))+")"),S(">>"),S("endobj")},Kr=g.__private__.putCatalog=function(f){var b=(f=f||{}).rootDictionaryObjId||$t;switch(Re(),S("<<"),S("/Type /Catalog"),S("/Pages "+b+" 0 R"),ee||(ee="fullwidth"),ee){case"fullwidth":S("/OpenAction [3 0 R /FitH null]");break;case"fullheight":S("/OpenAction [3 0 R /FitV null]");break;case"fullpage":S("/OpenAction [3 0 R /Fit]");break;case"original":S("/OpenAction [3 0 R /XYZ null null 1]");break;default:var W=""+ee;W.substr(W.length-1)==="%"&&(ee=parseInt(ee)/100),typeof ee=="number"&&S("/OpenAction [3 0 R /XYZ null null "+fA(ee)+"]")}switch(be||(be="continuous"),be){case"continuous":S("/PageLayout /OneColumn");break;case"single":S("/PageLayout /SinglePage");break;case"two":case"twoleft":S("/PageLayout /TwoColumnLeft");break;case"tworight":S("/PageLayout /TwoColumnRight")}he&&S("/PageMode /"+he),_A.publish("putCatalog"),S(">>"),S("endobj")},Gr=g.__private__.putTrailer=function(){S("trailer"),S("<<"),S("/Size "+(eA+1)),S("/Root "+eA+" 0 R"),S("/Info "+(eA-1)+" 0 R"),p!==null&&S("/Encrypt "+Rt.oid+" 0 R"),S("/ID [ <"+$+"> <"+$+"> ]"),S(">>")},Br=g.__private__.putHeader=function(){S("%PDF-"+y),S("%ºß¬à")},jr=g.__private__.putXRef=function(){var f="0000000000";S("xref"),S("0 "+(eA+1)),S("0000000000 65535 f ");for(var b=1;b<=eA;b++)typeof uA[b]=="function"?S((f+uA[b]()).slice(-10)+" 00000 n "):uA[b]!==void 0?S((f+uA[b]).slice(-10)+" 00000 n "):S("0000000000 00000 n ")},Xt=g.__private__.buildDocument=function(){de(),UA(dA),_A.publish("buildDocument"),Br(),xr(),BA(),nA(),p!==null&&hi(),on(),Kr();var f=lA;return jr(),Gr(),S("startxref"),S(""+f),S("%%EOF"),UA(NA[D]),dA.join(`
124
+ `)},Qn=g.__private__.getBlob=function(f){return new Blob([KA(f)],{type:"application/pdf"})},En=g.output=g.__private__.output=IA(function(f,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",f){case void 0:return Xt();case"save":g.save(b.filename);break;case"arraybuffer":return KA(Xt());case"blob":return Qn(Xt());case"bloburi":case"bloburl":if(Ue.URL!==void 0&&typeof Ue.URL.createObjectURL=="function")return Ue.URL&&Ue.URL.createObjectURL(Qn(Xt()))||void 0;et.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var W="",rA=Xt();try{W=vc(rA)}catch{W=vc(unescape(encodeURIComponent(rA)))}return"data:application/pdf;filename="+b.filename+";base64,"+W;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ue)==="[object Window]"){var mA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",xA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(mA=b.pdfObjectUrl,xA="");var zA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+mA+'"'+xA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",le=Ue.open();return le!==null&&le.document.write(zA),le}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ue)==="[object Window]"){var ye='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',Te=Ue.open();if(Te!==null){Te.document.write(ye);var Ie=this;Te.document.documentElement.querySelector("#pdfViewer").onload=function(){Te.document.title=b.filename,Te.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ie.output("bloburl"))}}return Te}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ue)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',lt=Ue.open();if(lt!==null&&(lt.document.write(Ge),lt.document.title=b.filename),lt||typeof safari>"u")return lt;break;case"datauri":case"dataurl":return Ue.document.location.href=this.output("datauristring",b);default:return null}}),Qa=function(f){return Array.isArray(fe)===!0&&fe.indexOf(f)>-1};switch(r){case"pt":pA=1;break;case"mm":pA=72/25.4;break;case"cm":pA=72/2.54;break;case"in":pA=72;break;case"px":pA=Qa("px_scaling")==1?.75:96/72;break;case"pc":case"em":pA=12;break;case"ex":pA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);pA=r}var Rt=null;DA(),V();var rl=function(f){return p!==null?Rt.encryptor(f,0):function(b){return b}},hs=g.__private__.getPageInfo=g.getPageInfo=function(f){if(isNaN(f)||f%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:EA[f].objId,pageNumber:f,pageContext:EA[f]}},xe=g.__private__.getPageInfoByObjId=function(f){if(isNaN(f)||f%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in EA)if(EA[b].objId===f)break;return hs(b)},nl=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:EA[D].objId,pageNumber:D,pageContext:EA[D]}};g.addPage=function(){return De.apply(this,arguments),this},g.setPage=function(){return Le.apply(this,arguments),UA.call(this,NA[D]),this},g.insertPage=function(f){return this.addPage(),this.movePage(D,f),this},g.movePage=function(f,b){var W,rA;if(f>b){W=NA[f],rA=EA[f];for(var mA=f;mA>b;mA--)NA[mA]=NA[mA-1],EA[mA]=EA[mA-1];NA[b]=W,EA[b]=rA,this.setPage(b)}else if(f<b){W=NA[f],rA=EA[f];for(var xA=f;xA<b;xA++)NA[xA]=NA[xA+1],EA[xA]=EA[xA+1];NA[b]=W,EA[b]=rA,this.setPage(b)}return this},g.deletePage=function(){return ke.apply(this,arguments),this},g.__private__.text=g.text=function(f,b,W,rA,mA){var xA,zA,le,ye,Te,Ie,Ge,lt,ct,yt=(rA=rA||{}).scope||this;if(typeof f=="number"&&typeof b=="number"&&(typeof W=="string"||Array.isArray(W))){var Vt=W;W=b,b=f,f=Vt}if(arguments[3]instanceof SA?(P("The transform parameter of text() with a Matrix value"),ct=mA):(le=arguments[4],ye=arguments[5],ze(Ge=arguments[3])==="object"&&Ge!==null||(typeof le=="string"&&(ye=le,le=null),typeof Ge=="string"&&(ye=Ge,Ge=null),typeof Ge=="number"&&(le=Ge,Ge=null),rA={flags:Ge,angle:le,align:ye})),isNaN(b)||isNaN(W)||f==null)throw new Error("Invalid arguments passed to jsPDF.text");if(f.length===0)return yt;var xt="",Ir=!1,ur=typeof rA.lineHeightFactor=="number"?rA.lineHeightFactor:ta,Yr=yt.internal.scaleFactor;function bs(rt){return rt=rt.split(" ").join(Array(rA.TabLen||9).join(" ")),XA(rt,Ge)}function Ui(rt){for(var nt,gt=rt.concat(),Et=[],dn=gt.length;dn--;)typeof(nt=gt.shift())=="string"?Et.push(nt):Array.isArray(rt)&&(nt.length===1||nt[1]===void 0&&nt[2]===void 0)?Et.push(nt[0]):Et.push([nt[0],nt[1],nt[2]]);return Et}function Li(rt,nt){var gt;if(typeof rt=="string")gt=nt(rt)[0];else if(Array.isArray(rt)){for(var Et,dn,Hi=rt.concat(),Oa=[],Ls=Hi.length;Ls--;)typeof(Et=Hi.shift())=="string"?Oa.push(nt(Et)[0]):Array.isArray(Et)&&typeof Et[0]=="string"&&(dn=nt(Et[0],Et[1],Et[2]),Oa.push([dn[0],dn[1],dn[2]]));gt=Oa}return gt}var Sa=!1,ki=!0;if(typeof f=="string")Sa=!0;else if(Array.isArray(f)){var xi=f.concat();zA=[];for(var Da,Tt=xi.length;Tt--;)(typeof(Da=xi.shift())!="string"||Array.isArray(Da)&&typeof Da[0]!="string")&&(ki=!1);Sa=ki}if(Sa===!1)throw new Error('Type of text must be string or Array. "'+f+'" is not recognized.');typeof f=="string"&&(f=f.match(/[\r?\n]/)?f.split(/\r\n|\r|\n/g):[f]);var Ia=$A/yt.internal.scaleFactor,Na=Ia*(ur-1);switch(rA.baseline){case"bottom":W-=Na;break;case"top":W+=Ia-Na;break;case"hanging":W+=Ia-2*Na;break;case"middle":W+=Ia/2-Na}if((Ie=rA.maxWidth||0)>0&&(typeof f=="string"?f=yt.splitTextToSize(f,Ie):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(rt,nt){return rt.concat(yt.splitTextToSize(nt,Ie))},[]))),xA={text:f,x:b,y:W,options:rA,mutex:{pdfEscape:XA,activeFontKey:oA,fonts:te,activeFontSize:$A}},_A.publish("preProcessText",xA),f=xA.text,le=(rA=xA.options).angle,!(ct instanceof SA)&&le&&typeof le=="number"){le*=Math.PI/180,rA.rotationDirection===0&&(le=-le),M===U.ADVANCED&&(le=-le);var Ta=Math.cos(le),Si=Math.sin(le);ct=new SA(Ta,Si,-Si,Ta,0,0)}else le&&le instanceof SA&&(ct=le);M!==U.ADVANCED||ct||(ct=Me),(Te=rA.charSpace||La)!==void 0&&(xt+=G(x(Te))+` Tc
125
+ `,this.setCharSpace(this.getCharSpace()||0)),(lt=rA.horizontalScale)!==void 0&&(xt+=G(100*lt)+` Tz
126
+ `),rA.lang;var rr=-1,hl=rA.renderingMode!==void 0?rA.renderingMode:rA.stroke,Di=yt.internal.getCurrentPageInfo().pageContext;switch(hl){case 0:case!1:case"fill":rr=0;break;case 1:case!0:case"stroke":rr=1;break;case 2:case"fillThenStroke":rr=2;break;case 3:case"invisible":rr=3;break;case 4:case"fillAndAddForClipping":rr=4;break;case 5:case"strokeAndAddPathForClipping":rr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":rr=6;break;case 7:case"addToPathForClipping":rr=7}var Fs=Di.usedRenderingMode!==void 0?Di.usedRenderingMode:-1;rr!==-1?xt+=rr+` Tr
127
+ `:Fs!==-1&&(xt+=`0 Tr
128
+ `),rr!==-1&&(Di.usedRenderingMode=rr),ye=rA.align||"left";var mr,Ha=$A*ur,Qs=yt.internal.pageSize.getWidth(),Es=te[oA];Te=rA.charSpace||La,Ie=rA.maxWidth||0,Ge=Object.assign({autoencode:!0,noBOM:!0},rA.flags);var xn=[],aa=function(rt){return yt.getStringUnitWidth(rt,{font:Es,charSpace:Te,fontSize:$A,doKerning:!1})*$A/Yr};if(Object.prototype.toString.call(f)==="[object Array]"){var nr;zA=Ui(f),ye!=="left"&&(mr=zA.map(aa));var Jt,Sn=0;if(ye==="right"){b-=mr[0],f=[],Tt=zA.length;for(var cn=0;cn<Tt;cn++)cn===0?(Jt=Wr(b),nr=ln(W)):(Jt=x(Sn-mr[cn]),nr=-Ha),f.push([zA[cn],Jt,nr]),Sn=mr[cn]}else if(ye==="center"){b-=mr[0]/2,f=[],Tt=zA.length;for(var un=0;un<Tt;un++)un===0?(Jt=Wr(b),nr=ln(W)):(Jt=x((Sn-mr[un])/2),nr=-Ha),f.push([zA[un],Jt,nr]),Sn=mr[un]}else if(ye==="left"){f=[],Tt=zA.length;for(var _a=0;_a<Tt;_a++)f.push(zA[_a])}else if(ye==="justify"&&Es.encoding==="Identity-H"){f=[],Tt=zA.length,Ie=Ie!==0?Ie:Qs;for(var fn=0,ht=0;ht<Tt;ht++)if(nr=ht===0?ln(W):-Ha,Jt=ht===0?Wr(b):fn,ht<Tt-1){var Ii=x((Ie-mr[ht])/(zA[ht].split(" ").length-1)),Zt=zA[ht].split(" ");f.push([Zt[0]+" ",Jt,nr]),fn=0;for(var wr=1;wr<Zt.length;wr++){var Ma=(aa(Zt[wr-1]+" "+Zt[wr])-aa(Zt[wr]))*Yr+Ii;wr==Zt.length-1?f.push([Zt[wr],Ma,0]):f.push([Zt[wr]+" ",Ma,0]),fn-=Ma}}else f.push([zA[ht],Jt,nr]);f.push(["",fn,0])}else{if(ye!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(f=[],Tt=zA.length,Ie=Ie!==0?Ie:Qs,ht=0;ht<Tt;ht++)nr=ht===0?ln(W):-Ha,Jt=ht===0?Wr(b):0,ht<Tt-1?xn.push(G(x((Ie-mr[ht])/(zA[ht].split(" ").length-1)))):xn.push(0),f.push([zA[ht],Jt,nr])}}var Us=typeof rA.R2L=="boolean"?rA.R2L:ne;Us===!0&&(f=Li(f,function(rt,nt,gt){return[rt.split("").reverse().join(""),nt,gt]})),xA={text:f,x:b,y:W,options:rA,mutex:{pdfEscape:XA,activeFontKey:oA,fonts:te,activeFontSize:$A}},_A.publish("postProcessText",xA),f=xA.text,Ir=xA.mutex.isHex||!1;var Ni=te[oA].encoding;Ni!=="WinAnsiEncoding"&&Ni!=="StandardEncoding"||(f=Li(f,function(rt,nt,gt){return[bs(rt),nt,gt]})),zA=Ui(f),f=[];for(var ia,sa,Dn,oa=0,Pa=1,la=Array.isArray(zA[0])?Pa:oa,In="",Ti=function(rt,nt,gt){var Et="";return gt instanceof SA?(gt=typeof rA.angle=="number"?Be(gt,new SA(1,0,0,1,rt,nt)):Be(new SA(1,0,0,1,rt,nt),gt),M===U.ADVANCED&&(gt=Be(new SA(1,0,0,-1,0,0),gt)),Et=gt.join(" ")+` Tm
129
+ `):Et=G(rt)+" "+G(nt)+` Td
130
+ `,Et},vr=0;vr<zA.length;vr++){switch(In="",la){case Pa:Dn=(Ir?"<":"(")+zA[vr][0]+(Ir?">":")"),ia=parseFloat(zA[vr][1]),sa=parseFloat(zA[vr][2]);break;case oa:Dn=(Ir?"<":"(")+zA[vr]+(Ir?">":")"),ia=Wr(b),sa=ln(W)}xn!==void 0&&xn[vr]!==void 0&&(In=xn[vr]+` Tw
131
+ `),vr===0?f.push(In+Ti(ia,sa,ct)+Dn):la===oa?f.push(In+Dn):la===Pa&&f.push(In+Ti(ia,sa,ct)+Dn)}f=la===oa?f.join(` Tj
132
+ T* `):f.join(` Tj
133
+ `),f+=` Tj
134
+ `;var yr=`BT
135
+ /`;return yr+=oA+" "+$A+` Tf
136
+ `,yr+=G($A*ur)+` TL
137
+ `,yr+=ra+`
138
+ `,yr+=xt,yr+=f,S(yr+="ET"),w[oA]=!0,yt};var al=g.__private__.clip=g.clip=function(f){return S(f==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return al("evenodd")},g.__private__.discardPath=g.discardPath=function(){return S("n"),this};var qr=g.__private__.isValidStyle=function(f){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(f)!==-1&&(b=!0),b};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(f){return qr(f)&&(d=f),this};var gs=g.__private__.getStyle=g.getStyle=function(f){var b=d;switch(f){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=f}return b},ps=g.close=function(){return S("h"),this};g.stroke=function(){return S("S"),this},g.fill=function(f){return Ea("f",f),this},g.fillEvenOdd=function(f){return Ea("f*",f),this},g.fillStroke=function(f){return Ea("B",f),this},g.fillStrokeEvenOdd=function(f){return Ea("B*",f),this};var Ea=function(f,b){ze(b)==="object"?sl(b,f):S(f)},Bi=function(f){f===null||M===U.ADVANCED&&f===void 0||(f=gs(f),S(f))};function il(f,b,W,rA,mA){var xA=new ni(b||this.boundingBox,W||this.xStep,rA||this.yStep,this.gState,mA||this.matrix);xA.stream=this.stream;var zA=f+"$$"+this.cloneIndex+++"$$";return qe(zA,xA),xA}var sl=function(f,b){var W=TA[f.key],rA=vA[W];if(rA instanceof ha)S("q"),S(ol(b)),rA.gState&&g.setGState(rA.gState),S(f.matrix.toString()+" cm"),S("/"+W+" sh"),S("Q");else if(rA instanceof ni){var mA=new SA(1,0,0,-1,0,kn());f.matrix&&(mA=mA.multiply(f.matrix||Me),W=il.call(rA,f.key,f.boundingBox,f.xStep,f.yStep,mA).id),S("q"),S("/Pattern cs"),S("/"+W+" scn"),rA.gState&&g.setGState(rA.gState),S(b),S("Q")}},ol=function(f){switch(f){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},mi=g.moveTo=function(f,b){return S(G(x(f))+" "+G(k(b))+" m"),this},ea=g.lineTo=function(f,b){return S(G(x(f))+" "+G(k(b))+" l"),this},Un=g.curveTo=function(f,b,W,rA,mA,xA){return S([G(x(f)),G(k(b)),G(x(W)),G(k(rA)),G(x(mA)),G(k(xA)),"c"].join(" ")),this};g.__private__.line=g.line=function(f,b,W,rA,mA){if(isNaN(f)||isNaN(b)||isNaN(W)||isNaN(rA)||!qr(mA))throw new Error("Invalid arguments passed to jsPDF.line");return M===U.COMPAT?this.lines([[W-f,rA-b]],f,b,[1,1],mA||"S"):this.lines([[W-f,rA-b]],f,b,[1,1]).stroke()},g.__private__.lines=g.lines=function(f,b,W,rA,mA,xA){var zA,le,ye,Te,Ie,Ge,lt,ct,yt,Vt,xt,Ir;if(typeof f=="number"&&(Ir=W,W=b,b=f,f=Ir),rA=rA||[1,1],xA=xA||!1,isNaN(b)||isNaN(W)||!Array.isArray(f)||!Array.isArray(rA)||!qr(mA)||typeof xA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(mi(b,W),zA=rA[0],le=rA[1],Te=f.length,Vt=b,xt=W,ye=0;ye<Te;ye++)(Ie=f[ye]).length===2?(Vt=Ie[0]*zA+Vt,xt=Ie[1]*le+xt,ea(Vt,xt)):(Ge=Ie[0]*zA+Vt,lt=Ie[1]*le+xt,ct=Ie[2]*zA+Vt,yt=Ie[3]*le+xt,Vt=Ie[4]*zA+Vt,xt=Ie[5]*le+xt,Un(Ge,lt,ct,yt,Vt,xt));return xA&&ps(),Bi(mA),this},g.path=function(f){for(var b=0;b<f.length;b++){var W=f[b],rA=W.c;switch(W.op){case"m":mi(rA[0],rA[1]);break;case"l":ea(rA[0],rA[1]);break;case"c":Un.apply(this,rA);break;case"h":ps()}}return this},g.__private__.rect=g.rect=function(f,b,W,rA,mA){if(isNaN(f)||isNaN(b)||isNaN(W)||isNaN(rA)||!qr(mA))throw new Error("Invalid arguments passed to jsPDF.rect");return M===U.COMPAT&&(rA=-rA),S([G(x(f)),G(k(b)),G(x(W)),G(x(rA)),"re"].join(" ")),Bi(mA),this},g.__private__.triangle=g.triangle=function(f,b,W,rA,mA,xA,zA){if(isNaN(f)||isNaN(b)||isNaN(W)||isNaN(rA)||isNaN(mA)||isNaN(xA)||!qr(zA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[W-f,rA-b],[mA-W,xA-rA],[f-mA,b-xA]],f,b,[1,1],zA,!0),this},g.__private__.roundedRect=g.roundedRect=function(f,b,W,rA,mA,xA,zA){if(isNaN(f)||isNaN(b)||isNaN(W)||isNaN(rA)||isNaN(mA)||isNaN(xA)||!qr(zA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var le=4/3*(Math.SQRT2-1);return mA=Math.min(mA,.5*W),xA=Math.min(xA,.5*rA),this.lines([[W-2*mA,0],[mA*le,0,mA,xA-xA*le,mA,xA],[0,rA-2*xA],[0,xA*le,-mA*le,xA,-mA,xA],[2*mA-W,0],[-mA*le,0,-mA,-xA*le,-mA,-xA],[0,2*xA-rA],[0,-xA*le,mA*le,-xA,mA,-xA]],f+mA,b,[1,1],zA,!0),this},g.__private__.ellipse=g.ellipse=function(f,b,W,rA,mA){if(isNaN(f)||isNaN(b)||isNaN(W)||isNaN(rA)||!qr(mA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var xA=4/3*(Math.SQRT2-1)*W,zA=4/3*(Math.SQRT2-1)*rA;return mi(f+W,b),Un(f+W,b-zA,f+xA,b-rA,f,b-rA),Un(f-xA,b-rA,f-W,b-zA,f-W,b),Un(f-W,b+zA,f-xA,b+rA,f,b+rA),Un(f+xA,b+rA,f+W,b+zA,f+W,b),Bi(mA),this},g.__private__.circle=g.circle=function(f,b,W,rA){if(isNaN(f)||isNaN(b)||isNaN(W)||!qr(rA))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(f,b,W,W,rA)},g.setFont=function(f,b,W){return W&&(b=Y(b,W)),oA=kt(f,b,{disableWarning:!1}),this};var ll=g.__private__.getFont=g.getFont=function(){return te[kt.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var f,b,W={};for(f in se)if(se.hasOwnProperty(f))for(b in W[f]=[],se[f])se[f].hasOwnProperty(b)&&W[f].push(b);return W},g.addFont=function(f,b,W,rA,mA){var xA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&xA.indexOf(arguments[3])!==-1?mA=arguments[3]:arguments[3]&&xA.indexOf(arguments[3])==-1&&(W=Y(W,rA)),mA=mA||"Identity-H",wA.call(this,f,b,W,mA)};var ta,wi=t.lineWidth||.200025,Ua=g.__private__.getLineWidth=g.getLineWidth=function(){return wi},Bs=g.__private__.setLineWidth=g.setLineWidth=function(f){return wi=f,S(G(x(f))+" w"),this};g.__private__.setLineDash=Ee.API.setLineDash=Ee.API.setLineDashPattern=function(f,b){if(f=f||[],b=b||0,isNaN(b)||!Array.isArray(f))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return f=f.map(function(W){return G(x(W))}).join(" "),b=G(x(b)),S("["+f+"] "+b+" d"),this};var ms=g.__private__.getLineHeight=g.getLineHeight=function(){return $A*ta};g.__private__.getLineHeight=g.getLineHeight=function(){return $A*ta};var ws=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(f){return typeof(f=f||1.15)=="number"&&(ta=f),this},vs=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return ta};ws(t.lineHeight);var Wr=g.__private__.getHorizontalCoordinate=function(f){return x(f)},ln=g.__private__.getVerticalCoordinate=function(f){return M===U.ADVANCED?f:EA[D].mediaBox.topRightY-EA[D].mediaBox.bottomLeftY-x(f)},cl=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(f){return G(Wr(f))},Ln=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(f){return G(ln(f))},Dr=t.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return Pe(Dr)},g.__private__.setStrokeColor=g.setDrawColor=function(f,b,W,rA){return Dr=Lt({ch1:f,ch2:b,ch3:W,ch4:rA,pdfColorType:"draw",precision:2}),S(Dr),this};var vi=t.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return Pe(vi)},g.__private__.setFillColor=g.setFillColor=function(f,b,W,rA){return vi=Lt({ch1:f,ch2:b,ch3:W,ch4:rA,pdfColorType:"fill",precision:2}),S(vi),this};var ra=t.textColor||"0 g",ul=g.__private__.getTextColor=g.getTextColor=function(){return Pe(ra)};g.__private__.setTextColor=g.setTextColor=function(f,b,W,rA){return ra=Lt({ch1:f,ch2:b,ch3:W,ch4:rA,pdfColorType:"text",precision:3}),this};var La=t.charSpace,fl=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(La||0)};g.__private__.setCharSpace=g.setCharSpace=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return La=f,this};var yi=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(f){var b=g.CapJoinStyles[f];if(b===void 0)throw new Error("Line cap style of '"+f+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return yi=b,S(b+" J"),this};var Ci=0;g.__private__.setLineJoin=g.setLineJoin=function(f){var b=g.CapJoinStyles[f];if(b===void 0)throw new Error("Line join style of '"+f+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ci=b,S(b+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(f){if(f=f||0,isNaN(f))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return S(G(x(f))+" M"),this},g.GState=Do,g.setGState=function(f){(f=typeof f=="string"?PA[tA[f]]:ys(null,f)).equals(yA)||(S("/"+f.id+" gs"),yA=f)};var ys=function(f,b){if(!f||!tA[f]){var W=!1;for(var rA in PA)if(PA.hasOwnProperty(rA)&&PA[rA].equals(b)){W=!0;break}if(W)b=PA[rA];else{var mA="GS"+(Object.keys(PA).length+1).toString(10);PA[mA]=b,b.id=mA}return f&&(tA[f]=b.id),_A.publish("addGState",b),b}};g.addGState=function(f,b){return ys(f,b),this},g.saveGraphicsState=function(){return S("q"),hA.push({key:oA,size:$A,color:ra}),this},g.restoreGraphicsState=function(){S("Q");var f=hA.pop();return oA=f.key,$A=f.size,ra=f.color,yA=null,this},g.setCurrentTransformationMatrix=function(f){return S(f.toString()+" cm"),this},g.comment=function(f){return S("#"+f),this};var ka=function(f,b){var W=f||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return W},set:function(xA){isNaN(xA)||(W=parseFloat(xA))}});var rA=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return rA},set:function(xA){isNaN(xA)||(rA=parseFloat(xA))}});var mA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return mA},set:function(xA){mA=xA.toString()}}),this},bi=function(f,b,W,rA){ka.call(this,f,b),this.type="rect";var mA=W||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return mA},set:function(zA){isNaN(zA)||(mA=parseFloat(zA))}});var xA=rA||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return xA},set:function(zA){isNaN(zA)||(xA=parseFloat(zA))}}),this},Fi=function(){this.page=QA,this.currentPage=D,this.pages=NA.slice(0),this.pagesContext=EA.slice(0),this.x=HA,this.y=qA,this.matrix=pe,this.width=na(D),this.height=kn(D),this.outputDestination=jA,this.id="",this.objectNumber=-1};Fi.prototype.restore=function(){QA=this.page,D=this.currentPage,EA=this.pagesContext,NA=this.pages,HA=this.x,qA=this.y,pe=this.matrix,Qi(D,this.width),Ei(D,this.height),jA=this.outputDestination};var Cs=function(f,b,W,rA,mA){Ae.push(new Fi),QA=D=0,NA=[],HA=f,qA=b,pe=mA,we([W,rA])},dl=function(f){if(Ce[f])Ae.pop().restore();else{var b=new Fi,W="Xo"+(Object.keys(Fe).length+1).toString(10);b.id=W,Ce[f]=W,Fe[W]=b,_A.publish("addFormObject",b),Ae.pop().restore()}};for(var xa in g.beginFormObject=function(f,b,W,rA,mA){return Cs(f,b,W,rA,mA),this},g.endFormObject=function(f){return dl(f),this},g.doFormObject=function(f,b){var W=Fe[Ce[f]];return S("q"),S(b.toString()+" cm"),S("/"+W.id+" Do"),S("Q"),this},g.getFormObject=function(f){var b=Fe[Ce[f]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},g.save=function(f,b){return f=f||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(da(Qn(Xt()),f),typeof da.unload=="function"&&Ue.setTimeout&&setTimeout(da.unload,911),this):new Promise(function(W,rA){try{var mA=da(Qn(Xt()),f);typeof da.unload=="function"&&Ue.setTimeout&&setTimeout(da.unload,911),W(mA)}catch(xA){rA(xA.message)}})},Ee.API)Ee.API.hasOwnProperty(xa)&&(xa==="events"&&Ee.API.events.length?function(f,b){var W,rA,mA;for(mA=b.length-1;mA!==-1;mA--)W=b[mA][0],rA=b[mA][1],f.subscribe.apply(f,[W].concat(typeof rA=="function"?[rA]:rA))}(_A,Ee.API.events):g[xa]=Ee.API[xa]);var na=g.getPageWidth=function(f){return(EA[f=f||D].mediaBox.topRightX-EA[f].mediaBox.bottomLeftX)/pA},Qi=g.setPageWidth=function(f,b){EA[f].mediaBox.topRightX=b*pA+EA[f].mediaBox.bottomLeftX},kn=g.getPageHeight=function(f){return(EA[f=f||D].mediaBox.topRightY-EA[f].mediaBox.bottomLeftY)/pA},Ei=g.setPageHeight=function(f,b){EA[f].mediaBox.topRightY=b*pA+EA[f].mediaBox.bottomLeftY};return g.internal={pdfEscape:XA,getStyle:gs,getFont:ll,getFontSize:RA,getCharSpace:fl,getTextColor:ul,getLineHeight:ms,getLineHeightFactor:vs,getLineWidth:Ua,write:FA,getHorizontalCoordinate:Wr,getVerticalCoordinate:ln,getCoordinateString:cl,getVerticalCoordinateString:Ln,collections:{},newObject:Re,newAdditionalObject:cr,newObjectDeferred:Oe,newObjectDeferredBegin:dt,getFilters:Qt,putStream:Ot,events:_A,scaleFactor:pA,pageSize:{getWidth:function(){return na(D)},setWidth:function(f){Qi(D,f)},getHeight:function(){return kn(D)},setHeight:function(f){Ei(D,f)}},encryptionOptions:p,encryption:Rt,getEncryptor:rl,output:En,getNumberOfPages:tt,pages:NA,out:S,f2:fA,f3:I,getPageInfo:hs,getPageInfoByObjId:xe,getCurrentPageInfo:nl,getPDFVersion:Q,Point:ka,Rectangle:bi,Matrix:SA,hasHotfix:Qa},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return na(D)},set:function(f){Qi(D,f)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return kn(D)},set:function(f){Ei(D,f)},enumerable:!0,configurable:!0}),LA.call(g,GA),oA="F1",De(a,A),_A.publish("initialized"),g}Ai.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},Ai.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ai.prototype.hexToBytes=function(t){for(var e=[],A=0;A<t.length;A+=2)e.push(String.fromCharCode(parseInt(t.substr(A,2),16)));return e.join("")},Ai.prototype.processOwnerPassword=function(t,e){return Cc(yc(e).substr(0,5),t)},Ai.prototype.encryptor=function(t,e){var A=yc(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return Cc(A,r)}},Do.prototype.equals=function(t){var e,A="id,objectNumber,equals";if(!t||ze(t)!==ze(this))return!1;var r=0;for(e in this)if(!(A.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&A.indexOf(e)<0&&r--;return r===0},Ee.API={events:[]},Ee.version="3.0.1";var ft=Ee.API,Zc=1,va=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ja=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ne=function(t){return t.toFixed(2)},Vn=function(t){return t.toFixed(5)};ft.__acroform__={};var lr=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},qu=function(t){return t*Zc},Xr=function(t){var e=new Ud,A=ge.internal.getHeight(t)||0,r=ge.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Ne(r)),Number(Ne(A))],e},z2=ft.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},$2=ft.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},X2=ft.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(t&1<<e)==0?0:1},mt=ft.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return X2(t,e-1)},wt=ft.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return z2(t,e-1)},vt=ft.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return $2(t,e-1)},J2=ft.__acroform__.calculateCoordinates=function(t,e){var A=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,a=t[0],i=t[1],o=t[2],l=t[3],u={};return u.lowerLeft_X=A(a)||0,u.lowerLeft_Y=r(i+l)||0,u.upperRight_X=A(a+o)||0,u.upperRight_Y=r(i)||0,[Number(Ne(u.lowerLeft_X)),Number(Ne(u.lowerLeft_Y)),Number(Ne(u.upperRight_X)),Number(Ne(u.upperRight_Y))]},Z2=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],A=t._V||t.DV,r=bc(t,A),a=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+a+" "+Ne(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=Xr(t);return i.scope=t.scope,i.stream=e.join(`
139
+ `),i}},bc=function(t,e){var A=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},a=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");a=t.multiline?a.map(function(I){return I.split(`
140
+ `)}):a.map(function(I){return[I]});var i=A,o=ge.internal.getHeight(t)||0;o=o<0?-o:o;var l=ge.internal.getWidth(t)||0;l=l<0?-l:l;var u=function(I,x,R){if(I+1<a.length){var k=x+" "+a[I+1][0];return $s(k,t,R).width<=l-4}return!1};i++;A:for(;i>0;){e="",i--;var d,p,B=$s("3",t,i).height,w=t.multiline?o-i:(o-B)/2,g=w+=2,y=0,Q=0,_=0;if(i<=0){e=`(...) Tj
141
+ `,e+="% Width of Text: "+$s(e,t,i=12).width+", FieldWidth:"+l+`
142
+ `;break}for(var v="",U=0,M=0;M<a.length;M++)if(a.hasOwnProperty(M)){var J=!1;if(a[M].length!==1&&_!==a[M].length-1){if((B+2)*(U+2)+2>o)continue A;v+=a[M][_],J=!0,Q=M,M--}else{v=(v+=a[M][_]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var Z=parseInt(M),Y=u(Z,v,i),G=M>=a.length-1;if(Y&&!G){v+=" ",_=0;continue}if(Y||G){if(G)Q=Z;else if(t.multiline&&(B+2)*(U+2)+2>o)continue A}else{if(!t.multiline||(B+2)*(U+2)+2>o)continue A;Q=Z}}for(var P="",z=y;z<=Q;z++){var fA=a[z];if(t.multiline){if(z===Q){P+=fA[_]+" ",_=(_+1)%fA.length;continue}if(z===y){P+=fA[fA.length-1]+" ";continue}}P+=fA[0]+" "}switch(P=P.substr(P.length-1)==" "?P.substr(0,P.length-1):P,p=$s(P,t,i).width,t.textAlign){case"right":d=l-p-2;break;case"center":d=(l-p)/2;break;case"left":default:d=2}e+=Ne(d)+" "+Ne(g)+` Td
143
+ `,e+="("+va(P)+`) Tj
144
+ `,e+=-Ne(d)+` 0 Td
145
+ `,g=-(i+2),p=0,y=J?Q:Q+1,U++,v=""}break}return r.text=e,r.fontSize=i,r},$s=function(t,e,A){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),a=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A)*1.5,width:a}},Am={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},em=function(t,e){var A={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===A.type&&r.object===A.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(A)},tm=function(t,e){for(var A in t)if(t.hasOwnProperty(A)){var r=A,a=t[A];e.internal.newObjectDeferredBegin(a.objId,!0),ze(a)==="object"&&typeof a.putStream=="function"&&a.putStream(),delete t[r]}},rm=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Or.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Am)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Zc=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Ld,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var i=r[a];i.objId=void 0,i.hasAnnotation&&em(i,A)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(A){if(A.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(A){(function(r,a){var i=!r;for(var o in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var l=r[o],u=[],d=l.Rect;if(l.Rect&&(l.Rect=J2(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=ge.createDefaultAppearanceStream(l),ze(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(u=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var p=Z2(l);u.push({key:"AP",value:"<</N "+p+">>"}),a.internal.acroformPlugin.xForms.push(p)}if(l.appearanceStreamContent){var B="";for(var w in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(w)){var g=l.appearanceStreamContent[w];if(B+="/"+w+" ",B+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var o in g)if(g.hasOwnProperty(o)){var y=g[o];typeof y=="function"&&(y=y.call(a,l)),B+="/"+o+" "+y+" ",a.internal.acroformPlugin.xForms.indexOf(y)>=0||a.internal.acroformPlugin.xForms.push(y)}}else typeof(y=g)=="function"&&(y=y.call(a,l)),B+="/"+o+" "+y,a.internal.acroformPlugin.xForms.indexOf(y)>=0||a.internal.acroformPlugin.xForms.push(y);B+=">>"}u.push({key:"AP",value:`<<
146
+ `+B+">>"})}a.internal.putStream({additionalKeyValues:u,objectId:l.objId}),a.internal.out("endobj")}i&&tm(a.internal.acroformPlugin.xForms,a)})(A,t)}),t.internal.acroformPlugin.isInitialized=!0}},Ed=ft.__acroform__.arrayToPdfArray=function(t,e,A){var r=function(o){return o};if(Array.isArray(t)){for(var a="[",i=0;i<t.length;i++)switch(i!==0&&(a+=" "),ze(t[i])){case"boolean":case"number":case"object":a+=t[i].toString();break;case"string":t[i].substr(0,1)!=="/"?(e!==void 0&&A&&(r=A.internal.getEncryptor(e)),a+="("+va(r(t[i].toString()))+")"):a+=t[i].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Rl=function(t,e,A){var r=function(a){return a};return e!==void 0&&A&&(r=A.internal.getEncryptor(e)),(t=t||"").toString(),t="("+va(r(t))+")"},Jr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Jr.prototype.toString=function(){return this.objId+" 0 R"},Jr.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Jr.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var A in e)if(Object.getOwnPropertyDescriptor(this,e[A]).configurable===!1){var r=e[A],a=this[r];a&&(Array.isArray(a)?t.push({key:r,value:Ed(a,this.objId,this.scope)}):a instanceof Jr?(a.scope=this.scope,t.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:r,value:a}))}return t};var Ud=function(){Jr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(A){t=A.trim()},get:function(){return t||null}})};lr(Ud,Jr);var Ld=function(){Jr.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var A=function(r){return r};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+va(A(t))+")"}},set:function(A){t=A}})};lr(Ld,Jr);var Or=function t(){Jr.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');e=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!mt(e,3)},set:function(v){v?this.F=wt(e,3):this.F=vt(e,3)}});var A=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return A},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');A=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Io)return;i="FieldObject"+t.FieldNum++}var v=function(U){return U};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+va(v(i))+")"},set:function(v){i=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(v){i=v}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(v){u=v}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Zc:d},set:function(v){d=v}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(v){p=v}});var B="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!B||this instanceof Io||this instanceof Ba))return Rl(B,this.objId,this.scope)},set:function(v){v=v.toString(),B=v}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof Nt?w:Rl(w,this.objId,this.scope)},set:function(v){v=v.toString(),w=this instanceof Nt?v:v.substr(0,1)==="("?ja(v.substr(1,v.length-2)):ja(v)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Nt?ja(w.substr(1,w.length-1)):w},set:function(v){v=v.toString(),w=this instanceof Nt?"/"+v:v}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Nt?g:Rl(g,this.objId,this.scope)},set:function(v){v=v.toString(),g=this instanceof Nt?v:v.substr(0,1)==="("?ja(v.substr(1,v.length-2)):ja(v)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Nt?ja(g.substr(1,g.length-1)):g},set:function(v){v=v.toString(),g=this instanceof Nt?"/"+v:v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var y,Q=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Q},set:function(v){v=!!v,Q=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(y)return y},set:function(v){y=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,1)},set:function(v){v?this.Ff=wt(this.Ff,1):this.Ff=vt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,2)},set:function(v){v?this.Ff=wt(this.Ff,2):this.Ff=vt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,3)},set:function(v){v?this.Ff=wt(this.Ff,3):this.Ff=vt(this.Ff,3)}});var _=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_!==null)return _},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');_=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(_){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:_=2;break;case"center":case 1:_=1;break;case"left":case 0:default:_=0}}})};lr(Or,Jr);var ii=function(){Or.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){t=A}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ed(e,this.objId,this.scope)},set:function(A){var r,a;a=[],typeof(r=A)=="string"&&(a=function(i,o,l){l||(l=1);for(var u,d=[];u=o.exec(i);)d.push(u[l]);return d}(r,/\((.*?)\)/g)),e=a}}),this.getOptions=function(){return e},this.setOptions=function(A){e=A,this.sort&&e.sort()},this.addOption=function(A){A=(A=A||"").toString(),e.push(A),this.sort&&e.sort()},this.removeOption=function(A,r){for(r=r||!1,A=(A=A||"").toString();e.indexOf(A)!==-1&&(e.splice(e.indexOf(A),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,18)},set:function(A){A?this.Ff=wt(this.Ff,18):this.Ff=vt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,19)},set:function(A){this.combo===!0&&(A?this.Ff=wt(this.Ff,19):this.Ff=vt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,20)},set:function(A){A?(this.Ff=wt(this.Ff,20),e.sort()):this.Ff=vt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,22)},set:function(A){A?this.Ff=wt(this.Ff,22):this.Ff=vt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,23)},set:function(A){A?this.Ff=wt(this.Ff,23):this.Ff=vt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,27)},set:function(A){A?this.Ff=wt(this.Ff,27):this.Ff=vt(this.Ff,27)}}),this.hasAppearanceStream=!1};lr(ii,Or);var si=function(){ii.call(this),this.fontName="helvetica",this.combo=!1};lr(si,ii);var oi=function(){si.call(this),this.combo=!0};lr(oi,si);var Fo=function(){oi.call(this),this.edit=!0};lr(Fo,oi);var Nt=function(){Or.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,15)},set:function(A){A?this.Ff=wt(this.Ff,15):this.Ff=vt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,16)},set:function(A){A?this.Ff=wt(this.Ff,16):this.Ff=vt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,17)},set:function(A){A?this.Ff=wt(this.Ff,17):this.Ff=vt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,26)},set:function(A){A?this.Ff=wt(this.Ff,26):this.Ff=vt(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(i){return i};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,a=[];for(r in a.push("<<"),e)a.push("/"+r+" ("+va(A(e[r]))+")");return a.push(">>"),a.join(`
147
+ `)}},set:function(A){ze(A)==="object"&&(e=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(A){typeof A=="string"&&(e.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(A){t="/"+A}})};lr(Nt,Or);var Qo=function(){Nt.call(this),this.pushButton=!0};lr(Qo,Nt);var li=function(){Nt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};lr(li,Nt);var Io=function(){var t,e;Or.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(a){e=a}});var A,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),r)o.push("/"+i+" ("+va(a(r[i]))+")");return o.push(">>"),o.join(`
148
+ `)},set:function(a){ze(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(a){A=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(a){A="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ge.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};lr(Io,Or),li.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var A=this.Kids[e];A.appearanceStreamContent=t.createAppearanceStream(A.optionName),A.caption=t.getCA()}},li.prototype.createOption=function(t){var e=new Io;return e.Parent=this,e.optionName=t,this.Kids.push(e),nm.call(this.scope,e),e};var Eo=function(){Nt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ge.CheckBox.createAppearanceStream()};lr(Eo,Nt);var Ba=function(){Or.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,13)},set:function(e){e?this.Ff=wt(this.Ff,13):this.Ff=vt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,21)},set:function(e){e?this.Ff=wt(this.Ff,21):this.Ff=vt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,23)},set:function(e){e?this.Ff=wt(this.Ff,23):this.Ff=vt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,24)},set:function(e){e?this.Ff=wt(this.Ff,24):this.Ff=vt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,25)},set:function(e){e?this.Ff=wt(this.Ff,25):this.Ff=vt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,26)},set:function(e){e?this.Ff=wt(this.Ff,26):this.Ff=vt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};lr(Ba,Or);var Uo=function(){Ba.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!mt(this.Ff,14)},set:function(t){t?this.Ff=wt(this.Ff,14):this.Ff=vt(this.Ff,14)}}),this.password=!0};lr(Uo,Ba);var ge={CheckBox:{createAppearanceStream:function(){return{N:{On:ge.CheckBox.YesNormal},D:{On:ge.CheckBox.YesPushDown,Off:ge.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Xr(t);e.scope=t.scope;var A=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),i=bc(t,t.caption);return A.push("0.749023 g"),A.push("0 0 "+Ne(ge.internal.getWidth(t))+" "+Ne(ge.internal.getHeight(t))+" re"),A.push("f"),A.push("BMC"),A.push("q"),A.push("0 0 1 rg"),A.push("/"+r+" "+Ne(i.fontSize)+" Tf "+a),A.push("BT"),A.push(i.text),A.push("ET"),A.push("Q"),A.push("EMC"),e.stream=A.join(`
149
+ `),e},YesNormal:function(t){var e=Xr(t);e.scope=t.scope;var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),a=[],i=ge.internal.getHeight(t),o=ge.internal.getWidth(t),l=bc(t,t.caption);return a.push("1 g"),a.push("0 0 "+Ne(o)+" "+Ne(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Ne(o-1)+" "+Ne(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+A+" "+Ne(l.fontSize)+" Tf "+r),a.push(l.text),a.push("ET"),a.push("Q"),e.stream=a.join(`
150
+ `),e},OffPushDown:function(t){var e=Xr(t);e.scope=t.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+Ne(ge.internal.getWidth(t))+" "+Ne(ge.internal.getHeight(t))+" re"),A.push("f"),e.stream=A.join(`
151
+ `),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:ge.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=ge.RadioButton.Circle.YesNormal,e.D[t]=ge.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Xr(t);e.scope=t.scope;var A=[],r=ge.internal.getWidth(t)<=ge.internal.getHeight(t)?ge.internal.getWidth(t)/4:ge.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=ge.internal.Bezier_C,i=Number((r*a).toFixed(5));return A.push("q"),A.push("1 0 0 1 "+Vn(ge.internal.getWidth(t)/2)+" "+Vn(ge.internal.getHeight(t)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join(`
152
+ `),e},YesPushDown:function(t){var e=Xr(t);e.scope=t.scope;var A=[],r=ge.internal.getWidth(t)<=ge.internal.getHeight(t)?ge.internal.getWidth(t)/4:ge.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),i=Number((a*ge.internal.Bezier_C).toFixed(5)),o=Number((r*ge.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+Vn(ge.internal.getWidth(t)/2)+" "+Vn(ge.internal.getHeight(t)/2)+" cm"),A.push(a+" 0 m"),A.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),A.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),A.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),A.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+Vn(ge.internal.getWidth(t)/2)+" "+Vn(ge.internal.getHeight(t)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),A.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),A.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),A.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join(`
153
+ `),e},OffPushDown:function(t){var e=Xr(t);e.scope=t.scope;var A=[],r=ge.internal.getWidth(t)<=ge.internal.getHeight(t)?ge.internal.getWidth(t)/4:ge.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),i=Number((a*ge.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+Vn(ge.internal.getWidth(t)/2)+" "+Vn(ge.internal.getHeight(t)/2)+" cm"),A.push(a+" 0 m"),A.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),A.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),A.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),A.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join(`
154
+ `),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:ge.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=ge.RadioButton.Cross.YesNormal,e.D[t]=ge.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Xr(t);e.scope=t.scope;var A=[],r=ge.internal.calculateCross(t);return A.push("q"),A.push("1 1 "+Ne(ge.internal.getWidth(t)-2)+" "+Ne(ge.internal.getHeight(t)-2)+" re"),A.push("W"),A.push("n"),A.push(Ne(r.x1.x)+" "+Ne(r.x1.y)+" m"),A.push(Ne(r.x2.x)+" "+Ne(r.x2.y)+" l"),A.push(Ne(r.x4.x)+" "+Ne(r.x4.y)+" m"),A.push(Ne(r.x3.x)+" "+Ne(r.x3.y)+" l"),A.push("s"),A.push("Q"),e.stream=A.join(`
155
+ `),e},YesPushDown:function(t){var e=Xr(t);e.scope=t.scope;var A=ge.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ne(ge.internal.getWidth(t))+" "+Ne(ge.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ne(ge.internal.getWidth(t)-2)+" "+Ne(ge.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ne(A.x1.x)+" "+Ne(A.x1.y)+" m"),r.push(Ne(A.x2.x)+" "+Ne(A.x2.y)+" l"),r.push(Ne(A.x4.x)+" "+Ne(A.x4.y)+" m"),r.push(Ne(A.x3.x)+" "+Ne(A.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
156
+ `),e},OffPushDown:function(t){var e=Xr(t);e.scope=t.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+Ne(ge.internal.getWidth(t))+" "+Ne(ge.internal.getHeight(t))+" re"),A.push("f"),e.stream=A.join(`
157
+ `),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,A=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+A}};ge.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=ge.internal.getWidth(t),A=ge.internal.getHeight(t),r=Math.min(e,A);return{x1:{x:(e-r)/2,y:(A-r)/2+r},x2:{x:(e-r)/2+r,y:(A-r)/2},x3:{x:(e-r)/2,y:(A-r)/2},x4:{x:(e-r)/2+r,y:(A-r)/2+r}}}},ge.internal.getWidth=function(t){var e=0;return ze(t)==="object"&&(e=qu(t.Rect[2])),e},ge.internal.getHeight=function(t){var e=0;return ze(t)==="object"&&(e=qu(t.Rect[3])),e};var nm=ft.addField=function(t){if(rm(this,t),!(t instanceof Or))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};ft.AcroFormChoiceField=ii,ft.AcroFormListBox=si,ft.AcroFormComboBox=oi,ft.AcroFormEditBox=Fo,ft.AcroFormButton=Nt,ft.AcroFormPushButton=Qo,ft.AcroFormRadioButton=li,ft.AcroFormCheckBox=Eo,ft.AcroFormTextField=Ba,ft.AcroFormPasswordField=Uo,ft.AcroFormAppearance=ge,ft.AcroForm={ChoiceField:ii,ListBox:si,ComboBox:oi,EditBox:Fo,Button:Nt,PushButton:Qo,RadioButton:li,CheckBox:Eo,TextField:Ba,PasswordField:Uo,Appearance:ge},Ee.AcroForm={ChoiceField:ii,ListBox:si,ComboBox:oi,EditBox:Fo,Button:Nt,PushButton:Qo,RadioButton:li,CheckBox:Eo,TextField:Ba,PasswordField:Uo,Appearance:ge};Ee.AcroForm;function kd(t){return t.reduce(function(e,A,r){return e[A]=r,e},{})}(function(t){t.__addimage__={};var e="UNKNOWN",A={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(I,x){var R,k,X,$,j,V=e;if((x=x||e)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(Y(I))for(j in A)for(X=A[j],R=0;R<X.length;R+=1){for($=!0,k=0;k<X[R].length;k+=1)if(X[R][k]!==void 0&&X[R][k]!==I[k]){$=!1;break}if($===!0){V=j;break}}else for(j in A)for(X=A[j],R=0;R<X.length;R+=1){for($=!0,k=0;k<X[R].length;k+=1)if(X[R][k]!==void 0&&X[R][k]!==I.charCodeAt(k)){$=!1;break}if($===!0){V=j;break}}return V===e&&x!==e&&(V=x),V},a=function I(x){for(var R=this.internal.write,k=this.internal.putStream,X=(0,this.internal.getFilters)();X.indexOf("FlateEncode")!==-1;)X.splice(X.indexOf("FlateEncode"),1);x.objectId=this.internal.newObject();var $=[];if($.push({key:"Type",value:"/XObject"}),$.push({key:"Subtype",value:"/Image"}),$.push({key:"Width",value:x.width}),$.push({key:"Height",value:x.height}),x.colorSpace===_.INDEXED?$.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(x.palette.length/3-1)+" "+("sMask"in x&&x.sMask!==void 0?x.objectId+2:x.objectId+1)+" 0 R]"}):($.push({key:"ColorSpace",value:"/"+x.colorSpace}),x.colorSpace===_.DEVICE_CMYK&&$.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),$.push({key:"BitsPerComponent",value:x.bitsPerComponent}),"decodeParameters"in x&&x.decodeParameters!==void 0&&$.push({key:"DecodeParms",value:"<<"+x.decodeParameters+">>"}),"transparency"in x&&Array.isArray(x.transparency)){for(var j="",V=0,AA=x.transparency.length;V<AA;V++)j+=x.transparency[V]+" "+x.transparency[V]+" ";$.push({key:"Mask",value:"["+j+"]"})}x.sMask!==void 0&&$.push({key:"SMask",value:x.objectId+1+" 0 R"});var sA=x.filter!==void 0?["/"+x.filter]:void 0;if(k({data:x.data,additionalKeyValues:$,alreadyAppliedFilters:sA,objectId:x.objectId}),R("endobj"),"sMask"in x&&x.sMask!==void 0){var DA="/Predictor "+x.predictor+" /Colors 1 /BitsPerComponent "+x.bitsPerComponent+" /Columns "+x.width,F={width:x.width,height:x.height,colorSpace:"DeviceGray",bitsPerComponent:x.bitsPerComponent,decodeParameters:DA,data:x.sMask};"filter"in x&&(F.filter=x.filter),I.call(this,F)}if(x.colorSpace===_.INDEXED){var D=this.internal.newObject();k({data:P(new Uint8Array(x.palette)),objectId:D}),R("endobj")}},i=function(){var I=this.internal.collections.addImage_images;for(var x in I)a.call(this,I[x])},o=function(){var I,x=this.internal.collections.addImage_images,R=this.internal.write;for(var k in x)R("/I"+(I=x[k]).index,I.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},u=function(){var I=this.internal.collections.addImage_images;return l.call(this),I},d=function(){return Object.keys(this.internal.collections.addImage_images).length},p=function(I){return typeof t["process"+I.toUpperCase()]=="function"},B=function(I){return ze(I)==="object"&&I.nodeType===1},w=function(I,x){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var R=""+I.getAttribute("src");if(R.indexOf("data:image/")===0)return ts(unescape(R).split("base64,").pop());var k=t.loadFile(R,!0);if(k!==void 0)return k}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var X;switch(x){case"PNG":X="image/png";break;case"WEBP":X="image/webp";break;case"JPEG":case"JPG":default:X="image/jpeg"}return ts(I.toDataURL(X,1).split("base64,").pop())}},g=function(I){var x=this.internal.collections.addImage_images;if(x){for(var R in x)if(I===x[R].alias)return x[R]}},y=function(I,x,R){return I||x||(I=-96,x=-96),I<0&&(I=-1*R.width*72/I/this.internal.scaleFactor),x<0&&(x=-1*R.height*72/x/this.internal.scaleFactor),I===0&&(I=x*R.width/R.height),x===0&&(x=I*R.height/R.width),[I,x]},Q=function(I,x,R,k,X,$){var j=y.call(this,R,k,X),V=this.internal.getCoordinateString,AA=this.internal.getVerticalCoordinateString,sA=u.call(this);if(R=j[0],k=j[1],sA[X.index]=X,$){$*=Math.PI/180;var DA=Math.cos($),F=Math.sin($),D=function(K){return K.toFixed(4)},T=[D(DA),D(F),D(-1*F),D(DA),0,0,"cm"]}this.internal.write("q"),$?(this.internal.write([1,"0","0",1,V(I),AA(x+k),"cm"].join(" ")),this.internal.write(T.join(" ")),this.internal.write([V(R),"0","0",V(k),"0","0","cm"].join(" "))):this.internal.write([V(R),"0","0",V(k),V(I),AA(x+k),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+X.index+" Do"),this.internal.write("Q")},_=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},U=t.__addimage__.sHashCode=function(I){var x,R,k=0;if(typeof I=="string")for(R=I.length,x=0;x<R;x++)k=(k<<5)-k+I.charCodeAt(x),k|=0;else if(Y(I))for(R=I.byteLength/2,x=0;x<R;x++)k=(k<<5)-k+I[x],k|=0;return k},M=t.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var x=!0;return I.length===0&&(x=!1),I.length%4!=0&&(x=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(x=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(x=!1),x},J=t.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var x=I.indexOf(",");return x<0?null:I.substring(0,x).trim().endsWith("base64")?I.substring(x+1):null},Z=t.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};t.__addimage__.isArrayBuffer=function(I){return Z()&&I instanceof ArrayBuffer};var Y=t.__addimage__.isArrayBufferView=function(I){return Z()&&typeof Uint32Array<"u"&&(I instanceof Int8Array||I instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array)},G=t.__addimage__.binaryStringToUint8Array=function(I){for(var x=I.length,R=new Uint8Array(x),k=0;k<x;k++)R[k]=I.charCodeAt(k);return R},P=t.__addimage__.arrayBufferToBinaryString=function(I){for(var x="",R=Y(I)?I:new Uint8Array(I),k=0;k<R.length;k+=8192)x+=String.fromCharCode.apply(null,R.subarray(k,k+8192));return x};t.addImage=function(){var I,x,R,k,X,$,j,V,AA;if(typeof arguments[1]=="number"?(x=e,R=arguments[1],k=arguments[2],X=arguments[3],$=arguments[4],j=arguments[5],V=arguments[6],AA=arguments[7]):(x=arguments[1],R=arguments[2],k=arguments[3],X=arguments[4],$=arguments[5],j=arguments[6],V=arguments[7],AA=arguments[8]),ze(I=arguments[0])==="object"&&!B(I)&&"imageData"in I){var sA=I;I=sA.imageData,x=sA.format||x||e,R=sA.x||R||0,k=sA.y||k||0,X=sA.w||sA.width||X,$=sA.h||sA.height||$,j=sA.alias||j,V=sA.compression||V,AA=sA.rotation||sA.angle||AA}var DA=this.internal.getFilters();if(V===void 0&&DA.indexOf("FlateEncode")!==-1&&(V="SLOW"),isNaN(R)||isNaN(k))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var F=z.call(this,I,x,j,V);return Q.call(this,R,k,X,$,F,AA),this};var z=function(I,x,R,k){var X,$,j;if(typeof I=="string"&&r(I)===e){I=unescape(I);var V=fA(I,!1);(V!==""||(V=t.loadFile(I,!0))!==void 0)&&(I=V)}if(B(I)&&(I=w(I,x)),x=r(I,x),!p(x))throw new Error("addImage does not support files of type '"+x+"', please ensure that a plugin for '"+x+"' support is added.");if(((j=R)==null||j.length===0)&&(R=function(AA){return typeof AA=="string"||Y(AA)?U(AA):Y(AA.data)?U(AA.data):null}(I)),(X=g.call(this,R))||(Z()&&(I instanceof Uint8Array||x==="RGBA"||($=I,I=G(I))),X=this["process"+x.toUpperCase()](I,d.call(this),R,function(AA){return AA&&typeof AA=="string"&&(AA=AA.toUpperCase()),AA in t.image_compression?AA:v.NONE}(k),$)),!X)throw new Error("An unknown error occurred whilst processing the image.");return X},fA=t.__addimage__.convertBase64ToBinaryString=function(I,x){x=typeof x!="boolean"||x;var R,k="";if(typeof I=="string"){var X;R=(X=J(I))!==null&&X!==void 0?X:I;try{k=ts(R)}catch($){if(x)throw M(R)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+$.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return k};t.getImageProperties=function(I){var x,R,k="";if(B(I)&&(I=w(I)),typeof I=="string"&&r(I)===e&&((k=fA(I,!1))===""&&(k=t.loadFile(I)||""),I=k),R=r(I),!p(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(!Z()||I instanceof Uint8Array||(I=G(I)),!(x=this["process"+R.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return x.fileType=R,x}})(Ee.API),function(t){var e=function(A){if(A!==void 0&&A!="")return!0};Ee.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(A){for(var r,a,i,o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(A.objId),d=A.pageContext.annotations,p=!1,B=0;B<d.length&&!p;B++)switch((r=d[B]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(p=!0);break;case"reference":case"text":case"freetext":p=!0}if(p!=0){this.internal.write("/Annots [");for(var w=0;w<d.length;w++){r=d[w];var g=this.internal.pdfEscape,y=this.internal.getEncryptor(A.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var Q=this.internal.newAdditionalObject(),_=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(Q.objId),U=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+o(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+g(v(r.contents))+")",i+=" /Popup "+_.objId+" 0 R",i+=" /P "+u.objId+" 0 R",i+=" /T ("+g(v(U))+") >>",Q.content=i;var M=Q.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+o(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+M,r.open&&(i+=" /Open true"),i+=" >>",_.content=i,this.internal.write(Q.objId,"0 R",_.objId,"0 R");break;case"freetext":a="/Rect ["+o(r.bounds.x)+" "+l(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var J=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+g(y(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+J+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var Z=this.annotations._nameMap[r.options.name];r.options.pageNumber=Z.page,r.options.top=Z.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+g(y(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var Y=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+Y+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(A){var r=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":r.pageContext.annotations.push(A)}},t.link=function(A,r,a,i,o){var l=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:u(A),y:d(r),w:u(A+a),h:d(r+i)},options:o,type:"link"})},t.textWithLink=function(A,r,a,i){var o,l,u=this.getTextWidth(A),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){l=i.maxWidth;var p=this.splitTextToSize(A,l).length;o=Math.ceil(d*p)}else l=u,o=d;return this.text(A,r,a,i),a+=.2*d,i.align==="center"&&(r-=u/2),i.align==="right"&&(r-=u),this.link(r,a-d,l,o,i),u},t.getTextWidth=function(A){var r=this.internal.getFontSize();return this.getStringUnitWidth(A)*r/this.internal.scaleFactor}}(Ee.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},A={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(Q){return e[Q.charCodeAt(0)]!==void 0},o=t.__arabicParser__.isArabicLetter=function(Q){return typeof Q=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Q)},l=t.__arabicParser__.isArabicEndLetter=function(Q){return o(Q)&&i(Q)&&e[Q.charCodeAt(0)].length<=2},u=t.__arabicParser__.isArabicAlfLetter=function(Q){return o(Q)&&a.indexOf(Q.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(Q){return o(Q)&&i(Q)&&e[Q.charCodeAt(0)].length>=1};var d=t.__arabicParser__.arabicLetterHasFinalForm=function(Q){return o(Q)&&i(Q)&&e[Q.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(Q){return o(Q)&&i(Q)&&e[Q.charCodeAt(0)].length>=3};var p=t.__arabicParser__.arabicLetterHasMedialForm=function(Q){return o(Q)&&i(Q)&&e[Q.charCodeAt(0)].length==4},B=t.__arabicParser__.resolveLigatures=function(Q){var _=0,v=A,U="",M=0;for(_=0;_<Q.length;_+=1)v[Q.charCodeAt(_)]!==void 0?(M++,typeof(v=v[Q.charCodeAt(_)])=="number"&&(U+=String.fromCharCode(v),v=A,M=0),_===Q.length-1&&(v=A,U+=Q.charAt(_-(M-1)),_-=M-1,M=0)):(v=A,U+=Q.charAt(_-M),_-=M,M=0);return U};t.__arabicParser__.isArabicDiacritic=function(Q){return Q!==void 0&&r[Q.charCodeAt(0)]!==void 0};var w=t.__arabicParser__.getCorrectForm=function(Q,_,v){return o(Q)?i(Q)===!1?-1:!d(Q)||!o(_)&&!o(v)||!o(v)&&l(_)||l(Q)&&!o(_)||l(Q)&&u(_)||l(Q)&&l(_)?0:p(Q)&&o(_)&&!l(_)&&o(v)&&d(v)?3:l(Q)||!o(v)?1:2:-1},g=function(Q){var _=0,v=0,U=0,M="",J="",Z="",Y=(Q=Q||"").split("\\s+"),G=[];for(_=0;_<Y.length;_+=1){for(G.push(""),v=0;v<Y[_].length;v+=1)M=Y[_][v],J=Y[_][v-1],Z=Y[_][v+1],o(M)?(U=w(M,J,Z),G[_]+=U!==-1?String.fromCharCode(e[M.charCodeAt(0)][U]):M):G[_]+=M;G[_]=B(G[_])}return G.join(" ")},y=t.__arabicParser__.processArabic=t.processArabic=function(){var Q,_=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(_)){var U=0;for(v=[],U=0;U<_.length;U+=1)Array.isArray(_[U])?v.push([g(_[U][0]),_[U][1],_[U][2]]):v.push([g(_[U])]);Q=v}else Q=g(_);return typeof arguments[0]=="string"?Q:(arguments[0].text=Q,arguments[0])};t.events.push(["preProcessText",y])}(Ee.API),Ee.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(t){var e=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(l){A=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(l){i=l}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(l){o=l}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(A,r){var a;if((A=A||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ee.API),function(t){var e={left:0,top:0,bottom:0,right:0},A=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(Q){u=Q}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(Q){d=Q}});var p=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return p},set:function(Q){p=Q}});var B=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return B},set:function(Q){B=Q}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(Q){w=Q}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(Q){g=Q}});var y=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return y},set:function(Q){y=Q}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(u){return r.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},t.getTextDimensions=function(u,d){r.call(this);var p=(d=d||{}).fontSize||this.getFontSize(),B=d.font||this.getFont(),w=d.scaleFactor||this.internal.scaleFactor,g=0,y=0,Q=0,_=this;if(!Array.isArray(u)&&typeof u!="string"){if(typeof u!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var v=d.maxWidth;v>0?typeof u=="string"?u=this.splitTextToSize(u,v):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(M,J){return M.concat(_.splitTextToSize(J,v))},[])):u=Array.isArray(u)?u:[u];for(var U=0;U<u.length;U++)g<(Q=this.getStringUnitWidth(u[U],{font:B})*p)&&(g=Q);return g!==0&&(y=u.length),{w:g/=w,h:Math.max((y*p*this.getLineHeightFactor()-p*(this.getLineHeightFactor()-1))/w,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var u=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var u;u=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var d=this.internal.__cell__.lastCell,p=this.internal.__cell__.padding,B=this.internal.__cell__.margins||e,w=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===u.lineNumber?(u.x=(d.x||0)+(d.width||0),u.y=d.y||0):d.y+d.height+u.height+B.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=B.top,g&&w&&(this.printHeaderRow(u.lineNumber,!0),u.y+=w[0].height)):u.y=d.y+d.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,A===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-p,u.y+p,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+p,{align:"center",baseline:"top",maxWidth:u.width-p-p}):this.text(u.text,u.x+p,u.y+p,{align:"left",baseline:"top",maxWidth:u.width-p-p})),this.internal.__cell__.lastCell=u,this};t.table=function(u,d,p,B,w){if(r.call(this),!p)throw new Error("No data for PDF table.");var g,y,Q,_,v=[],U=[],M=[],J={},Z={},Y=[],G=[],P=(w=w||{}).autoSize||!1,z=w.printHeaders!==!1,fA=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,I=w.margins||Object.assign({width:this.getPageWidth()},e),x=typeof w.padding=="number"?w.padding:3,R=w.headerBackgroundColor||"#c8c8c8",k=w.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=z,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=fA,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=R,this.internal.__cell__.headerTextColor=k,this.setFontSize(fA),B==null)U=v=Object.keys(p[0]),M=v.map(function(){return"left"});else if(Array.isArray(B)&&ze(B[0])==="object")for(v=B.map(function(sA){return sA.name}),U=B.map(function(sA){return sA.prompt||sA.name||""}),M=B.map(function(sA){return sA.align||"left"}),g=0;g<B.length;g+=1)Z[B[g].name]=B[g].width*(19.049976/25.4);else Array.isArray(B)&&typeof B[0]=="string"&&(U=v=B,M=v.map(function(){return"left"}));if(P||Array.isArray(B)&&typeof B[0]=="string")for(g=0;g<v.length;g+=1){for(J[_=v[g]]=p.map(function(sA){return sA[_]}),this.setFont(void 0,"bold"),Y.push(this.getTextDimensions(U[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),y=J[_],this.setFont(void 0,"normal"),Q=0;Q<y.length;Q+=1)Y.push(this.getTextDimensions(y[Q],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Z[_]=Math.max.apply(null,Y)+x+x,Y=[]}if(z){var X={};for(g=0;g<v.length;g+=1)X[v[g]]={},X[v[g]].text=U[g],X[v[g]].align=M[g];var $=l.call(this,X,Z);G=v.map(function(sA){return new i(u,d,Z[sA],$,X[sA].text,void 0,X[sA].align)}),this.setTableHeaderRow(G),this.printHeaderRow(1,!1)}var j=B.reduce(function(sA,DA){return sA[DA.name]=DA.align,sA},{});for(g=0;g<p.length;g+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:g,data:p[g]},this);var V=l.call(this,p[g],Z);for(Q=0;Q<v.length;Q+=1){var AA=p[g][v[Q]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:g,col:Q,data:AA},this),o.call(this,new i(u,d,Z[v[Q]],V,AA,g+2,j[v[Q]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=d,this};var l=function(u,d){var p=this.internal.__cell__.padding,B=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(u).map(function(g){var y=u[g];return this.splitTextToSize(y.hasOwnProperty("text")?y.text:y,d[g]-p-p)},this).map(function(g){return this.getLineHeightFactor()*g.length*B/w+p+p},this).reduce(function(g,y){return Math.max(g,y)},0)};t.setTableHeaderRow=function(u){r.call(this),this.internal.__cell__.tableHeaderRow=u},t.printHeaderRow=function(u,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var p;if(A=!0,typeof this.internal.__cell__.headerFunction=="function"){var B=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(B[0],B[1],B[2],B[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){p=this.internal.__cell__.tableHeaderRow[g].clone(),d&&(p.y=this.internal.__cell__.margins.top||0,w.push(p)),p.lineNumber=u;var y=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,p),this.setTextColor(y)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),A=!1}}(Ee.API);var xd={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Sd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Fc=kd(Sd),Dd=[100,200,300,400,500,600,700,800,900],am=kd(Dd);function Qc(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),A=function(i){return xd[i=i||"normal"]?i:"normal"}(t.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(t.weight),a=function(i){return typeof Fc[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:e,style:A,weight:r,stretch:a,src:t.src||[],ref:t.ref||{name:e,style:[a,A,r].join(" ")}}}function Wu(t,e,A,r){var a;for(a=A;a>=0&&a<e.length;a+=r)if(t[e[a]])return t[e[a]];for(a=A;a>=0&&a<e.length;a-=r)if(t[e[a]])return t[e[a]]}var im={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Yu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function zu(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function sm(t,e,A){for(var r=(A=A||{}).defaultFontFamily||"times",a=Object.assign({},im,A.genericFontFamilies||{}),i=null,o=null,l=0;l<e.length;++l)if(a[(i=Qc(e[l])).family]&&(i.family=a[i.family]),t.hasOwnProperty(i.family)){o=t[i.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+zu(i)+"' and default family '"+r+"'.");if(o=function(u,d){if(d[u])return d[u];var p=Fc[u],B=p<=Fc.normal?-1:1,w=Wu(d,Sd,p,B);if(!w)throw new Error("Could not find a matching font-stretch value for "+u);return w}(i.stretch,o),o=function(u,d){if(d[u])return d[u];for(var p=xd[u],B=0;B<p.length;++B)if(d[p[B]])return d[p[B]];throw new Error("Could not find a matching font-style for "+u)}(i.style,o),!(o=function(u,d){if(d[u])return d[u];if(u===400&&d[500])return d[500];if(u===500&&d[400])return d[400];var p=am[u],B=Wu(d,Dd,p,u<400?-1:1);if(!B)throw new Error("Could not find a matching font-weight for value "+u);return B}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+zu(i)+"'.");return o}function $u(t){return t.trimLeft()}function om(t,e){for(var A=0;A<t.length;){if(t.charAt(A)===e)return[t.substring(0,A),t.substring(A+1)];A+=1}return null}function lm(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var Xs,Xu,Ju,Vl=["times"];(function(t){var e,A,r,a,i,o,l,u,d,p=function(F){return F=F||{},this.isStrokeTransparent=F.isStrokeTransparent||!1,this.strokeOpacity=F.strokeOpacity||1,this.strokeStyle=F.strokeStyle||"#000000",this.fillStyle=F.fillStyle||"#000000",this.isFillTransparent=F.isFillTransparent||!1,this.fillOpacity=F.fillOpacity||1,this.font=F.font||"10px sans-serif",this.textBaseline=F.textBaseline||"alphabetic",this.textAlign=F.textAlign||"left",this.lineWidth=F.lineWidth||1,this.lineJoin=F.lineJoin||"miter",this.lineCap=F.lineCap||"butt",this.path=F.path||[],this.transform=F.transform!==void 0?F.transform.clone():new u,this.globalCompositeOperation=F.globalCompositeOperation||"normal",this.globalAlpha=F.globalAlpha||1,this.clip_path=F.clip_path||[],this.currentPoint=F.currentPoint||new o,this.miterLimit=F.miterLimit||10,this.lastPoint=F.lastPoint||new o,this.lineDashOffset=F.lineDashOffset||0,this.lineDash=F.lineDash||[],this.margin=F.margin||[0,0,0,0],this.prevPageLastElemOffset=F.prevPageLastElemOffset||0,this.ignoreClearRect=typeof F.ignoreClearRect!="boolean"||F.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new B(this),e=this.internal.f2,A=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,d=new p}]);var B=function(F){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var D=F;Object.defineProperty(this,"pdf",{get:function(){return D}});var T=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return T},set:function(UA){T=!!UA}});var K=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return K},set:function(UA){K=!!UA}});var eA=0;Object.defineProperty(this,"posX",{get:function(){return eA},set:function(UA){isNaN(UA)||(eA=UA)}});var uA=0;Object.defineProperty(this,"posY",{get:function(){return uA},set:function(UA){isNaN(UA)||(uA=UA)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(UA){var S;typeof UA=="number"?S=[UA,UA,UA,UA]:((S=new Array(4))[0]=UA[0],S[1]=UA.length>=2?UA[1]:S[0],S[2]=UA.length>=3?UA[2]:S[0],S[3]=UA.length>=4?UA[3]:S[1]),d.margin=S}});var dA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return dA},set:function(UA){dA=UA}});var lA=0;Object.defineProperty(this,"lastBreak",{get:function(){return lA},set:function(UA){lA=UA}});var WA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return WA},set:function(UA){WA=UA}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(UA){UA instanceof p&&(d=UA)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(UA){d.path=UA}});var NA=[];Object.defineProperty(this,"ctxStack",{get:function(){return NA},set:function(UA){NA=UA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(UA){var S;S=w(UA),this.ctx.fillStyle=S.style,this.ctx.isFillTransparent=S.a===0,this.ctx.fillOpacity=S.a,this.pdf.setFillColor(S.r,S.g,S.b,{a:S.a}),this.pdf.setTextColor(S.r,S.g,S.b,{a:S.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(UA){var S=w(UA);this.ctx.strokeStyle=S.style,this.ctx.isStrokeTransparent=S.a===0,this.ctx.strokeOpacity=S.a,S.a===0?this.pdf.setDrawColor(255,255,255):(S.a,this.pdf.setDrawColor(S.r,S.g,S.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(UA){["butt","round","square"].indexOf(UA)!==-1&&(this.ctx.lineCap=UA,this.pdf.setLineCap(UA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(UA){isNaN(UA)||(this.ctx.lineWidth=UA,this.pdf.setLineWidth(UA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(UA){["bevel","round","miter"].indexOf(UA)!==-1&&(this.ctx.lineJoin=UA,this.pdf.setLineJoin(UA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(UA){isNaN(UA)||(this.ctx.miterLimit=UA,this.pdf.setMiterLimit(UA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(UA){this.ctx.textBaseline=UA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(UA){["right","end","center","left","start"].indexOf(UA)!==-1&&(this.ctx.textAlign=UA)}});var JA=null;function jA(UA,S){if(JA===null){var FA=function(KA){var GA=[];return Object.keys(KA).forEach(function($A){KA[$A].forEach(function(ee){var RA=null;switch(ee){case"bold":RA={family:$A,weight:"bold"};break;case"italic":RA={family:$A,style:"italic"};break;case"bolditalic":RA={family:$A,weight:"bold",style:"italic"};break;case"":case"normal":RA={family:$A}}RA!==null&&(RA.ref={name:$A,style:ee},GA.push(RA))})}),GA}(UA.getFontList());JA=function(KA){for(var GA={},$A=0;$A<KA.length;++$A){var ee=Qc(KA[$A]),RA=ee.family,ne=ee.stretch,he=ee.style,ve=ee.weight;GA[RA]=GA[RA]||{},GA[RA][ne]=GA[RA][ne]||{},GA[RA][ne][he]=GA[RA][ne][he]||{},GA[RA][ne][he][ve]=ee}return GA}(FA.concat(S))}return JA}var de=null;Object.defineProperty(this,"fontFaces",{get:function(){return de},set:function(UA){JA=null,de=UA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(UA){var S;if(this.ctx.font=UA,(S=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(UA))!==null){var FA=S[1];S[2];var KA=S[3],GA=S[4];S[5];var $A=S[6],ee=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(GA)[2];GA=Math.floor(ee==="px"?parseFloat(GA)*this.pdf.internal.scaleFactor:ee==="em"?parseFloat(GA)*this.pdf.getFontSize():parseFloat(GA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(GA);var RA=function(me){var oA,pA,HA=[],qA=me.trim();if(qA==="")return Vl;if(qA in Yu)return[Yu[qA]];for(;qA!=="";){switch(pA=null,oA=(qA=$u(qA)).charAt(0)){case'"':case"'":pA=om(qA.substring(1),oA);break;default:pA=lm(qA)}if(pA===null||(HA.push(pA[0]),(qA=$u(pA[1]))!==""&&qA.charAt(0)!==","))return Vl;qA=qA.replace(/^,/,"")}return HA}($A);if(this.fontFaces){var ne=sm(jA(this.pdf,this.fontFaces),RA.map(function(me){return{family:me,stretch:"normal",weight:KA,style:FA}}));this.pdf.setFont(ne.ref.name,ne.ref.style)}else{var he="";(KA==="bold"||parseInt(KA,10)>=700||FA==="bold")&&(he="bold"),FA==="italic"&&(he+="italic"),he.length===0&&(he="normal");for(var ve="",be={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Se=0;Se<RA.length;Se++){if(this.pdf.internal.getFont(RA[Se],he,{noFallback:!0,disableWarning:!0})!==void 0){ve=RA[Se];break}if(he==="bolditalic"&&this.pdf.internal.getFont(RA[Se],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ve=RA[Se],he="bold";else if(this.pdf.internal.getFont(RA[Se],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ve=RA[Se],he="normal";break}}if(ve===""){for(var He=0;He<RA.length;He++)if(be[RA[He]]){ve=be[RA[He]];break}}ve=ve===""?"Times":ve,this.pdf.setFont(ve,he)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(UA){this.ctx.globalCompositeOperation=UA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(UA){this.ctx.globalAlpha=UA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(UA){this.ctx.lineDashOffset=UA,DA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(UA){this.ctx.lineDash=UA,DA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(UA){this.ctx.ignoreClearRect=!!UA}})};B.prototype.setLineDash=function(F){this.lineDash=F},B.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},B.prototype.fill=function(){J.call(this,"fill",!1)},B.prototype.stroke=function(){J.call(this,"stroke",!1)},B.prototype.beginPath=function(){this.path=[{type:"begin"}]},B.prototype.moveTo=function(F,D){if(isNaN(F)||isNaN(D))throw et.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var T=this.ctx.transform.applyToPoint(new o(F,D));this.path.push({type:"mt",x:T.x,y:T.y}),this.ctx.lastPoint=new o(F,D)},B.prototype.closePath=function(){var F=new o(0,0),D=0;for(D=this.path.length-1;D!==-1;D--)if(this.path[D].type==="begin"&&ze(this.path[D+1])==="object"&&typeof this.path[D+1].x=="number"){F=new o(this.path[D+1].x,this.path[D+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(F.x,F.y)},B.prototype.lineTo=function(F,D){if(isNaN(F)||isNaN(D))throw et.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var T=this.ctx.transform.applyToPoint(new o(F,D));this.path.push({type:"lt",x:T.x,y:T.y}),this.ctx.lastPoint=new o(T.x,T.y)},B.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),J.call(this,null,!0)},B.prototype.quadraticCurveTo=function(F,D,T,K){if(isNaN(T)||isNaN(K)||isNaN(F)||isNaN(D))throw et.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var eA=this.ctx.transform.applyToPoint(new o(T,K)),uA=this.ctx.transform.applyToPoint(new o(F,D));this.path.push({type:"qct",x1:uA.x,y1:uA.y,x:eA.x,y:eA.y}),this.ctx.lastPoint=new o(eA.x,eA.y)},B.prototype.bezierCurveTo=function(F,D,T,K,eA,uA){if(isNaN(eA)||isNaN(uA)||isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K))throw et.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var dA=this.ctx.transform.applyToPoint(new o(eA,uA)),lA=this.ctx.transform.applyToPoint(new o(F,D)),WA=this.ctx.transform.applyToPoint(new o(T,K));this.path.push({type:"bct",x1:lA.x,y1:lA.y,x2:WA.x,y2:WA.y,x:dA.x,y:dA.y}),this.ctx.lastPoint=new o(dA.x,dA.y)},B.prototype.arc=function(F,D,T,K,eA,uA){if(isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K)||isNaN(eA))throw et.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(uA=!!uA,!this.ctx.transform.isIdentity){var dA=this.ctx.transform.applyToPoint(new o(F,D));F=dA.x,D=dA.y;var lA=this.ctx.transform.applyToPoint(new o(0,T)),WA=this.ctx.transform.applyToPoint(new o(0,0));T=Math.sqrt(Math.pow(lA.x-WA.x,2)+Math.pow(lA.y-WA.y,2))}Math.abs(eA-K)>=2*Math.PI&&(K=0,eA=2*Math.PI),this.path.push({type:"arc",x:F,y:D,radius:T,startAngle:K,endAngle:eA,counterclockwise:uA})},B.prototype.arcTo=function(F,D,T,K,eA){throw new Error("arcTo not implemented.")},B.prototype.rect=function(F,D,T,K){if(isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K))throw et.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(F,D),this.lineTo(F+T,D),this.lineTo(F+T,D+K),this.lineTo(F,D+K),this.lineTo(F,D),this.lineTo(F+T,D),this.lineTo(F,D)},B.prototype.fillRect=function(F,D,T,K){if(isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K))throw et.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var eA={};this.lineCap!=="butt"&&(eA.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(eA.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(F,D,T,K),this.fill(),eA.hasOwnProperty("lineCap")&&(this.lineCap=eA.lineCap),eA.hasOwnProperty("lineJoin")&&(this.lineJoin=eA.lineJoin)}},B.prototype.strokeRect=function(F,D,T,K){if(isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K))throw et.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");y.call(this)||(this.beginPath(),this.rect(F,D,T,K),this.stroke())},B.prototype.clearRect=function(F,D,T,K){if(isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K))throw et.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(F,D,T,K))},B.prototype.save=function(F){F=typeof F!="boolean"||F;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,T=0;T<this.pdf.internal.getNumberOfPages();T++)this.pdf.setPage(T+1),this.pdf.internal.out("q");if(this.pdf.setPage(D),F){this.ctx.fontSize=this.pdf.internal.getFontSize();var K=new p(this.ctx);this.ctxStack.push(this.ctx),this.ctx=K}},B.prototype.restore=function(F){F=typeof F!="boolean"||F;for(var D=this.pdf.internal.getCurrentPageInfo().pageNumber,T=0;T<this.pdf.internal.getNumberOfPages();T++)this.pdf.setPage(T+1),this.pdf.internal.out("Q");this.pdf.setPage(D),F&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},B.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(F){var D,T,K,eA;if(F.isCanvasGradient===!0&&(F=F.getColor()),!F)return{r:0,g:0,b:0,a:0,style:F};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(F))D=0,T=0,K=0,eA=0;else{var uA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(F);if(uA!==null)D=parseInt(uA[1]),T=parseInt(uA[2]),K=parseInt(uA[3]),eA=1;else if((uA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(F))!==null)D=parseInt(uA[1]),T=parseInt(uA[2]),K=parseInt(uA[3]),eA=parseFloat(uA[4]);else{if(eA=1,typeof F=="string"&&F.charAt(0)!=="#"){var dA=new bd(F);F=dA.ok?dA.toHex():"#000000"}F.length===4?(D=F.substring(1,2),D+=D,T=F.substring(2,3),T+=T,K=F.substring(3,4),K+=K):(D=F.substring(1,3),T=F.substring(3,5),K=F.substring(5,7)),D=parseInt(D,16),T=parseInt(T,16),K=parseInt(K,16)}}return{r:D,g:T,b:K,a:eA,style:F}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},y=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};B.prototype.fillText=function(F,D,T,K){if(isNaN(D)||isNaN(T)||typeof F!="string")throw et.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(K=isNaN(K)?void 0:K,!g.call(this)){var eA=V(this.ctx.transform.rotation),uA=this.ctx.transform.scaleX;x.call(this,{text:F,x:D,y:T,scale:uA,angle:eA,align:this.textAlign,maxWidth:K})}},B.prototype.strokeText=function(F,D,T,K){if(isNaN(D)||isNaN(T)||typeof F!="string")throw et.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!y.call(this)){K=isNaN(K)?void 0:K;var eA=V(this.ctx.transform.rotation),uA=this.ctx.transform.scaleX;x.call(this,{text:F,x:D,y:T,scale:uA,renderingMode:"stroke",angle:eA,align:this.textAlign,maxWidth:K})}},B.prototype.measureText=function(F){if(typeof F!="string")throw et.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var D=this.pdf,T=this.pdf.internal.scaleFactor,K=D.internal.getFontSize(),eA=D.getStringUnitWidth(F)*K/D.internal.scaleFactor,uA=function(dA){var lA=(dA=dA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return lA}}),this};return new uA({width:eA*=Math.round(96*T/72*1e4)/1e4})},B.prototype.scale=function(F,D){if(isNaN(F)||isNaN(D))throw et.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var T=new u(F,0,0,D,0,0);this.ctx.transform=this.ctx.transform.multiply(T)},B.prototype.rotate=function(F){if(isNaN(F))throw et.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var D=new u(Math.cos(F),Math.sin(F),-Math.sin(F),Math.cos(F),0,0);this.ctx.transform=this.ctx.transform.multiply(D)},B.prototype.translate=function(F,D){if(isNaN(F)||isNaN(D))throw et.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var T=new u(1,0,0,1,F,D);this.ctx.transform=this.ctx.transform.multiply(T)},B.prototype.transform=function(F,D,T,K,eA,uA){if(isNaN(F)||isNaN(D)||isNaN(T)||isNaN(K)||isNaN(eA)||isNaN(uA))throw et.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var dA=new u(F,D,T,K,eA,uA);this.ctx.transform=this.ctx.transform.multiply(dA)},B.prototype.setTransform=function(F,D,T,K,eA,uA){F=isNaN(F)?1:F,D=isNaN(D)?0:D,T=isNaN(T)?0:T,K=isNaN(K)?1:K,eA=isNaN(eA)?0:eA,uA=isNaN(uA)?0:uA,this.ctx.transform=new u(F,D,T,K,eA,uA)};var Q=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};B.prototype.drawImage=function(F,D,T,K,eA,uA,dA,lA,WA){var NA=this.pdf.getImageProperties(F),JA=1,jA=1,de=1,UA=1;K!==void 0&&lA!==void 0&&(de=lA/K,UA=WA/eA,JA=NA.width/K*lA/K,jA=NA.height/eA*WA/eA),uA===void 0&&(uA=D,dA=T,D=0,T=0),K!==void 0&&lA===void 0&&(lA=K,WA=eA),K===void 0&&lA===void 0&&(lA=NA.width,WA=NA.height);for(var S,FA=this.ctx.transform.decompose(),KA=V(FA.rotate.shx),GA=new u,$A=(GA=(GA=(GA=GA.multiply(FA.translate)).multiply(FA.skew)).multiply(FA.scale)).applyToRectangle(new l(uA-D*de,dA-T*UA,K*JA,eA*jA)),ee=_.call(this,$A),RA=[],ne=0;ne<ee.length;ne+=1)RA.indexOf(ee[ne])===-1&&RA.push(ee[ne]);if(M(RA),this.autoPaging)for(var he=RA[0],ve=RA[RA.length-1],be=he;be<ve+1;be++){this.pdf.setPage(be);var Se=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],He=be===1?this.posY+this.margin[0]:this.margin[0],me=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],oA=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],pA=be===1?0:me+(be-2)*oA;if(this.ctx.clip_path.length!==0){var HA=this.path;S=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(S,this.posX+this.margin[3],-pA+He+this.ctx.prevPageLastElemOffset),Z.call(this,"fill",!0),this.path=HA}var qA=JSON.parse(JSON.stringify($A));qA=U([qA],this.posX+this.margin[3],-pA+He+this.ctx.prevPageLastElemOffset)[0];var pe=(be>he||be<ve)&&Q.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Se,oA,null).clip().discardPath()),this.pdf.addImage(F,"JPEG",qA.x,qA.y,qA.w,qA.h,null,null,KA),pe&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(F,"JPEG",$A.x,$A.y,$A.w,$A.h,null,null,KA)};var _=function(F,D,T){var K=[];D=D||this.pdf.internal.pageSize.width,T=T||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var eA=this.posY+this.ctx.prevPageLastElemOffset;switch(F.type){default:case"mt":case"lt":K.push(Math.floor((F.y+eA)/T)+1);break;case"arc":K.push(Math.floor((F.y+eA-F.radius)/T)+1),K.push(Math.floor((F.y+eA+F.radius)/T)+1);break;case"qct":var uA=AA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x,F.y);K.push(Math.floor((uA.y+eA)/T)+1),K.push(Math.floor((uA.y+uA.h+eA)/T)+1);break;case"bct":var dA=sA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,F.x1,F.y1,F.x2,F.y2,F.x,F.y);K.push(Math.floor((dA.y+eA)/T)+1),K.push(Math.floor((dA.y+dA.h+eA)/T)+1);break;case"rect":K.push(Math.floor((F.y+eA)/T)+1),K.push(Math.floor((F.y+F.h+eA)/T)+1)}for(var lA=0;lA<K.length;lA+=1)for(;this.pdf.internal.getNumberOfPages()<K[lA];)v.call(this);return K},v=function(){var F=this.fillStyle,D=this.strokeStyle,T=this.font,K=this.lineCap,eA=this.lineWidth,uA=this.lineJoin;this.pdf.addPage(),this.fillStyle=F,this.strokeStyle=D,this.font=T,this.lineCap=K,this.lineWidth=eA,this.lineJoin=uA},U=function(F,D,T){for(var K=0;K<F.length;K++)switch(F[K].type){case"bct":F[K].x2+=D,F[K].y2+=T;case"qct":F[K].x1+=D,F[K].y1+=T;case"mt":case"lt":case"arc":default:F[K].x+=D,F[K].y+=T}return F},M=function(F){return F.sort(function(D,T){return D-T})},J=function(F,D){for(var T,K,eA=this.fillStyle,uA=this.strokeStyle,dA=this.lineCap,lA=this.lineWidth,WA=Math.abs(lA*this.ctx.transform.scaleX),NA=this.lineJoin,JA=JSON.parse(JSON.stringify(this.path)),jA=JSON.parse(JSON.stringify(this.path)),de=[],UA=0;UA<jA.length;UA++)if(jA[UA].x!==void 0)for(var S=_.call(this,jA[UA]),FA=0;FA<S.length;FA+=1)de.indexOf(S[FA])===-1&&de.push(S[FA]);for(var KA=0;KA<de.length;KA++)for(;this.pdf.internal.getNumberOfPages()<de[KA];)v.call(this);if(M(de),this.autoPaging)for(var GA=de[0],$A=de[de.length-1],ee=GA;ee<$A+1;ee++){this.pdf.setPage(ee),this.fillStyle=eA,this.strokeStyle=uA,this.lineCap=dA,this.lineWidth=WA,this.lineJoin=NA;var RA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ne=ee===1?this.posY+this.margin[0]:this.margin[0],he=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ve=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],be=ee===1?0:he+(ee-2)*ve;if(this.ctx.clip_path.length!==0){var Se=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(T,this.posX+this.margin[3],-be+ne+this.ctx.prevPageLastElemOffset),Z.call(this,F,!0),this.path=Se}if(K=JSON.parse(JSON.stringify(JA)),this.path=U(K,this.posX+this.margin[3],-be+ne+this.ctx.prevPageLastElemOffset),D===!1||ee===0){var He=(ee>GA||ee<$A)&&Q.call(this);He&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],RA,ve,null).clip().discardPath()),Z.call(this,F,D),He&&this.pdf.restoreGraphicsState()}this.lineWidth=lA}else this.lineWidth=WA,Z.call(this,F,D),this.lineWidth=lA;this.path=JA},Z=function(F,D){if((F!=="stroke"||D||!y.call(this))&&(F==="stroke"||D||!g.call(this))){for(var T,K,eA=[],uA=this.path,dA=0;dA<uA.length;dA++){var lA=uA[dA];switch(lA.type){case"begin":eA.push({begin:!0});break;case"close":eA.push({close:!0});break;case"mt":eA.push({start:lA,deltas:[],abs:[]});break;case"lt":var WA=eA.length;if(uA[dA-1]&&!isNaN(uA[dA-1].x)&&(T=[lA.x-uA[dA-1].x,lA.y-uA[dA-1].y],WA>0)){for(;WA>=0;WA--)if(eA[WA-1].close!==!0&&eA[WA-1].begin!==!0){eA[WA-1].deltas.push(T),eA[WA-1].abs.push(lA);break}}break;case"bct":T=[lA.x1-uA[dA-1].x,lA.y1-uA[dA-1].y,lA.x2-uA[dA-1].x,lA.y2-uA[dA-1].y,lA.x-uA[dA-1].x,lA.y-uA[dA-1].y],eA[eA.length-1].deltas.push(T);break;case"qct":var NA=uA[dA-1].x+2/3*(lA.x1-uA[dA-1].x),JA=uA[dA-1].y+2/3*(lA.y1-uA[dA-1].y),jA=lA.x+2/3*(lA.x1-lA.x),de=lA.y+2/3*(lA.y1-lA.y),UA=lA.x,S=lA.y;T=[NA-uA[dA-1].x,JA-uA[dA-1].y,jA-uA[dA-1].x,de-uA[dA-1].y,UA-uA[dA-1].x,S-uA[dA-1].y],eA[eA.length-1].deltas.push(T);break;case"arc":eA.push({deltas:[],abs:[],arc:!0}),Array.isArray(eA[eA.length-1].abs)&&eA[eA.length-1].abs.push(lA)}}K=D?null:F==="stroke"?"stroke":"fill";for(var FA=!1,KA=0;KA<eA.length;KA++)if(eA[KA].arc)for(var GA=eA[KA].abs,$A=0;$A<GA.length;$A++){var ee=GA[$A];ee.type==="arc"?P.call(this,ee.x,ee.y,ee.radius,ee.startAngle,ee.endAngle,ee.counterclockwise,void 0,D,!FA):R.call(this,ee.x,ee.y),FA=!0}else if(eA[KA].close===!0)this.pdf.internal.out("h"),FA=!1;else if(eA[KA].begin!==!0){var RA=eA[KA].start.x,ne=eA[KA].start.y;k.call(this,eA[KA].deltas,RA,ne),FA=!0}K&&z.call(this,K),D&&fA.call(this)}},Y=function(F){var D=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,T=D*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return F-T;case"top":return F+D-T;case"hanging":return F+D-2*T;case"middle":return F+D/2-T;case"ideographic":return F;case"alphabetic":default:return F}},G=function(F){return F+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};B.prototype.createLinearGradient=function(){var F=function(){};return F.colorStops=[],F.addColorStop=function(D,T){this.colorStops.push([D,T])},F.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},F.isCanvasGradient=!0,F},B.prototype.createPattern=function(){return this.createLinearGradient()},B.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(F,D,T,K,eA,uA,dA,lA,WA){for(var NA=$.call(this,T,K,eA,uA),JA=0;JA<NA.length;JA++){var jA=NA[JA];JA===0&&(WA?I.call(this,jA.x1+F,jA.y1+D):R.call(this,jA.x1+F,jA.y1+D)),X.call(this,F,D,jA.x2,jA.y2,jA.x3,jA.y3,jA.x4,jA.y4)}lA?fA.call(this):z.call(this,dA)},z=function(F){switch(F){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},fA=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(F,D){this.pdf.internal.out(A(F)+" "+r(D)+" m")},x=function(F){var D;switch(F.align){case"right":case"end":D="right";break;case"center":D="center";break;case"left":case"start":default:D="left"}var T=this.pdf.getTextDimensions(F.text),K=Y.call(this,F.y),eA=G.call(this,K)-T.h,uA=this.ctx.transform.applyToPoint(new o(F.x,K)),dA=this.ctx.transform.decompose(),lA=new u;lA=(lA=(lA=lA.multiply(dA.translate)).multiply(dA.skew)).multiply(dA.scale);for(var WA,NA,JA,jA=this.ctx.transform.applyToRectangle(new l(F.x,K,T.w,T.h)),de=lA.applyToRectangle(new l(F.x,eA,T.w,T.h)),UA=_.call(this,de),S=[],FA=0;FA<UA.length;FA+=1)S.indexOf(UA[FA])===-1&&S.push(UA[FA]);if(M(S),this.autoPaging)for(var KA=S[0],GA=S[S.length-1],$A=KA;$A<GA+1;$A++){this.pdf.setPage($A);var ee=$A===1?this.posY+this.margin[0]:this.margin[0],RA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[2],he=ne-this.margin[0],ve=this.pdf.internal.pageSize.width-this.margin[1],be=ve-this.margin[3],Se=$A===1?0:RA+($A-2)*he;if(this.ctx.clip_path.length!==0){var He=this.path;WA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(WA,this.posX+this.margin[3],-1*Se+ee),Z.call(this,"fill",!0),this.path=He}var me=U([JSON.parse(JSON.stringify(de))],this.posX+this.margin[3],-Se+ee+this.ctx.prevPageLastElemOffset)[0];F.scale>=.01&&(NA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(NA*F.scale),JA=this.lineWidth,this.lineWidth=JA*F.scale);var oA=this.autoPaging!=="text";if(oA||me.y+me.h<=ne){if(oA||me.y>=ee&&me.x<=ve){var pA=oA?F.text:this.pdf.splitTextToSize(F.text,F.maxWidth||ve-me.x)[0],HA=U([JSON.parse(JSON.stringify(jA))],this.posX+this.margin[3],-Se+ee+this.ctx.prevPageLastElemOffset)[0],qA=oA&&($A>KA||$A<GA)&&Q.call(this);qA&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],be,he,null).clip().discardPath()),this.pdf.text(pA,HA.x,HA.y,{angle:F.angle,align:D,renderingMode:F.renderingMode}),qA&&this.pdf.restoreGraphicsState()}}else me.y<ne&&(this.ctx.prevPageLastElemOffset+=ne-me.y);F.scale>=.01&&(this.pdf.setFontSize(NA),this.lineWidth=JA)}else F.scale>=.01&&(NA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(NA*F.scale),JA=this.lineWidth,this.lineWidth=JA*F.scale),this.pdf.text(F.text,uA.x+this.posX,uA.y+this.posY,{angle:F.angle,align:D,renderingMode:F.renderingMode,maxWidth:F.maxWidth}),F.scale>=.01&&(this.pdf.setFontSize(NA),this.lineWidth=JA)},R=function(F,D,T,K){T=T||0,K=K||0,this.pdf.internal.out(A(F+T)+" "+r(D+K)+" l")},k=function(F,D,T){return this.pdf.lines(F,D,T,null,null)},X=function(F,D,T,K,eA,uA,dA,lA){this.pdf.internal.out([e(a(T+F)),e(i(K+D)),e(a(eA+F)),e(i(uA+D)),e(a(dA+F)),e(i(lA+D)),"c"].join(" "))},$=function(F,D,T,K){for(var eA=2*Math.PI,uA=Math.PI/2;D>T;)D-=eA;var dA=Math.abs(T-D);dA<eA&&K&&(dA=eA-dA);for(var lA=[],WA=K?-1:1,NA=D;dA>1e-5;){var JA=NA+WA*Math.min(dA,uA);lA.push(j.call(this,F,NA,JA)),dA-=Math.abs(JA-NA),NA=JA}return lA},j=function(F,D,T){var K=(T-D)/2,eA=F*Math.cos(K),uA=F*Math.sin(K),dA=eA,lA=-uA,WA=dA*dA+lA*lA,NA=WA+dA*eA+lA*uA,JA=4/3*(Math.sqrt(2*WA*NA)-NA)/(dA*uA-lA*eA),jA=dA-JA*lA,de=lA+JA*dA,UA=jA,S=-de,FA=K+D,KA=Math.cos(FA),GA=Math.sin(FA);return{x1:F*Math.cos(D),y1:F*Math.sin(D),x2:jA*KA-de*GA,y2:jA*GA+de*KA,x3:UA*KA-S*GA,y3:UA*GA+S*KA,x4:F*Math.cos(T),y4:F*Math.sin(T)}},V=function(F){return 180*F/Math.PI},AA=function(F,D,T,K,eA,uA){var dA=F+.5*(T-F),lA=D+.5*(K-D),WA=eA+.5*(T-eA),NA=uA+.5*(K-uA),JA=Math.min(F,eA,dA,WA),jA=Math.max(F,eA,dA,WA),de=Math.min(D,uA,lA,NA),UA=Math.max(D,uA,lA,NA);return new l(JA,de,jA-JA,UA-de)},sA=function(F,D,T,K,eA,uA,dA,lA){var WA,NA,JA,jA,de,UA,S,FA,KA,GA,$A,ee,RA,ne,he=T-F,ve=K-D,be=eA-T,Se=uA-K,He=dA-eA,me=lA-uA;for(NA=0;NA<41;NA++)KA=(S=(JA=F+(WA=NA/40)*he)+WA*((de=T+WA*be)-JA))+WA*(de+WA*(eA+WA*He-de)-S),GA=(FA=(jA=D+WA*ve)+WA*((UA=K+WA*Se)-jA))+WA*(UA+WA*(uA+WA*me-UA)-FA),NA==0?($A=KA,ee=GA,RA=KA,ne=GA):($A=Math.min($A,KA),ee=Math.min(ee,GA),RA=Math.max(RA,KA),ne=Math.max(ne,GA));return new l(Math.round($A),Math.round(ee),Math.round(RA-$A),Math.round(ne-ee))},DA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var F,D,T=(F=this.ctx.lineDash,D=this.ctx.lineDashOffset,JSON.stringify({lineDash:F,lineDashOffset:D}));this.prevLineDash!==T&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=T)}}})(Ee.API),function(t){var e=function(i){var o,l,u,d,p,B,w,g,y,Q;for(l=[],u=0,d=(i+=o="\0\0\0\0".slice(i.length%4||4)).length;d>u;u+=4)(p=(i.charCodeAt(u)<<24)+(i.charCodeAt(u+1)<<16)+(i.charCodeAt(u+2)<<8)+i.charCodeAt(u+3))!==0?(B=(p=((p=((p=((p=(p-(Q=p%85))/85)-(y=p%85))/85)-(g=p%85))/85)-(w=p%85))/85)%85,l.push(B+33,w+33,g+33,y+33,Q+33)):l.push(122);return function(_,v){for(var U=v;U>0;U--)_.pop()}(l,o.length),String.fromCharCode.apply(String,l)+"~>"},A=function(i){var o,l,u,d,p,B=String,w="length",g=255,y="charCodeAt",Q="slice",_="replace";for(i[Q](-2),i=i[Q](0,-2)[_](/\s/g,"")[_]("z","!!!!!"),u=[],d=0,p=(i+=o="uuuuu"[Q](i[w]%5||5))[w];p>d;d+=5)l=52200625*(i[y](d)-33)+614125*(i[y](d+1)-33)+7225*(i[y](d+2)-33)+85*(i[y](d+3)-33)+(i[y](d+4)-33),u.push(g&l>>24,g&l>>16,g&l>>8,g&l);return function(v,U){for(var M=U;M>0;M--)v.pop()}(u,o[w]),B.fromCharCode.apply(B,u)},r=function(i){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),o.test(i)===!1)return"";for(var l="",u=0;u<i.length;u+=2)l+=String.fromCharCode("0x"+(i[u]+i[u+1]));return l},a=function(i){for(var o=new Uint8Array(i.length),l=i.length;l--;)o[l]=i.charCodeAt(l);return i=(o=wc(o)).reduce(function(u,d){return u+String.fromCharCode(d)},"")};t.processDataByFilters=function(i,o){var l=0,u=i||"",d=[];for(typeof(o=o||[])=="string"&&(o=[o]),l=0;l<o.length;l+=1)switch(o[l]){case"ASCII85Decode":case"/ASCII85Decode":u=A(u),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=e(u),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=r(u),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=u.split("").map(function(p){return("0"+p.charCodeAt().toString(16)).slice(-2)}).join("")+">",d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[l]+'" is not implemented')}return{data:u,reverseChain:d.reverse().join(" ")}}}(Ee.API),function(t){t.loadFile=function(e,A,r){return function(a,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var l=void 0;try{l=function(u,d,p){var B=new XMLHttpRequest,w=0,g=function(y){var Q=y.length,_=[],v=String.fromCharCode;for(w=0;w<Q;w+=1)_.push(v(255&y.charCodeAt(w)));return _.join("")};if(B.open("GET",u,!d),B.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(B.onload=function(){B.status===200?p(g(this.responseText)):p(void 0)}),B.send(null),d&&B.status===200)return g(B.responseText)}(a,i,o)}catch{}return l}(e,A,r)},t.loadImageFile=t.loadFile}(Ee.API),function(t){function e(){return(Ue.html2canvas?Promise.resolve(Ue.html2canvas):Promise.resolve().then(()=>XC)).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function A(){return(Ue.DOMPurify?Promise.resolve(Ue.DOMPurify):Promise.resolve().then(()=>require("./purify.es-D1I7B1hP.cjs"))).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var r=function(o){var l=ze(o);return l==="undefined"?"undefined":l==="string"||o instanceof String?"string":l==="number"||o instanceof Number?"number":l==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":l==="object"?"object":"unknown"},a=function(o,l){var u=document.createElement(o);for(var d in l.className&&(u.className=l.className),l.innerHTML&&l.dompurify&&(u.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)u.style[d]=l.style[d];return u},i=function o(l){var u=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),d=o.convert(Promise.resolve(),u);return d=(d=d.setProgress(1,o,1,[o])).set(l)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(o,l){return o.__proto__=l||i.prototype,o},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(o,l){return this.then(function(){switch(l=l||function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(o)){case"string":return this.then(A).then(function(u){return this.set({src:a("div",{innerHTML:o,dompurify:u})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},i.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=function u(d,p){for(var B=d.nodeType===3?document.createTextNode(d.nodeValue):d.cloneNode(!1),w=d.firstChild;w;w=w.nextSibling)p!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||B.appendChild(u(w,p));return d.nodeType===1&&(d.nodeName==="CANVAS"?(B.width=d.width,B.height=d.height,B.getContext("2d").drawImage(d,0,0)):d.nodeName!=="TEXTAREA"&&d.nodeName!=="SELECT"||(B.value=d.value),B.addEventListener("load",function(){B.scrollTop=d.scrollTop,B.scrollLeft=d.scrollLeft},!0)),B}(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(l){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,l(this.prop.container,u)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(l){var u=this.opt.jsPDF,d=this.opt.fontFaces,p=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,B=Object.assign({async:!0,allowTaint:!0,scale:p,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete B.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=d,d)for(var w=0;w<d.length;++w){var g=d[w],y=g.src.find(function(Q){return Q.format==="truetype"});y&&u.addFont(y.url,g.ref.name,g.ref.style)}return B.windowHeight=B.windowHeight||0,B.windowHeight=B.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):B.windowHeight,u.context2d.save(!0),l(this.prop.container,B)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(o,l,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(o,l):this.outputPdf(o,l)},i.prototype.outputPdf=function(o,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,l)})},i.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},i.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(o){if(r(o)!=="object")return this;var l=Object.keys(o||{}).map(function(u){if(u in i.template.prop)return function(){this.prop[u]=o[u]};switch(u){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[u]=o[u]}}},this);return this.then(function(){return this.thenList(l)})},i.prototype.get=function(o,l){return this.then(function(){var u=o in i.template.prop?this.prop[o]:this.opt[o];return l?l(u):u})},i.prototype.setMargin=function(o){return this.then(function(){switch(r(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},i.prototype.setPageSize=function(o){function l(u,d){return Math.floor(u*d/72*96)}return this.then(function(){(o=o||Ee.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:l(o.inner.width,o.k),height:l(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},i.prototype.setProgress=function(o,l,u,d){return o!=null&&(this.progress.val=o),l!=null&&(this.progress.state=l),u!=null&&(this.progress.n=u),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(o,l,u,d){return this.setProgress(o?this.progress.val+o:null,l||null,u?this.progress.n+u:null,d?this.progress.stack.concat(d):null)},i.prototype.then=function(o,l){var u=this;return this.thenCore(o,l,function(d,p){return u.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(B){return u.updateProgress(null,d),B}).then(d,p).then(function(B){return u.updateProgress(1),B})})},i.prototype.thenCore=function(o,l,u){u=u||Promise.prototype.then,o&&(o=o.bind(this)),l&&(l=l.bind(this));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),p=u.call(d,o,l);return i.convert(p,this.__proto__)},i.prototype.thenExternal=function(o,l){return Promise.prototype.then.call(this,o,l)},i.prototype.thenList=function(o){var l=this;return o.forEach(function(u){l=l.thenCore(u)}),l},i.prototype.catch=function(o){o&&(o=o.bind(this));var l=Promise.prototype.catch.call(this,o);return i.convert(l,this)},i.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},i.prototype.error=function(o){return this.then(function(){throw new Error(o)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,Ee.getPageSize=function(o,l,u){if(ze(o)==="object"){var d=o;o=d.orientation,l=d.unit||l,u=d.format||u}l=l||"mm",u=u||"a4",o=(""+(o||"P")).toLowerCase();var p,B=(""+u).toLowerCase(),w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+l}var g,y=0,Q=0;if(w.hasOwnProperty(B))y=w[B][1]/p,Q=w[B][0]/p;else try{y=u[1],Q=u[0]}catch{throw new Error("Invalid format: "+u)}if(o==="p"||o==="portrait")o="p",Q>y&&(g=Q,Q=y,y=g);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",y>Q&&(g=Q,Q=y,y=g)}return{width:Q,height:y,unit:l,k:p,orientation:o}},t.html=function(o,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(Qc):null;var u=new i(l);return l.worker?u:u.from(o).doCallback()}}(Ee.API),Ee.API.addJS=function(t){return Ju=t,this.internal.events.subscribe("postPutResources",function(){Xs=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Xs+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Xu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ju+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Xs!==void 0&&Xu!==void 0&&this.internal.out("/Names <</JavaScript "+Xs+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var A=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=A.outline.render().split(/\r\n/),i=0;i<a.length;i++){var o=a[i],l=r.exec(o);if(l!=null){var u=l[1];A.internal.newObjectDeferredBegin(u,!1)}A.internal.write(o)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,p=[];for(i=0;i<d;i++){var B=A.internal.newObject();p.push(B);var w=A.internal.getPageInfo(i+1);A.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var g=A.internal.newObject();for(A.internal.write("<< /Names [ "),i=0;i<p.length;i++)A.internal.write("(page_"+(i+1)+")"+p[i]+" 0 R");A.internal.write(" ] >>","endobj"),e=A.internal.newObject(),A.internal.write("<< /Dests "+g+" 0 R"),A.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(r,a,i){var o={title:a,options:i,children:[]};return r==null&&(r=this.root),r.children.push(o),o},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(r){r.id=A.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},A.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},A.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var o=r.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var l=this.count=this.count_r({count:0},o);if(l>0&&this.line("/Count "+l),o.options&&o.options.pageNumber){var u=A.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},A.outline.line=function(r){this.ctx.val+=r+`\r
158
+ `},A.outline.makeRef=function(r){return r.id+" 0 R"},A.outline.makeString=function(r){return"("+A.internal.pdfEscape(r)+")"},A.outline.objStart=function(r){this.ctx.val+=`\r
159
+ `+r.id+` 0 obj\r
160
+ <<\r
161
+ `},A.outline.objEnd=function(){this.ctx.val+=`>> \r
162
+ endobj\r
163
+ `},A.outline.count_r=function(r,a){for(var i=0;i<a.children.length;i++)r.count++,this.count_r(r,a.children[i]);return r.count}}])}(Ee.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(A,r,a,i,o,l){var u,d=this.decode.DCT_DECODE,p=null;if(typeof A=="string"||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=o||A,A=this.__addimage__.isArrayBuffer(A)?new Uint8Array(A):A,(u=function(B){for(var w,g=256*B.charCodeAt(4)+B.charCodeAt(5),y=B.length,Q={width:0,height:0,numcomponents:1},_=4;_<y;_+=2){if(_+=g,e.indexOf(B.charCodeAt(_+1))!==-1){w=256*B.charCodeAt(_+5)+B.charCodeAt(_+6),Q={width:256*B.charCodeAt(_+7)+B.charCodeAt(_+8),height:w,numcomponents:B.charCodeAt(_+9)};break}g=256*B.charCodeAt(_+2)+B.charCodeAt(_+3)}return Q}(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A)).numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}p={data:A,width:u.width,height:u.height,colorSpace:l,bitsPerComponent:8,filter:d,index:r,alias:a}}return p}}(Ee.API);var qa,Js,Zu,Af,ef,cm=function(){var t,e,A;function r(i){var o,l,u,d,p,B,w,g,y,Q,_,v,U,M;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},B=null;;){switch(o=this.readUInt32(),y=(function(){var J,Z;for(Z=[],J=0;J<4;++J)Z.push(String.fromCharCode(this.data[this.pos++]));return Z}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":B&&this.animation.frames.push(B),this.pos+=4,B={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},p=this.readUInt16(),d=this.readUInt16()||100,B.delay=1e3*p/d,B.disposeOp=this.data[this.pos++],B.blendOp=this.data[this.pos++],B.data=[];break;case"IDAT":case"fdAT":for(y==="fdAT"&&(this.pos+=4,o-=4),i=(B!=null?B.data:void 0)||this.imgData,v=0;0<=o?v<o:v>o;0<=o?++v:--v)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(u=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>u)throw new Error("More transparent colors than palette size");if((Q=u-this.transparency.indexed.length)>0)for(U=0;0<=Q?U<Q:U>Q;0<=Q?++U:--U)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":w=(_=this.read(o)).indexOf(0),g=String.fromCharCode.apply(String,_.slice(0,w)),this.text[g]=String.fromCharCode.apply(String,_.slice(w+1));break;case"IEND":return B&&this.animation.frames.push(B),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(M=this.colorType)===4||M===6,l=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*l,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var o,l;for(l=[],o=0;0<=i?o<i:o>i;0<=i?++o:--o)l.push(this.data[this.pos++]);return l},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var o=this.pixelBitlength/8,l=new Uint8Array(this.width*this.height*o),u=0,d=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function p(B,w,g,y){var Q,_,v,U,M,J,Z,Y,G,P,z,fA,I,x,R,k,X,$,j,V,AA,sA=Math.ceil((d.width-B)/g),DA=Math.ceil((d.height-w)/y),F=d.width==sA&&d.height==DA;for(x=o*sA,fA=F?l:new Uint8Array(x*DA),J=i.length,I=0,_=0;I<DA&&u<J;){switch(i[u++]){case 0:for(U=X=0;X<x;U=X+=1)fA[_++]=i[u++];break;case 1:for(U=$=0;$<x;U=$+=1)Q=i[u++],M=U<o?0:fA[_-o],fA[_++]=(Q+M)%256;break;case 2:for(U=j=0;j<x;U=j+=1)Q=i[u++],v=(U-U%o)/o,R=I&&fA[(I-1)*x+v*o+U%o],fA[_++]=(R+Q)%256;break;case 3:for(U=V=0;V<x;U=V+=1)Q=i[u++],v=(U-U%o)/o,M=U<o?0:fA[_-o],R=I&&fA[(I-1)*x+v*o+U%o],fA[_++]=(Q+Math.floor((M+R)/2))%256;break;case 4:for(U=AA=0;AA<x;U=AA+=1)Q=i[u++],v=(U-U%o)/o,M=U<o?0:fA[_-o],I===0?R=k=0:(R=fA[(I-1)*x+v*o+U%o],k=v&&fA[(I-1)*x+(v-1)*o+U%o]),Z=M+R-k,Y=Math.abs(Z-M),P=Math.abs(Z-R),z=Math.abs(Z-k),G=Y<=P&&Y<=z?M:P<=z?R:k,fA[_++]=(Q+G)%256;break;default:throw new Error("Invalid filter algorithm: "+i[u-1])}if(!F){var D=((w+I*y)*d.width+B)*o,T=I*x;for(U=0;U<sA;U+=1){for(var K=0;K<o;K+=1)l[D++]=fA[T++];D+=(g-1)*o}}I++}}return i=V2(i),d.interlaceMethod==1?(p(0,0,8,8),p(4,0,8,8),p(0,4,4,8),p(2,0,4,4),p(0,2,2,4),p(1,0,2,2),p(0,1,1,2)):p(0,0,1,1),l},r.prototype.decodePalette=function(){var i,o,l,u,d,p,B,w,g;for(l=this.palette,p=this.transparency.indexed||[],d=new Uint8Array((p.length||0)+l.length),u=0,i=0,o=B=0,w=l.length;B<w;o=B+=3)d[u++]=l[o],d[u++]=l[o+1],d[u++]=l[o+2],d[u++]=(g=p[i++])!=null?g:255;return d},r.prototype.copyToImageData=function(i,o){var l,u,d,p,B,w,g,y,Q,_,v;if(u=this.colors,Q=null,l=this.hasAlphaChannel,this.palette.length&&(Q=(v=this._decodedPalette)!=null?v:this._decodedPalette=this.decodePalette(),u=4,l=!0),y=(d=i.data||i).length,B=Q||o,p=w=0,u===1)for(;p<y;)g=Q?4*o[p/4]:w,_=B[g++],d[p++]=_,d[p++]=_,d[p++]=_,d[p++]=l?B[g++]:255,w=g;else for(;p<y;)g=Q?4*o[p/4]:w,d[p++]=B[g++],d[p++]=B[g++],d[p++]=B[g++],d[p++]=l?B[g++]:255,w=g},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var a=function(){if(Object.prototype.toString.call(Ue)==="[object Window]"){try{e=Ue.document.createElement("canvas"),A=e.getContext("2d")}catch{return!1}return!0}return!1};return a(),t=function(i){var o;if(a()===!0)return A.width=i.width,A.height=i.height,A.clearRect(0,0,i.width,i.height),A.putImageData(i,0,0),(o=new Image).src=e.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var o,l,u,d,p,B,w,g;if(this.animation){for(g=[],l=p=0,B=(w=this.animation.frames).length;p<B;l=++p)o=w[l],u=i.createImageData(o.width,o.height),d=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(u,d),o.imageData=u,g.push(o.image=t(u));return g}},r.prototype.renderFrame=function(i,o){var l,u,d;return l=(u=this.animation.frames)[o],d=u[o-1],o===0&&i.clearRect(0,0,this.width,this.height),(d!=null?d.disposeOp:void 0)===1?i.clearRect(d.xOffset,d.yOffset,d.width,d.height):(d!=null?d.disposeOp:void 0)===2&&i.putImageData(d.imageData,d.xOffset,d.yOffset),l.blendOp===0&&i.clearRect(l.xOffset,l.yOffset,l.width,l.height),i.drawImage(l.image,l.xOffset,l.yOffset)},r.prototype.animate=function(i){var o,l,u,d,p,B,w=this;return l=0,B=this.animation,d=B.numFrames,u=B.frames,p=B.numPlays,(o=function(){var g,y;if(g=l++%d,y=u[g],w.renderFrame(i,g),d>1&&l/d<p)return w.animation._timeout=setTimeout(o,y.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var o,l;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,o=i.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(l=o.createImageData(this.width,this.height),this.copyToImageData(l,this.decodePixels()),o.putImageData(l,0,0))},r}();/**
164
+ * @license
165
+ *
166
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
167
+ *
168
+ * Permission is hereby granted, free of charge, to any person obtaining
169
+ * a copy of this software and associated documentation files (the
170
+ * "Software"), to deal in the Software without restriction, including
171
+ * without limitation the rights to use, copy, modify, merge, publish,
172
+ * distribute, sublicense, and/or sell copies of the Software, and to
173
+ * permit persons to whom the Software is furnished to do so, subject to
174
+ * the following conditions:
175
+ *
176
+ * The above copyright notice and this permission notice shall be
177
+ * included in all copies or substantial portions of the Software.
178
+ *
179
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
180
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
181
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
182
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
183
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
184
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
185
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
186
+ * ====================================================================
187
+ *//**
188
+ * @license
189
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
190
+ *
191
+ * https://github.com/deanm/omggif
192
+ *
193
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
194
+ * of this software and associated documentation files (the "Software"), to
195
+ * deal in the Software without restriction, including without limitation the
196
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
197
+ * sell copies of the Software, and to permit persons to whom the Software is
198
+ * furnished to do so, subject to the following conditions:
199
+ *
200
+ * The above copyright notice and this permission notice shall be included in
201
+ * all copies or substantial portions of the Software.
202
+ *
203
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
204
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
205
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
206
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
207
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
208
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
209
+ * IN THE SOFTWARE.
210
+ *
211
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
212
+ * including animation and compression. It does not rely on any specific
213
+ * underlying system, so should run in the browser, Node, or Plask.
214
+ */function um(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var A=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,a=t[e++],i=a>>7,o=1<<(7&a)+1;t[e++],t[e++];var l=null,u=null;i&&(l=e,u=o,e+=3*o);var d=!0,p=[],B=0,w=null,g=0,y=null;for(this.width=A,this.height=r;d&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,y=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var Q=t[e++];B=t[e++]|t[e++]<<8,w=t[e++],(1&Q)==0&&(w=null),g=Q>>2&7,e++;break;case 254:for(;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,U=t[e++]|t[e++]<<8,M=t[e++]|t[e++]<<8,J=t[e++],Z=J>>6&1,Y=1<<(7&J)+1,G=l,P=u,z=!1;J>>7&&(z=!0,G=e,P=Y,e+=3*Y);var fA=e;for(e++;;){var I;if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}p.push({x:_,y:v,width:U,height:M,has_local_palette:z,palette_offset:G,palette_size:P,data_offset:fA,data_length:e-fA,transparent_index:w,interlaced:!!Z,delay:B,disposal:g});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return y},this.frameInfo=function(x){if(x<0||x>=p.length)throw new Error("Frame index out of range.");return p[x]},this.decodeAndBlitFrameBGRA=function(x,R){var k=this.frameInfo(x),X=k.width*k.height,$=new Uint8Array(X);tf(t,k.data_offset,$,X);var j=k.palette_offset,V=k.transparent_index;V===null&&(V=256);var AA=k.width,sA=A-AA,DA=AA,F=4*(k.y*A+k.x),D=4*((k.y+k.height)*A+k.x),T=F,K=4*sA;k.interlaced===!0&&(K+=4*A*7);for(var eA=8,uA=0,dA=$.length;uA<dA;++uA){var lA=$[uA];if(DA===0&&(DA=AA,(T+=K)>=D&&(K=4*sA+4*A*(eA-1),T=F+(AA+sA)*(eA<<1),eA>>=1)),lA===V)T+=4;else{var WA=t[j+3*lA],NA=t[j+3*lA+1],JA=t[j+3*lA+2];R[T++]=JA,R[T++]=NA,R[T++]=WA,R[T++]=255}--DA}},this.decodeAndBlitFrameRGBA=function(x,R){var k=this.frameInfo(x),X=k.width*k.height,$=new Uint8Array(X);tf(t,k.data_offset,$,X);var j=k.palette_offset,V=k.transparent_index;V===null&&(V=256);var AA=k.width,sA=A-AA,DA=AA,F=4*(k.y*A+k.x),D=4*((k.y+k.height)*A+k.x),T=F,K=4*sA;k.interlaced===!0&&(K+=4*A*7);for(var eA=8,uA=0,dA=$.length;uA<dA;++uA){var lA=$[uA];if(DA===0&&(DA=AA,(T+=K)>=D&&(K=4*sA+4*A*(eA-1),T=F+(AA+sA)*(eA<<1),eA>>=1)),lA===V)T+=4;else{var WA=t[j+3*lA],NA=t[j+3*lA+1],JA=t[j+3*lA+2];R[T++]=WA,R[T++]=NA,R[T++]=JA,R[T++]=255}--DA}}}function tf(t,e,A,r){for(var a=t[e++],i=1<<a,o=i+1,l=o+1,u=a+1,d=(1<<u)-1,p=0,B=0,w=0,g=t[e++],y=new Int32Array(4096),Q=null;;){for(;p<16&&g!==0;)B|=t[e++]<<p,p+=8,g===1?g=t[e++]:--g;if(p<u)break;var _=B&d;if(B>>=u,p-=u,_!==i){if(_===o)break;for(var v=_<l?_:Q,U=0,M=v;M>i;)M=y[M]>>8,++U;var J=M;if(w+U+(v!==_?1:0)>r)return void et.log("Warning, gif stream longer than expected.");A[w++]=J;var Z=w+=U;for(v!==_&&(A[w++]=J),M=v;U--;)M=y[M],A[--Z]=255&M,M>>=8;Q!==null&&l<4096&&(y[l++]=Q<<8|J,l>=d+1&&u<12&&(++u,d=d<<1|1)),Q=_}else l=o+1,d=(1<<(u=a+1))-1,Q=null}return w!==r&&et.log("Warning, gif stream shorter than expected."),A}/**
215
+ * @license
216
+ Copyright (c) 2008, Adobe Systems Incorporated
217
+ All rights reserved.
218
+
219
+ Redistribution and use in source and binary forms, with or without
220
+ modification, are permitted provided that the following conditions are
221
+ met:
222
+
223
+ * Redistributions of source code must retain the above copyright notice,
224
+ this list of conditions and the following disclaimer.
225
+
226
+ * Redistributions in binary form must reproduce the above copyright
227
+ notice, this list of conditions and the following disclaimer in the
228
+ documentation and/or other materials provided with the distribution.
229
+
230
+ * Neither the name of Adobe Systems Incorporated nor the names of its
231
+ contributors may be used to endorse or promote products derived from
232
+ this software without specific prior written permission.
233
+
234
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
235
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
236
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
237
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
238
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
239
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
240
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
241
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
242
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
243
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
244
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
245
+ */function Kl(t){var e,A,r,a,i,o=Math.floor,l=new Array(64),u=new Array(64),d=new Array(64),p=new Array(64),B=new Array(65535),w=new Array(65535),g=new Array(64),y=new Array(64),Q=[],_=0,v=7,U=new Array(64),M=new Array(64),J=new Array(64),Z=new Array(256),Y=new Array(2048),G=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],P=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],fA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],x=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],X=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function $(F,D){for(var T=0,K=0,eA=new Array,uA=1;uA<=16;uA++){for(var dA=1;dA<=F[uA];dA++)eA[D[K]]=[],eA[D[K]][0]=T,eA[D[K]][1]=uA,K++,T++;T*=2}return eA}function j(F){for(var D=F[0],T=F[1]-1;T>=0;)D&1<<T&&(_|=1<<v),T--,--v<0&&(_==255?(V(255),V(0)):V(_),v=7,_=0)}function V(F){Q.push(F)}function AA(F){V(F>>8&255),V(255&F)}function sA(F,D,T,K,eA){for(var uA,dA=eA[0],lA=eA[240],WA=function(GA,$A){var ee,RA,ne,he,ve,be,Se,He,me,oA,pA=0;for(me=0;me<8;++me){ee=GA[pA],RA=GA[pA+1],ne=GA[pA+2],he=GA[pA+3],ve=GA[pA+4],be=GA[pA+5],Se=GA[pA+6];var HA=ee+(He=GA[pA+7]),qA=ee-He,pe=RA+Se,te=RA-Se,se=ne+be,hA=ne-be,vA=he+ve,TA=he-ve,PA=HA+vA,tA=HA-vA,yA=pe+se,QA=pe-se;GA[pA]=PA+yA,GA[pA+4]=PA-yA;var EA=.707106781*(QA+tA);GA[pA+2]=tA+EA,GA[pA+6]=tA-EA;var _A=.382683433*((PA=TA+hA)-(QA=te+qA)),fe=.5411961*PA+_A,Fe=1.306562965*QA+_A,Ce=.707106781*(yA=hA+te),Ae=qA+Ce,SA=qA-Ce;GA[pA+5]=SA+fe,GA[pA+3]=SA-fe,GA[pA+1]=Ae+Fe,GA[pA+7]=Ae-Fe,pA+=8}for(pA=0,me=0;me<8;++me){ee=GA[pA],RA=GA[pA+8],ne=GA[pA+16],he=GA[pA+24],ve=GA[pA+32],be=GA[pA+40],Se=GA[pA+48];var Be=ee+(He=GA[pA+56]),Me=ee-He,qe=RA+Se,Re=RA-Se,Oe=ne+be,dt=ne-be,cr=he+ve,$t=he-ve,Pt=Be+cr,Pe=Be-cr,Lt=qe+Oe,Qt=qe-Oe;GA[pA]=Pt+Lt,GA[pA+32]=Pt-Lt;var Ot=.707106781*(Qt+Pe);GA[pA+16]=Pe+Ot,GA[pA+48]=Pe-Ot;var tr=.382683433*((Pt=$t+dt)-(Qt=Re+Me)),xr=.5411961*Pt+tr,Cn=1.306562965*Qt+tr,rn=.707106781*(Lt=dt+Re),Sr=Me+rn,nn=Me-rn;GA[pA+40]=nn+xr,GA[pA+24]=nn-xr,GA[pA+8]=Sr+Cn,GA[pA+56]=Sr-Cn,pA++}for(me=0;me<64;++me)oA=GA[me]*$A[me],g[me]=oA>0?oA+.5|0:oA-.5|0;return g}(F,D),NA=0;NA<64;++NA)y[G[NA]]=WA[NA];var JA=y[0]-T;T=y[0],JA==0?j(K[0]):(j(K[w[uA=32767+JA]]),j(B[uA]));for(var jA=63;jA>0&&y[jA]==0;)jA--;if(jA==0)return j(dA),T;for(var de,UA=1;UA<=jA;){for(var S=UA;y[UA]==0&&UA<=jA;)++UA;var FA=UA-S;if(FA>=16){de=FA>>4;for(var KA=1;KA<=de;++KA)j(lA);FA&=15}uA=32767+y[UA],j(eA[(FA<<4)+w[uA]]),j(B[uA]),UA++}return jA!=63&&j(dA),T}function DA(F){F=Math.min(Math.max(F,1),100),i!=F&&(function(D){for(var T=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],K=0;K<64;K++){var eA=o((T[K]*D+50)/100);eA=Math.min(Math.max(eA,1),255),l[G[K]]=eA}for(var uA=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],dA=0;dA<64;dA++){var lA=o((uA[dA]*D+50)/100);lA=Math.min(Math.max(lA,1),255),u[G[dA]]=lA}for(var WA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],NA=0,JA=0;JA<8;JA++)for(var jA=0;jA<8;jA++)d[NA]=1/(l[G[NA]]*WA[JA]*WA[jA]*8),p[NA]=1/(u[G[NA]]*WA[JA]*WA[jA]*8),NA++}(F<50?Math.floor(5e3/F):Math.floor(200-2*F)),i=F)}this.encode=function(F,D){D&&DA(D),Q=new Array,_=0,v=7,AA(65496),AA(65504),AA(16),V(74),V(70),V(73),V(70),V(0),V(1),V(1),V(0),AA(1),AA(1),V(0),V(0),function(){AA(65499),AA(132),V(0);for(var RA=0;RA<64;RA++)V(l[RA]);V(1);for(var ne=0;ne<64;ne++)V(u[ne])}(),function(RA,ne){AA(65472),AA(17),V(8),AA(ne),AA(RA),V(3),V(1),V(17),V(0),V(2),V(17),V(1),V(3),V(17),V(1)}(F.width,F.height),function(){AA(65476),AA(418),V(0);for(var RA=0;RA<16;RA++)V(P[RA+1]);for(var ne=0;ne<=11;ne++)V(z[ne]);V(16);for(var he=0;he<16;he++)V(fA[he+1]);for(var ve=0;ve<=161;ve++)V(I[ve]);V(1);for(var be=0;be<16;be++)V(x[be+1]);for(var Se=0;Se<=11;Se++)V(R[Se]);V(17);for(var He=0;He<16;He++)V(k[He+1]);for(var me=0;me<=161;me++)V(X[me])}(),AA(65498),AA(12),V(3),V(1),V(0),V(2),V(17),V(3),V(17),V(0),V(63),V(0);var T=0,K=0,eA=0;_=0,v=7,this.encode.displayName="_encode_";for(var uA,dA,lA,WA,NA,JA,jA,de,UA,S=F.data,FA=F.width,KA=F.height,GA=4*FA,$A=0;$A<KA;){for(uA=0;uA<GA;){for(NA=GA*$A+uA,jA=-1,de=0,UA=0;UA<64;UA++)JA=NA+(de=UA>>3)*GA+(jA=4*(7&UA)),$A+de>=KA&&(JA-=GA*($A+1+de-KA)),uA+jA>=GA&&(JA-=uA+jA-GA+4),dA=S[JA++],lA=S[JA++],WA=S[JA++],U[UA]=(Y[dA]+Y[lA+256>>0]+Y[WA+512>>0]>>16)-128,M[UA]=(Y[dA+768>>0]+Y[lA+1024>>0]+Y[WA+1280>>0]>>16)-128,J[UA]=(Y[dA+1280>>0]+Y[lA+1536>>0]+Y[WA+1792>>0]>>16)-128;T=sA(U,d,T,e,r),K=sA(M,p,K,A,a),eA=sA(J,p,eA,A,a),uA+=32}$A+=8}if(v>=0){var ee=[];ee[1]=v+1,ee[0]=(1<<v+1)-1,j(ee)}return AA(65497),new Uint8Array(Q)},t=t||50,function(){for(var F=String.fromCharCode,D=0;D<256;D++)Z[D]=F(D)}(),e=$(P,z),A=$(x,R),r=$(fA,I),a=$(k,X),function(){for(var F=1,D=2,T=1;T<=15;T++){for(var K=F;K<D;K++)w[32767+K]=T,B[32767+K]=[],B[32767+K][1]=T,B[32767+K][0]=K;for(var eA=-(D-1);eA<=-F;eA++)w[32767+eA]=T,B[32767+eA]=[],B[32767+eA][1]=T,B[32767+eA][0]=D-1+eA;F<<=1,D<<=1}}(),function(){for(var F=0;F<256;F++)Y[F]=19595*F,Y[F+256>>0]=38470*F,Y[F+512>>0]=7471*F+32768,Y[F+768>>0]=-11059*F,Y[F+1024>>0]=-21709*F,Y[F+1280>>0]=32768*F+8421375,Y[F+1536>>0]=-27439*F,Y[F+1792>>0]=-5329*F}(),DA(t)}/**
246
+ * @license
247
+ * Copyright (c) 2017 Aras Abbasi
248
+ *
249
+ * Licensed under the MIT License.
250
+ * http://opensource.org/licenses/mit-license
251
+ */function _r(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function rf(t){function e(P){if(!P)throw Error("assert :P")}function A(P,z,fA){for(var I=0;4>I;I++)if(P[z+I]!=fA.charCodeAt(I))return!0;return!1}function r(P,z,fA,I,x){for(var R=0;R<x;R++)P[z+R]=fA[I+R]}function a(P,z,fA,I){for(var x=0;x<I;x++)P[z+x]=fA}function i(P){return new Int32Array(P)}function o(P,z){for(var fA=[],I=0;I<P;I++)fA.push(new z);return fA}function l(P,z){var fA=[];return function I(x,R,k){for(var X=k[R],$=0;$<X&&(x.push(k.length>R+1?[]:new z),!(k.length<R+1));$++)I(x[$],R+1,k)}(fA,0,P),fA}var u=function(){var P=this;function z(s,c){for(var h=1<<c-1>>>0;s&h;)h>>>=1;return h?(s&h-1)+h:s}function fA(s,c,h,m,C){e(!(m%h));do s[c+(m-=h)]=C;while(0<m)}function I(s,c,h,m,C){if(e(2328>=C),512>=C)var E=i(512);else if((E=i(C))==null)return 0;return function(L,N,H,O,aA,CA){var bA,gA,VA=N,kA=1<<H,iA=i(16),cA=i(16);for(e(aA!=0),e(O!=null),e(L!=null),e(0<H),gA=0;gA<aA;++gA){if(15<O[gA])return 0;++iA[O[gA]]}if(iA[0]==aA)return 0;for(cA[1]=0,bA=1;15>bA;++bA){if(iA[bA]>1<<bA)return 0;cA[bA+1]=cA[bA]+iA[bA]}for(gA=0;gA<aA;++gA)bA=O[gA],0<O[gA]&&(CA[cA[bA]++]=gA);if(cA[15]==1)return(O=new x).g=0,O.value=CA[0],fA(L,VA,1,kA,O),kA;var MA,YA=-1,OA=kA-1,ce=0,re=1,Qe=1,ae=1<<H;for(gA=0,bA=1,aA=2;bA<=H;++bA,aA<<=1){if(re+=Qe<<=1,0>(Qe-=iA[bA]))return 0;for(;0<iA[bA];--iA[bA])(O=new x).g=bA,O.value=CA[gA++],fA(L,VA+ce,aA,ae,O),ce=z(ce,bA)}for(bA=H+1,aA=2;15>=bA;++bA,aA<<=1){if(re+=Qe<<=1,0>(Qe-=iA[bA]))return 0;for(;0<iA[bA];--iA[bA]){if(O=new x,(ce&OA)!=YA){for(VA+=ae,MA=1<<(YA=bA)-H;15>YA&&!(0>=(MA-=iA[YA]));)++YA,MA<<=1;kA+=ae=1<<(MA=YA-H),L[N+(YA=ce&OA)].g=MA+H,L[N+YA].value=VA-N-YA}O.g=bA-H,O.value=CA[gA++],fA(L,VA+(ce>>H),aA,ae,O),ce=z(ce,bA)}}return re!=2*cA[15]-1?0:kA}(s,c,h,m,C,E)}function x(){this.value=this.g=0}function R(){this.value=this.g=0}function k(){this.G=o(5,x),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Tt,R)}function X(s,c,h,m){e(s!=null),e(c!=null),e(2147483648>m),s.Ca=254,s.I=0,s.b=-8,s.Ka=0,s.oa=c,s.pa=h,s.Jd=c,s.Yc=h+m,s.Zc=4<=m?h+m-4+1:h,uA(s)}function $(s,c){for(var h=0;0<c--;)h|=lA(s,128)<<c;return h}function j(s,c){var h=$(s,c);return dA(s)?-h:h}function V(s,c,h,m){var C,E=0;for(e(s!=null),e(c!=null),e(4294967288>m),s.Sb=m,s.Ra=0,s.u=0,s.h=0,4<m&&(m=4),C=0;C<m;++C)E+=c[h+C]<<8*C;s.Ra=E,s.bb=m,s.oa=c,s.pa=h}function AA(s){for(;8<=s.u&&s.bb<s.Sb;)s.Ra>>>=8,s.Ra+=s.oa[s.pa+s.bb]<<Ta-8>>>0,++s.bb,s.u-=8;T(s)&&(s.h=1,s.u=0)}function sA(s,c){if(e(0<=c),!s.h&&c<=Na){var h=D(s)&Ia[c];return s.u+=c,AA(s),h}return s.h=1,s.u=0}function DA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function F(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function D(s){return s.Ra>>>(s.u&Ta-1)>>>0}function T(s){return e(s.bb<=s.Sb),s.h||s.bb==s.Sb&&s.u>Ta}function K(s,c){s.u=c,s.h=T(s)}function eA(s){s.u>=Si&&(e(s.u>=Si),AA(s))}function uA(s){e(s!=null&&s.oa!=null),s.pa<s.Zc?(s.I=(s.oa[s.pa++]|s.I<<8)>>>0,s.b+=8):(e(s!=null&&s.oa!=null),s.pa<s.Yc?(s.b+=8,s.I=s.oa[s.pa++]|s.I<<8):s.Ka?s.b=0:(s.I<<=8,s.b+=8,s.Ka=1))}function dA(s){return $(s,1)}function lA(s,c){var h=s.Ca;0>s.b&&uA(s);var m=s.b,C=h*c>>>8,E=(s.I>>>m>C)+0;for(E?(h-=C,s.I-=C+1<<m>>>0):h=C+1,m=h,C=0;256<=m;)C+=8,m>>=8;return m=7^C+rr[m],s.b-=m,s.Ca=(h<<m)-1,E}function WA(s,c,h){s[c+0]=h>>24&255,s[c+1]=h>>16&255,s[c+2]=h>>8&255,s[c+3]=h>>0&255}function NA(s,c){return s[c+0]<<0|s[c+1]<<8}function JA(s,c){return NA(s,c)|s[c+2]<<16}function jA(s,c){return NA(s,c)|NA(s,c+2)<<16}function de(s,c){var h=1<<c;return e(s!=null),e(0<c),s.X=i(h),s.X==null?0:(s.Mb=32-c,s.Xa=c,1)}function UA(s,c){e(s!=null),e(c!=null),e(s.Xa==c.Xa),r(c.X,0,s.X,0,1<<c.Xa)}function S(){this.X=[],this.Xa=this.Mb=0}function FA(s,c,h,m){e(h!=null),e(m!=null);var C=h[0],E=m[0];return C==0&&(C=(s*E+c/2)/c),E==0&&(E=(c*C+s/2)/s),0>=C||0>=E?0:(h[0]=C,m[0]=E,1)}function KA(s,c){return s+(1<<c)-1>>>c}function GA(s,c){return((4278255360&s)+(4278255360&c)>>>0&4278255360)+((16711935&s)+(16711935&c)>>>0&16711935)>>>0}function $A(s,c){P[c]=function(h,m,C,E,L,N,H){var O;for(O=0;O<L;++O){var aA=P[s](N[H+O-1],C,E+O);N[H+O]=GA(h[m+O],aA)}}}function ee(){this.ud=this.hd=this.jd=0}function RA(s,c){return((4278124286&(s^c))>>>1)+(s&c)>>>0}function ne(s){return 0<=s&&256>s?s:0>s?0:255<s?255:void 0}function he(s,c){return ne(s+(s-c+.5>>1))}function ve(s,c,h){return Math.abs(c-h)-Math.abs(s-h)}function be(s,c,h,m,C,E,L){for(m=E[L-1],h=0;h<C;++h)E[L+h]=m=GA(s[c+h],m)}function Se(s,c,h,m,C){var E;for(E=0;E<h;++E){var L=s[c+E],N=L>>8&255,H=16711935&(H=(H=16711935&L)+((N<<16)+N));m[C+E]=(4278255360&L)+H>>>0}}function He(s,c){c.jd=s>>0&255,c.hd=s>>8&255,c.ud=s>>16&255}function me(s,c,h,m,C,E){var L;for(L=0;L<m;++L){var N=c[h+L],H=N>>>8,O=N,aA=255&(aA=(aA=N>>>16)+((s.jd<<24>>24)*(H<<24>>24)>>>5));O=255&(O=(O=O+((s.hd<<24>>24)*(H<<24>>24)>>>5))+((s.ud<<24>>24)*(aA<<24>>24)>>>5)),C[E+L]=(4278255360&N)+(aA<<16)+O}}function oA(s,c,h,m,C){P[c]=function(E,L,N,H,O,aA,CA,bA,gA){for(H=CA;H<bA;++H)for(CA=0;CA<gA;++CA)O[aA++]=C(N[m(E[L++])])},P[s]=function(E,L,N,H,O,aA,CA){var bA=8>>E.b,gA=E.Ea,VA=E.K[0],kA=E.w;if(8>bA)for(E=(1<<E.b)-1,kA=(1<<bA)-1;L<N;++L){var iA,cA=0;for(iA=0;iA<gA;++iA)iA&E||(cA=m(H[O++])),aA[CA++]=C(VA[cA&kA]),cA>>=bA}else P["VP8LMapColor"+h](H,O,VA,kA,aA,CA,L,N,gA)}}function pA(s,c,h,m,C){for(h=c+h;c<h;){var E=s[c++];m[C++]=E>>16&255,m[C++]=E>>8&255,m[C++]=E>>0&255}}function HA(s,c,h,m,C){for(h=c+h;c<h;){var E=s[c++];m[C++]=E>>16&255,m[C++]=E>>8&255,m[C++]=E>>0&255,m[C++]=E>>24&255}}function qA(s,c,h,m,C){for(h=c+h;c<h;){var E=(L=s[c++])>>16&240|L>>12&15,L=L>>0&240|L>>28&15;m[C++]=E,m[C++]=L}}function pe(s,c,h,m,C){for(h=c+h;c<h;){var E=(L=s[c++])>>16&248|L>>13&7,L=L>>5&224|L>>3&31;m[C++]=E,m[C++]=L}}function te(s,c,h,m,C){for(h=c+h;c<h;){var E=s[c++];m[C++]=E>>0&255,m[C++]=E>>8&255,m[C++]=E>>16&255}}function se(s,c,h,m,C,E){if(E==0)for(h=c+h;c<h;)WA(m,((E=s[c++])[0]>>24|E[1]>>8&65280|E[2]<<8&16711680|E[3]<<24)>>>0),C+=32;else r(m,C,s,c,h)}function hA(s,c){P[c][0]=P[s+"0"],P[c][1]=P[s+"1"],P[c][2]=P[s+"2"],P[c][3]=P[s+"3"],P[c][4]=P[s+"4"],P[c][5]=P[s+"5"],P[c][6]=P[s+"6"],P[c][7]=P[s+"7"],P[c][8]=P[s+"8"],P[c][9]=P[s+"9"],P[c][10]=P[s+"10"],P[c][11]=P[s+"11"],P[c][12]=P[s+"12"],P[c][13]=P[s+"13"],P[c][14]=P[s+"0"],P[c][15]=P[s+"0"]}function vA(s){return s==Bl||s==ml||s==Ns||s==wl}function TA(){this.eb=[],this.size=this.A=this.fb=0}function PA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function tA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new TA,this.f.kb=new PA,this.sd=null}function yA(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function QA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function EA(s){return alert("todo:WebPSamplerProcessPlane"),s.T}function _A(s,c){var h=s.T,m=c.ba.f.RGBA,C=m.eb,E=m.fb+s.ka*m.A,L=br[c.ba.S],N=s.y,H=s.O,O=s.f,aA=s.N,CA=s.ea,bA=s.W,gA=c.cc,VA=c.dc,kA=c.Mc,iA=c.Nc,cA=s.ka,MA=s.ka+s.T,YA=s.U,OA=YA+1>>1;for(cA==0?L(N,H,null,null,O,aA,CA,bA,O,aA,CA,bA,C,E,null,null,YA):(L(c.ec,c.fc,N,H,gA,VA,kA,iA,O,aA,CA,bA,C,E-m.A,C,E,YA),++h);cA+2<MA;cA+=2)gA=O,VA=aA,kA=CA,iA=bA,aA+=s.Rc,bA+=s.Rc,E+=2*m.A,L(N,(H+=2*s.fa)-s.fa,N,H,gA,VA,kA,iA,O,aA,CA,bA,C,E-m.A,C,E,YA);return H+=s.fa,s.j+MA<s.o?(r(c.ec,c.fc,N,H,YA),r(c.cc,c.dc,O,aA,OA),r(c.Mc,c.Nc,CA,bA,OA),h--):1&MA||L(N,H,null,null,O,aA,CA,bA,O,aA,CA,bA,C,E+m.A,null,null,YA),h}function fe(s,c,h){var m=s.F,C=[s.J];if(m!=null){var E=s.U,L=c.ba.S,N=L==Is||L==Ns;c=c.ba.f.RGBA;var H=[0],O=s.ka;H[0]=s.T,s.Kb&&(O==0?--H[0]:(--O,C[0]-=s.width),s.j+s.ka+s.T==s.o&&(H[0]=s.o-s.j-O));var aA=c.eb;O=c.fb+O*c.A,s=nt(m,C[0],s.width,E,H,aA,O+(N?0:3),c.A),e(h==H),s&&vA(L)&&yr(aA,O,N,E,H,c.A)}return 0}function Fe(s){var c=s.ma,h=c.ba.S,m=11>h,C=h==Ss||h==Ds||h==Is||h==pl||h==12||vA(h);if(c.memory=null,c.Ib=null,c.Jb=null,c.Nd=null,!ki(c.Oa,s,C?11:12))return 0;if(C&&vA(h)&&zA(),s.da)alert("todo:use_scaling");else{if(m){if(c.Ib=EA,s.Kb){if(h=s.U+1>>1,c.memory=i(s.U+2*h),c.memory==null)return 0;c.ec=c.memory,c.fc=0,c.cc=c.ec,c.dc=c.fc+s.U,c.Mc=c.cc,c.Nc=c.dc+h,c.Ib=_A,zA()}}else alert("todo:EmitYUV");C&&(c.Jb=fe,m&&mA())}if(m&&!pu){for(s=0;256>s;++s)ag[s]=89858*(s-128)+Hs>>Ts,og[s]=-22014*(s-128)+Hs,sg[s]=-45773*(s-128),ig[s]=113618*(s-128)+Hs>>Ts;for(s=Mi;s<Cl;++s)c=76283*(s-16)+Hs>>Ts,lg[s-Mi]=ur(c,255),cg[s-Mi]=ur(c+8>>4,15);pu=1}return 1}function Ce(s){var c=s.ma,h=s.U,m=s.T;return e(!(1&s.ka)),0>=h||0>=m?0:(h=c.Ib(s,c),c.Jb!=null&&c.Jb(s,c,h),c.Dc+=h,1)}function Ae(s){s.ma.memory=null}function SA(s,c,h,m){return sA(s,8)!=47?0:(c[0]=sA(s,14)+1,h[0]=sA(s,14)+1,m[0]=sA(s,1),sA(s,3)!=0?0:!s.h)}function Be(s,c){if(4>s)return s+1;var h=s-2>>1;return(2+(1&s)<<h)+sA(c,h)+1}function Me(s,c){return 120<c?c-120:1<=(h=((h=jh[c-1])>>4)*s+(8-(15&h)))?h:1;var h}function qe(s,c,h){var m=D(h),C=s[c+=255&m].g-8;return 0<C&&(K(h,h.u+8),m=D(h),c+=s[c].value,c+=m&(1<<C)-1),K(h,h.u+s[c].g),s[c].value}function Re(s,c,h){return h.g+=s.g,h.value+=s.value<<c>>>0,e(8>=h.g),s.g}function Oe(s,c,h){var m=s.xc;return e((c=m==0?0:s.vc[s.md*(h>>m)+(c>>m)])<s.Wb),s.Ya[c]}function dt(s,c,h,m){var C=s.ab,E=s.c*c,L=s.C;c=L+c;var N=h,H=m;for(m=s.Ta,h=s.Ua;0<C--;){var O=s.gc[C],aA=L,CA=c,bA=N,gA=H,VA=(H=m,N=h,O.Ea);switch(e(aA<CA),e(CA<=O.nc),O.hc){case 2:Fs(bA,gA,(CA-aA)*VA,H,N);break;case 0:var kA=aA,iA=CA,cA=H,MA=N,YA=(ae=O).Ea;kA==0&&(hl(bA,gA,null,null,1,cA,MA),be(bA,gA+1,0,0,YA-1,cA,MA+1),gA+=YA,MA+=YA,++kA);for(var OA=1<<ae.b,ce=OA-1,re=KA(YA,ae.b),Qe=ae.K,ae=ae.w+(kA>>ae.b)*re;kA<iA;){var We=Qe,$e=ae,je=1;for(Di(bA,gA,cA,MA-YA,1,cA,MA);je<YA;){var Ve=(je&~ce)+OA;Ve>YA&&(Ve=YA),(0,xn[We[$e++]>>8&15])(bA,gA+ +je,cA,MA+je-YA,Ve-je,cA,MA+je),je=Ve}gA+=YA,MA+=YA,++kA&ce||(ae+=re)}CA!=O.nc&&r(H,N-VA,H,N+(CA-aA-1)*VA,VA);break;case 1:for(VA=bA,iA=gA,YA=(bA=O.Ea)-(MA=bA&~(cA=(gA=1<<O.b)-1)),kA=KA(bA,O.b),OA=O.K,O=O.w+(aA>>O.b)*kA;aA<CA;){for(ce=OA,re=O,Qe=new ee,ae=iA+MA,We=iA+bA;iA<ae;)He(ce[re++],Qe),aa(Qe,VA,iA,gA,H,N),iA+=gA,N+=gA;iA<We&&(He(ce[re++],Qe),aa(Qe,VA,iA,YA,H,N),iA+=YA,N+=YA),++aA&cA||(O+=kA)}break;case 3:if(bA==H&&gA==N&&0<O.b){for(iA=H,bA=VA=N+(CA-aA)*VA-(MA=(CA-aA)*KA(O.Ea,O.b)),gA=H,cA=N,kA=[],MA=(YA=MA)-1;0<=MA;--MA)kA[MA]=gA[cA+MA];for(MA=YA-1;0<=MA;--MA)iA[bA+MA]=kA[MA];mr(O,aA,CA,H,VA,H,N)}else mr(O,aA,CA,bA,gA,H,N)}N=m,H=h}H!=h&&r(m,h,N,H,E)}function cr(s,c){var h=s.V,m=s.Ba+s.c*s.C,C=c-s.C;if(e(c<=s.l.o),e(16>=C),0<C){var E=s.l,L=s.Ta,N=s.Ua,H=E.width;if(dt(s,C,h,m),C=N=[N],e((h=s.C)<(m=c)),e(E.v<E.va),m>E.o&&(m=E.o),h<E.j){var O=E.j-h;h=E.j,C[0]+=O*H}if(h>=m?h=0:(C[0]+=4*E.v,E.ka=h-E.j,E.U=E.va-E.v,E.T=m-h,h=1),h){if(N=N[0],11>(h=s.ca).S){var aA=h.f.RGBA,CA=(m=h.S,C=E.U,E=E.T,O=aA.eb,aA.A),bA=E;for(aA=aA.fb+s.Ma*aA.A;0<bA--;){var gA=L,VA=N,kA=C,iA=O,cA=aA;switch(m){case xs:nr(gA,VA,kA,iA,cA);break;case Ss:Jt(gA,VA,kA,iA,cA);break;case Bl:Jt(gA,VA,kA,iA,cA),yr(iA,cA,0,kA,1,0);break;case su:un(gA,VA,kA,iA,cA);break;case Ds:se(gA,VA,kA,iA,cA,1);break;case ml:se(gA,VA,kA,iA,cA,1),yr(iA,cA,0,kA,1,0);break;case Is:se(gA,VA,kA,iA,cA,0);break;case Ns:se(gA,VA,kA,iA,cA,0),yr(iA,cA,1,kA,1,0);break;case pl:Sn(gA,VA,kA,iA,cA);break;case wl:Sn(gA,VA,kA,iA,cA),rt(iA,cA,kA,1,0);break;case ou:cn(gA,VA,kA,iA,cA);break;default:e(0)}N+=H,aA+=CA}s.Ma+=E}else alert("todo:EmitRescaledRowsYUVA");e(s.Ma<=h.height)}}s.C=c,e(s.C<=s.i)}function $t(s){var c;if(0<s.ua)return 0;for(c=0;c<s.Wb;++c){var h=s.Ya[c].G,m=s.Ya[c].H;if(0<h[1][m[1]+0].g||0<h[2][m[2]+0].g||0<h[3][m[3]+0].g)return 0}return 1}function Pt(s,c,h,m,C,E){if(s.Z!=0){var L=s.qd,N=s.rd;for(e(Tn[s.Z]!=null);c<h;++c)Tn[s.Z](L,N,m,C,m,C,E),L=m,N=C,C+=E;s.qd=L,s.rd=N}}function Pe(s,c){var h=s.l.ma,m=h.Z==0||h.Z==1?s.l.j:s.C;if(m=s.C<m?m:s.C,e(c<=s.l.o),c>m){var C=s.l.width,E=h.ca,L=h.tb+C*m,N=s.V,H=s.Ba+s.c*m,O=s.gc;e(s.ab==1),e(O[0].hc==3),Qs(O[0],m,c,N,H,E,L),Pt(h,m,c,E,L,C)}s.C=s.Ma=c}function Lt(s,c,h,m,C,E,L){var N=s.$/m,H=s.$%m,O=s.m,aA=s.s,CA=h+s.$,bA=CA;C=h+m*C;var gA=h+m*E,VA=280+aA.ua,kA=s.Pb?N:16777216,iA=0<aA.ua?aA.Wa:null,cA=aA.wc,MA=CA<gA?Oe(aA,H,N):null;e(s.C<E),e(gA<=C);var YA=!1;A:for(;;){for(;YA||CA<gA;){var OA=0;if(N>=kA){var ce=CA-h;e((kA=s).Pb),kA.wd=kA.m,kA.xd=ce,0<kA.s.ua&&UA(kA.s.Wa,kA.s.vb),kA=N+Wh}if(H&cA||(MA=Oe(aA,H,N)),e(MA!=null),MA.Qb&&(c[CA]=MA.qb,YA=!0),!YA)if(eA(O),MA.jc){OA=O,ce=c;var re=CA,Qe=MA.pd[D(OA)&Tt-1];e(MA.jc),256>Qe.g?(K(OA,OA.u+Qe.g),ce[re]=Qe.value,OA=0):(K(OA,OA.u+Qe.g-256),e(256<=Qe.value),OA=Qe.value),OA==0&&(YA=!0)}else OA=qe(MA.G[0],MA.H[0],O);if(O.h)break;if(YA||256>OA){if(!YA)if(MA.nd)c[CA]=(MA.qb|OA<<8)>>>0;else{if(eA(O),YA=qe(MA.G[1],MA.H[1],O),eA(O),ce=qe(MA.G[2],MA.H[2],O),re=qe(MA.G[3],MA.H[3],O),O.h)break;c[CA]=(re<<24|YA<<16|OA<<8|ce)>>>0}if(YA=!1,++CA,++H>=m&&(H=0,++N,L!=null&&N<=E&&!(N%16)&&L(s,N),iA!=null))for(;bA<CA;)OA=c[bA++],iA.X[(506832829*OA&4294967295)>>>iA.Mb]=OA}else if(280>OA){if(OA=Be(OA-256,O),ce=qe(MA.G[4],MA.H[4],O),eA(O),ce=Me(m,ce=Be(ce,O)),O.h)break;if(CA-h<ce||C-CA<OA)break A;for(re=0;re<OA;++re)c[CA+re]=c[CA+re-ce];for(CA+=OA,H+=OA;H>=m;)H-=m,++N,L!=null&&N<=E&&!(N%16)&&L(s,N);if(e(CA<=C),H&cA&&(MA=Oe(aA,H,N)),iA!=null)for(;bA<CA;)OA=c[bA++],iA.X[(506832829*OA&4294967295)>>>iA.Mb]=OA}else{if(!(OA<VA))break A;for(YA=OA-280,e(iA!=null);bA<CA;)OA=c[bA++],iA.X[(506832829*OA&4294967295)>>>iA.Mb]=OA;OA=CA,e(!(YA>>>(ce=iA).Xa)),c[OA]=ce.X[YA],YA=!0}YA||e(O.h==T(O))}if(s.Pb&&O.h&&CA<C)e(s.m.h),s.a=5,s.m=s.wd,s.$=s.xd,0<s.s.ua&&UA(s.s.vb,s.s.Wa);else{if(O.h)break A;L!=null&&L(s,N>E?E:N),s.a=0,s.$=CA-h}return 1}return s.a=3,0}function Qt(s){e(s!=null),s.vc=null,s.yc=null,s.Ya=null;var c=s.Wa;c!=null&&(c.X=null),s.vb=null,e(s!=null)}function Ot(){var s=new dl;return s==null?null:(s.a=0,s.xb=uu,hA("Predictor","VP8LPredictors"),hA("Predictor","VP8LPredictors_C"),hA("PredictorAdd","VP8LPredictorsAdd"),hA("PredictorAdd","VP8LPredictorsAdd_C"),Fs=Se,aa=me,nr=pA,Jt=HA,Sn=qA,cn=pe,un=te,P.VP8LMapColor32b=Ha,P.VP8LMapColor8b=Es,s)}function tr(s,c,h,m,C){var E=1,L=[s],N=[c],H=m.m,O=m.s,aA=null,CA=0;A:for(;;){if(h)for(;E&&sA(H,1);){var bA=L,gA=N,VA=m,kA=1,iA=VA.m,cA=VA.gc[VA.ab],MA=sA(iA,2);if(VA.Oc&1<<MA)E=0;else{switch(VA.Oc|=1<<MA,cA.hc=MA,cA.Ea=bA[0],cA.nc=gA[0],cA.K=[null],++VA.ab,e(4>=VA.ab),MA){case 0:case 1:cA.b=sA(iA,3)+2,kA=tr(KA(cA.Ea,cA.b),KA(cA.nc,cA.b),0,VA,cA.K),cA.K=cA.K[0];break;case 3:var YA,OA=sA(iA,8)+1,ce=16<OA?0:4<OA?1:2<OA?2:3;if(bA[0]=KA(cA.Ea,ce),cA.b=ce,YA=kA=tr(OA,1,0,VA,cA.K)){var re,Qe=OA,ae=cA,We=1<<(8>>ae.b),$e=i(We);if($e==null)YA=0;else{var je=ae.K[0],Ve=ae.w;for($e[0]=ae.K[0][0],re=1;re<1*Qe;++re)$e[re]=GA(je[Ve+re],$e[re-1]);for(;re<4*We;++re)$e[re]=0;ae.K[0]=null,ae.K[0]=$e,YA=1}}kA=YA;break;case 2:break;default:e(0)}E=kA}}if(L=L[0],N=N[0],E&&sA(H,1)&&!(E=1<=(CA=sA(H,4))&&11>=CA)){m.a=3;break A}var At;if(At=E)e:{var Je,_e,Ct,ar=m,bt=L,ir=N,Xe=CA,dr=h,hr=ar.m,St=ar.s,Ht=[null],Ar=1,Fr=0,zr=qh[Xe];t:for(;;){if(dr&&sA(hr,1)){var Dt=sA(hr,3)+2,gn=KA(bt,Dt),ca=KA(ir,Dt),Ra=gn*ca;if(!tr(gn,ca,0,ar,Ht))break t;for(Ht=Ht[0],St.xc=Dt,Je=0;Je<Ra;++Je){var Hn=Ht[Je]>>8&65535;Ht[Je]=Hn,Hn>=Ar&&(Ar=Hn+1)}}if(hr.h)break t;for(_e=0;5>_e;++_e){var ut=lu[_e];!_e&&0<Xe&&(ut+=1<<Xe),Fr<ut&&(Fr=ut)}var bl=o(Ar*zr,x),wu=Ar,vu=o(wu,k);if(vu==null)var Ms=null;else e(65536>=wu),Ms=vu;var Pi=i(Fr);if(Ms==null||Pi==null||bl==null){ar.a=1;break t}var Ps=bl;for(Je=Ct=0;Je<Ar;++Je){var Tr=Ms[Je],Va=Tr.G,Ka=Tr.H,yu=0,Os=1,Cu=0;for(_e=0;5>_e;++_e){ut=lu[_e],Va[_e]=Ps,Ka[_e]=Ct,!_e&&0<Xe&&(ut+=1<<Xe);n:{var Rs,Fl=ut,Vs=ar,Oi=Pi,dg=Ps,hg=Ct,Ql=0,_n=Vs.m,gg=sA(_n,1);if(a(Oi,0,0,Fl),gg){var pg=sA(_n,1)+1,Bg=sA(_n,1),bu=sA(_n,Bg==0?1:8);Oi[bu]=1,pg==2&&(Oi[bu=sA(_n,8)]=1);var Ks=1}else{var Fu=i(19),Qu=sA(_n,4)+4;if(19<Qu){Vs.a=3;var Gs=0;break n}for(Rs=0;Rs<Qu;++Rs)Fu[Gh[Rs]]=sA(_n,3);var El=void 0,Ri=void 0,Eu=Vs,mg=Fu,js=Fl,Uu=Oi,Ul=0,Mn=Eu.m,Lu=8,ku=o(128,x);r:for(;I(ku,0,7,mg,19);){if(sA(Mn,1)){var wg=2+2*sA(Mn,3);if((El=2+sA(Mn,wg))>js)break r}else El=js;for(Ri=0;Ri<js&&El--;){eA(Mn);var xu=ku[0+(127&D(Mn))];K(Mn,Mn.u+xu.g);var Ga=xu.value;if(16>Ga)Uu[Ri++]=Ga,Ga!=0&&(Lu=Ga);else{var vg=Ga==16,Su=Ga-16,yg=Vh[Su],Du=sA(Mn,Rh[Su])+yg;if(Ri+Du>js)break r;for(var Cg=vg?Lu:0;0<Du--;)Uu[Ri++]=Cg}}Ul=1;break r}Ul||(Eu.a=3),Ks=Ul}(Ks=Ks&&!_n.h)&&(Ql=I(dg,hg,8,Oi,Fl)),Ks&&Ql!=0?Gs=Ql:(Vs.a=3,Gs=0)}if(Gs==0)break t;if(Os&&Kh[_e]==1&&(Os=Ps[Ct].g==0),yu+=Ps[Ct].g,Ct+=Gs,3>=_e){var Vi,Ll=Pi[0];for(Vi=1;Vi<ut;++Vi)Pi[Vi]>Ll&&(Ll=Pi[Vi]);Cu+=Ll}}if(Tr.nd=Os,Tr.Qb=0,Os&&(Tr.qb=(Va[3][Ka[3]+0].value<<24|Va[1][Ka[1]+0].value<<16|Va[2][Ka[2]+0].value)>>>0,yu==0&&256>Va[0][Ka[0]+0].value&&(Tr.Qb=1,Tr.qb+=Va[0][Ka[0]+0].value<<8)),Tr.jc=!Tr.Qb&&6>Cu,Tr.jc){var qs,pn=Tr;for(qs=0;qs<Tt;++qs){var Pn=qs,On=pn.pd[Pn],Ws=pn.G[0][pn.H[0]+Pn];256<=Ws.value?(On.g=Ws.g+256,On.value=Ws.value):(On.g=0,On.value=0,Pn>>=Re(Ws,8,On),Pn>>=Re(pn.G[1][pn.H[1]+Pn],16,On),Pn>>=Re(pn.G[2][pn.H[2]+Pn],0,On),Re(pn.G[3][pn.H[3]+Pn],24,On))}}}St.vc=Ht,St.Wb=Ar,St.Ya=Ms,St.yc=bl,At=1;break e}At=0}if(!(E=At)){m.a=3;break A}if(0<CA){if(O.ua=1<<CA,!de(O.Wa,CA)){m.a=1,E=0;break A}}else O.ua=0;var kl=m,Iu=L,bg=N,xl=kl.s,Sl=xl.xc;if(kl.c=Iu,kl.i=bg,xl.md=KA(Iu,Sl),xl.wc=Sl==0?-1:(1<<Sl)-1,h){m.xb=Ag;break A}if((aA=i(L*N))==null){m.a=1,E=0;break A}E=(E=Lt(m,aA,0,L,N,N,null))&&!H.h;break A}return E?(C!=null?C[0]=aA:(e(aA==null),e(h)),m.$=0,h||Qt(O)):Qt(O),E}function xr(s,c){var h=s.c*s.i,m=h+c+16*c;return e(s.c<=c),s.V=i(m),s.V==null?(s.Ta=null,s.Ua=0,s.a=1,0):(s.Ta=s.V,s.Ua=s.Ba+h+c,1)}function Cn(s,c){var h=s.C,m=c-h,C=s.V,E=s.Ba+s.c*h;for(e(c<=s.l.o);0<m;){var L=16<m?16:m,N=s.l.ma,H=s.l.width,O=H*L,aA=N.ca,CA=N.tb+H*h,bA=s.Ta,gA=s.Ua;dt(s,L,C,E),gt(bA,gA,aA,CA,O),Pt(N,h,h+L,aA,CA,H),m-=L,C+=L*s.c,h+=L}e(h==c),s.C=s.Ma=c}function rn(){this.ub=this.yd=this.td=this.Rb=0}function Sr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function nn(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function ya(){this.Yb=function(){var s=[];return function c(h,m,C){for(var E=C[m],L=0;L<E&&(h.push(C.length>m+1?[]:0),!(C.length<m+1));L++)c(h[L],m+1,C)}(s,0,[3,11]),s}()}function di(){this.jb=i(3),this.Wc=l([4,8],ya),this.Xc=l([4,17],ya)}function an(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function bn(){this.ld=this.La=this.dd=this.tc=0}function Ca(){this.Na=this.la=0}function ba(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Fn(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function hi(){this.uc=this.M=this.Nb=0,this.wa=Array(new bn),this.Y=0,this.ya=Array(new Fn),this.aa=0,this.l=new sn}function Fa(){this.y=i(16),this.f=i(8),this.ea=i(8)}function gi(){this.cb=this.a=0,this.sc="",this.m=new DA,this.Od=new rn,this.Kc=new Sr,this.ed=new an,this.Qa=new nn,this.Ic=this.$c=this.Aa=0,this.D=new hi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,DA),this.ia=0,this.pb=o(4,ba),this.Pa=new di,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Fa),this.Hd=0,this.rb=Array(new Ca),this.sb=0,this.wa=Array(new bn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Fn),this.L=this.aa=0,this.gd=l([4,2],bn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function sn(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function pi(){var s=new gi;return s!=null&&(s.a=0,s.sc="OK",s.cb=0,s.Xb=0,_i||(_i=q)),s}function ot(s,c,h){return s.a==0&&(s.a=c,s.sc=h,s.cb=0),0}function nA(s,c,h){return 3<=h&&s[c+0]==157&&s[c+1]==1&&s[c+2]==42}function BA(s,c){if(s==null)return 0;if(s.a=0,s.sc="OK",c==null)return ot(s,2,"null VP8Io passed to VP8GetHeaders()");var h=c.data,m=c.w,C=c.ha;if(4>C)return ot(s,7,"Truncated header.");var E=h[m+0]|h[m+1]<<8|h[m+2]<<16,L=s.Od;if(L.Rb=!(1&E),L.td=E>>1&7,L.yd=E>>4&1,L.ub=E>>5,3<L.td)return ot(s,3,"Incorrect keyframe parameters.");if(!L.yd)return ot(s,4,"Frame not displayable.");m+=3,C-=3;var N=s.Kc;if(L.Rb){if(7>C)return ot(s,7,"cannot parse picture header");if(!nA(h,m,C))return ot(s,3,"Bad code word");N.c=16383&(h[m+4]<<8|h[m+3]),N.Td=h[m+4]>>6,N.i=16383&(h[m+6]<<8|h[m+5]),N.Ud=h[m+6]>>6,m+=7,C-=7,s.za=N.c+15>>4,s.Ub=N.i+15>>4,c.width=N.c,c.height=N.i,c.Da=0,c.j=0,c.v=0,c.va=c.width,c.o=c.height,c.da=0,c.ib=c.width,c.hb=c.height,c.U=c.width,c.T=c.height,a((E=s.Pa).jb,0,255,E.jb.length),e((E=s.Qa)!=null),E.Cb=0,E.Bb=0,E.Fb=1,a(E.Zb,0,0,E.Zb.length),a(E.Lb,0,0,E.Lb)}if(L.ub>C)return ot(s,7,"bad partition length");X(E=s.m,h,m,L.ub),m+=L.ub,C-=L.ub,L.Rb&&(N.Ld=dA(E),N.Kd=dA(E)),N=s.Qa;var H,O=s.Pa;if(e(E!=null),e(N!=null),N.Cb=dA(E),N.Cb){if(N.Bb=dA(E),dA(E)){for(N.Fb=dA(E),H=0;4>H;++H)N.Zb[H]=dA(E)?j(E,7):0;for(H=0;4>H;++H)N.Lb[H]=dA(E)?j(E,6):0}if(N.Bb)for(H=0;3>H;++H)O.jb[H]=dA(E)?$(E,8):255}else N.Bb=0;if(E.Ka)return ot(s,3,"cannot parse segment header");if((N=s.ed).zd=dA(E),N.Tb=$(E,6),N.wb=$(E,3),N.Pc=dA(E),N.Pc&&dA(E)){for(O=0;4>O;++O)dA(E)&&(N.vd[O]=j(E,6));for(O=0;4>O;++O)dA(E)&&(N.od[O]=j(E,6))}if(s.L=N.Tb==0?0:N.zd?1:2,E.Ka)return ot(s,3,"cannot parse filter header");var aA=C;if(C=H=m,m=H+aA,N=aA,s.Xb=(1<<$(s.m,2))-1,aA<3*(O=s.Xb))h=7;else{for(H+=3*O,N-=3*O,aA=0;aA<O;++aA){var CA=h[C+0]|h[C+1]<<8|h[C+2]<<16;CA>N&&(CA=N),X(s.Jc[+aA],h,H,CA),H+=CA,N-=CA,C+=3}X(s.Jc[+O],h,H,N),h=H<m?0:5}if(h!=0)return ot(s,h,"cannot parse partitions");for(h=$(H=s.m,7),C=dA(H)?j(H,4):0,m=dA(H)?j(H,4):0,N=dA(H)?j(H,4):0,O=dA(H)?j(H,4):0,H=dA(H)?j(H,4):0,aA=s.Qa,CA=0;4>CA;++CA){if(aA.Cb){var bA=aA.Zb[CA];aA.Fb||(bA+=h)}else{if(0<CA){s.pb[CA]=s.pb[0];continue}bA=h}var gA=s.pb[CA];gA.Sc[0]=vl[ur(bA+C,127)],gA.Sc[1]=yl[ur(bA+0,127)],gA.Eb[0]=2*vl[ur(bA+m,127)],gA.Eb[1]=101581*yl[ur(bA+N,127)]>>16,8>gA.Eb[1]&&(gA.Eb[1]=8),gA.Qc[0]=vl[ur(bA+O,117)],gA.Qc[1]=yl[ur(bA+H,127)],gA.lc=bA+H}if(!L.Rb)return ot(s,4,"Not a key frame.");for(dA(E),L=s.Pa,h=0;4>h;++h){for(C=0;8>C;++C)for(m=0;3>m;++m)for(N=0;11>N;++N)O=lA(E,Jh[h][C][m][N])?$(E,8):$h[h][C][m][N],L.Wc[h][C].Yb[m][N]=O;for(C=0;17>C;++C)L.Xc[h][C]=L.Wc[h][Zh[C]]}return s.kc=dA(E),s.kc&&(s.Bd=$(E,8)),s.cb=1}function q(s,c,h,m,C,E,L){var N=c[C].Yb[h];for(h=0;16>C;++C){if(!lA(s,N[h+0]))return C;for(;!lA(s,N[h+1]);)if(N=c[++C].Yb[0],h=0,C==16)return 16;var H=c[C+1].Yb;if(lA(s,N[h+2])){var O=s,aA=0;if(lA(O,(bA=N)[(CA=h)+3]))if(lA(O,bA[CA+6])){for(N=0,CA=2*(aA=lA(O,bA[CA+8]))+(bA=lA(O,bA[CA+9+aA])),aA=0,bA=Yh[CA];bA[N];++N)aA+=aA+lA(O,bA[N]);aA+=3+(8<<CA)}else lA(O,bA[CA+7])?(aA=7+2*lA(O,165),aA+=lA(O,145)):aA=5+lA(O,159);else aA=lA(O,bA[CA+4])?3+lA(O,bA[CA+5]):2;N=H[2]}else aA=1,N=H[1];H=L+zh[C],0>(O=s).b&&uA(O);var CA,bA=O.b,gA=(CA=O.Ca>>1)-(O.I>>bA)>>31;--O.b,O.Ca+=gA,O.Ca|=1,O.I-=(CA+1&gA)<<bA,E[H]=((aA^gA)-gA)*m[(0<C)+0]}return 16}function wA(s){var c=s.rb[s.sb-1];c.la=0,c.Na=0,a(s.zc,0,0,s.zc.length),s.ja=0}function LA(s,c){if(s==null)return 0;if(c==null)return ot(s,2,"NULL VP8Io parameter in VP8Decode().");if(!s.cb&&!BA(s,c))return 0;if(e(s.cb),c.ac==null||c.ac(c)){c.ob&&(s.L=0);var h=_s[s.L];if(s.L==2?(s.yb=0,s.zb=0):(s.yb=c.v-h>>4,s.zb=c.j-h>>4,0>s.yb&&(s.yb=0),0>s.zb&&(s.zb=0)),s.Va=c.o+15+h>>4,s.Hb=c.va+15+h>>4,s.Hb>s.za&&(s.Hb=s.za),s.Va>s.Ub&&(s.Va=s.Ub),0<s.L){var m=s.ed;for(h=0;4>h;++h){var C;if(s.Qa.Cb){var E=s.Qa.Lb[h];s.Qa.Fb||(E+=m.Tb)}else E=m.Tb;for(C=0;1>=C;++C){var L=s.gd[h][C],N=E;if(m.Pc&&(N+=m.vd[0],C&&(N+=m.od[0])),0<(N=0>N?0:63<N?63:N)){var H=N;0<m.wb&&(H=4<m.wb?H>>2:H>>1)>9-m.wb&&(H=9-m.wb),1>H&&(H=1),L.dd=H,L.tc=2*N+H,L.ld=40<=N?2:15<=N?1:0}else L.tc=0;L.La=C}}}h=0}else ot(s,6,"Frame setup failed"),h=s.a;if(h=h==0){if(h){s.$c=0,0<s.Aa||(s.Ic=fg);A:{h=s.Ic,m=4*(H=s.za);var O=32*H,aA=H+1,CA=0<s.L?H*(0<s.Aa?2:1):0,bA=(s.Aa==2?2:1)*H;if((L=m+832+(C=3*(16*h+_s[s.L])/2*O)+(E=s.Fa!=null&&0<s.Fa.length?s.Kc.c*s.Kc.i:0))!=L)h=0;else{if(L>s.Vb){if(s.Vb=0,s.Ec=i(L),s.Fc=0,s.Ec==null){h=ot(s,1,"no memory during frame initialization.");break A}s.Vb=L}L=s.Ec,N=s.Fc,s.Ac=L,s.Bc=N,N+=m,s.Gd=o(O,Fa),s.Hd=0,s.rb=o(aA+1,Ca),s.sb=1,s.wa=CA?o(CA,bn):null,s.Y=0,s.D.Nb=0,s.D.wa=s.wa,s.D.Y=s.Y,0<s.Aa&&(s.D.Y+=H),e(!0),s.oc=L,s.pc=N,N+=832,s.ya=o(bA,Fn),s.aa=0,s.D.ya=s.ya,s.D.aa=s.aa,s.Aa==2&&(s.D.aa+=H),s.R=16*H,s.B=8*H,H=(O=_s[s.L])*s.R,O=O/2*s.B,s.sa=L,s.ta=N+H,s.qa=s.sa,s.ra=s.ta+16*h*s.R+O,s.Ha=s.qa,s.Ia=s.ra+8*h*s.B+O,s.$c=0,N+=C,s.mb=E?L:null,s.nb=E?N:null,e(N+E<=s.Fc+s.Vb),wA(s),a(s.Ac,s.Bc,0,m),h=1}}if(h){if(c.ka=0,c.y=s.sa,c.O=s.ta,c.f=s.qa,c.N=s.ra,c.ea=s.Ha,c.Vd=s.Ia,c.fa=s.R,c.Rc=s.B,c.F=null,c.J=0,!Ls){for(h=-255;255>=h;++h)Et[255+h]=0>h?-h:h;for(h=-1020;1020>=h;++h)dn[1020+h]=-128>h?-128:127<h?127:h;for(h=-112;112>=h;++h)Hi[112+h]=-16>h?-16:15<h?15:h;for(h=-255;510>=h;++h)Oa[255+h]=0>h?0:255<h?255:h;Ls=1}_a=on,fn=ke,Ii=Le,Zt=tt,wr=kt,ht=De,Ma=vi,Us=ra,Ni=fl,ia=yi,sa=ul,Dn=La,oa=Ci,Pa=ys,la=vs,In=Wr,Ti=ln,vr=cl,Nr[0]=qr,Nr[1]=Gr,Nr[2]=nl,Nr[3]=al,Nr[4]=gs,Nr[5]=Ea,Nr[6]=ps,Nr[7]=Bi,Nr[8]=sl,Nr[9]=il,Nn[0]=Qa,Nn[1]=jr,Nn[2]=Xt,Nn[3]=Qn,Nn[4]=Rt,Nn[5]=rl,Nn[6]=hs,hn[0]=Un,hn[1]=Br,hn[2]=ol,hn[3]=mi,hn[4]=ta,hn[5]=ll,hn[6]=wi,h=1}else h=0}h&&(h=function(gA,VA){for(gA.M=0;gA.M<gA.Va;++gA.M){var kA,iA=gA.Jc[gA.M&gA.Xb],cA=gA.m,MA=gA;for(kA=0;kA<MA.za;++kA){var YA=cA,OA=MA,ce=OA.Ac,re=OA.Bc+4*kA,Qe=OA.zc,ae=OA.ya[OA.aa+kA];if(OA.Qa.Bb?ae.$b=lA(YA,OA.Pa.jb[0])?2+lA(YA,OA.Pa.jb[2]):lA(YA,OA.Pa.jb[1]):ae.$b=0,OA.kc&&(ae.Ad=lA(YA,OA.Bd)),ae.Za=!lA(YA,145)+0,ae.Za){var We=ae.Ob,$e=0;for(OA=0;4>OA;++OA){var je,Ve=Qe[0+OA];for(je=0;4>je;++je){Ve=Xh[ce[re+je]][Ve];for(var At=cu[lA(YA,Ve[0])];0<At;)At=cu[2*At+lA(YA,Ve[At])];Ve=-At,ce[re+je]=Ve}r(We,$e,ce,re,4),$e+=4,Qe[0+OA]=Ve}}else Ve=lA(YA,156)?lA(YA,128)?1:3:lA(YA,163)?2:0,ae.Ob[0]=Ve,a(ce,re,Ve,4),a(Qe,0,Ve,4);ae.Dd=lA(YA,142)?lA(YA,114)?lA(YA,183)?1:3:2:0}if(MA.m.Ka)return ot(gA,7,"Premature end-of-partition0 encountered.");for(;gA.ja<gA.za;++gA.ja){if(MA=iA,YA=(cA=gA).rb[cA.sb-1],ce=cA.rb[cA.sb+cA.ja],kA=cA.ya[cA.aa+cA.ja],re=cA.kc?kA.Ad:0)YA.la=ce.la=0,kA.Za||(YA.Na=ce.Na=0),kA.Hc=0,kA.Gc=0,kA.ia=0;else{var Je,_e;if(YA=ce,ce=MA,re=cA.Pa.Xc,Qe=cA.ya[cA.aa+cA.ja],ae=cA.pb[Qe.$b],OA=Qe.ad,We=0,$e=cA.rb[cA.sb-1],Ve=je=0,a(OA,We,0,384),Qe.Za)var Ct=0,ar=re[3];else{At=i(16);var bt=YA.Na+$e.Na;if(bt=_i(ce,re[1],bt,ae.Eb,0,At,0),YA.Na=$e.Na=(0<bt)+0,1<bt)_a(At,0,OA,We);else{var ir=At[0]+3>>3;for(At=0;256>At;At+=16)OA[We+At]=ir}Ct=1,ar=re[0]}var Xe=15&YA.la,dr=15&$e.la;for(At=0;4>At;++At){var hr=1&dr;for(ir=_e=0;4>ir;++ir)Xe=Xe>>1|(hr=(bt=_i(ce,ar,bt=hr+(1&Xe),ae.Sc,Ct,OA,We))>Ct)<<7,_e=_e<<2|(3<bt?3:1<bt?2:OA[We+0]!=0),We+=16;Xe>>=4,dr=dr>>1|hr<<7,je=(je<<8|_e)>>>0}for(ar=Xe,Ct=dr>>4,Je=0;4>Je;Je+=2){for(_e=0,Xe=YA.la>>4+Je,dr=$e.la>>4+Je,At=0;2>At;++At){for(hr=1&dr,ir=0;2>ir;++ir)bt=hr+(1&Xe),Xe=Xe>>1|(hr=0<(bt=_i(ce,re[2],bt,ae.Qc,0,OA,We)))<<3,_e=_e<<2|(3<bt?3:1<bt?2:OA[We+0]!=0),We+=16;Xe>>=2,dr=dr>>1|hr<<5}Ve|=_e<<4*Je,ar|=Xe<<4<<Je,Ct|=(240&dr)<<Je}YA.la=ar,$e.la=Ct,Qe.Hc=je,Qe.Gc=Ve,Qe.ia=43690&Ve?0:ae.ia,re=!(je|Ve)}if(0<cA.L&&(cA.wa[cA.Y+cA.ja]=cA.gd[kA.$b][kA.Za],cA.wa[cA.Y+cA.ja].La|=!re),MA.Ka)return ot(gA,7,"Premature end-of-file encountered.")}if(wA(gA),cA=VA,MA=1,kA=(iA=gA).D,YA=0<iA.L&&iA.M>=iA.zb&&iA.M<=iA.Va,iA.Aa==0)A:{if(kA.M=iA.M,kA.uc=YA,Li(iA,kA),MA=1,kA=(_e=iA.D).Nb,YA=(Ve=_s[iA.L])*iA.R,ce=Ve/2*iA.B,At=16*kA*iA.R,ir=8*kA*iA.B,re=iA.sa,Qe=iA.ta-YA+At,ae=iA.qa,OA=iA.ra-ce+ir,We=iA.Ha,$e=iA.Ia-ce+ir,dr=(Xe=_e.M)==0,je=Xe>=iA.Va-1,iA.Aa==2&&Li(iA,_e),_e.uc)for(hr=(bt=iA).D.M,e(bt.D.uc),_e=bt.yb;_e<bt.Hb;++_e){Ct=_e,ar=hr;var St=(Ht=(ut=bt).D).Nb;Je=ut.R;var Ht=Ht.wa[Ht.Y+Ct],Ar=ut.sa,Fr=ut.ta+16*St*Je+16*Ct,zr=Ht.dd,Dt=Ht.tc;if(Dt!=0)if(e(3<=Dt),ut.L==1)0<Ct&&In(Ar,Fr,Je,Dt+4),Ht.La&&vr(Ar,Fr,Je,Dt),0<ar&&la(Ar,Fr,Je,Dt+4),Ht.La&&Ti(Ar,Fr,Je,Dt);else{var gn=ut.B,ca=ut.qa,Ra=ut.ra+8*St*gn+8*Ct,Hn=ut.Ha,ut=ut.Ia+8*St*gn+8*Ct;St=Ht.ld,0<Ct&&(Us(Ar,Fr,Je,Dt+4,zr,St),ia(ca,Ra,Hn,ut,gn,Dt+4,zr,St)),Ht.La&&(Dn(Ar,Fr,Je,Dt,zr,St),Pa(ca,Ra,Hn,ut,gn,Dt,zr,St)),0<ar&&(Ma(Ar,Fr,Je,Dt+4,zr,St),Ni(ca,Ra,Hn,ut,gn,Dt+4,zr,St)),Ht.La&&(sa(Ar,Fr,Je,Dt,zr,St),oa(ca,Ra,Hn,ut,gn,Dt,zr,St))}}if(iA.ia&&alert("todo:DitherRow"),cA.put!=null){if(_e=16*Xe,Xe=16*(Xe+1),dr?(cA.y=iA.sa,cA.O=iA.ta+At,cA.f=iA.qa,cA.N=iA.ra+ir,cA.ea=iA.Ha,cA.W=iA.Ia+ir):(_e-=Ve,cA.y=re,cA.O=Qe,cA.f=ae,cA.N=OA,cA.ea=We,cA.W=$e),je||(Xe-=Ve),Xe>cA.o&&(Xe=cA.o),cA.F=null,cA.J=null,iA.Fa!=null&&0<iA.Fa.length&&_e<Xe&&(cA.J=Ei(iA,cA,_e,Xe-_e),cA.F=iA.mb,cA.F==null&&cA.F.length==0)){MA=ot(iA,3,"Could not decode alpha data.");break A}_e<cA.j&&(Ve=cA.j-_e,_e=cA.j,e(!(1&Ve)),cA.O+=iA.R*Ve,cA.N+=iA.B*(Ve>>1),cA.W+=iA.B*(Ve>>1),cA.F!=null&&(cA.J+=cA.width*Ve)),_e<Xe&&(cA.O+=cA.v,cA.N+=cA.v>>1,cA.W+=cA.v>>1,cA.F!=null&&(cA.J+=cA.v),cA.ka=_e-cA.j,cA.U=cA.va-cA.v,cA.T=Xe-_e,MA=cA.put(cA))}kA+1!=iA.Ic||je||(r(iA.sa,iA.ta-YA,re,Qe+16*iA.R,YA),r(iA.qa,iA.ra-ce,ae,OA+8*iA.B,ce),r(iA.Ha,iA.Ia-ce,We,$e+8*iA.B,ce))}if(!MA)return ot(gA,6,"Output aborted.")}return 1}(s,c)),c.bc!=null&&c.bc(c),h&=1}return h?(s.cb=0,h):0}function IA(s,c,h,m,C){C=s[c+h+32*m]+(C>>3),s[c+h+32*m]=-256&C?0>C?0:255:C}function ie(s,c,h,m,C,E){IA(s,c,0,h,m+C),IA(s,c,1,h,m+E),IA(s,c,2,h,m-E),IA(s,c,3,h,m-C)}function XA(s){return(20091*s>>16)+s}function we(s,c,h,m){var C,E=0,L=i(16);for(C=0;4>C;++C){var N=s[c+0]+s[c+8],H=s[c+0]-s[c+8],O=(35468*s[c+4]>>16)-XA(s[c+12]),aA=XA(s[c+4])+(35468*s[c+12]>>16);L[E+0]=N+aA,L[E+1]=H+O,L[E+2]=H-O,L[E+3]=N-aA,E+=4,c++}for(C=E=0;4>C;++C)N=(s=L[E+0]+4)+L[E+8],H=s-L[E+8],O=(35468*L[E+4]>>16)-XA(L[E+12]),IA(h,m,0,0,N+(aA=XA(L[E+4])+(35468*L[E+12]>>16))),IA(h,m,1,0,H+O),IA(h,m,2,0,H-O),IA(h,m,3,0,N-aA),E++,m+=32}function De(s,c,h,m){var C=s[c+0]+4,E=35468*s[c+4]>>16,L=XA(s[c+4]),N=35468*s[c+1]>>16;ie(h,m,0,C+L,s=XA(s[c+1]),N),ie(h,m,1,C+E,s,N),ie(h,m,2,C-E,s,N),ie(h,m,3,C-L,s,N)}function ke(s,c,h,m,C){we(s,c,h,m),C&&we(s,c+16,h,m+4)}function Le(s,c,h,m){fn(s,c+0,h,m,1),fn(s,c+32,h,m+128,1)}function tt(s,c,h,m){var C;for(s=s[c+0]+4,C=0;4>C;++C)for(c=0;4>c;++c)IA(h,m,c,C,s)}function kt(s,c,h,m){s[c+0]&&Zt(s,c+0,h,m),s[c+16]&&Zt(s,c+16,h,m+4),s[c+32]&&Zt(s,c+32,h,m+128),s[c+48]&&Zt(s,c+48,h,m+128+4)}function on(s,c,h,m){var C,E=i(16);for(C=0;4>C;++C){var L=s[c+0+C]+s[c+12+C],N=s[c+4+C]+s[c+8+C],H=s[c+4+C]-s[c+8+C],O=s[c+0+C]-s[c+12+C];E[0+C]=L+N,E[8+C]=L-N,E[4+C]=O+H,E[12+C]=O-H}for(C=0;4>C;++C)L=(s=E[0+4*C]+3)+E[3+4*C],N=E[1+4*C]+E[2+4*C],H=E[1+4*C]-E[2+4*C],O=s-E[3+4*C],h[m+0]=L+N>>3,h[m+16]=O+H>>3,h[m+32]=L-N>>3,h[m+48]=O-H>>3,m+=64}function Kr(s,c,h){var m,C=c-32,E=fr,L=255-s[C-1];for(m=0;m<h;++m){var N,H=E,O=L+s[c-1];for(N=0;N<h;++N)s[c+N]=H[O+s[C+N]];c+=32}}function Gr(s,c){Kr(s,c,4)}function Br(s,c){Kr(s,c,8)}function jr(s,c){Kr(s,c,16)}function Xt(s,c){var h;for(h=0;16>h;++h)r(s,c+32*h,s,c-32,16)}function Qn(s,c){var h;for(h=16;0<h;--h)a(s,c,s[c-1],16),c+=32}function En(s,c,h){var m;for(m=0;16>m;++m)a(c,h+32*m,s,16)}function Qa(s,c){var h,m=16;for(h=0;16>h;++h)m+=s[c-1+32*h]+s[c+h-32];En(m>>5,s,c)}function Rt(s,c){var h,m=8;for(h=0;16>h;++h)m+=s[c-1+32*h];En(m>>4,s,c)}function rl(s,c){var h,m=8;for(h=0;16>h;++h)m+=s[c+h-32];En(m>>4,s,c)}function hs(s,c){En(128,s,c)}function xe(s,c,h){return s+2*c+h+2>>2}function nl(s,c){var h,m=c-32;for(m=new Uint8Array([xe(s[m-1],s[m+0],s[m+1]),xe(s[m+0],s[m+1],s[m+2]),xe(s[m+1],s[m+2],s[m+3]),xe(s[m+2],s[m+3],s[m+4])]),h=0;4>h;++h)r(s,c+32*h,m,0,m.length)}function al(s,c){var h=s[c-1],m=s[c-1+32],C=s[c-1+64],E=s[c-1+96];WA(s,c+0,16843009*xe(s[c-1-32],h,m)),WA(s,c+32,16843009*xe(h,m,C)),WA(s,c+64,16843009*xe(m,C,E)),WA(s,c+96,16843009*xe(C,E,E))}function qr(s,c){var h,m=4;for(h=0;4>h;++h)m+=s[c+h-32]+s[c-1+32*h];for(m>>=3,h=0;4>h;++h)a(s,c+32*h,m,4)}function gs(s,c){var h=s[c-1+0],m=s[c-1+32],C=s[c-1+64],E=s[c-1-32],L=s[c+0-32],N=s[c+1-32],H=s[c+2-32],O=s[c+3-32];s[c+0+96]=xe(m,C,s[c-1+96]),s[c+1+96]=s[c+0+64]=xe(h,m,C),s[c+2+96]=s[c+1+64]=s[c+0+32]=xe(E,h,m),s[c+3+96]=s[c+2+64]=s[c+1+32]=s[c+0+0]=xe(L,E,h),s[c+3+64]=s[c+2+32]=s[c+1+0]=xe(N,L,E),s[c+3+32]=s[c+2+0]=xe(H,N,L),s[c+3+0]=xe(O,H,N)}function ps(s,c){var h=s[c+1-32],m=s[c+2-32],C=s[c+3-32],E=s[c+4-32],L=s[c+5-32],N=s[c+6-32],H=s[c+7-32];s[c+0+0]=xe(s[c+0-32],h,m),s[c+1+0]=s[c+0+32]=xe(h,m,C),s[c+2+0]=s[c+1+32]=s[c+0+64]=xe(m,C,E),s[c+3+0]=s[c+2+32]=s[c+1+64]=s[c+0+96]=xe(C,E,L),s[c+3+32]=s[c+2+64]=s[c+1+96]=xe(E,L,N),s[c+3+64]=s[c+2+96]=xe(L,N,H),s[c+3+96]=xe(N,H,H)}function Ea(s,c){var h=s[c-1+0],m=s[c-1+32],C=s[c-1+64],E=s[c-1-32],L=s[c+0-32],N=s[c+1-32],H=s[c+2-32],O=s[c+3-32];s[c+0+0]=s[c+1+64]=E+L+1>>1,s[c+1+0]=s[c+2+64]=L+N+1>>1,s[c+2+0]=s[c+3+64]=N+H+1>>1,s[c+3+0]=H+O+1>>1,s[c+0+96]=xe(C,m,h),s[c+0+64]=xe(m,h,E),s[c+0+32]=s[c+1+96]=xe(h,E,L),s[c+1+32]=s[c+2+96]=xe(E,L,N),s[c+2+32]=s[c+3+96]=xe(L,N,H),s[c+3+32]=xe(N,H,O)}function Bi(s,c){var h=s[c+0-32],m=s[c+1-32],C=s[c+2-32],E=s[c+3-32],L=s[c+4-32],N=s[c+5-32],H=s[c+6-32],O=s[c+7-32];s[c+0+0]=h+m+1>>1,s[c+1+0]=s[c+0+64]=m+C+1>>1,s[c+2+0]=s[c+1+64]=C+E+1>>1,s[c+3+0]=s[c+2+64]=E+L+1>>1,s[c+0+32]=xe(h,m,C),s[c+1+32]=s[c+0+96]=xe(m,C,E),s[c+2+32]=s[c+1+96]=xe(C,E,L),s[c+3+32]=s[c+2+96]=xe(E,L,N),s[c+3+64]=xe(L,N,H),s[c+3+96]=xe(N,H,O)}function il(s,c){var h=s[c-1+0],m=s[c-1+32],C=s[c-1+64],E=s[c-1+96];s[c+0+0]=h+m+1>>1,s[c+2+0]=s[c+0+32]=m+C+1>>1,s[c+2+32]=s[c+0+64]=C+E+1>>1,s[c+1+0]=xe(h,m,C),s[c+3+0]=s[c+1+32]=xe(m,C,E),s[c+3+32]=s[c+1+64]=xe(C,E,E),s[c+3+64]=s[c+2+64]=s[c+0+96]=s[c+1+96]=s[c+2+96]=s[c+3+96]=E}function sl(s,c){var h=s[c-1+0],m=s[c-1+32],C=s[c-1+64],E=s[c-1+96],L=s[c-1-32],N=s[c+0-32],H=s[c+1-32],O=s[c+2-32];s[c+0+0]=s[c+2+32]=h+L+1>>1,s[c+0+32]=s[c+2+64]=m+h+1>>1,s[c+0+64]=s[c+2+96]=C+m+1>>1,s[c+0+96]=E+C+1>>1,s[c+3+0]=xe(N,H,O),s[c+2+0]=xe(L,N,H),s[c+1+0]=s[c+3+32]=xe(h,L,N),s[c+1+32]=s[c+3+64]=xe(m,h,L),s[c+1+64]=s[c+3+96]=xe(C,m,h),s[c+1+96]=xe(E,C,m)}function ol(s,c){var h;for(h=0;8>h;++h)r(s,c+32*h,s,c-32,8)}function mi(s,c){var h;for(h=0;8>h;++h)a(s,c,s[c-1],8),c+=32}function ea(s,c,h){var m;for(m=0;8>m;++m)a(c,h+32*m,s,8)}function Un(s,c){var h,m=8;for(h=0;8>h;++h)m+=s[c+h-32]+s[c-1+32*h];ea(m>>4,s,c)}function ll(s,c){var h,m=4;for(h=0;8>h;++h)m+=s[c+h-32];ea(m>>3,s,c)}function ta(s,c){var h,m=4;for(h=0;8>h;++h)m+=s[c-1+32*h];ea(m>>3,s,c)}function wi(s,c){ea(128,s,c)}function Ua(s,c,h){var m=s[c-h],C=s[c+0],E=3*(C-m)+gl[1020+s[c-2*h]-s[c+h]],L=ks[112+(E+4>>3)];s[c-h]=fr[255+m+ks[112+(E+3>>3)]],s[c+0]=fr[255+C-L]}function Bs(s,c,h,m){var C=s[c+0],E=s[c+h];return Cr[255+s[c-2*h]-s[c-h]]>m||Cr[255+E-C]>m}function ms(s,c,h,m){return 4*Cr[255+s[c-h]-s[c+0]]+Cr[255+s[c-2*h]-s[c+h]]<=m}function ws(s,c,h,m,C){var E=s[c-3*h],L=s[c-2*h],N=s[c-h],H=s[c+0],O=s[c+h],aA=s[c+2*h],CA=s[c+3*h];return 4*Cr[255+N-H]+Cr[255+L-O]>m?0:Cr[255+s[c-4*h]-E]<=C&&Cr[255+E-L]<=C&&Cr[255+L-N]<=C&&Cr[255+CA-aA]<=C&&Cr[255+aA-O]<=C&&Cr[255+O-H]<=C}function vs(s,c,h,m){var C=2*m+1;for(m=0;16>m;++m)ms(s,c+m,h,C)&&Ua(s,c+m,h)}function Wr(s,c,h,m){var C=2*m+1;for(m=0;16>m;++m)ms(s,c+m*h,1,C)&&Ua(s,c+m*h,1)}function ln(s,c,h,m){var C;for(C=3;0<C;--C)vs(s,c+=4*h,h,m)}function cl(s,c,h,m){var C;for(C=3;0<C;--C)Wr(s,c+=4,h,m)}function Ln(s,c,h,m,C,E,L,N){for(E=2*E+1;0<C--;){if(ws(s,c,h,E,L))if(Bs(s,c,h,N))Ua(s,c,h);else{var H=s,O=c,aA=h,CA=H[O-2*aA],bA=H[O-aA],gA=H[O+0],VA=H[O+aA],kA=H[O+2*aA],iA=27*(MA=gl[1020+3*(gA-bA)+gl[1020+CA-VA]])+63>>7,cA=18*MA+63>>7,MA=9*MA+63>>7;H[O-3*aA]=fr[255+H[O-3*aA]+MA],H[O-2*aA]=fr[255+CA+cA],H[O-aA]=fr[255+bA+iA],H[O+0]=fr[255+gA-iA],H[O+aA]=fr[255+VA-cA],H[O+2*aA]=fr[255+kA-MA]}c+=m}}function Dr(s,c,h,m,C,E,L,N){for(E=2*E+1;0<C--;){if(ws(s,c,h,E,L))if(Bs(s,c,h,N))Ua(s,c,h);else{var H=s,O=c,aA=h,CA=H[O-aA],bA=H[O+0],gA=H[O+aA],VA=ks[112+((kA=3*(bA-CA))+4>>3)],kA=ks[112+(kA+3>>3)],iA=VA+1>>1;H[O-2*aA]=fr[255+H[O-2*aA]+iA],H[O-aA]=fr[255+CA+kA],H[O+0]=fr[255+bA-VA],H[O+aA]=fr[255+gA-iA]}c+=m}}function vi(s,c,h,m,C,E){Ln(s,c,h,1,16,m,C,E)}function ra(s,c,h,m,C,E){Ln(s,c,1,h,16,m,C,E)}function ul(s,c,h,m,C,E){var L;for(L=3;0<L;--L)Dr(s,c+=4*h,h,1,16,m,C,E)}function La(s,c,h,m,C,E){var L;for(L=3;0<L;--L)Dr(s,c+=4,1,h,16,m,C,E)}function fl(s,c,h,m,C,E,L,N){Ln(s,c,C,1,8,E,L,N),Ln(h,m,C,1,8,E,L,N)}function yi(s,c,h,m,C,E,L,N){Ln(s,c,1,C,8,E,L,N),Ln(h,m,1,C,8,E,L,N)}function Ci(s,c,h,m,C,E,L,N){Dr(s,c+4*C,C,1,8,E,L,N),Dr(h,m+4*C,C,1,8,E,L,N)}function ys(s,c,h,m,C,E,L,N){Dr(s,c+4,1,C,8,E,L,N),Dr(h,m+4,1,C,8,E,L,N)}function ka(){this.ba=new tA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new QA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function bi(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Fi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Cs(){this.ua=0,this.Wa=new S,this.vb=new S,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new k,this.yc=new x}function dl(){this.xb=this.a=0,this.l=new sn,this.ca=new tA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new F,this.Pb=0,this.wd=new F,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Cs,this.ab=0,this.gc=o(4,Fi),this.Oc=0}function xa(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new sn,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function na(s,c,h,m,C,E,L){for(s=s==null?0:s[c+0],c=0;c<L;++c)C[E+c]=s+h[m+c]&255,s=C[E+c]}function Qi(s,c,h,m,C,E,L){var N;if(s==null)na(null,null,h,m,C,E,L);else for(N=0;N<L;++N)C[E+N]=s[c+N]+h[m+N]&255}function kn(s,c,h,m,C,E,L){if(s==null)na(null,null,h,m,C,E,L);else{var N,H=s[c+0],O=H,aA=H;for(N=0;N<L;++N)O=aA+(H=s[c+N])-O,aA=h[m+N]+(-256&O?0>O?0:255:O)&255,O=H,C[E+N]=aA}}function Ei(s,c,h,m){var C=c.width,E=c.o;if(e(s!=null&&c!=null),0>h||0>=m||h+m>E)return null;if(!s.Cc){if(s.ga==null){var L;if(s.ga=new xa,(L=s.ga==null)||(L=c.width*c.o,e(s.Gb.length==0),s.Gb=i(L),s.Uc=0,s.Gb==null?L=0:(s.mb=s.Gb,s.nb=s.Uc,s.rc=null,L=1),L=!L),!L){L=s.ga;var N=s.Fa,H=s.P,O=s.qc,aA=s.mb,CA=s.nb,bA=H+1,gA=O-1,VA=L.l;if(e(N!=null&&aA!=null&&c!=null),Tn[0]=null,Tn[1]=na,Tn[2]=Qi,Tn[3]=kn,L.ca=aA,L.tb=CA,L.c=c.width,L.i=c.height,e(0<L.c&&0<L.i),1>=O)c=0;else if(L.$a=N[H+0]>>0&3,L.Z=N[H+0]>>2&3,L.Lc=N[H+0]>>4&3,H=N[H+0]>>6&3,0>L.$a||1<L.$a||4<=L.Z||1<L.Lc||H)c=0;else if(VA.put=Ce,VA.ac=Fe,VA.bc=Ae,VA.ma=L,VA.width=c.width,VA.height=c.height,VA.Da=c.Da,VA.v=c.v,VA.va=c.va,VA.j=c.j,VA.o=c.o,L.$a)A:{e(L.$a==1),c=Ot();e:for(;;){if(c==null){c=0;break A}if(e(L!=null),L.mc=c,c.c=L.c,c.i=L.i,c.l=L.l,c.l.ma=L,c.l.width=L.c,c.l.height=L.i,c.a=0,V(c.m,N,bA,gA),!tr(L.c,L.i,1,c,null)||(c.ab==1&&c.gc[0].hc==3&&$t(c.s)?(L.ic=1,N=c.c*c.i,c.Ta=null,c.Ua=0,c.V=i(N),c.Ba=0,c.V==null?(c.a=1,c=0):c=1):(L.ic=0,c=xr(c,L.c)),!c))break e;c=1;break A}L.mc=null,c=0}else c=gA>=L.c*L.i;L=!c}if(L)return null;s.ga.Lc!=1?s.Ga=0:m=E-h}e(s.ga!=null),e(h+m<=E);A:{if(c=(N=s.ga).c,E=N.l.o,N.$a==0){if(bA=s.rc,gA=s.Vc,VA=s.Fa,H=s.P+1+h*c,O=s.mb,aA=s.nb+h*c,e(H<=s.P+s.qc),N.Z!=0)for(e(Tn[N.Z]!=null),L=0;L<m;++L)Tn[N.Z](bA,gA,VA,H,O,aA,c),bA=O,gA=aA,aA+=c,H+=c;else for(L=0;L<m;++L)r(O,aA,VA,H,c),bA=O,gA=aA,aA+=c,H+=c;s.rc=bA,s.Vc=gA}else{if(e(N.mc!=null),c=h+m,e((L=N.mc)!=null),e(c<=L.i),L.C>=c)c=1;else if(N.ic||mA(),N.ic){N=L.V,bA=L.Ba,gA=L.c;var kA=L.i,iA=(VA=1,H=L.$/gA,O=L.$%gA,aA=L.m,CA=L.s,L.$),cA=gA*kA,MA=gA*c,YA=CA.wc,OA=iA<MA?Oe(CA,O,H):null;e(iA<=cA),e(c<=kA),e($t(CA));e:for(;;){for(;!aA.h&&iA<MA;){if(O&YA||(OA=Oe(CA,O,H)),e(OA!=null),eA(aA),256>(kA=qe(OA.G[0],OA.H[0],aA)))N[bA+iA]=kA,++iA,++O>=gA&&(O=0,++H<=c&&!(H%16)&&Pe(L,H));else{if(!(280>kA)){VA=0;break e}kA=Be(kA-256,aA);var ce,re=qe(OA.G[4],OA.H[4],aA);if(eA(aA),!(iA>=(re=Me(gA,re=Be(re,aA)))&&cA-iA>=kA)){VA=0;break e}for(ce=0;ce<kA;++ce)N[bA+iA+ce]=N[bA+iA+ce-re];for(iA+=kA,O+=kA;O>=gA;)O-=gA,++H<=c&&!(H%16)&&Pe(L,H);iA<MA&&O&YA&&(OA=Oe(CA,O,H))}e(aA.h==T(aA))}Pe(L,H>c?c:H);break e}!VA||aA.h&&iA<cA?(VA=0,L.a=aA.h?5:3):L.$=iA,c=VA}else c=Lt(L,L.V,L.Ba,L.c,L.i,c,Cn);if(!c){m=0;break A}}h+m>=E&&(s.Cc=1),m=1}if(!m)return null;if(s.Cc&&((m=s.ga)!=null&&(m.mc=null),s.ga=null,0<s.Ga))return alert("todo:WebPDequantizeLevels"),null}return s.nb+h*C}function f(s,c,h,m,C,E){for(;0<C--;){var L,N=s,H=c+(h?1:0),O=s,aA=c+(h?0:3);for(L=0;L<m;++L){var CA=O[aA+4*L];CA!=255&&(CA*=32897,N[H+4*L+0]=N[H+4*L+0]*CA>>23,N[H+4*L+1]=N[H+4*L+1]*CA>>23,N[H+4*L+2]=N[H+4*L+2]*CA>>23)}c+=E}}function b(s,c,h,m,C){for(;0<m--;){var E;for(E=0;E<h;++E){var L=s[c+2*E+0],N=15&(O=s[c+2*E+1]),H=4369*N,O=(240&O|O>>4)*H>>16;s[c+2*E+0]=(240&L|L>>4)*H>>16&240|(15&L|L<<4)*H>>16>>4&15,s[c+2*E+1]=240&O|N}c+=C}}function W(s,c,h,m,C,E,L,N){var H,O,aA=255;for(O=0;O<C;++O){for(H=0;H<m;++H){var CA=s[c+H];E[L+4*H]=CA,aA&=CA}c+=h,L+=N}return aA!=255}function rA(s,c,h,m,C){var E;for(E=0;E<C;++E)h[m+E]=s[c+E]>>8}function mA(){yr=f,rt=b,nt=W,gt=rA}function xA(s,c,h){P[s]=function(m,C,E,L,N,H,O,aA,CA,bA,gA,VA,kA,iA,cA,MA,YA){var OA,ce=YA-1>>1,re=N[H+0]|O[aA+0]<<16,Qe=CA[bA+0]|gA[VA+0]<<16;e(m!=null);var ae=3*re+Qe+131074>>2;for(c(m[C+0],255&ae,ae>>16,kA,iA),E!=null&&(ae=3*Qe+re+131074>>2,c(E[L+0],255&ae,ae>>16,cA,MA)),OA=1;OA<=ce;++OA){var We=N[H+OA]|O[aA+OA]<<16,$e=CA[bA+OA]|gA[VA+OA]<<16,je=re+We+Qe+$e+524296,Ve=je+2*(We+Qe)>>3;ae=Ve+re>>1,re=(je=je+2*(re+$e)>>3)+We>>1,c(m[C+2*OA-1],255&ae,ae>>16,kA,iA+(2*OA-1)*h),c(m[C+2*OA-0],255&re,re>>16,kA,iA+(2*OA-0)*h),E!=null&&(ae=je+Qe>>1,re=Ve+$e>>1,c(E[L+2*OA-1],255&ae,ae>>16,cA,MA+(2*OA-1)*h),c(E[L+2*OA+0],255&re,re>>16,cA,MA+(2*OA+0)*h)),re=We,Qe=$e}1&YA||(ae=3*re+Qe+131074>>2,c(m[C+YA-1],255&ae,ae>>16,kA,iA+(YA-1)*h),E!=null&&(ae=3*Qe+re+131074>>2,c(E[L+YA-1],255&ae,ae>>16,cA,MA+(YA-1)*h)))}}function zA(){br[xs]=eg,br[Ss]=fu,br[su]=tg,br[Ds]=du,br[Is]=hu,br[pl]=gu,br[ou]=rg,br[Bl]=fu,br[ml]=du,br[Ns]=hu,br[wl]=gu}function le(s){return s&-16384?0>s?0:255:s>>ng}function ye(s,c){return le((19077*s>>8)+(26149*c>>8)-14234)}function Te(s,c,h){return le((19077*s>>8)-(6419*c>>8)-(13320*h>>8)+8708)}function Ie(s,c){return le((19077*s>>8)+(33050*c>>8)-17685)}function Ge(s,c,h,m,C){m[C+0]=ye(s,h),m[C+1]=Te(s,c,h),m[C+2]=Ie(s,c)}function lt(s,c,h,m,C){m[C+0]=Ie(s,c),m[C+1]=Te(s,c,h),m[C+2]=ye(s,h)}function ct(s,c,h,m,C){var E=Te(s,c,h);c=E<<3&224|Ie(s,c)>>3,m[C+0]=248&ye(s,h)|E>>5,m[C+1]=c}function yt(s,c,h,m,C){var E=240&Ie(s,c)|15;m[C+0]=240&ye(s,h)|Te(s,c,h)>>4,m[C+1]=E}function Vt(s,c,h,m,C){m[C+0]=255,Ge(s,c,h,m,C+1)}function xt(s,c,h,m,C){lt(s,c,h,m,C),m[C+3]=255}function Ir(s,c,h,m,C){Ge(s,c,h,m,C),m[C+3]=255}function ur(s,c){return 0>s?0:s>c?c:s}function Yr(s,c,h){P[s]=function(m,C,E,L,N,H,O,aA,CA){for(var bA=aA+(-2&CA)*h;aA!=bA;)c(m[C+0],E[L+0],N[H+0],O,aA),c(m[C+1],E[L+0],N[H+0],O,aA+h),C+=2,++L,++H,aA+=2*h;1&CA&&c(m[C+0],E[L+0],N[H+0],O,aA)}}function bs(s,c,h){return h==0?s==0?c==0?6:5:c==0?4:0:h}function Ui(s,c,h,m,C){switch(s>>>30){case 3:fn(c,h,m,C,0);break;case 2:ht(c,h,m,C);break;case 1:Zt(c,h,m,C)}}function Li(s,c){var h,m,C=c.M,E=c.Nb,L=s.oc,N=s.pc+40,H=s.oc,O=s.pc+584,aA=s.oc,CA=s.pc+600;for(h=0;16>h;++h)L[N+32*h-1]=129;for(h=0;8>h;++h)H[O+32*h-1]=129,aA[CA+32*h-1]=129;for(0<C?L[N-1-32]=H[O-1-32]=aA[CA-1-32]=129:(a(L,N-32-1,127,21),a(H,O-32-1,127,9),a(aA,CA-32-1,127,9)),m=0;m<s.za;++m){var bA=c.ya[c.aa+m];if(0<m){for(h=-1;16>h;++h)r(L,N+32*h-4,L,N+32*h+12,4);for(h=-1;8>h;++h)r(H,O+32*h-4,H,O+32*h+4,4),r(aA,CA+32*h-4,aA,CA+32*h+4,4)}var gA=s.Gd,VA=s.Hd+m,kA=bA.ad,iA=bA.Hc;if(0<C&&(r(L,N-32,gA[VA].y,0,16),r(H,O-32,gA[VA].f,0,8),r(aA,CA-32,gA[VA].ea,0,8)),bA.Za){var cA=L,MA=N-32+16;for(0<C&&(m>=s.za-1?a(cA,MA,gA[VA].y[15],4):r(cA,MA,gA[VA+1].y,0,4)),h=0;4>h;h++)cA[MA+128+h]=cA[MA+256+h]=cA[MA+384+h]=cA[MA+0+h];for(h=0;16>h;++h,iA<<=2)cA=L,MA=N+Bu[h],Nr[bA.Ob[h]](cA,MA),Ui(iA,kA,16*+h,cA,MA)}else if(cA=bs(m,C,bA.Ob[0]),Nn[cA](L,N),iA!=0)for(h=0;16>h;++h,iA<<=2)Ui(iA,kA,16*+h,L,N+Bu[h]);for(h=bA.Gc,cA=bs(m,C,bA.Dd),hn[cA](H,O),hn[cA](aA,CA),iA=kA,cA=H,MA=O,255&(bA=h>>0)&&(170&bA?Ii(iA,256,cA,MA):wr(iA,256,cA,MA)),bA=aA,iA=CA,255&(h>>=8)&&(170&h?Ii(kA,320,bA,iA):wr(kA,320,bA,iA)),C<s.Ub-1&&(r(gA[VA].y,0,L,N+480,16),r(gA[VA].f,0,H,O+224,8),r(gA[VA].ea,0,aA,CA+224,8)),h=8*E*s.B,gA=s.sa,VA=s.ta+16*m+16*E*s.R,kA=s.qa,bA=s.ra+8*m+h,iA=s.Ha,cA=s.Ia+8*m+h,h=0;16>h;++h)r(gA,VA+h*s.R,L,N+32*h,16);for(h=0;8>h;++h)r(kA,bA+h*s.B,H,O+32*h,8),r(iA,cA+h*s.B,aA,CA+32*h,8)}}function Sa(s,c,h,m,C,E,L,N,H){var O=[0],aA=[0],CA=0,bA=H!=null?H.kd:0,gA=H??new bi;if(s==null||12>h)return 7;gA.data=s,gA.w=c,gA.ha=h,c=[c],h=[h],gA.gb=[gA.gb];A:{var VA=c,kA=h,iA=gA.gb;if(e(s!=null),e(kA!=null),e(iA!=null),iA[0]=0,12<=kA[0]&&!A(s,VA[0],"RIFF")){if(A(s,VA[0]+8,"WEBP")){iA=3;break A}var cA=jA(s,VA[0]+4);if(12>cA||4294967286<cA){iA=3;break A}if(bA&&cA>kA[0]-8){iA=7;break A}iA[0]=cA,VA[0]+=12,kA[0]-=12}iA=0}if(iA!=0)return iA;for(cA=0<gA.gb[0],h=h[0];;){A:{var MA=s;kA=c,iA=h;var YA=O,OA=aA,ce=VA=[0];if((ae=CA=[CA])[0]=0,8>iA[0])iA=7;else{if(!A(MA,kA[0],"VP8X")){if(jA(MA,kA[0]+4)!=10){iA=3;break A}if(18>iA[0]){iA=7;break A}var re=jA(MA,kA[0]+8),Qe=1+JA(MA,kA[0]+12);if(2147483648<=Qe*(MA=1+JA(MA,kA[0]+15))){iA=3;break A}ce!=null&&(ce[0]=re),YA!=null&&(YA[0]=Qe),OA!=null&&(OA[0]=MA),kA[0]+=18,iA[0]-=18,ae[0]=1}iA=0}}if(CA=CA[0],VA=VA[0],iA!=0)return iA;if(kA=!!(2&VA),!cA&&CA)return 3;if(E!=null&&(E[0]=!!(16&VA)),L!=null&&(L[0]=kA),N!=null&&(N[0]=0),L=O[0],VA=aA[0],CA&&kA&&H==null){iA=0;break}if(4>h){iA=7;break}if(cA&&CA||!cA&&!CA&&!A(s,c[0],"ALPH")){h=[h],gA.na=[gA.na],gA.P=[gA.P],gA.Sa=[gA.Sa];A:{re=s,iA=c,cA=h;var ae=gA.gb;YA=gA.na,OA=gA.P,ce=gA.Sa,Qe=22,e(re!=null),e(cA!=null),MA=iA[0];var We=cA[0];for(e(YA!=null),e(ce!=null),YA[0]=null,OA[0]=null,ce[0]=0;;){if(iA[0]=MA,cA[0]=We,8>We){iA=7;break A}var $e=jA(re,MA+4);if(4294967286<$e){iA=3;break A}var je=8+$e+1&-2;if(Qe+=je,0<ae&&Qe>ae){iA=3;break A}if(!A(re,MA,"VP8 ")||!A(re,MA,"VP8L")){iA=0;break A}if(We[0]<je){iA=7;break A}A(re,MA,"ALPH")||(YA[0]=re,OA[0]=MA+8,ce[0]=$e),MA+=je,We-=je}}if(h=h[0],gA.na=gA.na[0],gA.P=gA.P[0],gA.Sa=gA.Sa[0],iA!=0)break}h=[h],gA.Ja=[gA.Ja],gA.xa=[gA.xa];A:if(ae=s,iA=c,cA=h,YA=gA.gb[0],OA=gA.Ja,ce=gA.xa,re=iA[0],MA=!A(ae,re,"VP8 "),Qe=!A(ae,re,"VP8L"),e(ae!=null),e(cA!=null),e(OA!=null),e(ce!=null),8>cA[0])iA=7;else{if(MA||Qe){if(ae=jA(ae,re+4),12<=YA&&ae>YA-12){iA=3;break A}if(bA&&ae>cA[0]-8){iA=7;break A}OA[0]=ae,iA[0]+=8,cA[0]-=8,ce[0]=Qe}else ce[0]=5<=cA[0]&&ae[re+0]==47&&!(ae[re+4]>>5),OA[0]=cA[0];iA=0}if(h=h[0],gA.Ja=gA.Ja[0],gA.xa=gA.xa[0],c=c[0],iA!=0)break;if(4294967286<gA.Ja)return 3;if(N==null||kA||(N[0]=gA.xa?2:1),L=[L],VA=[VA],gA.xa){if(5>h){iA=7;break}N=L,bA=VA,kA=E,s==null||5>h?s=0:5<=h&&s[c+0]==47&&!(s[c+4]>>5)?(cA=[0],ae=[0],YA=[0],V(OA=new F,s,c,h),SA(OA,cA,ae,YA)?(N!=null&&(N[0]=cA[0]),bA!=null&&(bA[0]=ae[0]),kA!=null&&(kA[0]=YA[0]),s=1):s=0):s=0}else{if(10>h){iA=7;break}N=VA,s==null||10>h||!nA(s,c+3,h-3)?s=0:(bA=s[c+0]|s[c+1]<<8|s[c+2]<<16,kA=16383&(s[c+7]<<8|s[c+6]),s=16383&(s[c+9]<<8|s[c+8]),1&bA||3<(bA>>1&7)||!(bA>>4&1)||bA>>5>=gA.Ja||!kA||!s?s=0:(L&&(L[0]=kA),N&&(N[0]=s),s=1))}if(!s||(L=L[0],VA=VA[0],CA&&(O[0]!=L||aA[0]!=VA)))return 3;H!=null&&(H[0]=gA,H.offset=c-H.w,e(4294967286>c-H.w),e(H.offset==H.ha-h));break}return iA==0||iA==7&&CA&&H==null?(E!=null&&(E[0]|=gA.na!=null&&0<gA.na.length),m!=null&&(m[0]=L),C!=null&&(C[0]=VA),0):iA}function ki(s,c,h){var m=c.width,C=c.height,E=0,L=0,N=m,H=C;if(c.Da=s!=null&&0<s.Da,c.Da&&(N=s.cd,H=s.bd,E=s.v,L=s.j,11>h||(E&=-2,L&=-2),0>E||0>L||0>=N||0>=H||E+N>m||L+H>C))return 0;if(c.v=E,c.j=L,c.va=E+N,c.o=L+H,c.U=N,c.T=H,c.da=s!=null&&0<s.da,c.da){if(!FA(N,H,h=[s.ib],E=[s.hb]))return 0;c.ib=h[0],c.hb=E[0]}return c.ob=s!=null&&s.ob,c.Kb=s==null||!s.Sd,c.da&&(c.ob=c.ib<3*m/4&&c.hb<3*C/4,c.Kb=0),1}function xi(s){if(s==null)return 2;if(11>s.S){var c=s.f.RGBA;c.fb+=(s.height-1)*c.A,c.A=-c.A}else c=s.f.kb,s=s.height,c.O+=(s-1)*c.fa,c.fa=-c.fa,c.N+=(s-1>>1)*c.Ab,c.Ab=-c.Ab,c.W+=(s-1>>1)*c.Db,c.Db=-c.Db,c.F!=null&&(c.J+=(s-1)*c.lb,c.lb=-c.lb);return 0}function Da(s,c,h,m){if(m==null||0>=s||0>=c)return 2;if(h!=null){if(h.Da){var C=h.cd,E=h.bd,L=-2&h.v,N=-2&h.j;if(0>L||0>N||0>=C||0>=E||L+C>s||N+E>c)return 2;s=C,c=E}if(h.da){if(!FA(s,c,C=[h.ib],E=[h.hb]))return 2;s=C[0],c=E[0]}}m.width=s,m.height=c;A:{var H=m.width,O=m.height;if(s=m.S,0>=H||0>=O||!(s>=xs&&13>s))s=2;else{if(0>=m.Rd&&m.sd==null){L=E=C=c=0;var aA=(N=H*mu[s])*O;if(11>s||(E=(O+1)/2*(c=(H+1)/2),s==12&&(L=(C=H)*O)),(O=i(aA+2*E+L))==null){s=1;break A}m.sd=O,11>s?((H=m.f.RGBA).eb=O,H.fb=0,H.A=N,H.size=aA):((H=m.f.kb).y=O,H.O=0,H.fa=N,H.Fd=aA,H.f=O,H.N=0+aA,H.Ab=c,H.Cd=E,H.ea=O,H.W=0+aA+E,H.Db=c,H.Ed=E,s==12&&(H.F=O,H.J=0+aA+2*E),H.Tc=L,H.lb=C)}if(c=1,C=m.S,E=m.width,L=m.height,C>=xs&&13>C)if(11>C)s=m.f.RGBA,c&=(N=Math.abs(s.A))*(L-1)+E<=s.size,c&=N>=E*mu[C],c&=s.eb!=null;else{s=m.f.kb,N=(E+1)/2,aA=(L+1)/2,H=Math.abs(s.fa),O=Math.abs(s.Ab);var CA=Math.abs(s.Db),bA=Math.abs(s.lb),gA=bA*(L-1)+E;c&=H*(L-1)+E<=s.Fd,c&=O*(aA-1)+N<=s.Cd,c=(c&=CA*(aA-1)+N<=s.Ed)&H>=E&O>=N&CA>=N,c&=s.y!=null,c&=s.f!=null,c&=s.ea!=null,C==12&&(c&=bA>=E,c&=gA<=s.Tc,c&=s.F!=null)}else c=0;s=c?0:2}}return s!=0||h!=null&&h.fd&&(s=xi(m)),s}var Tt=64,Ia=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Na=24,Ta=32,Si=8,rr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];$A("Predictor0","PredictorAdd0"),P.Predictor0=function(){return 4278190080},P.Predictor1=function(s){return s},P.Predictor2=function(s,c,h){return c[h+0]},P.Predictor3=function(s,c,h){return c[h+1]},P.Predictor4=function(s,c,h){return c[h-1]},P.Predictor5=function(s,c,h){return RA(RA(s,c[h+1]),c[h+0])},P.Predictor6=function(s,c,h){return RA(s,c[h-1])},P.Predictor7=function(s,c,h){return RA(s,c[h+0])},P.Predictor8=function(s,c,h){return RA(c[h-1],c[h+0])},P.Predictor9=function(s,c,h){return RA(c[h+0],c[h+1])},P.Predictor10=function(s,c,h){return RA(RA(s,c[h-1]),RA(c[h+0],c[h+1]))},P.Predictor11=function(s,c,h){var m=c[h+0];return 0>=ve(m>>24&255,s>>24&255,(c=c[h-1])>>24&255)+ve(m>>16&255,s>>16&255,c>>16&255)+ve(m>>8&255,s>>8&255,c>>8&255)+ve(255&m,255&s,255&c)?m:s},P.Predictor12=function(s,c,h){var m=c[h+0];return(ne((s>>24&255)+(m>>24&255)-((c=c[h-1])>>24&255))<<24|ne((s>>16&255)+(m>>16&255)-(c>>16&255))<<16|ne((s>>8&255)+(m>>8&255)-(c>>8&255))<<8|ne((255&s)+(255&m)-(255&c)))>>>0},P.Predictor13=function(s,c,h){var m=c[h-1];return(he((s=RA(s,c[h+0]))>>24&255,m>>24&255)<<24|he(s>>16&255,m>>16&255)<<16|he(s>>8&255,m>>8&255)<<8|he(s>>0&255,m>>0&255))>>>0};var hl=P.PredictorAdd0;P.PredictorAdd1=be,$A("Predictor2","PredictorAdd2"),$A("Predictor3","PredictorAdd3"),$A("Predictor4","PredictorAdd4"),$A("Predictor5","PredictorAdd5"),$A("Predictor6","PredictorAdd6"),$A("Predictor7","PredictorAdd7"),$A("Predictor8","PredictorAdd8"),$A("Predictor9","PredictorAdd9"),$A("Predictor10","PredictorAdd10"),$A("Predictor11","PredictorAdd11"),$A("Predictor12","PredictorAdd12"),$A("Predictor13","PredictorAdd13");var Di=P.PredictorAdd2;oA("ColorIndexInverseTransform","MapARGB","32b",function(s){return s>>8&255},function(s){return s}),oA("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(s){return s},function(s){return s>>8&255});var Fs,mr=P.ColorIndexInverseTransform,Ha=P.MapARGB,Qs=P.VP8LColorIndexInverseTransformAlpha,Es=P.MapAlpha,xn=P.VP8LPredictorsAdd=[];xn.length=16,(P.VP8LPredictors=[]).length=16,(P.VP8LPredictorsAdd_C=[]).length=16,(P.VP8LPredictors_C=[]).length=16;var aa,nr,Jt,Sn,cn,un,_a,fn,ht,Ii,Zt,wr,Ma,Us,Ni,ia,sa,Dn,oa,Pa,la,In,Ti,vr,yr,rt,nt,gt,Et=i(511),dn=i(2041),Hi=i(225),Oa=i(767),Ls=0,gl=dn,ks=Hi,fr=Oa,Cr=Et,xs=0,Ss=1,su=2,Ds=3,Is=4,pl=5,ou=6,Bl=7,ml=8,Ns=9,wl=10,Rh=[2,3,7],Vh=[3,3,11],lu=[280,256,256,256,40],Kh=[0,1,1,1,0],Gh=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],jh=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],qh=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Wh=8,vl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],yl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],_i=null,Yh=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],zh=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],cu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],$h=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Xh=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Jh=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Zh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Nn=[],Nr=[],hn=[],Ag=1,uu=2,Tn=[],br=[];xA("UpsampleRgbLinePair",Ge,3),xA("UpsampleBgrLinePair",lt,3),xA("UpsampleRgbaLinePair",Ir,4),xA("UpsampleBgraLinePair",xt,4),xA("UpsampleArgbLinePair",Vt,4),xA("UpsampleRgba4444LinePair",yt,2),xA("UpsampleRgb565LinePair",ct,2);var eg=P.UpsampleRgbLinePair,tg=P.UpsampleBgrLinePair,fu=P.UpsampleRgbaLinePair,du=P.UpsampleBgraLinePair,hu=P.UpsampleArgbLinePair,gu=P.UpsampleRgba4444LinePair,rg=P.UpsampleRgb565LinePair,Ts=16,Hs=1<<Ts-1,Mi=-227,Cl=482,ng=6,pu=0,ag=i(256),ig=i(256),sg=i(256),og=i(256),lg=i(Cl-Mi),cg=i(Cl-Mi);Yr("YuvToRgbRow",Ge,3),Yr("YuvToBgrRow",lt,3),Yr("YuvToRgbaRow",Ir,4),Yr("YuvToBgraRow",xt,4),Yr("YuvToArgbRow",Vt,4),Yr("YuvToRgba4444Row",yt,2),Yr("YuvToRgb565Row",ct,2);var Bu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],_s=[0,2,8],ug=[8,7,6,4,4,2,2,2,1,1,1,1],fg=1;this.WebPDecodeRGBA=function(s,c,h,m,C){var E=Ss,L=new ka,N=new tA;L.ba=N,N.S=E,N.width=[N.width],N.height=[N.height];var H=N.width,O=N.height,aA=new yA;if(aA==null||s==null)var CA=2;else e(aA!=null),CA=Sa(s,c,h,aA.width,aA.height,aA.Pd,aA.Qd,aA.format,null);if(CA!=0?H=0:(H!=null&&(H[0]=aA.width[0]),O!=null&&(O[0]=aA.height[0]),H=1),H){N.width=N.width[0],N.height=N.height[0],m!=null&&(m[0]=N.width),C!=null&&(C[0]=N.height);A:{if(m=new sn,(C=new bi).data=s,C.w=c,C.ha=h,C.kd=1,c=[0],e(C!=null),((s=Sa(C.data,C.w,C.ha,null,null,null,c,null,C))==0||s==7)&&c[0]&&(s=4),(c=s)==0){if(e(L!=null),m.data=C.data,m.w=C.w+C.offset,m.ha=C.ha-C.offset,m.put=Ce,m.ac=Fe,m.bc=Ae,m.ma=L,C.xa){if((s=Ot())==null){L=1;break A}if(function(bA,gA){var VA=[0],kA=[0],iA=[0];e:for(;;){if(bA==null)return 0;if(gA==null)return bA.a=2,0;if(bA.l=gA,bA.a=0,V(bA.m,gA.data,gA.w,gA.ha),!SA(bA.m,VA,kA,iA)){bA.a=3;break e}if(bA.xb=uu,gA.width=VA[0],gA.height=kA[0],!tr(VA[0],kA[0],1,bA,null))break e;return 1}return e(bA.a!=0),0}(s,m)){if(m=(c=Da(m.width,m.height,L.Oa,L.ba))==0){e:{m=s;t:for(;;){if(m==null){m=0;break e}if(e(m.s.yc!=null),e(m.s.Ya!=null),e(0<m.s.Wb),e((h=m.l)!=null),e((C=h.ma)!=null),m.xb!=0){if(m.ca=C.ba,m.tb=C.tb,e(m.ca!=null),!ki(C.Oa,h,Ds)){m.a=2;break t}if(!xr(m,h.width)||h.da)break t;if((h.da||vA(m.ca.S))&&mA(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&mA()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!de(m.s.vb,m.s.Wa.Xa)){m.a=1;break t}m.xb=0}if(!Lt(m,m.V,m.Ba,m.c,m.i,h.o,cr))break t;C.Dc=m.Ma,m=1;break e}e(m.a!=0),m=0}m=!m}m&&(c=s.a)}else c=s.a}else{if((s=new pi)==null){L=1;break A}if(s.Fa=C.na,s.P=C.P,s.qc=C.Sa,BA(s,m)){if((c=Da(m.width,m.height,L.Oa,L.ba))==0){if(s.Aa=0,h=L.Oa,e((C=s)!=null),h!=null){if(0<(H=0>(H=h.Md)?0:100<H?255:255*H/100)){for(O=aA=0;4>O;++O)12>(CA=C.pb[O]).lc&&(CA.ia=H*ug[0>CA.lc?0:CA.lc]>>3),aA|=CA.ia;aA&&(alert("todo:VP8InitRandom"),C.ia=1)}C.Ga=h.Id,100<C.Ga?C.Ga=100:0>C.Ga&&(C.Ga=0)}LA(s,m)||(c=s.a)}}else c=s.a}c==0&&L.Oa!=null&&L.Oa.fd&&(c=xi(L.ba))}L=c}E=L!=0?null:11>E?N.f.RGBA.eb:N.f.kb.y}else E=null;return E};var mu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(P,z){for(var fA="",I=0;I<4;I++)fA+=String.fromCharCode(P[z++]);return fA}function p(P,z){return(P[z+0]<<0|P[z+1]<<8|P[z+2]<<16)>>>0}function B(P,z){return(P[z+0]<<0|P[z+1]<<8|P[z+2]<<16|P[z+3]<<24)>>>0}new u;var w=[0],g=[0],y=[],Q=new u,_=t,v=function(P,z){var fA={},I=0,x=!1,R=0,k=0;if(fA.frames=[],!function(D,T,K,eA){for(var uA=0;uA<eA;uA++)if(D[T+uA]!=K.charCodeAt(uA))return!0;return!1}(P,z,"RIFF",4)){for(B(P,z+=4),z+=8;z<P.length;){var X=d(P,z),$=B(P,z+=4);z+=4;var j=$+(1&$);switch(X){case"VP8 ":case"VP8L":fA.frames[I]===void 0&&(fA.frames[I]={}),(sA=fA.frames[I]).src_off=x?k:z-8,sA.src_size=R+$+8,I++,x&&(x=!1,R=0,k=0);break;case"VP8X":(sA=fA.header={}).feature_flags=P[z];var V=z+4;sA.canvas_width=1+p(P,V),V+=3,sA.canvas_height=1+p(P,V),V+=3;break;case"ALPH":x=!0,R=j+8,k=z-8;break;case"ANIM":(sA=fA.header).bgcolor=B(P,z),V=z+4,sA.loop_count=(DA=P)[(F=V)+0]<<0|DA[F+1]<<8,V+=2;break;case"ANMF":var AA,sA;(sA=fA.frames[I]={}).offset_x=2*p(P,z),z+=3,sA.offset_y=2*p(P,z),z+=3,sA.width=1+p(P,z),z+=3,sA.height=1+p(P,z),z+=3,sA.duration=p(P,z),z+=3,AA=P[z++],sA.dispose=1&AA,sA.blend=AA>>1&1}X!="ANMF"&&(z+=j)}var DA,F;return fA}}(_,0);v.response=_,v.rgbaoutput=!0,v.dataurl=!1;var U=v.header?v.header:null,M=v.frames?v.frames:null;if(U){U.loop_counter=U.loop_count,w=[U.canvas_height],g=[U.canvas_width];for(var J=0;J<M.length&&M[J].blend!=0;J++);}var Z=M[0],Y=Q.WebPDecodeRGBA(_,Z.src_off,Z.src_size,g,w);Z.rgba=Y,Z.imgwidth=g[0],Z.imgheight=w[0];for(var G=0;G<g[0]*w[0]*4;G++)y[G]=Y[G];return this.width=g,this.height=w,this.data=y,this}(function(t){var e=function(){return typeof wc=="function"},A=function(w,g,y,Q){var _=4,v=o;switch(Q){case t.image_compression.FAST:_=1,v=i;break;case t.image_compression.MEDIUM:_=6,v=l;break;case t.image_compression.SLOW:_=9,v=u}w=r(w,g,y,v);var U=wc(w,{level:_});return t.__addimage__.arrayBufferToBinaryString(U)},r=function(w,g,y,Q){for(var _,v,U,M=w.length/g,J=new Uint8Array(w.length+M),Z=p(),Y=0;Y<M;Y+=1){if(U=Y*g,_=w.subarray(U,U+g),Q)J.set(Q(_,y,v),U+Y);else{for(var G,P=Z.length,z=[];G<P;G+=1)z[G]=Z[G](_,y,v);var fA=B(z.concat());J.set(z[fA],U+Y)}v=_}return J},a=function(w){var g=Array.apply([],w);return g.unshift(0),g},i=function(w,g){var y,Q=[],_=w.length;Q[0]=1;for(var v=0;v<_;v+=1)y=w[v-g]||0,Q[v+1]=w[v]-y+256&255;return Q},o=function(w,g,y){var Q,_=[],v=w.length;_[0]=2;for(var U=0;U<v;U+=1)Q=y&&y[U]||0,_[U+1]=w[U]-Q+256&255;return _},l=function(w,g,y){var Q,_,v=[],U=w.length;v[0]=3;for(var M=0;M<U;M+=1)Q=w[M-g]||0,_=y&&y[M]||0,v[M+1]=w[M]+256-(Q+_>>>1)&255;return v},u=function(w,g,y){var Q,_,v,U,M=[],J=w.length;M[0]=4;for(var Z=0;Z<J;Z+=1)Q=w[Z-g]||0,_=y&&y[Z]||0,v=y&&y[Z-g]||0,U=d(Q,_,v),M[Z+1]=w[Z]-U+256&255;return M},d=function(w,g,y){if(w===g&&g===y)return w;var Q=Math.abs(g-y),_=Math.abs(w-y),v=Math.abs(w+g-y-y);return Q<=_&&Q<=v?w:_<=v?g:y},p=function(){return[a,i,o,l,u]},B=function(w){var g=w.map(function(y){return y.reduce(function(Q,_){return Q+Math.abs(_)},0)});return g.indexOf(Math.min.apply(null,g))};t.processPNG=function(w,g,y,Q){var _,v,U,M,J,Z,Y,G,P,z,fA,I,x,R,k,X=this.decode.FLATE_DECODE,$="";if(this.__addimage__.isArrayBuffer(w)&&(w=new Uint8Array(w)),this.__addimage__.isArrayBufferView(w)){if(w=(U=new cm(w)).imgData,v=U.bits,_=U.colorSpace,J=U.colors,[4,6].indexOf(U.colorType)!==-1){if(U.bits===8){P=(G=U.pixelBitlength==32?new Uint32Array(U.decodePixels().buffer):U.pixelBitlength==16?new Uint16Array(U.decodePixels().buffer):new Uint8Array(U.decodePixels().buffer)).length,fA=new Uint8Array(P*U.colors),z=new Uint8Array(P);var j,V=U.pixelBitlength-U.bits;for(R=0,k=0;R<P;R++){for(x=G[R],j=0;j<V;)fA[k++]=x>>>j&255,j+=U.bits;z[R]=x>>>j&255}}if(U.bits===16){P=(G=new Uint32Array(U.decodePixels().buffer)).length,fA=new Uint8Array(P*(32/U.pixelBitlength)*U.colors),z=new Uint8Array(P*(32/U.pixelBitlength)),I=U.colors>1,R=0,k=0;for(var AA=0;R<P;)x=G[R++],fA[k++]=x>>>0&255,I&&(fA[k++]=x>>>16&255,x=G[R++],fA[k++]=x>>>0&255),z[AA++]=x>>>16&255;v=8}Q!==t.image_compression.NONE&&e()?(w=A(fA,U.width*U.colors,U.colors,Q),Y=A(z,U.width,1,Q)):(w=fA,Y=z,X=void 0)}if(U.colorType===3&&(_=this.color_spaces.INDEXED,Z=U.palette,U.transparency.indexed)){var sA=U.transparency.indexed,DA=0;for(R=0,P=sA.length;R<P;++R)DA+=sA[R];if((DA/=255)===P-1&&sA.indexOf(0)!==-1)M=[sA.indexOf(0)];else if(DA!==P){for(G=U.decodePixels(),z=new Uint8Array(G.length),R=0,P=G.length;R<P;R++)z[R]=sA[G[R]];Y=A(z,U.width,1)}}var F=function(D){var T;switch(D){case t.image_compression.FAST:T=11;break;case t.image_compression.MEDIUM:T=13;break;case t.image_compression.SLOW:T=14;break;default:T=12}return T}(Q);return X===this.decode.FLATE_DECODE&&($="/Predictor "+F+" "),$+="/Colors "+J+" /BitsPerComponent "+v+" /Columns "+U.width,(this.__addimage__.isArrayBuffer(w)||this.__addimage__.isArrayBufferView(w))&&(w=this.__addimage__.arrayBufferToBinaryString(w)),(Y&&this.__addimage__.isArrayBuffer(Y)||this.__addimage__.isArrayBufferView(Y))&&(Y=this.__addimage__.arrayBufferToBinaryString(Y)),{alias:y,data:w,index:g,filter:X,decodeParameters:$,transparency:M,palette:Z,sMask:Y,predictor:F,width:U.width,height:U.height,bitsPerComponent:v,colorSpace:_}}}})(Ee.API),function(t){t.processGIF89A=function(e,A,r,a){var i=new um(e),o=i.width,l=i.height,u=[];i.decodeAndBlitFrameRGBA(0,u);var d={data:u,width:o,height:l},p=new Kl(100).encode(d,100);return t.processJPEG.call(this,p,A,r,a)},t.processGIF87A=t.processGIF89A}(Ee.API),_r.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:a,green:r,blue:A,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_r.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(A){et.log("bit decode error:"+A)}},_r.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),A=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,a=0;a<e;a++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var u=this.palette[i>>7-l&1];this.data[o+4*l]=u.blue,this.data[o+4*l+1]=u.green,this.data[o+4*l+2]=u.red,this.data[o+4*l+3]=255}A!==0&&(this.pos+=4-A)}},_r.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,a=0;a<t;a++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*a*4,l=i>>4,u=15&i,d=this.palette[l];if(this.data[o]=d.blue,this.data[o+1]=d.green,this.data[o+2]=d.red,this.data[o+3]=255,2*a+1>=this.width)break;d=this.palette[u],this.data[o+4]=d.blue,this.data[o+4+1]=d.green,this.data[o+4+2]=d.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},_r.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var A=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),i=A*this.width*4+4*r;if(a<this.palette.length){var o=this.palette[a];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}t!==0&&(this.pos+=4-t)}},_r.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,l=(i>>5&e)/e*255|0,u=(i>>10&e)/e*255|0,d=i>>15?255:0,p=r*this.width*4+4*a;this.data[p]=u,this.data[p+1]=l,this.data[p+2]=o,this.data[p+3]=d}this.pos+=t}},_r.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),A=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(o&e)/e*255|0,u=(o>>5&A)/A*255|0,d=(o>>11)/e*255|0,p=a*this.width*4+4*i;this.data[p]=d,this.data[p+1]=u,this.data[p+2]=l,this.data[p+3]=255}this.pos+=t}},_r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*A;this.data[o]=i,this.data[o+1]=a,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},_r.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=e*this.width*4+4*A;this.data[l]=i,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=o}},_r.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,A,r,a){var i=new _r(e,!1),o=i.width,l=i.height,u={data:i.getData(),width:o,height:l},d=new Kl(100).encode(u,100);return t.processJPEG.call(this,d,A,r,a)}}(Ee.API),rf.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,A,r,a){var i=new rf(e),o=i.width,l=i.height,u={data:i.getData(),width:o,height:l},d=new Kl(100).encode(u,100);return t.processJPEG.call(this,d,A,r,a)}}(Ee.API),Ee.API.processRGBA=function(t,e,A){for(var r=t.data,a=r.length,i=new Uint8Array(a/4*3),o=new Uint8Array(a/4),l=0,u=0,d=0;d<a;d+=4){var p=r[d],B=r[d+1],w=r[d+2],g=r[d+3];i[l++]=p,i[l++]=B,i[l++]=w,o[u++]=g}var y=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:y,index:e,alias:A,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Ee.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},qa=Ee.API,Js=qa.getCharWidthsArray=function(t,e){var A,r,a=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,d=e.kerning?e.kerning:a.metadata.Unicode.kerning,p=d.fof?d.fof:1,B=e.doKerning!==!1,w=0,g=t.length,y=0,Q=l[0]||u,_=[];for(A=0;A<g;A++)r=t.charCodeAt(A),typeof a.metadata.widthOfString=="function"?_.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+o*(1e3/i)||0)/1e3):(w=B&&ze(d[r])==="object"&&!isNaN(parseInt(d[r][y],10))?d[r][y]/p:0,_.push((l[r]||Q)/u+w)),y=r;return _},Zu=qa.getStringUnitWidth=function(t,e){var A=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),a=e.charSpace||this.internal.getCharSpace();return qa.processArabic&&(t=qa.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,A,a)/A:Js.apply(this,arguments).reduce(function(i,o){return i+o},0)},Af=function(t,e,A,r){for(var a=[],i=0,o=t.length,l=0;i!==o&&l+e[i]<A;)l+=e[i],i++;a.push(t.slice(0,i));var u=i;for(l=0;i!==o;)l+e[i]>r&&(a.push(t.slice(u,i)),l=0,u=i),l+=e[i],i++;return u!==i&&a.push(t.slice(u,i)),a},ef=function(t,e,A){A||(A={});var r,a,i,o,l,u,d,p=[],B=[p],w=A.textIndent||0,g=0,y=0,Q=t.split(" "),_=Js.apply(this,[" ",A])[0];if(u=A.lineIndent===-1?Q[0].length+2:A.lineIndent||0){var v=Array(u).join(" "),U=[];Q.map(function(J){(J=J.split(/\s*\n/)).length>1?U=U.concat(J.map(function(Z,Y){return(Y&&Z.length?`
252
+ `:"")+Z})):U.push(J[0])}),Q=U,u=Zu.apply(this,[v,A])}for(i=0,o=Q.length;i<o;i++){var M=0;if(r=Q[i],u&&r[0]==`
253
+ `&&(r=r.substr(1),M=1),w+g+(y=(a=Js.apply(this,[r,A])).reduce(function(J,Z){return J+Z},0))>e||M){if(y>e){for(l=Af.apply(this,[r,a,e-(w+g),e]),p.push(l.shift()),p=[l.pop()];l.length;)B.push([l.shift()]);y=a.slice(r.length-(p[0]?p[0].length:0)).reduce(function(J,Z){return J+Z},0)}else p=[r];B.push(p),w=y+u,g=_}else p.push(r),w+=g+y,g=_}return d=u?function(J,Z){return(Z?v:"")+J.join(" ")}:function(J){return J.join(" ")},B.map(d)},qa.splitTextToSize=function(t,e,A){var r,a=(A=A||{}).fontSize||this.internal.getFontSize(),i=(function(p){if(p.widths&&p.kerning)return{widths:p.widths,kerning:p.kerning};var B=this.internal.getFont(p.fontName,p.fontStyle);return B.metadata.Unicode?{widths:B.metadata.Unicode.widths||{0:1},kerning:B.metadata.Unicode.kerning||{}}:{font:B.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,A);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/a;i.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=A.lineIndent;var l,u,d=[];for(l=0,u=r.length;l<u;l++)d=d.concat(ef.apply(this,[r[l],o,i]));return d},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",A={},r={},a=0;a<e.length;a++)A[e[a]]="0123456789abcdef"[a],r["0123456789abcdef"[a]]=e[a];var i=function(B){return"0x"+parseInt(B,10).toString(16)},o=t.__fontmetrics__.compress=function(B){var w,g,y,Q,_=["{"];for(var v in B){if(w=B[v],isNaN(parseInt(v,10))?g="'"+v+"'":(v=parseInt(v,10),g=(g=i(v).slice(2)).slice(0,-1)+r[g.slice(-1)]),typeof w=="number")w<0?(y=i(w).slice(3),Q="-"):(y=i(w).slice(2),Q=""),y=Q+y.slice(0,-1)+r[y.slice(-1)];else{if(ze(w)!=="object")throw new Error("Don't know what to do with value type "+ze(w)+".");y=o(w)}_.push(g+y)}return _.push("}"),_.join("")},l=t.__fontmetrics__.uncompress=function(B){if(typeof B!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,g,y,Q,_={},v=1,U=_,M=[],J="",Z="",Y=B.length-1,G=1;G<Y;G+=1)(Q=B[G])=="'"?w?(y=w.join(""),w=void 0):w=[]:w?w.push(Q):Q=="{"?(M.push([U,y]),U={},y=void 0):Q=="}"?((g=M.pop())[0][g[1]]=U,y=void 0,U=g[0]):Q=="-"?v=-1:y===void 0?A.hasOwnProperty(Q)?(J+=A[Q],y=parseInt(J,16)*v,v=1,J=""):J+=Q:A.hasOwnProperty(Q)?(Z+=A[Q],U[y]=parseInt(Z,16)*v,v=1,y=void 0,Z=""):Z+=Q;return _},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},p={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(B){var w=B.font,g=p.Unicode[w.postScriptName];g&&(w.metadata.Unicode={},w.metadata.Unicode.widths=g.widths,w.metadata.Unicode.kerning=g.kerning);var y=d.Unicode[w.postScriptName];y&&(w.metadata.Unicode.encoding=y,w.encoding=y.codePages[0])}])}(Ee.API),function(t){var e=function(A){for(var r=A.length,a=new Uint8Array(r),i=0;i<r;i++)a[i]=A.charCodeAt(i);return a};t.API.events.push(["addFont",function(A){var r=void 0,a=A.font,i=A.instance;if(!a.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=i.existsFileInVFS(a.postScriptName)===!1?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(o,l){l=/^\x00\x01\x00\x00/.test(l)?e(l):e(ts(l)),o.metadata=t.API.TTFFont.open(l),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(a,r)}}])}(Ee),function(t){function e(){return(Ue.canvg?Promise.resolve(Ue.canvg):Promise.resolve().then(()=>require("./index.es-BnN7vX4u.cjs"))).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A})}Ee.API.addSvgAsImage=function(A,r,a,i,o,l,u,d){if(isNaN(r)||isNaN(a))throw et.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw et.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var p=document.createElement("canvas");p.width=i,p.height=o;var B=p.getContext("2d");B.fillStyle="#fff",B.fillRect(0,0,p.width,p.height);var w={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return e().then(function(y){return y.fromString(B,A,w)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(y){return y.render(w)}).then(function(){g.addImage(p.toDataURL("image/jpeg",1),r,a,i,o,u,d)})}}(),Ee.API.putTotalPages=function(t){var e,A=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),A=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),A=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(e,A);return this},Ee.API.viewerPreferences=function(t,e){var A;t=t||{},e=e||!1;var r,a,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(o),u=[],d=0,p=0,B=0;function w(y,Q){var _,v=!1;for(_=0;_<y.length;_+=1)y[_]===Q&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),A=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var g=l.length;for(B=0;B<g;B+=1)A[l[B]].value=A[l[B]].defaultValue,A[l[B]].explicitSet=!1}if(ze(t)==="object"){for(a in t)if(i=t[a],w(l,a)&&i!==void 0){if(A[a].type==="boolean"&&typeof i=="boolean")A[a].value=i;else if(A[a].type==="name"&&w(A[a].valueSet,i))A[a].value=i;else if(A[a].type==="integer"&&Number.isInteger(i))A[a].value=i;else if(A[a].type==="array"){for(d=0;d<i.length;d+=1)if(r=!0,i[d].length===1&&typeof i[d][0]=="number")u.push(String(i[d]-1));else if(i[d].length>1){for(p=0;p<i[d].length;p+=1)typeof i[d][p]!="number"&&(r=!1);r===!0&&u.push([i[d][0]-1,i[d][1]-1].join(" "))}A[a].value="["+u.join(" ")+"]"}else A[a].value=A[a].defaultValue;A[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var y,Q=[];for(y in A)A[y].explicitSet===!0&&(A[y].type==="name"?Q.push("/"+y+" /"+A[y].value):Q.push("/"+y+" "+A[y].value));Q.length!==0&&this.internal.write(`/ViewerPreferences
254
+ <<
255
+ `+Q.join(`
256
+ `)+`
257
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=A,this},function(t){var e=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),d=i.length+o.length+l.length+a.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(a+i+o+l+u),this.internal.write("endstream"),this.internal.write("endobj")},A=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",A),this.internal.events.subscribe("postPutResources",e)),this}}(Ee.API),function(t){var e=t.API,A=e.pdfEscape16=function(i,o){for(var l,u=o.metadata.Unicode.widths,d=["","0","00","000","0000"],p=[""],B=0,w=i.length;B<w;++B){if(l=o.metadata.characterToGlyph(i.charCodeAt(B)),o.metadata.glyIdsUsed.push(l),o.metadata.toUnicode[l]=i.charCodeAt(B),u.indexOf(l)==-1&&(u.push(l),u.push([parseInt(o.metadata.widthOfGlyph(l),10)])),l=="0")return p.join("");l=l.toString(16),p.push(d[4-l.length],l)}return p.join("")},r=function(i){var o,l,u,d,p,B,w;for(p=`/CIDInit /ProcSet findresource begin
258
+ 12 dict begin
259
+ begincmap
260
+ /CIDSystemInfo <<
261
+ /Registry (Adobe)
262
+ /Ordering (UCS)
263
+ /Supplement 0
264
+ >> def
265
+ /CMapName /Adobe-Identity-UCS def
266
+ /CMapType 2 def
267
+ 1 begincodespacerange
268
+ <0000><ffff>
269
+ endcodespacerange`,u=[],B=0,w=(l=Object.keys(i).sort(function(g,y){return g-y})).length;B<w;B++)o=l[B],u.length>=100&&(p+=`
270
+ `+u.length+` beginbfchar
271
+ `+u.join(`
272
+ `)+`
273
+ endbfchar`,u=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(d=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),u.push("<"+o+"><"+d+">"));return u.length&&(p+=`
274
+ `+u.length+` beginbfchar
275
+ `+u.join(`
276
+ `)+`
277
+ endbfchar
278
+ `),p+=`endcmap
279
+ CMapName currentdict /CMap defineresource pop
280
+ end
281
+ end`};e.events.push(["putFont",function(i){(function(o){var l=o.font,u=o.out,d=o.newObject,p=o.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var B=l.metadata.Unicode.widths,w=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),g="",y=0;y<w.length;y++)g+=String.fromCharCode(w[y]);var Q=d();p({data:g,addLength1:!0,objectId:Q}),u("endobj");var _=d();p({data:r(l.metadata.toUnicode),addLength1:!0,objectId:_}),u("endobj");var v=d();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+ei(l.fontName)),u("/FontFile2 "+Q+" 0 R"),u("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),u("/Flags "+l.metadata.flags),u("/StemV "+l.metadata.stemV),u("/ItalicAngle "+l.metadata.italicAngle),u("/Ascent "+l.metadata.ascender),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u(">>"),u("endobj");var U=d();u("<<"),u("/Type /Font"),u("/BaseFont /"+ei(l.fontName)),u("/FontDescriptor "+v+" 0 R"),u("/W "+t.API.PDFObject.convert(B)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+l.encoding+")"),u(">>"),u(">>"),u("endobj"),l.objectNumber=d(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+_+" 0 R"),u("/BaseFont /"+ei(l.fontName)),u("/Encoding /"+l.encoding),u("/DescendantFonts ["+U+" 0 R]"),u(">>"),u("endobj"),l.isAlreadyPutted=!0}})(i)}]),e.events.push(["putFont",function(i){(function(o){var l=o.font,u=o.out,d=o.newObject,p=o.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var B=l.metadata.rawData,w="",g=0;g<B.length;g++)w+=String.fromCharCode(B[g]);var y=d();p({data:w,addLength1:!0,objectId:y}),u("endobj");var Q=d();p({data:r(l.metadata.toUnicode),addLength1:!0,objectId:Q}),u("endobj");var _=d();u("<<"),u("/Descent "+l.metadata.decender),u("/CapHeight "+l.metadata.capHeight),u("/StemV "+l.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+y+" 0 R"),u("/Flags 96"),u("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),u("/FontName /"+ei(l.fontName)),u("/ItalicAngle "+l.metadata.italicAngle),u("/Ascent "+l.metadata.ascender),u(">>"),u("endobj"),l.objectNumber=d();for(var v=0;v<l.metadata.hmtx.widths.length;v++)l.metadata.hmtx.widths[v]=parseInt(l.metadata.hmtx.widths[v]*(1e3/l.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+Q+" 0 R/BaseFont/"+ei(l.fontName)+"/FontDescriptor "+_+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),u("endobj"),l.isAlreadyPutted=!0}})(i)}]);var a=function(i){var o,l=i.text||"",u=i.x,d=i.y,p=i.options||{},B=i.mutex||{},w=B.pdfEscape,g=B.activeFontKey,y=B.fonts,Q=g,_="",v=0,U="",M=y[Q].encoding;if(y[Q].encoding!=="Identity-H")return{text:l,x:u,y:d,options:p,mutex:B};for(U=l,Q=g,Array.isArray(l)&&(U=l[0]),v=0;v<U.length;v+=1)y[Q].metadata.hasOwnProperty("cmap")&&(o=y[Q].metadata.cmap.unicode.codeMap[U[v].charCodeAt(0)]),o||U[v].charCodeAt(0)<256&&y[Q].metadata.hasOwnProperty("Unicode")?_+=U[v]:_+="";var J="";return parseInt(Q.slice(1))<14||M==="WinAnsiEncoding"?J=w(_,Q).split("").map(function(Z){return Z.charCodeAt(0).toString(16)}).join(""):M==="Identity-H"&&(J=A(_,y[Q])),B.isHex=!0,{text:J,x:u,y:d,options:p,mutex:B}};e.events.push(["postProcessText",function(i){var o=i.text||"",l=[],u={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var d=0;for(d=0;d<o.length;d+=1)Array.isArray(o[d])&&o[d].length===3?l.push([a(Object.assign({},u,{text:o[d][0]})).text,o[d][1],o[d][2]]):l.push(a(Object.assign({},u,{text:o[d]})).text);i.text=l}else i.text=a(Object.assign({},u,{text:o})).text}])}(Ee),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0},t.addFileToVFS=function(A,r){return e.call(this),this.internal.vFS[A]=r,this},t.getFileFromVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0?this.internal.vFS[A]:null}}(Ee.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var a,i,o,l,u,d,p,B=e,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],y={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Q={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},_=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),U=!1,M=0;this.__bidiEngine__={};var J=function(I){var x=I.charCodeAt(),R=x>>8,k=Q[R];return k!==void 0?B[256*k+(255&x)]:R===252||R===253?"AL":v.test(R)?"L":R===8?"R":"N"},Z=function(I){for(var x,R=0;R<I.length;R++){if((x=J(I.charAt(R)))==="L")return!1;if(x==="R")return!0}return!1},Y=function(I,x,R,k){var X,$,j,V,AA=x[k];switch(AA){case"L":case"R":U=!1;break;case"N":case"AN":break;case"EN":U&&(AA="AN");break;case"AL":U=!0,AA="R";break;case"WS":AA="N";break;case"CS":k<1||k+1>=x.length||(X=R[k-1])!=="EN"&&X!=="AN"||($=x[k+1])!=="EN"&&$!=="AN"?AA="N":U&&($="AN"),AA=$===X?$:"N";break;case"ES":AA=(X=k>0?R[k-1]:"B")==="EN"&&k+1<x.length&&x[k+1]==="EN"?"EN":"N";break;case"ET":if(k>0&&R[k-1]==="EN"){AA="EN";break}if(U){AA="N";break}for(j=k+1,V=x.length;j<V&&x[j]==="ET";)j++;AA=j<V&&x[j]==="EN"?"EN":"N";break;case"NSM":if(o&&!l){for(V=x.length,j=k+1;j<V&&x[j]==="NSM";)j++;if(j<V){var sA=I[k],DA=sA>=1425&&sA<=2303||sA===64286;if(X=x[j],DA&&(X==="R"||X==="AL")){AA="R";break}}}AA=k<1||(X=x[k-1])==="B"?"N":R[k-1];break;case"B":U=!1,a=!0,AA=M;break;case"S":i=!0,AA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":U=!1;break;case"BN":AA="N"}return AA},G=function(I,x,R){var k=I.split("");return R&&P(k,R,{hiLevel:M}),k.reverse(),x&&x.reverse(),k.join("")},P=function(I,x,R){var k,X,$,j,V,AA=-1,sA=I.length,DA=0,F=[],D=M?g:w,T=[];for(U=!1,a=!1,i=!1,X=0;X<sA;X++)T[X]=J(I[X]);for($=0;$<sA;$++){if(V=DA,F[$]=Y(I,T,F,$),k=240&(DA=D[V][y[F[$]]]),DA&=15,x[$]=j=D[DA][5],k>0)if(k===16){for(X=AA;X<$;X++)x[X]=1;AA=-1}else AA=-1;if(D[DA][6])AA===-1&&(AA=$);else if(AA>-1){for(X=AA;X<$;X++)x[X]=j;AA=-1}T[$]==="B"&&(x[$]=0),R.hiLevel|=j}i&&function(K,eA,uA){for(var dA=0;dA<uA;dA++)if(K[dA]==="S"){eA[dA]=M;for(var lA=dA-1;lA>=0&&K[lA]==="WS";lA--)eA[lA]=M}}(T,x,sA)},z=function(I,x,R,k,X){if(!(X.hiLevel<I)){if(I===1&&M===1&&!a)return x.reverse(),void(R&&R.reverse());for(var $,j,V,AA,sA=x.length,DA=0;DA<sA;){if(k[DA]>=I){for(V=DA+1;V<sA&&k[V]>=I;)V++;for(AA=DA,j=V-1;AA<j;AA++,j--)$=x[AA],x[AA]=x[j],x[j]=$,R&&($=R[AA],R[AA]=R[j],R[j]=$);DA=V}DA++}}},fA=function(I,x,R){var k=I.split(""),X={hiLevel:M};return R||(R=[]),P(k,R,X),function($,j,V){if(V.hiLevel!==0&&p)for(var AA,sA=0;sA<$.length;sA++)j[sA]===1&&(AA=_.indexOf($[sA]))>=0&&($[sA]=_[AA+1])}(k,R,X),z(2,k,x,R,X),z(1,k,x,R,X),k.join("")};return this.__bidiEngine__.doBidiReorder=function(I,x,R){if(function(X,$){if($)for(var j=0;j<X.length;j++)$[j]=j;l===void 0&&(l=Z(X)),d===void 0&&(d=Z(X))}(I,x),o||!u||d)if(o&&u&&l^d)M=l?1:0,I=G(I,x,R);else if(!o&&u&&d)M=l?1:0,I=fA(I,x,R),I=G(I,x);else if(!o||l||u||d){if(o&&!u&&l^d)I=G(I,x),l?(M=0,I=fA(I,x,R)):(M=1,I=fA(I,x,R),I=G(I,x));else if(o&&l&&!u&&d)M=1,I=fA(I,x,R),I=G(I,x);else if(!o&&!u&&l^d){var k=p;l?(M=1,I=fA(I,x,R),M=0,p=!1,I=fA(I,x,R),p=k):(M=0,I=fA(I,x,R),I=G(I,x),M=1,p=!1,I=fA(I,x,R),p=k,I=G(I,x))}}else M=0,I=fA(I,x,R);else M=l?1:0,I=fA(I,x,R);return I},this.__bidiEngine__.setOptions=function(I){I&&(o=I.isInputVisual,u=I.isOutputVisual,l=I.isInputRtl,d=I.isOutputRtl,p=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],A=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var o=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,A.setOptions(i),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(o=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?o.push([A.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):o.push([A.doBidiReorder(a[l])]);r.text=o}else r.text=A.doBidiReorder(a);A.setOptions({isInputVisual:!0})}])}(Ee),Ee.API.TTFFont=function(){function t(e){var A;if(this.rawData=e,A=this.contents=new Zn(e),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new Em(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new fm(this.contents),this.head=new hm(this),this.name=new wm(this),this.cmap=new Id(this),this.toUnicode={},this.hhea=new gm(this),this.maxp=new vm(this),this.hmtx=new ym(this),this.post=new Bm(this),this.os2=new pm(this),this.loca=new Qm(this),this.glyf=new Cm(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,A,r,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,l,u,d;for(d=[],o=0,l=(u=this.bbox).length;o<l;o++)e=u[o],d.push(Math.round(e*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),(32768&(A=a>>16))!=0&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var A;return((A=this.cmap.unicode)!=null?A.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*A},t.prototype.widthOfString=function(e,A,r){var a,i,o,l;for(o=0,i=0,l=(e=""+e).length;0<=l?i<l:i>l;i=0<=l?++i:--i)a=e.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/A)||0;return o*(A/1e3)},t.prototype.lineHeight=function(e,A){var r;return A==null&&(A=!1),r=A?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},t}();var Rr,Zn=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var A,r;for(r=[],A=0;0<=e?A<e:A>e;A=0<=e?++A:--A)r[A]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(e){var A,r,a;for(a=[],A=0,r=e.length;0<=r?A<r:A>r;A=0<=r?++A:--A)a.push(this.writeByte(e.charCodeAt(A)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,A,r,a,i,o,l,u;return e=this.readByte(),A=this.readByte(),r=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),l=this.readByte(),u=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^A)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^i)+65536*(255^o)+256*(255^l)+(255^u)+1):72057594037927940*e+281474976710656*A+1099511627776*r+4294967296*a+16777216*i+65536*o+256*l+u},t.prototype.writeLongLong=function(e){var A,r;return A=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var A,r;for(A=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)A.push(this.readByte());return A},t.prototype.write=function(e){var A,r,a,i;for(i=[],r=0,a=e.length;r<a;r++)A=e[r],i.push(this.writeByte(A));return i},t}(),fm=function(){var t;function e(A){var r,a,i;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},a=0,i=this.tableCount;0<=i?a<i:a>i;a=0<=i?++a:--a)r={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(A){var r,a,i,o,l,u,d,p,B,w,g,y,Q;for(Q in g=Object.keys(A).length,u=Math.log(2),B=16*Math.floor(Math.log(g)/u),o=Math.floor(B/u),p=16*g-B,(a=new Zn).writeInt(this.scalarType),a.writeShort(g),a.writeShort(B),a.writeShort(o),a.writeShort(p),i=16*g,d=a.pos+i,l=null,y=[],A)for(w=A[Q],a.writeString(Q),a.writeInt(t(w)),a.writeInt(d),a.writeInt(w.length),y=y.concat(w),Q==="head"&&(l=d),d+=w.length;d%4;)y.push(0),d++;return a.write(y),r=2981146554-t(a.data),a.pos=l+8,a.writeUInt32(r),a.data},t=function(A){var r,a,i,o;for(A=Nd.call(A);A.length%4;)A.push(0);for(i=new Zn(A),a=0,r=0,o=A.length;r<o;r=r+=4)a+=i.readUInt32();return 4294967295&a},e}(),dm={}.hasOwnProperty,An=function(t,e){for(var A in e)dm.call(e,A)&&(t[A]=e[A]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};Rr=function(){function t(e){var A;this.file=e,A=this.file.directory.tables[this.tag],this.exists=!!A,A&&(this.offset=A.offset,this.length=A.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var hm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="head",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},e.prototype.encode=function(A){var r;return(r=new Zn).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(A),r.writeShort(this.glyphDataFormat),r.data},e}(),nf=function(){function t(e,A){var r,a,i,o,l,u,d,p,B,w,g,y,Q,_,v,U,M;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=A+e.readInt(),B=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(u=0;u<256;++u)this.codeMap[u]=e.readByte();break;case 4:for(g=e.readUInt16(),w=g/2,e.pos+=6,i=function(){var J,Z;for(Z=[],u=J=0;0<=w?J<w:J>w;u=0<=w?++J:--J)Z.push(e.readUInt16());return Z}(),e.pos+=2,Q=function(){var J,Z;for(Z=[],u=J=0;0<=w?J<w:J>w;u=0<=w?++J:--J)Z.push(e.readUInt16());return Z}(),d=function(){var J,Z;for(Z=[],u=J=0;0<=w?J<w:J>w;u=0<=w?++J:--J)Z.push(e.readUInt16());return Z}(),p=function(){var J,Z;for(Z=[],u=J=0;0<=w?J<w:J>w;u=0<=w?++J:--J)Z.push(e.readUInt16());return Z}(),a=(this.length-e.pos+this.offset)/2,l=function(){var J,Z;for(Z=[],u=J=0;0<=a?J<a:J>a;u=0<=a?++J:--J)Z.push(e.readUInt16());return Z}(),u=v=0,M=i.length;v<M;u=++v)for(_=i[u],r=U=y=Q[u];y<=_?U<=_:U>=_;r=y<=_?++U:--U)p[u]===0?o=r+d[u]:(o=l[p[u]/2+(r-y)-(w-u)]||0)!==0&&(o+=d[u]),this.codeMap[r]=65535&o}e.pos=B}return t.encode=function(e,A){var r,a,i,o,l,u,d,p,B,w,g,y,Q,_,v,U,M,J,Z,Y,G,P,z,fA,I,x,R,k,X,$,j,V,AA,sA,DA,F,D,T,K,eA,uA,dA,lA,WA,NA,JA;switch(k=new Zn,o=Object.keys(e).sort(function(jA,de){return jA-de}),A){case"macroman":for(Q=0,_=function(){var jA=[];for(y=0;y<256;++y)jA.push(0);return jA}(),U={0:0},i={},X=0,AA=o.length;X<AA;X++)U[lA=e[a=o[X]]]==null&&(U[lA]=++Q),i[a]={old:e[a],new:U[e[a]]},_[a]=U[e[a]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(_),{charMap:i,subtable:k.data,maxGlyphID:Q+1};case"unicode":for(x=[],B=[],M=0,U={},r={},v=d=null,$=0,sA=o.length;$<sA;$++)U[Z=e[a=o[$]]]==null&&(U[Z]=++M),r[a]={old:Z,new:U[Z]},l=U[Z]-a,v!=null&&l===d||(v&&B.push(v),x.push(a),d=l),v=a;for(v&&B.push(v),B.push(65535),x.push(65535),fA=2*(z=x.length),P=2*Math.pow(Math.log(z)/Math.LN2,2),w=Math.log(P/2)/Math.LN2,G=2*z-P,u=[],Y=[],g=[],y=j=0,DA=x.length;j<DA;y=++j){if(I=x[y],p=B[y],I===65535){u.push(0),Y.push(0);break}if(I-(R=r[I].new)>=32768)for(u.push(0),Y.push(2*(g.length+z-y)),a=V=I;I<=p?V<=p:V>=p;a=I<=p?++V:--V)g.push(r[a].new);else u.push(R-I),Y.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*z+2*g.length),k.writeUInt16(0),k.writeUInt16(fA),k.writeUInt16(P),k.writeUInt16(w),k.writeUInt16(G),uA=0,F=B.length;uA<F;uA++)a=B[uA],k.writeUInt16(a);for(k.writeUInt16(0),dA=0,D=x.length;dA<D;dA++)a=x[dA],k.writeUInt16(a);for(WA=0,T=u.length;WA<T;WA++)l=u[WA],k.writeUInt16(l);for(NA=0,K=Y.length;NA<K;NA++)J=Y[NA],k.writeUInt16(J);for(JA=0,eA=g.length;JA<eA;JA++)Q=g[JA],k.writeUInt16(Q);return{charMap:r,subtable:k.data,maxGlyphID:M+1}}},t}(),Id=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="cmap",e.prototype.parse=function(A){var r,a,i;for(A.pos=this.offset,this.version=A.readUInt16(),i=A.readUInt16(),this.tables=[],this.unicode=null,a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)r=new nf(A,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(A,r){var a,i;return r==null&&(r="macroman"),a=nf.encode(A,r),(i=new Zn).writeUInt16(0),i.writeUInt16(1),a.table=i.data.concat(a.subtable),a},e}(),gm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="hhea",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},e}(),pm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="OS/2",e.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var r,a;for(a=[],r=0;r<10;++r)a.push(A.readByte());return a}(),this.charRange=function(){var r,a;for(a=[],r=0;r<4;++r)a.push(A.readInt());return a}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var r,a;for(a=[],r=0;r<2;r=++r)a.push(A.readInt());return a}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},e}(),Bm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="post",e.prototype.parse=function(A){var r,a,i;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:break;case 131072:var o;for(a=A.readUInt16(),this.glyphNameIndex=[],o=0;0<=a?o<a:o>a;o=0<=a?++o:--o)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],i=[];A.pos<this.offset+this.length;)r=A.readByte(),i.push(this.names.push(A.readString(r)));return i;case 151552:return a=A.readUInt16(),this.offsets=A.read(a);case 196608:break;case 262144:return this.map=(function(){var l,u,d;for(d=[],o=l=0,u=this.file.maxp.numGlyphs;0<=u?l<u:l>u;o=0<=u?++l:--l)d.push(A.readUInt32());return d}).call(this)}},e}(),mm=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},wm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="name",e.prototype.parse=function(A){var r,a,i,o,l,u,d,p,B,w,g;for(A.pos=this.offset,A.readShort(),r=A.readShort(),u=A.readShort(),a=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)a.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+u+A.readShort()});for(d={},o=B=0,w=a.length;B<w;o=++B)i=a[o],A.pos=i.offset,p=A.readString(i.length),l=new mm(p,i),d[g=i.nameID]==null&&(d[g]=[]),d[i.nameID].push(l);this.strings=d,this.copyright=d[0],this.fontFamily=d[1],this.fontSubfamily=d[2],this.uniqueSubfamily=d[3],this.fontName=d[4],this.version=d[5];try{this.postscriptName=d[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=d[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=d[7],this.manufacturer=d[8],this.designer=d[9],this.description=d[10],this.vendorUrl=d[11],this.designerUrl=d[12],this.license=d[13],this.licenseUrl=d[14],this.preferredFamily=d[15],this.preferredSubfamily=d[17],this.compatibleFull=d[18],this.sampleText=d[19]},e}(),vm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="maxp",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},e}(),ym=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="hmtx",e.prototype.parse=function(A){var r,a,i,o,l,u,d;for(A.pos=this.offset,this.metrics=[],r=0,u=this.file.hhea.numberOfMetrics;0<=u?r<u:r>u;r=0<=u?++r:--r)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var p,B;for(B=[],r=p=0;0<=i?p<i:p>i;r=0<=i?++p:--p)B.push(A.readInt16());return B}(),this.widths=(function(){var p,B,w,g;for(g=[],p=0,B=(w=this.metrics).length;p<B;p++)o=w[p],g.push(o.advance);return g}).call(this),a=this.widths[this.widths.length-1],d=[],r=l=0;0<=i?l<i:l>i;r=0<=i?++l:--l)d.push(this.widths.push(a));return d},e.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},e}(),Nd=[].slice,Cm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(A){var r,a,i,o,l,u,d,p,B,w;return A in this.cache?this.cache[A]:(o=this.file.loca,r=this.file.contents,a=o.indexOf(A),(i=o.lengthOf(A))===0?this.cache[A]=null:(r.pos=this.offset+a,l=(u=new Zn(r.read(i))).readShort(),p=u.readShort(),w=u.readShort(),d=u.readShort(),B=u.readShort(),this.cache[A]=l===-1?new Fm(u,p,w,d,B):new bm(u,l,p,w,d,B),this.cache[A]))},e.prototype.encode=function(A,r,a){var i,o,l,u,d;for(l=[],o=[],u=0,d=r.length;u<d;u++)i=A[r[u]],o.push(l.length),i&&(l=l.concat(i.encode(a)));return o.push(l.length),{table:l,offsets:o}},e}(),bm=function(){function t(e,A,r,a,i,o){this.raw=e,this.numberOfContours=A,this.xMin=r,this.yMin=a,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Fm=function(){function t(e,A,r,a,i){var o,l;for(this.raw=e,this.xMin=A,this.yMin=r,this.xMax=a,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;l=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&l;)o.pos+=1&l?4:2,128&l?o.pos+=8:64&l?o.pos+=4:8&l&&(o.pos+=2)}return t.prototype.encode=function(){var e,A,r;for(A=new Zn(Nd.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)A.pos=this.glyphOffsets[e];return A.data},t}(),Qm=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return An(e,Rr),e.prototype.tag="loca",e.prototype.parse=function(A){var r,a;return A.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,o;for(o=[],a=0,i=this.length;a<i;a+=2)o.push(2*A.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],a=0,i=this.length;a<i;a+=4)o.push(A.readUInt32());return o}).call(this)},e.prototype.indexOf=function(A){return this.offsets[A]},e.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},e.prototype.encode=function(A,r){for(var a=new Uint32Array(this.offsets.length),i=0,o=0,l=0;l<a.length;++l)if(a[l]=i,o<r.length&&r[o]==l){++o,a[l]=i;var u=this.offsets[l],d=this.offsets[l+1]-u;d>0&&(i+=d)}for(var p=new Array(4*a.length),B=0;B<a.length;++B)p[4*B+3]=255&a[B],p[4*B+2]=(65280&a[B])>>8,p[4*B+1]=(16711680&a[B])>>16,p[4*B]=(4278190080&a[B])>>24;return p},e}(),Em=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,A,r,a,i;for(A in a=this.font.cmap.tables[0].codeMap,e={},i=this.subset)r=i[A],e[A]=a[r];return e},t.prototype.glyphsFor=function(e){var A,r,a,i,o,l,u;for(a={},o=0,l=e.length;o<l;o++)a[i=e[o]]=this.font.glyf.glyphFor(i);for(i in A=[],a)(r=a[i])!=null&&r.compound&&A.push.apply(A,r.glyphIDs);if(A.length>0)for(i in u=this.glyphsFor(A))r=u[i],a[i]=r;return a},t.prototype.encode=function(e,A){var r,a,i,o,l,u,d,p,B,w,g,y,Q,_,v;for(a in r=Id.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),g={0:0},v=r.charMap)g[(u=v[a]).old]=u.new;for(y in w=r.maxGlyphID,o)y in g||(g[y]=w++);return p=function(U){var M,J;for(M in J={},U)J[U[M]]=M;return J}(g),B=Object.keys(p).sort(function(U,M){return U-M}),Q=function(){var U,M,J;for(J=[],U=0,M=B.length;U<M;U++)l=B[U],J.push(p[l]);return J}(),i=this.font.glyf.encode(o,Q,g),d=this.font.loca.encode(i.offsets,Q),_={cmap:this.font.cmap.raw(),glyf:i.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(A)},this.font.os2.exists&&(_["OS/2"]=this.font.os2.raw()),this.font.directory.encode(_)},t}();Ee.API.PDFObject=function(){var t;function e(){}return t=function(A,r){return(Array(r+1).join("0")+A).slice(-r)},e.convert=function(A){var r,a,i,o;if(Array.isArray(A))return"["+function(){var l,u,d;for(d=[],l=0,u=A.length;l<u;l++)r=A[l],d.push(e.convert(r));return d}().join(" ")+"]";if(typeof A=="string")return"/"+A;if(A!=null&&A.isString)return"("+A+")";if(A instanceof Date)return"(D:"+t(A.getUTCFullYear(),4)+t(A.getUTCMonth(),2)+t(A.getUTCDate(),2)+t(A.getUTCHours(),2)+t(A.getUTCMinutes(),2)+t(A.getUTCSeconds(),2)+"Z)";if({}.toString.call(A)==="[object Object]"){for(a in i=["<<"],A)o=A[a],i.push("/"+a+" "+e.convert(o));return i.push(">>"),i.join(`
282
+ `)}return""+A},e}();/*!
283
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
284
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
285
+ * Released under MIT License
286
+ *//*! *****************************************************************************
287
+ Copyright (c) Microsoft Corporation.
288
+
289
+ Permission to use, copy, modify, and/or distribute this software for any
290
+ purpose with or without fee is hereby granted.
291
+
292
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
293
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
294
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
295
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
296
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
297
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
298
+ PERFORMANCE OF THIS SOFTWARE.
299
+ ***************************************************************************** */var Ec=function(t,e){return Ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,r){A.__proto__=r}||function(A,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(A[a]=r[a])},Ec(t,e)};function Vr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ec(t,e);function A(){this.constructor=t}t.prototype=e===null?Object.create(e):(A.prototype=e.prototype,new A)}var Uc=function(){return Uc=Object.assign||function(e){for(var A,r=1,a=arguments.length;r<a;r++){A=arguments[r];for(var i in A)Object.prototype.hasOwnProperty.call(A,i)&&(e[i]=A[i])}return e},Uc.apply(this,arguments)};function er(t,e,A,r){function a(i){return i instanceof A?i:new A(function(o){o(i)})}return new(A||(A=Promise))(function(i,o){function l(p){try{d(r.next(p))}catch(B){o(B)}}function u(p){try{d(r.throw(p))}catch(B){o(B)}}function d(p){p.done?i(p.value):a(p.value).then(l,u)}d((r=r.apply(t,[])).next())})}function Wt(t,e){var A={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(d){return function(p){return u([d,p])}}function u(d){if(r)throw new TypeError("Generator is already executing.");for(;A;)try{if(r=1,a&&(i=d[0]&2?a.return:d[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,d[1])).done)return i;switch(a=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return A.label++,{value:d[1],done:!1};case 5:A.label++,a=d[1],d=[0];continue;case 7:d=A.ops.pop(),A.trys.pop();continue;default:if(i=A.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){A=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){A.label=d[1];break}if(d[0]===6&&A.label<i[1]){A.label=i[1],i=d;break}if(i&&A.label<i[2]){A.label=i[2],A.ops.push(d);break}i[2]&&A.ops.pop(),A.trys.pop();continue}d=e.call(t,A)}catch(p){d=[6,p],a=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Zs(t,e,A){if(arguments.length===2)for(var r=0,a=e.length,i;r<a;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}var yn=function(){function t(e,A,r,a){this.left=e,this.top=A,this.width=r,this.height=a}return t.prototype.add=function(e,A,r,a){return new t(this.left+e,this.top+A,this.width+r,this.height+a)},t.fromClientRect=function(e,A){return new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height)},t.fromDOMRectList=function(e,A){var r=Array.from(A).find(function(a){return a.width!==0});return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Wo=function(t,e){return yn.fromClientRect(t,e.getBoundingClientRect())},Um=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),a=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new yn(0,0,r,a)},Yo=function(t){for(var e=[],A=0,r=t.length;A<r;){var a=t.charCodeAt(A++);if(a>=55296&&a<=56319&&A<r){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((a&1023)<<10)+(i&1023)+65536):(e.push(a),A--)}else e.push(a)}return e},Bt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var r=[],a=-1,i="";++a<A;){var o=t[a];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(a+1===A||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},af="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ao=0;Ao<af.length;Ao++)Lm[af.charCodeAt(Ao)]=Ao;var sf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var eo=0;eo<sf.length;eo++)zi[sf.charCodeAt(eo)]=eo;var km=function(t){var e=t.length*.75,A=t.length,r,a=0,i,o,l,u;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),p=Array.isArray(d)?d:new Uint8Array(d);for(r=0;r<A;r+=4)i=zi[t.charCodeAt(r)],o=zi[t.charCodeAt(r+1)],l=zi[t.charCodeAt(r+2)],u=zi[t.charCodeAt(r+3)],p[a++]=i<<2|o>>4,p[a++]=(o&15)<<4|l>>2,p[a++]=(l&3)<<6|u&63;return d},xm=function(t){for(var e=t.length,A=[],r=0;r<e;r+=2)A.push(t[r+1]<<8|t[r]);return A},Sm=function(t){for(var e=t.length,A=[],r=0;r<e;r+=4)A.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return A},ma=5,Au=11,Gl=2,Dm=Au-ma,Td=65536>>ma,Im=1<<ma,jl=Im-1,Nm=1024>>ma,Tm=Td+Nm,Hm=Tm,_m=32,Mm=Hm+_m,Pm=65536>>Au,Om=1<<Dm,Rm=Om-1,of=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},Vm=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},Km=function(t,e){var A=km(t),r=Array.isArray(A)?Sm(A):new Uint32Array(A),a=Array.isArray(A)?xm(A):new Uint16Array(A),i=24,o=of(a,i/2,r[4]/2),l=r[5]===2?of(a,(i+r[4])/2):Vm(r,Math.ceil((i+r[4])/4));return new Gm(r[0],r[1],r[2],r[3],o,l)},Gm=function(){function t(e,A,r,a,i,o){this.initialValue=e,this.errorValue=A,this.highStart=r,this.highValueIndex=a,this.index=i,this.data=o}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>ma],A=(A<<Gl)+(e&jl),this.data[A];if(e<=65535)return A=this.index[Td+(e-55296>>ma)],A=(A<<Gl)+(e&jl),this.data[A];if(e<this.highStart)return A=Mm-Pm+(e>>Au),A=this.index[A],A+=e>>ma&Rm,A=this.index[A],A=(A<<Gl)+(e&jl),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),lf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var to=0;to<lf.length;to++)jm[lf.charCodeAt(to)]=to;var qm="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",cf=50,Wm=1,Hd=2,_d=3,Ym=4,zm=5,uf=7,Md=8,ff=9,Wn=10,Lc=11,df=12,kc=13,$m=14,$i=15,xc=16,ro=17,ji=18,Xm=19,hf=20,Sc=21,qi=22,ql=23,Wa=24,gr=25,Xi=26,Ji=27,Ya=28,Jm=29,ga=30,Zm=31,no=32,ao=33,Dc=34,Ic=35,Nc=36,ls=37,Tc=38,Lo=39,ko=40,Wl=41,Pd=42,Aw=43,ew=[9001,65288],Od="!",Ke="×",io="÷",Hc=Km(qm),mn=[ga,Nc],_c=[Wm,Hd,_d,zm],Rd=[Wn,Md],gf=[Ji,Xi],tw=_c.concat(Rd),pf=[Tc,Lo,ko,Dc,Ic],rw=[$i,kc],nw=function(t,e){e===void 0&&(e="strict");var A=[],r=[],a=[];return t.forEach(function(i,o){var l=Hc.get(i);if(l>cf?(a.push(!0),l-=cf):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(o),A.push(xc);if(l===Ym||l===Lc){if(o===0)return r.push(o),A.push(ga);var u=A[o-1];return tw.indexOf(u)===-1?(r.push(r[o-1]),A.push(u)):(r.push(o),A.push(ga))}if(r.push(o),l===Zm)return A.push(e==="strict"?Sc:ls);if(l===Pd||l===Jm)return A.push(ga);if(l===Aw)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(ls):A.push(ga);A.push(l)}),[r,A,a]},Yl=function(t,e,A,r){var a=r[A];if(Array.isArray(t)?t.indexOf(a)!==-1:t===a)for(var i=A;i<=r.length;){i++;var o=r[i];if(o===e)return!0;if(o!==Wn)break}if(a===Wn)for(var i=A;i>0;){i--;var l=r[i];if(Array.isArray(t)?t.indexOf(l)!==-1:t===l)for(var u=A;u<=r.length;){u++;var o=r[u];if(o===e)return!0;if(o!==Wn)break}if(l!==Wn)break}return!1},Bf=function(t,e){for(var A=t;A>=0;){var r=e[A];if(r===Wn)A--;else return r}return 0},aw=function(t,e,A,r,a){if(A[r]===0)return Ke;var i=r-1;if(Array.isArray(a)&&a[i]===!0)return Ke;var o=i-1,l=i+1,u=e[i],d=o>=0?e[o]:0,p=e[l];if(u===Hd&&p===_d)return Ke;if(_c.indexOf(u)!==-1)return Od;if(_c.indexOf(p)!==-1||Rd.indexOf(p)!==-1)return Ke;if(Bf(i,e)===Md)return io;if(Hc.get(t[i])===Lc||(u===no||u===ao)&&Hc.get(t[l])===Lc||u===uf||p===uf||u===ff||[Wn,kc,$i].indexOf(u)===-1&&p===ff||[ro,ji,Xm,Wa,Ya].indexOf(p)!==-1||Bf(i,e)===qi||Yl(ql,qi,i,e)||Yl([ro,ji],Sc,i,e)||Yl(df,df,i,e))return Ke;if(u===Wn)return io;if(u===ql||p===ql)return Ke;if(p===xc||u===xc)return io;if([kc,$i,Sc].indexOf(p)!==-1||u===$m||d===Nc&&rw.indexOf(u)!==-1||u===Ya&&p===Nc||p===hf||mn.indexOf(p)!==-1&&u===gr||mn.indexOf(u)!==-1&&p===gr||u===Ji&&[ls,no,ao].indexOf(p)!==-1||[ls,no,ao].indexOf(u)!==-1&&p===Xi||mn.indexOf(u)!==-1&&gf.indexOf(p)!==-1||gf.indexOf(u)!==-1&&mn.indexOf(p)!==-1||[Ji,Xi].indexOf(u)!==-1&&(p===gr||[qi,$i].indexOf(p)!==-1&&e[l+1]===gr)||[qi,$i].indexOf(u)!==-1&&p===gr||u===gr&&[gr,Ya,Wa].indexOf(p)!==-1)return Ke;if([gr,Ya,Wa,ro,ji].indexOf(p)!==-1)for(var B=i;B>=0;){var w=e[B];if(w===gr)return Ke;if([Ya,Wa].indexOf(w)!==-1)B--;else break}if([Ji,Xi].indexOf(p)!==-1)for(var B=[ro,ji].indexOf(u)!==-1?o:i;B>=0;){var w=e[B];if(w===gr)return Ke;if([Ya,Wa].indexOf(w)!==-1)B--;else break}if(Tc===u&&[Tc,Lo,Dc,Ic].indexOf(p)!==-1||[Lo,Dc].indexOf(u)!==-1&&[Lo,ko].indexOf(p)!==-1||[ko,Ic].indexOf(u)!==-1&&p===ko||pf.indexOf(u)!==-1&&[hf,Xi].indexOf(p)!==-1||pf.indexOf(p)!==-1&&u===Ji||mn.indexOf(u)!==-1&&mn.indexOf(p)!==-1||u===Wa&&mn.indexOf(p)!==-1||mn.concat(gr).indexOf(u)!==-1&&p===qi&&ew.indexOf(t[l])===-1||mn.concat(gr).indexOf(p)!==-1&&u===ji)return Ke;if(u===Wl&&p===Wl){for(var g=A[i],y=1;g>0&&(g--,e[g]===Wl);)y++;if(y%2!==0)return Ke}return u===no&&p===ao?Ke:io},iw=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=nw(t,e.lineBreak),r=A[0],a=A[1],i=A[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(l){return[gr,ga,Pd].indexOf(l)!==-1?ls:l}));var o=e.wordBreak==="keep-all"?i.map(function(l,u){return l&&t[u]>=19968&&t[u]<=40959}):void 0;return[r,a,o]},sw=function(){function t(e,A,r,a){this.codePoints=e,this.required=A===Od,this.start=r,this.end=a}return t.prototype.slice=function(){return Bt.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),ow=function(t,e){var A=Yo(t),r=iw(A,e),a=r[0],i=r[1],o=r[2],l=A.length,u=0,d=0;return{next:function(){if(d>=l)return{done:!0,value:null};for(var p=Ke;d<l&&(p=aw(A,i,a,++d,o))===Ke;);if(p!==Ke||d===l){var B=new sw(A,p,u,d);return u=d,{value:B,done:!1}}return{done:!0,value:null}}}},lw=1,cw=2,fs=4,mf=8,No=10,wf=47,rs=92,uw=9,fw=32,so=34,Wi=61,dw=35,hw=36,gw=37,oo=39,lo=40,Yi=41,pw=95,sr=45,Bw=33,mw=60,ww=62,vw=64,yw=91,Cw=93,bw=61,Fw=123,co=63,Qw=125,vf=124,Ew=126,Uw=128,yf=65533,zl=42,pa=43,Lw=44,kw=58,xw=59,cs=46,Sw=0,Dw=8,Iw=11,Nw=14,Tw=31,Hw=127,$r=-1,Vd=48,Kd=97,Gd=101,_w=102,Mw=117,Pw=122,jd=65,qd=69,Wd=70,Ow=85,Rw=90,Yt=function(t){return t>=Vd&&t<=57},Vw=function(t){return t>=55296&&t<=57343},za=function(t){return Yt(t)||t>=jd&&t<=Wd||t>=Kd&&t<=_w},Kw=function(t){return t>=Kd&&t<=Pw},Gw=function(t){return t>=jd&&t<=Rw},jw=function(t){return Kw(t)||Gw(t)},qw=function(t){return t>=Uw},uo=function(t){return t===No||t===uw||t===fw},To=function(t){return jw(t)||qw(t)||t===pw},Cf=function(t){return To(t)||Yt(t)||t===sr},Ww=function(t){return t>=Sw&&t<=Dw||t===Iw||t>=Nw&&t<=Tw||t===Hw},jn=function(t,e){return t!==rs?!1:e!==No},fo=function(t,e,A){return t===sr?To(e)||jn(e,A):To(t)?!0:!!(t===rs&&jn(t,e))},$l=function(t,e,A){return t===pa||t===sr?Yt(e)?!0:e===cs&&Yt(A):Yt(t===cs?e:t)},Yw=function(t){var e=0,A=1;(t[e]===pa||t[e]===sr)&&(t[e]===sr&&(A=-1),e++);for(var r=[];Yt(t[e]);)r.push(t[e++]);var a=r.length?parseInt(Bt.apply(void 0,r),10):0;t[e]===cs&&e++;for(var i=[];Yt(t[e]);)i.push(t[e++]);var o=i.length,l=o?parseInt(Bt.apply(void 0,i),10):0;(t[e]===qd||t[e]===Gd)&&e++;var u=1;(t[e]===pa||t[e]===sr)&&(t[e]===sr&&(u=-1),e++);for(var d=[];Yt(t[e]);)d.push(t[e++]);var p=d.length?parseInt(Bt.apply(void 0,d),10):0;return A*(a+l*Math.pow(10,-o))*Math.pow(10,u*p)},zw={type:2},$w={type:3},Xw={type:4},Jw={type:13},Zw={type:8},Av={type:21},ev={type:9},tv={type:10},rv={type:11},nv={type:12},av={type:14},ho={type:23},iv={type:1},sv={type:25},ov={type:24},lv={type:26},cv={type:27},uv={type:28},fv={type:29},dv={type:31},Mc={type:32},Yd=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(Yo(e))},t.prototype.read=function(){for(var e=[],A=this.consumeToken();A!==Mc;)e.push(A),A=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case so:return this.consumeStringToken(so);case dw:var A=this.peekCodePoint(0),r=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Cf(A)||jn(r,a)){var i=fo(A,r,a)?cw:lw,o=this.consumeName();return{type:5,value:o,flags:i}}break;case hw:if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),Jw;break;case oo:return this.consumeStringToken(oo);case lo:return zw;case Yi:return $w;case zl:if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),av;break;case pa:if($l(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Lw:return Xw;case sr:var l=e,u=this.peekCodePoint(0),d=this.peekCodePoint(1);if($l(l,u,d))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fo(l,u,d))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(u===sr&&d===ww)return this.consumeCodePoint(),this.consumeCodePoint(),ov;break;case cs:if($l(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case wf:if(this.peekCodePoint(0)===zl)for(this.consumeCodePoint();;){var p=this.consumeCodePoint();if(p===zl&&(p=this.consumeCodePoint(),p===wf))return this.consumeToken();if(p===$r)return this.consumeToken()}break;case kw:return lv;case xw:return cv;case mw:if(this.peekCodePoint(0)===Bw&&this.peekCodePoint(1)===sr&&this.peekCodePoint(2)===sr)return this.consumeCodePoint(),this.consumeCodePoint(),sv;break;case vw:var B=this.peekCodePoint(0),w=this.peekCodePoint(1),g=this.peekCodePoint(2);if(fo(B,w,g)){var o=this.consumeName();return{type:7,value:o}}break;case yw:return uv;case rs:if(jn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Cw:return fv;case bw:if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),Zw;break;case Fw:return rv;case Qw:return nv;case Mw:case Ow:var y=this.peekCodePoint(0),Q=this.peekCodePoint(1);return y===pa&&(za(Q)||Q===co)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case vf:if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),ev;if(this.peekCodePoint(0)===vf)return this.consumeCodePoint(),Av;break;case Ew:if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),tv;break;case $r:return Mc}return uo(e)?(this.consumeWhiteSpace(),dv):Yt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):To(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Bt(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],A=this.consumeCodePoint();za(A)&&e.length<6;)e.push(A),A=this.consumeCodePoint();for(var r=!1;A===co&&e.length<6;)e.push(A),A=this.consumeCodePoint(),r=!0;if(r){var a=parseInt(Bt.apply(void 0,e.map(function(u){return u===co?Vd:u})),16),i=parseInt(Bt.apply(void 0,e.map(function(u){return u===co?Wd:u})),16);return{type:30,start:a,end:i}}var o=parseInt(Bt.apply(void 0,e),16);if(this.peekCodePoint(0)===sr&&za(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var l=[];za(A)&&l.length<6;)l.push(A),A=this.consumeCodePoint();var i=parseInt(Bt.apply(void 0,l),16);return{type:30,start:o,end:i}}else return{type:30,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===lo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===lo?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===oo||A===so){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===Yi)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),ho)}for(;;){var a=this.consumeCodePoint();if(a===$r||a===Yi)return{type:22,value:Bt.apply(void 0,e)};if(uo(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===Yi?(this.consumeCodePoint(),{type:22,value:Bt.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ho);if(a===so||a===oo||a===lo||Ww(a))return this.consumeBadUrlRemnants(),ho;if(a===rs)if(jn(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ho;else e.push(a)}},t.prototype.consumeWhiteSpace=function(){for(;uo(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Yi||e===$r)return;jn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var A=5e4,r="";e>0;){var a=Math.min(A,e);r+=Bt.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),r},t.prototype.consumeStringToken=function(e){var A="",r=0;do{var a=this._value[r];if(a===$r||a===void 0||a===e)return A+=this.consumeStringSlice(r),{type:0,value:A};if(a===No)return this._value.splice(0,r),iv;if(a===rs){var i=this._value[r+1];i!==$r&&i!==void 0&&(i===No?(A+=this.consumeStringSlice(r),r=-1,this._value.shift()):jn(a,i)&&(A+=this.consumeStringSlice(r),A+=Bt(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},t.prototype.consumeNumber=function(){var e=[],A=fs,r=this.peekCodePoint(0);for((r===pa||r===sr)&&e.push(this.consumeCodePoint());Yt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(r===cs&&Yt(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=mf;Yt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===qd||r===Gd)&&((a===pa||a===sr)&&Yt(i)||Yt(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),A=mf;Yt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Yw(e),A]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),A=e[0],r=e[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(fo(a,i,o)){var l=this.consumeName();return{type:15,number:A,flags:r,unit:l}}return a===gw?(this.consumeCodePoint(),{type:16,number:A,flags:r}):{type:17,number:A,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(za(e)){for(var A=Bt(e);za(this.peekCodePoint(0))&&A.length<6;)A+=Bt(this.consumeCodePoint());uo(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(A,16);return r===0||Vw(r)||r>1114111?yf:r}return e===$r?yf:e},t.prototype.consumeName=function(){for(var e="";;){var A=this.consumeCodePoint();if(Cf(A))e+=Bt(A);else if(jn(A,this.peekCodePoint(0)))e+=Bt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),e}},t}(),zd=function(){function t(e){this._tokens=e}return t.create=function(e){var A=new Yd;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var A=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var A=this.consumeComponentValue();if(A.type===32)return e;e.push(A),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var A={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||gv(r,e))return A;this.reconsumeToken(r),A.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var A={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return A;this.reconsumeToken(r),A.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Mc:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),ds=function(t){return t.type===15},fi=function(t){return t.type===17},Ze=function(t){return t.type===20},hv=function(t){return t.type===0},Pc=function(t,e){return Ze(t)&&t.value===e},$d=function(t){return t.type!==31},ui=function(t){return t.type!==31&&t.type!==4},en=function(t){var e=[],A=[];return t.forEach(function(r){if(r.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(A),A=[];return}r.type!==31&&A.push(r)}),A.length&&e.push(A),e},gv=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},Aa=function(t){return t.type===17||t.type===15},Ft=function(t){return t.type===16||Aa(t)},Xd=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Mt={type:17,number:0,flags:fs},eu={type:16,number:50,flags:fs},Yn={type:16,number:100,flags:fs},Zi=function(t,e,A){var r=t[0],a=t[1];return[at(r,e),at(typeof a<"u"?a:r,A)]},at=function(t,e){if(t.type===16)return t.number/100*e;if(ds(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Jd="deg",Zd="grad",Ah="rad",eh="turn",zo={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case Jd:return Math.PI*e.number/180;case Zd:return Math.PI/200*e.number;case Ah:return e.number;case eh:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},th=function(t){return t.type===15&&(t.unit===Jd||t.unit===Zd||t.unit===Ah||t.unit===eh)},rh=function(t){var e=t.filter(Ze).map(function(A){return A.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Mt,Mt];case"to top":case"bottom":return Ur(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Mt,Yn];case"to right":case"left":return Ur(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Yn,Yn];case"to bottom":case"top":return Ur(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Yn,Mt];case"to left":case"right":return Ur(270)}return 0},Ur=function(t){return Math.PI*t/180},$n={name:"color",parse:function(t,e){if(e.type===18){var A=pv[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return A(t,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3);return zn(parseInt(r+r,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),a=e.value.substring(1,2),i=e.value.substring(2,3),o=e.value.substring(3,4);return zn(parseInt(r+r,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6);return zn(parseInt(r,16),parseInt(a,16),parseInt(i,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),a=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return zn(parseInt(r,16),parseInt(a,16),parseInt(i,16),parseInt(o,16)/255)}}if(e.type===20){var l=vn[e.value.toUpperCase()];if(typeof l<"u")return l}return vn.TRANSPARENT}},Xn=function(t){return(255&t)===0},It=function(t){var e=255&t,A=255&t>>8,r=255&t>>16,a=255&t>>24;return e<255?"rgba("+a+","+r+","+A+","+e/255+")":"rgb("+a+","+r+","+A+")"},zn=function(t,e,A,r){return(t<<24|e<<16|A<<8|Math.round(r*255)<<0)>>>0},bf=function(t,e){if(t.type===17)return t.number;if(t.type===16){var A=e===3?1:255;return e===3?t.number/100*A:Math.round(t.number/100*A)}return 0},Ff=function(t,e){var A=e.filter(ui);if(A.length===3){var r=A.map(bf),a=r[0],i=r[1],o=r[2];return zn(a,i,o,1)}if(A.length===4){var l=A.map(bf),a=l[0],i=l[1],o=l[2],u=l[3];return zn(a,i,o,u)}return 0};function Xl(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<1/2?e:A<2/3?(e-t)*6*(2/3-A)+t:t}var Qf=function(t,e){var A=e.filter(ui),r=A[0],a=A[1],i=A[2],o=A[3],l=(r.type===17?Ur(r.number):zo.parse(t,r))/(Math.PI*2),u=Ft(a)?a.number/100:0,d=Ft(i)?i.number/100:0,p=typeof o<"u"&&Ft(o)?at(o,1):1;if(u===0)return zn(d*255,d*255,d*255,1);var B=d<=.5?d*(u+1):d+u-d*u,w=d*2-B,g=Xl(w,B,l+1/3),y=Xl(w,B,l),Q=Xl(w,B,l-1/3);return zn(g*255,y*255,Q*255,p)},pv={hsl:Qf,hsla:Qf,rgb:Ff,rgba:Ff},ns=function(t,e){return $n.parse(t,zd.create(e).parseComponentValue())},vn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Bv={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(Ze(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},mv={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$o=function(t,e){var A=$n.parse(t,e[0]),r=e[1];return r&&Ft(r)?{color:A,stop:r}:{color:A,stop:null}},Ef=function(t,e){var A=t[0],r=t[t.length-1];A.stop===null&&(A.stop=Mt),r.stop===null&&(r.stop=Yn);for(var a=[],i=0,o=0;o<t.length;o++){var l=t[o].stop;if(l!==null){var u=at(l,e);u>i?a.push(u):a.push(i),i=u}else a.push(null)}for(var d=null,o=0;o<a.length;o++){var p=a[o];if(p===null)d===null&&(d=o);else if(d!==null){for(var B=o-d,w=a[d-1],g=(p-w)/(B+1),y=1;y<=B;y++)a[d+y-1]=g*y;d=null}}return t.map(function(Q,_){var v=Q.color;return{color:v,stop:Math.max(Math.min(1,a[_]/e),0)}})},wv=function(t,e,A){var r=e/2,a=A/2,i=at(t[0],e)-r,o=a-at(t[1],A);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},vv=function(t,e,A){var r=typeof t=="number"?t:wv(t,e,A),a=Math.abs(e*Math.sin(r))+Math.abs(A*Math.cos(r)),i=e/2,o=A/2,l=a/2,u=Math.sin(r-Math.PI/2)*l,d=Math.cos(r-Math.PI/2)*l;return[a,i-d,i+d,o-u,o+u]},Mr=function(t,e){return Math.sqrt(t*t+e*e)},Uf=function(t,e,A,r,a){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce(function(o,l){var u=l[0],d=l[1],p=Mr(A-u,r-d);return(a?p<o.optimumDistance:p>o.optimumDistance)?{optimumCorner:l,optimumDistance:p}:o},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},yv=function(t,e,A,r,a){var i=0,o=0;switch(t.size){case 0:t.shape===0?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(A),Math.abs(A-a)):t.shape===1&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(A),Math.abs(A-a)));break;case 2:if(t.shape===0)i=o=Math.min(Mr(e,A),Mr(e,A-a),Mr(e-r,A),Mr(e-r,A-a));else if(t.shape===1){var l=Math.min(Math.abs(A),Math.abs(A-a))/Math.min(Math.abs(e),Math.abs(e-r)),u=Uf(r,a,e,A,!0),d=u[0],p=u[1];i=Mr(d-e,(p-A)/l),o=l*i}break;case 1:t.shape===0?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(A),Math.abs(A-a)):t.shape===1&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(A),Math.abs(A-a)));break;case 3:if(t.shape===0)i=o=Math.max(Mr(e,A),Mr(e,A-a),Mr(e-r,A),Mr(e-r,A-a));else if(t.shape===1){var l=Math.max(Math.abs(A),Math.abs(A-a))/Math.max(Math.abs(e),Math.abs(e-r)),B=Uf(r,a,e,A,!1),d=B[0],p=B[1];i=Mr(d-e,(p-A)/l),o=l*i}break}return Array.isArray(t.size)&&(i=at(t.size[0],r),o=t.size.length===2?at(t.size[1],a):i),[i,o]},Cv=function(t,e){var A=Ur(180),r=[];return en(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&o.value==="to"){A=rh(a);return}else if(th(o)){A=zo.parse(t,o);return}}var l=$o(t,a);r.push(l)}),{angle:A,stops:r,type:1}},go=function(t,e){var A=Ur(180),r=[];return en(e).forEach(function(a,i){if(i===0){var o=a[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){A=rh(a);return}else if(th(o)){A=(zo.parse(t,o)+Ur(270))%Ur(360);return}}var l=$o(t,a);r.push(l)}),{angle:A,stops:r,type:1}},bv=function(t,e){var A=Ur(180),r=[],a=1,i=0,o=3,l=[];return en(e).forEach(function(u,d){var p=u[0];if(d===0){if(Ze(p)&&p.value==="linear"){a=1;return}else if(Ze(p)&&p.value==="radial"){a=2;return}}if(p.type===18){if(p.name==="from"){var B=$n.parse(t,p.values[0]);r.push({stop:Mt,color:B})}else if(p.name==="to"){var B=$n.parse(t,p.values[0]);r.push({stop:Yn,color:B})}else if(p.name==="color-stop"){var w=p.values.filter(ui);if(w.length===2){var B=$n.parse(t,w[1]),g=w[0];fi(g)&&r.push({stop:{type:16,number:g.number*100,flags:g.flags},color:B})}}}}),a===1?{angle:(A+Ur(180))%Ur(360),stops:r,type:a}:{size:o,shape:i,stops:r,position:l,type:a}},nh="closest-side",ah="farthest-side",ih="closest-corner",sh="farthest-corner",oh="circle",lh="ellipse",ch="cover",uh="contain",Fv=function(t,e){var A=0,r=3,a=[],i=[];return en(e).forEach(function(o,l){var u=!0;if(l===0){var d=!1;u=o.reduce(function(B,w){if(d)if(Ze(w))switch(w.value){case"center":return i.push(eu),B;case"top":case"left":return i.push(Mt),B;case"right":case"bottom":return i.push(Yn),B}else(Ft(w)||Aa(w))&&i.push(w);else if(Ze(w))switch(w.value){case oh:return A=0,!1;case lh:return A=1,!1;case"at":return d=!0,!1;case nh:return r=0,!1;case ch:case ah:return r=1,!1;case uh:case ih:return r=2,!1;case sh:return r=3,!1}else if(Aa(w)||Ft(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return B},u)}if(u){var p=$o(t,o);a.push(p)}}),{size:r,shape:A,stops:a,position:i,type:2}},po=function(t,e){var A=0,r=3,a=[],i=[];return en(e).forEach(function(o,l){var u=!0;if(l===0?u=o.reduce(function(p,B){if(Ze(B))switch(B.value){case"center":return i.push(eu),!1;case"top":case"left":return i.push(Mt),!1;case"right":case"bottom":return i.push(Yn),!1}else if(Ft(B)||Aa(B))return i.push(B),!1;return p},u):l===1&&(u=o.reduce(function(p,B){if(Ze(B))switch(B.value){case oh:return A=0,!1;case lh:return A=1,!1;case uh:case nh:return r=0,!1;case ah:return r=1,!1;case ih:return r=2,!1;case ch:case sh:return r=3,!1}else if(Aa(B)||Ft(B))return Array.isArray(r)||(r=[]),r.push(B),!1;return p},u)),u){var d=$o(t,o);a.push(d)}}),{size:r,shape:A,stops:a,position:i,type:2}},Qv=function(t){return t.type===1},Ev=function(t){return t.type===2},tu={name:"image",parse:function(t,e){if(e.type===22){var A={url:e.value,type:0};return t.cache.addImage(e.value),A}if(e.type===18){var r=fh[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function Uv(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!fh[t.name])}var fh={"linear-gradient":Cv,"-moz-linear-gradient":go,"-ms-linear-gradient":go,"-o-linear-gradient":go,"-webkit-linear-gradient":go,"radial-gradient":Fv,"-moz-radial-gradient":po,"-ms-radial-gradient":po,"-o-radial-gradient":po,"-webkit-radial-gradient":po,"-webkit-gradient":bv},Lv={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e.filter(function(r){return ui(r)&&Uv(r)}).map(function(r){return tu.parse(t,r)})}},kv={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(A){if(Ze(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},xv={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return en(e).map(function(A){return A.filter(Ft)}).map(Xd)}},Sv={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return en(e).map(function(A){return A.filter(Ze).map(function(r){return r.value}).join(" ")}).map(Dv)}},Dv=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ci;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(ci||(ci={}));var Iv={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return en(e).map(function(A){return A.filter(Nv)})}},Nv=function(t){return Ze(t)||Ft(t)},Xo=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Tv=Xo("top"),Hv=Xo("right"),_v=Xo("bottom"),Mv=Xo("left"),Jo=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,A){return Xd(A.filter(Ft))}}},Pv=Jo("top-left"),Ov=Jo("top-right"),Rv=Jo("bottom-right"),Vv=Jo("bottom-left"),Zo=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Kv=Zo("top"),Gv=Zo("right"),jv=Zo("bottom"),qv=Zo("left"),Al=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return ds(A)?A.number:0}}},Wv=Al("top"),Yv=Al("right"),zv=Al("bottom"),$v=Al("left"),Xv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jv={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Zv={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Ze).reduce(function(A,r){return A|A5(r.value)},0)}},A5=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},e5={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},t5={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Ho;(function(t){t.NORMAL="normal",t.STRICT="strict"})(Ho||(Ho={}));var r5={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Ho.STRICT;case"normal":default:return Ho.NORMAL}}},n5={name:"line-height",initialValue:"normal",prefix:!1,type:4},Lf=function(t,e){return Ze(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:Ft(t)?at(t,e):e},a5={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:tu.parse(t,e)}},i5={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Oc={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},el=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},s5=el("top"),o5=el("right"),l5=el("bottom"),c5=el("left"),u5={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Ze).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},f5={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},tl=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},d5=tl("top"),h5=tl("right"),g5=tl("bottom"),p5=tl("left"),B5={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},m5={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},w5={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Pc(e[0],"none")?[]:en(e).map(function(A){for(var r={color:vn.TRANSPARENT,offsetX:Mt,offsetY:Mt,blur:Mt},a=0,i=0;i<A.length;i++){var o=A[i];Aa(o)?(a===0?r.offsetX=o:a===1?r.offsetY=o:r.blur=o,a++):r.color=$n.parse(t,o)}return r})}},v5={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},y5={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var A=F5[e.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return A(e.values)}return null}},C5=function(t){var e=t.filter(function(A){return A.type===17}).map(function(A){return A.number});return e.length===6?e:null},b5=function(t){var e=t.filter(function(u){return u.type===17}).map(function(u){return u.number}),A=e[0],r=e[1];e[2],e[3];var a=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],l=e[13];return e[14],e[15],e.length===16?[A,r,a,i,o,l]:null},F5={matrix:C5,matrix3d:b5},kf={type:16,number:50,flags:fs},Q5=[kf,kf],E5={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var A=e.filter(Ft);return A.length!==2?Q5:[A[0],A[1]]}},U5={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},as;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(as||(as={}));var L5={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return as.BREAK_ALL;case"keep-all":return as.KEEP_ALL;case"normal":default:return as.NORMAL}}},k5={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(fi(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},dh={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},x5={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return fi(e)?e.number:1}},S5={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},D5={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Ze).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},I5={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var A=[],r=[];return e.forEach(function(a){switch(a.type){case 20:case 0:A.push(a.value);break;case 17:A.push(a.number.toString());break;case 4:r.push(A.join(" ")),A.length=0;break}}),A.length&&r.push(A.join(" ")),r.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},N5={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},T5={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(fi(e))return e.number;if(Ze(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},H5={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Ze).map(function(A){return A.value})}},_5={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ut=function(t,e){return(t&e)!==0},M5={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var A=e[0];return A.type===20&&A.value==="none"?[]:e}},P5={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;for(var r=[],a=e.filter($d),i=0;i<a.length;i++){var o=a[i],l=a[i+1];if(o.type===20){var u=l&&fi(l)?l.number:1;r.push({counter:o.value,increment:u})}}return r}},O5={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var A=[],r=e.filter($d),a=0;a<r.length;a++){var i=r[a],o=r[a+1];if(Ze(i)&&i.value!=="none"){var l=o&&fi(o)?o.number:0;A.push({counter:i.value,reset:l})}}return A}},R5={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(ds).map(function(A){return dh.parse(t,A)})}},V5={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var A=e[0];if(A.type===20&&A.value==="none")return null;var r=[],a=e.filter(hv);if(a.length%2!==0)return null;for(var i=0;i<a.length;i+=2){var o=a[i].value,l=a[i+1].value;r.push({open:o,close:l})}return r}},xf=function(t,e,A){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?A?r.open:r.close:""},K5={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&Pc(e[0],"none")?[]:en(e).map(function(A){for(var r={color:255,offsetX:Mt,offsetY:Mt,blur:Mt,spread:Mt,inset:!1},a=0,i=0;i<A.length;i++){var o=A[i];Pc(o,"inset")?r.inset=!0:Aa(o)?(a===0?r.offsetX=o:a===1?r.offsetY=o:a===2?r.blur=o:r.spread=o,a++):r.color=$n.parse(t,o)}return r})}},G5={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var A=[0,1,2],r=[];return e.filter(Ze).forEach(function(a){switch(a.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),A.forEach(function(a){r.indexOf(a)===-1&&r.push(a)}),r}},j5={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},q5={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return ds(e)?e.number:0}},W5=function(){function t(e,A){var r,a;this.animationDuration=ue(e,R5,A.animationDuration),this.backgroundClip=ue(e,Bv,A.backgroundClip),this.backgroundColor=ue(e,mv,A.backgroundColor),this.backgroundImage=ue(e,Lv,A.backgroundImage),this.backgroundOrigin=ue(e,kv,A.backgroundOrigin),this.backgroundPosition=ue(e,xv,A.backgroundPosition),this.backgroundRepeat=ue(e,Sv,A.backgroundRepeat),this.backgroundSize=ue(e,Iv,A.backgroundSize),this.borderTopColor=ue(e,Tv,A.borderTopColor),this.borderRightColor=ue(e,Hv,A.borderRightColor),this.borderBottomColor=ue(e,_v,A.borderBottomColor),this.borderLeftColor=ue(e,Mv,A.borderLeftColor),this.borderTopLeftRadius=ue(e,Pv,A.borderTopLeftRadius),this.borderTopRightRadius=ue(e,Ov,A.borderTopRightRadius),this.borderBottomRightRadius=ue(e,Rv,A.borderBottomRightRadius),this.borderBottomLeftRadius=ue(e,Vv,A.borderBottomLeftRadius),this.borderTopStyle=ue(e,Kv,A.borderTopStyle),this.borderRightStyle=ue(e,Gv,A.borderRightStyle),this.borderBottomStyle=ue(e,jv,A.borderBottomStyle),this.borderLeftStyle=ue(e,qv,A.borderLeftStyle),this.borderTopWidth=ue(e,Wv,A.borderTopWidth),this.borderRightWidth=ue(e,Yv,A.borderRightWidth),this.borderBottomWidth=ue(e,zv,A.borderBottomWidth),this.borderLeftWidth=ue(e,$v,A.borderLeftWidth),this.boxShadow=ue(e,K5,A.boxShadow),this.color=ue(e,Xv,A.color),this.direction=ue(e,Jv,A.direction),this.display=ue(e,Zv,A.display),this.float=ue(e,e5,A.cssFloat),this.fontFamily=ue(e,I5,A.fontFamily),this.fontSize=ue(e,N5,A.fontSize),this.fontStyle=ue(e,_5,A.fontStyle),this.fontVariant=ue(e,H5,A.fontVariant),this.fontWeight=ue(e,T5,A.fontWeight),this.letterSpacing=ue(e,t5,A.letterSpacing),this.lineBreak=ue(e,r5,A.lineBreak),this.lineHeight=ue(e,n5,A.lineHeight),this.listStyleImage=ue(e,a5,A.listStyleImage),this.listStylePosition=ue(e,i5,A.listStylePosition),this.listStyleType=ue(e,Oc,A.listStyleType),this.marginTop=ue(e,s5,A.marginTop),this.marginRight=ue(e,o5,A.marginRight),this.marginBottom=ue(e,l5,A.marginBottom),this.marginLeft=ue(e,c5,A.marginLeft),this.opacity=ue(e,x5,A.opacity);var i=ue(e,u5,A.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=ue(e,f5,A.overflowWrap),this.paddingTop=ue(e,d5,A.paddingTop),this.paddingRight=ue(e,h5,A.paddingRight),this.paddingBottom=ue(e,g5,A.paddingBottom),this.paddingLeft=ue(e,p5,A.paddingLeft),this.paintOrder=ue(e,G5,A.paintOrder),this.position=ue(e,m5,A.position),this.textAlign=ue(e,B5,A.textAlign),this.textDecorationColor=ue(e,S5,(r=A.textDecorationColor)!==null&&r!==void 0?r:A.color),this.textDecorationLine=ue(e,D5,(a=A.textDecorationLine)!==null&&a!==void 0?a:A.textDecoration),this.textShadow=ue(e,w5,A.textShadow),this.textTransform=ue(e,v5,A.textTransform),this.transform=ue(e,y5,A.transform),this.transformOrigin=ue(e,E5,A.transformOrigin),this.visibility=ue(e,U5,A.visibility),this.webkitTextStrokeColor=ue(e,j5,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=ue(e,q5,A.webkitTextStrokeWidth),this.wordBreak=ue(e,L5,A.wordBreak),this.zIndex=ue(e,k5,A.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return Xn(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return Ut(this.display,4)||Ut(this.display,33554432)||Ut(this.display,268435456)||Ut(this.display,536870912)||Ut(this.display,67108864)||Ut(this.display,134217728)},t}(),Y5=function(){function t(e,A){this.content=ue(e,M5,A.content),this.quotes=ue(e,V5,A.quotes)}return t}(),Sf=function(){function t(e,A){this.counterIncrement=ue(e,P5,A.counterIncrement),this.counterReset=ue(e,O5,A.counterReset)}return t}(),ue=function(t,e,A){var r=new Yd,a=A!==null&&typeof A<"u"?A.toString():e.initialValue;r.write(a);var i=new zd(r.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,Ze(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return zo.parse(t,i.parseComponentValue());case"color":return $n.parse(t,i.parseComponentValue());case"image":return tu.parse(t,i.parseComponentValue());case"length":var l=i.parseComponentValue();return Aa(l)?l:Mt;case"length-percentage":var u=i.parseComponentValue();return Ft(u)?u:Mt;case"time":return dh.parse(t,i.parseComponentValue())}break}},z5="data-html2canvas-debug",$5=function(t){var e=t.getAttribute(z5);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Rc=function(t,e){var A=$5(t);return A===1||e===A},tn=function(){function t(e,A){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Rc(A,3))debugger;this.styles=new W5(e,window.getComputedStyle(A,null)),Gc(A)&&(this.styles.animationDuration.some(function(r){return r>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=Wo(this.context,A),Rc(A,4)&&(this.flags|=16)}return t}(),X5="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Df="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Bo=0;Bo<Df.length;Bo++)As[Df.charCodeAt(Bo)]=Bo;var J5=function(t){var e=t.length*.75,A=t.length,r,a=0,i,o,l,u;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),p=Array.isArray(d)?d:new Uint8Array(d);for(r=0;r<A;r+=4)i=As[t.charCodeAt(r)],o=As[t.charCodeAt(r+1)],l=As[t.charCodeAt(r+2)],u=As[t.charCodeAt(r+3)],p[a++]=i<<2|o>>4,p[a++]=(o&15)<<4|l>>2,p[a++]=(l&3)<<6|u&63;return d},Z5=function(t){for(var e=t.length,A=[],r=0;r<e;r+=2)A.push(t[r+1]<<8|t[r]);return A},Ay=function(t){for(var e=t.length,A=[],r=0;r<e;r+=4)A.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return A},wa=5,ru=11,Jl=2,ey=ru-wa,hh=65536>>wa,ty=1<<wa,Zl=ty-1,ry=1024>>wa,ny=hh+ry,ay=ny,iy=32,sy=ay+iy,oy=65536>>ru,ly=1<<ey,cy=ly-1,If=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},uy=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},fy=function(t,e){var A=J5(t),r=Array.isArray(A)?Ay(A):new Uint32Array(A),a=Array.isArray(A)?Z5(A):new Uint16Array(A),i=24,o=If(a,i/2,r[4]/2),l=r[5]===2?If(a,(i+r[4])/2):uy(r,Math.ceil((i+r[4])/4));return new dy(r[0],r[1],r[2],r[3],o,l)},dy=function(){function t(e,A,r,a,i,o){this.initialValue=e,this.errorValue=A,this.highStart=r,this.highValueIndex=a,this.index=i,this.data=o}return t.prototype.get=function(e){var A;if(e>=0){if(e<55296||e>56319&&e<=65535)return A=this.index[e>>wa],A=(A<<Jl)+(e&Zl),this.data[A];if(e<=65535)return A=this.index[hh+(e-55296>>wa)],A=(A<<Jl)+(e&Zl),this.data[A];if(e<this.highStart)return A=sy-oy+(e>>ru),A=this.index[A],A+=e>>wa&cy,A=this.index[A],A=(A<<Jl)+(e&Zl),this.data[A];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Nf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hy=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var mo=0;mo<Nf.length;mo++)hy[Nf.charCodeAt(mo)]=mo;var gy=1,Ac=2,ec=3,Tf=4,Hf=5,py=7,_f=8,tc=9,rc=10,Mf=11,Pf=12,Of=13,Rf=14,nc=15,By=function(t){for(var e=[],A=0,r=t.length;A<r;){var a=t.charCodeAt(A++);if(a>=55296&&a<=56319&&A<r){var i=t.charCodeAt(A++);(i&64512)===56320?e.push(((a&1023)<<10)+(i&1023)+65536):(e.push(a),A--)}else e.push(a)}return e},my=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";for(var r=[],a=-1,i="";++a<A;){var o=t[a];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(a+1===A||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},wy=fy(X5),Qr="×",ac="÷",vy=function(t){return wy.get(t)},yy=function(t,e,A){var r=A-2,a=e[r],i=e[A-1],o=e[A];if(i===Ac&&o===ec)return Qr;if(i===Ac||i===ec||i===Tf||o===Ac||o===ec||o===Tf)return ac;if(i===_f&&[_f,tc,Mf,Pf].indexOf(o)!==-1||(i===Mf||i===tc)&&(o===tc||o===rc)||(i===Pf||i===rc)&&o===rc||o===Of||o===Hf||o===py||i===gy)return Qr;if(i===Of&&o===Rf){for(;a===Hf;)a=e[--r];if(a===Rf)return Qr}if(i===nc&&o===nc){for(var l=0;a===nc;)l++,a=e[--r];if(l%2===0)return Qr}return ac},Cy=function(t){var e=By(t),A=e.length,r=0,a=0,i=e.map(vy);return{next:function(){if(r>=A)return{done:!0,value:null};for(var o=Qr;r<A&&(o=yy(e,i,++r))===Qr;);if(o!==Qr||r===A){var l=my.apply(null,e.slice(a,r));return a=r,{value:l,done:!1}}return{done:!0,value:null}}}},by=function(t){for(var e=Cy(t),A=[],r;!(r=e.next()).done;)r.value&&A.push(r.value.slice());return A},Fy=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),A.selectNode(r);var a=A.getBoundingClientRect(),i=Math.round(a.height);if(t.body.removeChild(r),i===e)return!0}}return!1},Qy=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var A=t.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,a=Yo(r.data).map(function(u){return Bt(u)}),i=0,o={},l=a.every(function(u,d){A.setStart(r,i),A.setEnd(r,i+u.length);var p=A.getBoundingClientRect();i+=u.length;var B=p.x>o.x||p.y>o.y;return o=p,d===0?!0:B});return t.body.removeChild(e),l},Ey=function(){return typeof new Image().crossOrigin<"u"},Uy=function(){return typeof new XMLHttpRequest().responseType=="string"},Ly=function(t){var e=new Image,A=t.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),A.toDataURL()}catch{return!1}return!0},Vf=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},ky=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var a=new Image,i=e.toDataURL();a.src=i;var o=Vc(A,A,0,0,a);return r.fillStyle="red",r.fillRect(0,0,A,A),Kf(o).then(function(l){r.drawImage(l,0,0);var u=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var d=t.createElement("div");return d.style.backgroundImage="url("+i+")",d.style.height=A+"px",Vf(u)?Kf(Vc(A,A,0,0,d)):Promise.reject(!1)}).then(function(l){return r.drawImage(l,0,0),Vf(r.getImageData(0,0,A,A).data)}).catch(function(){return!1})},Vc=function(t,e,A,r,a){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),l=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",A.toString()),l.setAttributeNS(null,"y",r.toString()),l.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(l),l.appendChild(a),o},Kf=function(t){return new Promise(function(e,A){var r=new Image;r.onload=function(){return e(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},_t={get SUPPORT_RANGE_BOUNDS(){var t=Fy(document);return Object.defineProperty(_t,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=_t.SUPPORT_RANGE_BOUNDS&&Qy(document);return Object.defineProperty(_t,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Ly(document);return Object.defineProperty(_t,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?ky(document):Promise.resolve(!1);return Object.defineProperty(_t,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Ey();return Object.defineProperty(_t,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Uy();return Object.defineProperty(_t,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_t,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(_t,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},is=function(){function t(e,A){this.text=e,this.bounds=A}return t}(),xy=function(t,e,A,r){var a=Iy(e,A),i=[],o=0;return a.forEach(function(l){if(A.textDecorationLine.length||l.trim().length>0)if(_t.SUPPORT_RANGE_BOUNDS){var u=Gf(r,o,l.length).getClientRects();if(u.length>1){var d=nu(l),p=0;d.forEach(function(w){i.push(new is(w,yn.fromDOMRectList(t,Gf(r,p+o,w.length).getClientRects()))),p+=w.length})}else i.push(new is(l,yn.fromDOMRectList(t,u)))}else{var B=r.splitText(l.length);i.push(new is(l,Sy(t,r))),r=B}else _t.SUPPORT_RANGE_BOUNDS||(r=r.splitText(l.length));o+=l.length}),i},Sy=function(t,e){var A=e.ownerDocument;if(A){var r=A.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(r,e);var i=Wo(t,r);return r.firstChild&&a.replaceChild(r.firstChild,r),i}}return yn.EMPTY},Gf=function(t,e,A){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var a=r.createRange();return a.setStart(t,e),a.setEnd(t,e+A),a},nu=function(t){if(_t.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(A){return A.segment})}return by(t)},Dy=function(t,e){if(_t.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(t)).map(function(r){return r.segment})}return Ty(t,e)},Iy=function(t,e){return e.letterSpacing!==0?nu(t):Dy(t,e)},Ny=[32,160,4961,65792,65793,4153,4241],Ty=function(t,e){for(var A=ow(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],a,i=function(){if(a.value){var o=a.value.slice(),l=Yo(o),u="";l.forEach(function(d){Ny.indexOf(d)===-1?u+=Bt(d):(u.length&&r.push(u),r.push(Bt(d)),u="")}),u.length&&r.push(u)}};!(a=A.next()).done;)i();return r},Hy=function(){function t(e,A,r){this.text=_y(A.data,r.textTransform),this.textBounds=xy(e,this.text,r,A)}return t}(),_y=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(My,Py);case 2:return t.toUpperCase();default:return t}},My=/(^|\s|:|-|\(|\))([a-z])/g,Py=function(t,e,A){return t.length>0?e+A.toUpperCase():t},gh=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a.src=r.currentSrc||r.src,a.intrinsicWidth=r.naturalWidth,a.intrinsicHeight=r.naturalHeight,a.context.cache.addImage(a.src),a}return e}(tn),ph=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a.canvas=r,a.intrinsicWidth=r.width,a.intrinsicHeight=r.height,a}return e}(tn),Bh=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this,i=new XMLSerializer,o=Wo(A,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),a.intrinsicWidth=r.width.baseVal.value,a.intrinsicHeight=r.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(tn),mh=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a.value=r.value,a}return e}(tn),Kc=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a.start=r.start,a.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,a}return e}(tn),Oy=[{type:15,flags:0,unit:"px",number:3}],Ry=[{type:16,flags:0,number:50}],Vy=function(t){return t.width>t.height?new yn(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new yn(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},Ky=function(t){var e=t.type===Gy?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},_o="checkbox",Mo="radio",Gy="password",jf=707406591,au=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;switch(a.type=r.type.toLowerCase(),a.checked=r.checked,a.value=Ky(r),(a.type===_o||a.type===Mo)&&(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=Vy(a.bounds)),a.type){case _o:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=Oy;break;case Mo:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=Ry;break}return a}return e}(tn),wh=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this,i=r.options[r.selectedIndex||0];return a.value=i&&i.text||"",a}return e}(tn),vh=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a.value=r.value,a}return e}(tn),yh=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;a.src=r.src,a.width=parseInt(r.width,10)||0,a.height=parseInt(r.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){a.tree=bh(A,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?ns(A,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):vn.TRANSPARENT,o=r.contentWindow.document.body?ns(A,getComputedStyle(r.contentWindow.document.body).backgroundColor):vn.TRANSPARENT;a.backgroundColor=Xn(i)?Xn(o)?a.styles.backgroundColor:o:i}}catch{}return a}return e}(tn),jy=["OL","UL","MENU"],xo=function(t,e,A,r){for(var a=e.firstChild,i=void 0;a;a=i)if(i=a.nextSibling,Fh(a)&&a.data.trim().length>0)A.textNodes.push(new Hy(t,a,A.styles));else if(ai(a))if(Lh(a)&&a.assignedNodes)a.assignedNodes().forEach(function(l){return xo(t,l,A,r)});else{var o=Ch(t,a);o.styles.isVisible()&&(qy(a,o,r)?o.flags|=4:Wy(o.styles)&&(o.flags|=2),jy.indexOf(a.tagName)!==-1&&(o.flags|=8),A.elements.push(o),a.slot,a.shadowRoot?xo(t,a.shadowRoot,o,r):!Po(a)&&!Qh(a)&&!Oo(a)&&xo(t,a,o,r))}},Ch=function(t,e){return jc(e)?new gh(t,e):Eh(e)?new ph(t,e):Qh(e)?new Bh(t,e):Yy(e)?new mh(t,e):zy(e)?new Kc(t,e):$y(e)?new au(t,e):Oo(e)?new wh(t,e):Po(e)?new vh(t,e):Uh(e)?new yh(t,e):new tn(t,e)},bh=function(t,e){var A=Ch(t,e);return A.flags|=4,xo(t,e,A,A),A},qy=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||iu(t)&&A.styles.isTransparent()},Wy=function(t){return t.isPositioned()||t.isFloating()},Fh=function(t){return t.nodeType===Node.TEXT_NODE},ai=function(t){return t.nodeType===Node.ELEMENT_NODE},Gc=function(t){return ai(t)&&typeof t.style<"u"&&!So(t)},So=function(t){return typeof t.className=="object"},Yy=function(t){return t.tagName==="LI"},zy=function(t){return t.tagName==="OL"},$y=function(t){return t.tagName==="INPUT"},Xy=function(t){return t.tagName==="HTML"},Qh=function(t){return t.tagName==="svg"},iu=function(t){return t.tagName==="BODY"},Eh=function(t){return t.tagName==="CANVAS"},qf=function(t){return t.tagName==="VIDEO"},jc=function(t){return t.tagName==="IMG"},Uh=function(t){return t.tagName==="IFRAME"},Wf=function(t){return t.tagName==="STYLE"},Jy=function(t){return t.tagName==="SCRIPT"},Po=function(t){return t.tagName==="TEXTAREA"},Oo=function(t){return t.tagName==="SELECT"},Lh=function(t){return t.tagName==="SLOT"},Yf=function(t){return t.tagName.indexOf("-")>0},Zy=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var A=this.counters[e];return A&&A.length?A[A.length-1]:1},t.prototype.getCounterValues=function(e){var A=this.counters[e];return A||[]},t.prototype.pop=function(e){var A=this;e.forEach(function(r){return A.counters[r].pop()})},t.prototype.parse=function(e){var A=this,r=e.counterIncrement,a=e.counterReset,i=!0;r!==null&&r.forEach(function(l){var u=A.counters[l.counter];u&&l.increment!==0&&(i=!1,u.length||u.push(1),u[Math.max(0,u.length-1)]+=l.increment)});var o=[];return i&&a.forEach(function(l){var u=A.counters[l.counter];o.push(l.counter),u||(u=A.counters[l.counter]=[]),u.push(l.reset)}),o},t}(),zf={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},$f={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},AC={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},eC={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$a=function(t,e,A,r,a,i){return t<e||t>A?us(t,a,i.length>0):r.integers.reduce(function(o,l,u){for(;t>=l;)t-=l,o+=r.values[u];return o},"")+i},kh=function(t,e,A,r){var a="";do A||t--,a=r(t)+a,t/=e;while(t*e>=e);return a},pt=function(t,e,A,r,a){var i=A-e+1;return(t<0?"-":"")+(kh(Math.abs(t),i,r,function(o){return Bt(Math.floor(o%i)+e)})+a)},ua=function(t,e,A){A===void 0&&(A=". ");var r=e.length;return kh(Math.abs(t),r,!1,function(a){return e[Math.floor(a%r)]})+A},ti=1,Kn=2,Gn=4,es=8,wn=function(t,e,A,r,a,i){if(t<-9999||t>9999)return us(t,4,a.length>0);var o=Math.abs(t),l=a;if(o===0)return e[0]+l;for(var u=0;o>0&&u<=4;u++){var d=o%10;d===0&&Ut(i,ti)&&l!==""?l=e[d]+l:d>1||d===1&&u===0||d===1&&u===1&&Ut(i,Kn)||d===1&&u===1&&Ut(i,Gn)&&t>100||d===1&&u>1&&Ut(i,es)?l=e[d]+(u>0?A[u-1]:"")+l:d===1&&u>0&&(l=A[u-1]+l),o=Math.floor(o/10)}return(t<0?r:"")+l},Xf="十百千萬",Jf="拾佰仟萬",Zf="マイナス",ic="마이너스",us=function(t,e,A){var r=A?". ":"",a=A?"、":"",i=A?", ":"",o=A?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var l=pt(t,48,57,!0,r);return l.length<4?"0"+l:l;case 4:return ua(t,"〇一二三四五六七八九",a);case 6:return $a(t,1,3999,zf,3,r).toLowerCase();case 7:return $a(t,1,3999,zf,3,r);case 8:return pt(t,945,969,!1,r);case 9:return pt(t,97,122,!1,r);case 10:return pt(t,65,90,!1,r);case 11:return pt(t,1632,1641,!0,r);case 12:case 49:return $a(t,1,9999,$f,3,r);case 35:return $a(t,1,9999,$f,3,r).toLowerCase();case 13:return pt(t,2534,2543,!0,r);case 14:case 30:return pt(t,6112,6121,!0,r);case 15:return ua(t,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return ua(t,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return wn(t,"零一二三四五六七八九",Xf,"負",a,Kn|Gn|es);case 47:return wn(t,"零壹貳參肆伍陸柒捌玖",Jf,"負",a,ti|Kn|Gn|es);case 42:return wn(t,"零一二三四五六七八九",Xf,"负",a,Kn|Gn|es);case 41:return wn(t,"零壹贰叁肆伍陆柒捌玖",Jf,"负",a,ti|Kn|Gn|es);case 26:return wn(t,"〇一二三四五六七八九","十百千万",Zf,a,0);case 25:return wn(t,"零壱弐参四伍六七八九","拾百千万",Zf,a,ti|Kn|Gn);case 31:return wn(t,"영일이삼사오육칠팔구","십백천만",ic,i,ti|Kn|Gn);case 33:return wn(t,"零一二三四五六七八九","十百千萬",ic,i,0);case 32:return wn(t,"零壹貳參四五六七八九","拾百千",ic,i,ti|Kn|Gn);case 18:return pt(t,2406,2415,!0,r);case 20:return $a(t,1,19999,eC,3,r);case 21:return pt(t,2790,2799,!0,r);case 22:return pt(t,2662,2671,!0,r);case 22:return $a(t,1,10999,AC,3,r);case 23:return ua(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ua(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return pt(t,3302,3311,!0,r);case 28:return ua(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return ua(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return pt(t,3792,3801,!0,r);case 37:return pt(t,6160,6169,!0,r);case 38:return pt(t,4160,4169,!0,r);case 39:return pt(t,2918,2927,!0,r);case 40:return pt(t,1776,1785,!0,r);case 43:return pt(t,3046,3055,!0,r);case 44:return pt(t,3174,3183,!0,r);case 45:return pt(t,3664,3673,!0,r);case 46:return pt(t,3872,3881,!0,r);case 3:default:return pt(t,48,57,!0,r)}},xh="data-html2canvas-ignore",Ad=function(){function t(e,A,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=A,this.counters=new Zy,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,A){var r=this,a=tC(e,A);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,l=a.contentWindow,u=l.document,d=aC(a).then(function(){return er(r,void 0,void 0,function(){var p,B;return Wt(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(lC),l&&(l.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.scrollY!==A.top||l.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-A.left,l.scrollY-A.top,0,0))),p=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,nC(u)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof p=="function"?[2,Promise.resolve().then(function(){return p(u,B)}).then(function(){return a})]:[2,a]}})})});return u.open(),u.write(sC(document.doctype)+"<html></html>"),oC(this.referenceElement.ownerDocument,i,o),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),d},t.prototype.createElementClone=function(e){if(Rc(e,2))debugger;if(Eh(e))return this.createCanvasClone(e);if(qf(e))return this.createVideoClone(e);if(Wf(e))return this.createStyleClone(e);var A=e.cloneNode(!1);return jc(A)&&(jc(e)&&e.currentSrc&&e.currentSrc!==e.src&&(A.src=e.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),Yf(A)?this.createCustomElementClone(A):A},t.prototype.createCustomElementClone=function(e){var A=document.createElement("html2canvascustomelement");return sc(e.style,A),A},t.prototype.createStyleClone=function(e){try{var A=e.sheet;if(A&&A.cssRules){var r=[].slice.call(A.cssRules,0).reduce(function(i,o){return o&&typeof o.cssText=="string"?i+o.cssText:i},""),a=e.cloneNode(!1);return a.textContent=r,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var i=e.getContext("2d"),o=a.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var l=(A=e.getContext("webgl2"))!==null&&A!==void 0?A:e.getContext("webgl");if(l){var u=l.getContextAttributes();(u==null?void 0:u.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},t.prototype.createVideoClone=function(e){var A=e.ownerDocument.createElement("canvas");A.width=e.offsetWidth,A.height=e.offsetHeight;var r=A.getContext("2d");try{return r&&(r.drawImage(e,0,0,A.width,A.height),this.options.allowTaint||r.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},t.prototype.appendChildNode=function(e,A,r){(!ai(A)||!Jy(A)&&!A.hasAttribute(xh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!ai(A)||!Wf(A))&&e.appendChild(this.cloneNode(A,r))},t.prototype.cloneChildNodes=function(e,A,r){for(var a=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(ai(i)&&Lh(i)&&typeof i.assignedNodes=="function"){var o=i.assignedNodes();o.length&&o.forEach(function(l){return a.appendChildNode(A,l,r)})}else this.appendChildNode(A,i,r)},t.prototype.cloneNode=function(e,A){if(Fh(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&ai(e)&&(Gc(e)||So(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var i=r.getComputedStyle(e),o=r.getComputedStyle(e,":before"),l=r.getComputedStyle(e,":after");this.referenceElement===e&&Gc(a)&&(this.clonedReferenceElement=a),iu(a)&&fC(a);var u=this.counters.parse(new Sf(this.context,i)),d=this.resolvePseudoContent(e,a,o,ss.BEFORE);Yf(e)&&(A=!0),qf(e)||this.cloneChildNodes(e,a,A),d&&a.insertBefore(d,a.firstChild);var p=this.resolvePseudoContent(e,a,l,ss.AFTER);return p&&a.appendChild(p),this.counters.pop(u),(i&&(this.options.copyStyles||So(e))&&!Uh(e)||A)&&sc(i,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(Po(e)||Oo(e))&&(Po(a)||Oo(a))&&(a.value=e.value),a}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,A,r,a){var i=this;if(r){var o=r.content,l=A.ownerDocument;if(!(!l||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Sf(this.context,r));var u=new Y5(this.context,r),d=l.createElement("html2canvaspseudoelement");sc(r,d),u.content.forEach(function(B){if(B.type===0)d.appendChild(l.createTextNode(B.value));else if(B.type===22){var w=l.createElement("img");w.src=B.value,w.style.opacity="1",d.appendChild(w)}else if(B.type===18){if(B.name==="attr"){var g=B.values.filter(Ze);g.length&&d.appendChild(l.createTextNode(e.getAttribute(g[0].value)||""))}else if(B.name==="counter"){var y=B.values.filter(ui),Q=y[0],_=y[1];if(Q&&Ze(Q)){var v=i.counters.getCounterValue(Q.value),U=_&&Ze(_)?Oc.parse(i.context,_.value):3;d.appendChild(l.createTextNode(us(v,U,!1)))}}else if(B.name==="counters"){var M=B.values.filter(ui),Q=M[0],J=M[1],_=M[2];if(Q&&Ze(Q)){var Z=i.counters.getCounterValues(Q.value),Y=_&&Ze(_)?Oc.parse(i.context,_.value):3,G=J&&J.type===0?J.value:"",P=Z.map(function(I){return us(I,Y,!1)}).join(G);d.appendChild(l.createTextNode(P))}}}else if(B.type===20)switch(B.value){case"open-quote":d.appendChild(l.createTextNode(xf(u.quotes,i.quoteDepth++,!0)));break;case"close-quote":d.appendChild(l.createTextNode(xf(u.quotes,--i.quoteDepth,!1)));break;default:d.appendChild(l.createTextNode(B.value))}}),d.className=qc+" "+Wc;var p=a===ss.BEFORE?" "+qc:" "+Wc;return So(A)?A.className.baseValue+=p:A.className+=p,d}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),ss;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(ss||(ss={}));var tC=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(xh,"true"),t.body.appendChild(A),A},rC=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},nC=function(t){return Promise.all([].slice.call(t.images,0).map(rC))},aC=function(t){return new Promise(function(e,A){var r=t.contentWindow;if(!r)return A("No window assigned for iframe");var a=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),e(t))},50)}})},iC=["all","d","content"],sc=function(t,e){for(var A=t.length-1;A>=0;A--){var r=t.item(A);iC.indexOf(r)===-1&&e.style.setProperty(r,t.getPropertyValue(r))}return e},sC=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},oC=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},lC=function(t){var e=t[0],A=t[1],r=t[2];e.scrollLeft=A,e.scrollTop=r},cC=":before",uC=":after",qc="___html2canvas___pseudoelement_before",Wc="___html2canvas___pseudoelement_after",ed=`{
300
+ content: "" !important;
301
+ display: none !important;
302
+ }`,fC=function(t){dC(t,"."+qc+cC+ed+`
303
+ .`+Wc+uC+ed)},dC=function(t,e){var A=t.ownerDocument;if(A){var r=A.createElement("style");r.textContent=e,t.appendChild(r)}},Sh=function(){function t(){}return t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),hC=function(){function t(e,A){this.context=e,this._options=A,this._cache={}}return t.prototype.addImage=function(e){var A=Promise.resolve();return this.has(e)||(lc(e)||mC(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),A},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return er(this,void 0,void 0,function(){var A,r,a,i,o=this;return Wt(this,function(l){switch(l.label){case 0:return A=Sh.isSameOrigin(e),r=!oc(e)&&this._options.useCORS===!0&&_t.SUPPORT_CORS_IMAGES&&!A,a=!oc(e)&&!A&&!lc(e)&&typeof this._options.proxy=="string"&&_t.SUPPORT_CORS_XHR&&!r,!A&&this._options.allowTaint===!1&&!oc(e)&&!lc(e)&&!a&&!r?[2]:(i=e,a?[4,this.proxy(i)]:[3,2]);case 1:i=l.sent(),l.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(u,d){var p=new Image;p.onload=function(){return u(p)},p.onerror=d,(wC(i)||r)&&(p.crossOrigin="anonymous"),p.src=i,p.complete===!0&&setTimeout(function(){return u(p)},500),o._options.imageTimeout>0&&setTimeout(function(){return d("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,l.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var A=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(i,o){var l=_t.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(l==="text")i(u.response);else{var B=new FileReader;B.addEventListener("load",function(){return i(B.result)},!1),B.addEventListener("error",function(w){return o(w)},!1),B.readAsDataURL(u.response)}else o("Failed to proxy resource "+a+" with status code "+u.status)},u.onerror=o;var d=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+d+"url="+encodeURIComponent(e)+"&responseType="+l),l!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=l),A._options.imageTimeout){var p=A._options.imageTimeout;u.timeout=p,u.ontimeout=function(){return o("Timed out ("+p+"ms) proxying "+a)}}u.send()})},t}(),gC=/^data:image\/svg\+xml/i,pC=/^data:image\/.*;base64,/i,BC=/^data:image\/.*/i,mC=function(t){return _t.SUPPORT_SVG_DRAWING||!vC(t)},oc=function(t){return BC.test(t)},wC=function(t){return pC.test(t)},lc=function(t){return t.substr(0,4)==="blob"},vC=function(t){return t.substr(-3).toLowerCase()==="svg"||gC.test(t)},oe=function(){function t(e,A){this.type=0,this.x=e,this.y=A}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),Xa=function(t,e,A){return new oe(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},wo=function(){function t(e,A,r,a){this.type=1,this.start=e,this.startControl=A,this.endControl=r,this.end=a}return t.prototype.subdivide=function(e,A){var r=Xa(this.start,this.startControl,e),a=Xa(this.startControl,this.endControl,e),i=Xa(this.endControl,this.end,e),o=Xa(r,a,e),l=Xa(a,i,e),u=Xa(o,l,e);return A?new t(this.start,r,o,u):new t(u,l,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Er=function(t){return t.type===1},yC=function(){function t(e){var A=e.styles,r=e.bounds,a=Zi(A.borderTopLeftRadius,r.width,r.height),i=a[0],o=a[1],l=Zi(A.borderTopRightRadius,r.width,r.height),u=l[0],d=l[1],p=Zi(A.borderBottomRightRadius,r.width,r.height),B=p[0],w=p[1],g=Zi(A.borderBottomLeftRadius,r.width,r.height),y=g[0],Q=g[1],_=[];_.push((i+u)/r.width),_.push((y+B)/r.width),_.push((o+Q)/r.height),_.push((d+w)/r.height);var v=Math.max.apply(Math,_);v>1&&(i/=v,o/=v,u/=v,d/=v,B/=v,w/=v,y/=v,Q/=v);var U=r.width-u,M=r.height-w,J=r.width-B,Z=r.height-Q,Y=A.borderTopWidth,G=A.borderRightWidth,P=A.borderBottomWidth,z=A.borderLeftWidth,fA=at(A.paddingTop,e.bounds.width),I=at(A.paddingRight,e.bounds.width),x=at(A.paddingBottom,e.bounds.width),R=at(A.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?st(r.left+z/3,r.top+Y/3,i-z/3,o-Y/3,Ye.TOP_LEFT):new oe(r.left+z/3,r.top+Y/3),this.topRightBorderDoubleOuterBox=i>0||o>0?st(r.left+U,r.top+Y/3,u-G/3,d-Y/3,Ye.TOP_RIGHT):new oe(r.left+r.width-G/3,r.top+Y/3),this.bottomRightBorderDoubleOuterBox=B>0||w>0?st(r.left+J,r.top+M,B-G/3,w-P/3,Ye.BOTTOM_RIGHT):new oe(r.left+r.width-G/3,r.top+r.height-P/3),this.bottomLeftBorderDoubleOuterBox=y>0||Q>0?st(r.left+z/3,r.top+Z,y-z/3,Q-P/3,Ye.BOTTOM_LEFT):new oe(r.left+z/3,r.top+r.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?st(r.left+z*2/3,r.top+Y*2/3,i-z*2/3,o-Y*2/3,Ye.TOP_LEFT):new oe(r.left+z*2/3,r.top+Y*2/3),this.topRightBorderDoubleInnerBox=i>0||o>0?st(r.left+U,r.top+Y*2/3,u-G*2/3,d-Y*2/3,Ye.TOP_RIGHT):new oe(r.left+r.width-G*2/3,r.top+Y*2/3),this.bottomRightBorderDoubleInnerBox=B>0||w>0?st(r.left+J,r.top+M,B-G*2/3,w-P*2/3,Ye.BOTTOM_RIGHT):new oe(r.left+r.width-G*2/3,r.top+r.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=y>0||Q>0?st(r.left+z*2/3,r.top+Z,y-z*2/3,Q-P*2/3,Ye.BOTTOM_LEFT):new oe(r.left+z*2/3,r.top+r.height-P*2/3),this.topLeftBorderStroke=i>0||o>0?st(r.left+z/2,r.top+Y/2,i-z/2,o-Y/2,Ye.TOP_LEFT):new oe(r.left+z/2,r.top+Y/2),this.topRightBorderStroke=i>0||o>0?st(r.left+U,r.top+Y/2,u-G/2,d-Y/2,Ye.TOP_RIGHT):new oe(r.left+r.width-G/2,r.top+Y/2),this.bottomRightBorderStroke=B>0||w>0?st(r.left+J,r.top+M,B-G/2,w-P/2,Ye.BOTTOM_RIGHT):new oe(r.left+r.width-G/2,r.top+r.height-P/2),this.bottomLeftBorderStroke=y>0||Q>0?st(r.left+z/2,r.top+Z,y-z/2,Q-P/2,Ye.BOTTOM_LEFT):new oe(r.left+z/2,r.top+r.height-P/2),this.topLeftBorderBox=i>0||o>0?st(r.left,r.top,i,o,Ye.TOP_LEFT):new oe(r.left,r.top),this.topRightBorderBox=u>0||d>0?st(r.left+U,r.top,u,d,Ye.TOP_RIGHT):new oe(r.left+r.width,r.top),this.bottomRightBorderBox=B>0||w>0?st(r.left+J,r.top+M,B,w,Ye.BOTTOM_RIGHT):new oe(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=y>0||Q>0?st(r.left,r.top+Z,y,Q,Ye.BOTTOM_LEFT):new oe(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||o>0?st(r.left+z,r.top+Y,Math.max(0,i-z),Math.max(0,o-Y),Ye.TOP_LEFT):new oe(r.left+z,r.top+Y),this.topRightPaddingBox=u>0||d>0?st(r.left+Math.min(U,r.width-G),r.top+Y,U>r.width+G?0:Math.max(0,u-G),Math.max(0,d-Y),Ye.TOP_RIGHT):new oe(r.left+r.width-G,r.top+Y),this.bottomRightPaddingBox=B>0||w>0?st(r.left+Math.min(J,r.width-z),r.top+Math.min(M,r.height-P),Math.max(0,B-G),Math.max(0,w-P),Ye.BOTTOM_RIGHT):new oe(r.left+r.width-G,r.top+r.height-P),this.bottomLeftPaddingBox=y>0||Q>0?st(r.left+z,r.top+Math.min(Z,r.height-P),Math.max(0,y-z),Math.max(0,Q-P),Ye.BOTTOM_LEFT):new oe(r.left+z,r.top+r.height-P),this.topLeftContentBox=i>0||o>0?st(r.left+z+R,r.top+Y+fA,Math.max(0,i-(z+R)),Math.max(0,o-(Y+fA)),Ye.TOP_LEFT):new oe(r.left+z+R,r.top+Y+fA),this.topRightContentBox=u>0||d>0?st(r.left+Math.min(U,r.width+z+R),r.top+Y+fA,U>r.width+z+R?0:u-z+R,d-(Y+fA),Ye.TOP_RIGHT):new oe(r.left+r.width-(G+I),r.top+Y+fA),this.bottomRightContentBox=B>0||w>0?st(r.left+Math.min(J,r.width-(z+R)),r.top+Math.min(M,r.height+Y+fA),Math.max(0,B-(G+I)),w-(P+x),Ye.BOTTOM_RIGHT):new oe(r.left+r.width-(G+I),r.top+r.height-(P+x)),this.bottomLeftContentBox=y>0||Q>0?st(r.left+z+R,r.top+Z,Math.max(0,y-(z+R)),Q-(P+x),Ye.BOTTOM_LEFT):new oe(r.left+z+R,r.top+r.height-(P+x))}return t}(),Ye;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ye||(Ye={}));var st=function(t,e,A,r,a){var i=4*((Math.sqrt(2)-1)/3),o=A*i,l=r*i,u=t+A,d=e+r;switch(a){case Ye.TOP_LEFT:return new wo(new oe(t,d),new oe(t,d-l),new oe(u-o,e),new oe(u,e));case Ye.TOP_RIGHT:return new wo(new oe(t,e),new oe(t+o,e),new oe(u,d-l),new oe(u,d));case Ye.BOTTOM_RIGHT:return new wo(new oe(u,e),new oe(u,e+l),new oe(t+o,d),new oe(t,d));case Ye.BOTTOM_LEFT:default:return new wo(new oe(u,d),new oe(u-o,d),new oe(t,e+l),new oe(t,e))}},Ro=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},CC=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Vo=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},bC=function(){function t(e,A,r){this.offsetX=e,this.offsetY=A,this.matrix=r,this.type=0,this.target=6}return t}(),vo=function(){function t(e,A){this.path=e,this.target=A,this.type=1}return t}(),FC=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),QC=function(t){return t.type===0},Dh=function(t){return t.type===1},EC=function(t){return t.type===2},td=function(t,e){return t.length===e.length?t.some(function(A,r){return A===e[r]}):!1},UC=function(t,e,A,r,a){return t.map(function(i,o){switch(o){case 0:return i.add(e,A);case 1:return i.add(e+r,A);case 2:return i.add(e+r,A+a);case 3:return i.add(e,A+a)}return i})},Ih=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),Nh=function(){function t(e,A){if(this.container=e,this.parent=A,this.effects=[],this.curves=new yC(this.container),this.container.styles.opacity<1&&this.effects.push(new FC(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new bC(r,a,i))}if(this.container.styles.overflowX!==0){var o=Ro(this.curves),l=Vo(this.curves);td(o,l)?this.effects.push(new vo(o,6)):(this.effects.push(new vo(o,2)),this.effects.push(new vo(l,4)))}}return t.prototype.getEffects=function(e){for(var A=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,a=this.effects.slice(0);r;){var i=r.effects.filter(function(u){return!Dh(u)});if(A||r.container.styles.position!==0||!r.parent){if(a.unshift.apply(a,i),A=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=Ro(r.curves),l=Vo(r.curves);td(o,l)||a.unshift(new vo(l,6))}}else a.unshift.apply(a,i);r=r.parent}return a.filter(function(u){return Ut(u.target,e)})},t}(),Yc=function(t,e,A,r){t.container.elements.forEach(function(a){var i=Ut(a.flags,4),o=Ut(a.flags,2),l=new Nh(a,t);Ut(a.styles.display,2048)&&r.push(l);var u=Ut(a.flags,8)?[]:r;if(i||o){var d=i||a.styles.isPositioned()?A:e,p=new Ih(l);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var B=a.styles.zIndex.order;if(B<0){var w=0;d.negativeZIndex.some(function(y,Q){return B>y.element.container.styles.zIndex.order?(w=Q,!1):w>0}),d.negativeZIndex.splice(w,0,p)}else if(B>0){var g=0;d.positiveZIndex.some(function(y,Q){return B>=y.element.container.styles.zIndex.order?(g=Q+1,!1):g>0}),d.positiveZIndex.splice(g,0,p)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(p)}else a.styles.isFloating()?d.nonPositionedFloats.push(p):d.nonPositionedInlineLevel.push(p);Yc(l,p,i?p:A,u)}else a.styles.isInlineLevel()?e.inlineLevel.push(l):e.nonInlineLevel.push(l),Yc(l,e,A,u);Ut(a.flags,8)&&Th(a,u)})},Th=function(t,e){for(var A=t instanceof Kc?t.start:1,r=t instanceof Kc?t.reversed:!1,a=0;a<e.length;a++){var i=e[a];i.container instanceof mh&&typeof i.container.value=="number"&&i.container.value!==0&&(A=i.container.value),i.listValue=us(A,i.container.styles.listStyleType,!0),A+=r?-1:1}},LC=function(t){var e=new Nh(t,null),A=new Ih(e),r=[];return Yc(e,A,A,r),Th(e.container,r),A},rd=function(t,e){switch(e){case 0:return Lr(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Lr(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Lr(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Lr(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},kC=function(t,e){switch(e){case 0:return Lr(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Lr(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Lr(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Lr(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},xC=function(t,e){switch(e){case 0:return Lr(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Lr(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Lr(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Lr(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},SC=function(t,e){switch(e){case 0:return yo(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return yo(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return yo(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return yo(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},yo=function(t,e){var A=[];return Er(t)?A.push(t.subdivide(.5,!1)):A.push(t),Er(e)?A.push(e.subdivide(.5,!0)):A.push(e),A},Lr=function(t,e,A,r){var a=[];return Er(t)?a.push(t.subdivide(.5,!1)):a.push(t),Er(A)?a.push(A.subdivide(.5,!0)):a.push(A),Er(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Er(e)?a.push(e.subdivide(.5,!1).reverse()):a.push(e),a},Hh=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},Ko=function(t){var e=t.styles,A=t.bounds,r=at(e.paddingLeft,A.width),a=at(e.paddingRight,A.width),i=at(e.paddingTop,A.width),o=at(e.paddingBottom,A.width);return A.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+a),-(e.borderTopWidth+e.borderBottomWidth+i+o))},DC=function(t,e){return t===0?e.bounds:t===2?Ko(e):Hh(e)},IC=function(t,e){return t===0?e.bounds:t===2?Ko(e):Hh(e)},cc=function(t,e,A){var r=DC(ri(t.styles.backgroundOrigin,e),t),a=IC(ri(t.styles.backgroundClip,e),t),i=NC(ri(t.styles.backgroundSize,e),A,r),o=i[0],l=i[1],u=Zi(ri(t.styles.backgroundPosition,e),r.width-o,r.height-l),d=TC(ri(t.styles.backgroundRepeat,e),u,i,r,a),p=Math.round(r.left+u[0]),B=Math.round(r.top+u[1]);return[d,p,B,o,l]},Ja=function(t){return Ze(t)&&t.value===ci.AUTO},Co=function(t){return typeof t=="number"},NC=function(t,e,A){var r=e[0],a=e[1],i=e[2],o=t[0],l=t[1];if(!o)return[0,0];if(Ft(o)&&l&&Ft(l))return[at(o,A.width),at(l,A.height)];var u=Co(i);if(Ze(o)&&(o.value===ci.CONTAIN||o.value===ci.COVER)){if(Co(i)){var d=A.width/A.height;return d<i!=(o.value===ci.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var p=Co(r),B=Co(a),w=p||B;if(Ja(o)&&(!l||Ja(l))){if(p&&B)return[r,a];if(!u&&!w)return[A.width,A.height];if(w&&u){var g=p?r:a*i,y=B?a:r/i;return[g,y]}var Q=p?r:A.width,_=B?a:A.height;return[Q,_]}if(u){var v=0,U=0;return Ft(o)?v=at(o,A.width):Ft(l)&&(U=at(l,A.height)),Ja(o)?v=U*i:(!l||Ja(l))&&(U=v/i),[v,U]}var M=null,J=null;if(Ft(o)?M=at(o,A.width):l&&Ft(l)&&(J=at(l,A.height)),M!==null&&(!l||Ja(l))&&(J=p&&B?M/r*a:A.height),J!==null&&Ja(o)&&(M=p&&B?J/a*r:A.width),M!==null&&J!==null)return[M,J];throw new Error("Unable to calculate background-size for element")},ri=function(t,e){var A=t[e];return typeof A>"u"?t[0]:A},TC=function(t,e,A,r,a){var i=e[0],o=e[1],l=A[0],u=A[1];switch(t){case 2:return[new oe(Math.round(r.left),Math.round(r.top+o)),new oe(Math.round(r.left+r.width),Math.round(r.top+o)),new oe(Math.round(r.left+r.width),Math.round(u+r.top+o)),new oe(Math.round(r.left),Math.round(u+r.top+o))];case 3:return[new oe(Math.round(r.left+i),Math.round(r.top)),new oe(Math.round(r.left+i+l),Math.round(r.top)),new oe(Math.round(r.left+i+l),Math.round(r.height+r.top)),new oe(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new oe(Math.round(r.left+i),Math.round(r.top+o)),new oe(Math.round(r.left+i+l),Math.round(r.top+o)),new oe(Math.round(r.left+i+l),Math.round(r.top+o+u)),new oe(Math.round(r.left+i),Math.round(r.top+o+u))];default:return[new oe(Math.round(a.left),Math.round(a.top)),new oe(Math.round(a.left+a.width),Math.round(a.top)),new oe(Math.round(a.left+a.width),Math.round(a.height+a.top)),new oe(Math.round(a.left),Math.round(a.height+a.top))]}},HC="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",nd="Hidden Text",_C=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,A){var r=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=A,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),a.src=HC,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(nd)),r.appendChild(i),r.appendChild(a);var l=a.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(nd)),r.style.lineHeight="normal",a.style.verticalAlign="super";var u=a.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:l,middle:u}},t.prototype.getMetrics=function(e,A){var r=e+" "+A;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,A)),this._data[r]},t}(),_h=function(){function t(e,A){this.context=e,this.options=A}return t}(),MC=1e4,PC=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a._activeEffects=[],a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),r.canvas||(a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px"),a.fontMetrics=new _C(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),a}return e.prototype.applyEffects=function(A){for(var r=this;this._activeEffects.length;)this.popEffect();A.forEach(function(a){return r.applyEffect(a)})},e.prototype.applyEffect=function(A){this.ctx.save(),EC(A)&&(this.ctx.globalAlpha=A.opacity),QC(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Dh(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return er(this,void 0,void 0,function(){var r;return Wt(this,function(a){switch(a.label){case 0:return r=A.element.container.styles,r.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(A){return er(this,void 0,void 0,function(){return Wt(this,function(r){switch(r.label){case 0:if(Ut(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(A)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(A,r,a){var i=this;if(r===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+a);else{var o=nu(A.text);o.reduce(function(l,u){return i.ctx.fillText(u,l,A.bounds.top+a),l+i.ctx.measureText(u).width},A.bounds.left)}},e.prototype.createFontStyle=function(A){var r=A.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),a=GC(A.fontFamily).join(", "),i=ds(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,r,A.fontWeight,i,a].join(" "),a,i]},e.prototype.renderTextNode=function(A,r){return er(this,void 0,void 0,function(){var a,i,o,l,u,d,p,B,w=this;return Wt(this,function(g){return a=this.createFontStyle(r),i=a[0],o=a[1],l=a[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(o,l),d=u.baseline,p=u.middle,B=r.paintOrder,A.textBounds.forEach(function(y){B.forEach(function(Q){switch(Q){case 0:w.ctx.fillStyle=It(r.color),w.renderTextWithLetterSpacing(y,r.letterSpacing,d);var _=r.textShadow;_.length&&y.text.trim().length&&(_.slice(0).reverse().forEach(function(v){w.ctx.shadowColor=It(v.color),w.ctx.shadowOffsetX=v.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=v.offsetY.number*w.options.scale,w.ctx.shadowBlur=v.blur.number,w.renderTextWithLetterSpacing(y,r.letterSpacing,d)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=It(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:w.ctx.fillRect(y.bounds.left,Math.round(y.bounds.top+d),y.bounds.width,1);break;case 2:w.ctx.fillRect(y.bounds.left,Math.round(y.bounds.top),y.bounds.width,1);break;case 3:w.ctx.fillRect(y.bounds.left,Math.ceil(y.bounds.top+p),y.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&y.text.trim().length&&(w.ctx.strokeStyle=It(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(y.text,y.bounds.left,y.bounds.top+d)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(A,r,a){if(a&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=Ko(A),o=Vo(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return er(this,void 0,void 0,function(){var r,a,i,o,l,u,U,U,d,p,B,w,J,g,y,Z,Q,_,v,U,M,J,Z;return Wt(this,function(Y){switch(Y.label){case 0:this.applyEffects(A.getEffects(4)),r=A.container,a=A.curves,i=r.styles,o=0,l=r.textNodes,Y.label=1;case 1:return o<l.length?(u=l[o],[4,this.renderTextNode(u,i)]):[3,4];case 2:Y.sent(),Y.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof gh))return[3,8];Y.label=5;case 5:return Y.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return U=Y.sent(),this.renderReplacedElement(r,a,U),[3,8];case 7:return Y.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof ph&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof Bh))return[3,12];Y.label=9;case 9:return Y.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return U=Y.sent(),this.renderReplacedElement(r,a,U),[3,12];case 11:return Y.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof yh&&r.tree?(d=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,d.render(r.tree)]):[3,14];case 13:p=Y.sent(),r.width&&r.height&&this.ctx.drawImage(p,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),Y.label=14;case 14:if(r instanceof au&&(B=Math.min(r.bounds.width,r.bounds.height),r.type===_o?r.checked&&(this.ctx.save(),this.path([new oe(r.bounds.left+B*.39363,r.bounds.top+B*.79),new oe(r.bounds.left+B*.16,r.bounds.top+B*.5549),new oe(r.bounds.left+B*.27347,r.bounds.top+B*.44071),new oe(r.bounds.left+B*.39694,r.bounds.top+B*.5649),new oe(r.bounds.left+B*.72983,r.bounds.top+B*.23),new oe(r.bounds.left+B*.84,r.bounds.top+B*.34085),new oe(r.bounds.left+B*.39363,r.bounds.top+B*.79)]),this.ctx.fillStyle=It(jf),this.ctx.fill(),this.ctx.restore()):r.type===Mo&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+B/2,r.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=It(jf),this.ctx.fill(),this.ctx.restore())),OC(r)&&r.value.length){switch(w=this.createFontStyle(i),J=w[0],g=w[1],y=this.fontMetrics.getMetrics(J,g).baseline,this.ctx.font=J,this.ctx.fillStyle=It(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=VC(r.styles.textAlign),Z=Ko(r),Q=0,r.styles.textAlign){case 1:Q+=Z.width/2;break;case 2:Q+=Z.width;break}_=Z.add(Q,0,0,-Z.height/2+1),this.ctx.save(),this.path([new oe(Z.left,Z.top),new oe(Z.left+Z.width,Z.top),new oe(Z.left+Z.width,Z.top+Z.height),new oe(Z.left,Z.top+Z.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new is(r.value,_),i.letterSpacing,y),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ut(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];U=void 0,M=v.url,Y.label=15;case 15:return Y.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return U=Y.sent(),this.ctx.drawImage(U,r.bounds.left-(U.width+10),r.bounds.top),[3,18];case 17:return Y.sent(),this.context.logger.error("Error loading list-style-image "+M),[3,18];case 18:return[3,20];case 19:A.listValue&&r.styles.listStyleType!==-1&&(J=this.createFontStyle(i)[0],this.ctx.font=J,this.ctx.fillStyle=It(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Z=new yn(r.bounds.left,r.bounds.top+at(r.styles.paddingTop,r.bounds.width),r.bounds.width,Lf(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new is(A.listValue,Z),i.letterSpacing,Lf(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Y.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(A){return er(this,void 0,void 0,function(){var r,a,v,i,o,v,l,u,v,d,p,v,B,w,v,g,y,v,Q,_,v;return Wt(this,function(U){switch(U.label){case 0:if(Ut(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:U.sent(),r=0,a=A.negativeZIndex,U.label=2;case 2:return r<a.length?(v=a[r],[4,this.renderStack(v)]):[3,5];case 3:U.sent(),U.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:U.sent(),i=0,o=A.nonInlineLevel,U.label=7;case 7:return i<o.length?(v=o[i],[4,this.renderNode(v)]):[3,10];case 8:U.sent(),U.label=9;case 9:return i++,[3,7];case 10:l=0,u=A.nonPositionedFloats,U.label=11;case 11:return l<u.length?(v=u[l],[4,this.renderStack(v)]):[3,14];case 12:U.sent(),U.label=13;case 13:return l++,[3,11];case 14:d=0,p=A.nonPositionedInlineLevel,U.label=15;case 15:return d<p.length?(v=p[d],[4,this.renderStack(v)]):[3,18];case 16:U.sent(),U.label=17;case 17:return d++,[3,15];case 18:B=0,w=A.inlineLevel,U.label=19;case 19:return B<w.length?(v=w[B],[4,this.renderNode(v)]):[3,22];case 20:U.sent(),U.label=21;case 21:return B++,[3,19];case 22:g=0,y=A.zeroOrAutoZIndexOrTransformedOrOpacity,U.label=23;case 23:return g<y.length?(v=y[g],[4,this.renderStack(v)]):[3,26];case 24:U.sent(),U.label=25;case 25:return g++,[3,23];case 26:Q=0,_=A.positiveZIndex,U.label=27;case 27:return Q<_.length?(v=_[Q],[4,this.renderStack(v)]):[3,30];case 28:U.sent(),U.label=29;case 29:return Q++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var r=this;A.forEach(function(a,i){var o=Er(a)?a.start:a;i===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),Er(a)&&r.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},e.prototype.renderRepeat=function(A,r,a,i){this.path(A),this.ctx.fillStyle=r,this.ctx.translate(a,i),this.ctx.fill(),this.ctx.translate(-a,-i)},e.prototype.resizeImage=function(A,r,a){var i;if(A.width===r&&A.height===a)return A;var o=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,l=o.createElement("canvas");l.width=Math.max(1,r),l.height=Math.max(1,a);var u=l.getContext("2d");return u.drawImage(A,0,0,A.width,A.height,0,0,r,a),l},e.prototype.renderBackgroundImage=function(A){return er(this,void 0,void 0,function(){var r,a,i,o,l,u;return Wt(this,function(d){switch(d.label){case 0:r=A.styles.backgroundImage.length-1,a=function(p){var B,w,g,fA,$,j,R,k,P,y,fA,$,j,R,k,Q,_,v,U,M,J,Z,Y,G,P,z,fA,I,x,R,k,X,$,j,V,AA,sA,DA,F,D,T,K;return Wt(this,function(eA){switch(eA.label){case 0:if(p.type!==0)return[3,5];B=void 0,w=p.url,eA.label=1;case 1:return eA.trys.push([1,3,,4]),[4,i.context.cache.match(w)];case 2:return B=eA.sent(),[3,4];case 3:return eA.sent(),i.context.logger.error("Error loading background-image "+w),[3,4];case 4:return B&&(g=cc(A,r,[B.width,B.height,B.width/B.height]),fA=g[0],$=g[1],j=g[2],R=g[3],k=g[4],P=i.ctx.createPattern(i.resizeImage(B,R,k),"repeat"),i.renderRepeat(fA,P,$,j)),[3,6];case 5:Qv(p)?(y=cc(A,r,[null,null,null]),fA=y[0],$=y[1],j=y[2],R=y[3],k=y[4],Q=vv(p.angle,R,k),_=Q[0],v=Q[1],U=Q[2],M=Q[3],J=Q[4],Z=document.createElement("canvas"),Z.width=R,Z.height=k,Y=Z.getContext("2d"),G=Y.createLinearGradient(v,M,U,J),Ef(p.stops,_).forEach(function(uA){return G.addColorStop(uA.stop,It(uA.color))}),Y.fillStyle=G,Y.fillRect(0,0,R,k),R>0&&k>0&&(P=i.ctx.createPattern(Z,"repeat"),i.renderRepeat(fA,P,$,j))):Ev(p)&&(z=cc(A,r,[null,null,null]),fA=z[0],I=z[1],x=z[2],R=z[3],k=z[4],X=p.position.length===0?[eu]:p.position,$=at(X[0],R),j=at(X[X.length-1],k),V=yv(p,$,j,R,k),AA=V[0],sA=V[1],AA>0&&sA>0&&(DA=i.ctx.createRadialGradient(I+$,x+j,0,I+$,x+j,AA),Ef(p.stops,AA*2).forEach(function(uA){return DA.addColorStop(uA.stop,It(uA.color))}),i.path(fA),i.ctx.fillStyle=DA,AA!==sA?(F=A.bounds.left+.5*A.bounds.width,D=A.bounds.top+.5*A.bounds.height,T=sA/AA,K=1/T,i.ctx.save(),i.ctx.translate(F,D),i.ctx.transform(1,0,0,T,0,0),i.ctx.translate(-F,-D),i.ctx.fillRect(I,K*(x-D)+D,R,k*K),i.ctx.restore()):i.ctx.fill())),eA.label=6;case 6:return r--,[2]}})},i=this,o=0,l=A.styles.backgroundImage.slice(0).reverse(),d.label=1;case 1:return o<l.length?(u=l[o],[5,a(u)]):[3,4];case 2:d.sent(),d.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(A,r,a){return er(this,void 0,void 0,function(){return Wt(this,function(i){return this.path(rd(a,r)),this.ctx.fillStyle=It(A),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(A,r,a,i){return er(this,void 0,void 0,function(){var o,l;return Wt(this,function(u){switch(u.label){case 0:return r<3?[4,this.renderSolidBorder(A,a,i)]:[3,2];case 1:return u.sent(),[2];case 2:return o=kC(i,a),this.path(o),this.ctx.fillStyle=It(A),this.ctx.fill(),l=xC(i,a),this.path(l),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(A){return er(this,void 0,void 0,function(){var r,a,i,o,l,u,d,p,B=this;return Wt(this,function(w){switch(w.label){case 0:return this.applyEffects(A.getEffects(2)),r=A.container.styles,a=!Xn(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=RC(ri(r.backgroundClip,0),A.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Xn(r.backgroundColor)||(this.ctx.fillStyle=It(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:w.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(g){B.ctx.save();var y=Ro(A.curves),Q=g.inset?0:MC,_=UC(y,-Q+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(B.path(y),B.ctx.clip(),B.mask(_)):(B.mask(y),B.ctx.clip(),B.path(_)),B.ctx.shadowOffsetX=g.offsetX.number+Q,B.ctx.shadowOffsetY=g.offsetY.number,B.ctx.shadowColor=It(g.color),B.ctx.shadowBlur=g.blur.number,B.ctx.fillStyle=g.inset?It(g.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),w.label=2;case 2:l=0,u=0,d=i,w.label=3;case 3:return u<d.length?(p=d[u],p.style!==0&&!Xn(p.color)&&p.width>0?p.style!==2?[3,5]:[4,this.renderDashedDottedBorder(p.color,p.width,l,A.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return p.style!==3?[3,7]:[4,this.renderDashedDottedBorder(p.color,p.width,l,A.curves,3)];case 6:return w.sent(),[3,11];case 7:return p.style!==4?[3,9]:[4,this.renderDoubleBorder(p.color,p.width,l,A.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(p.color,l,A.curves)];case 10:w.sent(),w.label=11;case 11:l++,w.label=12;case 12:return u++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(A,r,a,i,o){return er(this,void 0,void 0,function(){var l,u,d,p,B,w,g,y,Q,_,v,U,M,J,Z,Y,Z,Y;return Wt(this,function(G){return this.ctx.save(),l=SC(i,a),u=rd(i,a),o===2&&(this.path(u),this.ctx.clip()),Er(u[0])?(d=u[0].start.x,p=u[0].start.y):(d=u[0].x,p=u[0].y),Er(u[1])?(B=u[1].end.x,w=u[1].end.y):(B=u[1].x,w=u[1].y),a===0||a===2?g=Math.abs(d-B):g=Math.abs(p-w),this.ctx.beginPath(),o===3?this.formatPath(l):this.formatPath(u.slice(0,2)),y=r<3?r*3:r*2,Q=r<3?r*2:r,o===3&&(y=r,Q=r),_=!0,g<=y*2?_=!1:g<=y*2+Q?(v=g/(2*y+Q),y*=v,Q*=v):(U=Math.floor((g+Q)/(y+Q)),M=(g-U*y)/(U-1),J=(g-(U+1)*y)/U,Q=J<=0||Math.abs(Q-M)<Math.abs(Q-J)?M:J),_&&(o===3?this.ctx.setLineDash([0,y+Q]):this.ctx.setLineDash([y,Q])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=It(A),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Er(u[0])&&(Z=u[3],Y=u[0],this.ctx.beginPath(),this.formatPath([new oe(Z.end.x,Z.end.y),new oe(Y.start.x,Y.start.y)]),this.ctx.stroke()),Er(u[1])&&(Z=u[1],Y=u[2],this.ctx.beginPath(),this.formatPath([new oe(Z.end.x,Z.end.y),new oe(Y.start.x,Y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(A){return er(this,void 0,void 0,function(){var r;return Wt(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=It(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=LC(A),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(_h),OC=function(t){return t instanceof vh||t instanceof wh?!0:t instanceof au&&t.type!==Mo&&t.type!==_o},RC=function(t,e){switch(t){case 0:return Ro(e);case 2:return CC(e);case 1:default:return Vo(e)}},VC=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},KC=["-apple-system","system-ui"],GC=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return KC.indexOf(e)===-1}):t},jC=function(t){Vr(e,t);function e(A,r){var a=t.call(this,A,r)||this;return a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=r,a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),a}return e.prototype.render=function(A){return er(this,void 0,void 0,function(){var r,a;return Wt(this,function(i){switch(i.label){case 0:return r=Vc(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,qC(r)];case 1:return a=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=It(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(_h),qC=function(t){return new Promise(function(e,A){var r=new Image;r.onload=function(){e(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},WC=function(){function t(e){var A=e.id,r=e.enabled;this.id=A,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Zs([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Zs([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Zs([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Zs([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),YC=function(){function t(e,A){var r;this.windowBounds=A,this.instanceName="#"+t.instanceCount++,this.logger=new WC({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new hC(this,e)}return t.instanceCount=1,t}(),Mh=function(t,e){return e===void 0&&(e={}),zC(t,e)};typeof window<"u"&&Sh.setContext(window);var zC=function(t,e){return er(void 0,void 0,void 0,function(){var A,r,a,i,o,l,u,d,p,B,w,g,y,Q,_,v,U,M,J,Z,G,Y,G,P,z,fA,I,x,R,k,X,$,j,V,AA,sA,DA,F,D,T;return Wt(this,function(K){switch(K.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=t.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(r=A.defaultView,!r)throw new Error("Document is not attached to a Window");return a={allowTaint:(P=e.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(z=e.imageTimeout)!==null&&z!==void 0?z:15e3,proxy:e.proxy,useCORS:(fA=e.useCORS)!==null&&fA!==void 0?fA:!1},i=Uc({logging:(I=e.logging)!==null&&I!==void 0?I:!0,cache:e.cache},a),o={windowWidth:(x=e.windowWidth)!==null&&x!==void 0?x:r.innerWidth,windowHeight:(R=e.windowHeight)!==null&&R!==void 0?R:r.innerHeight,scrollX:(k=e.scrollX)!==null&&k!==void 0?k:r.pageXOffset,scrollY:(X=e.scrollY)!==null&&X!==void 0?X:r.pageYOffset},l=new yn(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),u=new YC(i,l),d=($=e.foreignObjectRendering)!==null&&$!==void 0?$:!1,p={allowTaint:(j=e.allowTaint)!==null&&j!==void 0?j:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:d,copyStyles:d},u.logger.debug("Starting document clone with size "+l.width+"x"+l.height+" scrolled to "+-l.left+","+-l.top),B=new Ad(u,t,p),w=B.clonedReferenceElement,w?[4,B.toIFrame(A,l)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=K.sent(),y=iu(w)||Xy(w)?Um(w.ownerDocument):Wo(u,w),Q=y.width,_=y.height,v=y.left,U=y.top,M=$C(u,w,e.backgroundColor),J={canvas:e.canvas,backgroundColor:M,scale:(AA=(V=e.scale)!==null&&V!==void 0?V:r.devicePixelRatio)!==null&&AA!==void 0?AA:1,x:((sA=e.x)!==null&&sA!==void 0?sA:0)+v,y:((DA=e.y)!==null&&DA!==void 0?DA:0)+U,width:(F=e.width)!==null&&F!==void 0?F:Math.ceil(Q),height:(D=e.height)!==null&&D!==void 0?D:Math.ceil(_)},d?(u.logger.debug("Document cloned, using foreign object rendering"),G=new jC(u,J),[4,G.render(w)]):[3,3];case 2:return Z=K.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+v+","+U+" with size "+Q+"x"+_+" using computed rendering"),u.logger.debug("Starting DOM parsing"),Y=bh(u,w),M===Y.styles.backgroundColor&&(Y.styles.backgroundColor=vn.TRANSPARENT),u.logger.debug("Starting renderer for element at "+J.x+","+J.y+" with size "+J.width+"x"+J.height),G=new PC(u,J),[4,G.render(Y)];case 4:Z=K.sent(),K.label=5;case 5:return(!((T=e.removeContainer)!==null&&T!==void 0)||T)&&(Ad.destroy(g)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,Z]}})})},$C=function(t,e,A){var r=e.ownerDocument,a=r.documentElement?ns(t,getComputedStyle(r.documentElement).backgroundColor):vn.TRANSPARENT,i=r.body?ns(t,getComputedStyle(r.body).backgroundColor):vn.TRANSPARENT,o=typeof A=="string"?ns(t,A):A===null?vn.TRANSPARENT:4294967295;return e===r.documentElement?Xn(a)?Xn(i)?o:i:a:o};const XC=Object.freeze(Object.defineProperty({__proto__:null,default:Mh},Symbol.toStringTag,{value:"Module"})),JC={class:"gantt-body"},ZC=["title"],A4={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},e4={key:0,points:"15,18 9,12 15,6"},t4={key:1,points:"9,18 15,12 9,6"},Za=1160,bo=320,r4=n.defineComponent({__name:"GanttChart",props:{tasks:{default:()=>[]},milestones:{default:()=>[]},onTaskDoubleClick:{type:Function,default:void 0},editComponent:{default:void 0},useDefaultDrawer:{type:Boolean,default:!0},onTaskDelete:{type:Function,default:void 0},onMilestoneSave:{type:Function,default:void 0},onMilestoneDelete:{type:Function,default:void 0},onTaskUpdate:{type:Function,default:void 0},onTaskAdd:{type:Function,default:void 0},onMilestoneIconChange:{type:Function,default:void 0},toolbarConfig:{default:()=>({})},showToolbar:{type:Boolean,default:!0},onAddTask:{type:Function,default:void 0},onAddMilestone:{type:Function,default:void 0},onTodayLocate:{type:Function,default:void 0},onExportCsv:{type:Function,default:void 0},onExportPdf:{type:Function,default:void 0},onLanguageChange:{type:Function,default:void 0},onThemeChange:{type:Function,default:void 0},onFullscreenChange:{type:Function,default:void 0},localeMessages:{default:void 0},workingHours:{default:()=>({morning:{start:8,end:11},afternoon:{start:13,end:17}})}},emits:["taskbar-drag-end","taskbar-resize-end","milestone-drag-end","timer-started","timer-stopped","predecessor-added","successor-added","task-deleted","task-added","task-updated"],setup(t,{emit:e}){const A=t,r=e,{showMessage:a}=$c(),i=n.ref(320),o=n.ref(null),l=n.ref(ZA.DAY),u=n.ref(Za),d=n.ref(bo),p=n.ref(bo),B=n.ref(Za),w=n.ref(Za),g=tA=>tA<d.value?d.value:tA>w.value?w.value:Math.max(d.value,tA),y=n.ref(!1);function Q(tA){if(tA.target.closest(".task-list-toggle"))return;tA.preventDefault(),tA.stopPropagation(),y.value=!0;const QA=tA.clientX,EA=i.value,_A=document.querySelector(".task-list-body");if(!_A)return;const fe=_A.getBoundingClientRect();u.value=fe.width,B.value=window.innerWidth*.8-6,w.value=Math.min(B.value,u.value),window.dispatchEvent(new CustomEvent("splitter-drag-start")),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="col-resize";function Fe(Ae){if(!y.value)return;Ae.preventDefault(),Ae.stopPropagation();const SA=Ae.clientX-QA,Be=EA+SA,Me=g(Be);i.value=Me}function Ce(){y.value=!1,window.dispatchEvent(new CustomEvent("splitter-drag-end")),document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor="",u.value=Za,d.value=bo,B.value=Za,w.value=Za,p.value=bo,window.removeEventListener("mousemove",Fe),window.removeEventListener("mouseup",Ce)}window.addEventListener("mousemove",Fe),window.addEventListener("mouseup",Ce)}const _=n.ref(!0),v=n.ref(!1),U=n.ref(""),M=()=>{v.value||(v.value=!0,_.value?U.value="impact-left":U.value="impact-right",setTimeout(()=>{_.value=!_.value},200),setTimeout(()=>{v.value=!1,U.value="",n.nextTick(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"manual-task-list-toggle"}}))})},400))},J=tA=>{_.value=tA.detail,n.nextTick(()=>{window.dispatchEvent(new CustomEvent("timeline-container-resized",{detail:{source:"task-list-toggle"}}))})};function Z(tA){r("taskbar-drag-end",tA.detail)}function Y(tA){r("taskbar-resize-end",tA.detail)}function G(tA){r("milestone-drag-end",tA.detail)}n.onMounted(()=>{window.addEventListener("taskbar-drag-end",Z),window.addEventListener("taskbar-resize-end",Y),window.addEventListener("milestone-drag-end",G)}),n.onUnmounted(()=>{window.removeEventListener("taskbar-drag-end",Z),window.removeEventListener("taskbar-resize-end",Y),window.removeEventListener("milestone-drag-end",G)});const P=tA=>{const yA=(QA,EA,_A)=>{for(const fe of QA){if(fe.id===EA)return fe.collapsed=_A,!0;if(fe.children&&fe.children.length>0&&yA(fe.children,EA,_A))return!0}return!1};A.tasks&&yA(A.tasks,tA.id,tA.collapsed??!1),z.value++},z=n.ref(0),fA=()=>{const tA=[],yA=QA=>{QA.forEach(EA=>{tA.push(EA),EA.children&&EA.children.length>0&&yA(EA.children)})};A.tasks&&yA(A.tasks),A.milestones&&tA.push(...A.milestones),window.dispatchEvent(new CustomEvent("task-list-updated",{detail:tA}))},I=()=>{fA()};n.watch([()=>A.tasks,()=>A.milestones],()=>{n.nextTick(()=>{I()})},{deep:!0,immediate:!0}),n.onMounted(()=>{window.addEventListener("toggle-task-list",J),window.addEventListener("fullscreen-toggle",uA),window.addEventListener("task-updated",lA),window.addEventListener("task-added",NA),window.addEventListener("milestone-icon-changed",JA),window.addEventListener("milestone-deleted",jA),window.addEventListener("milestone-data-changed",de),window.addEventListener("request-task-list",fA),window.addEventListener("resize",GA),window.addEventListener("context-menu",He),n.nextTick(()=>{o.value&&typeof o.value.scrollToTodayCenter=="function"&&o.value.scrollToTodayCenter()})}),n.onUnmounted(()=>{y.value=!1,window.removeEventListener("toggle-task-list",J),window.removeEventListener("fullscreen-toggle",uA),window.removeEventListener("task-updated",lA),window.removeEventListener("task-added",NA),window.removeEventListener("milestone-icon-changed",JA),window.removeEventListener("milestone-deleted",jA),window.removeEventListener("milestone-data-changed",de),window.removeEventListener("request-task-list",fA),window.removeEventListener("resize",GA),window.removeEventListener("context-menu",He)});const x=n.ref(!1),{t:R,locale:k}=kr(),X=n.computed(()=>R.value.collapseTaskList),$=n.computed(()=>R.value.expandTaskList),j=n.computed(()=>{const tA=[];if(A.milestones&&A.milestones.length>0){const yA={id:-1,name:R.value.milestoneGroup,startDate:"",endDate:"",type:"milestone-group",children:A.milestones,isParent:!0,collapsed:!1};tA.push(yA)}return A.tasks&&A.tasks.length>0&&tA.push(...A.tasks),tA}),V=n.computed(()=>{z.value>=0;const tA=[];if(A.milestones&&A.milestones.length>0){const yA={id:-1,name:R.value.milestoneGroup,startDate:"",endDate:"",type:"milestone-group",children:A.milestones,isParent:!0,collapsed:!1};tA.push(yA)}if(A.tasks&&A.tasks.length>0){const yA=Ae=>{const SA=[],Be=[];return Ae.forEach(Me=>{if(Me.startDate&&SA.push(Me.startDate),Me.endDate&&Be.push(Me.endDate),Me.children&&Me.children.length>0){const qe=yA(Me.children);SA.push(...qe.starts),Be.push(...qe.ends)}}),{starts:SA,ends:Be}},QA=Ae=>{if(!Ae.children||Ae.children.length===0)return{startDate:Ae.startDate||"",endDate:Ae.endDate||""};const{starts:SA,ends:Be}=yA(Ae.children);if(SA.length===0||Be.length===0)return{startDate:Ae.startDate||"",endDate:Ae.endDate||""};const Me=SA.reduce((Re,Oe)=>new Date(Oe)<new Date(Re)?Oe:Re),qe=Be.reduce((Re,Oe)=>new Date(Oe)>new Date(Re)?Oe:Re);return{startDate:Me,endDate:qe}},EA=Ae=>Ae.map(SA=>{let Be={...SA};SA.children&&SA.children.length>0&&(Be.children=EA(SA.children));const Me=SA.type==="story"||Be.children&&Be.children.length>0;if(Be.isParent=Me,Me&&Be.children&&Be.children.length>0){const{startDate:qe,endDate:Re}=QA(Be);Be={...Be,startDate:qe,endDate:Re}}return Be}),_A=(Ae,SA=0)=>{const Be=[];return Ae.forEach(Me=>{const qe={...Me,level:SA};if(Be.push(qe),Me.children&&Me.children.length>0&&!Me.collapsed){const Re=_A(Me.children,SA+1);Be.push(...Re)}}),Be},fe=j.value.filter(Ae=>Ae.type!=="milestone-group"),Fe=EA(fe),Ce=_A(Fe);tA.push(...Ce)}return tA}),AA=n.computed(()=>A.milestones?A.milestones.filter(tA=>!!tA.startDate).map(tA=>({id:tA.id,name:tA.name,startDate:tA.startDate,endDate:tA.endDate,assignee:tA.assignee,type:tA.type||"milestone",icon:tA.icon,description:tA.description})):[]),sA=n.computed(()=>{const tA=Ae=>{let SA=[];return Ae.forEach(Be=>{SA.push(Be),Be.children&&Be.children.length>0&&(SA=SA.concat(tA(Be.children)))}),SA};let yA=[];A.tasks&&(yA=yA.concat(tA(A.tasks))),A.milestones&&(yA=yA.concat(A.milestones));const QA=yA.map(Ae=>Ae.startDate).filter(Boolean).map(Ae=>new Date(Ae)),EA=yA.map(Ae=>Ae.endDate).filter(Boolean).map(Ae=>new Date(Ae));if(QA.length===0||EA.length===0){const Ae=new Date,SA=new Date(Ae.getFullYear(),Ae.getMonth()-6,1),Be=new Date(Ae.getFullYear(),Ae.getMonth()+6+1,0);return{min:SA,max:Be}}const _A=new Date(Math.min(...QA.map(Ae=>Ae.getTime()))),fe=new Date(Math.max(...EA.map(Ae=>Ae.getTime())));let Fe=new Date(_A.getFullYear(),_A.getMonth()-6,1),Ce=new Date(fe.getFullYear(),fe.getMonth()+6+1,0);return l.value===ZA.WEEK?(Fe=new Date(_A.getFullYear()-1,_A.getMonth(),1),Ce=new Date(fe.getFullYear()+1,fe.getMonth()+1,0)):l.value===ZA.MONTH&&(Fe=new Date(_A.getFullYear()-2,_A.getMonth(),1),Ce=new Date(fe.getFullYear()+2,fe.getMonth()+1,0)),{min:Fe,max:Ce}}),DA=()=>{if(A.onExportCsv&&typeof A.onExportCsv=="function"){A.onExportCsv()===!1&&T();return}T()},F=tA=>{l.value=tA,o.value&&o.value.updateTimeScale(tA)},D=tA=>{n.nextTick(()=>{const yA=new CustomEvent("timeline-scale-updated",{detail:tA});window.dispatchEvent(yA)})},T=()=>{try{const tA=[];A.tasks&&A.tasks.length>0&&tA.push(...A.tasks),A.milestones&&A.milestones.length>0&&tA.push(...A.milestones);const EA="\uFEFF"+K(tA),_A=new Blob([EA],{type:"text/csv;charset=utf-8;"}),fe=document.createElement("a"),Fe=URL.createObjectURL(_A),Ae=`gantt-tasks-${new Date().toISOString().split("T")[0]}.csv`;fe.setAttribute("href",Fe),fe.setAttribute("download",Ae),fe.style.visibility="hidden",document.body.appendChild(fe),fe.click(),document.body.removeChild(fe),URL.revokeObjectURL(Fe)}catch(tA){console.error("CSV导出失败:",tA),a("CSV导出失败","error",{closable:!1})}},K=tA=>{const yA=R.value.csvHeaders,QA=[yA.id,yA.taskName,yA.predecessor,yA.assignee,yA.startDate,yA.endDate,yA.estimatedHours,yA.actualHours,yA.progress,yA.type,yA.description],EA=Ce=>{if(Ce==null)return"";const Ae=String(Ce);return Ae.includes(",")||Ae.includes('"')||Ae.includes(`
304
+ `)||Ae.includes("\r")?`"${Ae.replace(/"/g,'""')}"`:Ae},_A=Ce=>{const Ae=[];return Ce.forEach(SA=>{Ae.push({id:SA.id,name:SA.name||"",predecessor:fc(SA.predecessor),assignee:SA.assignee||"",startDate:SA.startDate||"",endDate:SA.endDate||"",estimatedHours:SA.estimatedHours||"",actualHours:SA.actualHours||"",progress:SA.progress!==void 0?`${SA.progress}%`:"",type:SA.type||"",description:SA.description||""}),SA.children&&SA.children.length>0&&Ae.push(..._A(SA.children))}),Ae},fe=_A(tA);return[QA.map(Ce=>EA(Ce)).join(","),...fe.map(Ce=>[EA(Ce.id),EA(Ce.name),EA(fc(Ce.predecessor)),EA(Ce.assignee),EA(Ce.startDate),EA(Ce.endDate),EA(Ce.estimatedHours),EA(Ce.actualHours),EA(Ce.progress),EA(Ce.type),EA(Ce.description)].join(","))].join(`
305
+ `)},eA=async()=>{try{const tA=R.value.pdfExportLoading,yA=R.value.pdfExportTitle,QA=R.value.pdfExportDate,EA=document.createElement("div");EA.innerHTML=`
306
+ <div style="position: fixed; top: 0; left: 0; width: 100%; height: 100%;
307
+ background: rgba(0,0,0,0.5); display: flex; align-items: center;
308
+ justify-content: center; z-index: 10000; color: white; font-size: 16px;">
309
+ ${tA}
310
+ </div>
311
+ `,document.body.appendChild(EA);const _A=document.querySelector(".gantt-body");if(!_A)throw new Error("找不到甘特图元素");const fe={overflow:_A.style.overflow,height:_A.style.height};_A.style.overflow="visible",_A.style.height="auto";const Fe=await Mh(_A,{allowTaint:!0,useCORS:!0,scale:2,width:_A.scrollWidth,height:_A.scrollHeight,backgroundColor:"#ffffff"});_A.style.overflow=fe.overflow,_A.style.height=fe.height;const Ce=Fe.toDataURL("image/png"),Ae=new Ee({orientation:"landscape",unit:"mm",format:"a4"}),SA=Ae.internal.pageSize.getWidth(),Be=Ae.internal.pageSize.getHeight(),Me=Fe.width,qe=Fe.height,Re=Math.min(SA/Me,Be/qe),Oe=Me*Re,dt=qe*Re,cr=(SA-Oe)/2,$t=(Be-dt)/2;Ae.setFontSize(16),Ae.text(yA,SA/2,15,{align:"center"}),Ae.setFontSize(10);const Pt=new Date().toLocaleDateString(k.value);if(Ae.text(`${QA}: ${Pt}`,SA-10,10,{align:"right"}),Ae.addImage(Ce,"PNG",cr,$t+10,Oe,dt-15),dt>Be-30){const Lt=Math.ceil(dt/(Be-30));for(let Qt=1;Qt<Lt;Qt++){Ae.addPage();const Ot=-Qt*(Be-30);Ae.addImage(Ce,"PNG",cr,$t+10+Ot,Oe,dt-15)}}const Pe=`gantt-chart-${new Date().toISOString().split("T")[0]}.pdf`;Ae.save(Pe),EA&&EA.parentNode&&EA.parentNode.removeChild(EA)}catch(tA){const yA=document.querySelector('[style*="position: fixed"]');yA&&yA.parentNode&&yA.parentNode.removeChild(yA),console.error("PDF导出失败:",tA),alert("PDF导出失败")}},uA=tA=>{x.value=tA.detail,A.onFullscreenChange&&typeof A.onFullscreenChange=="function"&&A.onFullscreenChange(x.value)},dA=tA=>{A.onMilestoneSave&&typeof A.onMilestoneSave=="function"&&A.onMilestoneSave(tA)},lA=tA=>{const yA=tA.detail;if(yA.type==="task"&&yA.parentId){const QA=WA(yA.parentId,yA);A.onTaskUpdate&&typeof A.onTaskUpdate=="function"&&A.onTaskUpdate(yA),QA&&A.onTaskUpdate&&typeof A.onTaskUpdate=="function"&&A.onTaskUpdate(QA)}else A.onTaskUpdate&&typeof A.onTaskUpdate=="function"&&A.onTaskUpdate(yA);z.value++},WA=(tA,yA)=>{const QA=[...A.tasks||[]],EA=[],_A=SA=>{SA.forEach(Be=>{EA.push(Be),Be.children&&Be.children.length>0&&_A(Be.children)})};_A(QA);const fe=EA.find(SA=>SA.id===tA&&SA.type==="story");if(!fe)return null;let Fe=EA.filter(SA=>SA.parentId===tA&&SA.type==="task");if(Fe.length===0)return null;yA&&yA.type==="task"&&yA.parentId===tA&&(Fe=Fe.map(SA=>SA.id===yA.id?yA:SA));const Ce=Fe.reduce((SA,Be)=>SA+(Be.progress||0),0),Ae=Math.round(Ce/Fe.length);return fe.progress!==Ae?{...fe,progress:Ae}:null},NA=tA=>{const yA=tA.detail;A.onTaskAdd&&typeof A.onTaskAdd=="function"&&A.onTaskAdd(yA),z.value++},JA=tA=>{const{milestoneId:yA,icon:QA}=tA.detail;A.onMilestoneIconChange&&typeof A.onMilestoneIconChange=="function"&&A.onMilestoneIconChange(yA,QA)},jA=tA=>{const{milestoneId:yA}=tA.detail;A.onMilestoneDelete&&typeof A.onMilestoneDelete=="function"&&A.onMilestoneDelete(yA),z.value++},de=()=>{z.value++,n.nextTick(()=>{})};n.onMounted(()=>{n.nextTick(()=>{o.value&&typeof o.value.scrollToTodayCenter=="function"&&o.value.scrollToTodayCenter()})});const UA=()=>{if(A.onTodayLocate&&typeof A.onTodayLocate=="function"){A.onTodayLocate();return}if(o.value&&typeof o.value.scrollToTodayCenter=="function"){o.value.scrollToTodayCenter();return}KA()},S=()=>{if(A.onAddMilestone&&typeof A.onAddMilestone=="function"){A.onAddMilestone();return}FA()},FA=()=>{window.dispatchEvent(new CustomEvent("add-milestone"))},KA=()=>{if(o.value&&typeof o.value.scrollToToday=="function"){o.value.scrollToToday();return}const tA=new Date,yA=tA.getMonth(),QA=tA.getDate();let EA=0;for(let SA=0;SA<yA;SA++)EA+=new Date(tA.getFullYear(),SA+1,0).getDate();EA+=QA;const _A=document.querySelector(".gantt-panel-right"),fe=_A==null?void 0:_A.clientWidth,Fe=fe?fe/2:200,Ce=(EA-1)*30-Fe,Ae=document.querySelector(".timeline");if(Ae){Ae.scrollLeft=Math.max(0,Ce);const SA=Ae.querySelector(".day-column.today");SA&&(SA.classList.add("today-highlight"),setTimeout(()=>{SA.classList.remove("today-highlight")},2e3))}},GA=()=>{const tA=g(i.value);tA!==i.value&&(i.value=tA)};A.localeMessages&&Nu(k.value,A.localeMessages),n.watch(()=>A.localeMessages,tA=>{tA&&Nu(k.value,tA)},{deep:!0});const $A=n.ref({x:0,y:0}),ee=n.ref(!1),RA=n.ref(null),ne=n.ref(!1),he=n.ref(null),ve=n.ref(!1),be=n.ref(null),Se=n.ref(null),He=tA=>{const{task:yA,position:QA}=tA.detail;RA.value=yA,$A.value=QA,ee.value=!0},me=()=>{ee.value=!1};function oA(){const tA={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:void 0,children:[]};he.value=tA,ve.value=!1,ne.value=!0}const pA=tA=>{if(A.tasks){const yA=QA=>{var EA;for(let _A=0;_A<QA.length;_A++){if(QA[_A].id===tA.id)return QA[_A].isTimerRunning=!0,QA[_A].timerStartTime=tA.timerStartTime||Date.now(),QA[_A].timerEndTime=void 0,QA[_A].timerElapsedTime=0,!0;if((EA=QA[_A].children)!=null&&EA.length&&yA(QA[_A].children))return!0}return!1};yA(A.tasks)}me(),r("timer-started",tA)},HA=tA=>{if(A.tasks){const yA=QA=>{var EA;for(let _A=0;_A<QA.length;_A++){if(QA[_A].id===tA.id){if(QA[_A].isTimerRunning&&QA[_A].timerStartTime!==void 0){const fe=QA[_A].timerElapsedTime||0;QA[_A].timerElapsedTime=fe+(Date.now()-QA[_A].timerStartTime),QA[_A].timerEndTime=Date.now()}return QA[_A].isTimerRunning=!1,ne.value&&he.value&&he.value.id===tA.id&&(he.value.isTimerRunning=!1,he.value.timerEndTime=Date.now()),!0}if((EA=QA[_A].children)!=null&&EA.length&&yA(QA[_A].children))return!0}return!1};yA(A.tasks)}me(),r("timer-stopped",tA)};function qA(tA){he.value=tA,ve.value=!0,ne.value=!0}function pe(tA){if(!tA)return;be.value=tA;const yA={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:tA.parentId,children:[],isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0};he.value=yA,ve.value=!1,ne.value=!0}function te(tA){if(!tA)return;Se.value=tA;const yA={id:Date.now(),name:"",type:"task",assignee:"",startDate:"",endDate:"",predecessor:[tA.id],estimatedHours:0,actualHours:0,progress:0,description:"",parentId:tA.parentId,children:[],isTimerRunning:!1,timerStartTime:void 0,timerEndTime:void 0,timerElapsedTime:0};he.value=yA,ve.value=!1,ne.value=!0}const se=(tA,yA)=>{if(!yA.parentId)return tA.push(yA),!0;for(const QA of tA){if(QA.id===yA.parentId)return QA.children||(QA.children=[]),QA.children.push(yA),!0;if(QA.children&&QA.children.length>0&&se(QA.children,yA))return!0}return!1},hA=(tA,yA)=>{for(let QA=0;QA<tA.length;QA++){if(tA[QA].id===yA.id)return tA[QA]={...tA[QA],...yA},!0;if(tA[QA].children&&tA[QA].children.length>0&&hA(tA[QA].children,yA))return!0}return!1};function vA(tA){ve.value?(A.tasks&&hA(A.tasks,tA),z.value++,r("task-updated",{task:tA})):(A.tasks&&se(A.tasks,tA),r("task-added",{task:tA}),be.value&&(be.value.predecessor||(be.value.predecessor=[]),be.value.predecessor.push(tA.id),r("predecessor-added",{targetTask:be.value,newTask:tA}),be.value=null),Se.value&&(r("successor-added",{targetTask:Se.value,newTask:tA}),Se.value=null))}function TA(tA,yA,QA){for(let EA=0;EA<tA.length;EA++){if(tA[EA].id===yA){if(QA)tA.splice(EA,1);else{const _A=tA[EA].children||[];tA.splice(EA,1,..._A)}return!0}if(tA[EA].children&&tA[EA].children.length>0&&TA(tA[EA].children,yA,QA))return!0}return!1}function PA(tA,yA){A.tasks&&TA(A.tasks,tA.id,yA),ne.value=!1,he.value=null,r("task-deleted",{task:tA})}return(tA,yA)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["gantt-root",{"gantt-fullscreen":x.value,"splitter-dragging":y.value}])},[A.showToolbar?(n.openBlock(),n.createBlock(vB,{key:0,config:A.toolbarConfig,"on-add-task":A.onAddTask,"on-add-milestone":S,"on-today-locate":UA,"on-export-csv":DA,"on-export-pdf":eA,"on-language-change":A.onLanguageChange,"on-theme-change":A.onThemeChange,"on-fullscreen-change":A.onFullscreenChange,"on-time-scale-change":F,onAddTask:oA},null,8,["config","on-add-task","on-language-change","on-theme-change","on-fullscreen-change"])):n.createCommentVNode("",!0),n.createElementVNode("div",JC,[_.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"gantt-panel gantt-panel-left",style:n.normalizeStyle({width:i.value+"px"})},[n.createVNode(ld,{tasks:j.value,"on-task-double-click":A.onTaskDoubleClick,"edit-component":A.editComponent,"use-default-drawer":A.useDefaultDrawer,onTaskCollapseChange:P,onStartTimer:pA,onStopTimer:HA,onAddPredecessor:pe,onAddSuccessor:te,onDelete:PA},null,8,["tasks","on-task-double-click","edit-component","use-default-drawer"])],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"gantt-splitter",onMousedown:Q},[n.createElementVNode("div",{class:n.normalizeClass(["task-list-toggle",{collapsed:!_.value,[U.value]:v.value}]),title:_.value?X.value:$.value,onClick:n.withModifiers(M,["stop"])},[(n.openBlock(),n.createElementBlock("svg",A4,[_.value?(n.openBlock(),n.createElementBlock("polyline",e4)):(n.openBlock(),n.createElementBlock("polyline",t4))]))],10,ZC)],32),n.createElementVNode("div",{class:n.normalizeClass(["gantt-panel gantt-panel-right",{"full-width":!_.value}])},[n.createVNode(fd,{ref_key:"timelineRef",ref:o,tasks:V.value,milestones:AA.value,"start-date":sA.value.min,"end-date":sA.value.max,"working-hours":A.workingHours,"on-task-double-click":A.onTaskDoubleClick,"edit-component":A.editComponent,"use-default-drawer":A.useDefaultDrawer,"on-milestone-save":dA,onTimelineScaleChanged:D,onEditTask:qA,onStartTimer:pA,onStopTimer:HA,onAddPredecessor:pe,onAddSuccessor:te,onDelete:PA},null,8,["tasks","milestones","start-date","end-date","working-hours","on-task-double-click","edit-component","use-default-drawer"])],2)]),A.useDefaultDrawer?(n.openBlock(),n.createBlock(dd,{key:1,visible:ne.value,"onUpdate:visible":yA[0]||(yA[0]=QA=>ne.value=QA),task:he.value,"is-edit":ve.value,onSubmit:vA,onClose:yA[1]||(yA[1]=QA=>ne.value=!1),onStartTimer:pA,onStopTimer:HA,onDelete:PA},null,8,["visible","task","is-edit"])):n.createCommentVNode("",!0)],2))}}),Ph=or(r4,[["__scopeId","data-v-bf5be376"]]),Oh=t=>{t.component("GanttChart",Ph)},n4={install:Oh};exports.GanttChart=Ph;exports.MilestoneDialog=ud;exports.MilestonePoint=dc;exports.TaskBar=cd;exports.TaskDrawer=dd;exports.TaskList=ld;exports.TaskRow=od;exports.Timeline=fd;exports._typeof=ze;exports.index=n4;exports.install=Oh;exports.useMessage=$c;