tiptap-ui-kit-k 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +450 -0
- package/dist/IMG_8528.JPG +0 -0
- package/dist/IMG_8529.JPG +0 -0
- package/dist/index.d.ts +1397 -0
- package/dist/index.esm.js +67452 -0
- package/dist/index.js +14 -0
- package/dist/llms.txt +65 -0
- package/dist/tiptap-ui-kit-k.css +1 -0
- package/dist/websocket-DLLOwgDf.js +12 -0
- package/dist/websocket-Hm6nu9fH.cjs +1 -0
- package/package.json +166 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.create,Object.defineProperty,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("@tiptap/vue-3"),n=require("ant-design-vue"),i=require("@ant-design/icons-vue"),r=require("@tiptap/extension-image"),o=require("@tiptap/core"),a=require("@tiptap/vue-3/menus"),s=require("@tiptap/pm/tables"),c=require("@tiptap/extension-table"),u=require("@tiptap/pm/state"),l=require("@tiptap/pm/view"),d=require("@tiptap/starter-kit"),h=require("@tiptap/extension-placeholder"),f=require("@tiptap/extension-text-align"),m=require("@tiptap/extension-underline"),p=require("@tiptap/extension-color"),g=require("@tiptap/extension-text-style"),b=require("@tiptap/extension-highlight"),v=require("@tiptap/extension-link"),y=require("@tiptap/extension-table-row"),w=require("@tiptap/extension-table-cell"),x=require("@tiptap/extension-table-header"),D=require("@tiptap/extension-task-list"),U=require("@tiptap/extension-task-item"),T=require("@tiptap/extension-font-family"),k=require("@tiptap/extension-subscript"),A=require("@tiptap/extension-superscript"),F=require("@tiptap/extension-character-count"),S={toolbar:{bold:"粗体",italic:"斜体",underline:"下划线",strikethrough:"删除线",code:"代码",subscript:"下标",superscript:"上标",clear:"清除",clearFormat:"清除格式",formatPainter:"格式刷",heading:"标题",heading1:"标题 1",heading2:"标题 2",heading3:"标题 3",heading4:"标题 4",heading5:"标题 5",heading6:"标题 6",paragraph:"正文",fontFamily:"字体",fontSize:"字号",lineHeight:"行距",textColor:"文字颜色",backgroundColor:"背景颜色",highlightColor:"高亮颜色",bulletList:"无序列表",orderedList:"有序列表",taskList:"任务列表",indent:"增加缩进",outdent:"减少缩进",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignJustify:"两端对齐",insertLink:"插入链接",insertImage:"插入图片",insertTable:"插入表格",insertCodeBlock:"插入代码块",insertHorizontalRule:"插入分隔线",link:"链接",linkUrl:"链接地址",linkText:"链接文本",openLink:"打开链接",editLink:"编辑链接",removeLink:"移除链接",undo:"撤销",redo:"重做",undoDisabledInCollab:"协作模式下不可用",redoDisabledInCollab:"协作模式下不可用",more:"更多"},table:{insertTable:"插入表格",deleteTable:"删除表格",addColumnBefore:"在左侧插入列",addColumnAfter:"在右侧插入列",deleteColumn:"删除列",addRowBefore:"在上方插入行",addRowAfter:"在下方插入行",deleteRow:"删除行",mergeCells:"合并单元格",splitCell:"拆分单元格",toggleHeaderCell:"切换表头单元格",toggleHeaderColumn:"切换表头列",toggleHeaderRow:"切换表头行",setCellAttribute:"设置单元格属性",fixTables:"修复表格"},bubbleMenu:{turnInto:"转换为",textStyle:"文本样式",color:"颜色"},dragMenu:{delete:"删除",duplicate:"复制",copy:"拷贝",cut:"剪切",moveUp:"上移",moveDown:"下移"},codeBlock:{language:"语言",selectLanguage:"选择语言"},stats:{characters:"字符",words:"词",pages:"页",zoom:"缩放",reset:"重置",total:"共"},placeholder:{default:"请输入内容...",heading:"标题",paragraph:"正文"},messages:{imageUploadFailed:"图片上传失败",imageUploadSuccess:"图片上传成功",invalidImageFormat:"不支持的图片格式",imageTooLarge:"图片大小超过限制",networkError:"网络错误,请稍后重试",pasteCleanedUp:"已清理粘贴内容的格式",linkRequired:"请输入链接地址",linkInvalid:"链接地址无效",translationFailed:"翻译失败",polishFailed:"润色失败",summarizeFailed:"总结失败",continueWritingFailed:"续写失败",customAiFailed:"自定义 AI 失败"},editor:{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",h5:"标题 5",h6:"标题 6",paragraph:"正文",heading:"标题",heading1:"标题 1",heading2:"标题 2",heading3:"标题 3",heading4:"标题 4",heading5:"标题 5",heading6:"标题 6",bold:"粗体",italic:"斜体",underline:"下划线",strike:"删除线",inlineCode:"代码",superscript:"上标",subscript:"下标",bulletList:"无序列表",orderedList:"有序列表",taskList:"任务列表",align:"对齐",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignJustify:"两端对齐",indent:"增加缩进",outdent:"减少缩进",indentAndAlign:"缩进和对齐",colors:"颜色",text:"文字",highlight:"高亮",textColor:"文字颜色",backgroundColor:"背景颜色",defaultColors:"默认颜色",standardColors:"标准色",showAdvanced:"高级选择器",hideAdvanced:"收起",clearColor:"清空颜色",actions:"操作",cut:"剪切",copy:"拷贝",delete:"删除",undo:"撤销",redo:"重做",undoDisabledInCollab:"协作模式下不可用",redoDisabledInCollab:"协作模式下不可用",clearFormat:"清除格式",formatPainter:"格式刷",font:"字体",fontSize:"字号",lineHeight:"行距",insertLink:"插入链接",insertImage:"插入图片",insertTable:"插入表格",image:"图片",link:"链接",editLink:"编辑链接",openLink:"打开链接",removeLink:"移除链接",linkPlaceholder:"请输入链接地址",imagePlaceholder:"请输入图片地址",deleteTable:"删除表格",includeHeader:"包含表头",localUpload:"本地上传",localUploadImage:"本地上传图片",webUpload:"网络上传",clickOrDragUpload:"点击或拖拽文件到此区域上传",onlySupportImage:"仅支持图片格式",video:"视频",localUploadVideo:"本地上传视频",uploadVideo:"上传视频",onlySupportVideo:"仅支持视频格式",supportImageAndVideo:"支持图片和视频格式",word:"Word",importWord:"导入 Word",exportWord:"导出 Word",clickOrDragUploadWord:"点击或拖拽 Word 文件到此区域",onlySupportDocx:"仅支持 .docx 格式",importing:"正在导入...",exporting:"正在导出...",exportFilenamePlaceholder:"请输入文件名",importSuccess:"Word 文件导入成功",exportSuccess:"Word 文件导出成功",importFailed:"Word 文件导入失败",exportFailed:"Word 文件导出失败",more:"更多",aiTool:"AI 工具",ai:"AI",pleaseSelectTextToSample:"请先选择要采样的文本",pleaseSelectTextToSampleShort:"请先选择文本",pleaseSelectTextToSampleDouble:"请先双击选择要采样的文本",sampleSuccessSingle:"格式采样成功,点击目标文本应用格式",sampleSuccessContinuous:"格式采样成功,可连续点击多个目标文本应用格式",formatPainterExited:"已退出格式刷模式",collaborationNoFormatPainter:"协作模式下不支持格式刷功能",enterValidLink:"请输入有效的链接地址",math:"数学公式",mathInline:"行内公式",mathBlock:"块级公式",mathPlaceholder:"输入 LaTeX 公式...",mathEmpty:"点击编辑公式",insertTemplate:"插入模板",templateMeetingMinutes:"会议纪要",templateMeetingMinutesDesc:"包含议题、决议、待办事项的会议记录模板",templateWeeklyReport:"周报",templateWeeklyReportDesc:"本周完成、进行中、下周计划的周报模板",templateDailyReport:"日报",templateDailyReportDesc:"今日完成与明日计划的日报模板",templateProjectPlan:"项目方案",templateProjectPlanDesc:"项目概述、实施方案、风险评估的项目文档模板",templateProductRequirement:"需求文档",templateProductRequirementDesc:"产品需求文档 (PRD) 模板",imageGallery:"图库",galleryEmpty:"暂无图片",galleryEmptyHint:"当前文档中还没有插入过图片",galleryCount:"共 {total} 张,已选 {selected} 张",galleryInsert:"插入选中图片",continueWriting:"继续写作",polish:"润色文本",summarize:"总结内容",translate:"翻译",translateTo:"翻译为 {lang}",customAi:"自定义 AI",selectLanguage:"选择语言",aiSuggestion:"AI 建议",aiContinueWriting:"AI 续写:",originalText:"原文:",suggestedText:"建议:",generatedContent:"生成内容:",generating:"正在生成...",selectedContent:"选中内容:",currentStatus:"当前状态",noTextSelected:"未选中文本,AI 内容将插入到光标位置",pleaseSelectText:"请先选中文字",continueWritingRequiresSelection:"续写功能需要先选中要续写的文字",polishRequiresSelection:"润色功能需要先选中要润色的文字",summarizeRequiresSelection:"总结功能需要先选中要总结的文字",translateRequiresSelection:"翻译功能需要先选中要翻译的文字",customAiRequiresSelection:"自定义AI功能需要先选中要处理的文字",aiPrompt:"AI 指令",aiPromptPlaceholder:"请输入 AI 指令,例如:优化这段文字、翻译成英文...",customAiCommand:"自定义 AI 指令",customAiPromptPlaceholder:"请输入你的 AI 指令,例如:请帮我优化这段文字、请翻译成英文、请总结要点等",execute:"执行",cancel:"取消",reject:"拒绝",accept:"接受",lang:{"zh-CN":"简体中文","zh-TW":"繁体中文",zh:"中文",en:"英语",ja:"日语",th:"泰语",fr:"法语",es:"西班牙语",pt:"葡萄牙语",ko:"韩语",vi:"越南语",ru:"俄语",de:"德语",hi:"印地语",id:"印尼语",ar:"阿拉伯语"}},versionHistory:{title:"版本历史",saveVersion:"保存版本",noVersions:"暂无历史版本",autoSave:"自动保存",words:"字",justNow:"刚刚",minutesAgo:"分钟前",hoursAgo:"小时前",daysAgo:"天前",restore:"恢复此版本",compare:"对比",rename:"重命名",delete:"删除",comparing:"正在对比",clearCompare:"取消对比",versionName:"版本名称",saved:"版本已保存",restored:"版本已恢复",deleted:"版本已删除",noDiff:"内容相同"},slashCommand:{noResults:"无匹配结果",basicBlocks:"基础块",lists:"列表",advanced:"高级",paragraph:"正文",paragraphDesc:"普通文本段落",heading1:"标题 1",heading1Desc:"大标题",heading2:"标题 2",heading2Desc:"中标题",heading3:"标题 3",heading3Desc:"小标题",bulletList:"无序列表",bulletListDesc:"创建无序列表",orderedList:"有序列表",orderedListDesc:"创建有序编号列表",taskList:"任务列表",taskListDesc:"创建待办事项列表",blockquote:"引用",blockquoteDesc:"插入引用块",codeBlock:"代码块",codeBlockDesc:"插入代码片段",table:"表格",tableDesc:"插入 3×3 表格",image:"图片",imageDesc:"通过链接插入图片",imageUrlPrompt:"请输入图片链接",horizontalRule:"分割线",horizontalRuleDesc:"插入水平分割线"},aiSettings:{title:"AI 设置",provider:"AI 提供商",apiKeyPlaceholder:"请输入 API Key",apiKeyHint:"API Key 仅保存在本地浏览器中,不会上传到服务器",endpoint:"API 端点",model:"模型",enableAi:"启用 AI 功能",testConnection:"测试连接",testing:"测试中...",testSuccess:"连接成功",testFailed:"连接失败",viewDocs:"查看文档",save:"保存",cancel:"取消",clear:"清除配置"}},E={toolbar:{bold:"粗體",italic:"斜體",underline:"底線",strikethrough:"刪除線",code:"程式碼",subscript:"下標",superscript:"上標",clear:"清除",clearFormat:"清除格式",formatPainter:"格式刷",heading:"標題",heading1:"標題 1",heading2:"標題 2",heading3:"標題 3",heading4:"標題 4",heading5:"標題 5",heading6:"標題 6",paragraph:"正文",fontFamily:"字體",fontSize:"字號",lineHeight:"行距",textColor:"文字顏色",backgroundColor:"背景顏色",highlightColor:"高亮顏色",bulletList:"項目符號清單",orderedList:"編號清單",taskList:"工作清單",indent:"增加縮排",outdent:"減少縮排",alignLeft:"靠左對齊",alignCenter:"置中對齊",alignRight:"靠右對齊",alignJustify:"左右對齊",insertLink:"插入連結",insertImage:"插入圖片",insertTable:"插入表格",insertCodeBlock:"插入程式碼區塊",insertHorizontalRule:"插入分隔線",link:"連結",linkUrl:"連結位址",linkText:"連結文字",openLink:"開啟連結",editLink:"編輯連結",removeLink:"移除連結",undo:"復原",redo:"重做",undoDisabledInCollab:"協作模式下不可用",redoDisabledInCollab:"協作模式下不可用",more:"更多"},table:{insertTable:"插入表格",deleteTable:"刪除表格",addColumnBefore:"在左側插入欄",addColumnAfter:"在右側插入欄",deleteColumn:"刪除欄",addRowBefore:"在上方插入列",addRowAfter:"在下方插入列",deleteRow:"刪除列",mergeCells:"合併儲存格",splitCell:"分割儲存格",toggleHeaderCell:"切換標題儲存格",toggleHeaderColumn:"切換標題欄",toggleHeaderRow:"切換標題列",setCellAttribute:"設定儲存格屬性",fixTables:"修復表格"},bubbleMenu:{turnInto:"轉換為",textStyle:"文字樣式",color:"顏色"},dragMenu:{delete:"刪除",duplicate:"複製",copy:"拷貝",cut:"剪下",moveUp:"上移",moveDown:"下移"},codeBlock:{language:"語言",selectLanguage:"選擇語言"},stats:{characters:"字元",words:"詞",pages:"頁",zoom:"縮放",reset:"重置",total:"共"},placeholder:{default:"請輸入內容...",heading:"標題",paragraph:"正文"},messages:{imageUploadFailed:"圖片上傳失敗",imageUploadSuccess:"圖片上傳成功",invalidImageFormat:"不支援的圖片格式",imageTooLarge:"圖片大小超過限制",networkError:"網路錯誤,請稍後重試",pasteCleanedUp:"已清理貼上內容的格式",linkRequired:"請輸入連結位址",linkInvalid:"連結位址無效",translationFailed:"翻譯失敗",polishFailed:"潤色失敗",summarizeFailed:"總結失敗",continueWritingFailed:"續寫失敗",customAiFailed:"自定義 AI 失敗"},editor:{h1:"標題 1",h2:"標題 2",h3:"標題 3",h4:"標題 4",h5:"標題 5",h6:"標題 6",paragraph:"正文",heading:"標題",heading1:"標題 1",heading2:"標題 2",heading3:"標題 3",heading4:"標題 4",heading5:"標題 5",heading6:"標題 6",bold:"粗體",italic:"斜體",underline:"底線",strike:"刪除線",inlineCode:"程式碼",superscript:"上標",subscript:"下標",bulletList:"項目符號清單",orderedList:"編號清單",taskList:"工作清單",align:"對齊",alignLeft:"靠左對齊",alignCenter:"置中對齊",alignRight:"靠右對齊",alignJustify:"左右對齊",indent:"增加縮排",outdent:"減少縮排",indentAndAlign:"縮排和對齊",colors:"顏色",text:"文字",highlight:"高亮",textColor:"文字顏色",backgroundColor:"背景顏色",defaultColors:"預設顏色",standardColors:"標準色",showAdvanced:"高級選擇器",hideAdvanced:"收起",clearColor:"清空顏色",actions:"操作",cut:"剪下",copy:"拷貝",delete:"刪除",undo:"復原",redo:"重做",undoDisabledInCollab:"協作模式下不可用",redoDisabledInCollab:"協作模式下不可用",clearFormat:"清除格式",formatPainter:"格式刷",font:"字體",fontSize:"字號",lineHeight:"行距",insertLink:"插入連結",insertImage:"插入圖片",insertTable:"插入表格",image:"圖片",link:"連結",editLink:"編輯連結",openLink:"開啟連結",removeLink:"移除連結",linkPlaceholder:"請輸入連結位址",imagePlaceholder:"請輸入圖片位址",deleteTable:"刪除表格",includeHeader:"包含標題",localUpload:"本地上傳",localUploadImage:"本地上傳圖片",webUpload:"網路上傳",clickOrDragUpload:"點擊或拖拽檔案到此區域上傳",onlySupportImage:"僅支援圖片格式",video:"視頻",localUploadVideo:"本地上傳視頻",uploadVideo:"上傳視頻",onlySupportVideo:"僅支援視頻格式",supportImageAndVideo:"支援圖片和視頻格式",word:"Word",importWord:"匯入 Word",exportWord:"匯出 Word",clickOrDragUploadWord:"點擊或拖拽 Word 檔案到此區域",onlySupportDocx:"僅支援 .docx 格式",importing:"正在匯入...",exporting:"正在匯出...",exportFilenamePlaceholder:"請輸入檔案名稱",importSuccess:"Word 檔案匯入成功",exportSuccess:"Word 檔案匯出成功",importFailed:"Word 檔案匯入失敗",exportFailed:"Word 檔案匯出失敗",more:"更多",aiTool:"AI 工具",ai:"AI",pleaseSelectTextToSample:"請先選擇要採樣的文字",pleaseSelectTextToSampleShort:"請先選擇文字",pleaseSelectTextToSampleDouble:"請先雙擊選擇要採樣的文字",sampleSuccessSingle:"格式採樣成功,點擊目標文字套用格式",sampleSuccessContinuous:"格式採樣成功,可連續點擊多個目標文字套用格式",formatPainterExited:"已退出格式刷模式",collaborationNoFormatPainter:"協作模式下不支援格式刷功能",enterValidLink:"請輸入有效的連結位址",math:"數學公式",mathInline:"行內公式",mathBlock:"塊級公式",mathPlaceholder:"輸入 LaTeX 公式...",mathEmpty:"點擊編輯公式",insertTemplate:"插入模板",templateMeetingMinutes:"會議紀要",templateMeetingMinutesDesc:"包含議題、決議、待辦事項的會議記錄模板",templateWeeklyReport:"週報",templateWeeklyReportDesc:"本週完成、進行中、下週計劃的週報模板",templateDailyReport:"日報",templateDailyReportDesc:"今日完成與明日計劃的日報模板",templateProjectPlan:"專案方案",templateProjectPlanDesc:"專案概述、實施方案、風險評估的專案文件模板",templateProductRequirement:"需求文件",templateProductRequirementDesc:"產品需求文件 (PRD) 模板",imageGallery:"圖庫",galleryEmpty:"暫無圖片",galleryEmptyHint:"當前文件中還沒有插入過圖片",galleryCount:"共 {total} 張,已選 {selected} 張",galleryInsert:"插入選中圖片",continueWriting:"繼續寫作",polish:"潤色文字",summarize:"總結內容",translate:"翻譯",translateTo:"翻譯為 {lang}",customAi:"自定義 AI",selectLanguage:"選擇語言",aiSuggestion:"AI 建議",aiContinueWriting:"AI 續寫:",originalText:"原文:",suggestedText:"建議:",generatedContent:"生成內容:",generating:"正在生成...",selectedContent:"選中內容:",currentStatus:"當前狀態",noTextSelected:"未選中文本,AI 內容將插入到光標位置",pleaseSelectText:"請先選中文字",continueWritingRequiresSelection:"續寫功能需要先選中要續寫的文字",polishRequiresSelection:"潤色功能需要先選中要潤色的文字",summarizeRequiresSelection:"總結功能需要先選中要總結的文字",translateRequiresSelection:"翻譯功能需要先選中要翻譯的文字",customAiRequiresSelection:"自定義AI功能需要先選中要處理的文字",aiPrompt:"AI 指令",aiPromptPlaceholder:"請輸入 AI 指令,例如:優化這段文字、翻譯成英文...",customAiCommand:"自定義 AI 指令",customAiPromptPlaceholder:"請輸入你的 AI 指令,例如:請幫我優化這段文字、請翻譯成英文、請總結要點等",execute:"執行",cancel:"取消",reject:"拒絕",accept:"接受",lang:{"zh-CN":"簡體中文","zh-TW":"繁體中文",zh:"中文",en:"英語",ja:"日語",th:"泰語",fr:"法語",es:"西班牙語",pt:"葡萄牙語",ko:"韓語",vi:"越南語",ru:"俄語",de:"德語",hi:"印地語",id:"印尼語",ar:"阿拉伯語"}},versionHistory:{title:"版本歷史",saveVersion:"儲存版本",noVersions:"暫無歷史版本",autoSave:"自動儲存",words:"字",justNow:"剛剛",minutesAgo:"分鐘前",hoursAgo:"小時前",daysAgo:"天前",restore:"恢復此版本",compare:"對比",rename:"重新命名",delete:"刪除",comparing:"正在對比",clearCompare:"取消對比",versionName:"版本名稱",saved:"版本已儲存",restored:"版本已恢復",deleted:"版本已刪除",noDiff:"內容相同"},slashCommand:{noResults:"無匹配結果",basicBlocks:"基礎區塊",lists:"清單",advanced:"進階",paragraph:"正文",paragraphDesc:"普通文字段落",heading1:"標題 1",heading1Desc:"大標題",heading2:"標題 2",heading2Desc:"中標題",heading3:"標題 3",heading3Desc:"小標題",bulletList:"項目符號清單",bulletListDesc:"建立項目符號清單",orderedList:"編號清單",orderedListDesc:"建立編號清單",taskList:"工作清單",taskListDesc:"建立待辦事項清單",blockquote:"引用",blockquoteDesc:"插入引用區塊",codeBlock:"程式碼區塊",codeBlockDesc:"插入程式碼片段",table:"表格",tableDesc:"插入 3×3 表格",image:"圖片",imageDesc:"透過連結插入圖片",imageUrlPrompt:"請輸入圖片連結",horizontalRule:"分隔線",horizontalRuleDesc:"插入水平分隔線"},aiSettings:{title:"AI 設定",provider:"AI 提供商",apiKeyPlaceholder:"請輸入 API Key",apiKeyHint:"API Key 僅保存在本地瀏覽器中,不會上傳到伺服器",endpoint:"API 端點",model:"模型",enableAi:"啟用 AI 功能",testConnection:"測試連線",testing:"測試中...",testSuccess:"連線成功",testFailed:"連線失敗",viewDocs:"查看文檔",save:"儲存",cancel:"取消",clear:"清除設定"}},C={toolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Code",subscript:"Subscript",superscript:"Superscript",clear:"Clear",clearFormat:"Clear Format",formatPainter:"Format Painter",heading:"Heading",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",fontFamily:"Font",fontSize:"Font Size",lineHeight:"Line Height",textColor:"Text Color",backgroundColor:"Background Color",highlightColor:"Highlight Color",bulletList:"Bullet List",orderedList:"Numbered List",taskList:"Task List",indent:"Indent",outdent:"Outdent",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Justify",insertLink:"Insert Link",insertImage:"Insert Image",insertTable:"Insert Table",insertCodeBlock:"Insert Code Block",insertHorizontalRule:"Insert Horizontal Rule",link:"Link",linkUrl:"Link URL",linkText:"Link Text",openLink:"Open Link",editLink:"Edit Link",removeLink:"Remove Link",undo:"Undo",redo:"Redo",undoDisabledInCollab:"Disabled in collaboration mode",redoDisabledInCollab:"Disabled in collaboration mode",more:"More"},table:{insertTable:"Insert Table",deleteTable:"Delete Table",addColumnBefore:"Add Column Before",addColumnAfter:"Add Column After",deleteColumn:"Delete Column",addRowBefore:"Add Row Before",addRowAfter:"Add Row After",deleteRow:"Delete Row",mergeCells:"Merge Cells",splitCell:"Split Cell",toggleHeaderCell:"Toggle Header Cell",toggleHeaderColumn:"Toggle Header Column",toggleHeaderRow:"Toggle Header Row",setCellAttribute:"Set Cell Attribute",fixTables:"Fix Tables"},bubbleMenu:{turnInto:"Turn Into",textStyle:"Text Style",color:"Color"},dragMenu:{delete:"Delete",duplicate:"Duplicate",copy:"Copy",cut:"Cut",moveUp:"Move Up",moveDown:"Move Down"},codeBlock:{language:"Language",selectLanguage:"Select Language"},stats:{characters:"Characters",words:"Words",pages:"Pages",zoom:"Zoom",reset:"Reset",total:"Total"},placeholder:{default:"Type something...",heading:"Heading",paragraph:"Paragraph"},messages:{imageUploadFailed:"Image upload failed",imageUploadSuccess:"Image uploaded successfully",invalidImageFormat:"Invalid image format",imageTooLarge:"Image is too large",networkError:"Network error, please try again",pasteCleanedUp:"Pasted content has been cleaned up",linkRequired:"Link URL is required",linkInvalid:"Invalid link URL",translationFailed:"Translation failed",polishFailed:"Polish failed",summarizeFailed:"Summarize failed",continueWritingFailed:"Continue writing failed",customAiFailed:"Custom AI failed"},editor:{h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",paragraph:"Paragraph",heading:"Heading",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strikethrough",inlineCode:"Code",superscript:"Superscript",subscript:"Subscript",bulletList:"Bullet List",orderedList:"Numbered List",taskList:"Task List",align:"Align",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Justify",indent:"Indent",outdent:"Outdent",indentAndAlign:"Indent and Align",colors:"Colors",text:"Text",highlight:"Highlight",textColor:"Text Color",backgroundColor:"Background Color",defaultColors:"Default Colors",standardColors:"Standard Colors",showAdvanced:"Advanced Picker",hideAdvanced:"Hide",clearColor:"Clear Color",actions:"Actions",cut:"Cut",copy:"Copy",delete:"Delete",undo:"Undo",redo:"Redo",undoDisabledInCollab:"Disabled in collaboration mode",redoDisabledInCollab:"Disabled in collaboration mode",clearFormat:"Clear Format",formatPainter:"Format Painter",font:"Font",fontSize:"Font Size",lineHeight:"Line Height",insertLink:"Insert Link",insertImage:"Insert Image",insertTable:"Insert Table",image:"Image",link:"Link",editLink:"Edit Link",openLink:"Open Link",removeLink:"Remove Link",linkPlaceholder:"Enter link URL",imagePlaceholder:"Enter image URL",deleteTable:"Delete Table",includeHeader:"Include Header",localUpload:"Local Upload",localUploadImage:"Upload Image from Local",webUpload:"Web Upload",clickOrDragUpload:"Click or drag file to this area to upload",onlySupportImage:"Only image formats are supported",video:"Video",localUploadVideo:"Upload Video from Local",uploadVideo:"Upload Video",onlySupportVideo:"Only video formats are supported",supportImageAndVideo:"Image and video formats are supported",word:"Word",importWord:"Import Word",exportWord:"Export Word",clickOrDragUploadWord:"Click or drag Word file to this area",onlySupportDocx:"Only .docx format is supported",importing:"Importing...",exporting:"Exporting...",exportFilenamePlaceholder:"Enter file name",importSuccess:"Word file imported successfully",exportSuccess:"Word file exported successfully",importFailed:"Word file import failed",exportFailed:"Word file export failed",more:"More",aiTool:"AI Tool",ai:"AI",pleaseSelectTextToSample:"Please select text to sample first",pleaseSelectTextToSampleShort:"Please select text first",pleaseSelectTextToSampleDouble:"Please double-click to select text to sample",sampleSuccessSingle:"Format sampled successfully, click target text to apply format",sampleSuccessContinuous:"Format sampled successfully, you can click multiple target texts to apply format",formatPainterExited:"Format painter mode exited",collaborationNoFormatPainter:"Format painter is not supported in collaboration mode",enterValidLink:"Please enter a valid link URL",math:"Math Formula",mathInline:"Inline Formula",mathBlock:"Block Formula",mathPlaceholder:"Enter LaTeX formula...",mathEmpty:"Click to edit formula",insertTemplate:"Insert Template",templateMeetingMinutes:"Meeting Minutes",templateMeetingMinutesDesc:"Meeting template with agenda, decisions, and action items",templateWeeklyReport:"Weekly Report",templateWeeklyReportDesc:"Weekly report with completed, in progress, and planned items",templateDailyReport:"Daily Report",templateDailyReportDesc:"Daily report with today's work and tomorrow's plan",templateProjectPlan:"Project Plan",templateProjectPlanDesc:"Project document with overview, implementation, and risk assessment",templateProductRequirement:"Product Requirement",templateProductRequirementDesc:"Product Requirement Document (PRD) template",imageGallery:"Image Gallery",galleryEmpty:"No Images",galleryEmptyHint:"No images have been inserted in this document yet",galleryCount:"{total} total, {selected} selected",galleryInsert:"Insert Selected",continueWriting:"Continue Writing",polish:"Polish Text",summarize:"Summarize Content",translate:"Translate",translateTo:"Translate to {lang}",customAi:"Custom AI",selectLanguage:"Select Language",aiSuggestion:"AI Suggestion",aiContinueWriting:"AI Continue Writing:",originalText:"Original:",suggestedText:"Suggestion:",generatedContent:"Generated Content:",generating:"Generating...",selectedContent:"Selected Content:",currentStatus:"Current Status",noTextSelected:"No text selected, AI content will be inserted at cursor position",pleaseSelectText:"Please select text first",continueWritingRequiresSelection:"Continue writing requires selecting text to continue",polishRequiresSelection:"Polish function requires selecting text to polish first",summarizeRequiresSelection:"Summarize function requires selecting text to summarize first",translateRequiresSelection:"Translation function requires selecting text to translate first",customAiRequiresSelection:"Custom AI function requires selecting text to process first",aiPrompt:"AI Prompt",aiPromptPlaceholder:"Enter AI instruction, e.g.: Optimize this text, Translate to English...",customAiCommand:"Custom AI Command",customAiPromptPlaceholder:"Enter your AI instruction, e.g.: Please optimize this text, Please translate to English, Please summarize key points, etc.",execute:"Execute",cancel:"Cancel",reject:"Reject",accept:"Accept",lang:{"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese",zh:"Chinese",en:"English",ja:"Japanese",th:"Thai",fr:"French",es:"Spanish",pt:"Portuguese",ko:"Korean",vi:"Vietnamese",ru:"Russian",de:"German",hi:"Hindi",id:"Indonesian",ar:"Arabic"}},versionHistory:{title:"Version History",saveVersion:"Save Version",noVersions:"No versions yet",autoSave:"Auto-saved",words:"words",justNow:"Just now",minutesAgo:"minutes ago",hoursAgo:"hours ago",daysAgo:"days ago",restore:"Restore",compare:"Compare",rename:"Rename",delete:"Delete",comparing:"Comparing",clearCompare:"Clear",versionName:"Version name",saved:"Version saved",restored:"Version restored",deleted:"Version deleted",noDiff:"No differences"},slashCommand:{noResults:"No results",basicBlocks:"Basic Blocks",lists:"Lists",advanced:"Advanced",paragraph:"Paragraph",paragraphDesc:"Plain text paragraph",heading1:"Heading 1",heading1Desc:"Large heading",heading2:"Heading 2",heading2Desc:"Medium heading",heading3:"Heading 3",heading3Desc:"Small heading",bulletList:"Bullet List",bulletListDesc:"Create a bullet list",orderedList:"Numbered List",orderedListDesc:"Create a numbered list",taskList:"Task List",taskListDesc:"Create a to-do list",blockquote:"Quote",blockquoteDesc:"Insert a quote block",codeBlock:"Code Block",codeBlockDesc:"Insert a code snippet",table:"Table",tableDesc:"Insert a 3×3 table",image:"Image",imageDesc:"Insert an image via URL",imageUrlPrompt:"Enter image URL",horizontalRule:"Divider",horizontalRuleDesc:"Insert a horizontal divider"},aiSettings:{title:"AI Settings",provider:"AI Provider",apiKeyPlaceholder:"Enter API Key",apiKeyHint:"API Key is stored locally in your browser and will not be uploaded to any server",endpoint:"API Endpoint",model:"Model",enableAi:"Enable AI Features",testConnection:"Test Connection",testing:"Testing...",testSuccess:"Connection Successful",testFailed:"Connection Failed",viewDocs:"View Docs",save:"Save",cancel:"Cancel",clear:"Clear Config"}},B={"zh-CN":S,"zh-TW":E,"en-US":C},W=e.ref("zh-CN"),I=e.ref({});function M(e,t){if(!e)return t;const n=t.split(".");let i=e;for(const r of n){if(null==i||"object"!=typeof i)return t;i=i[r]}return"string"==typeof i?i:t}function R(e,t){const n=W.value;let i=e;if(I.value[n]){const t=M(I.value[n],e);t!==e&&(i=t)}if(i===e){const t=B[n];if(t){const n=M(t,e);n!==e&&(i=n)}}if(i===e&&"en-US"!==n){const t=M(B["en-US"],e);t!==e&&(i=t)}return t&&i!==e&&Object.entries(t).forEach(([e,t])=>{i=i.replace(new RegExp(`\\{${e}\\}`,"g"),String(t))}),i}function z(e){e?.locale&&(W.value=e.locale),e?.messages&&(I.value=e.messages)}function _(){return{t:R,locale:e.computed(()=>W.value),setLocale:e=>{W.value=e},availableLocales:Object.keys(B)}}const O=["disabled"],P={class:"tt-toolbar-button__content"},L=e.defineComponent({U:"ToolbarButton",props:{icon:{},title:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},size:{default:"medium"}},emits:["click","dblclick"],setup(t,{emit:i}){const r=t,o=i;function a(){r.disabled||o("click")}function s(){r.disabled||o("dblclick")}return(i,r)=>(e.openBlock(),e.createBlock(e.unref(n.Tooltip),{title:t.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(["tt-toolbar-button",`tt-toolbar-button--${t.size}`,{"is-active":t.active,"is-danger":t.danger}]),disabled:t.disabled,type:"button",onClick:a,onDblclick:s},[e.createElementVNode("span",P,[e.renderSlot(i.$slots,"icon",{},()=>[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0})):e.createCommentVNode("",!0)]),e.renderSlot(i.$slots,"default")])],42,O)]),T:3},8,["title"]))}}),N=e.reactive({userInfo:null});function q(e){N.userInfo=e}function j(){return{userInfo:e.readonly(N).userInfo,setUserInfo:q,getUserInfo:()=>N.userInfo}}const H=e.ref("light");function V(){const t=e.computed(()=>H.value),n=e.computed(()=>"dark"===H.value),i=e=>{H.value=e,"undefined"!=typeof document&&document.documentElement.setAttribute("data-theme",e)};return{theme:e.readonly(t),isDark:e.readonly(n),setTheme:i,toggleTheme:()=>{i("light"===H.value?"dark":"light")}}}const $=(e,t)=>{const n=e.S||e;for(const[i,r]of t)n[i]=r;return n},G=$(e.defineComponent({U:"ToolbarGroup",props:{direction:{default:"horizontal"},gap:{default:4},divider:{type:Boolean,default:!1},dividerColor:{default:void 0}},setup(t){const n=t,{isDark:i}=V(),r=e.computed(()=>({gap:`${n.gap}px`})),o=e.computed(()=>"horizontal"===n.direction?"vertical":"horizontal"),a=e.computed(()=>n.dividerColor?n.dividerColor:i.value?"#434343":"#e8e8e8");return(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["toolbar-group",`toolbar-group--${t.direction}`,{"toolbar-group--with-divider":t.divider}]),style:e.normalizeStyle(r.value)},[e.renderSlot(n.$slots,"default",{},void 0,!0),t.divider?(e.openBlock(),e.createBlock(e.unref(K),{key:0,direction:o.value,color:a.value},null,8,["direction","color"])):e.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-de575c0d"]]),K=$(e.defineComponent({U:"ToolbarDivider",props:{direction:{default:"vertical"},color:{default:"#e8e8e8"}},setup(t){const n=t,i=e.computed(()=>"vertical"===n.direction?{width:"1px",height:"100%",backgroundColor:n.color,marginLeft:"8px",marginRight:"8px"}:{height:"1px",width:"100%",backgroundColor:n.color,marginTop:"8px",marginBottom:"8px"});return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tt-toolbar-divider",`tt-toolbar-divider--${t.direction}`]),style:e.normalizeStyle(i.value)},null,6))}}),[["__scopeId","data-v-077c50ed"]]),Z={class:"tt-dropdown-btn__content"},X={key:1,class:"tt-dropdown-btn__label"},Y={class:"tt-dropdown-menu-item"},J={class:"tt-dropdown-menu-item__label"},Q={class:"tt-dropdown-menu-item"},ee={class:"tt-dropdown-menu-item__label"},te={class:"tt-translate-split__main"},ne=["onClick"],ie=["title"],re={class:"tt-dropdown-menu-item"},oe={class:"tt-dropdown-menu-item__label"},ae={class:"tt-dropdown-menu-item"},se={class:"tt-dropdown-menu-item__label"},ce=e.defineComponent({U:"ToolbarDropdownButton",props:{icon:{},label:{},title:{},active:{type:Boolean,default:!1},items:{},placement:{default:"bottom"}},emits:["select"],setup(t,{emit:r}){const o={},a=e.ref(!1),s=t,c=r,u=e.ref(!1),l=e.computed(()=>!1),d=e.computed(()=>"");let h=null;function f(){h&&(clearTimeout(h),h=null)}function m(){f(),h=window.setTimeout(()=>{u.value=!1},150)}function p(){l.value||(f(),u.value=!0)}function g(){l.value||m()}function b(){f()}function v(){m()}function y(e){l.value&&(u.value=e)}function w(e,t){for(const n of e){if(n.key===t)return n;if(n.children?.length){const e=w(n.children,t);if(e)return e}}}function x(e){const t=w(s.items,e.key);t&&(a.value=!1,t.action?.(),c("select",e.key))}function D(e){const t=w(s.items,e.key);t&&(t.label,t.action?.(),c("select",e.key))}return e.onBeforeUnmount(()=>{f()}),(r,s)=>{const c=e.resolveComponent("a-button"),h=e.resolveComponent("a-menu-item"),f=e.resolveComponent("a-sub-menu"),m=e.resolveComponent("a-menu"),w=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(w,{placement:t.placement,trigger:["click"],open:a.value,"onUpdate:open":s[0]||(s[0]=e=>a.value=e)},{overlay:e.withCtx(()=>[e.createVNode(m,{onClick:x,style:{"max-height":"360px","overflow-y":"auto"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.key},[t.children&&t.children.length&&"translate"!==t.key?(e.openBlock(),e.createBlock(f,{key:t.key+":submenu"},{title:e.withCtx(()=>[e.createElementVNode("span",Y,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"tt-dropdown-menu-item__icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",J,e.toDisplayString(t.label),1)])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,t=>(e.openBlock(),e.createBlock(h,{key:t.key,disabled:t.disabled,danger:t.danger},{default:e.withCtx(()=>[e.createElementVNode("span",Q,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"tt-dropdown-menu-item__icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",ee,e.toDisplayString(t.label),1)])]),T:2},1032,["disabled","danger"]))),128))]),T:2},1024)):t.children&&"translate"===t.key?(e.openBlock(),e.createBlock(h,{key:t.key+":translate"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"tt-translate-split",onMouseenter:p,onMouseleave:g},[e.createElementVNode("span",te,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"tt-dropdown-menu-item__icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",{class:"tt-dropdown-menu-item__label",onClick:e.withModifiers(e=>function(e){l.value?e.action?.():u.value=!0}(t),["stop"])},e.toDisplayString(l.value?e.unref(R)("editor.translateTo")+o:e.unref(R)("editor.selectLanguage")),9,ne)]),e.createVNode(w,{trigger:l.value?["hover"]:[],placement:"rightTop",open:u.value,onOpenChange:y},{overlay:e.withCtx(()=>[e.createElementVNode("div",{class:"tt-translate-overlay",onMouseenter:b,onMouseleave:v},[e.createVNode(m,{onClick:D,class:"tt-dropdown-overlay",selectedKeys:d.value?[d.value]:[]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,t=>(e.openBlock(),e.createBlock(h,{key:t.key,disabled:t.disabled,danger:t.danger},{default:e.withCtx(()=>[e.createElementVNode("span",re,[e.createElementVNode("span",oe,e.toDisplayString(t.label),1)])]),T:2},1032,["disabled","danger"]))),128))]),T:2},1032,["selectedKeys"])],32)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"tt-translate-split__arrow",title:e.unref(R)("editor.selectLanguage")},[e.createVNode(e.unref(i.RightOutlined))],8,ie)]),T:2},1032,["trigger","open"])],32)]),T:2},1024)):(e.openBlock(),e.createBlock(h,{key:t.key,disabled:t.disabled,danger:t.danger,class:e.normalizeClass({"ant-menu-item-selected":t.active})},{default:e.withCtx(()=>[e.createElementVNode("span",ae,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"tt-dropdown-menu-item__icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",se,e.toDisplayString(t.label),1)])]),T:2},1032,["disabled","danger","class"]))],64))),128))]),T:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(n.Tooltip),{title:t.title,placement:"top",open:!a.value&&void 0},{default:e.withCtx(()=>[e.createVNode(c,{type:"text",class:e.normalizeClass(["tt-dropdown-btn",{"is-active":t.active}])},{default:e.withCtx(()=>[e.createElementVNode("span",Z,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"tt-dropdown-btn__icon"})):e.createCommentVNode("",!0),t.label?(e.openBlock(),e.createElementBlock("span",X,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createVNode(e.unref(i.DownOutlined),{class:"tt-dropdown-btn__arrow"})])]),T:1},8,["class"])]),T:1},8,["title","open"])]),T:1},8,["placement","open"])}}}),ue={class:"tt-color-picker-content"},le={class:"tt-color-picker-header"},de=["title"],he={class:"tt-color-picker-preview"},fe={class:"tt-color-picker-title"},me=["title"],pe={class:"tt-color-picker-section"},ge={class:"tt-color-picker-section-title"},be=["onClick","title"],ve={class:"tt-color-picker-section"},ye={class:"tt-color-picker-section-title"},we=["onClick","title"],xe={key:0,class:"tt-color-picker-advanced"},De={class:"tt-color-picker-advanced-header"},Ue={class:"tt-color-picker-advanced-title"},Te=["title"],ke={class:"tt-color-picker-advanced-content"},Ae={key:1,class:"tt-color-current-preview"},Fe=$(e.defineComponent({U:"ColorPicker",props:{columns:{default:10},itemSize:{default:20},modelValue:{default:void 0},gap:{default:8},icon:{default:void 0},type:{default:"text"},title:{default:void 0}},emits:["update:modelValue","select"],setup(t,{emit:r}){const o=t,a=r,s=["#ffffff","#f2f2f2","#e0e0e0","#ffcccc","#ffcc99","#ffffcc","#ccffcc","#cce5ff","#e4d9ff","#ffd9e6","#f5f5f5","#e6e6e6","#c0c0c0","#ff9999","#ff9966","#ffff99","#99ff99","#99ccff","#ccb3ff","#ffb3cc","#d9d9d9","#cccccc","#808080","#ff6666","#ff9900","#ffff00","#66ff66","#6699ff","#9966ff","#ff6699","#a6a6a6","#999999","#595959","#ff0000","#ff7700","#ffd700","#00ff00","#0066ff","#6600cc","#ff0066","#000000","#666666","#404040","#990000","#cc6600","#cccc00","#006600","#003366","#330066","#cc0033"],c=["#c00000","#ff6600","#ffc000","#92d050","#00b050","#00b0f0","#0070c0","#0050d0","#002060","#7030a0"],u=e=>e?.trim().toLowerCase()||"#000000",l=e.computed(()=>u(o.modelValue)),d=e.computed(()=>o.title?o.title:"text"===o.type?R("editor.textColor"):R("editor.backgroundColor")),h=e=>{if(!e||"transparent"===e)return"#000";let t=e.replace("#","");if(3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length)return"#000";return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>120?"#000":"#fff"},f=e.computed(()=>"text"===o.type?{color:l.value}:{backgroundColor:l.value,color:h(l.value)}),m=e.computed(()=>({gridTemplateColumns:`repeat(${o.columns}, ${o.itemSize}px)`})),p=e.computed(()=>({gridTemplateColumns:`repeat(10, ${o.itemSize}px)`})),g=e.ref(!1),b=e.ref(!1),v=e.ref(l.value||"#000000");e.watch(b,e=>{e&&(v.value=l.value||"#000000")});const y=e=>{a("update:modelValue",e),a("select",e)},w=e=>{y(u(e))},x=()=>{y("text"===o.type?"#000000":"transparent")},D=e=>{const t=e.target,n=u(t.value);v.value=n,y(n)},U=e=>{let t=e.target.value.trim();if(t&&!t.startsWith("#")&&(t="#"+t),/^#[0-9A-Fa-f]{6}$/.test(t)||/^#[0-9A-Fa-f]{3}$/.test(t)){const e=u(t);v.value=e,y(e)}};return e.watch(l,e=>{b.value&&(v.value=e)}),(r,a)=>(e.openBlock(),e.createBlock(e.unref(n.Popover),{trigger:"click",placement:"bottomLeft",open:g.value,"onUpdate:open":a[4]||(a[4]=e=>g.value=e),"overlay-class-name":"tt-color-picker-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createElementVNode("div",le,[e.createElementVNode("button",{class:"tt-color-picker-preview-btn",type:"button",onClick:a[0]||(a[0]=e.withModifiers(e=>b.value=!0,["stop"])),title:e.unref(R)("editor.showAdvanced")},[e.createElementVNode("div",he,[e.createElementVNode("div",{class:"tt-color-picker-preview-color",style:e.normalizeStyle({backgroundColor:l.value})},null,4)])],8,de),a[5]||(a[5]=e.createElementVNode("div",{class:"tt-color-picker-separator"},null,-1)),e.createElementVNode("div",fe,e.toDisplayString(e.unref(R)("editor.colors")),1),e.createElementVNode("div",{class:e.normalizeClass(["tt-color-picker-preview-text",{"is-background":"background"===t.type}]),style:e.normalizeStyle(f.value)}," A ",6),e.createElementVNode("button",{class:"tt-color-clear-btn",type:"button",onClick:e.withModifiers(x,["stop"]),title:e.unref(R)("editor.clearColor")},[e.createVNode(e.unref(i.StopOutlined),{class:"tt-color-clear-icon"})],8,me)]),e.createElementVNode("div",pe,[e.createElementVNode("div",ge,e.toDisplayString(e.unref(R)("editor.defaultColors")),1),e.createElementVNode("div",{class:"tt-color-picker-grid",style:e.normalizeStyle(m.value)},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,t=>e.createElementVNode("button",{key:t,class:e.normalizeClass(["tt-color-picker__item",{"is-selected":l.value===u(t)}]),style:e.normalizeStyle({width:`${o.itemSize}px`,height:`${o.itemSize}px`,backgroundColor:t}),type:"button",onClick:e=>w(t),title:t},null,14,be)),64))],4)]),e.createElementVNode("div",ve,[e.createElementVNode("div",ye,e.toDisplayString(e.unref(R)("editor.standardColors")),1),e.createElementVNode("div",{class:"tt-color-picker-grid",style:e.normalizeStyle(p.value)},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,t=>e.createElementVNode("button",{key:t,class:e.normalizeClass(["tt-color-picker__item",{"is-selected":l.value===u(t)}]),style:e.normalizeStyle({width:`${o.itemSize}px`,height:`${o.itemSize}px`,backgroundColor:t}),type:"button",onClick:e=>w(t),title:t},null,14,we)),64))],4)]),b.value?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",De,[e.createElementVNode("span",Ue,e.toDisplayString(e.unref(R)("editor.showAdvanced")),1),e.createElementVNode("button",{class:"tt-color-picker-advanced-close",type:"button",onClick:a[1]||(a[1]=e.withModifiers(e=>b.value=!1,["stop"])),title:e.unref(R)("editor.hideAdvanced")}," × ",8,Te)]),e.createElementVNode("div",ke,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[2]||(a[2]=e=>v.value=e),type:"color",class:"tt-color-picker-color-input",onChange:D},null,544),[[e.vModelText,v.value]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=e=>v.value=e),type:"text",class:"tt-color-picker-color-text",placeholder:"#000000",onInput:U},null,544),[[e.vModelText,v.value]])])])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.Tooltip),{title:d.value,placement:"top",open:!g.value&&void 0},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["tt-color-current-btn",{"has-icon":t.icon}])},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"tt-color-icon"})):(e.openBlock(),e.createElementBlock("div",Ae))],2)]),T:1},8,["title","open"])]),T:1},8,["open"]))}}),[["__scopeId","data-v-1d2744c4"]]);function Se(e){return t=>()=>{const n=e.value;n&&t(n.chain().focus()).run()}}function Ee(e,t,n=!0){const i=e.value;if(!i)return!1;let r=n?i.chain().focus():i.chain();for(const o of t)r=o(r);return r.run()}function Ce(e){return{isActive:(t,n)=>{const i=e.value;return!!i&&(n?i.isActive(t,n):i.isActive(t))},isHeadingActive:t=>{const n=e.value;return!!n&&n.isActive("heading",{level:t})},isActiveAlign:t=>{const n=e.value;return!!n&&n.isActive({textAlign:t})},canExecute:t=>{const n=e.value;if(!n)return!1;const i=n.can()[t];return"function"==typeof i&&i()}}}const Be=e.defineComponent({U:"TextFormatButtons",props:{editor:{},showCode:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),{isActive:a}=Ce(r),s=e.computed(()=>{const e=[{name:"bold",icon:i.BoldOutlined,title:R("editor.bold"),action:()=>o(e=>e.toggleBold())()},{name:"italic",icon:i.ItalicOutlined,title:R("editor.italic"),action:()=>o(e=>e.toggleItalic())()},{name:"underline",icon:i.UnderlineOutlined,title:R("editor.underline"),action:()=>o(e=>e.toggleUnderline?.()??e)()},{name:"strike",icon:i.StrikethroughOutlined,title:R("editor.strike"),action:()=>o(e=>e.toggleStrike())()}];return n.showCode&&e.push({name:"code",icon:i.CodeOutlined,title:R("editor.inlineCode"),activeCheck:()=>a("code")||a("codeBlock"),action:()=>{const e=r.value;if(!e)return;if(e.isActive("codeBlock"))return void o(e=>e.setParagraph())();const{from:t,to:n}=e.state.selection;let i=0;if(e.state.doc.nodesBetween(t,n,e=>{e.isTextblock&&i++}),i>1){const i=e.state.doc.textBetween(t,n,"\n");e.chain().focus().deleteSelection().insertContent({type:"codeBlock",attrs:{language:"plaintext"},content:i?[{type:"text",text:i}]:void 0}).run()}else o(e=>e.toggleCode())()}}),e});return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createBlock(e.unref(L),{key:t.name,icon:t.icon,title:t.title,active:t.activeCheck?t.activeCheck():e.unref(a)(t.name),onClick:t.action},null,8,["icon","title","active","onClick"]))),128))]),T:1}))}}),We=e.defineComponent({U:"ListTools",props:{editor:{},showTaskList:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),{isActive:a}=Ce(r),s=e.computed(()=>{const e=[{name:"bulletList",icon:i.UnorderedListOutlined,title:R("editor.bulletList"),action:()=>o(e=>e.toggleBulletList())()},{name:"orderedList",icon:i.OrderedListOutlined,title:R("editor.orderedList"),action:()=>o(e=>e.toggleOrderedList())()}];return n.showTaskList&&e.push({name:"taskList",icon:i.CheckSquareOutlined,title:R("editor.taskList"),action:()=>o(e=>e.toggleTaskList?.()??e)()}),e});return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createBlock(e.unref(L),{key:t.name,icon:t.icon,title:t.title,active:e.unref(a)(t.name),onClick:t.action},null,8,["icon","title","active","onClick"]))),128))]),T:1}))}}),Ie=[{label:"PMingLiU",value:"PMingLiU"},{label:"Microsoft YaHei",value:"Microsoft YaHei"},{label:"SimSun",value:"SimSun"},{label:"SimHei",value:"SimHei"},{label:"Arial",value:"Arial"},{label:"Times New Roman",value:"Times New Roman"},{label:"Courier New",value:"Courier New"},{label:"Monospace",value:"monospace"}],Me=[{label:"12",value:"12px"},{label:"14",value:"14px"},{label:"16",value:"16px"},{label:"18",value:"18px"},{label:"20",value:"20px"},{label:"24",value:"24px"},{label:"28",value:"28px"},{label:"32",value:"32px"}],Re=[{label:"正文",value:"paragraph"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],ze="PMingLiU",_e="16px",Oe=e.defineComponent({U:"HeadingDropdown",props:{editor:{}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=e.computed(()=>r.value?Re.map(e=>({key:e.value,label:R(`editor.${e.value}`),action:()=>function(e){const t=r.value;if(!t)return;const{from:n,to:i}=t.state.selection;if("paragraph"===e)return void t.chain().setParagraph().setTextSelection({from:n,to:i}).run();const o=Number(e.replace(/^h/,""));if(![1,2,3,4,5,6].includes(o))return;const a=t.state.selection.$from,s=a.start(a.depth),c=a.end(a.depth);t.chain().setHeading({level:o}).setTextSelection({from:s,to:c}).unsetMark("textStyle").setTextSelection({from:n,to:i}).run()}(e.value)})):[]);return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{icon:e.unref(i.FontSizeOutlined),title:e.unref(R)("editor.heading"),items:o.value,placement:"bottomLeft"},null,8,["icon","title","items"])]),T:1}))}}),Pe=$(e.defineComponent({U:"HeadingButtons",props:{editor:{},levels:{default:()=>[1,2,3]}},setup(t){const n=t,i=e.computed(()=>n.editor??null),r=Se(i),{isHeadingActive:o}=Ce(i),a=e.computed(()=>n.levels.map(e=>({level:e,action:r(t=>t.toggleHeading({level:e})),title:R(`editor.h${e}`)})));return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createBlock(e.unref(L),{key:t.level,title:t.title,active:e.unref(o)(t.level),onClick:t.action,class:"heading-btn","data-level":t.level},{default:e.withCtx(()=>[e.createTextVNode(" H"+e.toDisplayString(t.level),1)]),T:2},1032,["title","active","onClick","data-level"]))),128))]),T:1}))}}),[["__scopeId","data-v-07b967f9"]]),Le=e.defineComponent({U:"AlignDropdown",props:{editor:{}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),{isActiveAlign:a}=Ce(r),s=e.computed(()=>[{key:"align-left",label:R("editor.alignLeft"),icon:i.AlignLeftOutlined,action:()=>u("left")},{key:"align-center",label:R("editor.alignCenter"),icon:i.AlignCenterOutlined,action:()=>u("center")},{key:"align-right",label:R("editor.alignRight"),icon:i.AlignRightOutlined,action:()=>u("right")},{key:"align-justify",label:R("editor.alignJustify"),icon:i.MenuOutlined,action:()=>u("justify")}]),c=e.computed(()=>a("center")?i.AlignCenterOutlined:a("right")?i.AlignRightOutlined:a("justify")?i.MenuOutlined:i.AlignLeftOutlined);function u(e){o(t=>t.setTextAlign(e))()}return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{icon:c.value,title:e.unref(R)("editor.align"),items:s.value,placement:"bottomLeft"},null,8,["icon","title","items"])]),T:1}))}}),Ne={class:"ant-upload-drag-icon"},qe={class:"ant-upload-text"},je={class:"ant-upload-hint"},He={class:"ant-upload-drag-icon"},Ve={class:"ant-upload-text"},$e={class:"ant-upload-hint"},Ge=e.defineComponent({U:"ImageUpload",props:{editor:{},uploadImage:{type:Function,default:void 0},uploadVideo:{type:Function,default:void 0}},setup(t){const n=t,r=Se(e.computed(()=>n.editor??null)),o=e.ref(!1),a=e.ref(""),s=e.ref(!1),c=e.ref(!1),u=e.computed(()=>[{key:"upload-local",label:R("editor.localUpload"),icon:i.UploadOutlined,action:()=>s.value=!0},{key:"upload-url",label:R("editor.webUpload"),icon:i.LinkOutlined,action:()=>o.value=!0},{key:"upload-video",label:R("editor.uploadVideo"),icon:i.VideoCameraOutlined,action:()=>c.value=!0}]);function l(){a.value&&r(e=>e.insertContent({type:"image",attrs:{src:a.value}}))(),o.value=!1,a.value=""}async function d(e){const{file:t,onSuccess:i,onError:o}=e||{};try{let e;e=n.uploadImage?await n.uploadImage(t):await new Promise((e,n)=>{const i=new FileReader;i.onload=()=>e(String(i.result)),i.onerror=n,i.readAsDataURL(t)}),r(t=>t.insertContent({type:"image",attrs:{src:e}}))(),s.value=!1,i&&i({url:e})}catch(a){o&&o(a)}}async function h(e){const{file:t,onSuccess:i,onError:o}=e||{};try{let e;e=n.uploadVideo?await n.uploadVideo(t):await new Promise((e,n)=>{const i=new FileReader;i.onload=()=>e(String(i.result)),i.onerror=n,i.readAsDataURL(t)}),r(t=>t.insertContent({type:"video",attrs:{src:e}}))(),c.value=!1,i&&i({url:e})}catch(a){o&&o(a)}}return(t,n)=>{const r=e.resolveComponent("a-input"),f=e.resolveComponent("a-modal"),m=e.resolveComponent("a-upload-dragger");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{icon:e.unref(i.PictureOutlined),title:e.unref(R)("editor.image"),items:u.value,placement:"bottomLeft"},null,8,["icon","title","items"])]),T:1}),e.createVNode(f,{open:o.value,"onUpdate:open":n[1]||(n[1]=e=>o.value=e),title:e.unref(R)("editor.insertImage"),onOk:l},{default:e.withCtx(()=>[e.createVNode(r,{value:a.value,"onUpdate:value":n[0]||(n[0]=e=>a.value=e),placeholder:e.unref(R)("editor.imagePlaceholder")},null,8,["value","placeholder"])]),T:1},8,["open","title"]),e.createVNode(f,{open:s.value,"onUpdate:open":n[2]||(n[2]=e=>s.value=e),title:e.unref(R)("editor.localUploadImage"),footer:null},{default:e.withCtx(()=>[e.createVNode(m,{"show-upload-list":!1,"custom-request":d,accept:"image/*",multiple:""},{default:e.withCtx(()=>[e.createElementVNode("p",Ne,[e.createVNode(e.unref(i.InboxOutlined))]),e.createElementVNode("p",qe,e.toDisplayString(e.unref(R)("editor.clickOrDragUpload")),1),e.createElementVNode("p",je,e.toDisplayString(e.unref(R)("editor.onlySupportImage")),1)]),T:1})]),T:1},8,["open","title"]),e.createVNode(f,{open:c.value,"onUpdate:open":n[3]||(n[3]=e=>c.value=e),title:e.unref(R)("editor.localUploadVideo"),footer:null},{default:e.withCtx(()=>[e.createVNode(m,{"show-upload-list":!1,"custom-request":h,accept:"video/*",multiple:""},{default:e.withCtx(()=>[e.createElementVNode("p",He,[e.createVNode(e.unref(i.InboxOutlined))]),e.createElementVNode("p",Ve,e.toDisplayString(e.unref(R)("editor.clickOrDragUpload")),1),e.createElementVNode("p",$e,e.toDisplayString(e.unref(R)("editor.onlySupportVideo")),1)]),T:1})]),T:1},8,["open","title"])],64)}}}),Ke=r.extend({name:"image",addOptions(){return{...this.parent?.(),HTMLAttributes:{},inline:!0,allowBase64:!0,enableResize:!0}},addAttributes(){const e=e=>({default:null,parseHTML:t=>{const n=t.getAttribute(e);return n?parseInt(n,10):null},renderHTML:t=>t[e]?{[e]:t[e]}:{}});return{...this.parent?.(),width:e("width"),height:e("height"),align:{default:null,parseHTML:e=>{const t=e.getAttribute("data-align")||e.style.textAlign||e.parentElement?.style.textAlign;return"left"===t||"center"===t||"right"===t?t:null},renderHTML:e=>e.align?{"data-align":e.align}:{}}}},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:i})=>{const r=!1!==this.options.enableResize,o=document.createElement("div");o.className="resizable-image-wrapper",o.setAttribute("data-type","resizable-image-wrapper"),e.attrs.align&&(o.style.textAlign=e.attrs.align,o.setAttribute("data-align",e.attrs.align));const a=document.createElement("img");a.src=e.attrs.src,a.alt=e.attrs.alt||"",a.title=e.attrs.title||"",r&&(a.draggable=!0,a.style.cursor="move");e.attrs.width?(a.style.width=`${e.attrs.width}px`,a.style.height="auto"):e.attrs.height?(a.style.height=`${e.attrs.height}px`,a.style.width="auto"):(a.style.maxWidth="100%",a.style.height="auto"),a.onload=()=>{!e.attrs.width&&!e.attrs.height&&a.naturalWidth>0&&(a.style.width=`${a.naturalWidth}px`,a.style.height="auto")},Object.entries(t).forEach(([e,t])=>{"width"!==e&&"height"!==e&&"src"!==e&&"alt"!==e&&"title"!==e&&a.setAttribute(e,t)});let s=null;if(r&&(s=document.createElement("div"),s.className="resize-handle",s.setAttribute("contenteditable","false"),s.draggable=!1,o.appendChild(s)),o.appendChild(a),o.addEventListener("click",e=>{if(r&&s&&(e.target===s||s.contains(e.target)))return;e.stopPropagation();const t="function"==typeof n?n():null;null!=t&&i.commands.setNodeSelection(t)}),r&&(a.addEventListener("dragstart",e=>{const t="function"==typeof n?n():null;if(null!=t){const{state:n}=i,r=n.doc.nodeAt(t);if(r&&"image"===r.type.name&&e.dataTransfer){e.dataTransfer.effectAllowed="move";const t=a.cloneNode(!0);t.style.width=`${a.offsetWidth}px`,t.style.height=`${a.offsetHeight}px`,t.style.opacity="0.5",document.body.appendChild(t),e.dataTransfer.setDragImage(t,a.offsetWidth/2,a.offsetHeight/2),setTimeout(()=>{document.body.contains(t)&&document.body.removeChild(t)},0)}}}),s&&s.addEventListener("mousedown",e=>{e.stopPropagation()})),r&&s){let t=!1,r=0,c=0,u=0,l=0,d=1;const h=n=>{n.preventDefault(),n.stopPropagation(),a.draggable=!1,t=!0,r=n.clientX,c=n.clientY,u=e.attrs.width||a.offsetWidth||a.naturalWidth,l=e.attrs.height||a.offsetHeight||a.naturalHeight,d=a.naturalWidth&&a.naturalHeight?a.naturalHeight/a.naturalWidth:u&&l?l/u:1,document.addEventListener("mousemove",f),document.addEventListener("mouseup",m),o.classList.add("resizing")},f=e=>{if(!t)return;const n=e.clientX-r,i=e.clientY-c,o=Math.abs(n)>Math.abs(i)?n:i,s=Math.max(50,Math.min(2e3,u+o)),l=s*d;a.style.width=`${s}px`,a.style.height=`${l}px`},m=()=>{if(!t)return;t=!1;const e=parseInt(a.style.width,10),r=parseInt(a.style.height,10),s="function"==typeof n?n():null;if(null!=s){const{state:t,view:n}=i,{tr:o}=t,a=o.doc.nodeAt(s);a&&"image"===a.type.name&&(o.setNodeMarkup(s,void 0,{...a.attrs,width:e,height:r}),n.dispatch(o))}document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",m),o.classList.remove("resizing"),a.draggable=!0};s.addEventListener("mousedown",h)}return{dom:o,contentDOM:null,update:t=>(t.attrs.src!==e.attrs.src&&(a.src=t.attrs.src),t.attrs.width===e.attrs.width&&t.attrs.height===e.attrs.height||(t.attrs.width?(a.style.width=`${t.attrs.width}px`,a.style.height="auto"):t.attrs.height?(a.style.height=`${t.attrs.height}px`,a.style.width="auto"):(a.style.width="",a.style.height="",a.style.maxWidth="100%")),t.attrs.align!==e.attrs.align&&(t.attrs.align?(o.style.textAlign=t.attrs.align,o.setAttribute("data-align",t.attrs.align)):(o.style.textAlign="",o.removeAttribute("data-align"))),e=t,!0),destroy:()=>{}}}},renderHTML({HTMLAttributes:e}){const{width:t,height:n,...i}=e,r=[];return t&&r.push(`width: ${t}px`),n&&r.push(`height: ${n}px`),["img",{...i,...r.length>0?{style:r.join("; ")}:{}}]}}),Ze=$(e.defineComponent({U:"FontFamilySelect",props:{editor:{}},setup(t){const n=t,i=e.computed(()=>n.editor??null),r=Se(i),o=e.ref(ze);function a(e){const t=i.value;if(!t)return;o.value=e;const{from:n,to:a,empty:s}=t.state.selection;if(s){const r=t.state.selection.$from,o=r.start(r.depth),s=r.end(r.depth);Ee(i,[e=>e.setTextSelection({from:o,to:s}),t=>t.setFontFamily(e),e=>e.setTextSelection({from:n,to:a})])}else r(t=>t.setFontFamily(e))()}return e.watch(()=>i.value?.getAttributes("textStyle")?.fontFamily,e=>{o.value=e||ze},{deep:!0,immediate:!0}),(t,n)=>{const i=e.resolveComponent("a-select-option"),r=e.resolveComponent("a-select");return e.openBlock(),e.createBlock(r,{value:o.value,"onUpdate:value":n[0]||(n[0]=e=>o.value=e),placeholder:e.unref(R)("toolbar.fontFamily"),class:"font-family-select",style:{width:"140px"},onChange:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ie),t=>(e.openBlock(),e.createBlock(i,{key:t.value,value:t.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),T:2},1032,["value"]))),128))]),T:1},8,["value","placeholder"])}}}),[["__scopeId","data-v-492aeebe"]]),Xe=$(e.defineComponent({U:"FontSizeSelect",props:{editor:{}},setup(t){const n=t,i=e.computed(()=>n.editor??null),r=Se(i),o=e.ref(_e);function a(e){const t=i.value;if(!t)return;o.value=e;const{from:n,to:a,empty:s}=t.state.selection;if(s){const r=t.state.selection.$from,o=r.start(r.depth),s=r.end(r.depth);Ee(i,[e=>e.setTextSelection({from:o,to:s}),t=>t.setMark("textStyle",{fontSize:e}),e=>e.setTextSelection({from:n,to:a})])}else r(t=>t.setMark("textStyle",{fontSize:e}))()}return e.watch(()=>i.value?.getAttributes("textStyle")?.fontSize,e=>{o.value=e||_e},{deep:!0,immediate:!0}),(t,n)=>{const i=e.resolveComponent("a-select-option"),r=e.resolveComponent("a-select");return e.openBlock(),e.createBlock(r,{value:o.value,"onUpdate:value":n[0]||(n[0]=e=>o.value=e),placeholder:e.unref(R)("toolbar.fontSize"),class:"font-size-select",style:{width:"100px"},onChange:a},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Me),t=>(e.openBlock(),e.createBlock(i,{key:t.value,value:t.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),T:2},1032,["value"]))),128))]),T:1},8,["value","placeholder"])}}}),[["__scopeId","data-v-a6c374ed"]]),Ye=o.Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>e.style.fontSize||null,renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),Je=o.Extension.create({name:"lineHeight",addOptions:()=>({types:["paragraph","heading"],defaultLineHeight:"1.5"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:this.options.defaultLineHeight,parseHTML:e=>e.style.lineHeight||this.options.defaultLineHeight,renderHTML:e=>e.lineHeight?{style:`line-height: ${e.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:e=>({commands:t})=>this.options.types.every(n=>t.updateAttributes(n,{lineHeight:e})),unsetLineHeight:()=>({commands:e})=>this.options.types.every(t=>e.updateAttributes(t,{lineHeight:null}))}}}),Qe=e.defineComponent({U:"ClearFormatButton",props:{editor:{}},setup(t){const n=t,r=Se(e.computed(()=>n.editor??null));function o(){r(e=>e.clearNodes().unsetAllMarks())()}return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L),{icon:e.unref(i.ClearOutlined),title:e.unref(R)("editor.clearFormat"),onClick:o},null,8,["icon","title"])]),T:1}))}}),et=e.defineComponent({U:"LinkButton",props:{editor:{}},setup(t){const r=t,o=e.computed(()=>r.editor??null),a=e.ref(!1),s=e.ref(""),c=Se(o),{isActive:u}=Ce(o);function l(){const e=o.value;e&&(e.isActive("link")?s.value=e.getAttributes("link")?.href??"":s.value="",a.value=!0)}function d(e){return{href:e,target:"_blank",rel:"noopener noreferrer"}}function h(){const e=s.value.trim(),t=o.value;if(!t)return;if(!e)return c(e=>e.unsetLink())(),a.value=!1,void(s.value="");if(!function(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}(e))return void n.message.warning(R("editor.enterValidLink"));const i=!t.state.selection.empty,r=t.chain().focus();i?r.extendMarkRange("link").setLink(d(e)).run():r.insertContent([{type:"text",text:e,marks:[{type:"link",attrs:d(e)}]}]).run(),a.value=!1,s.value=""}return(t,n)=>{const r=e.resolveComponent("a-input"),o=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L),{icon:e.unref(i.LinkOutlined),title:e.unref(R)("editor.link"),active:e.unref(u)("link"),onClick:l},null,8,["icon","title","active"])]),T:1}),e.createVNode(o,{open:a.value,"onUpdate:open":n[1]||(n[1]=e=>a.value=e),title:e.unref(R)("editor.insertLink"),onOk:h,width:"400px"},{default:e.withCtx(()=>[e.createVNode(r,{value:s.value,"onUpdate:value":n[0]||(n[0]=e=>s.value=e),placeholder:e.unref(R)("editor.linkPlaceholder"),onKeyup:e.withKeys(h,["enter"])},null,8,["value","placeholder"])]),T:1},8,["open","title"])],64)}}}),tt={class:"table-insert-panel"},nt=["onMouseenter","onClick"],it={class:"attrs"},rt={class:"attr-row"},ot={class:"table-toolbar-section"},at={class:"table-menu-row"},st={class:"table-menu-group"},ct=["disabled","onClick","title"],ut={class:"table-menu-group"},lt=["disabled","onClick","title"],dt={class:"table-menu-row"},ht={class:"table-menu-group"},ft=["disabled","onClick","title"],mt=$(e.defineComponent({U:"TableButton",props:{editor:{}},setup(t){const r=t,o=e.computed(()=>r.editor??null),a=Se(o),{canExecute:s}=Ce(o),c=[{name:"addRowBefore",icon:i.InsertRowAboveOutlined,title:R("table.addRowBefore"),command:"addRowBefore",action:a(e=>e.addRowBefore())},{name:"addRowAfter",icon:i.InsertRowBelowOutlined,title:R("table.addRowAfter"),command:"addRowAfter",action:a(e=>e.addRowAfter())},{name:"deleteRow",icon:i.DeleteRowOutlined,title:R("table.deleteRow"),command:"deleteRow",action:a(e=>e.deleteRow())}],u=[{name:"addColumnBefore",icon:i.InsertRowLeftOutlined,title:R("table.addColumnBefore"),command:"addColumnBefore",action:a(e=>e.addColumnBefore())},{name:"addColumnAfter",icon:i.InsertRowRightOutlined,title:R("table.addColumnAfter"),command:"addColumnAfter",action:a(e=>e.addColumnAfter())},{name:"deleteColumn",icon:i.DeleteColumnOutlined,title:R("table.deleteColumn"),command:"deleteColumn",action:a(e=>e.deleteColumn())}],l=[{name:"mergeCells",icon:i.MergeCellsOutlined,title:R("table.mergeCells"),command:"mergeCells",action:a(e=>e.mergeCells())},{name:"splitCell",icon:i.SplitCellsOutlined,title:R("table.splitCell"),command:"splitCell",action:a(e=>e.splitCell())},{name:"toggleHeaderRow",icon:i.TableOutlined,title:R("table.toggleHeaderRow"),command:"toggleHeaderRow",action:a(e=>e.toggleHeaderRow())},{name:"toggleHeaderColumn",icon:i.TableOutlined,title:R("table.toggleHeaderColumn"),command:"toggleHeaderColumn",action:a(e=>e.toggleHeaderColumn())}],d=e.ref(!1),h=e.ref(!0),f=e.ref(0),m=e.ref(0);function p(){f.value=0,m.value=0}return(t,r)=>{const g=e.resolveComponent("a-checkbox"),b=e.resolveComponent("a-button");return e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(n.Popover),{trigger:"click",placement:"bottomLeft",open:d.value,"onUpdate:open":r[2]||(r[2]=e=>d.value=e)},{content:e.withCtx(()=>[e.createElementVNode("div",tt,[e.createElementVNode("div",{class:"grid",onMouseleave:p},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,t=>e.createElementVNode("div",{key:"r-"+t,class:"grid-row"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,n=>e.createElementVNode("div",{key:"c-"+t+"-"+n,class:e.normalizeClass(["grid-cell",t<=f.value&&n<=m.value?"active":""]),onMouseenter:e=>function(e,t){f.value=e,m.value=t}(t,n),onClick:e=>function(e,t){const n=Math.max(1,Number(e)),i=Math.max(1,Number(t));a(e=>e.insertTable({rows:n,cols:i,withHeaderRow:h.value}))(),d.value=!1}(t,n)},null,42,nt)),64))])),64))],32),e.createElementVNode("div",it,[e.createElementVNode("div",rt,[e.createVNode(g,{checked:h.value,"onUpdate:checked":r[0]||(r[0]=e=>h.value=e)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.includeHeader")),1)]),T:1},8,["checked"])]),e.createElementVNode("div",ot,[e.createElementVNode("div",at,[e.createElementVNode("div",st,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,t=>e.createElementVNode("button",{key:t.name,class:"table-menu-btn",disabled:!e.unref(s)(t.command),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],8,ct)),64))]),e.createElementVNode("div",ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,t=>e.createElementVNode("button",{key:t.name,class:"table-menu-btn",disabled:!e.unref(s)(t.command),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],8,lt)),64))])]),e.createElementVNode("div",dt,[e.createElementVNode("div",ht,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>e.createElementVNode("button",{key:t.name,class:"table-menu-btn",disabled:!e.unref(s)(t.command),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],8,ft)),64))])])]),e.createVNode(b,{type:"primary",danger:"",block:"",disabled:!o.value?.isActive("table"),onClick:r[1]||(r[1]=e=>{a(e=>e.deleteTable())(),d.value=!1})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.deleteTable")),1)]),T:1},8,["disabled"])])])]),default:e.withCtx(()=>[e.createVNode(e.unref(L),{icon:e.unref(i.TableOutlined),title:e.unref(R)("editor.insertTable")},null,8,["icon","title"])]),T:1},8,["open"])]),T:1})}}}),[["__scopeId","data-v-30d19ac4"]]),pt={class:"table-menu-content"},gt={class:"table-menu-row"},bt={class:"table-menu-group"},vt=["disabled","onClick","title"],yt={class:"table-menu-group"},wt=["disabled","onClick","title"],xt={class:"table-menu-row"},Dt={class:"table-menu-group"},Ut=["disabled","onClick","title"],Tt={class:"table-menu-group"},kt=["title"],At=$(e.defineComponent({U:"TableToolbar",props:{editor:{},readonly:{type:Boolean,default:!1},showMode:{default:2},enabled:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),{canExecute:c}=Ce(r),u=[{name:"addRowBefore",icon:i.InsertRowAboveOutlined,title:R("table.addRowBefore"),command:"addRowBefore",action:o(e=>e.addRowBefore())},{name:"addRowAfter",icon:i.InsertRowBelowOutlined,title:R("table.addRowAfter"),command:"addRowAfter",action:o(e=>e.addRowAfter())},{name:"deleteRow",icon:i.DeleteRowOutlined,title:R("table.deleteRow"),command:"deleteRow",action:o(e=>e.deleteRow())}],l=[{name:"addColumnBefore",icon:i.InsertRowLeftOutlined,title:R("table.addColumnBefore"),command:"addColumnBefore",action:o(e=>e.addColumnBefore())},{name:"addColumnAfter",icon:i.InsertRowRightOutlined,title:R("table.addColumnAfter"),command:"addColumnAfter",action:o(e=>e.addColumnAfter())},{name:"deleteColumn",icon:i.DeleteColumnOutlined,title:R("table.deleteColumn"),command:"deleteColumn",action:o(e=>e.deleteColumn())}],d=[{name:"mergeCells",icon:i.MergeCellsOutlined,title:R("table.mergeCells"),command:"mergeCells",action:o(e=>e.mergeCells())},{name:"splitCell",icon:i.SplitCellsOutlined,title:R("table.splitCell"),command:"splitCell",action:o(e=>e.splitCell())},{name:"toggleHeaderRow",icon:i.TableOutlined,title:R("table.toggleHeaderRow"),command:"toggleHeaderRow",action:o(e=>e.toggleHeaderRow())},{name:"toggleHeaderColumn",icon:i.TableOutlined,title:R("table.toggleHeaderColumn"),command:"toggleHeaderColumn",action:o(e=>e.toggleHeaderColumn())}],h=e=>{if(!n.enabled)return!1;if(n.readonly)return!1;if(1===n.showMode&&!e.editor.isActive("table"))return!1;if(2===n.showMode){const t=e.state?.selection;return t instanceof s.CellSelection}return!0};function f(){o(e=>e.deleteTable())()}return(n,o)=>r.value&&t.enabled?(e.openBlock(),e.createBlock(e.unref(a.BubbleMenu),{key:0,editor:r.value,"tippy-options":{duration:100,placement:"top",offset:[0,16]},"should-show":h,class:"table-bubble-menu"},{default:e.withCtx(()=>[e.createElementVNode("div",pt,[e.createElementVNode("div",gt,[e.createElementVNode("div",bt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,t=>e.createElementVNode("button",{key:t.name,class:"table-menu-btn",disabled:!e.unref(c)(t.command),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],8,vt)),64))]),e.createElementVNode("div",yt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>e.createElementVNode("button",{key:t.name,class:"table-menu-btn",disabled:!e.unref(c)(t.command),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],8,wt)),64))])]),e.createElementVNode("div",xt,[e.createElementVNode("div",Dt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(d,t=>e.createElementVNode("button",{key:t.name,class:"table-menu-btn",disabled:!e.unref(c)(t.command),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],8,Ut)),64))]),e.createElementVNode("div",Tt,[e.createElementVNode("button",{class:"table-menu-btn table-menu-btn--danger",onClick:f,title:e.unref(R)("editor.deleteTable")},[e.createVNode(e.unref(i.DeleteOutlined))],8,kt)])])])]),T:1},8,["editor"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-7017f628"]]);c.TableCell.extend({addAttributes(){return{...this.parent?.(),backgroundColor:{default:null,parseHTML:e=>e.getAttribute("data-background-color")||e.style.backgroundColor||null,renderHTML:e=>e.backgroundColor?{"data-background-color":e.backgroundColor,style:`background-color: ${e.backgroundColor}`}:{}},textAlign:{default:null,parseHTML:e=>e.getAttribute("data-text-align")||e.style.textAlign||null,renderHTML:e=>e.textAlign?{"data-text-align":e.textAlign,style:`text-align: ${e.textAlign}`}:{}}}}});const Ft=e.defineComponent({U:"SubscriptSuperscriptButton",props:{editor:{}},setup(t){const n=t,r=e.computed(()=>n.editor??null),{isActive:o}=Ce(r),a=e.computed(()=>[{name:"superscript",icon:i.SortDescendingOutlined,title:R("editor.superscript"),action:()=>{const e=r.value;e&&e.chain().focus().toggleSuperscript().run()}},{name:"subscript",icon:i.SortAscendingOutlined,title:R("editor.subscript"),action:()=>{const e=r.value;e&&e.chain().focus().toggleSubscript().run()}}]);return(t,n)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createBlock(e.unref(L),{key:t.name,icon:t.icon,title:t.title,active:e.unref(o)(t.name),onClick:t.action},null,8,["icon","title","active","onClick"]))),128))]),T:1}))}}),St=e.defineComponent({U:"UndoRedoButton",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),a=e.ref(!1),s=e.ref(!1),c=e.ref(!1);function u(){const e=r.value;if(!e)return a.value=!1,void(s.value=!1);try{const t=e.can().undo?.(),n=e.can().redo?.();a.value=t&&c.value,s.value=Boolean(n)}catch(t){a.value=!1,s.value=!1}}function l(){r.value&&(c.value=!0,u())}function d(){h();const t=r.value;t&&(c.value=!1,e.nextTick(()=>{u(),t.on("update",l),t.on("selectionUpdate",u),t.on("transaction",u),t.on("create",()=>{c.value=!1,u()})}))}function h(){const e=r.value;if(e)try{e.off("update",l),e.off("selectionUpdate",u),e.off("transaction",u),e.off("create",u)}catch(t){}}r.value&&d(),e.watch(r,d,{immediate:!0}),e.onBeforeUnmount(()=>{h()});const f=o(e=>e.undo()),m=o(e=>e.redo());return(n,r)=>(e.openBlock(),e.createBlock(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L),{icon:e.unref(i.UndoOutlined),title:t.disabled?e.unref(R)("editor.undoDisabledInCollab"):e.unref(R)("editor.undo"),disabled:t.disabled||!a.value,onClick:e.unref(f)},null,8,["icon","title","disabled","onClick"]),e.createVNode(e.unref(L),{icon:e.unref(i.RedoOutlined),title:t.disabled?e.unref(R)("editor.redoDisabledInCollab"):e.unref(R)("editor.redo"),disabled:t.disabled||!s.value,onClick:e.unref(m)},null,8,["icon","title","disabled","onClick"])]),T:1}))}}),Et="tiptap-format-painter-formats";function Ct(e){try{const t={};t.bold=e.isActive("bold"),t.italic=e.isActive("italic"),t.underline=e.isActive("underline"),t.strike=e.isActive("strike"),t.subscript=e.isActive("subscript"),t.superscript=e.isActive("superscript");const n=e.getAttributes("textStyle");t.color=n?.color??null,t.fontFamily=n?.fontFamily??null,t.fontSize=n?.fontSize??null,t.lineHeight=n?.lineHeight??null;const i=e.getAttributes("highlight");t.highlight=i?.color??null;const r=e.getAttributes("paragraph"),o=e.getAttributes("heading");return t.textAlign=r?.textAlign??o?.textAlign??null,t}catch(t){return null}}function Bt(e){try{localStorage.setItem(Et,JSON.stringify(e))}catch(t){}}function Wt(){try{const e=localStorage.getItem(Et);if(e)return JSON.parse(e)}catch(e){}return null}function It(e,t){try{const n=e.view.dom;t?n.classList.add("cursor-format-painter"):n.classList.remove("cursor-format-painter")}catch(n){}}function Mt(e){try{if(!e.extensionManager.extensions.some(e=>"collaboration"===e.name))return!1;const t=e;return Number(t?.storage?.I??0)>1}catch(t){return!1}}const Rt=o.Extension.create({name:"formatPainter",addStorage:()=>({isActive:!1,isContinuous:!1,formats:Wt()||{}}),addCommands(){return{startFormatPainting:e=>({editor:t})=>{if(Mt(t))return!1;try{const e=t.state.selection;if(!e||e.empty)return!1}catch(i){return!1}const n=Ct(t);return!!n&&(this.storage.formats=n,this.storage.isActive=!0,this.storage.isContinuous=2===e,Bt(n),It(t,!0),!0)},startContinuousFormatPainting:()=>({editor:e})=>{if(Mt(e))return!1;try{const t=e.state.selection;if(!t||t.empty)return!1}catch(n){return!1}const t=Ct(e);return!!t&&(this.storage.formats=t,this.storage.isActive=!0,this.storage.isContinuous=!0,Bt(t),It(e,!0),!0)},applyFormat:()=>({editor:e})=>{if(Mt(e))return this.storage.isActive&&(this.storage.isActive=!1,this.storage.isContinuous=!1,It(e,!1)),!1;if(!this.storage.isActive)return!1;try{const t=e.state.selection;if(!t||t.empty)return!1}catch(r){return!1}let t=this.storage.formats;if(!t||0===Object.keys(t).length){const e=Wt();e&&(this.storage.formats=e,t=e)}if(!t||0===Object.keys(t).length)return!1;const{from:n,to:i}=e.state.selection;try{const r=e.chain().focus();t.bold?r.setMark("bold"):r.unsetMark("bold"),t.italic?r.setMark("italic"):r.unsetMark("italic"),t.underline?r.setMark("underline"):r.unsetMark("underline"),t.strike?r.setMark("strike"):r.unsetMark("strike"),r.unsetMark("subscript").unsetMark("superscript"),t.subscript?r.setMark("subscript"):t.superscript&&r.setMark("superscript");const o={};t.color&&(o.color=t.color),t.fontFamily&&(o.fontFamily=t.fontFamily),t.fontSize&&(o.fontSize=t.fontSize),Object.keys(o).length>0?r.setMark("textStyle",o):r.unsetMark("textStyle"),t.highlight?r.setHighlight({color:t.highlight}):r.unsetHighlight?.(),r.run(),t.textAlign&&e.chain().focus().setTextSelection({from:n,to:i}).setTextAlign(t.textAlign).run(),t.lineHeight&&e.chain().focus().setTextSelection({from:n,to:i}).setLineHeight(t.lineHeight).run()}catch(r){return!1}return this.storage.isContinuous||(this.storage.isActive=!1,It(e,!1)),!0},cancelFormatPainting:()=>({editor:e})=>(this.storage.isActive=!1,this.storage.isContinuous=!1,this.storage.formats={},function(){try{localStorage.removeItem(Et)}catch(e){}}(),It(e,!1),!0),toggleContinuousMode:()=>()=>(this.storage.isContinuous=!this.storage.isContinuous,!0)}},addProseMirrorPlugins(){const e=this;return[new u.Plugin({props:{handleKeyDown:(t,n)=>!(!e.storage.isActive||"Escape"!==n.key)&&(e.editor?.commands.cancelFormatPainting(),!0),handleDOMEvents:{mouseup:()=>{const t=e.storage;return t.isActive&&e.editor&&requestAnimationFrame(()=>{if(t.isActive&&e.editor)try{const{state:t}=e.editor,{empty:n}=t.selection;n||e.editor.commands.applyFormat()}catch(n){}}),!1}}}})]}}),zt=e.defineComponent({U:"FormatPainterButton",props:{editor:{},disabled:{type:Boolean,default:void 0}},setup(t){const r=t,o=e.computed(()=>r.editor??null),a=e.computed(()=>{if(void 0!==r.disabled)return r.disabled;const e=o.value;if(!e)return!1;try{return!!e.extensionManager.extensions.find(e=>"collaboration"===e.name)}catch(t){return!1}});const s=e.ref(!1);function c(){const e=function(){const e=o.value;return e?.storage?.formatPainter}();s.value=Boolean(e?.isActive)}function u(){l();const e=o.value;e&&(c(),e.on("update",c),e.on("selectionUpdate",c),e.on("transaction",c))}function l(){const e=o.value;if(e)try{e.off("update",c),e.off("selectionUpdate",c),e.off("transaction",c)}catch(t){}}function d(){const e=o.value;if(!e)return;if(a.value)return void n.message.warning(R("editor.collaborationNoFormatPainter"));if(e.storage?.formatPainter?.isActive??!1)e.commands.cancelFormatPainting(),c(),n.message.info(R("editor.formatPainterExited"));else{try{const t=e.state.selection;if(!t||t.empty)return void n.message.warning(R("editor.pleaseSelectTextToSample"))}catch(t){return void n.message.warning(R("editor.pleaseSelectTextToSampleShort"))}e.commands.startFormatPainting()&&(n.message.success(R("editor.sampleSuccessSingle")),c())}}function h(){const e=o.value;if(!e)return;if(a.value)return void n.message.warning(R("editor.collaborationNoFormatPainter"));if(e.storage?.formatPainter?.isActive??!1)e.commands.cancelFormatPainting(),c(),n.message.info(R("editor.formatPainterExited"));else{try{const t=e.state.selection;if(!t||t.empty)return void n.message.warning(R("editor.pleaseSelectTextToSampleDouble"))}catch(t){return void n.message.warning(R("editor.pleaseSelectTextToSampleShort"))}e.commands.startContinuousFormatPainting()&&(n.message.success(R("editor.sampleSuccessContinuous")),c())}}return o.value&&u(),e.watch(o,u,{immediate:!0}),e.onBeforeUnmount(()=>{l()}),(t,n)=>(e.openBlock(),e.createBlock(e.unref(L),{icon:e.unref(i.FormatPainterOutlined),title:e.unref(R)("editor.formatPainter"),active:s.value,disabled:a.value,onClick:d,onDblclick:h},null,8,["icon","title","active","disabled"]))}});var _t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ot(e){return e&&e.M&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"M",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),n}var Lt={},Nt="1.13.7",qt="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},jt=Array.prototype,Ht=Object.prototype,Vt="undefined"!=typeof Symbol?Symbol.prototype:null,$t=jt.push,Gt=jt.slice,Kt=Ht.toString,Zt=Ht.hasOwnProperty,Xt="undefined"!=typeof ArrayBuffer,Yt="undefined"!=typeof DataView,Jt=Array.isArray,Qt=Object.keys,en=Object.create,tn=Xt&&ArrayBuffer.isView,nn=isNaN,rn=isFinite,on=!{toString:null}.propertyIsEnumerable("toString"),an=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],sn=Math.pow(2,53)-1;function cn(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var o=Array(t+1);for(r=0;r<t;r++)o[r]=arguments[r];return o[t]=i,e.apply(this,o)}}function un(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function ln(e){return null===e}function dn(e){return void 0===e}function hn(e){return!0===e||!1===e||"[object Boolean]"===Kt.call(e)}function fn(e){return!(!e||1!==e.nodeType)}function mn(e){var t="[object "+e+"]";return function(e){return Kt.call(e)===t}}const pn=mn("String"),gn=mn("Number"),bn=mn("Date"),vn=mn("RegExp"),yn=mn("Error"),wn=mn("Symbol"),xn=mn("ArrayBuffer");var Dn=mn("Function"),Un=qt.document&&qt.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof Un&&(Dn=function(e){return"function"==typeof e||!1});const Tn=Dn,kn=mn("Object");var An=Yt&&(!/\[native code\]/.test(String(DataView))||kn(new DataView(new ArrayBuffer(8)))),Fn="undefined"!=typeof Map&&kn(new Map),Sn=mn("DataView");const En=An?function(e){return null!=e&&Tn(e.getInt8)&&xn(e.buffer)}:Sn,Cn=Jt||mn("Array");function Bn(e,t){return null!=e&&Zt.call(e,t)}var Wn=mn("Arguments");!function(){Wn(arguments)||(Wn=function(e){return Bn(e,"callee")})}();const In=Wn;function Mn(e){return!wn(e)&&rn(e)&&!isNaN(parseFloat(e))}function Rn(e){return gn(e)&&nn(e)}function zn(e){return function(){return e}}function _n(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=sn}}function On(e){return function(t){return null==t?void 0:t[e]}}const Pn=On("byteLength"),Ln=_n(Pn);var Nn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const qn=Xt?function(e){return tn?tn(e)&&!En(e):Ln(e)&&Nn.test(Kt.call(e))}:zn(!1),jn=On("length");function Hn(e,t){t=function(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=an.length,i=e.constructor,r=Tn(i)&&i.prototype||Ht,o="constructor";for(Bn(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=an[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function Vn(e){if(!un(e))return[];if(Qt)return Qt(e);var t=[];for(var n in e)Bn(e,n)&&t.push(n);return on&&Hn(e,t),t}function $n(e){if(null==e)return!0;var t=jn(e);return"number"==typeof t&&(Cn(e)||pn(e)||In(e))?0===t:0===jn(Vn(e))}function Gn(e,t){var n=Vn(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function Kn(e){return e instanceof Kn?e:this instanceof Kn?void(this.R=e):new Kn(e)}function Zn(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Pn(e))}Kn.VERSION=Nt,Kn.prototype.value=function(){return this.R},Kn.prototype.valueOf=Kn.prototype.toJSON=Kn.prototype.value,Kn.prototype.toString=function(){return String(this.R)};var Xn="[object DataView]";function Yn(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var r=typeof e;return("function"===r||"object"===r||"object"==typeof t)&&Jn(e,t,n,i)}function Jn(e,t,n,i){e instanceof Kn&&(e=e.R),t instanceof Kn&&(t=t.R);var r=Kt.call(e);if(r!==Kt.call(t))return!1;if(An&&"[object Object]"==r&&En(e)){if(!En(t))return!1;r=Xn}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0===+e?1/+e==1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return Vt.valueOf.call(e)===Vt.valueOf.call(t);case"[object ArrayBuffer]":case Xn:return Jn(Zn(e),Zn(t),n,i)}var o="[object Array]"===r;if(!o&&qn(e)){if(Pn(e)!==Pn(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(Tn(a)&&a instanceof a&&Tn(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}i=i||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return i[c]===t;if(n.push(e),i.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!Yn(e[c],t[c],n,i))return!1}else{var u,l=Vn(e);if(c=l.length,Vn(t).length!==c)return!1;for(;c--;)if(!Bn(t,u=l[c])||!Yn(e[u],t[u],n,i))return!1}return n.pop(),i.pop(),!0}function Qn(e,t){return Yn(e,t)}function ei(e){if(!un(e))return[];var t=[];for(var n in e)t.push(n);return on&&Hn(e,t),t}function ti(e){var t=jn(e);return function(n){if(null==n)return!1;var i=ei(n);if(jn(i))return!1;for(var r=0;r<t;r++)if(!Tn(n[e[r]]))return!1;return e!==ai||!Tn(n[ni])}}var ni="forEach",ii=["clear","delete"],ri=["get","has","set"],oi=ii.concat(ni,ri),ai=ii.concat(ri),si=["add"].concat(ii,ni,"has");const ci=Fn?ti(oi):mn("Map"),ui=Fn?ti(ai):mn("WeakMap"),li=Fn?ti(si):mn("Set"),di=mn("WeakSet");function hi(e){for(var t=Vn(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function fi(e){for(var t=Vn(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i}function mi(e){for(var t={},n=Vn(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function pi(e){var t=[];for(var n in e)Tn(e[n])&&t.push(n);return t.sort()}function gi(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],a=e(o),s=a.length,c=0;c<s;c++){var u=a[c];t&&void 0!==n[u]||(n[u]=o[u])}return n}}const bi=gi(ei),vi=gi(Vn),yi=gi(ei,!0);function wi(e){if(!un(e))return{};if(en)return en(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function xi(e,t){var n=wi(e);return t&&vi(n,t),n}function Di(e){return un(e)?Cn(e)?e.slice():bi({},e):e}function Ui(e,t){return t(e),e}function Ti(e){return Cn(e)?e:[e]}function ki(e){return Kn.toPath(e)}function Ai(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Fi(e,t,n){var i=Ai(e,ki(t));return dn(i)?n:i}function Si(e,t){for(var n=(t=ki(t)).length,i=0;i<n;i++){var r=t[i];if(!Bn(e,r))return!1;e=e[r]}return!!n}function Ei(e){return e}function Ci(e){return e=vi({},e),function(t){return Gn(t,e)}}function Bi(e){return e=ki(e),function(t){return Ai(t,e)}}function Wi(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)}}return function(){return e.apply(t,arguments)}}function Ii(e,t,n){return null==e?Ei:Tn(e)?Wi(e,t,n):un(e)&&!Cn(e)?Ci(e):Bi(e)}function Mi(e,t){return Ii(e,t,1/0)}function Ri(e,t,n){return Kn.iteratee!==Mi?Kn.iteratee(e,t):Ii(e,t,n)}function zi(e,t,n){t=Ri(t,n);for(var i=Vn(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o}function _i(){}function Oi(e){return null==e?_i:function(t){return Fi(e,t)}}function Pi(e,t,n){var i=Array(Math.max(0,e));t=Wi(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i}function Li(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}Kn.toPath=Ti,Kn.iteratee=Mi;const Ni=Date.now||function(){return(new Date).getTime()};function qi(e){var t=function(t){return e[t]},n="(?:"+Vn(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}}const ji={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Hi=qi(ji),Vi=qi(mi(ji)),$i=Kn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Gi=/(.)^/,Ki={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Zi=/\\|'|\r|\n|\u2028|\u2029/g;function Xi(e){return"\\"+Ki[e]}var Yi=/^\s*(\w|\$)+\s*$/;function Ji(e,t,n){!t&&n&&(t=n),t=yi({},t,Kn.templateSettings);var i=RegExp([(t.escape||Gi).source,(t.interpolate||Gi).source,(t.evaluate||Gi).source].join("|")+"|$","g"),r=0,o="__p+='";e.replace(i,function(t,n,i,a,s){return o+=e.slice(r,s).replace(Zi,Xi),r=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t}),o+="';\n";var a,s=t.variable;if(s){if(!Yi.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(u){throw u.source=o,u}var c=function(e){return a.call(this,e,Kn)};return c.source="function("+s+"){\n"+o+"}",c}function Qi(e,t,n){var i=(t=ki(t)).length;if(!i)return Tn(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=Tn(o)?o.call(e):o}return e}var er=0;function tr(e){var t=++er+"";return e?e+t:t}function nr(e){var t=Kn(e);return t._=!0,t}function ir(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var o=wi(e.prototype),a=e.apply(o,r);return un(a)?a:o}var rr=cn(function(e,t){var n=rr.placeholder,i=function(){for(var r=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[r++]:t[s];for(;r<arguments.length;)a.push(arguments[r++]);return ir(e,i,this,this,a)};return i});rr.placeholder=Kn;const or=cn(function(e,t,n){if(!Tn(e))throw new TypeError("Bind must be called on a function");var i=cn(function(r){return ir(e,i,t,this,n.concat(r))});return i}),ar=_n(jn);function sr(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var r=i.length,o=0,a=jn(e);o<a;o++){var s=e[o];if(ar(s)&&(Cn(s)||In(s)))if(t>1)sr(s,t-1,n,i),r=i.length;else for(var c=0,u=s.length;c<u;)i[r++]=s[c++];else n||(i[r++]=s)}return i}const cr=cn(function(e,t){var n=(t=sr(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=or(e[i],e)}return e});function ur(e,t){var n=function(i){var r=n.cache,o=""+(t?t.apply(this,arguments):i);return Bn(r,o)||(r[o]=e.apply(this,arguments)),r[o]};return n.cache={},n}const lr=cn(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),dr=rr(lr,Kn,1);function hr(e,t,n){var i,r,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Ni(),i=null,a=e.apply(r,o),i||(r=o=null)},u=function(){var u=Ni();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,o=arguments,l<=0||l>t?(i&&(clearTimeout(i),i=null),s=u,a=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(i),s=0,i=r=o=null},u}function fr(e,t,n){var i,r,o,a,s,c=function(){var u=Ni()-r;t>u?i=setTimeout(c,t-u):(i=null,n||(a=e.apply(s,o)),i||(o=s=null))},u=cn(function(u){return s=this,o=u,r=Ni(),i||(i=setTimeout(c,t),n&&(a=e.apply(s,o))),a});return u.cancel=function(){clearTimeout(i),i=o=s=null},u}function mr(e,t){return rr(t,e)}function pr(e){return function(){return!e.apply(this,arguments)}}function gr(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function br(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function vr(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const yr=rr(vr,2);function wr(e,t,n){t=Ri(t,n);for(var i,r=Vn(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function xr(e){return function(t,n,i){n=Ri(n,i);for(var r=jn(t),o=e>0?0:r-1;o>=0&&o<r;o+=e)if(n(t[o],o,t))return o;return-1}}const Dr=xr(1),Ur=xr(-1);function Tr(e,t,n,i){for(var r=(n=Ri(n,i,1))(t),o=0,a=jn(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function kr(e,t,n){return function(i,r,o){var a=0,s=jn(i);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=t(Gt.call(i,a,s),Rn))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(i[o]===r)return o;return-1}}const Ar=kr(1,Dr,Tr),Fr=kr(-1,Ur);function Sr(e,t,n){var i=(ar(e)?Dr:wr)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function Er(e,t){return Sr(e,Ci(t))}function Cr(e,t,n){var i,r;if(t=Wi(t,n),ar(e))for(i=0,r=e.length;i<r;i++)t(e[i],i,e);else{var o=Vn(e);for(i=0,r=o.length;i<r;i++)t(e[o[i]],o[i],e)}return e}function Br(e,t,n){t=Ri(t,n);for(var i=!ar(e)&&Vn(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function Wr(e){return function(t,n,i,r){var o=arguments.length>=3;return function(t,n,i,r){var o=!ar(t)&&Vn(t),a=(o||t).length,s=e>0?0:a-1;for(r||(i=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;i=n(i,t[c],c,t)}return i}(t,Wi(n,r,4),i,o)}}const Ir=Wr(1),Mr=Wr(-1);function Rr(e,t,n){var i=[];return t=Ri(t,n),Cr(e,function(e,n,r){t(e,n,r)&&i.push(e)}),i}function zr(e,t,n){return Rr(e,pr(Ri(t)),n)}function _r(e,t,n){t=Ri(t,n);for(var i=!ar(e)&&Vn(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function Or(e,t,n){t=Ri(t,n);for(var i=!ar(e)&&Vn(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function Pr(e,t,n,i){return ar(e)||(e=hi(e)),("number"!=typeof n||i)&&(n=0),Ar(e,t,n)>=0}const Lr=cn(function(e,t,n){var i,r;return Tn(t)?r=t:(t=ki(t),i=t.slice(0,-1),t=t[t.length-1]),Br(e,function(e){var o=r;if(!o){if(i&&i.length&&(e=Ai(e,i)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})});function Nr(e,t){return Br(e,Bi(t))}function qr(e,t){return Rr(e,Ci(t))}function jr(e,t,n){var i,r,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=ar(e)?e:hi(e)).length;s<c;s++)null!=(i=e[s])&&i>o&&(o=i);else t=Ri(t,n),Cr(e,function(e,n,i){((r=t(e,n,i))>a||r===-1/0&&o===-1/0)&&(o=e,a=r)});return o}function Hr(e,t,n){var i,r,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=ar(e)?e:hi(e)).length;s<c;s++)null!=(i=e[s])&&i<o&&(o=i);else t=Ri(t,n),Cr(e,function(e,n,i){((r=t(e,n,i))<a||r===1/0&&o===1/0)&&(o=e,a=r)});return o}var Vr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function $r(e){return e?Cn(e)?Gt.call(e):pn(e)?e.match(Vr):ar(e)?Br(e,Ei):hi(e):[]}function Gr(e,t,n){if(null==t||n)return ar(e)||(e=hi(e)),e[Li(e.length-1)];var i=$r(e),r=jn(i);t=Math.max(Math.min(t,r),0);for(var o=r-1,a=0;a<t;a++){var s=Li(a,o),c=i[a];i[a]=i[s],i[s]=c}return i.slice(0,t)}function Kr(e){return Gr(e,1/0)}function Zr(e,t,n){var i=0;return t=Ri(t,n),Nr(Br(e,function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")}function Xr(e,t){return function(n,i,r){var o=t?[[],[]]:{};return i=Ri(i,r),Cr(n,function(t,r){var a=i(t,r,n);e(o,t,a)}),o}}const Yr=Xr(function(e,t,n){Bn(e,n)?e[n].push(t):e[n]=[t]}),Jr=Xr(function(e,t,n){e[n]=t}),Qr=Xr(function(e,t,n){Bn(e,n)?e[n]++:e[n]=1}),eo=Xr(function(e,t,n){e[n?0:1].push(t)},!0);function to(e){return null==e?0:ar(e)?e.length:Vn(e).length}function no(e,t,n){return t in n}const io=cn(function(e,t){var n={},i=t[0];if(null==e)return n;Tn(i)?(t.length>1&&(i=Wi(i,t[1])),t=ei(e)):(i=no,t=sr(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}return n}),ro=cn(function(e,t){var n,i=t[0];return Tn(i)?(i=pr(i),t.length>1&&(n=t[1])):(t=Br(sr(t,!1,!1),String),i=function(e,n){return!Pr(t,n)}),io(e,i,n)});function oo(e,t,n){return Gt.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function ao(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:oo(e,e.length-t)}function so(e,t,n){return Gt.call(e,null==t||n?1:t)}function co(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:so(e,Math.max(0,e.length-t))}function uo(e){return Rr(e,Boolean)}function lo(e,t){return sr(e,t,!1)}const ho=cn(function(e,t){return t=sr(t,!0,!0),Rr(e,function(e){return!Pr(t,e)})}),fo=cn(function(e,t){return ho(e,t)});function mo(e,t,n,i){hn(t)||(i=n,n=t,t=!1),null!=n&&(n=Ri(n,i));for(var r=[],o=[],a=0,s=jn(e);a<s;a++){var c=e[a],u=n?n(c,a,e):c;t&&!n?(a&&o===u||r.push(c),o=u):n?Pr(o,u)||(o.push(u),r.push(c)):Pr(r,c)||r.push(c)}return r}const po=cn(function(e){return mo(sr(e,!0,!0))});function go(e){for(var t=[],n=arguments.length,i=0,r=jn(e);i<r;i++){var o=e[i];if(!Pr(t,o)){var a;for(a=1;a<n&&Pr(arguments[a],o);a++);a===n&&t.push(o)}}return t}function bo(e){for(var t=e&&jr(e,jn).length||0,n=Array(t),i=0;i<t;i++)n[i]=Nr(e,i);return n}const vo=cn(bo);function yo(e,t){for(var n={},i=0,r=jn(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n}function wo(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r}function xo(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(Gt.call(e,i,i+=t));return n}function Do(e,t){return e._?Kn(t).chain():t}function Uo(e){return Cr(pi(e),function(t){var n=Kn[t]=e[t];Kn.prototype[t]=function(){var e=[this.R];return $t.apply(e,arguments),Do(this,n.apply(Kn,e))}}),Kn}Cr(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=jt[e];Kn.prototype[e]=function(){var n=this.R;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Do(this,n)}}),Cr(["concat","join","slice"],function(e){var t=jt[e];Kn.prototype[e]=function(){var e=this.R;return null!=e&&(e=t.apply(e,arguments)),Do(this,e)}});var To=Uo(Object.freeze(Object.defineProperty({__proto__:null,VERSION:Nt,after:br,all:_r,allKeys:ei,any:Or,assign:vi,before:vr,bind:or,bindAll:cr,chain:nr,chunk:xo,clone:Di,collect:Br,compact:uo,compose:gr,constant:zn,contains:Pr,countBy:Qr,create:xi,debounce:fr,default:Kn,defaults:yi,defer:dr,delay:lr,detect:Sr,difference:ho,drop:so,each:Cr,escape:Hi,every:_r,extend:bi,extendOwn:vi,filter:Rr,find:Sr,findIndex:Dr,findKey:wr,findLastIndex:Ur,findWhere:Er,first:ao,flatten:lo,foldl:Ir,foldr:Mr,forEach:Cr,functions:pi,get:Fi,groupBy:Yr,has:Si,head:ao,identity:Ei,include:Pr,includes:Pr,indexBy:Jr,indexOf:Ar,initial:oo,inject:Ir,intersection:go,invert:mi,invoke:Lr,isArguments:In,isArray:Cn,isArrayBuffer:xn,isBoolean:hn,isDataView:En,isDate:bn,isElement:fn,isEmpty:$n,isEqual:Qn,isError:yn,isFinite:Mn,isFunction:Tn,isMap:ci,isMatch:Gn,isNaN:Rn,isNull:ln,isNumber:gn,isObject:un,isRegExp:vn,isSet:li,isString:pn,isSymbol:wn,isTypedArray:qn,isUndefined:dn,isWeakMap:ui,isWeakSet:di,iteratee:Mi,keys:Vn,last:co,lastIndexOf:Fr,map:Br,mapObject:zi,matcher:Ci,matches:Ci,max:jr,memoize:ur,methods:pi,min:Hr,mixin:Uo,negate:pr,noop:_i,now:Ni,object:yo,omit:ro,once:yr,pairs:fi,partial:rr,partition:eo,pick:io,pluck:Nr,property:Bi,propertyOf:Oi,random:Li,range:wo,reduce:Ir,reduceRight:Mr,reject:zr,rest:so,restArguments:cn,result:Qi,sample:Gr,select:Rr,shuffle:Kr,size:to,some:Or,sortBy:Zr,sortedIndex:Tr,tail:so,take:ao,tap:Ui,template:Ji,templateSettings:$i,throttle:hr,times:Pi,toArray:$r,toPath:Ti,transpose:bo,unescape:Vi,union:po,uniq:mo,unique:mo,uniqueId:tr,unzip:bo,values:hi,where:qr,without:fo,wrap:mr,zip:vo},Symbol.toStringTag,{value:"Module"})));To.T=To;const ko=Pt(Object.freeze(Object.defineProperty({__proto__:null,VERSION:Nt,after:br,all:_r,allKeys:ei,any:Or,assign:vi,before:vr,bind:or,bindAll:cr,chain:nr,chunk:xo,clone:Di,collect:Br,compact:uo,compose:gr,constant:zn,contains:Pr,countBy:Qr,create:xi,debounce:fr,default:To,defaults:yi,defer:dr,delay:lr,detect:Sr,difference:ho,drop:so,each:Cr,escape:Hi,every:_r,extend:bi,extendOwn:vi,filter:Rr,find:Sr,findIndex:Dr,findKey:wr,findLastIndex:Ur,findWhere:Er,first:ao,flatten:lo,foldl:Ir,foldr:Mr,forEach:Cr,functions:pi,get:Fi,groupBy:Yr,has:Si,head:ao,identity:Ei,include:Pr,includes:Pr,indexBy:Jr,indexOf:Ar,initial:oo,inject:Ir,intersection:go,invert:mi,invoke:Lr,isArguments:In,isArray:Cn,isArrayBuffer:xn,isBoolean:hn,isDataView:En,isDate:bn,isElement:fn,isEmpty:$n,isEqual:Qn,isError:yn,isFinite:Mn,isFunction:Tn,isMap:ci,isMatch:Gn,isNaN:Rn,isNull:ln,isNumber:gn,isObject:un,isRegExp:vn,isSet:li,isString:pn,isSymbol:wn,isTypedArray:qn,isUndefined:dn,isWeakMap:ui,isWeakSet:di,iteratee:Mi,keys:Vn,last:co,lastIndexOf:Fr,map:Br,mapObject:zi,matcher:Ci,matches:Ci,max:jr,memoize:ur,methods:pi,min:Hr,mixin:Uo,negate:pr,noop:_i,now:Ni,object:yo,omit:ro,once:yr,pairs:fi,partial:rr,partition:eo,pick:io,pluck:Nr,property:Bi,propertyOf:Oi,random:Li,range:wo,reduce:Ir,reduceRight:Mr,reject:zr,rest:so,restArguments:cn,result:Qi,sample:Gr,select:Rr,shuffle:Kr,size:to,some:Or,sortBy:Zr,sortedIndex:Tr,tail:so,take:ao,tap:Ui,template:Ji,templateSettings:$i,throttle:hr,times:Pi,toArray:$r,toPath:Ti,transpose:bo,unescape:Vi,union:po,uniq:mo,unique:mo,uniqueId:tr,unzip:bo,values:hi,where:qr,without:fo,wrap:mr,zip:vo},Symbol.toStringTag,{value:"Module"})));var Ao,Fo,So,Eo={},Co={},Bo={exports:{}},Wo={exports:{}};function Io(){if(Ao)return Wo.exports;Ao=1;var e=function(){return void 0===this}();if(e)Wo.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:e,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var t={}.hasOwnProperty,n={}.toString,i={}.constructor.prototype,r=function(e){var n=[];for(var i in e)t.call(e,i)&&n.push(i);return n};Wo.exports={isArray:function(e){try{return"[object Array]"===n.call(e)}catch(t){return!1}},keys:r,names:r,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(t){return i}},isES5:e,propertyIsWritable:function(){return!0}}}return Wo.exports}function Mo(){if(So)return Fo;So=1;var e,t=Io(),n="undefined"==typeof navigator,i={e:{}},r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==_t?_t:void 0!==Fo?Fo:null;function o(){try{var t=e;return e=null,t.apply(this,arguments)}catch(n){return i.e=n,i}}function a(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function s(e,n,i){if(a(e))return e;var r={value:i,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(e,n,r),e}var c=function(){var e=[Array.prototype,Object.prototype,Function.prototype],n=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(t.isES5){var i=Object.getOwnPropertyNames;return function(e){for(var r=[],o=Object.create(null);null!=e&&!n(e);){var a;try{a=i(e)}catch(l){return r}for(var s=0;s<a.length;++s){var c=a[s];if(!o[c]){o[c]=!0;var u=Object.getOwnPropertyDescriptor(e,c);null!=u&&null==u.get&&null==u.set&&r.push(c)}}e=t.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(t){if(n(t))return[];var i=[];e:for(var o in t)if(r.call(t,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),u=/this\s*\.\s*\S+\s*=/;var l=/^[a-z$_][a-z$_0-9]*$/i;function d(e){try{return e+""}catch(t){return"[no string representation]"}}function h(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function f(e){return h(e)&&t.propertyIsWritable(e,"stack")}var m="stack"in new Error?function(e){return f(e)?e:new Error(d(e))}:function(e){if(f(e))return e;try{throw new Error(d(e))}catch(t){return t}};function p(e){return{}.toString.call(e)}var g=function(e){return t.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var b="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],i=e[Symbol.iterator]();!(t=i.next()).done;)n.push(t.value);return n};g=function(e){return t.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?b(e):null}}var v="undefined"!=typeof process&&"[object process]"===p(process).toLowerCase(),y="undefined"!=typeof process&&void 0!==process.env;var w,x={isClass:function(e){try{if("function"==typeof e){var n=t.names(e.prototype),i=t.isES5&&n.length>1,r=n.length>0&&!(1===n.length&&"constructor"===n[0]),o=u.test(e+"")&&t.names(e).length>0;if(i||r||o)return!0}return!1}catch(a){return!1}},isIdentifier:function(e){return l.test(e)},inheritedDataKeys:c,getDataPropertyOrDefault:function(e,n,i){if(!t.isES5)return{}.hasOwnProperty.call(e,n)?e[n]:void 0;var r=Object.getOwnPropertyDescriptor(e,n);return null!=r?null==r.get&&null==r.set?r.value:i:void 0},thrower:function(e){throw e},isArray:t.isArray,asArray:g,notEnumerableProp:s,isPrimitive:a,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:h,canEvaluate:n,errorObj:i,tryCatch:function(t){return e=t,o},inherits:function(e,t){var n={}.hasOwnProperty;function i(){for(var i in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,i)&&"$"!==i.charAt(i.length-1)&&(this[i+"$"]=t.prototype[i])}return i.prototype=t.prototype,e.prototype=new i,e.prototype},withAppended:function(e,t){var n,i=e.length,r=new Array(i+1);for(n=0;n<i;++n)r[n]=e[n];return r[n]=t,r},maybeWrapAsError:function(e){return a(e)?new Error(d(e)):e},toFastProperties:function(e){return e},filledRange:function(e,t,n){for(var i=new Array(e),r=0;r<e;++r)i[r]=t+r+n;return i},toString:d,canAttachTrace:f,ensureErrorObject:m,originatesFromRejection:function(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)},markAsOriginatingFromRejection:function(e){try{s(e,"isOperational",!0)}catch(t){}},classString:p,copyDescriptors:function(e,n,i){for(var r=t.names(e),o=0;o<r.length;++o){var a=r[o];if(i(a))try{t.defineProperty(n,a,t.getDescriptor(e,a))}catch(s){}}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:v,hasEnvVariables:y,env:function(e){return y?process.env[e]:void 0},global:r,getNativePromise:function(){if("function"==typeof Promise)try{var e=new Promise(function(){});if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}},domainBind:function(e,t){return e.bind(t)}};x.isRecentNode=x.isNode&&(0===(w=process.versions.node.split(".").map(Number))[0]&&w[1]>10||w[0]>0),x.isNode&&x.toFastProperties(process);try{throw new Error}catch(D){x.lastLineError=D}return Fo=x}var Ro,zo,_o,Oo,Po,Lo,No,qo,jo,Ho,Vo,$o,Go,Ko,Zo,Xo,Yo,Jo,Qo,ea,ta,na,ia,ra,oa,aa,sa,ca,ua,la,da,ha,fa,ma,pa,ga,ba,va,ya,wa,xa,Da,Ua,Ta,ka,Aa,Fa,Sa,Ea,Ca,Ba,Wa,Ia,Ma,Ra,za,_a,Oa,Pa,La,Na,qa,ja,Ha,Va,$a={exports:{}};function Ga(){if(zo)return Ro;zo=1;var e,t=Mo(),n=t.getNativePromise();if(t.isNode&&"undefined"==typeof MutationObserver){var i=_t.setImmediate,r=process.nextTick;e=t.isRecentNode?function(e){i.call(_t,e)}:function(e){r.call(process,e)}}else if("function"==typeof n&&"function"==typeof n.resolve){var o=n.resolve();e=function(e){o.then(e)}}else e="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,i=document.createElement("div");new MutationObserver(function(){e.classList.toggle("foo"),n=!1}).observe(i,t);return function(r){var o=new MutationObserver(function(){o.disconnect(),r()});o.observe(e,t),n||(n=!0,i.classList.toggle("foo"))}}();return Ro=e}function Ka(){if(Po)return $a.exports;var e;Po=1;try{throw new Error}catch(c){e=c}var t=Ga(),n=function(){if(Oo)return _o;function e(e){this.O=e,this.P=0,this.L=0}return Oo=1,e.prototype.N=function(e){return this.O<e},e.prototype.j=function(e){var t=this.length();this.H(t+1),this[this.L+t&this.O-1]=e,this.P=t+1},e.prototype.push=function(e,t,n){var i=this.length()+3;if(this.N(i))return this.j(e),this.j(t),void this.j(n);var r=this.L+i-3;this.H(i);var o=this.O-1;this[r+0&o]=e,this[r+1&o]=t,this[r+2&o]=n,this.P=i},e.prototype.shift=function(){var e=this.L,t=this[e];return this[e]=void 0,this.L=e+1&this.O-1,this.P--,t},e.prototype.length=function(){return this.P},e.prototype.H=function(e){this.O<e&&this.G(this.O<<1)},e.prototype.G=function(e){var t=this.O;this.O=e,function(e,t,n,i,r){for(var o=0;o<r;++o)n[o+i]=e[o+t],e[o+t]=void 0}(this,0,this,t,this.L+this.P&t-1)},_o=e}(),i=Mo();function r(){this.K=!1,this.Z=!1,this.X=new n(16),this.Y=new n(16),this.J=!1,this.te=!0;var e=this;this.drainQueues=function(){e.ie()},this.re=t}function o(e,t,n){this.X.push(e,t,n),this.oe()}function a(e,t,n){this.Y.push(e,t,n),this.oe()}function s(e){this.Y.j(e),this.oe()}return r.prototype.setScheduler=function(e){var t=this.re;return this.re=e,this.K=!0,t},r.prototype.hasCustomScheduler=function(){return this.K},r.prototype.enableTrampoline=function(){this.te=!0},r.prototype.disableTrampolineIfNecessary=function(){i.hasDevTools&&(this.te=!1)},r.prototype.haveItemsQueued=function(){return this.Z||this.J},r.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},r.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this.re(function(){e(t)})}catch(c){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},i.hasDevTools?(r.prototype.invokeLater=function(e,t,n){this.te?o.call(this,e,t,n):this.re(function(){setTimeout(function(){e.call(t,n)},100)})},r.prototype.invoke=function(e,t,n){this.te?a.call(this,e,t,n):this.re(function(){e.call(t,n)})},r.prototype.settlePromises=function(e){this.te?s.call(this,e):this.re(function(){e.ae()})}):(r.prototype.invokeLater=o,r.prototype.invoke=a,r.prototype.settlePromises=s),r.prototype.se=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),i=e.shift();t.call(n,i)}else t.ae()}},r.prototype.ie=function(){this.se(this.Y),this.ce(),this.J=!0,this.se(this.X)},r.prototype.oe=function(){this.Z||(this.Z=!0,this.re(this.drainQueues))},r.prototype.ce=function(){this.Z=!1},$a.exports=r,$a.exports.firstLineError=e,$a.exports}function Za(){if(No)return Lo;No=1;var e,t,n=Io(),i=n.freeze,r=Mo(),o=r.inherits,a=r.notEnumerableProp;function s(e,t){function n(i){if(!(this instanceof n))return new n(i);a(this,"message","string"==typeof i?i:t),a(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return o(n,Error),n}var c=s("Warning","warning"),u=s("CancellationError","cancellation error"),l=s("TimeoutError","timeout error"),d=s("AggregateError","aggregate error");try{e=TypeError,t=RangeError}catch(b){e=s("TypeError","type error"),t=s("RangeError","range error")}for(var h="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),f=0;f<h.length;++f)"function"==typeof Array.prototype[h[f]]&&(d.prototype[h[f]]=Array.prototype[h[f]]);n.defineProperty(d.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),d.prototype.isOperational=!0;var m=0;function p(e){if(!(this instanceof p))return new p(e);a(this,"name","OperationalError"),a(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(a(this,"message",e.message),a(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}d.prototype.toString=function(){var e=Array(4*m+1).join(" "),t="\n"+e+"AggregateError of:\n";m++,e=Array(4*m+1).join(" ");for(var n=0;n<this.length;++n){for(var i=this[n]===this?"[Circular AggregateError]":this[n]+"",r=i.split("\n"),o=0;o<r.length;++o)r[o]=e+r[o];t+=(i=r.join("\n"))+"\n"}return m--,t},o(p,Error);var g=Error.__BluebirdErrorTypes__;return g||(g=i({CancellationError:u,TimeoutError:l,OperationalError:p,RejectionError:p,AggregateError:d}),n.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),Lo={Error:Error,TypeError:e,RangeError:t,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:c}}function Xa(){return jo?qo:(jo=1,qo=function(e,t){var n=Mo(),i=n.errorObj,r=n.isObject;var o={}.hasOwnProperty;return function(a,s){if(r(a)){if(a instanceof e)return a;var c=function(e){try{return function(e){return e.then}(e)}catch(t){return i.e=t,i}}(a);if(c===i){s&&s.ue();var u=e.reject(c.e);return s&&s.he(),u}if("function"==typeof c){if(function(e){try{return o.call(e,"_promise0")}catch(t){return!1}}(a)){u=new e(t);return a.fe(u.me,u.be,void 0,u,null),u}return function(r,o,a){var s=new e(t),c=s;a&&a.ue();s.ve(),a&&a.he();var u=!0,l=n.tryCatch(o).call(r,d,h);u=!1,s&&l===i&&(s.ye(l.e,!0,!0),s=null);function d(e){s&&(s.we(e),s=null)}function h(e){s&&(s.ye(e,u,!0),s=null)}return c}(a,c,s)}}return a}})}function Ya(){return Zo||(Zo=1,Ko=function(e,t){var n,i,r,o=e.xe,a=e.De,s=Za().Warning,c=Mo(),u=c.canAttachTrace,l=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,h=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,f=null,m=null,p=!1,g=!(0==c.env("BLUEBIRD_DEBUG")||!c.env("BLUEBIRD_DEBUG")&&"development"!==c.env("NODE_ENV")),b=!(0==c.env("BLUEBIRD_WARNINGS")||!g&&!c.env("BLUEBIRD_WARNINGS")),v=!(0==c.env("BLUEBIRD_LONG_STACK_TRACES")||!g&&!c.env("BLUEBIRD_LONG_STACK_TRACES")),y=0!=c.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(b||!!c.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var e=this.Ue();e.Te=-1048577&e.Te|524288},e.prototype.ke=function(){524288&this.Te||(this.Ae(),a.invokeLater(this.Fe,this,void 0))},e.prototype.Se=function(){N("rejectionHandled",n,void 0,this)},e.prototype.Ee=function(){this.Te=268435456|this.Te},e.prototype.Ce=function(){return!!(268435456&this.Te)},e.prototype.Fe=function(){if(this.Be()){var e=this.We();this.Ie(),N("unhandledRejection",i,e,this)}},e.prototype.Ie=function(){this.Te=262144|this.Te},e.prototype.Me=function(){this.Te=-262145&this.Te},e.prototype.ze=function(){return(262144&this.Te)>0},e.prototype.Ae=function(){this.Te=1048576|this.Te},e.prototype._e=function(){this.Te=-1048577&this.Te,this.ze()&&(this.Me(),this.Se())},e.prototype.Be=function(){return(1048576&this.Te)>0},e.prototype.Oe=function(e,t,n){return _(e,t,n||this)},e.onPossiblyUnhandledRejection=function(e){var t=o();i="function"==typeof e?null===t?e:c.domainBind(t,e):void 0},e.onUnhandledRejectionHandled=function(e){var t=o();n="function"==typeof e?null===t?e:c.domainBind(t,e):void 0};var w=function(){};e.longStackTraces=function(){if(a.haveItemsQueued()&&!Z.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!Z.longStackTraces&&j()){var n=e.prototype.ve,i=e.prototype.Pe;Z.longStackTraces=!0,w=function(){if(a.haveItemsQueued()&&!Z.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype.ve=n,e.prototype.Pe=i,t.deactivateLongStackTraces(),a.enableTrampoline(),Z.longStackTraces=!1},e.prototype.ve=R,e.prototype.Pe=z,t.activateLongStackTraces(),a.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return Z.longStackTraces&&j()};var x=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!c.global.dispatchEvent(n)}}if("function"==typeof Event){e=new Event("CustomEvent");return c.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!c.global.dispatchEvent(n)}}return(e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),c.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!c.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),D=c.isNode?function(){return process.emit.apply(process,arguments)}:c.global?function(e){var t="on"+e.toLowerCase(),n=c.global[t];return!!n&&(n.apply(c.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function U(e,t){return{promise:t}}var T={promiseCreated:U,promiseFulfilled:U,promiseRejected:U,promiseResolved:U,promiseCancelled:U,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:U},k=function(e){var t=!1;try{t=D.apply(null,arguments)}catch(i){a.throwLater(i),t=!0}var n=!1;try{n=x(e,T[e].apply(null,arguments))}catch(i){a.throwLater(i),n=!0}return n||t};function A(){return!1}function F(e,t,n){var i=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+c.toString(e));i.Le(e)})}catch(r){return r}}function S(e){if(!this.Ne())return this;var t=this.qe();void 0!==t?c.isArray(t)?t.push(e):this.je([t,e]):this.je(e)}function E(){return this.He}function C(e){this.He=e}function B(){this.Ve=void 0,this.He=void 0}function W(e,t){if(1&t){this.Ve=e;var n=e.$e;void 0===n&&(n=0),e.$e=n+1}2&t&&e.Ge()&&this.Ke(e.Ze)}e.config=function(t){if("longStackTraces"in(t=Object(t))&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&w()),"warnings"in t){var n=t.warnings;Z.warnings=!!n,y=Z.warnings,c.isObject(n)&&"wForgottenReturn"in n&&(y=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!Z.cancellation){if(a.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype.Xe=B,e.prototype.Ye=W,e.prototype.qe=E,e.prototype.je=C,e.prototype.Le=S,e.prototype.Je=F,I=W,Z.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!Z.monitoring?(Z.monitoring=!0,e.prototype.Qe=k):!t.monitoring&&Z.monitoring&&(Z.monitoring=!1,e.prototype.Qe=A)),e},e.prototype.Qe=A,e.prototype.Je=function(e,t,n){try{e(t,n)}catch(i){return i}},e.prototype.qe=function(){},e.prototype.je=function(e){},e.prototype.Le=function(e){},e.prototype.ve=function(){},e.prototype.Pe=function(){},e.prototype.Xe=function(){},e.prototype.Ye=function(e,t){};var I=function(e,t){2&t&&e.Ge()&&this.Ke(e.Ze)};function M(){var t=this.Ze;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function R(){this.et=new G(this.tt())}function z(e,t){if(u(e)){var n=this.et;if(void 0!==n&&t&&(n=n.nt),void 0!==n)n.attachExtraTrace(e);else if(!e.rt){var i=P(e);c.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n")),c.notEnumerableProp(e,"__stackCleaned__",!0)}}}function _(t,n,i){if(Z.warnings){var r,o=new s(t);if(n)i.Pe(o);else if(Z.longStackTraces&&(r=e.tt()))r.attachExtraTrace(o);else{var a=P(o);o.stack=a.message+"\n"+a.stack.join("\n")}k("warning",o)||L(o,"",!0)}}function O(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r=" (No stack trace)"===i||f.test(i),o=r&&H(i);r&&!o&&(p&&" "!==i.charAt(0)&&(i=" "+i),t.push(i))}return t}function P(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var i=t[n];if(" (No stack trace)"===i||f.test(i))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:O(t)}}function L(e,t,n){if("undefined"!=typeof console){var i;if(c.isObject(e)){var o=e.stack;i=t+m(o,e)}else i=t+String(e);"function"==typeof r?r(i,n):"function"==typeof console.log||console.log}}function N(e,t,n,i){var r=!1;try{"function"==typeof t&&(r=!0,"rejectionHandled"===e?t(i):t(n,i))}catch(o){a.throwLater(o)}"unhandledRejection"===e?k(e,n,i)||r||L(n,"Unhandled rejection "):k(e,i)}function q(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():c.toString(e);if(/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(n){}0===t.length&&(t="(empty array)")}return"(<"+function(e){var t=41;if(e.length<t)return e;return e.substr(0,t-3)+"..."}(t)+">, no stack trace)"}function j(){return"function"==typeof K}var H=function(){return!1},V=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function $(e){var t=e.match(V);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function G(e){this.nt=e,this.ot=0;var t=this.P=1+(void 0===e?0:e.P);K(this,G),t>32&&this.uncycle()}c.inherits(G,Error),t.CapturedTrace=G,G.prototype.uncycle=function(){var e=this.P;if(!(e<2)){for(var t=[],n={},i=0,r=this;void 0!==r;++i)t.push(r),r=r.nt;for(i=(e=this.P=i)-1;i>=0;--i){var o=t[i].stack;void 0===n[o]&&(n[o]=i)}for(i=0;i<e;++i){var a=n[t[i].stack];if(void 0!==a&&a!==i){a>0&&(t[a-1].nt=void 0,t[a-1].P=1),t[i].nt=void 0,t[i].P=1;var s=i>0?t[i-1]:this;a<e-1?(s.nt=t[a+1],s.nt.uncycle(),s.P=s.nt.P+1):(s.nt=void 0,s.P=1);for(var c=s.P+1,u=i-2;u>=0;--u)t[u].P=c,c++;return}}}},G.prototype.attachExtraTrace=function(e){if(!e.rt){this.uncycle();for(var t=P(e),n=t.message,i=[t.stack],r=this;void 0!==r;)i.push(O(r.stack.split("\n"))),r=r.nt;!function(e){for(var t=e[0],n=1;n<e.length;++n){for(var i=e[n],r=t.length-1,o=t[r],a=-1,s=i.length-1;s>=0;--s)if(i[s]===o){a=s;break}for(s=a;s>=0;--s){var c=i[s];if(t[r]!==c)break;t.pop(),r--}t=i}}(i),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(i),c.notEnumerableProp(e,"stack",function(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,i)),c.notEnumerableProp(e,"__stackCleaned__",!0)}};var K=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():q(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,f=e,m=t;var n=Error.captureStackTrace;return H=function(e){return l.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var i,r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return f=/@/,m=t,p=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(o){i="stack"in o}return!("stack"in r)&&i&&"number"==typeof Error.stackTraceLimit?(f=e,m=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(o){e.stack=o.stack}Error.stackTraceLimit-=6}):(m=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?q(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(r=function(e){},c.isNode&&process.stderr.isTTY?r=function(e,t){}:c.isNode||"string"!=typeof(new Error).stack||(r=function(e,t){}));var Z={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1};return v&&e.longStackTraces(),{longStackTraces:function(){return Z.longStackTraces},warnings:function(){return Z.warnings},cancellation:function(){return Z.cancellation},monitoring:function(){return Z.monitoring},propagateFromFunction:function(){return I},boundValueFunction:function(){return M},checkForgottenReturns:function(e,t,n,i,r){if(void 0===e&&null!==t&&y){if(void 0!==r&&r.Ce())return;if(!(65535&i.Te))return;n&&(n+=" ");var o="",a="";if(t.et){for(var s=t.et.stack.split("\n"),c=O(s),u=c.length-1;u>=0;--u){var l=c[u];if(!d.test(l)){var f=l.match(h);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(c.length>0){var m=c[0];for(u=0;u<s.length;++u)if(s[u]===m){u>0&&(a="\n"+s[u-1]);break}}}var p="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;i.Oe(p,!0,t)}},setBounds:function(e,t){if(j()){for(var n,i,r=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,c=0;c<r.length;++c){if(u=$(r[c])){n=u.fileName,a=u.line;break}}for(c=0;c<o.length;++c){var u;if(u=$(o[c])){i=u.fileName,s=u.line;break}}a<0||s<0||!n||!i||n!==i||a>=s||(H=function(e){if(l.test(e))return!0;var t=$(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:_,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),_(n)},CapturedTrace:G,fireDomEvent:x,fireGlobalEvent:D}}),Ko}function Ja(){if(ta)return ea;ta=1;var e=Mo(),t=e.maybeWrapAsError,n=Za().OperationalError,i=Io();var r=/^(?:name|message|stack|cause)$/;function o(t){var o;if(function(e){return e instanceof Error&&i.getPrototypeOf(e)===Error.prototype}(t)){(o=new n(t)).name=t.name,o.message=t.message,o.stack=t.stack;for(var a=i.keys(t),s=0;s<a.length;++s){var c=a[s];r.test(c)||(o[c]=t[c])}return o}return e.markAsOriginatingFromRejection(t),t}return ea=function(e,n){return function(i,r){if(null!==e){if(i){var a=o(t(i));e.Pe(a),e.be(a)}else if(n){for(var s=arguments.length,c=new Array(Math.max(s-1,0)),u=1;u<s;++u)c[u-1]=arguments[u];e.me(c)}else e.me(r);e=null}}},ea}function Qa(){return ya||(ya=1,va=function(e,t,n,i,r,o){var a=Mo(),s=Za().TypeError,c=Mo().inherits,u=a.errorObj,l=a.tryCatch,d={};function h(e){setTimeout(function(){throw e},0)}function f(t,i){var o=0,a=t.length,s=new e(r);return function r(){if(o>=a)return s.me();var c=function(e){var t=n(e);return t!==e&&"function"==typeof e.st&&"function"==typeof e.ct&&e.st()&&t.ut(e.ct()),t}(t[o++]);if(c instanceof e&&c.st()){try{c=n(c.ct().tryDispose(i),t.promise)}catch(u){return h(u)}if(c instanceof e)return c.fe(r,h,null,null,null)}r()}(),s}function m(e,t,n){this.dt=e,this.ht=t,this.ft=n}function p(e,t,n){this.constructor$(e,t,n)}function g(e){return m.isDisposer(e)?(this.resources[this.index].ut(e),e.promise()):e}function b(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this.dt},m.prototype.promise=function(){return this.ht},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},m.prototype.tryDispose=function(e){var t=this.resource(),n=this.ft;void 0!==n&&n.ue();var i=t!==d?this.doDispose(t,e):null;return void 0!==n&&n.he(),this.ht.bt(),this.dt=null,i},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},c(p,m),p.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},b.prototype.yt=function(){for(var t=this.length,n=0;n<t;++n){var i=this[n];i instanceof e&&i.cancel()}},e.using=function(){var i=arguments.length;if(i<2)return t("you must pass at least 2 arguments to Promise.using");var r,s=arguments[i-1];if("function"!=typeof s)return t("expecting a function but got "+a.classString(s));var c=!0;2===i&&Array.isArray(arguments[0])?(i=(r=arguments[0]).length,c=!1):(r=arguments,i--);for(var d=new b(i),h=0;h<i;++h){var p=r[h];if(m.isDisposer(p)){var v=p;(p=p.promise()).ut(v)}else{var y=n(p);y instanceof e&&(p=y.fe(g,null,null,{resources:d,index:h},void 0))}d[h]=p}var w=new Array(d.length);for(h=0;h<w.length;++h)w[h]=e.resolve(d[h]).reflect();var x=e.all(w).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return u.e=n.error(),u;if(!n.isFulfilled())return void x.cancel();e[t]=n.value()}D.ue(),s=l(s);var i=c?s.apply(void 0,e):s(e),r=D.he();return o.checkForgottenReturns(i,r,"Promise.using",D),i}),D=x.lastly(function(){var t=new e.PromiseInspection(x);return f(d,t)});return d.promise=D,D.je(d),D},e.prototype.ut=function(e){this.Te=131072|this.Te,this.wt=e},e.prototype.st=function(){return(131072&this.Te)>0},e.prototype.ct=function(){return this.wt},e.prototype.bt=function(){this.Te=-131073&this.Te,this.wt=void 0},e.prototype.disposer=function(e){if("function"==typeof e)return new p(e,this,i());throw new s}}),va}function es(){return xa?wa:(xa=1,wa=function(e,t,n){var i=Mo(),r=e.TimeoutError;function o(e){this.handle=e}o.prototype.yt=function(){clearTimeout(this.handle)};var a=function(e){return s(+this).thenReturn(e)},s=e.delay=function(i,r){var s,c;return void 0!==r?(s=e.resolve(r).fe(a,null,null,i,void 0),n.cancellation()&&r instanceof e&&s.je(r)):(s=new e(t),c=setTimeout(function(){s.me()},+i),n.cancellation()&&s.je(new o(c)),s.ve()),s.xt(),s};e.prototype.delay=function(e){return s(e,this)};function c(e){return clearTimeout(this.handle),e}function u(e){throw clearTimeout(this.handle),e}e.prototype.timeout=function(e,t){var a,s;e=+e;var l=new o(setTimeout(function(){a.isPending()&&function(e,t,n){var o;o="string"!=typeof t?t instanceof Error?t:new r("operation timed out"):new r(t),i.markAsOriginatingFromRejection(o),e.Pe(o),e.be(o),null!=n&&n.cancel()}(a,t,s)},e));return n.cancellation()?(s=this.then(),(a=s.fe(c,u,void 0,l,void 0)).je(l)):a=this.fe(c,u,void 0,l,void 0),a}})}function ts(){return Ua||(Ua=1,Da=function(e,t,n,i,r,o){var a=Za().TypeError,s=Mo(),c=s.errorObj,u=s.tryCatch,l=[];function d(t,i,r,a){if(o.cancellation()){var s=new e(n),c=this.Dt=new e(n);this.ht=s.lastly(function(){return c}),s.ve(),s.je(this)}else{(this.ht=new e(n)).ve()}this.Ut=a,this.Tt=t,this.kt=i,this.At=void 0,this.Ft="function"==typeof r?[r].concat(l):l,this.St=null,this.Et=!1}s.inherits(d,r),d.prototype.Ct=function(){return null===this.ht},d.prototype.Bt=function(){this.ht=this.At=null,o.cancellation()&&null!==this.Dt&&(this.Dt.me(),this.Dt=null)},d.prototype.Wt=function(){if(!this.Ct()){var t;if(void 0!==this.At.return)this.ht.ue(),t=u(this.At.return).call(this.At,void 0),this.ht.he();else{var n=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=n,this.ht.Pe(n),this.ht.ue(),t=u(this.At.throw).call(this.At,n),this.ht.he()}this.Et=!0,this.St=null,this.It(t)}},d.prototype.Mt=function(e){this.St=null,this.ht.ue();var t=u(this.At.next).call(this.At,e);this.ht.he(),this.It(t)},d.prototype.Rt=function(e){this.St=null,this.ht.Pe(e),this.ht.ue();var t=u(this.At.throw).call(this.At,e);this.ht.he(),this.It(t)},d.prototype.yt=function(){if(this.St instanceof e){var t=this.St;this.St=null,t.cancel()}},d.prototype.promise=function(){return this.ht},d.prototype.zt=function(){this.At=this.Tt.call(this.kt),this.kt=this.Tt=void 0,this.Mt(void 0)},d.prototype.It=function(t){var n=this.ht;if(t===c)return this.Bt(),this.Et?n.cancel():n.ye(t.e,!1);var r=t.value;if(!0===t.done)return this.Bt(),this.Et?n.cancel():n.we(r);var o=i(r,this.ht);if(o instanceof e||(o=function(t,n,r){for(var o=0;o<n.length;++o){r.ue();var a=u(n[o])(t);if(r.he(),a===c){r.ue();var s=e.reject(c.e);return r.he(),s}var l=i(a,r);if(l instanceof e)return l}return null}(o,this.Ft,this.ht),null!==o)){var s=(o=o.Ue()).Te;50397184&s?33554432&s?e.De.invoke(this.Mt,this,o._t()):16777216&s?e.De.invoke(this.Rt,this,o.Ot()):this.Wt():(this.St=o,o.Pt(this,null))}else this.Rt(new a("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",r)+"From coroutine:\n"+this.Ut.split("\n").slice(1,-7).join("\n")))},e.coroutine=function(e,t){if("function"!=typeof e)throw new a("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,i=d,r=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new i(void 0,void 0,n,r),a=o.promise();return o.At=t,o.Mt(void 0),a}},e.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new a("expecting a function but got "+s.classString(e));l.push(e)},e.spawn=function(n){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof n)return t("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=new d(n,this),r=i.promise();return i.zt(e.spawn),r}}),Da}function ns(){return Fa||(Fa=1,Aa=function(e,t){var n={},i=Mo(),r=Ja(),o=i.withAppended,a=i.maybeWrapAsError,s=i.canEvaluate,c=Za().TypeError,u={Nt:!0},l=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),d=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function h(e){return!l.test(e)}function f(e){try{return!0===e.Nt}catch(t){return!1}}function m(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,u);return!!r&&f(r)}function p(e,t,n,r){for(var o=i.inheritedDataKeys(e),a=[],s=0;s<o.length;++s){var u=o[s],l=e[u],h=r===d||d(u);"function"!=typeof l||f(l)||m(e,u,t)||!r(u,l,e,h)||a.push(u,l)}return function(e,t,n){for(var i=0;i<e.length;i+=2){var r=e[i];if(n.test(r))for(var o=r.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new c("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(a,t,n),a}var g;g=function(s,c,u,l,d,h){var f=Math.max(0,function(e){return"number"==typeof e.length?Math.max(Math.min(e.length,1024),0):0}(l)-1),m=function(e){for(var t=[e],n=Math.max(0,e-1-3),i=e-1;i>=n;--i)t.push(i);for(i=e+1;i<=3;++i)t.push(i);return t}(f),p="string"==typeof s||c===n;function g(e){var t,n=(t=e,i.filledRange(t,"_arg","")).join(", "),r=e>0?", ":"";return(p?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===c?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n").replace("{{args}}",n).replace(", ",r)}var b,v="string"==typeof s?"this != null ? this['"+s+"'] : fn":"fn",y="'use strict'; \n\t var ret = function (Parameters) { \n\t 'use strict'; \n\t var len = arguments.length; \n\t var promise = new Promise(INTERNAL); \n\t promise._captureStackTrace(); \n\t var nodeback = nodebackForPromise(promise, "+h+"); \n\t var ret; \n\t var callback = tryCatch([GetFunctionCode]); \n\t switch(len) { \n\t [CodeForSwitchCase] \n\t } \n\t if (ret === errorObj) { \n\t promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n\t } \n\t if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); \n\t return promise; \n\t }; \n\t notEnumerableProp(ret, '__isPromisified__', true); \n\t return ret; \n\t ".replace("[CodeForSwitchCase]",function(){for(var e="",t=0;t<m.length;++t)e+="case "+m[t]+":"+g(m[t]);return e+=" \n\t default: \n\t var args = new Array(len + 1); \n\t var i = 0; \n\t for (var i = 0; i < len; ++i) { \n\t args[i] = arguments[i]; \n\t } \n\t args[i] = nodeback; \n\t [CodeForCall] \n\t break; \n\t ".replace("[CodeForCall]",p?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n")}()).replace("[GetFunctionCode]",v);return y=y.replace("Parameters",(b=f,i.filledRange(Math.max(b,3),"_arg",""))),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",y)(e,l,c,o,a,r,i.tryCatch,i.errorObj,i.notEnumerableProp,t)};var b=s?g:function(s,c,u,l,d,h){var f=function(){return this}(),m=s;function p(){var i=c;c===n&&(i=this);var u=new e(t);u.ve();var l="string"==typeof m&&this!==f?this[m]:s,d=r(u,h);try{l.apply(i,o(arguments,d))}catch(p){u.ye(a(p),!0,!0)}return u.qt()||u.xt(),u}return"string"==typeof m&&(s=l),i.notEnumerableProp(p,"__isPromisified__",!0),p};function v(e,t,r,o,a){for(var s=new RegExp(t.replace(/([$])/,"\\$")+"$"),c=p(e,t,s,r),u=0,l=c.length;u<l;u+=2){var d=c[u],h=c[u+1],f=d+t;if(o===b)e[f]=b(d,n,d,h,t,a);else{var m=o(h,function(){return b(d,n,d,h,t,a)});i.notEnumerableProp(m,"__isPromisified__",!0),e[f]=m}}return i.toFastProperties(e),e}e.promisify=function(e,t){if("function"!=typeof e)throw new c("expecting a function but got "+i.classString(e));if(f(e))return e;var r=function(e,t,n){return b(e,t,void 0,e,null,n)}(e,void 0===(t=Object(t)).context?n:t.context,!!t.multiArgs);return i.copyDescriptors(e,r,h),r},e.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new c("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,r=t.suffix;"string"!=typeof r&&(r="Async");var o=t.filter;"function"!=typeof o&&(o=d);var a=t.promisifier;if("function"!=typeof a&&(a=b),!i.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=i.inheritedDataKeys(e),u=0;u<s.length;++u){var l=e[s[u]];"constructor"!==s[u]&&i.isClass(l)&&(v(l.prototype,r,o,a,n),v(l,r,o,a,n))}return v(e,r,o,a,n)}}),Aa}function is(){return Ea||(Ea=1,Sa=function(e,t,n,i){var r,o=Mo(),a=o.isObject,s=Io();"function"==typeof Map&&(r=Map);var c=function(){var e=0,t=0;function n(n,i){this[e]=n,this[e+t]=i,e++}return function(i){t=i.size,e=0;var r=new Array(2*i.size);return i.forEach(n,r),r}}();function u(e){var t,n=!1;if(void 0!==r&&e instanceof r)t=c(e),n=!0;else{var i=s.keys(e),o=i.length;t=new Array(2*o);for(var a=0;a<o;++a){var u=i[a];t[a]=e[u],t[a+o]=u}}this.constructor$(t),this.jt=n,this.Ht(void 0,-3)}function l(t){var r,o=n(t);return a(o)?(r=o instanceof e?o.fe(e.props,void 0,void 0,void 0,void 0):new u(o).promise(),o instanceof e&&r.Ye(o,2),r):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}o.inherits(u,t),u.prototype.Vt=function(){},u.prototype.Mt=function(e,t){if(this.$t[t]=e,++this.Kt>=this.P){var n;if(this.jt)n=function(e){for(var t=new r,n=e.length/2|0,i=0;i<n;++i){var o=e[n+i],a=e[i];t.set(o,a)}return t}(this.$t);else{n={};for(var i=this.length(),o=0,a=this.length();o<a;++o)n[this.$t[o+i]]=this.$t[o]}return this.Zt(n),!0}return!1},u.prototype.shouldCopyValues=function(){return!1},u.prototype.getActualLength=function(e){return e>>1},e.prototype.props=function(){return l(this)},e.props=function(e){return l(e)}}),Sa}function rs(){return Ba||(Ba=1,Ca=function(e,t,n,i){var r=Mo();function o(a,s){var c,u=n(a);if(u instanceof e)return(c=u).then(function(e){return o(e,c)});if(null===(a=r.asArray(a)))return i("expecting an array or an iterable object but got "+r.classString(a));var l=new e(t);void 0!==s&&l.Ye(s,3);for(var d=l.me,h=l.be,f=0,m=a.length;f<m;++f){var p=a[f];(void 0!==p||f in a)&&e.cast(p).fe(d,h,void 0,l,null)}return l}e.race=function(e){return o(e,void 0)},e.prototype.race=function(){return o(this,void 0)}}),Ca}function os(){return Ha||(Ha=1,(e=Bo).exports=function(){var t=function(){return new h("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},n=function(){return new F.PromiseInspection(this.Ue())},i=function(e){return F.reject(new h(e))};function r(){}var o,a={},s=Mo();o=s.isNode?function(){var e=process.domain;return void 0===e&&(e=null),e}:function(){return null},s.notEnumerableProp(F,"_getDomain",o);var c=Io(),u=Ka(),l=new u;c.defineProperty(F,"_async",{value:l});var d=Za(),h=F.TypeError=d.TypeError;F.RangeError=d.RangeError;var f=F.CancellationError=d.CancellationError;F.TimeoutError=d.TimeoutError,F.OperationalError=d.OperationalError,F.RejectionError=d.OperationalError,F.AggregateError=d.AggregateError;var m=function(){},p={},g={},b=Xa()(F,m),v=(Vo||(Vo=1,Ho=function(e,t,n,i,r){var o=Mo();function a(n){var i=this.ht=new e(t);n instanceof e&&i.Ye(n,3),i.je(this),this.$t=n,this.P=0,this.Kt=0,this.Vt(void 0,-2)}return o.isArray,o.inherits(a,r),a.prototype.length=function(){return this.P},a.prototype.promise=function(){return this.ht},a.prototype.Vt=function t(r,a){var s=n(this.$t,this.ht);if(s instanceof e){var c=(s=s.Ue()).Te;if(this.$t=s,!(50397184&c))return this.ht.xt(),s.fe(t,this.be,void 0,this,a);if(!(33554432&c))return 16777216&c?this.be(s.Ot()):this.Xt();s=s._t()}if(null!==(s=o.asArray(s)))0!==s.length?this.Yt(s):-5===a?this.Jt():this.Zt(function(e){switch(e){case-2:return[];case-3:return{}}}(a));else{var u=i("expecting an array or an iterable object but got "+o.classString(s)).reason();this.ht.ye(u,!1)}},a.prototype.Yt=function(t){var i=this.getActualLength(t.length);this.P=i,this.$t=this.shouldCopyValues()?new Array(i):this.$t;for(var r=this.ht,o=!1,a=null,s=0;s<i;++s){var c=n(t[s],r);a=c instanceof e?(c=c.Ue()).Te:null,o?null!==a&&c.suppressUnhandledRejections():null!==a?50397184&a?o=33554432&a?this.Mt(c._t(),s):16777216&a?this.Rt(c.Ot(),s):this.Wt(s):(c.Pt(this,s),this.$t[s]=c):o=this.Mt(c,s)}o||r.xt()},a.prototype.Ct=function(){return null===this.$t},a.prototype.Zt=function(e){this.$t=null,this.ht.me(e)},a.prototype.Xt=function(){!this.Ct()&&this.ht.Ne()&&(this.$t=null,this.ht.Xt())},a.prototype.be=function(e){this.$t=null,this.ht.ye(e,!1)},a.prototype.Mt=function(e,t){return this.$t[t]=e,++this.Kt>=this.P&&(this.Zt(this.$t),!0)},a.prototype.Wt=function(){return this.Xt(),!0},a.prototype.Rt=function(e){return this.Kt++,this.be(e),!0},a.prototype.yt=function(){if(!this.Ct()){var t=this.$t;if(this.Xt(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},a.prototype.shouldCopyValues=function(){return!0},a.prototype.getActualLength=function(e){return e},a}),Ho)(F,m,b,i,r),y=(Go?$o:(Go=1,$o=function(e){var t=!1,n=[];function i(){this.et=new i.CapturedTrace(r())}function r(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype.Qt=function(){},e.prototype.ue=function(){},e.prototype.he=function(){return null},e.tt=e.prototype.tt=function(){},i.prototype.ue=function(){void 0!==this.et&&(this.et.Qt=null,n.push(this.et))},i.prototype.he=function(){if(void 0!==this.et){var e=n.pop(),t=e.Qt;return e.Qt=null,t}return null},i.CapturedTrace=null,i.create=function(){if(t)return new i},i.deactivateLongStackTraces=function(){},i.activateLongStackTraces=function(){var n=e.prototype.ue,o=e.prototype.he,a=e.tt,s=e.prototype.tt,c=e.prototype.Qt;i.deactivateLongStackTraces=function(){e.prototype.ue=n,e.prototype.he=o,e.tt=a,e.prototype.tt=s,e.prototype.Qt=c,t=!1},t=!0,e.prototype.ue=i.prototype.ue,e.prototype.he=i.prototype.he,e.tt=e.prototype.tt=r,e.prototype.Qt=function(){var e=this.tt();e&&null==e.Qt&&(e.Qt=this)}},i}))(F),w=y.create,x=Ya()(F,y);x.CapturedTrace;var D=(Yo||(Yo=1,Xo=function(e,t){var n=Mo(),i=e.CancellationError,r=n.errorObj;function o(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function a(e){this.finallyHandler=e}function s(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise.be(t):e.cancelPromise.Xt(),e.cancelPromise=null,!0)}function c(){return l.call(this,this.promise.Ue().We())}function u(e){if(!s(this,e))return r.e=e,r}function l(n){var o=this.promise,l=this.handler;if(!this.called){this.called=!0;var d=this.isFinallyHandler()?l.call(o.tn()):l.call(o.tn(),n);if(void 0!==d){o.Ee();var h=t(d,o);if(h instanceof e){if(null!=this.cancelPromise){if(h.nn()){var f=new i("late cancellation observer");return o.Pe(f),r.e=f,r}h.isPending()&&h.Le(new a(this))}return h.fe(c,u,void 0,this,void 0)}}}return o.isRejected()?(s(this),r.e=n,r):(s(this),n)}return o.prototype.isFinallyHandler=function(){return 0===this.type},a.prototype.yt=function(){s(this.finallyHandler)},e.prototype.rn=function(e,t,n,i){return"function"!=typeof e?this.then():this.fe(n,i,void 0,new o(this,t,e),void 0)},e.prototype.lastly=e.prototype.finally=function(e){return this.rn(e,0,l,l)},e.prototype.tap=function(e){return this.rn(e,1,l)},o}),Xo)(F,b),U=(Qo||(Qo=1,Jo=function(e){var t=Mo(),n=Io().keys,i=t.tryCatch,r=t.errorObj;return function(o,a,s){return function(c){var u=s.tn();e:for(var l=0;l<o.length;++l){var d=o[l];if(d===Error||null!=d&&d.prototype instanceof Error){if(c instanceof d)return i(a).call(u,c)}else if("function"==typeof d){var h=i(d).call(u,c);if(h===r)return h;if(h)return i(a).call(u,c)}else if(t.isObject(c)){for(var f=n(d),m=0;m<f.length;++m){var p=f[m];if(d[p]!=c[p])continue e}return i(a).call(u,c)}}return e}}}),Jo)(g),T=Ja(),k=s.errorObj,A=s.tryCatch;function F(e){this.Te=0,this.an=void 0,this.sn=void 0,this.cn=void 0,this.un=void 0,e!==m&&(function(e,t){if("function"!=typeof t)throw new h("expecting a function but got "+s.classString(t));if(e.constructor!==F)throw new h("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}(this,e),this.ln(e)),this.Qt(),this.Qe("promiseCreated",this)}function S(e){this.promise.we(e)}function E(e){this.promise.ye(e,!1)}function C(e){var t=new F(m);t.an=e,t.sn=e,t.cn=e,t.un=e}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),o=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!s.isObject(a))return i("expecting an object but got A catch statement predicate "+s.classString(a));r[o++]=a}return r.length=o,e=arguments[n],this.then(void 0,U(r,e,this))}return this.then(void 0,e)},F.prototype.reflect=function(){return this.fe(n,n,void 0,this,void 0)},F.prototype.then=function(e,t){if(x.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+s.classString(e);arguments.length>1&&(n+=", "+s.classString(t)),this.Oe(n)}return this.fe(e,t,void 0,void 0,void 0)},F.prototype.done=function(e,t){this.fe(e,t,void 0,void 0,void 0).dn()},F.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+s.classString(e)):this.all().fe(e,void 0,void 0,p,void 0)},F.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},F.prototype.all=function(){return arguments.length>0&&this.Oe(".all() was passed arguments but it does not take any"),new v(this).promise()},F.prototype.error=function(e){return this.caught(s.originatesFromRejection,e)},F.getNewLibraryCopy=e.exports,F.is=function(e){return e instanceof F},F.fromNode=F.fromCallback=function(e){var t=new F(m);t.ve();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,i=A(e)(T(t,n));return i===k&&t.ye(i.e,!0),t.qt()||t.xt(),t},F.all=function(e){return new v(e).promise()},F.cast=function(e){var t=b(e);return t instanceof F||((t=new F(m)).ve(),t.hn(),t.sn=e),t},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(e){var t=new F(m);return t.ve(),t.ye(e,!0),t},F.setScheduler=function(e){if("function"!=typeof e)throw new h("expecting a function but got "+s.classString(e));return l.setScheduler(e)},F.prototype.fe=function(e,t,n,i,r){var a=void 0!==r,c=a?r:new F(m),u=this.Ue(),d=u.Te;a||(c.Ye(this,3),c.ve(),void 0===i&&2097152&this.Te&&(i=50397184&d?this.tn():u===this?void 0:this.Ze),this.Qe("promiseChained",this,c));var h=o();if(50397184&d){var p,g,b=u.pn;33554432&d?(g=u.sn,p=e):16777216&d?(g=u.an,p=t,u._e()):(b=u.gn,g=new f("late cancellation observer"),u.Pe(g),p=t),l.invoke(b,u,{handler:null===h?p:"function"==typeof p&&s.domainBind(h,p),promise:c,receiver:i,value:g})}else u.bn(e,t,c,i,h);return c},F.prototype.P=function(){return 65535&this.Te},F.prototype.qt=function(){return!!(117506048&this.Te)},F.prototype.vn=function(){return!(67108864&~this.Te)},F.prototype.yn=function(e){this.Te=-65536&this.Te|65535&e},F.prototype.hn=function(){this.Te=33554432|this.Te,this.Qe("promiseFulfilled",this)},F.prototype.wn=function(){this.Te=16777216|this.Te,this.Qe("promiseRejected",this)},F.prototype.xn=function(){this.Te=67108864|this.Te,this.Qe("promiseResolved",this)},F.prototype.dn=function(){this.Te=4194304|this.Te},F.prototype.Dn=function(){return(4194304&this.Te)>0},F.prototype.Un=function(){this.Te=-65537&this.Te},F.prototype.Tn=function(){this.Te=65536|this.Te,this.Qe("promiseCancelled",this)},F.prototype.kn=function(){this.Te=8388608|this.Te},F.prototype.xt=function(){l.hasCustomScheduler()||(this.Te=134217728|this.Te)},F.prototype.An=function(e){var t=0===e?this.un:this[4*e-4+3];if(t!==a)return void 0===t&&this.Ge()?this.tn():t},F.prototype.Fn=function(e){return this[4*e-4+2]},F.prototype.Sn=function(e){return this[4*e-4+0]},F.prototype.En=function(e){return this[4*e-4+1]},F.prototype.tn=function(){},F.prototype.Cn=function(e){e.Te;var t=e.an,n=e.sn,i=e.cn,r=e.An(0);void 0===r&&(r=a),this.bn(t,n,i,r,null)},F.prototype.Bn=function(e,t){var n=e.Sn(t),i=e.En(t),r=e.Fn(t),o=e.An(t);void 0===o&&(o=a),this.bn(n,i,r,o,null)},F.prototype.bn=function(e,t,n,i,r){var o=this.P();if(o>=65531&&(o=0,this.yn(0)),0===o)this.cn=n,this.un=i,"function"==typeof e&&(this.an=null===r?e:s.domainBind(r,e)),"function"==typeof t&&(this.sn=null===r?t:s.domainBind(r,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=i,"function"==typeof e&&(this[a+0]=null===r?e:s.domainBind(r,e)),"function"==typeof t&&(this[a+1]=null===r?t:s.domainBind(r,t))}return this.yn(o+1),o},F.prototype.Pt=function(e,t){this.bn(void 0,void 0,t,e,null)},F.prototype.we=function(e,n){if(!(117506048&this.Te)){if(e===this)return this.ye(t(),!1);var i=b(e,this);if(!(i instanceof F))return this.me(e);n&&this.Ye(i,2);var r=i.Ue();if(r!==this){var o=r.Te;if(50397184&o)if(33554432&o)this.me(r._t());else if(16777216&o)this.be(r.Ot());else{var a=new f("late cancellation observer");r.Pe(a),this.be(a)}else{var s=this.P();s>0&&r.Cn(this);for(var c=1;c<s;++c)r.Bn(this,c);this.xn(),this.yn(0),this.Wn(r)}}else this.be(t())}},F.prototype.ye=function(e,t,n){var i=s.ensureErrorObject(e),r=i===e;if(!r&&!n&&x.warnings()){var o="a promise was rejected with a non-error: "+s.classString(e);this.Oe(o,!0)}this.Pe(i,!!t&&r),this.be(e)},F.prototype.ln=function(e){var t=this;this.ve(),this.ue();var n=!0,i=this.Je(e,function(e){t.we(e)},function(e){t.ye(e,n)});n=!1,this.he(),void 0!==i&&t.ye(i,!0)},F.prototype.In=function(e,t,n,i){var r=i.Te;if(!(65536&r)){var o;i.ue(),t===p?n&&"number"==typeof n.length?o=A(e).apply(this.tn(),n):(o=k).e=new h("cannot .spread() a non-array: "+s.classString(n)):o=A(e).call(t,n);var a=i.he();65536&(r=i.Te)||(o===g?i.be(n):o===k?i.ye(o.e,!1):(x.checkForgottenReturns(o,a,"",i,this),i.we(o)))}},F.prototype.Ue=function(){for(var e=this;e.vn();)e=e.Mn();return e},F.prototype.Mn=function(){return this.sn},F.prototype.Wn=function(e){this.sn=e},F.prototype.Rn=function(e,t,i,o){var a=e instanceof F,s=this.Te,c=!!(134217728&s);65536&s?(a&&e.zn(),i instanceof D&&i.isFinallyHandler()?(i.cancelPromise=e,A(t).call(i,o)===k&&e.be(k.e)):t===n?e.me(n.call(i)):i instanceof r?i.Wt(e):a||e instanceof v?e.Xt():i.cancel()):"function"==typeof t?a?(c&&e.xt(),this.In(t,i,o,e)):t.call(i,o,e):i instanceof r?i.Ct()||(33554432&s?i.Mt(o,e):i.Rt(o,e)):a&&(c&&e.xt(),33554432&s?e.me(o):e.be(o))},F.prototype.gn=function(e){var t=e.handler,n=e.promise,i=e.receiver,r=e.value;"function"==typeof t?n instanceof F?this.In(t,i,r,n):t.call(i,r,n):n instanceof F&&n.be(r)},F.prototype.pn=function(e){this.Rn(e.promise,e.handler,e.receiver,e.value)},F.prototype._n=function(e,t,n){var i=this.cn,r=this.An(0);this.cn=void 0,this.un=void 0,this.Rn(i,e,r,t)},F.prototype.On=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},F.prototype.me=function(e){var n=this.Te;if(!((117506048&n)>>>16)){if(e===this){var i=t();return this.Pe(i),this.be(i)}this.hn(),this.sn=e,(65535&n)>0&&(134217728&n?this.ae():l.settlePromises(this))}},F.prototype.be=function(e){var t=this.Te;if(!((117506048&t)>>>16)){if(this.wn(),this.an=e,this.Dn())return l.fatalError(e,s.isNode);(65535&t)>0?l.settlePromises(this):this.ke()}},F.prototype.Pn=function(e,t){for(var n=1;n<e;n++){var i=this.Sn(n),r=this.Fn(n),o=this.An(n);this.On(n),this.Rn(r,i,o,t)}},F.prototype.Ln=function(e,t){for(var n=1;n<e;n++){var i=this.En(n),r=this.Fn(n),o=this.An(n);this.On(n),this.Rn(r,i,o,t)}},F.prototype.ae=function(){var e=this.Te,t=65535&e;if(t>0){if(16842752&e){var n=this.an;this._n(this.sn,n,e),this.Ln(t,n)}else{var i=this.sn;this._n(this.an,i,e),this.Pn(t,i)}this.yn(0)}this.Xe()},F.prototype.We=function(){var e=this.Te;return 33554432&e?this.sn:16777216&e?this.an:void 0},F.defer=F.pending=function(){return x.deprecated("Promise.defer","new Promise"),{promise:new F(m),resolve:S,reject:E}},s.notEnumerableProp(F,"_makeSelfResolutionError",t),(ia||(ia=1,na=function(e,t,n,i,r){var o=Mo(),a=o.tryCatch;e.method=function(n){if("function"!=typeof n)throw new e.TypeError("expecting a function but got "+o.classString(n));return function(){var i=new e(t);i.ve(),i.ue();var o=a(n).apply(this,arguments),s=i.he();return r.checkForgottenReturns(o,s,"Promise.method",i),i.Nn(o),i}},e.attempt=e.try=function(n){if("function"!=typeof n)return i("expecting a function but got "+o.classString(n));var s,c=new e(t);if(c.ve(),c.ue(),arguments.length>1){r.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];s=o.isArray(u)?a(n).apply(l,u):a(n).call(l,u)}else s=a(n)();var d=c.he();return r.checkForgottenReturns(s,d,"Promise.try",c),c.Nn(s),c},e.prototype.Nn=function(e){e===o.errorObj?this.ye(e.e,!1):this.we(e,!0)}}),na)(F,m,b,i,x),(oa?ra:(oa=1,ra=function(e,t,n,i){var r=!1,o=function(e,t){this.be(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise.fe(o,o,null,this,e)},s=function(e,t){50397184&this.Te||this.we(t.target)},c=function(e,t){t.promiseRejectionQueued||this.be(e)};e.prototype.bind=function(o){r||(r=!0,e.prototype.Ye=i.propagateFromFunction(),e.prototype.tn=i.boundValueFunction());var u=n(o),l=new e(t);l.Ye(this,1);var d=this.Ue();if(l.Ke(u),u instanceof e){var h={promiseRejectionQueued:!1,promise:l,target:d,bindingPromise:u};d.fe(t,a,void 0,l,h),u.fe(s,c,void 0,l,h),l.je(u)}else l.we(d);return l},e.prototype.Ke=function(e){void 0!==e?(this.Te=2097152|this.Te,this.Ze=e):this.Te=-2097153&this.Te},e.prototype.Ge=function(){return!(2097152&~this.Te)},e.bind=function(t,n){return e.resolve(n).bind(t)}}))(F,m,b,x),(sa||(sa=1,aa=function(e,t,n,i){var r=Mo(),o=r.tryCatch,a=r.errorObj,s=e.De;e.prototype.break=e.prototype.cancel=function(){if(!i.cancellation())return this.Oe("cancellation is disabled");for(var e=this,t=e;e.Ne();){if(!e.qn(t)){t.vn()?t.Mn().cancel():t.jn();break}var n=e.Ve;if(null==n||!n.Ne()){e.vn()?e.Mn().cancel():e.jn();break}e.vn()&&e.Mn().cancel(),e.kn(),t=e,e=n}},e.prototype.Hn=function(){this.$e--},e.prototype.Vn=function(){return void 0===this.$e||this.$e<=0},e.prototype.qn=function(e){return e===this?(this.$e=0,this.$n(),!0):(this.Hn(),!!this.Vn()&&(this.$n(),!0))},e.prototype.jn=function(){this.Vn()&&this.Xt()},e.prototype.Xt=function(){this.Ne()&&(this.Tn(),s.invoke(this.Gn,this,void 0))},e.prototype.Gn=function(){this.P()>0&&this.ae()},e.prototype.Kn=function(){this.He=void 0},e.prototype.Ne=function(){return this.isPending()&&!this.nn()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype.Zn=function(e,t){if(r.isArray(e))for(var n=0;n<e.length;++n)this.Zn(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var i=o(e).call(this.tn());i===a&&(this.Pe(i.e),s.throwLater(i.e))}}else e.yt(this)},e.prototype.$n=function(){var e=this.qe();this.Kn(),s.invoke(this.Zn,this,e)},e.prototype.zn=function(){this.Ne()&&(this.Zn(this.qe(),!0),this.Kn())},e.prototype.yt=function(){this.cancel()}}),aa)(F,v,i,x),(ua||(ua=1,ca=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this.fe(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this.fe(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this.fe(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,function(){throw t})},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this.fe(void 0,t,void 0,{value:n},void 0);var i=arguments[1];return i instanceof e&&i.suppressUnhandledRejections(),this.caught(n,function(){return i})}}),ca)(F),(da?la:(da=1,la=function(e){function t(e){void 0!==e?(e=e.Ue(),this.Te=e.Te,this.Xn=e.qt()?e.We():void 0):(this.Te=0,this.Xn=void 0)}t.prototype.We=function(){return this.Xn};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this.We()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this.We()},r=t.prototype.isFulfilled=function(){return!!(33554432&this.Te)},o=t.prototype.isRejected=function(){return!!(16777216&this.Te)},a=t.prototype.isPending=function(){return!(50397184&this.Te)},s=t.prototype.isResolved=function(){return!!(50331648&this.Te)};t.prototype.isCancelled=function(){return!!(8454144&this.Te)},e.prototype.Yn=function(){return!(65536&~this.Te)},e.prototype.nn=function(){return this.Ue().Yn()},e.prototype.isCancelled=function(){return!!(8454144&this.Ue().Te)},e.prototype.isPending=function(){return a.call(this.Ue())},e.prototype.isRejected=function(){return o.call(this.Ue())},e.prototype.isFulfilled=function(){return r.call(this.Ue())},e.prototype.isResolved=function(){return s.call(this.Ue())},e.prototype.value=function(){return n.call(this.Ue())},e.prototype.reason=function(){var e=this.Ue();return e._e(),i.call(e)},e.prototype._t=function(){return this.We()},e.prototype.Ot=function(){return this._e(),this.We()},e.PromiseInspection=t}))(F),(fa||(fa=1,ha=function(e,t,n,i,r,o){var a,s=Mo(),c=s.canEvaluate,u=s.tryCatch,l=s.errorObj;if(c){for(var d=function(e){return new Function("value","holder"," \n\t 'use strict'; \n\t holder.pIndex = value; \n\t holder.checkFulfillment(this); \n\t ".replace(/Index/g,e))},h=function(e){return new Function("promise","holder"," \n\t 'use strict'; \n\t holder.pIndex = promise; \n\t ".replace(/Index/g,e))},f=function(t){for(var n=new Array(t),i=0;i<n.length;++i)n[i]="this.p"+(i+1);var o=n.join(" = ")+" = null;",a="var promise;\n"+n.map(function(e){return" \n\t promise = "+e+"; \n\t if (promise instanceof Promise) { \n\t promise.cancel(); \n\t } \n\t "}).join("\n"),s=n.join(", "),c="Holder$"+t,d="return function(tryCatch, errorObj, Promise, async) { \n\t 'use strict'; \n\t function [TheName](fn) { \n\t [TheProperties] \n\t this.fn = fn; \n\t this.asyncNeeded = true; \n\t this.now = 0; \n\t } \n\t \n\t [TheName].prototype._callFunction = function(promise) { \n\t promise._pushContext(); \n\t var ret = tryCatch(this.fn)([ThePassedArguments]); \n\t promise._popContext(); \n\t if (ret === errorObj) { \n\t promise._rejectCallback(ret.e, false); \n\t } else { \n\t promise._resolveCallback(ret); \n\t } \n\t }; \n\t \n\t [TheName].prototype.checkFulfillment = function(promise) { \n\t var now = ++this.now; \n\t if (now === [TheTotal]) { \n\t if (this.asyncNeeded) { \n\t async.invoke(this._callFunction, this, promise); \n\t } else { \n\t this._callFunction(promise); \n\t } \n\t \n\t } \n\t }; \n\t \n\t [TheName].prototype._resultCancelled = function() { \n\t [CancellationCode] \n\t }; \n\t \n\t return [TheName]; \n\t }(tryCatch, errorObj, Promise, async); \n\t ";return d=d.replace(/\[TheName\]/g,c).replace(/\[TheTotal\]/g,t).replace(/\[ThePassedArguments\]/g,s).replace(/\[TheProperties\]/g,o).replace(/\[CancellationCode\]/g,a),new Function("tryCatch","errorObj","Promise","async",d)(u,l,e,r)},m=[],p=[],g=[],b=0;b<8;++b)m.push(f(b+1)),p.push(d(b+1)),g.push(h(b+1));a=function(e){this.be(e)}}e.join=function(){var r,u=arguments.length-1;if(u>0&&"function"==typeof arguments[u]&&(r=arguments[u],u<=8&&c)){(D=new e(i)).ve();for(var l=new(0,m[u-1])(r),d=p,h=0;h<u;++h){var f=n(arguments[h],D);if(f instanceof e){var b=(f=f.Ue()).Te;50397184&b?33554432&b?d[h].call(D,f._t(),l):16777216&b?D.be(f.Ot()):D.Xt():(f.fe(d[h],a,void 0,D,l),g[h](f,l),l.asyncNeeded=!1)}else d[h].call(D,f,l)}if(!D.qt()){if(l.asyncNeeded){var v=o();null!==v&&(l.fn=s.domainBind(v,l.fn))}D.xt(),D.je(l)}return D}for(var y=arguments.length,w=new Array(y),x=0;x<y;++x)w[x]=arguments[x];r&&w.pop();var D=new t(w).promise();return void 0!==r?D.spread(r):D}}),ha)(F,v,b,m,l,o),F.Promise=F,F.version="3.4.7",(pa||(pa=1,ma=function(e,t,n,i,r,o){var a=e.xe,s=Mo(),c=s.tryCatch,u=s.errorObj,l=e.De;function d(e,t,n,i){this.constructor$(e),this.ht.ve();var o=a();this.Jn=null===o?t:s.domainBind(o,t),this.Qn=i===r?new Array(this.length()):null,this.ei=n,this.ti=0,this.ri=[],l.invoke(this.oi,this,void 0)}function h(t,i,r,o){if("function"!=typeof i)return n("expecting a function but got "+s.classString(i));var a=0;if(void 0!==r){if("object"!=typeof r||null===r)return e.reject(new TypeError("options argument must be an object but it is "+s.classString(r)));if("number"!=typeof r.concurrency)return e.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(r.concurrency)));a=r.concurrency}return new d(t,i,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,o).promise()}s.inherits(d,t),d.prototype.oi=function(){this.Ht(void 0,-2)},d.prototype.Vt=function(){},d.prototype.Mt=function(t,n){var r=this.$t,a=this.length(),s=this.Qn,l=this.ei;if(n<0){if(r[n=-1*n-1]=t,l>=1&&(this.ti--,this.se(),this.Ct()))return!0}else{if(l>=1&&this.ti>=l)return r[n]=t,this.ri.push(n),!1;null!==s&&(s[n]=t);var d=this.ht,h=this.Jn,f=d.tn();d.ue();var m=c(h).call(f,t,n,a),p=d.he();if(o.checkForgottenReturns(m,p,null!==s?"Promise.filter":"Promise.map",d),m===u)return this.be(m.e),!0;var g=i(m,this.ht);if(g instanceof e){var b=(g=g.Ue()).Te;if(!(50397184&b))return l>=1&&this.ti++,r[n]=g,g.Pt(this,-1*(n+1)),!1;if(!(33554432&b))return 16777216&b?(this.be(g.Ot()),!0):(this.Xt(),!0);m=g._t()}r[n]=m}return++this.Kt>=a&&(null!==s?this.si(r,s):this.Zt(r),!0)},d.prototype.se=function(){for(var e=this.ri,t=this.ei,n=this.$t;e.length>0&&this.ti<t;){if(this.Ct())return;var i=e.pop();this.Mt(n[i],i)}},d.prototype.si=function(e,t){for(var n=t.length,i=new Array(n),r=0,o=0;o<n;++o)e[o]&&(i[r++]=t[o]);i.length=r,this.Zt(i)},d.prototype.preservedValues=function(){return this.Qn},e.prototype.map=function(e,t){return h(this,e,t,null)},e.map=function(e,t,n,i){return h(e,t,n,i)}}),ma)(F,v,i,b,m,x),function(){if(ba)return ga;ba=1;var e=Object.create;if(e){var t=e(null),n=e(null);t[" size"]=n[" size"]=0}return ga=function(e){var i,r,o=Mo(),a=o.canEvaluate,s=o.isIdentifier,c=function(e){return new Function("ensureMethod"," \n\t return function(obj) { \n\t 'use strict' \n\t var len = this.length; \n\t ensureMethod(obj, 'methodName'); \n\t switch(len) { \n\t case 1: return obj.methodName(this[0]); \n\t case 2: return obj.methodName(this[0], this[1]); \n\t case 3: return obj.methodName(this[0], this[1], this[2]); \n\t case 0: return obj.methodName(); \n\t default: \n\t return obj.methodName.apply(obj, this); \n\t } \n\t }; \n\t ".replace(/methodName/g,e))(d)},u=function(e){return new Function("obj"," \n\t 'use strict'; \n\t return obj.propertyName; \n\t ".replace("propertyName",e))},l=function(e,t,n){var i=n[e];if("function"!=typeof i){if(!s(e))return null;if(i=t(e),n[e]=i,n[" size"]++,n[" size"]>512){for(var r=Object.keys(n),o=0;o<256;++o)delete n[r[o]];n[" size"]=r.length-256}}return i};function d(t,n){var i;if(null!=t&&(i=t[n]),"function"!=typeof i){var r="Object "+o.classString(t)+" has no method '"+o.toString(n)+"'";throw new e.TypeError(r)}return i}function h(e){return d(e,this.pop()).apply(e,this)}function f(e){return e[this]}function m(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}i=function(e){return l(e,c,t)},r=function(e){return l(e,u,n)},e.prototype.call=function(e){for(var t=arguments.length,n=new Array(Math.max(t-1,0)),r=1;r<t;++r)n[r-1]=arguments[r];if(a){var o=i(e);if(null!==o)return this.fe(o,void 0,void 0,n,void 0)}return n.push(e),this.fe(h,void 0,void 0,n,void 0)},e.prototype.get=function(e){var t;if("number"==typeof e)t=m;else if(a){var n=r(e);t=null!==n?n:f}else t=f;return this.fe(t,void 0,void 0,e,void 0)}},ga}()(F),Qa()(F,i,b,w,m,x),es()(F,m,x),ts()(F,i,m,b,r,x),(ka?Ta:(ka=1,Ta=function(e){var t=Mo(),n=e.De,i=t.tryCatch,r=t.errorObj;function o(e,o){if(!t.isArray(e))return a.call(this,e,o);var s=i(o).apply(this.tn(),[null].concat(e));s===r&&n.throwLater(s.e)}function a(e,t){var o=this.tn(),a=void 0===e?i(t).call(o,null):i(t).call(o,null,e);a===r&&n.throwLater(a.e)}function s(e,t){if(!e){var o=new Error(e+"");o.cause=e,e=o}var a=i(t).call(this.tn(),e);a===r&&n.throwLater(a.e)}e.prototype.asCallback=e.prototype.nodeify=function(e,t){if("function"==typeof e){var n=a;void 0!==t&&Object(t).spread&&(n=o),this.fe(n,s,void 0,this,e)}return this}}))(F),ns()(F,m),is()(F,v,b,i),rs()(F,m,b,i),(Ia||(Ia=1,Wa=function(e,t,n,i,r,o){var a=e.xe,s=Mo(),c=s.tryCatch;function u(t,n,i,o){this.constructor$(t);var c=a();this.ci=null===c?n:s.domainBind(c,n),void 0!==i&&(i=e.resolve(i)).Le(this),this.ui=i,this.di=null,this.fi=o===r?Array(this.P):0===o?null:void 0,this.ht.ve(),this.Ht(void 0,-5)}function l(e,t){this.isFulfilled()?t.Zt(e):t.be(e)}function d(e,t,i,r){return"function"!=typeof t?n("expecting a function but got "+s.classString(t)):new u(e,t,i,r).promise()}function h(t){this.accum=t,this.array.gi(t);var n=i(this.value,this.array.ht);return n instanceof e?(this.array.di=n,n.fe(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(t){var n,i=this.array,r=i.ht,a=c(i.ci);r.ue(),(n=void 0!==i.fi?a.call(r.tn(),t,this.index,this.length):a.call(r.tn(),this.accum,t,this.index,this.length))instanceof e&&(i.di=n);var s=r.he();return o.checkForgottenReturns(n,s,void 0!==i.fi?"Promise.each":"Promise.reduce",r),n}s.inherits(u,t),u.prototype.gi=function(e){void 0!==this.fi&&null!==this.fi&&e!==r&&this.fi.push(e)},u.prototype.bi=function(e){return null!==this.fi&&this.fi.push(e),this.fi},u.prototype.Vt=function(){},u.prototype.Jt=function(){this.Zt(void 0!==this.fi?this.fi:this.ui)},u.prototype.shouldCopyValues=function(){return!1},u.prototype.Zt=function(e){this.ht.we(e),this.$t=null},u.prototype.yt=function(t){if(t===this.ui)return this.Xt();this.Ct()||(this.yi(),this.di instanceof e&&this.di.cancel(),this.ui instanceof e&&this.ui.cancel())},u.prototype.Yt=function(t){var n,i;this.$t=t;var r=t.length;if(void 0!==this.ui?(n=this.ui,i=0):(n=e.resolve(t[0]),i=1),this.di=n,!n.isRejected())for(;i<r;++i){var o={accum:null,value:t[i],index:i,length:r,array:this};n=n.fe(h,void 0,void 0,o,void 0)}void 0!==this.fi&&(n=n.fe(this.bi,void 0,void 0,this,void 0)),n.fe(l,l,void 0,n,this)},e.prototype.reduce=function(e,t){return d(this,e,t,null)},e.reduce=function(e,t,n,i){return d(e,t,n,i)}}),Wa)(F,v,i,b,m,x),(Ra?Ma:(Ra=1,Ma=function(e,t,n){var i=e.PromiseInspection;function r(e){this.constructor$(e)}Mo().inherits(r,t),r.prototype.wi=function(e,t){return this.$t[e]=t,++this.Kt>=this.P&&(this.Zt(this.$t),!0)},r.prototype.Mt=function(e,t){var n=new i;return n.Te=33554432,n.Xn=e,this.wi(t,n)},r.prototype.Rt=function(e,t){var n=new i;return n.Te=16777216,n.Xn=e,this.wi(t,n)},e.settle=function(e){return n.deprecated(".settle()",".reflect()"),new r(e).promise()},e.prototype.settle=function(){return e.settle(this)}}))(F,v,x),(_a||(_a=1,za=function(e,t,n){var i=Mo(),r=Za().RangeError,o=Za().AggregateError,a=i.isArray,s={};function c(e){this.constructor$(e),this.Di=0,this.Ui=!1,this.Ti=!1}function u(e,t){if((0|t)!==t||t<0)return n("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var i=new c(e),r=i.promise();return i.setHowMany(t),i.init(),r}i.inherits(c,t),c.prototype.Vt=function(){if(this.Ti)if(0!==this.Di){this.Ht(void 0,-5);var e=a(this.$t);!this.Ct()&&e&&this.Di>this.ki()&&this.be(this.Ai(this.length()))}else this.Zt([])},c.prototype.init=function(){this.Ti=!0,this.Vt()},c.prototype.setUnwrap=function(){this.Ui=!0},c.prototype.howMany=function(){return this.Di},c.prototype.setHowMany=function(e){this.Di=e},c.prototype.Mt=function(e){return this.Fi(e),this.Si()===this.howMany()&&(this.$t.length=this.howMany(),1===this.howMany()&&this.Ui?this.Zt(this.$t[0]):this.Zt(this.$t),!0)},c.prototype.Rt=function(e){return this.Ei(e),this.Ci()},c.prototype.Wt=function(){return this.$t instanceof e||null==this.$t?this.Xt():(this.Ei(s),this.Ci())},c.prototype.Ci=function(){if(this.howMany()>this.ki()){for(var e=new o,t=this.length();t<this.$t.length;++t)this.$t[t]!==s&&e.push(this.$t[t]);return e.length>0?this.be(e):this.Xt(),!0}return!1},c.prototype.Si=function(){return this.Kt},c.prototype.Bi=function(){return this.$t.length-this.length()},c.prototype.Ei=function(e){this.$t.push(e)},c.prototype.Fi=function(e){this.$t[this.Kt++]=e},c.prototype.ki=function(){return this.length()-this.Bi()},c.prototype.Ai=function(e){var t="Input array must contain at least "+this.Di+" items but contains only "+e+" items";return new r(t)},c.prototype.Jt=function(){this.be(this.Ai(0))},e.some=function(e,t){return u(e,t)},e.prototype.some=function(e){return u(this,e)},e.Wi=c}),za)(F,v,i),(Pa?Oa:(Pa=1,Oa=function(e,t){var n=e.map;e.prototype.filter=function(e,i){return n(this,e,i,t)},e.filter=function(e,i,r){return n(e,i,r,t)}}))(F,m),(Na?La:(Na=1,La=function(e,t){var n=e.reduce,i=e.all;function r(){return i(this)}e.prototype.each=function(e){return n(this,e,t,0).fe(r,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,i){return n(e,i,t,0).fe(r,void 0,void 0,e,void 0)},e.mapSeries=function(e,i){return n(e,i,t,t)}}))(F,m),(ja?qa:(ja=1,qa=function(e){var t=e.Wi;function n(e){var n=new t(e),i=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),i}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}))(F),s.toFastProperties(F),s.toFastProperties(F.prototype),C({a:1}),C({b:2}),C({c:3}),C(1),C(function(){}),C(void 0),C(!1),C(new F(m)),x.setBounds(u.firstLineError,s.lastLineError),F}),Bo.exports;var e}function as(){if(Va)return Co;Va=1;var e=ko,t=os()();return Co.defer=function(){var e,n,i=new t.Promise(function(t,i){e=t,n=i});return{resolve:e,reject:n,promise:i}},Co.when=t.resolve,Co.resolve=t.resolve,Co.all=t.all,Co.props=t.props,Co.reject=t.reject,Co.promisify=t.promisify,Co.mapSeries=t.mapSeries,Co.attempt=t.attempt,Co.nfcall=function(e){var n=Array.prototype.slice.call(arguments,1);return t.promisify(e).apply(null,n)},t.prototype.fail=t.prototype.caught,t.prototype.also=function(n){return this.then(function(i){var r=e.extend({},i,n(i));return t.props(r)})},Co}var ss,cs={};function us(){if(ss)return cs;ss=1;var e=ko,t=cs.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};var n={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function i(t){this.Ii=e.indexBy(t,function(e){return r(e.noteType,e.noteId)})}function r(e,t){return e+"-"+t}function o(e){return{type:t.break,breakType:e}}return i.prototype.resolve=function(e){return this.findNoteByKey(r(e.noteType,e.noteId))},i.prototype.findNoteByKey=function(e){return this.Ii[e]||null},cs.document=cs.Document=function(e,n){return{type:t.document,children:e,notes:(n=n||{}).notes||new i({}),comments:n.comments||[]}},cs.paragraph=cs.Paragraph=function(e,n){var i=(n=n||{}).indent||{};return{type:t.paragraph,children:e,styleId:n.styleId||null,styleName:n.styleName||null,numbering:n.numbering||null,alignment:n.alignment||null,indent:{start:i.start||null,end:i.end||null,firstLine:i.firstLine||null,hanging:i.hanging||null}}},cs.run=cs.Run=function(e,i){return{type:t.run,children:e,styleId:(i=i||{}).styleId||null,styleName:i.styleName||null,isBold:!!i.isBold,isUnderline:!!i.isUnderline,isItalic:!!i.isItalic,isStrikethrough:!!i.isStrikethrough,isAllCaps:!!i.isAllCaps,isSmallCaps:!!i.isSmallCaps,verticalAlignment:i.verticalAlignment||n.baseline,font:i.font||null,fontSize:i.fontSize||null,highlight:i.highlight||null}},cs.text=cs.Text=function(e){return{type:t.text,value:e}},cs.tab=cs.Tab=function(){return{type:t.tab}},cs.checkbox=cs.Checkbox=function(e){return{type:t.checkbox,checked:e.checked}},cs.Hyperlink=function(e,n){return{type:t.hyperlink,children:e,href:n.href,anchor:n.anchor,targetFrame:n.targetFrame}},cs.noteReference=cs.NoteReference=function(e){return{type:t.noteReference,noteType:e.noteType,noteId:e.noteId}},cs.Notes=i,cs.Note=function(e){return{type:t.note,noteType:e.noteType,noteId:e.noteId,body:e.body}},cs.commentReference=function(e){return{type:t.commentReference,commentId:e.commentId}},cs.comment=function(e){return{type:t.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}},cs.Image=function(e){return{type:t.image,read:function(t){return t?e.readImage(t):e.readImage().then(function(e){return Buffer.from(e)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then(function(e){return Buffer.from(e)})},altText:e.altText,contentType:e.contentType}},cs.Table=function(e,n){return{type:t.table,children:e,styleId:(n=n||{}).styleId||null,styleName:n.styleName||null}},cs.TableRow=function(e,n){return{type:t.tableRow,children:e,isHeader:(n=n||{}).isHeader||!1}},cs.TableCell=function(e,n){return{type:t.tableCell,children:e,colSpan:null==(n=n||{}).colSpan?1:n.colSpan,rowSpan:null==n.rowSpan?1:n.rowSpan}},cs.lineBreak=o("line"),cs.pageBreak=o("page"),cs.columnBreak=o("column"),cs.BookmarkStart=function(e){return{type:t.bookmarkStart,name:e.name}},cs.verticalAlignment=n,cs}var ls,ds={};function hs(){if(ls)return ds;ls=1;var e=ko;function t(e,t){this.value=e,this.messages=t||[]}function n(t){var n=[];return e.flatten(e.pluck(t,"messages"),!0).forEach(function(t){(function(t,n){return void 0!==e.find(t,i.bind(null,n))})(n,t)||n.push(t)}),n}function i(e,t){return e.type===t.type&&e.message===t.message}return ds.Result=t,ds.success=function(e){return new t(e,[])},ds.warning=function(e){return{type:"warning",message:e}},ds.error=function(e){return{type:"error",message:e.message,error:e}},t.prototype.map=function(e){return new t(e(this.value),this.messages)},t.prototype.flatMap=function(e){var i=e(this.value);return new t(i.value,n([this,i]))},t.prototype.flatMapThen=function(e){var i=this;return e(this.value).then(function(e){return new t(e.value,n([i,e]))})},t.combine=function(i){return new t(e.flatten(e.pluck(i,"value")),n(i))},ds}var fs,ms={},ps={};function gs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bs,vs,ys={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
|
|
4
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
5
|
+
<http://stuartk.com/jszip>
|
|
6
|
+
|
|
7
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
8
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
9
|
+
|
|
10
|
+
JSZip uses the library pako released under the MIT license :
|
|
11
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
12
|
+
*/function ws(){return bs||(bs=1,ys.exports=function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){if(!s&&gs)return gs(a);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return r(t[a][1][e]||e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o=gs,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){var i=e("./utils"),r=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,a,s,c,u,l=[],d=0,h=e.length,f=h,m="string"!==i.getTypeOf(e);d<e.length;)f=h-d,r=m?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,c=1<f?(15&n)<<2|r>>6:64,u=2<f?63&r:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,i,a,s,c,u=0,l=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,i=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),h[l++]=t,64!==s&&(h[l++]=n),64!==c&&(h[l++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){var i=e("./external"),r=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=i?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this.Mi=null,this.Ri=e,this.zi=t,this.meta={}}n.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this.Mi&&this._i(),this.Mi.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this.Mi&&this._i(),this.Mi.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.Mi=null},c.prototype._i=function(){this.Mi=new r[this.Ri]({raw:!0,level:this.zi.level||-1});var e=this;this.Mi.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,a,l){var d,h,f=e.file,m=e.compression,p=l!==s.utf8encode,g=o.transformTo("string",l(f.name)),b=o.transformTo("string",s.utf8encode(f.name)),v=f.comment,y=o.transformTo("string",l(v)),w=o.transformTo("string",s.utf8encode(v)),x=b.length!==f.name.length,D=w.length!==v.length,U="",T="",k="",A=f.dir,F=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(S.crc32=e.crc32,S.compressedSize=e.compressedSize,S.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),p||!x&&!D||(E|=2048);var C,B,W,I=0,M=0;A&&(I|=16),"UNIX"===a?(M=798,I|=(C=f.unixPermissions,B=A,W=C,C||(W=B?16893:33204),(65535&W)<<16)):(M=20,I|=function(e){return 63&(e||0)}(f.dosPermissions)),d=F.getUTCHours(),d<<=6,d|=F.getUTCMinutes(),d<<=5,d|=F.getUTCSeconds()/2,h=F.getUTCFullYear()-1980,h<<=4,h|=F.getUTCMonth()+1,h<<=5,h|=F.getUTCDate(),x&&(T=i(1,1)+i(c(g),4)+b,U+="up"+i(T.length,2)+T),D&&(k=i(1,1)+i(c(y),4)+w,U+="uc"+i(k.length,2)+k);var R="";return R+="\n\0",R+=i(E,2),R+=m.magic,R+=i(d,2),R+=i(h,2),R+=i(S.crc32,4),R+=i(S.compressedSize,4),R+=i(S.uncompressedSize,4),R+=i(g.length,2),R+=i(U.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+g+U,dirRecord:u.CENTRAL_FILE_HEADER+i(M,2)+R+i(y.length,2)+"\0\0\0\0"+i(I,4)+i(r,4)+g+U+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this.Oi=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this.Oi.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,o=r(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),n)this.push({data:(t=e,u.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,r,a,s,c,l,d=this.bytesWritten-e,h=(n=this.dirRecords.length,r=d,a=e,s=this.zipComment,c=this.encodeFileName,l=o.transformTo("string",c(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(n,2)+i(n,2)+i(r,4)+i(a,4)+i(l.length,2)+l);this.push({data:h,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this.Oi.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this.Oi.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t.Oi.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this.Oi.length?(this.prepareNextSource(),!0):this.previous||this.Oi.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this.Oi;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(i){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this.Oi,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new r(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n.Li(r,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var i=e("./utils"),r=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new r.Promise(function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",function(e){n(e)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var o=0;o<i.length;o++)n.push(u(i[o]));return r.Promise.all(n)}).then(function(e){for(var r=e.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],c=s.fileNameStr,u=i.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=c)}return r.zipComment.length&&(n.comment=r.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var i=e("../utils"),r=e("../stream/GenericWorker");function o(e,t){r.call(this,"Nodejs stream input adapter for "+e),this.Ni=!1,this.qi(t)}i.inherits(o,r),o.prototype.qi=function(e){var t=this;(this.ji=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t.Ni=!0:t.end()})},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this.ji.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this.Ni?this.end():this.ji.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this.Hi=e;var r=this;e.on("data",function(e,t){r.push(e)||r.Hi.pause(),n&&n(t)}).on("error",function(e){r.emit("error",e)}).on("end",function(){r.push(null)})}e("../utils").inherits(r,i),r.prototype.Vi=function(){this.Hi.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function i(e,t,n){var i,r=o.getTypeOf(t),s=o.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=p(e)),s.createFolders&&(i=m(e))&&g.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var b=null;b=t instanceof u||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new l(e,b,s);this.files[e]=v}var r=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),m=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},p=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=p(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];return this.forEach(function(n,i){e(n,i)&&t.push(i)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(b(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(b(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";t=d.generateWorker(this,n,i)}catch(c){(t=new a("error")).error(c)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var i=e("../utils"),r=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new c(i.transformTo("uint8array",e)):new o(i.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var i=e("./GenericWorker"),r=e("../utils");function o(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(o,i),o.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var i=e("./GenericWorker"),r=e("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,i),o.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(o,r),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this.$i=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t.Gi()},function(e){t.error(e)})}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.$i&&this.dataIsReady&&(this.$i=!0,i.delay(this.Gi,[],this)),!0)},o.prototype.Gi=function(){this.$i=!1,this.isPaused||this.isFinished||(this.Ki(),this.isFinished||(i.delay(this.Gi,[],this),this.$i=!0))},o.prototype.Ki=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this.Zi={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this.Zi[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this.Zi=[]},emit:function(e,t){if(this.Zi[e])for(var n=0;n<this.Zi[e].length;n++)this.Zi[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){var i=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),c=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(h){}function l(e,t){return new c.Promise(function(n,r){var o=[],s=e.Yi,c=e.Ji,u=e.Qi;e.on("data",function(e,n){o.push(e),t&&t(n)}).on("error",function(e){o=[],r(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(c,function(e,t){var n,i=0,r=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);n(e)}catch(t){r(t)}o=[]}).resume()})}function d(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this.Yi=a,this.Ji=t,this.Qi=n,i.checkSupport(a),this.er=e.pipe(new r(a)),e.lock()}catch(s){this.er=new o("error"),this.er.error(s)}}d.prototype={accumulate:function(e){return l(this,e)},on:function(e,t){var n=this;return"data"===e?this.er.on(e,function(e){t.call(n,e.data,e.meta)}):this.er.on(e,function(){i.delay(t,arguments,n)}),this},resume:function(){return i.delay(this.er.resume,[],this.er),this},pause:function(){return this.er.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this.Ji)throw new Error(this.Ji+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this.Ji},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(o){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(a){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(o){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var i=e("./utils"),r=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,a=e.length,c=new Array(2*a);for(t=n=0;t<a;)if((r=e[t++])<128)c[n++]=r;else if(4<(o=s[r]))c[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&t<a;)r=r<<6|63&e[t++],o--;1<o?c[n++]=65533:r<65536?c[n++]=r:(r-=65536,c[n++]=55296|r>>10&1023,c[n++]=56320|1023&r)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),i.applyFromCharCode(c)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(u,a),u.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;a!==t.length&&(r.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,i.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var i=e("./support"),r=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var i=[],r=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;r<o;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=u.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=u.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return u.stringifyByChunk(e,i,t)}catch(o){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=l;var h={};h.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},h.array={string:l,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],i=0;i<t.length;i++){var r=t[i];"."===r||""===r&&0!==i&&i!==t.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&o.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,u){return a.Promise.resolve(t).then(function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)}):e}).then(function(t){var l,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(u?t=r.decode(t):o&&!0!==s&&(t=c(l=t,i.uint8array?new Uint8Array(l.length):new Array(l.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var i=e("./reader/readerFor"),r=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(0<i)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var i=e("./reader/readerFor"),r=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function i(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this.dt=t,this.nr=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this.ir();var o=!this.nr;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new c("error")).error(s)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},Li:function(e,t){if(this.dt instanceof s&&this.dt.compression.magic===e.magic)return this.dt.getCompressedWorker();var n=this.ir();return this.nr||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},ir:function(){return this.dt instanceof s?this.dt.getContentWorker():this.dt instanceof c?this.dt:new o(this.dt)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)i.prototype[u[d]]=l;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;i=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}i=!1}t.exports=function(e){1!==u.push(e)||i||n()}}).call(this,void 0!==_t?_t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var i=e("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){i(function(){var i;try{i=t(n)}catch(r){return o.reject(e,r)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}var a=m(function(){t(r,i)});"error"===a.status&&i(a.value)}function m(e,t){var n={};try{n.value=e(t),n.status="success"}catch(i){n.status="error",n.value=i}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(r);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=m(h,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},u.reject=function(e){var t=new this(r);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,c=-1,u=new this(r);++c<n;)l(e[c],c);return u;function l(e,r){t.resolve(e).then(function(e){a[r]=e,++s!==n||i||(i=!0,o.resolve(u,a))},function(e){i||(i=!0,o.reject(u,e))})}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a,s=-1,c=new this(r);++s<n;)a=e[s],t.resolve(a).then(function(e){i||(i=!0,o.resolve(c,e))},function(e){i||(i=!0,o.reject(c,e))});return c}},{immediate:36}],38:[function(e,t,n){var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var i=e("./zlib/deflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=r.assign({level:l,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,m))!==u)throw new Error(a[n]);this.rr=!0}}function m(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=i.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=m,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var i=e("./zlib/inflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,u,d,h,f=this.strm,m=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(m),f.next_out=0,f.avail_out=m),(n=i.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(h="string"==typeof p?o.string2buf(p):"[object ArrayBuffer]"===l.call(p)?new Uint8Array(p):p,n=i.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,d=o.buf2string(f.output,c),f.next_out=u,f.avail_out=m-u,u&&r.arraySet(f.output,f.output,c,u,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)o=e[t],a.set(o,r),r+=o.length;return a}},o={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(e,t,n){var i=e("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,o,s=t||e.length,u=new Array(2*s);for(n=i=0;n<s;)if((r=e[n++])<128)u[i++]=r;else if(4<(o=a[r]))u[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<s;)r=r<<6|63&e[n++],o--;1<o?u[i++]=65533:r<65536?u[i++]=r:(r-=65536,u[i++]=55296|r>>10&1023,u[i++]=56320|1023&r)}return c(u,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,i){for(var r=65535&e,o=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+t[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var i,r=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=0,l=4,d=0,h=-2,f=-1,m=4,p=2,g=8,b=9,v=286,y=30,w=19,x=2*v+1,D=15,U=3,T=258,k=T+U+1,A=42,F=113,S=1,E=2,C=3,B=4;function W(e,t){return e.msg=c[t],t}function I(e){return(e<<1)-(4<e?9:0)}function M(e){for(var t=e.length;0<=--t;)e[t]=0}function R(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function z(e,t){o.sr(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function _(e,t){e.pending_buf[e.pending++]=t}function O(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function P(e,t){var n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,u=e.window,l=e.w_mask,d=e.prev,h=e.strstart+T,f=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<h);if(i=T-(h-o),o=h-T,a<i){if(e.match_start=t,s<=(a=i))break;f=u[o+a-1],m=u[o+a]}}}while((t=d[t&l])>c&&0!=--r);return a<=e.lookahead?a:e.lookahead}function L(e){var t,n,i,o,c,u,l,d,h,f,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-k)){for(r.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;i=e.head[--t],e.head[t]=m<=i?i-m:0,--n;);for(t=n=m;i=e.prev[--t],e.prev[t]=m<=i?i-m:0,--n;);o+=m}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=u.avail_in)&&(f=h),n=0===f?0:(u.avail_in-=f,r.arraySet(l,u.input,u.next_in,f,d),1===u.state.wrap?u.adler=a(u.adler,l,f,d):2===u.state.wrap&&(u.adler=s(u.adler,l,f,d)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=U)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+U-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<U)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function N(e,t){for(var n,i;;){if(e.lookahead<k){if(L(e),e.lookahead<k&&t===u)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=U&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=P(e,n)),e.match_length>=U)if(i=o.cr(e,e.strstart-e.match_start,e.match_length-U),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=U){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=o.cr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=e.strstart<U-1?e.strstart:U-1,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}function q(e,t){for(var n,i,r;;){if(e.lookahead<k){if(L(e),e.lookahead<k&&t===u)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=U&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=U-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=P(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===U&&4096<e.strstart-e.match_start)&&(e.match_length=U-1)),e.prev_length>=U&&e.match_length<=e.prev_length){for(r=e.strstart+e.lookahead-U,i=o.cr(e,e.strstart-1-e.prev_match,e.prev_length-U),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=U-1,e.strstart++,i&&(z(e,!1),0===e.strm.avail_out))return S}else if(e.match_available){if((i=o.cr(e,0,e.window[e.strstart-1]))&&z(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return S}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=o.cr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<U-1?e.strstart:U-1,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}function j(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*x),this.dyn_dtree=new r.Buf16(2*(2*y+1)),this.bl_tree=new r.Buf16(2*(2*w+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(D+1),this.heap=new r.Buf16(2*v+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*v+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=p,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?A:F,e.adler=2===t.wrap?0:1,t.last_flush=u,o.ur(t),d):W(e,h)}function $(e){var t,n=V(e);return n===d&&((t=e.state).window_size=2*t.w_size,M(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=U-1,t.match_available=0,t.ins_h=0),n}function G(e,t,n,i,o,a){if(!e)return h;var s=1;if(t===f&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||b<o||n!==g||i<8||15<i||t<0||9<t||a<0||m<a)return W(e,h);8===i&&(i=9);var c=new H;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+U-1)/U),c.window=new r.Buf8(2*c.w_size),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,$(e)}i=[new j(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(L(e),0===e.lookahead&&t===u)return S;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,z(e,!1),0===e.strm.avail_out))return S;if(e.strstart-e.block_start>=e.w_size-k&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===l?(z(e,!0),0===e.strm.avail_out?C:B):(e.strstart>e.block_start&&(z(e,!1),e.strm.avail_out),S)}),new j(4,4,8,4,N),new j(4,5,16,8,N),new j(4,6,32,32,N),new j(4,4,16,16,q),new j(8,16,32,32,q),new j(8,16,128,128,q),new j(8,32,128,256,q),new j(32,128,258,1024,q),new j(32,258,258,4096,q)],n.deflateInit=function(e,t){return G(e,t,g,15,8,0)},n.deflateInit2=G,n.deflateReset=$,n.deflateResetKeep=V,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},n.deflate=function(e,t){var n,r,a,c;if(!e||!e.state||5<t||t<0)return e?W(e,h):h;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==l)return W(e,0===e.avail_out?-5:h);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===A)if(2===r.wrap)e.adler=0,_(r,31),_(r,139),_(r,8),r.gzhead?(_(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),_(r,255&r.gzhead.time),_(r,r.gzhead.time>>8&255),_(r,r.gzhead.time>>16&255),_(r,r.gzhead.time>>24&255),_(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),_(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(_(r,255&r.gzhead.extra.length),_(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(_(r,0),_(r,0),_(r,0),_(r,0),_(r,0),_(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),_(r,3),r.status=F);else{var f=g+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=F,O(r,f),0!==r.strstart&&(O(r,e.adler>>>16),O(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),R(e),a=r.pending,r.pending!==r.pending_buf_size));)_(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),R(e),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,_(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),R(e),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,_(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&R(e),r.pending+2<=r.pending_buf_size&&(_(r,255&e.adler),_(r,e.adler>>8&255),e.adler=0,r.status=F)):r.status=F),0!==r.pending){if(R(e),0===e.avail_out)return r.last_flush=-1,d}else if(0===e.avail_in&&I(t)<=I(n)&&t!==l)return W(e,-5);if(666===r.status&&0!==e.avail_in)return W(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==u&&666!==r.status){var m=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(L(e),0===e.lookahead)){if(t===u)return S;break}if(e.match_length=0,n=o.cr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}(r,t):3===r.strategy?function(e,t){for(var n,i,r,a,s=e.window;;){if(e.lookahead<=T){if(L(e),e.lookahead<=T&&t===u)return S;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=U&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=e.strstart+T;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);e.match_length=T-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=U?(n=o.cr(e,1,e.match_length-U),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o.cr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}(r,t):i[r.level].func(r,t);if(m!==C&&m!==B||(r.status=666),m===S||m===C)return 0===e.avail_out&&(r.last_flush=-1),d;if(m===E&&(1===t?o.lr(r):5!==t&&(o.dr(r,0,0,!1),3===t&&(M(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),R(e),0===e.avail_out))return r.last_flush=-1,d}return t!==l?d:r.wrap<=0?1:(2===r.wrap?(_(r,255&e.adler),_(r,e.adler>>8&255),_(r,e.adler>>16&255),_(r,e.adler>>24&255),_(r,255&e.total_in),_(r,e.total_in>>8&255),_(r,e.total_in>>16&255),_(r,e.total_in>>24&255)):(O(r,e.adler>>>16),O(r,65535&e.adler)),R(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==A&&69!==t&&73!==t&&91!==t&&103!==t&&t!==F&&666!==t?W(e,h):(e.state=null,t===F?W(e,-3):d):h},n.deflateSetDictionary=function(e,t){var n,i,o,s,c,u,l,f,m=t.length;if(!e||!e.state)return h;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==A||n.lookahead)return h;for(1===s&&(e.adler=a(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(0===s&&(M(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,t,m-n.w_size,n.w_size,0),t=f,m=n.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=m,e.next_in=0,e.input=t,L(n);n.lookahead>=U;){for(i=n.strstart,o=n.lookahead-(U-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+U-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=U-1,L(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=U-1,n.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,i,r,o,a,s,c,u,l,d,h,f,m,p,g,b,v,y,w,x,D,U,T,k,A;n=e.state,i=e.next_in,k=e.input,r=i+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,h=n.window,f=n.hold,m=n.bits,p=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(f+=k[i++]<<m,m+=8,f+=k[i++]<<m,m+=8),y=p[f&b];t:for(;;){if(f>>>=w=y>>>24,m-=w,0==(w=y>>>16&255))A[o++]=65535&y;else{if(!(16&w)){if(!(64&w)){y=p[(65535&y)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&y,(w&=15)&&(m<w&&(f+=k[i++]<<m,m+=8),x+=f&(1<<w)-1,f>>>=w,m-=w),m<15&&(f+=k[i++]<<m,m+=8,f+=k[i++]<<m,m+=8),y=g[f&v];n:for(;;){if(f>>>=w=y>>>24,m-=w,!(16&(w=y>>>16&255))){if(!(64&w)){y=g[(65535&y)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(D=65535&y,m<(w&=15)&&(f+=k[i++]<<m,(m+=8)<w&&(f+=k[i++]<<m,m+=8)),c<(D+=f&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,m-=w,(w=o-a)<D){if(l<(w=D-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(T=h,(U=0)===d){if(U+=u-w,w<x){for(x-=w;A[o++]=h[U++],--w;);U=o-D,T=A}}else if(d<w){if(U+=u+d-w,(w-=d)<x){for(x-=w;A[o++]=h[U++],--w;);if(U=0,d<x){for(x-=w=d;A[o++]=h[U++],--w;);U=o-D,T=A}}}else if(U+=d-w,w<x){for(x-=w;A[o++]=h[U++],--w;);U=o-D,T=A}for(;2<x;)A[o++]=T[U++],A[o++]=T[U++],A[o++]=T[U++],x-=3;x&&(A[o++]=T[U++],1<x&&(A[o++]=T[U++]))}else{for(U=o-D;A[o++]=A[U++],A[o++]=A[U++],A[o++]=A[U++],2<(x-=3););x&&(A[o++]=A[U++],1<x&&(A[o++]=A[U++]))}break}}break}}while(i<r&&o<s);i-=x=m>>3,f&=(1<<(m-=x<<3))-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=m}},{}],49:[function(e,t,n){var i=e("../utils/common"),r=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=1,u=2,l=0,d=-2,h=1,f=852,m=592;function p(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(f),t.distcode=t.distdyn=new i.Buf32(m),t.sane=1,t.back=-1,l):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function y(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,v(e))):d}function w(e,t){var n,i;return e?(i=new g,(e.state=i).window=null,(n=y(e,t))!==l&&(e.state=null),n):d}var x,D,U=!0;function T(e){if(U){var t;for(x=new i.Buf32(512),D=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,D,0,e.work,{bits:5}),U=!1}e.lencode=x,e.lenbits=9,e.distcode=D,e.distbits=5}function k(e,t,n,r){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),i.arraySet(a.window,t,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=b,n.inflateInit=function(e){return w(e,15)},n.inflateInit2=w,n.inflate=function(e,t){var n,f,m,g,b,v,y,w,x,D,U,A,F,S,E,C,B,W,I,M,R,z,_,O,P=0,L=new i.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),b=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,w=n.hold,x=n.bits,D=v,U=y,z=l;e:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(2&n.wrap&&35615===w){L[n.check=0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0),x=w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,R=8+(15&(w>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&w?10:12,x=w=0;break;case 2:for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(n.flags=w,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=w>>8&1),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0)),x=w=0,n.mode=3;case 3:for(;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.head&&(n.head.time=w),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,L[2]=w>>>16&255,L[3]=w>>>24&255,n.check=o(n.check,L,4,0)),x=w=0,n.mode=4;case 4:for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.head&&(n.head.xflags=255&w,n.head.os=w>>8),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0)),x=w=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.length=w,n.head&&(n.head.extra_len=w),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0)),x=w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(A=n.length)&&(A=v),A&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,f,g,A,R)),512&n.flags&&(n.check=o(n.check,f,A,g)),v-=A,g+=A,n.length-=A),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;for(A=0;R=f[g+A++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&A<v;);if(512&n.flags&&(n.check=o(n.check,f,A,g)),v-=A,g+=A,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;for(A=0;R=f[g+A++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R)),R&&A<v;);if(512&n.flags&&(n.check=o(n.check,f,A,g)),v-=A,g+=A,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(w!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=w=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}e.adler=n.check=p(w),x=w=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=w,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){w>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}switch(n.last=1&w,x-=1,3&(w>>>=1)){case 0:n.mode=14;break;case 1:if(T(n),n.mode=20,6!==t)break;w>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}w>>>=2,x-=2;break;case 14:for(w>>>=7&x,x-=7&x;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&w,x=w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(A=n.length){if(v<A&&(A=v),y<A&&(A=y),0===A)break e;i.arraySet(m,f,g,A,b),v-=A,g+=A,y-=A,b+=A,n.length-=A;break}n.mode=12;break;case 17:for(;x<14;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(n.nlen=257+(31&w),w>>>=5,x-=5,n.ndist=1+(31&w),w>>>=5,x-=5,n.ncode=4+(15&w),w>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.lens[N[n.have++]]=7&w,w>>>=3,x-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},z=s(0,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,z){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(P=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,B=65535&P,!((E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(B<16)w>>>=E,x-=E,n.lens[n.have++]=B;else{if(16===B){for(O=E+2;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(w>>>=E,x-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],A=3+(3&w),w>>>=2,x-=2}else if(17===B){for(O=E+3;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}x-=E,R=0,A=3+(7&(w>>>=E)),w>>>=3,x-=3}else{for(O=E+7;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}x-=E,R=0,A=11+(127&(w>>>=E)),w>>>=7,x-=7}if(n.have+A>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;A--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,_={bits:n.lenbits},z=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,z){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},z=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,z){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=w,n.bits=x,a(e,U),b=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,w=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;C=(P=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,B=65535&P,!((E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(C&&!(240&C)){for(W=E,I=C,M=B;C=(P=n.lencode[M+((w&(1<<W+I)-1)>>W)])>>>16&255,B=65535&P,!(W+(E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}w>>>=W,x-=W,n.back+=W}if(w>>>=E,x-=E,n.back+=E,n.length=B,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=12;break}if(64&C){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(O=n.extra;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.length+=w&(1<<n.extra)-1,w>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(P=n.distcode[w&(1<<n.distbits)-1])>>>16&255,B=65535&P,!((E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(!(240&C)){for(W=E,I=C,M=B;C=(P=n.distcode[M+((w&(1<<W+I)-1)>>W)])>>>16&255,B=65535&P,!(W+(E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}w>>>=W,x-=W,n.back+=W}if(w>>>=E,x-=E,n.back+=E,64&C){e.msg="invalid distance code",n.mode=30;break}n.offset=B,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(O=n.extra;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.offset+=w&(1<<n.extra)-1,w>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(A=U-y,n.offset>A){if((A=n.offset-A)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}F=A>n.wnext?(A-=n.wnext,n.wsize-A):n.wnext-A,A>n.length&&(A=n.length),S=n.window}else S=m,F=b-n.offset,A=n.length;for(y<A&&(A=y),y-=A,n.length-=A;m[b++]=S[F++],--A;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;m[b++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===v)break e;v--,w|=f[g++]<<x,x+=8}if(U-=y,e.total_out+=U,n.total+=U,U&&(e.adler=n.check=n.flags?o(n.check,m,U,b-U):r(n.check,m,U,b-U)),U=y,(n.flags?w:p(w))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=w=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(w!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=w=0}n.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=w,n.bits=x,(n.wsize||U!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,U-e.avail_out)?(n.mode=31,-4):(D-=e.avail_in,U-=e.avail_out,e.total_in+=D,e.total_out+=U,n.total+=U,n.wrap&&U&&(e.adler=n.check=n.flags?o(n.check,m,U,e.next_out-U):r(n.check,m,U,e.next_out-U)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==D&&0===U||4===t)&&z===l&&(z=-5),z)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,l):d},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&r(1,t,i,0)!==n.check?-3:k(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,l):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var i=e("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,d,h){var f,m,p,g,b,v,y,w,x,D=h.bits,U=0,T=0,k=0,A=0,F=0,S=0,E=0,C=0,B=0,W=0,I=null,M=0,R=new i.Buf16(16),z=new i.Buf16(16),_=null,O=0;for(U=0;U<=15;U++)R[U]=0;for(T=0;T<c;T++)R[t[n+T]]++;for(F=D,A=15;1<=A&&0===R[A];A--);if(A<F&&(F=A),0===A)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(k=1;k<A&&0===R[k];k++);for(F<k&&(F=k),U=C=1;U<=15;U++)if(C<<=1,(C-=R[U])<0)return-1;if(0<C&&(0===e||1!==A))return-1;for(z[1]=0,U=1;U<15;U++)z[U+1]=z[U]+R[U];for(T=0;T<c;T++)0!==t[n+T]&&(d[z[t[n+T]]++]=T);if(v=0===e?(I=_=d,19):1===e?(I=r,M-=257,_=o,O-=257,256):(I=a,_=s,-1),U=k,b=l,E=T=W=0,p=-1,g=(B=1<<(S=F))-1,1===e&&852<B||2===e&&592<B)return 1;for(;;){for(y=U-E,x=d[T]<v?(w=0,d[T]):d[T]>v?(w=_[O+d[T]],I[M+d[T]]):(w=96,0),f=1<<U-E,k=m=1<<S;u[b+(W>>E)+(m-=f)]=y<<24|w<<16|x,0!==m;);for(f=1<<U-1;W&f;)f>>=1;if(0!==f?(W&=f-1,W+=f):W=0,T++,0==--R[U]){if(U===A)break;U=t[n+d[T]]}if(F<U&&(W&g)!==p){for(0===E&&(E=F),b+=k,C=1<<(S=U-E);S+E<A&&!((C-=R[S+E])<=0);)S++,C<<=1;if(B+=1<<S,1===e&&852<B||2===e&&592<B)return 1;u[p=W&g]=F<<24|S<<16|b-l}}return 0!==W&&(u[b+W]=U-E<<24|64<<16),h.bits=F,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var i=e("../utils/common"),r=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,u=256,l=u+1+c,d=30,h=19,f=2*l+1,m=15,p=16,g=7,b=256,v=16,y=17,w=18,x=[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],D=[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],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));a(k);var A=new Array(2*d);a(A);var F=new Array(512);a(F);var S=new Array(256);a(S);var E=new Array(c);a(E);var C,B,W,I=new Array(d);function M(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function R(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function z(e){return e<256?F[e]:F[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,n){e.bi_valid>p-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>p-e.bi_valid,e.bi_valid+=n-p):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function P(e,t,n){O(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function N(e,t,n){var i,r,o=new Array(m+1),a=0;for(i=1;i<=m;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=L(o[s]++,s))}}function q(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function H(e,t,n,i){var r=2*t,o=2*n;return e[r]<e[o]||e[r]===e[o]&&i[t]<=i[n]}function V(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&H(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!H(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function $(e,t,n){var i,r,o,a,s=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],r=e.pending_buf[e.l_buf+s],s++,0===i?P(e,r,t):(P(e,(o=S[r])+u+1,t),0!==(a=x[o])&&O(e,r-=E[o],a),P(e,o=z(--i),n),0!==(a=D[o])&&O(e,i-=I[o],a)),s<e.last_lit;);P(e,b,t)}function G(e,t){var n,i,r,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(r=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)V(e,o,n);for(r=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*r]=o[2*n]+o[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=r,e.heap[1]=r++,V(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(o=0;o<=m;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)g<(o=c[2*c[2*(i=e.heap[n])+1]+1]+1)&&(o=g,b++),c[2*i+1]=o,u<i||(e.bl_count[o]++,a=0,p<=i&&(a=h[i-p]),s=c[2*i],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*i+1]+a)));if(0!==b){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(o=g;0!==o;o--)for(i=e.bl_count[o];0!==i;)u<(r=e.heap[--n])||(c[2*r+1]!==o&&(e.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(e,t),N(o,u,e.bl_count)}function K(e,t,n){var i,r,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s<c&&r===a||(s<u?e.bl_tree[2*r]+=s:0!==r?(r!==o&&e.bl_tree[2*r]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,o=r,u=(s=0)===a?(c=138,3):r===a?(c=6,3):(c=7,4))}function Z(e,t,n){var i,r,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s<c&&r===a)){if(s<u)for(;P(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==o&&(P(e,r,e.bl_tree),s--),P(e,v,e.bl_tree),O(e,s-3,2)):s<=10?(P(e,y,e.bl_tree),O(e,s-3,3)):(P(e,w,e.bl_tree),O(e,s-11,7));o=r,u=(s=0)===a?(c=138,3):r===a?(c=6,3):(c=7,4)}}a(I);var X=!1;function Y(e,t,n,r){var o,a,c;O(e,(s<<1)+(r?1:0),3),a=t,c=n,j(o=e),_(o,c),_(o,~c),i.arraySet(o.pending_buf,o.window,a,c,o.pending),o.pending+=c}n.ur=function(e){X||(function(){var e,t,n,i,r,o=new Array(m+1);for(i=n=0;i<c-1;i++)for(E[i]=n,e=0;e<1<<x[i];e++)S[n++]=i;for(S[n-1]=i,i=r=0;i<16;i++)for(I[i]=r,e=0;e<1<<D[i];e++)F[r++]=i;for(r>>=7;i<d;i++)for(I[i]=r<<7,e=0;e<1<<D[i]-7;e++)F[256+r++]=i;for(t=0;t<=m;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(N(k,l+1,o),e=0;e<d;e++)A[2*e+1]=5,A[2*e]=L(e,5);C=new M(k,x,u+1,l,m),B=new M(A,D,0,d,m),W=new M(new Array(0),U,0,h,g)}(),X=!0),e.l_desc=new R(e.dyn_ltree,C),e.d_desc=new R(e.dyn_dtree,B),e.bl_desc=new R(e.bl_tree,W),e.bi_buf=0,e.bi_valid=0,q(e)},n.dr=Y,n.sr=function(e,t,n,i){var a,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return r;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return r}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(K(e,e.dyn_ltree,e.l_desc.max_code),K(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*T[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?Y(e,t,n,i):4===e.strategy||s===a?(O(e,2+(i?1:0),3),$(e,k,A)):(O(e,4+(i?1:0),3),function(e,t,n,i){var r;for(O(e,t-257,5),O(e,n-1,5),O(e,i-4,4),r=0;r<i;r++)O(e,e.bl_tree[2*T[r]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),$(e,e.dyn_ltree,e.dyn_dtree)),q(e),i&&j(e)},n.cr=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(S[n]+u+1)]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1},n.lr=function(e){var t;O(e,2,3),P(e,b,k),16===(t=e).bi_valid?(_(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){if(!e.setImmediate){var n,i,r,o,a=1,s={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){r.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return s[a]=r,n(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function h(e){if(c)setTimeout(h,0,e);else{var n=s[e];if(n){c=!0;try{!function(e){var n=e.callback,i=e.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(t,i)}}(n)}finally{d(e),c=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==_t?_t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)),ys.exports}function xs(){if(vs)return ms;vs=1;var e=function(){if(fs)return ps;fs=1,ps.byteLength=function(e){var t=o(e),n=t[0],i=t[1];return 3*(n+i)/4-i},ps.toByteArray=function(e){var i,r,a=o(e),s=a[0],c=a[1],u=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),l=0,d=c>0?s-4:s;for(r=0;r<d;r+=4)i=t[e.charCodeAt(r)]<<18|t[e.charCodeAt(r+1)]<<12|t[e.charCodeAt(r+2)]<<6|t[e.charCodeAt(r+3)],u[l++]=i>>16&255,u[l++]=i>>8&255,u[l++]=255&i;return 2===c&&(i=t[e.charCodeAt(r)]<<2|t[e.charCodeAt(r+1)]>>4,u[l++]=255&i),1===c&&(i=t[e.charCodeAt(r)]<<10|t[e.charCodeAt(r+1)]<<4|t[e.charCodeAt(r+2)]>>2,u[l++]=i>>8&255,u[l++]=255&i),u},ps.fromByteArray=function(t){for(var n,i=t.length,r=i%3,o=[],a=16383,c=0,u=i-r;c<u;c+=a)o.push(s(t,c,c+a>u?u:c+a));return 1===r?(n=t[i-1],o.push(e[n>>2]+e[n<<4&63]+"==")):2===r&&(n=(t[i-2]<<8)+t[i-1],o.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),o.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)e[r]=i[r],t[i.charCodeAt(r)]=r;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function a(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function s(e,t,n){for(var i,r=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(a(i));return r.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,ps}(),t=ws();return ms.openArrayBuffer=function(n){return t.loadAsync(n).then(function(t){return{exists:function(e){return null!==t.file(e)},read:function(n,i){return t.file(n).async("uint8array").then(function(t){return"base64"===i?e.fromByteArray(t):i?new TextDecoder(i).decode(t):t})},write:function(e,n){t.file(e,n)},toArrayBuffer:function(){return t.generateAsync({type:"arraybuffer"})}}})},ms.splitPath=function(e){var t=e.lastIndexOf("/");return-1===t?{dirname:"",basename:e}:{dirname:e.substring(0,t),basename:e.substring(t+1)}},ms.joinPath=function(){var e=Array.prototype.filter.call(arguments,function(e){return e}),t=[];return e.forEach(function(e){/^\//.test(e)?t=[e]:t.push(e)}),t.join("/")},ms}var Ds,Us={},Ts={},ks={};function As(){if(Ds)return ks;Ds=1;var e=ko;ks.Element=n,ks.element=function(e,t,i){return new n(e,t,i)},ks.text=function(e){return{type:"text",value:e}};var t=ks.emptyElement={first:function(){return null},firstOrEmpty:function(){return t},attributes:{},children:[]};function n(e,t,n){this.type="element",this.name=e,this.attributes=t||{},this.children=n||[]}n.prototype.first=function(t){return e.find(this.children,function(e){return e.name===t})},n.prototype.firstOrEmpty=function(e){return this.first(e)||t},n.prototype.getElementsByTagName=function(t){return r(e.filter(this.children,function(e){return e.name===t}))},n.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw new Error("Not implemented");return this.children[0].value};var i={getElementsByTagName:function(t){return r(e.flatten(this.map(function(e){return e.getElementsByTagName(t)},!0)))}};function r(t){return e.extend(t,i)}return ks}var Fs,Ss,Es={},Cs={},Bs={},Ws={},Is={};function Ms(){if(Fs)return Is;function e(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}Fs=1;var t=e({HTML:"text/html",isHTML:function(e){return e===t.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=e({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===n.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return Is.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Is.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},Is.freeze=e,Is.MIME_TYPE=t,Is.NAMESPACE=n,Is}function Rs(){if(Ss)return Ws;Ss=1;var e=Ms(),t=e.find,n=e.NAMESPACE;function i(e){return""!==e}function r(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function o(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(i):[]}(e);return Object.keys(t.reduce(r,{}))}function a(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function s(e,t){var n=e.prototype;if(!(n instanceof t)){let i=function(){};i.prototype=t.prototype,i=new i,a(n,i),e.prototype=n=i}n.constructor!=e&&(n.constructor=e)}var c={},u=c.ELEMENT_NODE=1,l=c.ATTRIBUTE_NODE=2,d=c.TEXT_NODE=3,h=c.CDATA_SECTION_NODE=4,f=c.ENTITY_REFERENCE_NODE=5,m=c.ENTITY_NODE=6,p=c.PROCESSING_INSTRUCTION_NODE=7,g=c.COMMENT_NODE=8,b=c.DOCUMENT_NODE=9,v=c.DOCUMENT_TYPE_NODE=10,y=c.DOCUMENT_FRAGMENT_NODE=11,w=c.NOTATION_NODE=12,x={},D={};x.INDEX_SIZE_ERR=(D[1]="Index size error",1),x.DOMSTRING_SIZE_ERR=(D[2]="DOMString size error",2);var U=x.HIERARCHY_REQUEST_ERR=(D[3]="Hierarchy request error",3);x.WRONG_DOCUMENT_ERR=(D[4]="Wrong document",4),x.INVALID_CHARACTER_ERR=(D[5]="Invalid character",5),x.NO_DATA_ALLOWED_ERR=(D[6]="No data allowed",6),x.NO_MODIFICATION_ALLOWED_ERR=(D[7]="No modification allowed",7);var T=x.NOT_FOUND_ERR=(D[8]="Not found",8);x.NOT_SUPPORTED_ERR=(D[9]="Not supported",9);var k=x.INUSE_ATTRIBUTE_ERR=(D[10]="Attribute in use",10);function A(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,D[e]),this.message=D[e],Error.captureStackTrace&&Error.captureStackTrace(this,A);return n.code=e,t&&(this.message=this.message+": "+t),n}function F(){}function S(e,t){this.mr=e,this.gr=t,E(this)}function E(e){var t=e.mr.vr||e.mr.ownerDocument.vr;if(e.vr!==t){var n=e.gr(e.mr);if(be(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];a(n,e),e.vr=t}}function C(){}function B(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function W(e,t,i,r){if(r?t[B(t,r)]=i:t[t.length++]=i,e){i.ownerElement=e;var o=e.ownerDocument;o&&(r&&P(o,e,r),function(e,t,i){e&&e.vr++;var r=i.namespaceURI;r===n.XMLNS&&(t.yr[i.prefix?i.localName:""]=i.value)}(o,e,i))}}function I(e,t,n){var i=B(t,n);if(!(i>=0))throw new A(T,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var o=e.ownerDocument;o&&(P(o,e,n),n.ownerElement=null)}}function M(){}function R(){}function z(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function _(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(_(e,t))return!0}while(e=e.nextSibling)}function O(){this.ownerDocument=this}function P(e,t,i,r){e&&e.vr++,i.namespaceURI===n.XMLNS&&delete t.yr[i.prefix?i.localName:""]}function L(e,t,n){if(e&&e.vr){e.vr++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,o=0;r;)i[o++]=r,r=r.nextSibling;i.length=o,delete i[i.length]}}}function N(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,L(e.ownerDocument,e),t}function q(e){return e&&e.nodeType===R.DOCUMENT_TYPE_NODE}function j(e){return e&&e.nodeType===R.ELEMENT_NODE}function H(e){return e&&e.nodeType===R.TEXT_NODE}function V(e,n){var i=e.childNodes||[];if(t(i,j)||q(n))return!1;var r=t(i,q);return!(n&&r&&i.indexOf(r)>i.indexOf(n))}function $(e,n){var i=e.childNodes||[];if(t(i,function(e){return j(e)&&e!==n}))return!1;var r=t(i,q);return!(n&&r&&i.indexOf(r)>i.indexOf(n))}function G(e,t,n){if(!function(e){return e&&(e.nodeType===R.DOCUMENT_NODE||e.nodeType===R.DOCUMENT_FRAGMENT_NODE||e.nodeType===R.ELEMENT_NODE)}(e))throw new A(U,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new A(T,"child not in parent");if(!function(e){return e&&(j(e)||H(e)||q(e)||e.nodeType===R.DOCUMENT_FRAGMENT_NODE||e.nodeType===R.COMMENT_NODE||e.nodeType===R.PROCESSING_INSTRUCTION_NODE)}(t)||q(t)&&e.nodeType!==R.DOCUMENT_NODE)throw new A(U,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function K(e,n,i){var r=e.childNodes||[],o=n.childNodes||[];if(n.nodeType===R.DOCUMENT_FRAGMENT_NODE){var a=o.filter(j);if(a.length>1||t(o,H))throw new A(U,"More than one element or text in fragment");if(1===a.length&&!V(e,i))throw new A(U,"Element in fragment can not be inserted before doctype")}if(j(n)&&!V(e,i))throw new A(U,"Only one element can be added and only after doctype");if(q(n)){if(t(r,q))throw new A(U,"Only one doctype is allowed");var s=t(r,j);if(i&&r.indexOf(s)<r.indexOf(i))throw new A(U,"Doctype can only be inserted before an element");if(!i&&s)throw new A(U,"Doctype can not be appended since element is present")}}function Z(e,n,i){var r=e.childNodes||[],o=n.childNodes||[];if(n.nodeType===R.DOCUMENT_FRAGMENT_NODE){var a=o.filter(j);if(a.length>1||t(o,H))throw new A(U,"More than one element or text in fragment");if(1===a.length&&!$(e,i))throw new A(U,"Element in fragment can not be inserted before doctype")}if(j(n)&&!$(e,i))throw new A(U,"Only one element can be added and only after doctype");if(q(n)){if(t(r,function(e){return q(e)&&e!==i}))throw new A(U,"Only one doctype is allowed");var s=t(r,j);if(i&&r.indexOf(s)<r.indexOf(i))throw new A(U,"Doctype can only be inserted before an element")}}function X(e,t,n,i){G(e,t,n),e.nodeType===R.DOCUMENT_NODE&&(i||K)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===y){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=n?n.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=n,s?s.nextSibling=o:e.firstChild=o,null==n?e.lastChild=a:n.previousSibling=a;do{o.parentNode=e,Y(o,e.ownerDocument||e)}while(o!==a&&(o=o.nextSibling));return L(e.ownerDocument||e,e),t.nodeType==y&&(t.firstChild=t.lastChild=null),t}function Y(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===u&&e.attributes)for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);i&&(i.ownerDocument=t)}for(var r=e.firstChild;r;)Y(r,t),r=r.nextSibling}}function J(){this.yr={}}function Q(){}function ee(){}function te(){}function ne(){}function ie(){}function re(){}function oe(){}function ae(){}function se(){}function ce(){}function ue(){}function le(){}function de(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,o=i.namespaceURI;if(o&&null==r&&null==(r=i.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return me(this,n,e,t,a),n.join("")}function he(e,t,i){var r=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===r&&o===n.XML||o===n.XMLNS)return!1;for(var a=i.length;a--;){var s=i[a];if(s.prefix===r)return s.namespace!==o}return!0}function fe(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,z),'"')}function me(e,t,i,r,o){if(o||(o=[]),r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case u:var a=e.attributes,s=a.length,c=e.firstChild,m=e.tagName,w=m;if(!(i=n.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var x,D=0;D<a.length;D++)if("xmlns"===a.item(D).name){x=a.item(D).value;break}if(!x)for(var U=o.length-1;U>=0;U--){if(""===(T=o[U]).prefix&&T.namespace===e.namespaceURI){x=T.namespace;break}}if(x!==e.namespaceURI)for(U=o.length-1;U>=0;U--){var T;if((T=o[U]).namespace===e.namespaceURI){T.prefix&&(w=T.prefix+":"+m);break}}}t.push("<",w);for(var k=0;k<s;k++){"xmlns"==(A=a.item(k)).prefix?o.push({prefix:A.localName,namespace:A.value}):"xmlns"==A.nodeName&&o.push({prefix:"",namespace:A.value})}for(k=0;k<s;k++){var A,F,S;if(he(A=a.item(k),0,o))fe(t,(F=A.prefix||"")?"xmlns:"+F:"xmlns",S=A.namespaceURI),o.push({prefix:F,namespace:S});me(A,t,i,r,o)}if(m===w&&he(e,0,o))fe(t,(F=e.prefix||"")?"xmlns:"+F:"xmlns",S=e.namespaceURI),o.push({prefix:F,namespace:S});if(c||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(m)){if(t.push(">"),i&&/^script$/i.test(m))for(;c;)c.data?t.push(c.data):me(c,t,i,r,o.slice()),c=c.nextSibling;else for(;c;)me(c,t,i,r,o.slice()),c=c.nextSibling;t.push("</",w,">")}else t.push("/>");return;case b:case y:for(c=e.firstChild;c;)me(c,t,i,r,o.slice()),c=c.nextSibling;return;case l:return fe(t,e.name,e.value);case d:return t.push(e.data.replace(/[<&>]/g,z));case h:return t.push("<![CDATA[",e.data,"]]>");case g:return t.push("\x3c!--",e.data,"--\x3e");case v:var E=e.publicId,C=e.systemId;if(t.push("<!DOCTYPE ",e.name),E)t.push(" PUBLIC ",E),C&&"."!=C&&t.push(" ",C),t.push(">");else if(C&&"."!=C)t.push(" SYSTEM ",C,">");else{var B=e.internalSubset;B&&t.push(" [",B,"]"),t.push(">")}return;case p:return t.push("<?",e.target," ",e.data,"?>");case f:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function pe(e,t,n){var i;switch(t.nodeType){case u:(i=t.cloneNode(!1)).ownerDocument=e;case y:break;case l:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(pe(e,r,n)),r=r.nextSibling;return i}function ge(e,t,n){var i=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];"object"!=typeof o&&o!=i[r]&&(i[r]=o)}switch(t.childNodes&&(i.childNodes=new F),i.ownerDocument=e,i.nodeType){case u:var a=t.attributes,s=i.attributes=new C,c=a.length;s.Dr=i;for(var d=0;d<c;d++)i.setAttributeNode(ge(e,a.item(d),!0));break;case l:n=!0}if(n)for(var h=t.firstChild;h;)i.appendChild(ge(e,h,n)),h=h.nextSibling;return i}function be(e,t,n){e[t]=n}x.INVALID_STATE_ERR=(D[11]="Invalid state",11),x.SYNTAX_ERR=(D[12]="Syntax error",12),x.INVALID_MODIFICATION_ERR=(D[13]="Invalid modification",13),x.NAMESPACE_ERR=(D[14]="Invalid namespace",14),x.INVALID_ACCESS_ERR=(D[15]="Invalid access",15),A.prototype=Error.prototype,a(x,A),F.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)me(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},S.prototype.item=function(e){return E(this),this[e]||null},s(S,F),C.prototype={length:0,item:F.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this.Dr)throw new A(k);var n=this.getNamedItem(e.nodeName);return W(this.Dr,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this.Dr)throw new A(k);return t=this.getNamedItemNS(e.namespaceURI,e.localName),W(this.Dr,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return I(this.Dr,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return I(this.Dr,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},M.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new O;if(i.implementation=this,i.childNodes=new F,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new re;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},R.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return X(this,e,t)},replaceChild:function(e,t){X(this,e,t,Z),t&&this.removeChild(t)},removeChild:function(e){return N(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ge(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==d&&e.nodeType==d?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t.yr;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=t.nodeType==l?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t.yr;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==l?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},a(c,R),a(c,R.prototype),O.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,vr:1,insertBefore:function(e,t){if(e.nodeType==y){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return X(this,e,t),Y(e,this),null===this.documentElement&&e.nodeType===u&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),N(this,e)},replaceChild:function(e,t){X(this,e,t,Z),Y(e,this),t&&this.removeChild(t),j(e)&&(this.documentElement=e)},importNode:function(e,t){return pe(this,e,t)},getElementById:function(e){var t=null;return _(this.documentElement,function(n){if(n.nodeType==u&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=o(e);return new S(this,function(n){var i=[];return t.length>0&&_(n.documentElement,function(r){if(r!==n&&r.nodeType===u){var a=r.getAttribute("class");if(a){var s=e===a;if(!s){var c=o(a);s=t.every((l=c,function(e){return l&&-1!==l.indexOf(e)}))}s&&i.push(r)}}var l}),i})},createElement:function(e){var t=new J;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new F,(t.attributes=new C).Dr=t,t},createDocumentFragment:function(){var e=new ce;return e.ownerDocument=this,e.childNodes=new F,e},createTextNode:function(e){var t=new te;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ie;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ue;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Q;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new se;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new J,i=t.split(":"),r=n.attributes=new C;return n.childNodes=new F,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r.Dr=n,n},createAttributeNS:function(e,t){var n=new Q,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},s(O,R),J.prototype={nodeType:u,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===y?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,L(e.ownerDocument,e,t),Y(t,e.ownerDocument||e),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new S(this,function(t){var n=[];return _(t,function(i){i===t||i.nodeType!=u||"*"!==e&&i.tagName!=e||n.push(i)}),n})},getElementsByTagNameNS:function(e,t){return new S(this,function(n){var i=[];return _(n,function(r){r===n||r.nodeType!==u||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)}),i})}},O.prototype.getElementsByTagName=J.prototype.getElementsByTagName,O.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,s(J,R),Q.prototype.nodeType=l,s(Q,R),ee.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(D[U])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},s(ee,R),te.prototype={nodeName:"#text",nodeType:d,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},s(te,ee),ne.prototype={nodeName:"#comment",nodeType:g},s(ne,ee),ie.prototype={nodeName:"#cdata-section",nodeType:h},s(ie,ee),re.prototype.nodeType=v,s(re,R),oe.prototype.nodeType=w,s(oe,R),ae.prototype.nodeType=m,s(ae,R),se.prototype.nodeType=f,s(se,R),ce.prototype.nodeName="#document-fragment",ce.prototype.nodeType=y,s(ce,R),ue.prototype.nodeType=p,s(ue,R),le.prototype.serializeToString=function(e,t,n){return de.call(e,t,n)},R.prototype.toString=de;try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case u:case y:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(S.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(R.prototype,"textContent",{get:function(){return e(this)},set:function(e){switch(this.nodeType){case u:case y:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),be=function(e,t,n){e["$$"+t]=n}}}catch(ve){}return Ws.DocumentType=re,Ws.DOMException=A,Ws.DOMImplementation=M,Ws.Element=J,Ws.Node=R,Ws.NodeList=F,Ws.XMLSerializer=le,Ws}var zs,_s={},Os={};var Ps,Ls,Ns,qs,js,Hs={};function Vs(){if(Ps)return Hs;Ps=1;var e=Ms().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$");function r(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,r)}function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(t,n,i,r,o,a){function s(e,t,n){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n)}for(var c,u=++n,l=0;;){var d=t.charAt(u);switch(d){case"=":if(1===l)c=t.slice(n,u),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(a.warning('attribute value must after "="'),c=t.slice(n,u)),n=u+1,!((u=t.indexOf(d,n))>0))throw new Error("attribute value no end '"+d+"' match");s(c,h=t.slice(n,u),n-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');s(c,h=t.slice(n,u),n),a.warning('attribute "'+c+'" missed start quot('+d+")!!"),n=u+1,l=5}break;case"/":switch(l){case 0:i.setTagName(t.slice(n,u));case 5:case 6:case 7:l=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==l&&i.setTagName(t.slice(n,u)),u;case">":switch(l){case 0:i.setTagName(t.slice(n,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(n,u)).slice(-1)&&(i.closed=!0,h=h.slice(0,-1));case 2:2===l&&(h=c),4==l?(a.warning('attribute "'+h+'" missed quot(")!'),s(c,h,n)):(e.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,n));break;case 3:throw new Error("attribute value missed!!")}return u;case"":d=" ";default:if(d<=" ")switch(l){case 0:i.setTagName(t.slice(n,u)),l=6;break;case 1:c=t.slice(n,u),l=2;break;case 4:var h=t.slice(n,u);a.warning('attribute "'+h+'" missed quot(")!!'),s(c,h,n);case 5:l=6}else switch(l){case 2:i.tagName,e.isHTML(r[""])&&c.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),s(c,c,n),n=u,l=1;break;case 5:a.warning('attribute space is required"'+c+'"!!');case 6:l=1,n=u;break;case 3:l=4,n=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function c(t,n,i){for(var r=t.tagName,o=null,a=t.length;a--;){var s=t[a],c=s.qName,u=s.value;if((m=c.indexOf(":"))>0)var l=s.prefix=c.slice(0,m),h=c.slice(m+1),f="xmlns"===l&&h;else h=c,l=null,f="xmlns"===c&&"";s.localName=h,!1!==f&&(null==o&&(o={},d(i,i={})),i[f]=o[f]=u,s.uri=e.XMLNS,n.startPrefixMapping(f,u))}for(a=t.length;a--;){(l=(s=t[a]).prefix)&&("xml"===l&&(s.uri=e.XML),"xmlns"!==l&&(s.uri=i[l||""]))}var m;(m=r.indexOf(":"))>0?(l=t.prefix=r.slice(0,m),h=t.localName=r.slice(m+1)):(l=null,h=t.localName=r);var p=t.uri=i[l||""];if(n.startElement(p,h,r,t),!t.closed)return t.currentNSMap=i,t.localNSMap=o,!0;if(n.endElement(p,h,r),o)for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&n.endPrefixMapping(l)}function u(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),o)}return t+1}function l(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function d(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function h(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var o=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=!1,u=!1;a>3&&(/^public$/i.test(o[2][0])?(c=o[3][0],u=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(u=o[3][0]));var l=o[a-1];return n.startDTD(s,c,u),n.endDTD(),l.index+l[0].length}return-1}function f(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function m(){this.attributeNames={}}return r.prototype=new Error,r.prototype.name=r.name,o.prototype={parse:function(t,n,i){var o=this.domBuilder;o.startDocument(),d(n,n={}),function(t,n,i,o,d){function p(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function g(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?p(parseInt(t.substr(1).replace("x","0x"))):(d.error("entity not found:"+e),e)}function b(e){if(e>k){var n=t.substring(k,e).replace(/&#?\w+;/g,g);D&&v(k),o.characters(n,0,e-k),k=e}}function v(e,n){for(;e>=w&&(n=x.exec(t));)y=n.index,w=y+n[0].length,D.lineNumber++;D.columnNumber=e-y+1}var y=0,w=0,x=/.*(?:\r\n?|\n)|.*$/g,D=o.locator,U=[{currentNSMap:n}],T={},k=0;for(;;){try{var A=t.indexOf("<",k);if(A<0){if(!t.substr(k).match(/^\s*$/)){var F=o.doc,S=F.createTextNode(t.substr(k));F.appendChild(S),o.currentElement=S}return}switch(A>k&&b(A),t.charAt(A+1)){case"/":var E=t.indexOf(">",A+3),C=t.substring(A+2,E).replace(/[ \t\n\r]+$/g,""),B=U.pop();E<0?(C=t.substring(A+2).replace(/[\s<].*/,""),d.error("end tag name: "+C+" is not complete:"+B.tagName),E=A+1+C.length):C.match(/\s</)&&(C=C.replace(/[\s<].*/,""),d.error("end tag name: "+C+" maybe not complete"),E=A+1+C.length);var W=B.localNSMap,I=B.tagName==C;if(I||B.tagName&&B.tagName.toLowerCase()==C.toLowerCase()){if(o.endElement(B.uri,B.localName,C),W)for(var M in W)Object.prototype.hasOwnProperty.call(W,M)&&o.endPrefixMapping(M);I||d.fatalError("end tag name: "+C+" is not match the current start tagName:"+B.tagName)}else U.push(B);E++;break;case"?":D&&v(A),E=f(t,A,o);break;case"!":D&&v(A),E=h(t,A,o,d);break;default:D&&v(A);var R=new m,z=U[U.length-1].currentNSMap,_=(E=s(t,A,R,z,g,d),R.length);if(!R.closed&&l(t,E,R.tagName,T)&&(R.closed=!0,i.nbsp||d.warning("unclosed xml attribute")),D&&_){for(var O=a(D,{}),P=0;P<_;P++){var L=R[P];v(L.offset),L.locator=a(D,{})}o.locator=O,c(R,o,z)&&U.push(R),o.locator=D}else c(R,o,z)&&U.push(R);e.isHTML(R.uri)&&!R.closed?E=u(t,E,R.tagName,g,o):E++}}catch(N){if(N instanceof r)throw N;d.error("element parse error: "+N),E=-1}E>k?k=E:b(Math.max(A,k)+1)}}(t,n,i,o,this.errorHandler),o.endDocument()}},m.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},Hs.XMLReader=o,Hs.ParseError=r,Hs}function $s(){if(Ls)return _s;Ls=1;var e,t,n=Ms(),i=Rs(),r=(zs||(zs=1,e=Os,t=Ms().freeze,e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES),Os),o=Vs(),a=i.DOMImplementation,s=n.NAMESPACE,c=o.ParseError,u=o.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function d(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function p(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}return d.prototype.parseFromString=function(e,t){var n=this.options,i=new u,o=n.domBuilder||new h,a=n.errorHandler,c=n.locator,d=n.xmlns||{},f=/\/x?html?$/.test(t),m=f?r.HTML_ENTITIES:r.XML_ENTITIES;c&&o.setDocumentLocator(c),i.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var i={},r=e instanceof Function;function o(t){var o=e[t];!o&&r&&(o=2==e.length?function(n){e(t,n)}:e),i[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+function(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),i}(a,o,c),i.domBuilder=n.domBuilder||o,f&&(d[""]=s.HTML),d.xml=d.xml||s.XML;var p=n.normalizeLineEndings||l;return e&&"string"==typeof e?i.parse(p(e),d,m):i.errorHandler.error("invalid doc source"),o.doc},h.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,o=r.createElementNS(e,n||t),a=i.length;p(this,o),this.currentElement=o,this.locator&&f(this.locator,o);for(var s=0;s<a;s++){e=i.getURI(s);var c=i.getValue(s),u=(n=i.getQName(s),r.createAttributeNS(e,n));this.locator&&f(i.getLocator(s),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,n),p(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&f(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i),p(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&f(this.locator,r),p(this,r),this.doc.doctype=r}},warning:function(e){},error:function(e){},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}}),_s.Ur=h,_s.normalizeLineEndings=l,_s.DOMParser=d,_s}function Gs(){if(qs)return Cs;qs=1;var e=function(){if(Ns)return Bs;Ns=1;var e=Rs();return Bs.DOMImplementation=e.DOMImplementation,Bs.XMLSerializer=e.XMLSerializer,Bs.DOMParser=$s().DOMParser,Bs}(),t=Rs();return Cs.parseFromString=function(t){var n=null,i=new e.DOMParser({errorHandler:function(e,t){n={level:e,message:t}}}).parseFromString(t);if(null===n)return i;throw new Error(n.level+": "+n.message)},Cs.Node=t.Node,Cs}function Ks(){if(js)return Es;js=1;var e=as(),t=ko,n=Gs(),i=As(),r=i.Element;Es.readString=function(a,s){s=s||{};try{var c=n.parseFromString(a,"text/xml")}catch(d){return e.reject(d)}if("parsererror"===c.documentElement.tagName)return e.resolve(new Error(c.documentElement.textContent));function u(e){switch(e.nodeType){case o.ELEMENT_NODE:return function(e){var n=l(e),i=[];t.forEach(e.childNodes,function(e){var t=u(e);t&&i.push(t)});var o={};return t.forEach(e.attributes,function(e){o[l(e)]=e.value}),new r(n,o,i)}(e);case o.TEXT_NODE:return i.text(e.nodeValue)}}function l(e){if(e.namespaceURI){var t=s[e.namespaceURI];return(t?t+":":"{"+e.namespaceURI+"}")+e.localName}return e.localName}return e.resolve(u(c.documentElement))};var o=n.Node;return Es}var Zs,Xs={},Ys={},Js={};function Qs(){return Zs||(Zs=1,function(){var e,t,n,i,r,o,a,s=[].slice,c={}.hasOwnProperty;e=function(){var e,t,n,i,o,a;if(a=arguments[0],o=2<=arguments.length?s.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(e=0,n=o.length;e<n;e++)if(null!=(i=o[e]))for(t in i)c.call(i,t)&&(a[t]=i[t]);return a},r=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},o=function(e){var t;return!!e&&("function"==(t=typeof e)||"object"===t)},n=function(e){return r(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){var t;if(n(e))return!e.length;for(t in e)if(c.call(e,t))return!1;return!0},a=function(e){var t,n;return o(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&"function"==typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},t=function(e){return r(e.valueOf)?e.valueOf():e},Js.assign=e,Js.isFunction=r,Js.isObject=o,Js.isArray=n,Js.isEmpty=i,Js.isPlainObject=a,Js.getValue=t}.call(Js)),Js}var ec,tc={exports:{}},nc={exports:{}},ic={exports:{}},rc={exports:{}},oc=rc.exports;function ac(){return ec||(ec=1,function(){rc.exports=function(){function e(e,t,n){if(this.options=e.options,this.stringify=e.stringify,this.parent=e,null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));if(null==n)throw new Error("Missing attribute value. "+this.debugInfo(t));this.name=this.stringify.attName(t),this.value=this.stringify.attValue(n)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e}()}.call(oc)),rc.exports}var sc,cc=ic.exports;function uc(){return sc||(sc=1,function(){var e,t,n,i,r,o,a={}.hasOwnProperty;o=Qs(),r=o.isObject,i=o.isFunction,n=o.getValue,t=au(),e=ac(),ic.exports=function(t){function o(e,t,n){if(o.Tr.constructor.call(this,e),null==t)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(t),this.attributes={},null!=n&&this.attribute(n),e.isDocument&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this)}return function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.Tr=t.prototype}(o,t),o.prototype.clone=function(){var e,t,n,i;for(t in(n=Object.create(this)).isRoot&&(n.documentObject=null),n.attributes={},i=this.attributes)a.call(i,t)&&(e=i[t],n.attributes[t]=e.clone());return n.children=[],this.children.forEach(function(e){var t;return(t=e.clone()).parent=n,n.children.push(t)}),n},o.prototype.attribute=function(t,o){var s,c;if(null!=t&&(t=n(t)),r(t))for(s in t)a.call(t,s)&&(c=t[s],this.attribute(s,c));else i(o)&&(o=o.apply()),this.options.skipNullAttributes&&null==o||(this.attributes[t]=new e(this,t,o));return this},o.prototype.removeAttribute=function(e){var t,i,r;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=n(e),Array.isArray(e))for(i=0,r=e.length;i<r;i++)t=e[i],delete this.attributes[t];else delete this.attributes[e];return this},o.prototype.toString=function(e){return this.options.writer.set(e).element(this)},o.prototype.att=function(e,t){return this.attribute(e,t)},o.prototype.a=function(e,t){return this.attribute(e,t)},o}(t)}.call(cc)),ic.exports}var lc,dc={exports:{}},hc=dc.exports;function fc(){return lc||(lc=1,function(){var e,t={}.hasOwnProperty;e=au(),dc.exports=function(e){function n(e,t){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(t)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)},n}(e)}.call(hc)),dc.exports}var mc,pc={exports:{}},gc=pc.exports;function bc(){return mc||(mc=1,function(){var e,t={}.hasOwnProperty;e=au(),pc.exports=function(e){function n(e,t){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(t)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.set(e).comment(this)},n}(e)}.call(gc)),pc.exports}var vc,yc={exports:{}},wc=yc.exports;function xc(){return vc||(vc=1,function(){var e,t,n={}.hasOwnProperty;t=Qs().isObject,e=au(),yc.exports=function(e){function i(e,n,r,o){var a;i.Tr.constructor.call(this,e),t(n)&&(n=(a=n).version,r=a.encoding,o=a.standalone),n||(n="1.0"),this.version=this.stringify.xmlVersion(n),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return function(e,t){for(var i in t)n.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.Tr=t.prototype}(i,e),i.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)},i}(e)}.call(wc)),yc.exports}var Dc,Uc={exports:{}},Tc={exports:{}},kc=Tc.exports;function Ac(){return Dc||(Dc=1,function(){var e,t={}.hasOwnProperty;e=au(),Tc.exports=function(e){function n(e,t,i,r,o,a){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(t));if(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(t));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(t));if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(i),this.attributeType=this.stringify.dtdAttType(r),this.defaultValue=this.stringify.dtdAttDefault(a),this.defaultValueType=o}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},n}(e)}.call(kc)),Tc.exports}var Fc,Sc={exports:{}},Ec=Sc.exports;function Cc(){return Fc||(Fc=1,function(){var e,t,n={}.hasOwnProperty;t=Qs().isObject,e=au(),Sc.exports=function(e){function i(e,n,r,o){if(i.Tr.constructor.call(this,e),null==r)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(null==o)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!n,this.name=this.stringify.eleName(r),t(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}else this.value=this.stringify.dtdEntityValue(o)}return function(e,t){for(var i in t)n.call(t,i)&&(e[i]=t[i]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.Tr=t.prototype}(i,e),i.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)},i}(e)}.call(Ec)),Sc.exports}var Bc,Wc={exports:{}},Ic=Wc.exports;function Mc(){return Bc||(Bc=1,function(){var e,t={}.hasOwnProperty;e=au(),Wc.exports=function(e){function n(e,t,i){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(i)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},n}(e)}.call(Ic)),Wc.exports}var Rc,zc={exports:{}},_c=zc.exports;function Oc(){return Rc||(Rc=1,function(){var e,t={}.hasOwnProperty;e=au(),zc.exports=function(e){function n(e,t,i){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing DTD notation name. "+this.debugInfo(t));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));this.name=this.stringify.eleName(t),null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},n}(e)}.call(_c)),zc.exports}var Pc,Lc=Uc.exports;function Nc(){return Pc||(Pc=1,function(){var e,t,n,i,r,o,a={}.hasOwnProperty;o=Qs().isObject,r=au(),e=Ac(),n=Cc(),t=Mc(),i=Oc(),Uc.exports=function(r){function s(e,t,n){var i,r;s.Tr.constructor.call(this,e),this.name="!DOCTYPE",this.documentObject=e,o(t)&&(t=(i=t).pubID,n=i.sysID),null==n&&(n=(r=[t,n])[0],t=r[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=n&&(this.sysID=this.stringify.dtdSysID(n))}return function(e,t){for(var n in t)a.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.Tr=t.prototype}(s,r),s.prototype.element=function(e,n){var i;return i=new t(this,e,n),this.children.push(i),this},s.prototype.attList=function(t,n,i,r,o){var a;return a=new e(this,t,n,i,r,o),this.children.push(a),this},s.prototype.entity=function(e,t){var i;return i=new n(this,!1,e,t),this.children.push(i),this},s.prototype.pEntity=function(e,t){var i;return i=new n(this,!0,e,t),this.children.push(i),this},s.prototype.notation=function(e,t){var n;return n=new i(this,e,t),this.children.push(n),this},s.prototype.toString=function(e){return this.options.writer.set(e).docType(this)},s.prototype.ele=function(e,t){return this.element(e,t)},s.prototype.att=function(e,t,n,i,r){return this.attList(e,t,n,i,r)},s.prototype.ent=function(e,t){return this.entity(e,t)},s.prototype.pent=function(e,t){return this.pEntity(e,t)},s.prototype.not=function(e,t){return this.notation(e,t)},s.prototype.up=function(){return this.root()||this.documentObject},s}(r)}.call(Lc)),Uc.exports}var qc,jc={exports:{}},Hc=jc.exports;function Vc(){return qc||(qc=1,function(){var e,t={}.hasOwnProperty;e=au(),jc.exports=function(e){function n(e,t){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(t)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.set(e).raw(this)},n}(e)}.call(Hc)),jc.exports}var $c,Gc={exports:{}},Kc=Gc.exports;function Zc(){return $c||($c=1,function(){var e,t={}.hasOwnProperty;e=au(),Gc.exports=function(e){function n(e,t){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(t)}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.set(e).text(this)},n}(e)}.call(Kc)),Gc.exports}var Xc,Yc={exports:{}},Jc=Yc.exports;function Qc(){return Xc||(Xc=1,function(){var e,t={}.hasOwnProperty;e=au(),Yc.exports=function(e){function n(e,t,i){if(n.Tr.constructor.call(this,e),null==t)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(t),i&&(this.value=this.stringify.insValue(i))}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)},n}(e)}.call(Jc)),Yc.exports}var eu,tu={exports:{}},nu=tu.exports;function iu(){return eu||(eu=1,function(){var e,t={}.hasOwnProperty;e=au(),tu.exports=function(e){function n(e){n.Tr.constructor.call(this,e),this.isDummy=!0}return function(e,n){for(var i in n)t.call(n,i)&&(e[i]=n[i]);function r(){this.constructor=e}r.prototype=n.prototype,e.prototype=new r,e.Tr=n.prototype}(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return""},n}(e)}.call(nu)),tu.exports}var ru,ou=nc.exports;function au(){return ru||(ru=1,function(){var e,t,n,i,r,o,a,s,c,u,l,d,h,f,m={}.hasOwnProperty;f=Qs(),h=f.isObject,d=f.isFunction,l=f.isEmpty,u=f.getValue,o=null,e=null,t=null,n=null,i=null,s=null,c=null,a=null,r=null,nc.exports=function(){function f(u){this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],o||(o=uc(),e=fc(),t=bc(),n=xc(),i=Nc(),s=Vc(),c=Zc(),a=Qc(),r=iu())}return f.prototype.element=function(e,t,n){var i,r,o,a,s,c,f,p,g,b,v;if(c=null,null===t&&null==n&&(t=(g=[{},null])[0],n=g[1]),null==t&&(t={}),t=u(t),h(t)||(n=(b=[t,n])[0],t=b[1]),null!=e&&(e=u(e)),Array.isArray(e))for(o=0,f=e.length;o<f;o++)r=e[o],c=this.element(r);else if(d(e))c=this.element(e.apply());else if(h(e)){for(s in e)if(m.call(e,s))if(v=e[s],d(v)&&(v=v.apply()),h(v)&&l(v)&&(v=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===s.indexOf(this.stringify.convertAttKey))c=this.attribute(s.substr(this.stringify.convertAttKey.length),v);else if(!this.options.separateArrayItems&&Array.isArray(v))for(a=0,p=v.length;a<p;a++)r=v[a],(i={})[s]=r,c=this.element(i);else h(v)?(c=this.element(s)).element(v):c=this.element(s,v)}else c=this.options.skipNullNodes&&null===n?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(null==c)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return c},f.prototype.insertBefore=function(e,t,n){var i,r,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return r=this.parent.children.indexOf(this),o=this.parent.children.splice(r),i=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),i},f.prototype.insertAfter=function(e,t,n){var i,r,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return r=this.parent.children.indexOf(this),o=this.parent.children.splice(r+1),i=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,o),i},f.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},f.prototype.node=function(e,t,n){var i,r;return null!=e&&(e=u(e)),t||(t={}),t=u(t),h(t)||(n=(r=[t,n])[0],t=r[1]),i=new o(this,e,t),null!=n&&i.text(n),this.children.push(i),i},f.prototype.text=function(e){var t;return t=new c(this,e),this.children.push(t),this},f.prototype.cdata=function(t){var n;return n=new e(this,t),this.children.push(n),this},f.prototype.comment=function(e){var n;return n=new t(this,e),this.children.push(n),this},f.prototype.commentBefore=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},f.prototype.commentAfter=function(e){var t,n;return t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this},f.prototype.raw=function(e){var t;return t=new s(this,e),this.children.push(t),this},f.prototype.dummy=function(){var e;return e=new r(this),this.children.push(e),e},f.prototype.instruction=function(e,t){var n,i,r,o,s;if(null!=e&&(e=u(e)),null!=t&&(t=u(t)),Array.isArray(e))for(o=0,s=e.length;o<s;o++)n=e[o],this.instruction(n);else if(h(e))for(n in e)m.call(e,n)&&(i=e[n],this.instruction(n,i));else d(t)&&(t=t.apply()),r=new a(this,e,t),this.children.push(r);return this},f.prototype.instructionBefore=function(e,t){var n,i;return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,i),this},f.prototype.instructionAfter=function(e,t){var n,i;return n=this.parent.children.indexOf(this),i=this.parent.children.splice(n+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,i),this},f.prototype.declaration=function(e,t,i){var r,o;return r=this.document(),o=new n(r,e,t,i),r.children[0]instanceof n?r.children[0]=o:r.children.unshift(o),r.root()||r},f.prototype.doctype=function(e,t){var n,r,o,a,s,c,u,l,d;for(n=this.document(),r=new i(n,e,t),o=a=0,c=(l=n.children).length;a<c;o=++a)if(l[o]instanceof i)return n.children[o]=r,r;for(o=s=0,u=(d=n.children).length;s<u;o=++s)if(d[o].isRoot)return n.children.splice(o,0,r),r;return n.children.push(r),r},f.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},f.prototype.root=function(){var e;for(e=this;e;){if(e.isDocument)return e.rootObject;if(e.isRoot)return e;e=e.parent}},f.prototype.document=function(){var e;for(e=this;e;){if(e.isDocument)return e;e=e.parent}},f.prototype.end=function(e){return this.document().end(e)},f.prototype.prev=function(){var e;for(e=this.parent.children.indexOf(this);e>0&&this.parent.children[e-1].isDummy;)e-=1;if(e<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},f.prototype.next=function(){var e;for(e=this.parent.children.indexOf(this);e<this.parent.children.length-1&&this.parent.children[e+1].isDummy;)e+=1;if(-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},f.prototype.importDocument=function(e){var t;return(t=e.root().clone()).parent=this,t.isRoot=!1,this.children.push(t),this},f.prototype.debugInfo=function(e){var t,n;return null!=(e=e||this.name)||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(n=this.parent)?n.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},f.prototype.ele=function(e,t,n){return this.element(e,t,n)},f.prototype.nod=function(e,t,n){return this.node(e,t,n)},f.prototype.txt=function(e){return this.text(e)},f.prototype.dat=function(e){return this.cdata(e)},f.prototype.com=function(e){return this.comment(e)},f.prototype.ins=function(e,t){return this.instruction(e,t)},f.prototype.doc=function(){return this.document()},f.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},f.prototype.dtd=function(e,t){return this.doctype(e,t)},f.prototype.e=function(e,t,n){return this.element(e,t,n)},f.prototype.n=function(e,t,n){return this.node(e,t,n)},f.prototype.t=function(e){return this.text(e)},f.prototype.d=function(e){return this.cdata(e)},f.prototype.c=function(e){return this.comment(e)},f.prototype.r=function(e){return this.raw(e)},f.prototype.i=function(e,t){return this.instruction(e,t)},f.prototype.u=function(){return this.up()},f.prototype.importXMLBuilder=function(e){return this.importDocument(e)},f}()}.call(ou)),nc.exports}var su,cu={exports:{}},uu=cu.exports;function lu(){return su||(su=1,function(){var e={}.hasOwnProperty;cu.exports=function(){function t(t){var n,i,r,o,a;for(r in this.assertLegalChar=(n=this.assertLegalChar,i=this,function(){return n.apply(i,arguments)}),t||(t={}),this.noDoubleEncoding=t.noDoubleEncoding,o=t.stringify||{})e.call(o,r)&&(a=o[r],this[r]=a)}return t.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},t.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},t.prototype.cdata=function(e){return e=(e=""+e||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e)},t.prototype.comment=function(e){if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return""+e||""},t.prototype.attName=function(e){return""+e||""},t.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},t.prototype.insTarget=function(e){return""+e||""},t.prototype.insValue=function(e){if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},t.prototype.xmlVersion=function(e){if(!(e=""+e||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return e},t.prototype.xmlStandalone=function(e){return e?"yes":"no"},t.prototype.dtdPubID=function(e){return""+e||""},t.prototype.dtdSysID=function(e){return""+e||""},t.prototype.dtdElementValue=function(e){return""+e||""},t.prototype.dtdAttType=function(e){return""+e||""},t.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},t.prototype.dtdEntityValue=function(e){return""+e||""},t.prototype.dtdNData=function(e){return""+e||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t;if(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},t.prototype.elEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},t.prototype.attEscape=function(e){var t;return t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},t}()}.call(uu)),cu.exports}var du,hu={exports:{}},fu={exports:{}},mu=fu.exports;function pu(){return du||(du=1,function(){var e={}.hasOwnProperty;fu.exports=function(){function t(t){var n,i,r,o,a,s,c,u,l;for(n in t||(t={}),this.pretty=t.pretty||!1,this.allowEmpty=null!=(i=t.allowEmpty)&&i,this.pretty?(this.indent=null!=(r=t.indent)?r:" ",this.newline=null!=(o=t.newline)?o:"\n",this.offset=null!=(a=t.offset)?a:0,this.dontprettytextnodes=null!=(s=t.dontprettytextnodes)?s:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(c=t.spacebeforeslash)?c:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,u=t.writer||{})e.call(u,n)&&(l=u[n],this[n]=l)}return t.prototype.set=function(t){var n,i,r;for(n in t||(t={}),"pretty"in t&&(this.pretty=t.pretty),"allowEmpty"in t&&(this.allowEmpty=t.allowEmpty),this.pretty?(this.indent="indent"in t?t.indent:" ",this.newline="newline"in t?t.newline:"\n",this.offset="offset"in t?t.offset:0,this.dontprettytextnodes="dontprettytextnodes"in t?t.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in t?t.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,i=t.writer||{})e.call(i,n)&&(r=i[n],this[n]=r);return this},t.prototype.space=function(e){var t;return this.pretty&&(t=(e||0)+this.offset+1)>0?new Array(t).join(this.indent):""},t}()}.call(mu)),fu.exports}var gu,bu=hu.exports;function vu(){return gu||(gu=1,function(){var e,t,n,i,r,o,a,s,c,u,l,d,h,f,m={}.hasOwnProperty;a=xc(),s=Nc(),e=fc(),t=bc(),u=uc(),d=Vc(),h=Zc(),l=Qc(),c=iu(),n=Ac(),i=Mc(),r=Cc(),o=Oc(),f=pu(),hu.exports=function(f){function p(e){p.Tr.constructor.call(this,e)}return function(e,t){for(var n in t)m.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.Tr=t.prototype}(p,f),p.prototype.document=function(e){var n,i,r,o,u;for(this.textispresent=!1,o="",i=0,r=(u=e.children).length;i<r;i++)(n=u[i])instanceof c||(o+=function(){switch(!1){case!(n instanceof a):return this.declaration(n);case!(n instanceof s):return this.docType(n);case!(n instanceof t):return this.comment(n);case!(n instanceof l):return this.processingInstruction(n);default:return this.element(n,0)}}.call(this));return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},p.prototype.attribute=function(e){return" "+e.name+'="'+e.value+'"'},p.prototype.cdata=function(e,t){return this.space(t)+"<![CDATA["+e.text+"]]>"+this.newline},p.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline},p.prototype.declaration=function(e,t){var n;return n=this.space(t),n+='<?xml version="'+e.version+'"',null!=e.encoding&&(n+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(n+=' standalone="'+e.standalone+'"'),n+=this.spacebeforeslash+"?>",n+=this.newline},p.prototype.docType=function(a,s){var c,u,d,h,f;if(s||(s=0),h=this.space(s),h+="<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?h+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(h+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(h+=" [",h+=this.newline,u=0,d=(f=a.children).length;u<d;u++)c=f[u],h+=function(){switch(!1){case!(c instanceof n):return this.dtdAttList(c,s+1);case!(c instanceof i):return this.dtdElement(c,s+1);case!(c instanceof r):return this.dtdEntity(c,s+1);case!(c instanceof o):return this.dtdNotation(c,s+1);case!(c instanceof e):return this.cdata(c,s+1);case!(c instanceof t):return this.comment(c,s+1);case!(c instanceof l):return this.processingInstruction(c,s+1);default:throw new Error("Unknown DTD node type: "+c.constructor.name)}}.call(this);h+="]"}return h+=this.spacebeforeslash+">",h+=this.newline},p.prototype.element=function(n,i){var r,o,a,s,f,p,g,b,v,y,w,x,D;for(g in i||(i=0),D=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),b="",b+=(x=this.space(i))+"<"+n.name,v=n.attributes)m.call(v,g)&&(r=v[g],b+=this.attribute(r));if(0===n.children.length||n.children.every(function(e){return""===e.value}))this.allowEmpty?b+="></"+n.name+">"+this.newline:b+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===n.children.length&&null!=n.children[0].value)b+=">",b+=n.children[0].value,b+="</"+n.name+">"+this.newline;else{if(this.dontprettytextnodes)for(a=0,f=(y=n.children).length;a<f;a++)if(null!=(o=y[a]).value){this.textispresent++,D=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,x=this.space(i)),b+=">"+this.newline,s=0,p=(w=n.children).length;s<p;s++)o=w[s],b+=function(){switch(!1){case!(o instanceof e):return this.cdata(o,i+1);case!(o instanceof t):return this.comment(o,i+1);case!(o instanceof u):return this.element(o,i+1);case!(o instanceof d):return this.raw(o,i+1);case!(o instanceof h):return this.text(o,i+1);case!(o instanceof l):return this.processingInstruction(o,i+1);case!(o instanceof c):return"";default:throw new Error("Unknown XML node type: "+o.constructor.name)}}.call(this);D&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),b+=x+"</"+n.name+">"+this.newline}return b},p.prototype.processingInstruction=function(e,t){var n;return n=this.space(t)+"<?"+e.target,e.value&&(n+=" "+e.value),n+=this.spacebeforeslash+"?>"+this.newline},p.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline},p.prototype.text=function(e,t){return this.space(t)+e.value+this.newline},p.prototype.dtdAttList=function(e,t){var n;return n=this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(n+=" "+e.defaultValueType),e.defaultValue&&(n+=' "'+e.defaultValue+'"'),n+=this.spacebeforeslash+">"+this.newline},p.prototype.dtdElement=function(e,t){return this.space(t)+"<!ELEMENT "+e.name+" "+e.value+this.spacebeforeslash+">"+this.newline},p.prototype.dtdEntity=function(e,t){var n;return n=this.space(t)+"<!ENTITY",e.pe&&(n+=" %"),n+=" "+e.name,e.value?n+=' "'+e.value+'"':(e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),e.nData&&(n+=" NDATA "+e.nData)),n+=this.spacebeforeslash+">"+this.newline},p.prototype.dtdNotation=function(e,t){var n;return n=this.space(t)+"<!NOTATION "+e.name,e.pubID&&e.sysID?n+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?n+=' PUBLIC "'+e.pubID+'"':e.sysID&&(n+=' SYSTEM "'+e.sysID+'"'),n+=this.spacebeforeslash+">"+this.newline},p.prototype.openNode=function(e,t){var n,i,r,o;if(t||(t=0),e instanceof u){for(i in r=this.space(t)+"<"+e.name,o=e.attributes)m.call(o,i)&&(n=o[i],r+=this.attribute(n));return r+=(e.children?">":"/>")+this.newline}return r=this.space(t)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?r+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(r+=' SYSTEM "'+e.sysID+'"'),r+=(e.children?" [":">")+this.newline},p.prototype.closeNode=function(e,t){switch(t||(t=0),!1){case!(e instanceof u):return this.space(t)+"</"+e.name+">"+this.newline;case!(e instanceof s):return this.space(t)+"]>"+this.newline}},p}(f)}.call(bu)),hu.exports}var yu,wu=tc.exports;function xu(){return yu||(yu=1,function(){var e,t,n,i,r={}.hasOwnProperty;i=Qs().isPlainObject,e=au(),n=lu(),t=vu(),tc.exports=function(e){function o(e){o.Tr.constructor.call(this,null),this.name="?xml",e||(e={}),e.writer||(e.writer=new t),this.options=e,this.stringify=new n(e),this.isDocument=!0}return function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.Tr=t.prototype}(o,e),o.prototype.end=function(e){var t;return e?i(e)&&(t=e,e=this.options.writer.set(t)):e=this.options.writer,e.document(this)},o.prototype.toString=function(e){return this.options.writer.set(e).document(this)},o}(e)}.call(wu)),tc.exports}var Du,Uu={exports:{}},Tu=Uu.exports;var ku,Au,Fu,Su,Eu,Cu={exports:{}},Bu=Cu.exports;function Wu(){return ku||(ku=1,function(){var e,t,n,i,r,o,a,s,c,u,l,d,h,f,m={}.hasOwnProperty;a=xc(),s=Nc(),e=fc(),t=bc(),u=uc(),d=Vc(),h=Zc(),l=Qc(),c=iu(),n=Ac(),i=Mc(),r=Cc(),o=Oc(),f=pu(),Cu.exports=function(f){function p(e,t){p.Tr.constructor.call(this,t),this.stream=e}return function(e,t){for(var n in t)m.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.Tr=t.prototype}(p,f),p.prototype.document=function(e){var n,i,r,o,u,d,h,f;for(i=0,o=(d=e.children).length;i<o;i++)(n=d[i]).isLastRootNode=!1;for(e.children[e.children.length-1].isLastRootNode=!0,f=[],r=0,u=(h=e.children).length;r<u;r++)if(!((n=h[r])instanceof c))switch(!1){case!(n instanceof a):f.push(this.declaration(n));break;case!(n instanceof s):f.push(this.docType(n));break;case!(n instanceof t):f.push(this.comment(n));break;case!(n instanceof l):f.push(this.processingInstruction(n));break;default:f.push(this.element(n))}return f},p.prototype.attribute=function(e){return this.stream.write(" "+e.name+'="'+e.value+'"')},p.prototype.cdata=function(e,t){return this.stream.write(this.space(t)+"<![CDATA["+e.text+"]]>"+this.endline(e))},p.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))},p.prototype.declaration=function(e,t){return this.stream.write(this.space(t)),this.stream.write('<?xml version="'+e.version+'"'),null!=e.encoding&&this.stream.write(' encoding="'+e.encoding+'"'),null!=e.standalone&&this.stream.write(' standalone="'+e.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(e))},p.prototype.docType=function(a,s){var c,u,d,h;if(s||(s=0),this.stream.write(this.space(s)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a)),u=0,d=(h=a.children).length;u<d;u++)switch(c=h[u],!1){case!(c instanceof n):this.dtdAttList(c,s+1);break;case!(c instanceof i):this.dtdElement(c,s+1);break;case!(c instanceof r):this.dtdEntity(c,s+1);break;case!(c instanceof o):this.dtdNotation(c,s+1);break;case!(c instanceof e):this.cdata(c,s+1);break;case!(c instanceof t):this.comment(c,s+1);break;case!(c instanceof l):this.processingInstruction(c,s+1);break;default:throw new Error("Unknown DTD node type: "+c.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},p.prototype.element=function(n,i){var r,o,a,s,f,p,g,b;for(f in i||(i=0),b=this.space(i),this.stream.write(b+"<"+n.name),p=n.attributes)m.call(p,f)&&(r=p[f],this.attribute(r));if(0===n.children.length||n.children.every(function(e){return""===e.value}))this.allowEmpty?this.stream.write("></"+n.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===n.children.length&&null!=n.children[0].value)this.stream.write(">"),this.stream.write(n.children[0].value),this.stream.write("</"+n.name+">");else{for(this.stream.write(">"+this.newline),a=0,s=(g=n.children).length;a<s;a++)switch(o=g[a],!1){case!(o instanceof e):this.cdata(o,i+1);break;case!(o instanceof t):this.comment(o,i+1);break;case!(o instanceof u):this.element(o,i+1);break;case!(o instanceof d):this.raw(o,i+1);break;case!(o instanceof h):this.text(o,i+1);break;case!(o instanceof l):this.processingInstruction(o,i+1);break;case!(o instanceof c):break;default:throw new Error("Unknown XML node type: "+o.constructor.name)}this.stream.write(b+"</"+n.name+">")}return this.stream.write(this.endline(n))},p.prototype.processingInstruction=function(e,t){return this.stream.write(this.space(t)+"<?"+e.target),e.value&&this.stream.write(" "+e.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(e))},p.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},p.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))},p.prototype.dtdAttList=function(e,t){return this.stream.write(this.space(t)+"<!ATTLIST "+e.elementName+" "+e.attributeName+" "+e.attributeType),"#DEFAULT"!==e.defaultValueType&&this.stream.write(" "+e.defaultValueType),e.defaultValue&&this.stream.write(' "'+e.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},p.prototype.dtdElement=function(e,t){return this.stream.write(this.space(t)+"<!ELEMENT "+e.name+" "+e.value),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},p.prototype.dtdEntity=function(e,t){return this.stream.write(this.space(t)+"<!ENTITY"),e.pe&&this.stream.write(" %"),this.stream.write(" "+e.name),e.value?this.stream.write(' "'+e.value+'"'):(e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.nData&&this.stream.write(" NDATA "+e.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},p.prototype.dtdNotation=function(e,t){return this.stream.write(this.space(t)+"<!NOTATION "+e.name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.pubID?this.stream.write(' PUBLIC "'+e.pubID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(e))},p.prototype.endline=function(e){return e.isLastRootNode?"":this.newline},p}(f)}.call(Bu)),Cu.exports}function Iu(){return Au||(Au=1,function(){var e,t,n,i,r,o,a;a=Qs(),r=a.assign,o=a.isFunction,e=xu(),Du||(Du=1,function(){var e,t,n,i,r,o,a,s,c,u,l,d,h,f,m,p,g,b,v,y,w={}.hasOwnProperty;y=Qs(),b=y.isObject,g=y.isFunction,v=y.isPlainObject,p=y.getValue,u=uc(),t=fc(),n=bc(),d=Vc(),m=Zc(),l=Qc(),s=xc(),c=Nc(),i=Ac(),o=Cc(),r=Mc(),a=Oc(),e=ac(),f=lu(),h=vu(),Uu.exports=function(){function y(e,t,n){var i;this.name="?xml",e||(e={}),e.writer?v(e.writer)&&(i=e.writer,e.writer=new h(i)):e.writer=new h(e),this.options=e,this.writer=e.writer,this.stringify=new f(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return y.prototype.node=function(e,t,n){var i,r;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=p(e),null===t&&null==n&&(t=(i=[{},null])[0],n=i[1]),null==t&&(t={}),t=p(t),b(t)||(n=(r=[t,n])[0],t=r[1]),this.currentNode=new u(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=n&&this.text(n),this},y.prototype.element=function(e,t,n){return this.currentNode&&this.currentNode instanceof c?this.dtdElement.apply(this,arguments):this.node(e,t,n)},y.prototype.attribute=function(t,n){var i,r;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(t));if(null!=t&&(t=p(t)),b(t))for(i in t)w.call(t,i)&&(r=t[i],this.attribute(i,r));else g(n)&&(n=n.apply()),this.options.skipNullAttributes&&null==n||(this.currentNode.attributes[t]=new e(this,t,n));return this},y.prototype.text=function(e){var t;return this.openCurrent(),t=new m(this,e),this.onData(this.writer.text(t,this.currentLevel+1),this.currentLevel+1),this},y.prototype.cdata=function(e){var n;return this.openCurrent(),n=new t(this,e),this.onData(this.writer.cdata(n,this.currentLevel+1),this.currentLevel+1),this},y.prototype.comment=function(e){var t;return this.openCurrent(),t=new n(this,e),this.onData(this.writer.comment(t,this.currentLevel+1),this.currentLevel+1),this},y.prototype.raw=function(e){var t;return this.openCurrent(),t=new d(this,e),this.onData(this.writer.raw(t,this.currentLevel+1),this.currentLevel+1),this},y.prototype.instruction=function(e,t){var n,i,r,o,a;if(this.openCurrent(),null!=e&&(e=p(e)),null!=t&&(t=p(t)),Array.isArray(e))for(n=0,o=e.length;n<o;n++)i=e[n],this.instruction(i);else if(b(e))for(i in e)w.call(e,i)&&(r=e[i],this.instruction(i,r));else g(t)&&(t=t.apply()),a=new l(this,e,t),this.onData(this.writer.processingInstruction(a,this.currentLevel+1),this.currentLevel+1);return this},y.prototype.declaration=function(e,t,n){var i;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return i=new s(this,e,t,n),this.onData(this.writer.declaration(i,this.currentLevel+1),this.currentLevel+1),this},y.prototype.doctype=function(e,t,n){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new c(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},y.prototype.dtdElement=function(e,t){var n;return this.openCurrent(),n=new r(this,e,t),this.onData(this.writer.dtdElement(n,this.currentLevel+1),this.currentLevel+1),this},y.prototype.attList=function(e,t,n,r,o){var a;return this.openCurrent(),a=new i(this,e,t,n,r,o),this.onData(this.writer.dtdAttList(a,this.currentLevel+1),this.currentLevel+1),this},y.prototype.entity=function(e,t){var n;return this.openCurrent(),n=new o(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},y.prototype.pEntity=function(e,t){var n;return this.openCurrent(),n=new o(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.currentLevel+1),this.currentLevel+1),this},y.prototype.notation=function(e,t){var n;return this.openCurrent(),n=new a(this,e,t),this.onData(this.writer.dtdNotation(n,this.currentLevel+1),this.currentLevel+1),this},y.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},y.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},y.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},y.prototype.openNode=function(e){if(!e.isOpen)return!this.root&&0===this.currentLevel&&e instanceof u&&(this.root=e),this.onData(this.writer.openNode(e,this.currentLevel),this.currentLevel),e.isOpen=!0},y.prototype.closeNode=function(e){if(!e.isClosed)return this.onData(this.writer.closeNode(e,this.currentLevel),this.currentLevel),e.isClosed=!0},y.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},y.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},y.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},y.prototype.ele=function(){return this.element.apply(this,arguments)},y.prototype.nod=function(e,t,n){return this.node(e,t,n)},y.prototype.txt=function(e){return this.text(e)},y.prototype.dat=function(e){return this.cdata(e)},y.prototype.com=function(e){return this.comment(e)},y.prototype.ins=function(e,t){return this.instruction(e,t)},y.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},y.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},y.prototype.e=function(e,t,n){return this.element(e,t,n)},y.prototype.n=function(e,t,n){return this.node(e,t,n)},y.prototype.t=function(e){return this.text(e)},y.prototype.d=function(e){return this.cdata(e)},y.prototype.c=function(e){return this.comment(e)},y.prototype.r=function(e){return this.raw(e)},y.prototype.i=function(e,t){return this.instruction(e,t)},y.prototype.att=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},y.prototype.a=function(){return this.currentNode&&this.currentNode instanceof c?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},y.prototype.ent=function(e,t){return this.entity(e,t)},y.prototype.pent=function(e,t){return this.pEntity(e,t)},y.prototype.not=function(e,t){return this.notation(e,t)},y}()}.call(Tu)),t=Uu.exports,i=vu(),n=Wu(),Ys.create=function(t,n,i,o){var a,s;if(null==t)throw new Error("Root element needs a name.");return o=r({},n,i,o),s=(a=new e(o)).element(t),o.headless||(a.declaration(o),null==o.pubID&&null==o.sysID||a.doctype(o)),s},Ys.begin=function(n,i,r){var a;return o(n)&&(i=(a=[n,i])[0],r=a[1],n={}),i?new t(n,i,r):new e(n)},Ys.stringWriter=function(e){return new i(e)},Ys.streamWriter=function(e,t){return new n(e,t)}}.call(Ys)),Ys}function Mu(){if(Su)return Ts;Su=1;var e=As();return Ts.Element=e.Element,Ts.element=e.element,Ts.emptyElement=e.emptyElement,Ts.text=e.text,Ts.readString=Ks().readString,Ts.writeString=function(){if(Fu)return Xs;Fu=1;var e=ko,t=Iu();function n(e,t){e.text(t.value)}return Xs.writeString=function(i,r){var o,a,s=e.invert(r),c={element:function(e,t){var n=e.element(l(t.name),t.attributes);t.children.forEach(function(e){u(n,e)})},text:n};function u(e,t){return c[t.type](e,t)}function l(e){var t=/^\{(.*)\}(.*)$/.exec(e);if(t){var n=s[t[1]];return n+(""===n?"":":")+t[2]}return e}return o=i,a=t.create(l(o.name),{version:"1.0",encoding:"UTF-8",standalone:!0}),e.forEach(r,function(e,t){var n="xmlns"+(""===t?"":":"+t);a.attribute(n,e)}),o.children.forEach(function(e){u(a,e)}),a.end()},Xs}().writeString,Ts}var Ru,zu,_u={},Ou={},Pu={};function Lu(){if(zu)return Ou;zu=1;var e=Ou&&Ou.kr||function(e){return e&&e.M?e:{default:e}};Object.defineProperty(Ou,"M",{value:!0}),Ou.hex=Ou.dec=Ou.codePoint=void 0;for(var t=e((Ru||(Ru=1,Object.defineProperty(Pu,"M",{value:!0}),Pu.default=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}]),Pu)),n={},i=String.fromCodePoint?String.fromCodePoint:function(e){if(e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)},r=0,o=t.default;r<o.length;r++){var a=o[r],s=parseInt(a["Unicode dec"],10),c={codePoint:s,string:i(s)};n[a["Typeface name"].toUpperCase()+"_"+a["Dingbat dec"]]=c}function u(e,t){return n[e.toUpperCase()+"_"+t]}return Ou.codePoint=u,Ou.dec=function(e,t){return u(e,parseInt(t,10))},Ou.hex=function(e,t){return u(e,parseInt(t,16))},Ou}var Nu,qu={};function ju(){if(Nu)return qu;Nu=1;var e=ko;function t(e,t){return n(function(n){return n.type===e?t(n):n})}function n(t){return function n(i){if(i.children){var r=e.map(i.children,n);i=e.extend(i,{children:r})}return t(i)}}function i(e){var t=[];return r(e,function(e){t.push(e)}),t}function r(e,t){e.children&&e.children.forEach(function(e){r(e,t),t(e)})}return qu.paragraph=function(e){return t("paragraph",e)},qu.run=function(e){return t("run",e)},qu.Ar=n,qu.Fr=t,qu.getDescendantsOfType=function(e,t){return i(e).filter(function(e){return e.type===t})},qu.getDescendants=i,qu}var Hu,Vu,$u={};function Gu(){if(Vu)return _u;Vu=1,_u.createBodyReader=function(e){return{readXmlElement:function(t){return new c(e).readXmlElement(t)},readXmlElements:function(t){return new c(e).readXmlElements(t)}}},_u.Sr=u;var e=Lu(),t=ko,n=us(),i=hs().Result,r=hs().warning,o=Mu(),a=ju(),s=(Hu||(Hu=1,$u.uriToZipEntryName=function(e,t){return"/"===t.charAt(0)?t.substr(1):e+"/"+t},$u.replaceFragment=function(e,t){var n=e.indexOf("#");return-1!==n&&(e=e.substring(0,n)),e+"#"+t}),$u);function c(i){var c=[],v=[],y=[],w=i.relationships,x=i.contentTypes,D=i.docxFile,U=i.files,T=i.numbering,k=i.styles;function A(e){return b(e.map(F))}function F(e){if("element"===e.type){var t=O[e.name];if(t)return t(e);if(!Object.prototype.hasOwnProperty.call(d,e.name))return h([r("An unrecognised element was ignored: "+e.name)])}return f()}function S(e){return function(e){return M(e,"w:pStyle","Paragraph",k.findParagraphStyleById)}(e).map(function(t){return{type:"paragraphProperties",styleId:t.styleId,styleName:t.name,alignment:e.firstOrEmpty("w:jc").attributes["w:val"],numbering:u(t.styleId,e.firstOrEmpty("w:numPr"),T),indent:E(e.firstOrEmpty("w:ind"))}})}function E(e){return{start:e.attributes["w:start"]||e.attributes["w:left"],end:e.attributes["w:end"]||e.attributes["w:right"],firstLine:e.attributes["w:firstLine"],hanging:e.attributes["w:hanging"]}}function C(e){return function(e){return M(e,"w:rStyle","Run",k.findCharacterStyleById)}(e).map(function(t){var n=e.firstOrEmpty("w:sz").attributes["w:val"],i=/^[0-9]+$/.test(n)?parseInt(n,10)/2:null;return{type:"runProperties",styleId:t.styleId,styleName:t.name,verticalAlignment:e.firstOrEmpty("w:vertAlign").attributes["w:val"],font:e.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:i,isBold:W(e.first("w:b")),isUnderline:B(e.first("w:u")),isItalic:W(e.first("w:i")),isStrikethrough:W(e.first("w:strike")),isAllCaps:W(e.first("w:caps")),isSmallCaps:W(e.first("w:smallCaps")),highlight:I(e.firstOrEmpty("w:highlight").attributes["w:val"])}})}function B(e){if(e){var t=e.attributes["w:val"];return void 0!==t&&"false"!==t&&"0"!==t&&"none"!==t}return!1}function W(e){if(e){var t=e.attributes["w:val"];return"false"!==t&&"0"!==t}return!1}function I(e){return e&&"none"!==e?e:null}function M(e,t,n,i){var o=[],a=e.first(t),s=null,c=null;if(a&&(s=a.attributes["w:val"])){var u=i(s);u?c=u.name:o.push(function(e,t){return r(e+" style with ID "+t+" was referenced but not defined in the document")}(n,s))}return p({styleId:s,name:c},o)}function R(e){return function(e,t){var n=/\s*HYPERLINK "(.*)"/.exec(e);if(n)return{type:"hyperlink",options:{href:n[1]}};var i=/\s*HYPERLINK\s+\\l\s+"(.*)"/.exec(e);if(i)return{type:"hyperlink",options:{anchor:i[1]}};if(/\s*FORMCHECKBOX\s*/.exec(e)){var r=t.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),o=r.first("w:checked");return{type:"checkbox",checked:W(null==o?r.first("w:default"):o)}}return{type:"unknown"}}(v.join(""),"begin"===e.type?e.fldChar:o.emptyElement)}function z(e){return function(t){var i=t.attributes["w:id"];return m(new n.NoteReference({noteType:e,noteId:i}))}}function _(e){return A(e.children)}var O={"w:p":function(e){var t=e.firstOrEmpty("w:pPr");if(!!t.firstOrEmpty("w:rPr").first("w:del"))return e.children.forEach(function(e){y.push(e)}),f();var i=e.children;return y.length>0&&(i=y.concat(i),y=[]),g.map(S(t),A(i),function(e,t){return new n.Paragraph(t,e)}).insertExtra()},"w:r":function(e){return g.map(C(e.firstOrEmpty("w:rPr")),A(e.children),function(e,i){var r,o=(r=t.last(c.filter(function(e){return"hyperlink"===e.type})))?r.options:null;return null!==o&&(i=[new n.Hyperlink(i,o)]),new n.Run(i,e)})},"w:fldChar":function(e){var t=e.attributes["w:fldCharType"];if("begin"===t)c.push({type:"begin",fldChar:e}),v=[];else if("end"===t){var i=c.pop();if("begin"===i.type&&(i=R(i)),"checkbox"===i.type)return m(n.checkbox({checked:i.checked}))}else if("separate"===t){var r=R(c.pop());c.push(r)}return f()},"w:instrText":function(e){return v.push(e.text()),f()},"w:t":function(e){return m(new n.Text(e.text()))},"w:tab":function(e){return m(new n.Tab)},"w:noBreakHyphen":function(){return m(new n.Text("‑"))},"w:softHyphen":function(e){return m(new n.Text(""))},"w:sym":function(t){var i=t.attributes["w:font"],o=t.attributes["w:char"],a=e.hex(i,o);return null==a&&/^F0..$/.test(o)&&(a=e.hex(i,o.substring(2))),null==a?h([r("A w:sym element with an unsupported character was ignored: char "+o+" in font "+i)]):m(new n.Text(a.string))},"w:hyperlink":function(e){var i=e.attributes["r:id"],r=e.attributes["w:anchor"];return A(e.children).map(function(o){function a(i){var r=e.attributes["w:tgtFrame"]||null;return new n.Hyperlink(o,t.extend({targetFrame:r},i))}if(i){var c=w.findTargetByRelationshipId(i);return r&&(c=s.replaceFragment(c,r)),a({href:c})}return r?a({anchor:r}):o})},"w:tbl":function(e){var t=function(e){return function(e){return M(e,"w:tblStyle","Table",k.findTableStyleById)}(e).map(function(e){return{styleId:e.styleId,styleName:e.name}})}(e.firstOrEmpty("w:tblPr"));return A(e.children).flatMap(P).flatMap(function(e){return t.map(function(t){return n.Table(e,t)})})},"w:tr":function(e){var t=e.firstOrEmpty("w:trPr");if(t.first("w:del"))return f();var i=!!t.first("w:tblHeader");return A(e.children).map(function(e){return n.TableRow(e,{isHeader:i})})},"w:tc":function(e){return A(e.children).map(function(t){var i=e.firstOrEmpty("w:tcPr"),r=i.firstOrEmpty("w:gridSpan").attributes["w:val"],o=r?parseInt(r,10):1,a=n.TableCell(t,{colSpan:o});return a.Er=function(e){var t=e.first("w:vMerge");if(t){var n=t.attributes["w:val"];return"continue"===n||!n}return null}(i),a})},"w:footnoteReference":z("footnote"),"w:endnoteReference":z("endnote"),"w:commentReference":function(e){return m(n.commentReference({commentId:e.attributes["w:id"]}))},"w:br":function(e){var t=e.attributes["w:type"];return null==t||"textWrapping"===t?m(n.lineBreak):"page"===t?m(n.pageBreak):"column"===t?m(n.columnBreak):h([r("Unsupported break type: "+t)])},"w:bookmarkStart":function(e){var t=e.attributes["w:name"];return"_GoBack"===t?f():m(new n.BookmarkStart({name:t}))},"mc:AlternateContent":function(e){return _(e.firstOrEmpty("mc:Fallback"))},"w:sdt":function(e){return A(e.firstOrEmpty("w:sdtContent").children).map(function(t){var i,r=e.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(r){var o=r.first("wordml:checked"),s=!!o&&("false"!==(i=o.attributes["wordml:val"])&&"0"!==i),c=n.checkbox({checked:s}),u=!1,l=t.map(a.Fr(n.types.text,function(e){return e.value.length>0&&!u?(u=!0,c):e}));return u?l:c}return t})},"w:ins":_,"w:object":_,"w:smartTag":_,"w:drawing":_,"w:pict":function(e){return _(e).toExtra()},"v:roundrect":_,"v:shape":_,"v:textbox":_,"w:txbxContent":_,"wp:inline":N,"wp:anchor":N,"v:imagedata":function(e){var t=e.attributes["r:id"];return t?H(j(t),e.attributes["o:title"]):h([r("A v:imagedata element without a relationship ID was ignored")])},"v:group":_,"v:rect":_};return{readXmlElement:F,readXmlElements:A};function P(e){if(t.any(e,function(e){return e.type!==n.types.tableRow}))return L(e),p(e,[r("unexpected non-row element in table, cell merging may be incorrect")]);if(t.any(e,function(e){return t.any(e.children,function(e){return e.type!==n.types.tableCell})}))return L(e),p(e,[r("unexpected non-cell element in table row, cell merging may be incorrect")]);var i={};return e.forEach(function(e){var t=0;e.children.forEach(function(e){e.Er&&i[t]?i[t].rowSpan++:(i[t]=e,e.Er=!1),t+=e.colSpan})}),e.forEach(function(e){e.children=e.children.filter(function(e){return!e.Er}),e.children.forEach(function(e){delete e.Er})}),m(e)}function L(e){e.forEach(function(e){a.getDescendantsOfType(e,n.types.tableCell).forEach(function(e){delete e.Er})})}function N(e){return b(e.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip").map(q.bind(null,e)))}function q(e,t){var n,i=e.first("wp:docPr").attributes,o=null==(n=i.descr)||/^\s*$/.test(n)?i.title:i.descr,a=function(e){var t=e.attributes["r:embed"],n=e.attributes["r:link"];if(t)return j(t);if(n){var i=w.findTargetByRelationshipId(n);return{path:i,read:U.read.bind(U,i)}}return null}(t);return null===a?h([r("Could not find image file for a:blip element")]):H(a,o)}function j(e){var t=s.uriToZipEntryName("word",w.findTargetByRelationshipId(e));return{path:t,read:D.read.bind(D,t)}}function H(e,t){var i=x.findContentType(e.path);return p(n.Image({readImage:e.read,altText:t,contentType:i}),l[i]?[]:r("Image of type "+i+" is unlikely to display in web browsers"))}}function u(e,t,n){var i=t.firstOrEmpty("w:ilvl").attributes["w:val"],r=t.firstOrEmpty("w:numId").attributes["w:val"];if(void 0!==i&&void 0!==r)return n.findLevel(r,i);if(null!=e){var o=n.findLevelByParagraphStyleId(e);if(null!=o)return o}return void 0!==r?n.findLevel(r,"0"):null}var l={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},d={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(e){return new g(null,null,e)}function f(){return new g(null)}function m(e){return new g(e)}function p(e,t){return new g(e,null,t)}function g(e,t,n){this.value=e||[],this.extra=t||[],this.Cr=new i({element:this.value,extra:t},n),this.messages=this.Cr.messages}function b(e){var n=i.combine(t.pluck(e,"_result"));return new g(t.flatten(t.pluck(n.value,"element")),t.filter(t.flatten(t.pluck(n.value,"extra")),y),n.messages)}function v(e,n){return t.flatten([e,n])}function y(e){return e}return g.prototype.toExtra=function(){return new g(null,v(this.extra,this.value),this.messages)},g.prototype.insertExtra=function(){var e=this.extra;return e&&e.length?new g(v(this.value,e),null,this.messages):this},g.prototype.map=function(e){var t=this.Cr.map(function(t){return e(t.element)});return new g(t.value,this.extra,t.messages)},g.prototype.flatMap=function(e){var t=this.Cr.flatMap(function(t){return e(t.element).Cr});return new g(t.value.element,v(this.extra,t.value.extra),t.messages)},g.map=function(e,t,n){return new g(n(e.value,t.value),v(e.extra,t.extra),e.messages.concat(t.messages))},_u}var Ku,Zu={};var Xu,Yu={};var Ju,Qu={};var el,tl={};function nl(){if(el)return tl;el=1;var e=ko;function t(t,n,i){var r=e.flatten(e.values(n).map(function(t){return e.values(t.levels)})),o=e.indexBy(r.filter(function(e){return null!=e.paragraphStyleId}),"paragraphStyleId");return{findLevel:function e(r,o){var a=t[r];if(a){var s=n[a.abstractNumId];return s?null==s.numStyleLink?n[a.abstractNumId].levels[o]:e(i.findNumberingStyleById(s.numStyleLink).numId,o):null}return null},findLevelByParagraphStyleId:function(e){return o[e]||null}}}return tl.readNumberingXml=function(e,n){if(!n||!n.styles)throw new Error("styles is missing");var i=function(e){var t={};return e.getElementsByTagName("w:abstractNum").forEach(function(e){var n=e.attributes["w:abstractNumId"];t[n]=function(e){var t={},n=null;e.getElementsByTagName("w:lvl").forEach(function(e){var i=e.attributes["w:ilvl"],r="bullet"!==e.firstOrEmpty("w:numFmt").attributes["w:val"],o=e.firstOrEmpty("w:pStyle").attributes["w:val"];void 0===i?n={isOrdered:r,level:"0",paragraphStyleId:o}:t[i]={isOrdered:r,level:i,paragraphStyleId:o}}),null!==n&&void 0===t[n.level]&&(t[n.level]=n);var i=e.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:i}}(e)}),t}(e);return new t(function(e){var t={};return e.getElementsByTagName("w:num").forEach(function(e){var n=e.attributes["w:numId"],i=e.first("w:abstractNumId").attributes["w:val"];t[n]={abstractNumId:i}}),t}(e),i,n.styles)},tl.Numbering=t,tl.defaultNumbering=new t({},{}),tl}var il,rl={};function ol(){if(il)return rl;function e(e,t,n,i){return{findParagraphStyleById:function(t){return e[t]},findCharacterStyleById:function(e){return t[e]},findTableStyleById:function(e){return n[e]},findNumberingStyleById:function(e){return i[e]}}}function t(e){return e.attributes["w:styleId"]}return il=1,rl.readStylesXml=function(n){var i={},r={},o={},a={},s={paragraph:i,character:r,table:o,numbering:a};return n.getElementsByTagName("w:style").forEach(function(e){var n=function(e){var n=e.attributes["w:type"];if("numbering"===n)return function(e,n){var i=t(n),r=n.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:e,numId:r,styleId:i}}(n,e);var i=t(e),r=function(e){var t=e.first("w:name");return t?t.attributes["w:val"]:null}(e);return{type:n,styleId:i,name:r}}(e),i=s[n.type];i&&void 0===i[n.styleId]&&(i[n.styleId]=n)}),new e(i,r,o,a)},rl.Styles=e,rl.defaultStyles=new e({},{}),e.EMPTY=new e({},{},{},{}),rl}var al,sl={};var cl,ul={};var ll,dl,hl={};function fl(){if(dl)return Eo;dl=1,Eo.read=function(i,r,o){r=r||{};var s=new f({externalFileAccess:(o=o||{}).externalFileAccess,relativeToFile:r.path});return e.props({contentTypes:y(i),partPaths:m(i),docxFile:i,files:s}).also(function(e){return{styles:(t=i,n=e.partPaths.styles,g({filename:n,readElement:l.readStylesXml,defaultValue:l.defaultStyles})(t))};var t,n}).also(function(e){return{numbering:(t=i,n=e.partPaths.numbering,r=e.styles,g({filename:n,readElement:function(e){return u.readNumberingXml(e,{styles:r})},defaultValue:u.defaultNumbering})(t))};var t,n,r}).also(function(e){return{footnotes:b(e.partPaths.footnotes,e,function(e,t){return t?d.createFootnotesReader(e)(t):new n([])}),endnotes:b(e.partPaths.endnotes,e,function(e,t){return t?d.createEndnotesReader(e)(t):new n([])}),comments:b(e.partPaths.comments,e,function(e,t){return t?h.createCommentsReader(e)(t):new n([])})}}).also(function(e){return{notes:e.footnotes.flatMap(function(n){return e.endnotes.map(function(e){return new t.Notes(n.concat(e))})})}}).then(function(e){return b(e.partPaths.mainDocument,e,function(t,n){return e.notes.flatMap(function(i){return e.comments.flatMap(function(e){return new a({bodyReader:t,notes:i,comments:e}).convertXmlToDocument(n)})})})})},Eo.Br=m;var e=as(),t=us(),n=hs().Result,i=xs(),r=function(){if(Eu)return Us;Eu=1;var e=ko,t=as(),n=Mu();Us.read=r,Us.readXmlFromZipFile=function(e,n){return e.exists(n)?e.read(n,"utf-8").then(o).then(r):t.resolve(null)};var i={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function r(e){return n.readString(e,i).then(function(e){return a(e)[0]})}function o(e){return e.replace(/^\uFEFF/g,"")}function a(t){return"element"===t.type?"mc:AlternateContent"===t.name?t.firstOrEmpty("mc:Fallback").children:(t.children=e.flatten(t.children.map(a,!0)),[t]):[t]}return Us}().readXmlFromZipFile,o=Gu().createBodyReader,a=function(){if(Ku)return Zu;Ku=1,Zu.DocumentXmlReader=function(n){var i=n.bodyReader;return{convertXmlToDocument:function(r){var o=r.first("w:body");if(null==o)throw new Error("Could not find the body element: are you sure this is a docx file?");var a=i.readXmlElements(o.children).map(function(t){return new e.Document(t,{notes:n.notes,comments:n.comments})});return new t(a.value,a.messages)}}};var e=us(),t=hs().Result;return Zu}().DocumentXmlReader,s=function(){if(Xu)return Yu;function e(e){var t={};e.forEach(function(e){t[e.relationshipId]=e.target});var n={};return e.forEach(function(e){n[e.type]||(n[e.type]=[]),n[e.type].push(e.target)}),{findTargetByRelationshipId:function(e){return t[e]},findTargetsByType:function(e){return n[e]||[]}}}return Xu=1,Yu.readRelationships=function(t){var n=[];return t.children.forEach(function(e){if("relationships:Relationship"===e.name){var t={relationshipId:e.attributes.Id,target:e.attributes.Target,type:e.attributes.Type};n.push(t)}}),new e(n)},Yu.defaultValue=new e([]),Yu.Relationships=e,Yu}(),c=function(){if(Ju)return Qu;Ju=1,Qu.readContentTypesFromXml=function(e){var n={},i={};return e.children.forEach(function(e){if("content-types:Default"===e.name&&(n[e.attributes.Extension]=e.attributes.ContentType),"content-types:Override"===e.name){var t=e.attributes.PartName;"/"===t.charAt(0)&&(t=t.substring(1)),i[t]=e.attributes.ContentType}}),t(i,n)};var e={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function t(t,n){return{findContentType:function(i){var r=t[i];if(r)return r;var o=i.split("."),a=o[o.length-1];if(n.hasOwnProperty(a))return n[a];var s=e[a.toLowerCase()];return s?"image/"+s:null}}}return Qu.defaultContentTypes=t({},{}),Qu}(),u=nl(),l=ol(),d=function(){if(al)return sl;al=1;var e=us(),t=hs().Result;function n(n,i){function r(e){var t=e.attributes["w:type"];return"continuationSeparator"!==t&&"separator"!==t}function o(t){var r=t.attributes["w:id"];return i.readXmlElements(t.children).map(function(t){return e.Note({noteType:n,noteId:r,body:t})})}return function(e){return t.combine(e.getElementsByTagName("w:"+n).filter(r).map(o))}}return sl.createFootnotesReader=n.bind(sl,"footnote"),sl.createEndnotesReader=n.bind(sl,"endnote"),sl}(),h=function(){if(cl)return ul;cl=1;var e=us(),t=hs().Result;return ul.createCommentsReader=function(n){function i(t){var i=t.attributes["w:id"];function r(e){return(t.attributes[e]||"").trim()||null}return n.readXmlElements(t.children).map(function(t){return e.comment({commentId:i,body:t,authorName:r("w:author"),authorInitials:r("w:initials")})})}return function(e){return t.combine(e.getElementsByTagName("w:comment").map(i))}},ul}(),f=function(){if(ll)return hl;ll=1;var e=as();return hl.Files=function(){return{read:function(t){return e.reject(new Error("could not open external image: '"+t+"'\ncannot open linked files from a web browser"))}}},hl}().Files;function m(e){return w(e).then(function(t){var n=p({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(n))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return g({filename:v(n),readElement:s.readRelationships,defaultValue:s.defaultValue})(e).then(function(t){function r(r){return p({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+r,basePath:i.splitPath(n).dirname,fallbackPath:"word/"+r+".xml"})}return{mainDocument:n,comments:r("comments"),endnotes:r("endnotes"),footnotes:r("footnotes"),numbering:r("numbering"),styles:r("styles")}})})}function p(e){var t=e.docxFile,n=e.relationships,r=e.relationshipType,o=e.basePath,a=e.fallbackPath,s=n.findTargetsByType(r).map(function(e){return t=i.joinPath(o,e),n="/",t.substring(0,n.length)===n?t.substring(n.length):t;var t,n}).filter(function(e){return t.exists(e)});return 0===s.length?a:s[0]}function g(e){return function(t){return r(t,e.filename).then(function(t){return t?e.readElement(t):e.defaultValue})}}function b(e,t,n){return g({filename:v(e),readElement:s.readRelationships,defaultValue:s.defaultValue})(t.docxFile).then(function(i){var a=new o({relationships:i,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return r(t.docxFile,e).then(function(e){return n(a,e)})})}function v(e){var t=i.splitPath(e);return i.joinPath(t.dirname,"_rels",t.basename+".rels")}var y=g({filename:"[Content_Types].xml",readElement:c.readContentTypesFromXml,defaultValue:c.defaultContentTypes});var w=g({filename:"_rels/.rels",readElement:s.readRelationships,defaultValue:s.defaultValue});return Eo}var ml,pl={};function gl(){if(ml)return pl;ml=1;var e=ko,t=as(),n=Mu();pl.writeStyleMap=function(e,t){return e.write(r,t),function(e){var t="word/_rels/document.xml.rels",r="http://schemas.openxmlformats.org/package/2006/relationships",s="{"+r+"}Relationship";return e.read(t,"utf8").then(n.readString).then(function(c){a(c.children,s,"Id",{Id:"rMammothStyleMap",Type:i,Target:o});var u={"":r};return e.write(t,n.writeString(c,u))})}(e).then(function(){return function(e){var t="[Content_Types].xml",i="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+i+"}Override";return e.read(t,"utf8").then(n.readString).then(function(s){a(s.children,r,"PartName",{PartName:o,ContentType:"text/prs.mammoth.style-map"});var c={"":i};return e.write(t,n.writeString(s,c))})}(e)})},pl.readStyleMap=function(e){return e.exists(r)?e.read(r,"utf8"):t.resolve(null)};var i="http://schemas.zwobble.org/mammoth/style-map",r="mammoth/style-map",o="/"+r;function a(t,i,r,o){var a=e.find(t,function(e){return e.name===i&&e.attributes[r]===o[r]});a?a.attributes=o:t.push(n.element(i,o))}return pl}var bl,vl,yl,wl,xl,Dl={},Ul={},Tl={},kl={};function Al(){if(bl)return kl;bl=1;var e=El();function t(e,t){return{type:"element",tag:e,children:t||[]}}kl.freshElement=function(n,i,r){return t(e.element(n,i,{fresh:!0}),r)},kl.nonFreshElement=function(n,i,r){return t(e.element(n,i,{fresh:!1}),r)},kl.elementWithTag=t,kl.text=function(e){return{type:"text",value:e}},kl.forceWrite={type:"forceWrite"};var n={br:!0,hr:!0,img:!0,input:!0};return kl.isVoidElement=function(e){return 0===e.children.length&&n[e.tag.tagName]},kl}function Fl(){if(yl)return vl;yl=1;var e=ko,t=Al();function n(e){var t=[];return e.map(i).forEach(function(e){a(t,e)}),t}function i(e){return r[e.type](e)}var r={element:function(e){return t.elementWithTag(e.tag,n(e.children))},text:o,forceWrite:o};function o(e){return e}function a(e,n){var i=e[e.length-1];"element"===n.type&&!n.tag.fresh&&i&&"element"===i.type&&n.tag.matchesElement(i.tag)?(n.tag.separator&&a(i.children,t.text(n.tag.separator)),n.children.forEach(function(e){a(i.children,e)})):e.push(n)}function s(t){return n=t,i=function(e){return c[e.type](e)},e.flatten(e.map(n,i),!0);var n,i}var c={element:function(e){var n=s(e.children);return 0!==n.length||t.isVoidElement(e)?[t.elementWithTag(e.tag,n)]:[]},text:function(e){return 0===e.value.length?[]:[e]},forceWrite:function(e){return[e]}};return vl=function(e){return n(s(e))}}function Sl(){if(wl)return Tl;wl=1;var e=Al();function t(e,t){t.forEach(function(t){!function(e,t){n[t.type](e,t)}(e,t)})}Tl.freshElement=e.freshElement,Tl.nonFreshElement=e.nonFreshElement,Tl.elementWithTag=e.elementWithTag,Tl.text=e.text,Tl.forceWrite=e.forceWrite,Tl.simplify=Fl();var n={element:function(n,i){e.isVoidElement(i)?n.selfClosing(i.tag.tagName,i.tag.attributes):(n.open(i.tag.tagName,i.tag.attributes),t(n,i.children),n.close(i.tag.tagName))},text:function(e,t){e.text(t.value)},forceWrite:function(){}};return Tl.write=t,Tl}function El(){if(xl)return Ul;xl=1;var e=ko,t=Sl();function n(t){return new i(t.map(function(t){return e.isString(t)?r(t):t}))}function i(e){this.Ar=e}function r(e,t,n){return new o(e,t,n=n||{})}function o(t,n,i){var r={};e.isArray(t)?(t.forEach(function(e){r[e]=!0}),t=t[0]):r[t]=!0,this.tagName=t,this.tagNames=r,this.attributes=n||{},this.fresh=i.fresh,this.separator=i.separator}return Ul.topLevelElement=function(e,t){return n([r(e,t,{fresh:!0})])},Ul.elements=n,Ul.element=r,i.prototype.wrap=function(e){for(var t=e(),n=this.Ar.length-1;n>=0;n--)t=this.Ar[n].wrapNodes(t);return t},o.prototype.matchesElement=function(t){return this.tagNames[t.tagName]&&e.isEqual(this.attributes||{},t.attributes||{})},o.prototype.wrap=function(e){return this.wrapNodes(e())},o.prototype.wrapNodes=function(e){return[t.elementWithTag(this,e)]},Ul.empty=n([]),Ul.ignore={wrap:function(){return[]}},Ul}var Cl,Bl={};function Wl(){return Cl||(Cl=1,function(e){var t=ko,n=as(),i=Sl();function r(e){return function(r,o){return n.when(e(r)).then(function(e){var n={};return r.altText&&(n.alt=r.altText),t.extend(n,e),[i.freshElement("img",n)]})}}e.imgElement=r,e.inline=e.imgElement,e.dataUri=r(function(e){return e.readAsBase64String().then(function(t){return{src:"data:"+e.contentType+";base64,"+t}})})}(Bl)),Bl}var Il,Ml={},Rl={};function zl(){if(Il)return Rl;Il=1;var e=ko;Rl.writer=function(i){return(i=i||{}).prettyPrint?function(){var i=0,r=" ",o=[],a=!0,s=!1,c=n();function u(e,n){t[e]&&p(),o.push(e),c.open(e,n),t[e]&&i++,a=!1}function l(e){t[e]&&(i--,p()),o.pop(),c.close(e)}function d(e){m();var t=g()?e:e.replace("\n","\n"+r);c.text(t)}function h(e,t){p(),c.selfClosing(e,t)}function f(){return 0===o.length||t[o[o.length-1]]}function m(){s||(p(),s=!0)}function p(){if(s=!1,!a&&f()&&!g()){c.Wr("\n");for(var e=0;e<i;e++)c.Wr(r)}}function g(){return e.some(o,function(e){return"pre"===e})}return{asString:c.asString,open:u,close:l,text:d,selfClosing:h}}():n()};var t={div:!0,p:!0,ul:!0,li:!0};function n(){var t=[];function n(t){return e.map(t,function(e,t){return" "+t+'="'+function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}(e)+'"'}).join("")}return{asString:function(){return t.join("")},open:function(e,i){var r=n(i);t.push("<"+e+r+">")},close:function(e){t.push("</"+e+">")},text:function(e){t.push(function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}(e))},selfClosing:function(e,i){var r=n(i);t.push("<"+e+r+" />")},Wr:function(e){t.push(e)}}}return Rl}var _l,Ol,Pl,Ll={};function Nl(){if(Ol)return Ml;Ol=1;var e=zl(),t=function(){if(_l)return Ll;_l=1;var e=ko;function t(e){return n(e,e)}function n(e,t){return function(){return{start:e,end:t}}}function i(e){return function(t,n){return{start:n?"\n":"",end:n?"":"\n",list:{isOrdered:e.isOrdered,indent:n?n.indent+1:0,count:0}}}}var r={p:n("","\n\n"),br:n(""," \n"),ul:i({isOrdered:!1}),ol:i({isOrdered:!0}),li:function(e,t,n){(t=t||{indent:0,isOrdered:!1,count:0}).count++,n.hasClosed=!1;var i=t.isOrdered?t.count+".":"-";return{start:o("\t",t.indent)+i+" ",end:function(){if(!n.hasClosed)return n.hasClosed=!0,"\n"}}},strong:t("__"),em:t("*"),a:function(e){var t=e.href||"";return t?{start:"[",end:"]("+t+")",anchorPosition:"before"}:{}},img:function(e){var t=e.src||"",n=e.alt||"";return t||n?{start:""}:{}}};function o(e,t){return new Array(t+1).join(e)}return function(){for(var e=1;e<=6;e++)r["h"+e]=n(o("#",e)+" ","\n\n")}(),Ll.writer=function(){var t=[],n=[],i=null,o={};function a(e,a){a=a||{};var c=(r[e]||function(){return{}})(a,i,o);n.push({end:c.end,list:i}),c.list&&(i=c.list);var u="before"===c.anchorPosition;u&&s(a),t.push(c.start||""),u||s(a)}function s(e){e.id&&t.push('<a id="'+e.id+'"></a>')}function c(r){var o=n.pop();i=o.list;var a=e.isFunction(o.end)?o.end():o.end;t.push(a||"")}return{asString:function(){return t.join("")},open:a,close:c,text:function(e){t.push(function(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}(e))},selfClosing:function(e,t){a(e,t),c()}}},Ll}();return Ml.writer=function(n){return"markdown"===(n=n||{}).outputFormat?t.writer():e.writer(n)},Ml}function ql(){if(Pl)return Dl;Pl=1;var e=ko,t=as(),n=us(),i=El(),r=hs(),o=Wl(),a=Sl(),s=Nl();function c(c,m){var p=1,g=[],b=[],v=void 0===(c=e.extend({ignoreEmptyParagraphs:!0},c)).idPrefix?"":c.idPrefix,y=c.ignoreEmptyParagraphs,w=i.topLevelElement("p"),x=c.styleMap||[];function D(e,t,n){return d(e,function(e){return U(e,t,n)})}function U(e,t,n){if(!n)throw new Error("options not set");var i=z[e.type];return i?i(e,t,n):[]}function T(e,t){var n=k({type:e});return n||(t?i.element(t,{},{fresh:!1}):i.empty)}function k(e,t){var n=A(e);return n?n.to:t}function A(e){for(var t=0;t<x.length;t++)if(x[t].from.matches(e))return x[t]}function F(e){return E(e.noteType,e.noteId)}function S(e){return C(e.noteType,e.noteId)}function E(e,t){return B(e+"-"+t)}function C(e,t){return B(e+"-ref-"+t)}function B(e){return v+e}var W=i.elements([i.element("table",{},{fresh:!0})]);function I(e,t,n){var i=e.label,r=e.comment,o=D(r.body,t,n).concat([a.nonFreshElement("p",{},[a.text(" "),a.freshElement("a",{href:"#"+C("comment",r.commentId)},[a.text("↑")])])]);return[a.freshElement("dt",{id:E("comment",r.commentId)},[a.text("Comment "+i)]),a.freshElement("dd",{},o)]}var M,R,z={document:function(e,t,n){var i=D(e.children,t,n),r=D(g.map(function(t){return e.notes.resolve(t)}),t,n);return i.concat([a.freshElement("ol",{},r),a.freshElement("dl",{},d(b,function(e){return I(e,t,n)}))])},paragraph:function(e,t,n){return function(e,t){var n=A(e);return n?n.to:(e.styleId&&t.push(l("paragraph",e)),w)}(e,t).wrap(function(){var i=D(e.children,t,n);return y?i:[a.forceWrite].concat(i)})},run:function(e,t,r){var o=function(){return D(e.children,t,r)},a=[];if(null!==e.highlight){var s=k({type:"highlight",color:e.highlight});s&&a.push(s)}e.isSmallCaps&&a.push(T("smallCaps")),e.isAllCaps&&a.push(T("allCaps")),e.isStrikethrough&&a.push(T("strikethrough","s")),e.isUnderline&&a.push(T("underline")),e.verticalAlignment===n.verticalAlignment.subscript&&a.push(i.element("sub",{},{fresh:!1})),e.verticalAlignment===n.verticalAlignment.superscript&&a.push(i.element("sup",{},{fresh:!1})),e.isItalic&&a.push(T("italic","em")),e.isBold&&a.push(T("bold","strong"));var c=i.empty,u=A(e);return u?c=u.to:e.styleId&&t.push(l("run",e)),a.push(c),a.forEach(function(e){o=e.wrap.bind(e,o)}),o()},text:function(e,t,n){return[a.text(e.value)]},tab:function(e,t,n){return[a.text("\t")]},hyperlink:function(e,t,n){var i={href:e.anchor?"#"+B(e.anchor):e.href};null!=e.targetFrame&&(i.target=e.targetFrame);var r=D(e.children,t,n);return[a.nonFreshElement("a",i,r)]},checkbox:function(e){var t={type:"checkbox"};return e.checked&&(t.checked="checked"),[a.freshElement("input",t)]},bookmarkStart:function(e,t,n){return[a.freshElement("a",{id:B(e.name)},[a.forceWrite])]},noteReference:function(e,t,n){g.push(e);var i=a.freshElement("a",{href:"#"+F(e),id:S(e)},[a.text("["+p+++"]")]);return[a.freshElement("sup",{},[i])]},note:function(e,t,n){var r=D(e.body,t,n),o=a.elementWithTag(i.element("p",{},{fresh:!1}),[a.text(" "),a.freshElement("a",{href:"#"+S(e)},[a.text("↑")])]),s=r.concat([o]);return a.freshElement("li",{id:F(e)},s)},commentReference:function(e,t,n){return k(e,i.ignore).wrap(function(){var t=m[e.commentId],n=b.length+1,i="["+f(t)+n+"]";return b.push({label:i,comment:t}),[a.freshElement("a",{href:"#"+E("comment",e.commentId),id:C("comment",e.commentId)},[a.text(i)])]})},comment:I,image:(R=c.convertImage||o.dataUri,M=function(e,n){return t.attempt(function(){return R(e,n)}).caught(function(e){return n.push(r.error(e)),[]})},function(e,t,n){return[{type:"deferred",id:u++,value:function(){return M(e,t,n)}}]}),table:function(t,i,r){return k(t,W).wrap(function(){return function(t,i,r){var o,s=e.findIndex(t.children,function(e){return!e.type===n.types.tableRow||!e.isHeader});-1===s&&(s=t.children.length);if(0===s)o=D(t.children,i,e.extend({},r,{isTableHeader:!1}));else{var c=D(t.children.slice(0,s),i,e.extend({},r,{isTableHeader:!0})),u=D(t.children.slice(s),i,e.extend({},r,{isTableHeader:!1}));o=[a.freshElement("thead",{},c),a.freshElement("tbody",{},u)]}return[a.forceWrite].concat(o)}(t,i,r)})},tableRow:function(e,t,n){var i=D(e.children,t,n);return[a.freshElement("tr",{},[a.forceWrite].concat(i))]},tableCell:function(e,t,n){var i=n.isTableHeader?"th":"td",r=D(e.children,t,n),o={};return 1!==e.colSpan&&(o.colspan=e.colSpan.toString()),1!==e.rowSpan&&(o.rowspan=e.rowSpan.toString()),[a.freshElement(i,o,[a.forceWrite].concat(r))]},break:function(e,t,n){return function(e){var t=A(e);return t?t.to:"line"===e.breakType?i.topLevelElement("br"):i.empty}(e).wrap(function(){return[]})}};return{convertToHtml:function(n){var i=[],o=U(n,i,{}),u=[];h(o,function(e){"deferred"===e.type&&u.push(e)});var l={};return t.mapSeries(u,function(e){return e.value().then(function(t){l[e.id]=t})}).then(function(){var t=s.writer({prettyPrint:c.prettyPrint,outputFormat:c.outputFormat});return a.write(t,a.simplify(function t(n){return d(n,function(n){return"deferred"===n.type?l[n.id]:n.children?[e.extend({},n,{children:t(n.children)})]:[n]})}(o))),new r.Result(t.asString(),i)})}}}Dl.DocumentConverter=function(t){return{convertToHtml:function(i){var r=e.indexBy(i.type===n.types.document?i.comments:[],"commentId");return new c(t,r).convertToHtml(i)}}};var u=1;function l(e,t){return r.warning("Unrecognised "+e+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function d(t,n){return e.flatten(t.map(n),!0)}function h(e,t){e.forEach(function(e){t(e),e.children&&h(e.children,t)})}var f=Dl.commentAuthorLabel=function(e){return e.authorInitials||""};return Dl}var jl,Hl={};var Vl,$l,Gl={},Kl={},Zl={},Xl={exports:{}};function Yl(){if($l)return Zl;$l=1;var e=function(){if(Vl)return Xl.exports;Vl=1;var e=Xl.exports=function(e,t){this.Ir=e,this.Mr=t||0};return e.prototype.head=function(){return this.Ir[this.Mr]},e.prototype.tail=function(t){return new e(this.Ir,this.Mr+1)},e.prototype.toArray=function(){return this.Ir.slice(this.Mr)},e.prototype.end=function(){return this.Ir[this.Ir.length-1]},e.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)},Xl.exports}();return Zl.Parser=function(t){return{parseTokens:function(t,n){return t(new e(n))}}},Zl}var Jl,Ql,ed,td={},nd={};function id(){if(ed)return Ql;ed=1,Ql={failure:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"failure",remaining:n,errors:t})},error:function(t,n){if(t.length<1)throw new Error("Failure must have errors");return new e({status:"error",remaining:n,errors:t})},success:function(t,n,i){return new e({status:"success",value:t,source:i,remaining:n,errors:[]})},cut:function(t){return new e({status:"cut",remaining:t,errors:[]})}};var e=function(e){this._t=e.value,this.Rr=e.status,this.zr=void 0!==e.value,this._r=e.remaining,this.Lr=e.source,this.Nr=e.errors};return e.prototype.map=function(t){return this.zr?new e({value:t(this._t,this.Lr),status:this.Rr,remaining:this._r,source:this.Lr,errors:this.Nr}):this},e.prototype.changeRemaining=function(t){return new e({value:this._t,status:this.Rr,remaining:t,source:this.Lr,errors:this.Nr})},e.prototype.isSuccess=function(){return"success"===this.Rr||"cut"===this.Rr},e.prototype.isFailure=function(){return"failure"===this.Rr},e.prototype.isError=function(){return"error"===this.Rr},e.prototype.isCut=function(){return"cut"===this.Rr},e.prototype.value=function(){return this._t},e.prototype.remaining=function(){return this._r},e.prototype.source=function(){return this.Lr},e.prototype.errors=function(){return this.Nr},Ql}var rd,od={};function ad(){if(rd)return od;rd=1,od.error=function(t){return new e(t)};var e=function(e){this.expected=e.expected,this.actual=e.actual,this.qr=e.location};return e.prototype.describe=function(){return(this.qr?this.qr.describe()+":\n":"")+"Expected "+this.expected+"\nbut got "+this.actual},e.prototype.lineNumber=function(){return this.qr.lineNumber()},e.prototype.characterNumber=function(){return this.qr.characterNumber()},od}var sd,cd,ud={};function ld(){return cd||(cd=1,function(e){var t=ko,n=(Jl||(Jl=1,function(e){function t(e){return"function"==typeof e?e():e}e.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return e.none},flatMap:function(){return e.none},filter:function(){return e.none},toArray:function(){return[]},orElse:t,valueOrElse:t}),e.some=function(e){return new n(e)};var n=function(e){this._t=e};n.prototype.value=function(){return this._t},n.prototype.isNone=function(){return!1},n.prototype.isSome=function(){return!0},n.prototype.map=function(e){return new n(e(this._t))},n.prototype.flatMap=function(e){return e(this._t)},n.prototype.filter=function(t){return t(this._t)?this:e.none},n.prototype.toArray=function(){return[this._t]},n.prototype.orElse=function(e){return this},n.prototype.valueOrElse=function(e){return this._t},e.isOption=function(t){return t===e.none||t instanceof n},e.fromNullable=function(t){return null==t?e.none:new n(t)}}(nd)),nd),i=id(),r=ad(),o=function(){if(sd)return ud;sd=1,ud.fromArray=function(t){var n=0,i=function(){return n<t.length};return new e({hasNext:i,next:function(){if(i())return t[n++];throw new Error("No more elements")}})};var e=function(e){this.jr=e};return e.prototype.map=function(t){var n=this.jr;return new e({hasNext:function(){return n.hasNext()},next:function(){return t(n.next())}})},e.prototype.filter=function(t){var n,i=this.jr,r=!1,o=!1,a=function(){if(!r)for(r=!0,o=!1;i.hasNext()&&!o;)n=i.next(),o=t(n)};return new e({hasNext:function(){return a(),o},next:function(){return a(),r=!1,n}})},e.prototype.first=function(){var e=this.jr;return this.jr.hasNext()?e.next():null},e.prototype.toArray=function(){for(var e=[];this.jr.hasNext();)e.push(this.jr.next());return e},ud}();e.token=function(e,t){var n=void 0!==t;return function(r){var o=r.head();return!o||o.name!==e||n&&o.value!==t?d(r,l({name:e,value:t})):i.success(o.value,r.tail(),o.source)}},e.tokenOfType=function(t){return e.token(t)},e.firstOf=function(e,n){return t.isArray(n)||(n=Array.prototype.slice.call(arguments,1)),function(t){return o.fromArray(n).map(function(e){return e(t)}).filter(function(e){return e.isSuccess()||e.isError()}).first()||d(t,e)}},e.then=function(e,t){return function(n){var i=e(n);return i.map,i.map(t)}},e.sequence=function(){var n=Array.prototype.slice.call(arguments,0),r=function(r){var o=t.foldl(n,function(e,t){var n=e.result,o=e.hasCut;if(!n.isSuccess())return{result:n,hasCut:o};var a=t(n.remaining());if(a.isCut())return{result:n,hasCut:!0};if(a.isSuccess()){var s;s=t.isCaptured?n.value().withValue(t,a.value()):n.value();var c=a.remaining(),u=r.to(c);return{result:i.success(s,c,u),hasCut:o}}return o?{result:i.error(a.errors(),a.remaining()),hasCut:o}:{result:a,hasCut:o}},{result:i.success(new a,r),hasCut:!1}).result,s=r.to(o.remaining());return o.map(function(t){return t.withValue(e.sequence.source,s)})};function o(e){return e.isCaptured}return r.head=function(){var i=t.find(n,o);return e.then(r,e.sequence.extract(i))},r.map=function(t){return e.then(r,function(e){return t.apply(this,e.toArray())})},r};var a=function(e,t){this.$t=e||{},this.Hr=t||[]};a.prototype.withValue=function(e,n){if(e.captureName&&e.captureName in this.$t)throw new Error('Cannot add second value for capture "'+e.captureName+'"');var i=t.clone(this.$t);i[e.captureName]=n;var r=this.Hr.concat([n]);return new a(i,r)},a.prototype.get=function(e){if(e.captureName in this.$t)return this.$t[e.captureName];throw new Error('No value for capture "'+e.captureName+'"')},a.prototype.toArray=function(){return this.Hr},e.sequence.capture=function(e,t){var n=function(){return e.apply(this,arguments)};return n.captureName=t,n.isCaptured=!0,n},e.sequence.extract=function(e){return function(t){return t.get(e)}},e.sequence.applyValues=function(e){var t=Array.prototype.slice.call(arguments,1);return function(n){var i=t.map(function(e){return n.get(e)});return e.apply(this,i)}},e.sequence.source={captureName:"☃source☃"},e.sequence.cut=function(){return function(e){return i.cut(e)}},e.optional=function(e){return function(t){var r=e(t);return r.isSuccess()?r.map(n.some):r.isFailure()?i.success(n.none,t):r}},e.zeroOrMoreWithSeparator=function(e,t){return u(e,t,!1)},e.oneOrMoreWithSeparator=function(e,t){return u(e,t,!0)};var s=e.zeroOrMore=function(e){return function(t){for(var n,r=[];(n=e(t))&&n.isSuccess();)t=n.remaining(),r.push(n.value());return n.isError()?n:i.success(r,t)}};function c(e){return i.success(null,e)}e.oneOrMore=function(t){return e.oneOrMoreWithSeparator(t,c)};var u=function(t,n,r){return function(o){var a=t(o);if(a.isSuccess()){var c=e.sequence.capture(t,"main"),u=s(e.then(e.sequence(n,c),e.sequence.extract(c)))(a.remaining());return i.success([a.value()].concat(u.value()),u.remaining())}return r||a.isError()?a:i.success([],o)}};e.leftAssociative=function(t,n,r){var o;o=(o=r?[{func:r,rule:n}]:n).map(function(t){return e.then(t.rule,function(e){return function(n,i){return t.func(n,e,i)}})});var a=e.firstOf.apply(null,["rules"].concat(o));return function(e){var n=e,r=t(e);if(!r.isSuccess())return r;for(var o=a(r.remaining());o.isSuccess();){var s=o.remaining(),c=n.to(o.remaining()),u=o.value();r=i.success(u(r.value(),c),s,c),o=a(r.remaining())}return o.isError()?o:r}},e.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},e.nonConsuming=function(e){return function(t){return e(t).changeRemaining(t)}};var l=function(e){return e.value?e.name+' "'+e.value+'"':e.name};function d(e,t){var n,o=e.head();return n=o?r.error({expected:t,actual:l(o),location:o.source}):r.error({expected:t,actual:"end of tokens"}),i.failure([n],e)}}(td)),td}var dd,hd,fd,md={exports:{}};function pd(){if(dd)return md.exports;dd=1,md.exports=function(t,n){return{asString:function(){return t},range:function(i,r){return new e(t,n,i,r)}}};var e=function(e,t,n,i){this.Vr=e,this.$r=t,this.Mr=n,this.Gr=i};return e.prototype.to=function(t){return new e(this.Vr,this.$r,this.Mr,t.Gr)},e.prototype.describe=function(){var e=this.Kr();return(this.$r?this.$r+"\n":"")+"Line number: "+e.lineNumber+"\nCharacter number: "+e.characterNumber},e.prototype.lineNumber=function(){return this.Kr().lineNumber},e.prototype.characterNumber=function(){return this.Kr().characterNumber},e.prototype.Kr=function(){for(var e=this,t=0,n=function(){return e.Vr.indexOf("\n",t)},i=1;-1!==n()&&n()<this.Mr;)t=n()+1,i+=1;return{lineNumber:i,characterNumber:this.Mr-t+1}},md.exports}function gd(){return fd?hd:(fd=1,hd=function(e,t,n){this.name=e,this.value=t,n&&(this.source=n)})}var bd,vd={};function yd(){return bd||(bd=1,function(e){var t=ld(),n=id();function i(e){function r(){return e.map(function(e){return e.name})}function o(n){return t.firstOf("infix",e.map(function(e){return e.rule}))(n)}return{apply:function(e){for(var t,i;;){if(!(t=o(e.remaining())).isSuccess())return t.isFailure()?e:t;i=e.source().to(t.source()),e=n.success(t.value()(e.value(),i),t.remaining(),i)}},untilExclusive:function(t){return new i(e.slice(0,r().indexOf(t)))},untilInclusive:function(t){return new i(e.slice(0,r().indexOf(t)+1))}}}e.parser=function(e,n,o){var a={rule:function(){return u(s)},leftAssociative:function(e){return u(s.untilExclusive(e))},rightAssociative:function(e){return u(s.untilInclusive(e))}},s=new i(o.map(function(e){return{name:e.name,rule:r(e.ruleBuilder.bind(null,a))}})),c=t.firstOf(e,n);function u(e){return l.bind(null,e)}function l(e,t){var n=c(t);return n.isSuccess()?e.apply(n):n}return a},e.infix=function(t,n){return{name:t,ruleBuilder:n,map:function(i){return e.infix(t,function(e){var t=n(e);return function(e){return t(e).map(function(e){return function(t,n){return i(t,e,n)}})}})}}};var r=function(e){var t;return function(n){return t||(t=e()),t(n)}}}(vd)),vd}var wd,xd,Dd={};function Ud(){return xd||(xd=1,Kl.Parser=Yl().Parser,Kl.rules=ld(),Kl.errors=ad(),Kl.results=id(),Kl.StringSource=pd(),Kl.Token=gd(),Kl.bottomUp=yd(),Kl.RegexTokeniser=function(){if(wd)return Dd;wd=1;var e=gd(),t=pd();return Dd.RegexTokeniser=function(n){function i(t,i,r){for(var o=0;o<n.length;o++){var a=n[o].regex;a.lastIndex=i;var s=a.exec(t);if(s){var c=i+s[0].length;if(s.index===i&&c>i){var u=s[1];return{token:new e(n[o].name,u,r.range(i,c)),endIndex:c}}}}return c=i+1,{token:new e("unrecognisedCharacter",t.substring(i,c),r.range(i,c)),endIndex:c}}function r(t,n){return new e("end",null,n.range(t.length,t.length))}return n=n.map(function(e){return{name:e.name,regex:new RegExp(e.regex.source,"g")}}),{tokenise:function(e,n){for(var o=new t(e,n),a=0,s=[];a<e.length;){var c=i(e,a,o);a=c.endIndex,s.push(c.token)}return s.push(r(e,o)),s}}},Dd}().RegexTokeniser,Kl.rule=function(e){var t;return function(n){return t||(t=e()),t(n)}}),Kl}var Td,kd={};var Ad,Fd,Sd={};function Ed(){if(Fd)return Gl;Fd=1;var e=ko,t=Ud(),n=function(){if(Td)return kd;function e(e,t){t=t||{},this.Zr=e,this.Xr=t.styleId,this.Yr=t.styleName,t.list&&(this.Jr=t.list.levelIndex,this.Qr=t.list.isOrdered)}function t(e){e=e||{},this.eo=e.color}function n(e){e=e||{},this.no=e.breakType}function i(e,t){return e.toUpperCase()===t.toUpperCase()}function r(e,t){return 0===t.toUpperCase().indexOf(e.toUpperCase())}return Td=1,kd.paragraph=function(t){return new e("paragraph",t)},kd.run=function(t){return new e("run",t)},kd.table=function(t){return new e("table",t)},kd.bold=new e("bold"),kd.italic=new e("italic"),kd.underline=new e("underline"),kd.strikethrough=new e("strikethrough"),kd.allCaps=new e("allCaps"),kd.smallCaps=new e("smallCaps"),kd.highlight=function(e){return new t(e)},kd.commentReference=new e("commentReference"),kd.lineBreak=new n({breakType:"line"}),kd.pageBreak=new n({breakType:"page"}),kd.columnBreak=new n({breakType:"column"}),kd.equalTo=function(e){return{operator:i,operand:e}},kd.startsWith=function(e){return{operator:r,operand:e}},e.prototype.matches=function(e){return e.type===this.Zr&&(void 0===this.Xr||e.styleId===this.Xr)&&(void 0===this.Yr||e.styleName&&this.Yr.operator(this.Yr.operand,e.styleName))&&(void 0===this.Jr||function(e,t,n){return e.numbering&&e.numbering.level==t&&e.numbering.isOrdered==n}(e,this.Jr,this.Qr))&&(void 0===this.no||this.no===e.breakType)},t.prototype.matches=function(e){return"highlight"===e.type&&(void 0===this.eo||e.color===this.eo)},n.prototype.matches=function(e){return"break"===e.type&&(void 0===this.no||e.breakType===this.no)},kd}(),i=El(),r=function(){if(Ad)return Sd;Ad=1;var e=Ud().RegexTokeniser;Sd.tokenise=function(n){var i="(?:[a-zA-Z\\-_]|\\\\.)";return new e([{name:"identifier",regex:new RegExp("("+i+"(?:"+i+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(t+"'")},{name:"unterminated-string",regex:new RegExp(t)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]).tokenise(n)};var t="'((?:\\\\.|[^'])*)";return Sd}().tokenise,o=hs();function a(){var i=t.rules.sequence,r=function(e,n){return t.rules.then(t.rules.token("identifier",e),function(){return n})},o=r("p",n.paragraph),a=r("r",n.run),s=t.rules.firstOf("p or r or table",o,a),d=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(c)).map(function(e){return{styleId:e}}),h=t.rules.firstOf("style name matcher",t.rules.then(t.rules.sequence(t.rules.tokenOfType("equals"),t.rules.sequence.cut(),t.rules.sequence.capture(l)).head(),function(e){return{styleName:n.equalTo(e)}}),t.rules.then(t.rules.sequence(t.rules.tokenOfType("startsWith"),t.rules.sequence.cut(),t.rules.sequence.capture(l)).head(),function(e){return{styleName:n.startsWith(e)}})),f=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","style-name"),t.rules.sequence.capture(h),t.rules.tokenOfType("close-square-bracket")).head(),m=t.rules.firstOf("list type",r("ordered-list",{isOrdered:!0}),r("unordered-list",{isOrdered:!1})),p=i(t.rules.tokenOfType("colon"),i.capture(m),i.cut(),t.rules.tokenOfType("open-paren"),i.capture(u),t.rules.tokenOfType("close-paren")).map(function(e,t){return{list:{isOrdered:e.isOrdered,levelIndex:t-1}}});function g(n){var i=t.rules.firstOf.apply(t.rules.firstOf,["matcher suffix"].concat(n)),r=t.rules.zeroOrMore(i);return t.rules.then(r,function(t){var n={};return t.forEach(function(t){e.extend(n,t)}),n})}var b=i(i.capture(s),i.capture(g([d,f,p]))).map(function(e,t){return e(t)}),v=i(t.rules.token("identifier","table"),i.capture(g([d,f]))).map(function(e){return n.table(e)}),y=r("b",n.bold),w=r("i",n.italic),x=r("u",n.underline),D=r("strike",n.strikethrough),U=r("all-caps",n.allCaps),T=r("small-caps",n.smallCaps),k=i(t.rules.token("identifier","highlight"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.token("identifier","color"),t.rules.tokenOfType("equals"),t.rules.sequence.capture(l),t.rules.tokenOfType("close-square-bracket")).head()))).map(function(e){return n.highlight({color:e.valueOrElse(void 0)})}),A=r("comment-reference",n.commentReference),F=i(t.rules.token("identifier","br"),i.cut(),t.rules.tokenOfType("open-square-bracket"),t.rules.token("identifier","type"),t.rules.tokenOfType("equals"),i.capture(l),t.rules.tokenOfType("close-square-bracket")).map(function(e){switch(e){case"line":return n.lineBreak;case"page":return n.pageBreak;case"column":return n.columnBreak}});return t.rules.firstOf("element type",b,v,y,w,x,D,U,T,k,A,F)}function s(){var e=t.rules.sequence.capture,n=t.rules.tokenOfType("whitespace"),r=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","fresh"))),function(e){return e.map(function(){return!0}).valueOrElse(!1)}),o=t.rules.then(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("colon"),t.rules.token("identifier","separator"),t.rules.tokenOfType("open-paren"),e(l),t.rules.tokenOfType("close-paren")).head()),function(e){return e.valueOrElse("")}),a=t.rules.oneOrMoreWithSeparator(c,t.rules.tokenOfType("choice")),s=t.rules.sequence(e(a),e(t.rules.zeroOrMore(p)),e(r),e(o)).map(function(e,t,n,r){var o={},a={};return t.forEach(function(e){e.append&&o[e.name]?o[e.name]+=" "+e.value:o[e.name]=e.value}),n&&(a.fresh=!0),r&&(a.separator=r),i.element(e,o,a)});return t.rules.firstOf("html path",t.rules.then(t.rules.tokenOfType("bang"),function(){return i.ignore}),t.rules.then(t.rules.zeroOrMoreWithSeparator(s,t.rules.sequence(n,t.rules.tokenOfType("gt"),n)),i.elements))}Gl.readHtmlPath=function(e){return g(s(),e)},Gl.readDocumentMatcher=function(e){return g(a(),e)},Gl.readStyle=function(e){return g(y,e)};var c=t.rules.then(t.rules.tokenOfType("identifier"),h),u=t.rules.tokenOfType("integer"),l=t.rules.then(t.rules.tokenOfType("string"),h),d={n:"\n",r:"\r",t:"\t"};function h(e){return e.replace(/\\(.)/g,function(e,t){return d[t]||t})}var f=t.rules.sequence(t.rules.tokenOfType("open-square-bracket"),t.rules.sequence.cut(),t.rules.sequence.capture(c),t.rules.tokenOfType("equals"),t.rules.sequence.capture(l),t.rules.tokenOfType("close-square-bracket")).map(function(e,t){return{name:e,value:t,append:!1}}),m=t.rules.sequence(t.rules.tokenOfType("dot"),t.rules.sequence.cut(),t.rules.sequence.capture(c)).map(function(e){return{name:"class",value:e,append:!0}}),p=t.rules.firstOf("attribute or class",f,m);function g(e,n){var i=r(n),a=t.Parser().parseTokens(e,i);return a.isSuccess()?o.success(a.value()):new o.Result(null,[o.warning(b(n,a))])}function b(e,t){return"Did not understand this style mapping, so ignored it: "+e+"\n"+t.errors().map(v).join("\n")}function v(e){return"Error was at character number "+e.characterNumber()+": Expected "+e.expected+" but got "+e.actual}var y=t.rules.sequence(t.rules.sequence.capture(a()),t.rules.tokenOfType("whitespace"),t.rules.tokenOfType("arrow"),t.rules.sequence.capture(t.rules.optional(t.rules.sequence(t.rules.tokenOfType("whitespace"),t.rules.sequence.capture(s())).head())),t.rules.tokenOfType("end")).map(function(e,t){return{from:e,to:t.valueOrElse(i.empty)}});return Gl}var Cd,Bd={};var Wd,Id={};var Md,Rd,zd={};const _d=Ot(function(){if(Rd)return Lt;Rd=1;var e=ko,t=fl(),n=gl(),i=ql().DocumentConverter,r=function(){if(jl)return Hl;jl=1;var e=us();return Hl.convertElementToRawText=function t(n){if("text"===n.type)return n.value;if(n.type===e.types.tab)return"\t";var i="paragraph"===n.type?"\n\n":"";return(n.children||[]).map(t).join("")+i},Hl}().convertElementToRawText,o=Ed().readStyle,a=function(){if(Cd)return Bd;Cd=1,Bd.readOptions=function(r){return r=r||{},e.extend({},n,r,{customStyleMap:i(r.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(i(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(t)),e}})};var e=ko,t=Bd.io=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],n=Bd.ro={externalFileAccess:!1,transformDocument:function(e){return e},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function i(t){return t?e.isString(t)?t.split("\n").map(function(e){return e.trim()}).filter(function(e){return""!==e&&"#"!==e.charAt(0)}):t:[]}return Bd}().readOptions,s=function(){if(Wd)return Id;Wd=1;var e=as(),t=xs();return Id.openZip=function(n){return n.arrayBuffer?e.resolve(t.openArrayBuffer(n.arrayBuffer)):e.reject(new Error("Could not find file in options"))},Id}(),c=hs().Result;function u(r,u){return u=a(u),s.openZip(r).tap(function(e){return n.readStyleMap(e).then(function(e){u.embeddedStyleMap=e})}).then(function(n){return t.read(n,r,u).then(function(e){return e.map(u.transformDocument)}).then(function(t){return function(t,n){var r=(u=n.readStyleMap(),c.combine((u||[]).map(o)).map(function(e){return e.filter(function(e){return!!e})})),a=e.extend({},n,{styleMap:r.value}),s=new i(a);var u;return t.flatMapThen(function(e){return r.flatMapThen(function(t){return s.convertToHtml(e)})})}(t,u)})})}return Lt.convertToHtml=function(e,t){return u(e,t)},Lt.convertToMarkdown=function(e,t){var n=Object.create(t||{});return n.outputFormat="markdown",u(e,n)},Lt.convert=u,Lt.extractRawText=function(e){return s.openZip(e).then(t.read).then(function(e){return e.map(r)})},Lt.images=Wl(),Lt.transforms=ju(),Lt.underline=function(){if(Md)return zd;Md=1;var e=El(),t=Sl();return zd.element=function(n){return function(i){return t.elementWithTag(e.element(n),[i])}},zd}(),Lt.embedStyleMap=function(e,t){return s.openZip(e).tap(function(e){return n.writeStyleMap(e,t)}).then(function(e){return e.toArrayBuffer()}).then(function(e){return{toArrayBuffer:function(){return e},toBuffer:function(){return Buffer.from(e)}}})},Lt.readEmbeddedStyleMap=function(e){return s.openZip(e).then(n.readStyleMap)},Lt.styleMapping=function(){throw new Error("Use a raw string instead of mammoth.styleMapping e.g. \"p[style-name='Title'] => h1\" instead of mammoth.styleMapping(\"p[style-name='Title'] => h1\")")},Lt}());async function Od(e,t){const n=await async function(e){const t=await e.arrayBuffer(),n=await _d.convertToHtml({arrayBuffer:t},{styleMap:["p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh"]});return{html:n.value,messages:n.messages.map(e=>e.message)}}(t);return n.html&&e.chain().focus().setContent(n.html).run(),n}var Pd=Object.defineProperty,Ld=Object.defineProperties,Nd=Object.getOwnPropertyDescriptors,qd=Object.getOwnPropertySymbols,jd=Object.prototype.hasOwnProperty,Hd=Object.prototype.propertyIsEnumerable,Vd=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$d=(e,t)=>{for(var n in t||(t={}))jd.call(t,n)&&Vd(e,n,t[n]);if(qd)for(var n of qd(t))Hd.call(t,n)&&Vd(e,n,t[n]);return e},Gd=(e,t)=>Ld(e,Nd(t)),Kd=(e,t,n)=>Vd(e,"symbol"!=typeof t?t+"":t,n);class Zd{constructor(e){Kd(this,"rootKey"),this.rootKey=e}}const Xd=Object.seal({});class Yd extends Zd{constructor(e){super(e),Kd(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const n=this.root.map(t=>t instanceof Zd?t.prepForXml(e):t).filter(e=>void 0!==e);return e.stack.pop(),{[this.rootKey]:n.length?1===n.length&&(null==(t=n[0])?void 0:t.oo)?n[0]:n:Xd}}addChildElement(e){return this.root.push(e),this}}class Jd extends Yd{prepForXml(e){const t=super.prepForXml(e);if(t&&("object"!=typeof t[this.rootKey]||Object.keys(t[this.rootKey]).length))return t}}class Qd extends Zd{constructor(e){super("_attr"),Kd(this,"xmlKeys"),this.root=e}prepForXml(e){const t={};return Object.entries(this.root).forEach(([e,n])=>{if(void 0!==n){const i=this.xmlKeys&&this.xmlKeys[e]||e;t[i]=n}}),{oo:t}}}class eh extends Zd{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{oo:Object.values(this.root).filter(({value:e})=>void 0!==e).reduce((e,{key:t,value:n})=>Gd($d({},e),{[t]:n}),{})}}}class th extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var nh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ih(e){return e&&e.M&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rh,oh={},ah={exports:{}};function sh(){if(rh)return ah.exports;rh=1;var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function r(){r.init.call(this)}ah.exports=r,ah.exports.once=function(e,t){return new Promise(function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})})},r.EventEmitter=r,r.prototype.ao=void 0,r.prototype.so=0,r.prototype.co=void 0;var o=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e.co?r.defaultMaxListeners:e.co}function c(e,t,n,i){var r,o,c;if(a(n),void 0===(o=e.ao)?(o=e.ao=Object.create(null),e.so=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e.ao),c=o[t]),void 0===c)c=o[t]=n,++e.so;else if("function"==typeof c?c=o[t]=i?[n,c]:[c,n]:i?c.unshift(n):c.push(n),(r=s(e))>0&&c.length>r&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,console&&console.warn}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(i);return r.listener=n,i.wrapFn=r,r}function d(e,t,n){var i=e.ao;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):f(r,r.length)}function h(e){var t=this.ao;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function m(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(o){i.once&&e.removeEventListener(t,r),n(o)})}}return Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),r.init=function(){void 0!==this.ao&&this.ao!==Object.getPrototypeOf(this).ao||(this.ao=Object.create(null),this.so=0),this.co=this.co||void 0},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this.co=e,this},r.prototype.getMaxListeners=function(){return s(this)},r.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,o=this.ao;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=f(c,u);for(i=0;i<u;++i)n(l[i],this,t)}return!0},r.prototype.addListener=function(e,t){return c(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return c(this,e,t,!0)},r.prototype.once=function(e,t){return a(t),this.on(e,l(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,l(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,i,r,o,s;if(a(t),void 0===(i=this.ao))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0===--this.so?this.ao=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this.ao))return this;if(void 0===n.removeListener)return 0===arguments.length?(this.ao=Object.create(null),this.so=0):void 0!==n[e]&&(0===--this.so?this.ao=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this.ao=Object.create(null),this.so=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},r.prototype.listeners=function(e){return d(this,e,!0)},r.prototype.rawListeners=function(e){return d(this,e,!1)},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},r.prototype.listenerCount=h,r.prototype.eventNames=function(){return this.so>0?e(this.ao):[]},ah.exports}var ch,uh={exports:{}};function lh(){return ch||(ch=1,"function"==typeof Object.create?uh.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uh.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),uh.exports}function dh(e){return e&&e.M&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hh,fh,mh={exports:{}},ph=mh.exports={};function gh(){throw new Error("setTimeout has not been defined")}function bh(){throw new Error("clearTimeout has not been defined")}function vh(e){if(hh===setTimeout)return setTimeout(e,0);if((hh===gh||!hh)&&setTimeout)return hh=setTimeout,setTimeout(e,0);try{return hh(e,0)}catch(t){try{return hh.call(null,e,0)}catch(n){return hh.call(this,e,0)}}}!function(){try{hh="function"==typeof setTimeout?setTimeout:gh}catch(e){hh=gh}try{fh="function"==typeof clearTimeout?clearTimeout:bh}catch(e){fh=bh}}();var yh,wh=[],xh=!1,Dh=-1;function Uh(){xh&&yh&&(xh=!1,yh.length?wh=yh.concat(wh):Dh=-1,wh.length&&Th())}function Th(){if(!xh){var e=vh(Uh);xh=!0;for(var t=wh.length;t;){for(yh=wh,wh=[];++Dh<t;)yh&&yh[Dh].run();Dh=-1,t=wh.length}yh=null,xh=!1,function(e){if(fh===clearTimeout)return clearTimeout(e);if((fh===bh||!fh)&&clearTimeout)return fh=clearTimeout,clearTimeout(e);try{return fh(e)}catch(t){try{return fh.call(null,e)}catch(n){return fh.call(this,e)}}}(e)}}function kh(e,t){this.fun=e,this.array=t}function Ah(){}ph.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];wh.push(new kh(e,t)),1!==wh.length||xh||vh(Th)},kh.prototype.run=function(){this.fun.apply(null,this.array)},ph.title="browser",ph.browser=!0,ph.env={},ph.argv=[],ph.version="",ph.versions={},ph.on=Ah,ph.addListener=Ah,ph.once=Ah,ph.off=Ah,ph.removeListener=Ah,ph.removeAllListeners=Ah,ph.emit=Ah,ph.prependListener=Ah,ph.prependOnceListener=Ah,ph.listeners=function(e){return[]},ph.binding=function(e){throw new Error("process.binding is not supported")},ph.cwd=function(){return"/"},ph.chdir=function(e){throw new Error("process.chdir is not supported")},ph.umask=function(){return 0};const Fh=dh(mh.exports);var Sh,Eh;function Ch(){return Eh?Sh:(Eh=1,Sh=sh().EventEmitter)}var Bh,Wh={},Ih={};var Mh,Rh,zh={};
|
|
13
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function _h(){return Rh||(Rh=1,function(e){var t=function(){if(Bh)return Ih;Bh=1,Ih.byteLength=function(e){var t=o(e),n=t[0],i=t[1];return 3*(n+i)/4-i},Ih.toByteArray=function(e){var i,r,a=o(e),s=a[0],c=a[1],u=new n(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),l=0,d=c>0?s-4:s;for(r=0;r<d;r+=4)i=t[e.charCodeAt(r)]<<18|t[e.charCodeAt(r+1)]<<12|t[e.charCodeAt(r+2)]<<6|t[e.charCodeAt(r+3)],u[l++]=i>>16&255,u[l++]=i>>8&255,u[l++]=255&i;return 2===c&&(i=t[e.charCodeAt(r)]<<2|t[e.charCodeAt(r+1)]>>4,u[l++]=255&i),1===c&&(i=t[e.charCodeAt(r)]<<10|t[e.charCodeAt(r+1)]<<4|t[e.charCodeAt(r+2)]>>2,u[l++]=i>>8&255,u[l++]=255&i),u},Ih.fromByteArray=function(t){for(var n,i=t.length,r=i%3,o=[],a=16383,c=0,u=i-r;c<u;c+=a)o.push(s(t,c,c+a>u?u:c+a));return 1===r?(n=t[i-1],o.push(e[n>>2]+e[n<<4&63]+"==")):2===r&&(n=(t[i-2]<<8)+t[i-1],o.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),o.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)e[r]=i[r],t[i.charCodeAt(r)]=r;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function a(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function s(e,t,n){for(var i,r=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(a(i));return r.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,Ih}(),n=(Mh||(Mh=1,zh.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=u}return(f?-1:1)*a*Math.pow(2,o-i)},zh.write=function(e,t,n,i,r,o){var a,s,c,u=8*o-r-1,l=(1<<u)-1,d=l>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,m=i?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=m,s/=256,r-=8);for(a=a<<r|s,u+=r;u>0;e[n+f]=255&a,f+=m,a/=256,u-=8);e[n+f-m]|=128*p}),zh),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},e.INSPECT_MAX_BYTES=50;var r=2147483647;function o(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|f(e,t),i=o(n),r=i.write(e,t);r!==n&&(i=i.slice(0,r));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(P(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return a.from(i,t,n);var r=function(e){if(a.isBuffer(e)){var t=0|h(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||L(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),n=o(t),i=0;i<t;i+=1)n[i]=255&e[i];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(i,a.prototype),i}function h(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _(e).length;default:if(r)return i?-1:z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return U(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function p(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function g(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),L(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){var o,a=1,s=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,h=0;h<c;h++)if(u(e,o+h)!==u(t,h)){d=!1;break}if(d)return o}return-1}function v(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(L(s))return a;e[n+a]=s}return a}function y(e,t,n,i){return O(z(t,e.length-n),e,n,i)}function w(e,t,n,i){return O(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function x(e,t,n,i){return O(_(t),e,n,i)}function D(e,t,n,i){return O(function(e,t){for(var n,i,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(n=e.charCodeAt(a))>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function U(e,n,i){return 0===n&&i===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,i))}function T(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,c,u=e[r],l=null,d=u>239?4:u>223?3:u>191?2:1;if(r+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[r+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=d}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=k));return n}(i)}e.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e.uo&&e!==a.prototype},a.compare=function(e,t){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=a.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(P(o,Uint8Array))r+o.length>i.length?a.from(o).copy(i,r):Uint8Array.prototype.set.call(i,o,r);else{if(!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r)}r+=o.length}return i},a.byteLength=f,a.prototype.uo=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,n,i,r){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),c=Math.min(o,s),u=this.slice(i,r),l=e.slice(t,n),d=0;d<c;++d)if(u[d]!==l[d]){o=u[d],s=l[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},a.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.lo||this,0)}};var k=4096;function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function F(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function S(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=N[e[o]];return r}function E(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length-1;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,i,r,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function W(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(e,t,i,r,o){return t=+t,i>>>=0,o||W(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function M(e,t,i,r,o){return t=+t,i>>>=0,o||W(e,0,i,8),n.write(e,t,i,r,52,8),i+8}a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,a.prototype),i},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t>>>=0,n>>>=0,i)||B(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t>>>=0,n>>>=0,i)||B(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);B(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);B(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return I(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return I(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,i){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r=i-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),r},a.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!a.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var r=e.charCodeAt(0);("utf8"===i&&r<128||"latin1"===i)&&(e=r)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,i),c=s.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=s[o%c]}return this};var R=/[^+/0-9A-Za-z-_]/g;function z(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function _(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function L(e){return e!=e}var N=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)t[i+r]=e[n]+e[r];return t}()}(Wh)),Wh}var Oh,Ph,Lh,Nh,qh,jh,Hh,Vh,$h,Gh,Kh,Zh,Xh,Yh,Jh,Qh,ef,tf,nf,rf,of,af,sf,cf,uf,lf,df,hf,ff,mf,pf,gf,bf,vf,yf,wf,xf,Df,Uf,Tf,kf,Af,Ff,Sf,Ef,Cf,Bf,Wf,If,Mf,Rf,zf,_f,Of,Pf,Lf,Nf,qf,jf,Hf,Vf,$f,Gf,Kf,Zf,Xf,Yf,Jf,Qf,em,tm={},nm={};function im(){return Ph?Oh:(Ph=1,Oh=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function rm(){if(Nh)return Lh;Nh=1;var e=im();return Lh=function(){return e()&&!!Symbol.toStringTag}}function om(){return jh?qh:(jh=1,qh=Object)}function am(){return Vh?Hh:(Vh=1,Hh=Error)}function sm(){return Gh?$h:(Gh=1,$h=EvalError)}function cm(){return Zh?Kh:(Zh=1,Kh=RangeError)}function um(){return Yh?Xh:(Yh=1,Xh=ReferenceError)}function lm(){return Qh?Jh:(Qh=1,Jh=SyntaxError)}function dm(){return tf?ef:(tf=1,ef=TypeError)}function hm(){return rf?nf:(rf=1,nf=URIError)}function fm(){return af?of:(af=1,of=Math.abs)}function mm(){return cf?sf:(cf=1,sf=Math.floor)}function pm(){return lf?uf:(lf=1,uf=Math.max)}function gm(){return hf?df:(hf=1,df=Math.min)}function bm(){return mf?ff:(mf=1,ff=Math.pow)}function vm(){return gf?pf:(gf=1,pf=Math.round)}function ym(){return vf?bf:(vf=1,bf=Number.isNaN||function(e){return e!=e})}function wm(){if(wf)return yf;wf=1;var e=ym();return yf=function(t){return e(t)||0===t?t:t<0?-1:1}}function xm(){return Df?xf:(Df=1,xf=Object.getOwnPropertyDescriptor)}function Dm(){if(Tf)return Uf;Tf=1;var e=xm();if(e)try{e([],"length")}catch(t){e=null}return Uf=e}function Um(){if(Af)return kf;Af=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return kf=e}function Tm(){return Cf?Ef:(Cf=1,Ef="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function km(){return Wf?Bf:(Wf=1,Bf=om().getPrototypeOf||null)}function Am(){if(zf)return Rf;zf=1;var e=function(){if(Mf)return If;Mf=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};return If=function(i){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,a=function(e){for(var t=[],n=1,i=0;n<e.length;n+=1,i+=1)t[i]=e[n];return t}(arguments),s=t(0,r.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=r.apply(this,n(a,arguments));return Object(e)===e?e:this}return r.apply(i,n(a,arguments))}),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o},If}();return Rf=Function.prototype.bind||e}function Fm(){return Of?_f:(Of=1,_f=Function.prototype.call)}function Sm(){return Lf?Pf:(Lf=1,Pf=Function.prototype.apply)}function Em(){if(Hf)return jf;Hf=1;var e=Am(),t=Sm(),n=Fm(),i=qf?Nf:(qf=1,Nf="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return jf=i||e.call(n,t)}function Cm(){if(Kf)return Gf;Kf=1;var e,t=function(){if($f)return Vf;$f=1;var e=Am(),t=dm(),n=Fm(),i=Em();return Vf=function(r){if(r.length<1||"function"!=typeof r[0])throw new t("a function is required");return i(e,n,r)}}(),n=Dm();try{e=[].__proto__===Array.prototype}catch(a){if(!a||"object"!=typeof a||!("code"in a)||"ERR_PROTO_ACCESS"!==a.code)throw a}var i=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,o=r.getPrototypeOf;return Gf=i&&"function"==typeof i.get?t([i.get]):"function"==typeof o&&function(e){return o(null==e?e:r(e))}}function Bm(){if(Jf)return Yf;Jf=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Am();return Yf=n.call(e,t)}function Wm(){if(em)return Qf;var e;em=1;var t=om(),n=am(),i=sm(),r=cm(),o=um(),a=lm(),s=dm(),c=hm(),u=fm(),l=mm(),d=pm(),h=gm(),f=bm(),m=vm(),p=wm(),g=Function,b=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(t){}},v=Dm(),y=Um(),w=function(){throw new s},x=v?function(){try{return w}catch(e){try{return v(arguments,"callee").get}catch(t){return w}}}():w,D=function(){if(Sf)return Ff;Sf=1;var e="undefined"!=typeof Symbol&&Symbol,t=im();return Ff=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}()(),U=function(){if(Xf)return Zf;Xf=1;var e=Tm(),t=km(),n=Cm();return Zf=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),T=km(),k=Tm(),A=Sm(),F=Fm(),S={},E="undefined"!=typeof Uint8Array&&U?U(Uint8Array):e,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":D&&U?U([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&U?U(U([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&D&&U?U((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":r,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&D&&U?U((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&U?U(""[Symbol.iterator]()):e,"%Symbol%":D?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":x,"%TypedArray%":E,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":F,"%Function.prototype.apply%":A,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":T,"%Math.abs%":u,"%Math.floor%":l,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":p,"%Reflect.getPrototypeOf%":k};if(U)try{null.error}catch(H){var B=U(U(H));C["%Error.prototype%"]=B}var W=function e(t){var n;if("%AsyncFunction%"===t)n=b("async function () {}");else if("%GeneratorFunction%"===t)n=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=b("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&U&&(n=U(r.prototype))}return C[t]=n,n},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=Am(),R=Bm(),z=M.call(F,Array.prototype.concat),_=M.call(A,Array.prototype.splice),O=M.call(F,String.prototype.replace),P=M.call(F,String.prototype.slice),L=M.call(F,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,j=function(e,t){var n,i=e;if(R(I,i)&&(i="%"+(n=I[i])[0]+"%"),R(C,i)){var r=C[i];if(r===S&&(r=W(i)),void 0===r&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new a("intrinsic "+e+" does not exist!")};return Qf=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var i=[];return O(e,N,function(e,t,n,r){i[i.length]=n?O(r,q,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",r=j("%"+i+"%",t),o=r.name,c=r.value,u=!1,l=r.alias;l&&(i=l[0],_(n,z([0,1],l)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],m=P(f,0,1),p=P(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===p||"'"===p||"`"===p)&&m!==p)throw new a("property names with quotes must have matching quotes");if("constructor"!==f&&h||(u=!0),R(C,o="%"+(i+="."+f)+"%"))c=C[o];else if(null!=c){if(!(f in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&d+1>=n.length){var g=v(c,f);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[f]}else h=R(c,f),c=c[f];h&&!u&&(C[o]=c)}}return c},Qf}var Im,Mm,Rm,zm,_m,Om,Pm,Lm,Nm,qm,jm,Hm,Vm,$m,Gm,Km,Zm,Xm,Ym,Jm,Qm,ep,tp,np,ip,rp,op,ap,sp,cp,up,lp,dp,hp={exports:{}};function fp(){if(Mm)return Im;Mm=1;var e=Um(),t=lm(),n=dm(),i=Dm();return Im=function(r,o,a){if(!r||"object"!=typeof r&&"function"!=typeof r)throw new n("`obj` must be an object or a function`");if("string"!=typeof o&&"symbol"!=typeof o)throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new n("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],d=!!i&&i(r,o);if(e)e(r,o,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:a,writable:null===c&&d?d.writable:!c});else{if(!l&&(s||c||u))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");r[o]=a}},Im}function mp(){if(zm)return Rm;zm=1;var e=Um(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(t){return!0}},Rm=t}function pp(){if(Om)return _m;Om=1;var e=Wm(),t=fp(),n=mp()(),i=Dm(),r=dm(),o=e("%Math.floor%");return _m=function(e,a){if("function"!=typeof e)throw new r("`fn` is not a function");if("number"!=typeof a||a<0||a>4294967295||o(a)!==a)throw new r("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],c=!0,u=!0;if("length"in e&&i){var l=i(e,"length");l&&!l.configurable&&(c=!1),l&&!l.writable&&(u=!1)}return(c||u||!s)&&(n?t(e,"length",a,!0,!0):t(e,"length",a)),e},_m}function gp(){return Pm||(Pm=1,function(e){var t=Am(),n=Wm(),i=pp(),r=dm(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,o),c=Um(),u=n("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new r("a function is required");var n=s(t,a,arguments);return i(n,1+u(0,e.length-(arguments.length-1)),!0)};var l=function(){return s(t,o,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l}(hp)),hp.exports}function bp(){if(Nm)return Lm;Nm=1;var e=Wm(),t=gp(),n=t(e("String.prototype.indexOf"));return Lm=function(i,r){var o=e(i,!!r);return"function"==typeof o&&n(i,".prototype.")>-1?t(o):o}}function vp(){if(Vm)return Hm;Vm=1;var e,t=Object.prototype.toString,n=Function.prototype.toString,i=/^\s*(?:function)?\*/,r=rm()(),o=Object.getPrototypeOf;return Hm=function(a){if("function"!=typeof a)return!1;if(i.test(n.call(a)))return!0;if(!r)return"[object GeneratorFunction]"===t.call(a);if(!o)return!1;if(void 0===e){var s=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch(e){}}();e=!!s&&o(s)}return o(a)===e}}function yp(){if(Zm)return Km;Zm=1;var e=function(){if(Gm)return $m;Gm=1;var e,t,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},i(function(){throw 42},null,e)}catch(h){h!==t&&(i=null)}else i=null;var r=/^\s*class\b/,o=function(e){try{var t=n.call(e);return r.test(t)}catch(i){return!1}},a=function(e){try{return!o(e)&&(n.call(e),!0)}catch(t){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var d=document.all;s.call(d)===s.call(document.all)&&(l=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}return $m=i?function(n){if(l(n))return!0;if(!n)return!1;if("function"!=typeof n&&"object"!=typeof n)return!1;try{i(n,null,e)}catch(r){if(r!==t)return!1}return!o(n)&&a(n)}:function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return a(e);if(o(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}}(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty;return Km=function(i,r,o){if(!e(r))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=o),"[object Array]"===t.call(i)?function(e,t,i){for(var r=0,o=e.length;r<o;r++)n.call(e,r)&&(null==i?t(e[r],r,e):t.call(i,e[r],r,e))}(i,r,a):"string"==typeof i?function(e,t,n){for(var i=0,r=e.length;i<r;i++)null==n?t(e.charAt(i),i,e):t.call(n,e.charAt(i),i,e)}(i,r,a):function(e,t,i){for(var r in e)n.call(e,r)&&(null==i?t(e[r],r,e):t.call(i,e[r],r,e))}(i,r,a)},Km}function wp(){return Ym?Xm:(Ym=1,Xm=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"])}function xp(){if(Qm)return Jm;Qm=1;var e=wp(),t="undefined"==typeof globalThis?nh:globalThis;return Jm=function(){for(var n=[],i=0;i<e.length;i++)"function"==typeof t[e[i]]&&(n[n.length]=e[i]);return n},Jm}function Dp(){if(tp)return ep;tp=1;var e=yp(),t=xp(),n=gp(),i=bp(),r=Dm(),o=i("Object.prototype.toString"),a=rm()(),s="undefined"==typeof globalThis?nh:globalThis,c=t(),u=i("String.prototype.slice"),l=Object.getPrototypeOf,d=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},h={__proto__:null};e(c,a&&r&&l?function(e){var t=new s[e];if(Symbol.toStringTag in t){var i=l(t),o=r(i,Symbol.toStringTag);if(!o){var a=l(i);o=r(a,Symbol.toStringTag)}h["$"+e]=n(o.get)}}:function(e){var t=new s[e],i=t.slice||t.set;i&&(h["$"+e]=n(i))});return ep=function(t){if(!t||"object"!=typeof t)return!1;if(!a){var n=u(o(t),8,-1);return d(c,n)>-1?n:"Object"===n&&function(t){var n=!1;return e(h,function(e,i){if(!n)try{e(t),n=u(i,1)}catch(r){}}),n}(t)}return r?function(t){var n=!1;return e(h,function(e,i){if(!n)try{"$"+e(t)===i&&(n=u(i,1))}catch(r){}}),n}(t):null}}function Up(){if(ip)return np;ip=1;var e=Dp();return np=function(t){return!!e(t)}}function Tp(){return rp||(rp=1,function(e){var t=function(){if(jm)return qm;jm=1;var e=rm()(),t=bp()("Object.prototype.toString"),n=function(n){return!(e&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===t(n)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==t(e)&&"[object Function]"===t(e.callee)},r=function(){return n(arguments)}();return n.isLegacyArguments=i,qm=r?n:i}(),n=vp(),i=Dp(),r=Up();function o(e){return e.call.bind(e)}var a="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,c=o(Object.prototype.toString),u=o(Number.prototype.valueOf),l=o(String.prototype.valueOf),d=o(Boolean.prototype.valueOf);if(a)var h=o(BigInt.prototype.valueOf);if(s)var f=o(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(n){return!1}}function p(e){return"[object Map]"===c(e)}function g(e){return"[object Set]"===c(e)}function b(e){return"[object WeakMap]"===c(e)}function v(e){return"[object WeakSet]"===c(e)}function y(e){return"[object ArrayBuffer]"===c(e)}function w(e){return"undefined"!=typeof ArrayBuffer&&(y.working?y(e):e instanceof ArrayBuffer)}function x(e){return"[object DataView]"===c(e)}function D(e){return"undefined"!=typeof DataView&&(x.working?x(e):e instanceof DataView)}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=r,e.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},e.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):r(e)||D(e)},e.isUint8Array=function(e){return"Uint8Array"===i(e)},e.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},e.isUint16Array=function(e){return"Uint16Array"===i(e)},e.isUint32Array=function(e){return"Uint32Array"===i(e)},e.isInt8Array=function(e){return"Int8Array"===i(e)},e.isInt16Array=function(e){return"Int16Array"===i(e)},e.isInt32Array=function(e){return"Int32Array"===i(e)},e.isFloat32Array=function(e){return"Float32Array"===i(e)},e.isFloat64Array=function(e){return"Float64Array"===i(e)},e.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},e.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},p.working="undefined"!=typeof Map&&p(new Map),e.isMap=function(e){return"undefined"!=typeof Map&&(p.working?p(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),e.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(e){return v(e)},y.working="undefined"!=typeof ArrayBuffer&&y(new ArrayBuffer),e.isArrayBuffer=w,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=D;var U="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===c(e)}function k(e){return void 0!==U&&(void 0===T.working&&(T.working=T(new U)),T.working?T(e):e instanceof U)}function A(e){return m(e,u)}function F(e){return m(e,l)}function S(e){return m(e,d)}function E(e){return a&&m(e,h)}function C(e){return s&&m(e,f)}e.isSharedArrayBuffer=k,e.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},e.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},e.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},e.isGeneratorObject=function(e){return"[object Generator]"===c(e)},e.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},e.isNumberObject=A,e.isStringObject=F,e.isBooleanObject=S,e.isBigIntObject=E,e.isSymbolObject=C,e.isBoxedPrimitive=function(e){return A(e)||F(e)||S(e)||E(e)||C(e)},e.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(w(e)||k(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})}(nm)),nm}function kp(){return sp||(sp=1,function(e){var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return n},n=/%[sdj%]/g;e.format=function(e){if(!g(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(a(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,o=r.length,s=String(e).replace(n,function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(t){return"[Circular]"}default:return e}}),c=r[i];i<o;c=r[++i])m(c)||!y(c)?s+=" "+c:s+=" "+a(c);return s},e.deprecate=function(t,n){if(void 0!==Fh&&!0===Fh.noDeprecation)return t;if(void 0===Fh)return function(){return e.deprecate(t,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(Fh.throwDeprecation)throw new Error(n);Fh.traceDeprecation,i=!0}return t.apply(this,arguments)}};var i={},r=/^$/;if(Fh.env.NODE_DEBUG){var o=Fh.env.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+o+"$","i")}function a(t,n){var i={seen:[],stylize:c};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&e.do(i,n),b(i.showHidden)&&(i.showHidden=!1),b(i.depth)&&(i.depth=2),b(i.colors)&&(i.colors=!1),b(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),u(i,t,i.depth)}function s(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function c(e,t){return e}function u(t,n,i){if(t.customInspect&&n&&D(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return g(r)||(r=u(t,r,i)),r}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(p(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(D(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(v(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return l(n)}var y,U="",k=!1,A=["{","}"];(h(n)&&(k=!0,A=["[","]"]),D(n))&&(U=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(U=" "+RegExp.prototype.toString.call(n)),w(n)&&(U=" "+Date.prototype.toUTCString.call(n)),x(n)&&(U=" "+l(n)),0!==a.length||k&&0!=n.length?i<0?v(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),y=k?function(e,t,n,i,r){for(var o=[],a=0,s=t.length;a<s;++a)T(t,String(a))?o.push(d(e,t,n,i,String(a),!0)):o.push("");return r.forEach(function(r){r.match(/^\d+$/)||o.push(d(e,t,n,i,r,!0))}),o}(t,n,i,s,a):a.map(function(e){return d(t,n,i,s,e,k)}),t.seen.pop(),function(e,t,n){var i=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(y,U,A)):A[0]+U+A[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,i,r,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),T(i,r)||(a="["+r+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(n)?u(e,c.value,null):u(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function p(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function v(e){return y(e)&&"[object RegExp]"===U(e)}function y(e){return"object"==typeof e&&null!==e}function w(e){return y(e)&&"[object Date]"===U(e)}function x(e){return y(e)&&("[object Error]"===U(e)||e instanceof Error)}function D(e){return"function"==typeof e}function U(e){return Object.prototype.toString.call(e)}e.debuglog=function(t){if(t=t.toUpperCase(),!i[t])if(r.test(t)){Fh.pid;i[t]=function(){e.format.apply(e,arguments)}}else i[t]=function(){};return i[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=Tp(),e.isArray=h,e.isBoolean=f,e.isNull=m,e.isNullOrUndefined=function(e){return null==e},e.isNumber=p,e.isString=g,e.isSymbol=function(e){return"symbol"==typeof e},e.isUndefined=b,e.isRegExp=v,e.types.isRegExp=v,e.isObject=y,e.isDate=w,e.types.isDate=w,e.isError=x,e.types.isNativeError=x,e.isFunction=D,e.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},e.isBuffer=ap?op:(ap=1,op=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8});function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.log=function(){},e.inherits=lh(),e.do=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}e.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(k&&e[k]){var n;if("function"!=typeof(n=e[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,k,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var t,n,i=new Promise(function(e,i){t=e,n=i}),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push(function(e,i){e?n(e):t(i)});try{e.apply(this,r)}catch(a){n(a)}return i}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),k&&Object.defineProperty(n,k,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,t(e))},e.promisify.custom=k,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var r=this,o=function(){return i.apply(r,arguments)};e.apply(this,t).then(function(e){Fh.nextTick(o.bind(null,null,e))},function(e){Fh.nextTick(A.bind(null,e,o))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}}(tm)),tm}function Ap(){if(up)return cp;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}up=1;var i=_h().Buffer,r=kp().inspect,o=r&&r.custom||"inspect";function a(e,t,n){i.prototype.copy.call(e,t,n)}return cp=function(){function s(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),this.head=null,this.tail=null,this.length=0}return n(s,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)a(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this.ho(e):this.fo(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var r=t.data,o=e>r.length?r.length:e;if(o===r.length?i+=r:i+=r.slice(0,e),0===(e-=o)){o===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0===(e-=a)){a===o.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++r}return this.length-=r,t}},{key:o,value:function(n,i){return r(this,function(n){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach(function(e){t(n,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}({},i,{depth:0,customInspect:!1}))}}]),s}(),cp}function Fp(){if(dp)return lp;function e(e,i){n(e,i),t(e)}function t(e){e.mo&&!e.mo.emitClose||e.po&&!e.po.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}return dp=1,lp={destroy:function(i,r){var o=this,a=this.po&&this.po.destroyed,s=this.mo&&this.mo.destroyed;return a||s?(r?r(i):i&&(this.mo?this.mo.errorEmitted||(this.mo.errorEmitted=!0,Fh.nextTick(n,this,i)):Fh.nextTick(n,this,i)),this):(this.po&&(this.po.destroyed=!0),this.mo&&(this.mo.destroyed=!0),this.bo(i||null,function(n){!r&&n?o.mo?o.mo.errorEmitted?Fh.nextTick(t,o):(o.mo.errorEmitted=!0,Fh.nextTick(e,o,n)):Fh.nextTick(e,o,n):r?(Fh.nextTick(t,o),r(n)):Fh.nextTick(t,o)}),this)},undestroy:function(){this.po&&(this.po.destroyed=!1,this.po.reading=!1,this.po.ended=!1,this.po.endEmitted=!1),this.mo&&(this.mo.destroyed=!1,this.mo.ended=!1,this.mo.ending=!1,this.mo.finalCalled=!1,this.mo.prefinished=!1,this.mo.finished=!1,this.mo.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e.po,i=e.mo;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}}var Sp,Ep,Cp,Bp,Wp,Ip,Mp,Rp,zp,_p={};function Op(){if(Sp)return _p;Sp=1;var e={};function t(t,n,i){i||(i=Error);var r=function(e){var t,i;function r(t,i,r){return e.call(this,function(e,t,i){return"string"==typeof n?n:n(e,t,i)}(t,i,r))||this}return i=e,(t=r).prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,r}(i);r.prototype.name=i.name,r.prototype.code=t,e[t]=r}function n(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}return t("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(e,t,i){var r,o,a;if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(r," ").concat(n(t,"type"));else{var s=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(r," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof i)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),_p.codes=e,_p}function Pp(){if(Cp)return Ep;Cp=1;var e=Op().codes.ERR_INVALID_OPT_VALUE;return Ep={getHighWaterMark:function(t,n,i,r){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,r,i);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new e(r?i:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}}function Lp(){if(Wp)return Bp;function e(e){try{if(!nh.localStorage)return!1}catch(n){return!1}var t=nh.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return Wp=1,Bp=function(t,n){if(e("noDeprecation"))return t;var i=!1;return function(){if(!i){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation"),i=!0}return t.apply(this,arguments)}},Bp}function Np(){if(Mp)return Ip;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}var t;Mp=1,Ip=x,x.WritableState=w;var n={deprecate:Lp()},i=Ch(),r=_h().Buffer,o=nh.Uint8Array||function(){};var a,s=Fp(),c=Pp().getHighWaterMark,u=Op().codes,l=u.ERR_INVALID_ARG_TYPE,d=u.ERR_METHOD_NOT_IMPLEMENTED,h=u.ERR_MULTIPLE_CALLBACK,f=u.ERR_STREAM_CANNOT_PIPE,m=u.ERR_STREAM_DESTROYED,p=u.ERR_STREAM_NULL_VALUES,g=u.ERR_STREAM_WRITE_AFTER_END,b=u.ERR_UNKNOWN_ENCODING,v=s.errorOrDestroy;function y(){}function w(n,i,r){t=t||qp(),n=n||{},"boolean"!=typeof r&&(r=i instanceof t),this.objectMode=!!n.objectMode,r&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=c(this,n,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e.mo,i=n.sync,r=n.writecb;if("function"!=typeof r)throw new h;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(Fh.nextTick(r,i),Fh.nextTick(F,e,t),e.mo.errorEmitted=!0,v(e,i)):(r(i),e.mo.errorEmitted=!0,v(e,i),F(e,t))}(e,n,i,t,r);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),i?Fh.nextTick(U,e,n,o,r):U(e,n,o,r)}}(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function x(e){var n=this instanceof(t=t||qp());if(!n&&!a.call(x,this))return new x(e);this.mo=new w(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this.vo=e.write),"function"==typeof e.writev&&(this.yo=e.writev),"function"==typeof e.destroy&&(this.bo=e.destroy),"function"==typeof e.final&&(this.wo=e.final)),i.call(this)}function D(e,t,n,i,r,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):n?e.yo(r,t.onwrite):e.vo(r,o,t.onwrite),t.sync=!1}function U(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),F(e,t)}function T(t,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(t.yo&&i&&i.next){var r=n.bufferedRequestCount,o=new Array(r),a=n.corkedRequestsFree;a.entry=i;for(var s=0,c=!0;i;)o[s]=i,i.isBuf||(c=!1),i=i.next,s+=1;o.allBuffers=c,D(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;i;){var u=i.chunk,l=i.encoding,d=i.callback;if(D(t,n,!1,n.objectMode?1:u.length,u,l,d),i=i.next,n.bufferedRequestCount--,n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i,n.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e.wo(function(n){t.pendingcb--,n&&v(e,n),t.prefinished=!0,e.emit("prefinish"),F(e,t)})}function F(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e.wo||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,Fh.nextTick(A,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e.po;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}return lh()(x,i),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===x&&(e&&e.mo instanceof w)}})):a=function(e){return e instanceof this},x.prototype.pipe=function(){v(this,new f)},x.prototype.write=function(e,t,n){var i,a=this.mo,s=!1,c=!a.objectMode&&(i=e,r.isBuffer(i)||i instanceof o);return c&&!r.isBuffer(e)&&(e=function(e){return r.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof n&&(n=y),a.ending?function(e,t){var n=new g;v(e,n),Fh.nextTick(t,n)}(this,n):(c||function(e,t,n,i){var r;return null===n?r=new p:"string"==typeof n||t.objectMode||(r=new l("chunk",["string","Buffer"],n)),!r||(v(e,r),Fh.nextTick(i,r),!1)}(this,a,e,n))&&(a.pendingcb++,s=function(e,t,n,i,o,a){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=r.from(t,n));return t}(t,i,o);i!==s&&(n=!0,o="buffer",i=s)}var c=t.objectMode?1:i.length;t.length+=c;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else D(e,t,!1,c,i,o,a);return u}(this,a,c,e,t,n)),s},x.prototype.cork=function(){this.mo.corked++},x.prototype.uncork=function(){var e=this.mo;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new b(e);return this.mo.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this.mo&&this.mo.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this.mo.highWaterMark}}),x.prototype.vo=function(e,t,n){n(new d("_write()"))},x.prototype.yo=null,x.prototype.end=function(e,t,n){var i=this.mo;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,F(e,t),n&&(t.finished?Fh.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this.mo.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this.mo&&this.mo.destroyed},set:function(e){this.mo&&(this.mo.destroyed=e)}}),x.prototype.destroy=s.destroy,x.prototype.xo=s.undestroy,x.prototype.bo=function(e,t){t(e)},Ip}function qp(){if(zp)return Rp;zp=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};Rp=a;var t=Fg(),n=Np();lh()(a,t);for(var i=e(n.prototype),r=0;r<i.length;r++){var o=i[r];a.prototype[o]||(a.prototype[o]=n.prototype[o])}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this.mo.ended||Fh.nextTick(c,this)}function c(e){e.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this.mo.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this.mo&&this.mo.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this.mo.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this.po&&void 0!==this.mo&&(this.po.destroyed&&this.mo.destroyed)},set:function(e){void 0!==this.po&&void 0!==this.mo&&(this.po.destroyed=e,this.mo.destroyed=e)}}),Rp}var jp,Hp,Vp,$p,Gp,Kp,Zp,Xp,Yp,Jp,Qp,eg,tg,ng,ig,rg,og,ag,sg,cg,ug,lg,dg,hg,fg,mg,pg,gg,bg,vg,yg,wg,xg,Dg={},Ug={exports:{}};function Tg(){if(Hp)return Dg;Hp=1;var e=(jp||(jp=1,function(e,t){var n=_h(),i=n.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=o),r(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(Ug,Ug.exports)),Ug.exports).Buffer,t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(n){var i;switch(this.encoding=function(n){var i=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(n);if("string"!=typeof i&&(e.isEncoding===t||!t(n)))throw new Error("Unknown encoding: "+n);return i||n}(n),this.encoding){case"utf16le":this.text=o,this.end=a,i=4;break;case"utf8":this.fillLast=r,i=4;break;case"base64":this.text=s,this.end=c,i=3;break;default:return this.write=u,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(i)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function r(e){var t=this.lastTotal-this.lastNeed,n=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}return Dg.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=i(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if(o=i(t[r]),o>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if(o=i(t[r]),o>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Dg}function kg(){if($p)return Vp;$p=1;var e=Op().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return Vp=function n(i,r,o){if("function"==typeof r)return n(i,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i)}}}(o||t);var a=r.readable||!1!==r.readable&&i.readable,s=r.writable||!1!==r.writable&&i.writable,c=function(){i.writable||l()},u=i.mo&&i.mo.finished,l=function(){s=!1,u=!0,a||o.call(i)},d=i.po&&i.po.endEmitted,h=function(){a=!1,d=!0,s||o.call(i)},f=function(e){o.call(i,e)},m=function(){var t;return a&&!d?(i.po&&i.po.ended||(t=new e),o.call(i,t)):s&&!u?(i.mo&&i.mo.ended||(t=new e),o.call(i,t)):void 0},p=function(){i.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(i)?s&&!i.mo&&(i.on("end",c),i.on("close",c)):(i.on("complete",l),i.on("abort",m),i.req?p():i.on("request",p)),i.on("end",h),i.on("finish",l),!1!==r.error&&i.on("error",f),i.on("close",m),function(){i.removeListener("complete",l),i.removeListener("abort",m),i.removeListener("request",p),i.req&&i.req.removeListener("finish",l),i.removeListener("end",c),i.removeListener("close",c),i.removeListener("finish",l),i.removeListener("end",h),i.removeListener("error",f),i.removeListener("close",m)}},Vp}function Ag(){if(Kp)return Gp;var e;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Kp=1;var n=kg(),i=Symbol("lastResolve"),r=Symbol("lastReject"),o=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),c=Symbol("handlePromise"),u=Symbol("stream");function l(e,t){return{value:e,done:t}}function d(e){var t=e[i];if(null!==t){var n=e[u].read();null!==n&&(e[s]=null,e[i]=null,e[r]=null,t(l(n,!1)))}}function h(e){Fh.nextTick(d,e)}var f=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((t(e={get stream(){return this[u]},next:function(){var e=this,t=this[o];if(null!==t)return Promise.reject(t);if(this[a])return Promise.resolve(l(void 0,!0));if(this[u].destroyed)return new Promise(function(t,n){Fh.nextTick(function(){e[o]?n(e[o]):t(l(void 0,!0))})});var n,i=this[s];if(i)n=new Promise(function(e,t){return function(n,i){e.then(function(){t[a]?n(l(void 0,!0)):t[c](n,i)},i)}}(i,this));else{var r=this[u].read();if(null!==r)return Promise.resolve(l(r,!1));n=new Promise(this[c])}return this[s]=n,n}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var e=this;return new Promise(function(t,n){e[u].destroy(null,function(e){e?n(e):t(l(void 0,!0))})})}),e),f);return Gp=function(e){var d,f=Object.create(m,(t(d={},u,{value:e,writable:!0}),t(d,i,{value:null,writable:!0}),t(d,r,{value:null,writable:!0}),t(d,o,{value:null,writable:!0}),t(d,a,{value:e.po.endEmitted,writable:!0}),t(d,c,{value:function(e,t){var n=f[u].read();n?(f[s]=null,f[i]=null,f[r]=null,e(l(n,!1))):(f[i]=e,f[r]=t)},writable:!0}),d));return f[s]=null,n(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=f[r];return null!==t&&(f[s]=null,f[i]=null,f[r]=null,t(e)),void(f[o]=e)}var n=f[i];null!==n&&(f[s]=null,f[i]=null,f[r]=null,n(l(void 0,!0))),f[a]=!0}),e.on("readable",h.bind(null,f)),f}}function Fg(){if(Jp)return Yp;var e;Jp=1,Yp=x,x.ReadableState=w,sh().EventEmitter;var t=function(e,t){return e.listeners(t).length},n=Ch(),i=_h().Buffer,r=nh.Uint8Array||function(){};var o,a=kp();o=a&&a.debuglog?a.debuglog("stream"):function(){};var s,c,u,l=Ap(),d=Fp(),h=Pp().getHighWaterMark,f=Op().codes,m=f.ERR_INVALID_ARG_TYPE,p=f.ERR_STREAM_PUSH_AFTER_EOF,g=f.ERR_METHOD_NOT_IMPLEMENTED,b=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;lh()(x,n);var v=d.errorOrDestroy,y=["error","close","destroy","pause","resume"];function w(t,n,i){e=e||qp(),t=t||{},"boolean"!=typeof i&&(i=n instanceof e),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=h(this,t,"readableHighWaterMark",i),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=Tg().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function x(t){if(e=e||qp(),!(this instanceof x))return new x(t);var i=this instanceof e;this.po=new w(t,this,i),this.readable=!0,t&&("function"==typeof t.read&&(this.Vi=t.read),"function"==typeof t.destroy&&(this.bo=t.destroy)),n.call(this)}function D(e,t,n,a,s){o("readableAddChunk",t);var c,u=e.po;if(null===t)u.reading=!1,function(e,t){if(o("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}(e,u);else if(s||(c=function(e,t){var n;o=t,i.isBuffer(o)||o instanceof r||"string"==typeof t||void 0===t||e.objectMode||(n=new m("chunk",["string","Buffer","Uint8Array"],t));var o;return n}(u,t)),c)v(e,c);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===i.prototype||(t=function(e){return i.from(e)}(t)),a)u.endEmitted?v(e,new b):U(e,u,t,!0);else if(u.ended)v(e,new p);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?U(e,u,t,!1):S(e,u)):U(e,u,t,!1)}else a||(u.reading=!1,S(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function U(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),S(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this.po&&this.po.destroyed},set:function(e){this.po&&(this.po.destroyed=e)}}),x.prototype.destroy=d.destroy,x.prototype.xo=d.undestroy,x.prototype.bo=function(e,t){t(e)},x.prototype.push=function(e,t){var n,r=this.po;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=i.from(e,t),t=""),n=!0),D(this,e,t,!1,n)},x.prototype.unshift=function(e){return D(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this.po.flowing},x.prototype.setEncoding=function(e){s||(s=Tg().StringDecoder);var t=new s(e);this.po.decoder=t,this.po.encoding=this.po.decoder.encoding;for(var n=this.po.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this.po.buffer.clear(),""!==i&&this.po.buffer.push(i),this.po.length=i.length,this};var T=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e.po;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,Fh.nextTick(F,e))}function F(e){var t=e.po;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function S(e,t){t.readingMore||(t.readingMore=!0,Fh.nextTick(E,e,t))}function E(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function C(e){var t=e.po;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){o("readable nexttick read 0"),e.read(0)}function W(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e.po;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function R(e){var t=e.po;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Fh.nextTick(z,t,e))}function z(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t.mo;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function _(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}return x.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this.po,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):A(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&R(this),null;var i,r=t.needReadable;return o("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",r=!0),t.ended||t.reading?o("reading or ended",r=!1):r&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this.Vi(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(i=e>0?M(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==i&&this.emit("data",i),i},x.prototype.Vi=function(e){v(this,new g("_read()"))},x.prototype.pipe=function(e,n){var i=this,r=this.po;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,o("pipe count=%d opts=%j",r.pipesCount,n);var a=(!n||!1!==n.end)&&e!==Fh.stdout&&e!==Fh.stderr?c:p;function s(t,n){o("onunpipe"),t===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,o("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",s),i.removeListener("end",c),i.removeListener("end",p),i.removeListener("data",d),l=!0,!r.awaitDrain||e.mo&&!e.mo.needDrain||u())}function c(){o("onend"),e.end()}r.endEmitted?Fh.nextTick(a):i.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var n=e.po;o("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,I(e))}}(i);e.on("drain",u);var l=!1;function d(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==_(r.pipes,e))&&!l&&(o("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function h(n){o("onerror",n),p(),e.removeListener("error",h),0===t(e,"error")&&v(e,n)}function f(){e.removeListener("finish",m),p()}function m(){o("onfinish"),e.removeListener("close",f),p()}function p(){o("unpipe"),i.unpipe(e)}return i.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e.ao&&e.ao[t]?Array.isArray(e.ao[t])?e.ao[t].unshift(n):e.ao[t]=[n,e.ao[t]]:e.on(t,n)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",i),r.flowing||(o("pipe resume"),i.resume()),e},x.prototype.unpipe=function(e){var t=this.po,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=_(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},x.prototype.on=function(e,t){var i=n.prototype.on.call(this,e,t),r=this.po;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,o("on readable",r.length,r.reading),r.length?A(this):r.reading||Fh.nextTick(B,this))),i},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var i=n.prototype.removeListener.call(this,e,t);return"readable"===e&&Fh.nextTick(C,this),i},x.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||Fh.nextTick(C,this),t},x.prototype.resume=function(){var e=this.po;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Fh.nextTick(W,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return o("call pause flowing=%j",this.po.flowing),!1!==this.po.flowing&&(o("pause"),this.po.flowing=!1,this.emit("pause")),this.po.paused=!0,this},x.prototype.wrap=function(e){var t=this,n=this.po,i=!1;for(var r in e.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(r){(o("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(t.push(r)||(i=!0,e.pause()))}),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var a=0;a<y.length;a++)e.on(y[a],this.emit.bind(this,y[a]));return this.Vi=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===c&&(c=Ag()),c(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this.po.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this.po&&this.po.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this.po.flowing},set:function(e){this.po&&(this.po.flowing=e)}}),x.Do=M,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this.po.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===u&&(u=Xp?Zp:(Xp=1,Zp=function(){throw new Error("Readable.from is not available in the browser")})),u(x,e,t)}),Yp}function Sg(){if(eg)return Qp;eg=1,Qp=s;var e=Op().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=e.ERR_TRANSFORM_WITH_LENGTH_0,o=qp();function a(e,t){var i=this.Uo;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new n);i.writechunk=null,i.writecb=null,null!=t&&this.push(t),r(e);var o=this.po;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this.Vi(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),this.Uo={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this.po.needReadable=!0,this.po.sync=!1,e&&("function"==typeof e.transform&&(this.To=e.transform),"function"==typeof e.flush&&(this.Ao=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this.Ao||this.po.destroyed?u(this,null,null):this.Ao(function(t,n){u(e,t,n)})}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e.mo.length)throw new r;if(e.Uo.transforming)throw new i;return e.push(null)}return lh()(s,o),s.prototype.push=function(e,t){return this.Uo.needTransform=!1,o.prototype.push.call(this,e,t)},s.prototype.To=function(e,n,i){i(new t("_transform()"))},s.prototype.vo=function(e,t,n){var i=this.Uo;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this.po;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this.Vi(r.highWaterMark)}},s.prototype.Vi=function(e){var t=this.Uo;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this.To(t.writechunk,t.writeencoding,t.afterTransform))},s.prototype.bo=function(e,t){o.prototype.bo.call(this,e,function(e){t(e)})},Qp}function Eg(){if(rg)return ig;var e;rg=1;var t=Op().codes,n=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function r(e){if(e)throw e}function o(e){e()}function a(e,t){return e.pipe(t)}return ig=function(){for(var t=arguments.length,s=new Array(t),c=0;c<t;c++)s[c]=arguments[c];var u,l=function(e){return e.length?"function"!=typeof e[e.length-1]?r:e.pop():r}(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new n("streams");var d=s.map(function(t,n){var r=n<s.length-1;return function(t,n,r,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),void 0===e&&(e=kg()),e(t,{readable:n,writable:r},function(e){if(e)return o(e);a=!0,o()});var s=!1;return function(e){if(!a&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new i("pipe"))}}(t,r,n>0,function(e){u||(u=e),e&&d.forEach(o),r||(d.forEach(o),l(u))})});return s.reduce(a)},ig}function Cg(){if(ag)return og;ag=1,og=t;var e=sh().EventEmitter;function t(){e.call(this)}return lh()(t,e),t.Readable=Fg(),t.Writable=Np(),t.Duplex=qp(),t.Transform=Sg(),t.PassThrough=function(){if(ng)return tg;ng=1,tg=t;var e=Sg();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return lh()(t,e),t.prototype.To=function(e,t,n){n(null,e)},tg}(),t.finished=kg(),t.pipeline=Eg(),t.Stream=t,t.prototype.pipe=function(t,n){var i=this;function r(e){t.writable&&!1===t.write(e)&&i.pause&&i.pause()}function o(){i.readable&&i.resume&&i.resume()}i.on("data",r),t.on("drain",o),t.Fo||n&&!1===n.end||(i.on("end",s),i.on("close",c));var a=!1;function s(){a||(a=!0,t.end())}function c(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===e.listenerCount(this,"error"))throw t}function l(){i.removeListener("data",r),t.removeListener("drain",o),i.removeListener("end",s),i.removeListener("close",c),i.removeListener("error",u),t.removeListener("error",u),i.removeListener("end",l),i.removeListener("close",l),t.removeListener("close",l)}return i.on("error",u),t.on("error",u),i.on("end",l),i.on("close",l),t.on("close",l),t.emit("pipe",i),t},og}function Bg(){return sg||(sg=1,function(e){e.parser=function(e,t){return new i(e,t)},e.SAXParser=i,e.SAXStream=o,e.createStream=function(e,t){return new o(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(t,r){if(!(this instanceof i))return new i(t,r);var o=this;!function(e){for(var t=0,i=n.length;t<i;t++)e[n[t]]=""}(o),o.q=o.c="",o.bufferCheckPosition=e.MAX_BUFFER_LENGTH,o.opt=r||{},o.opt.lowercase=o.opt.lowercase||o.opt.lowercasetags,o.looseCase=o.opt.lowercase?"toLowerCase":"toUpperCase",o.tags=[],o.closed=o.closedRoot=o.sawRoot=!1,o.tag=o.error=null,o.strict=!!t,o.noscript=!(!t&&!o.opt.noscript),o.state=U.BEGIN,o.strictEntities=o.opt.strictEntities,o.ENTITIES=o.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),o.attribList=[],o.opt.xmlns&&(o.ns=Object.create(l)),o.trackPosition=!1!==o.opt.position,o.trackPosition&&(o.position=o.line=o.column=0),k(o,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){C(this)},write:function(t){var i=this;if(this.error)throw this.error;if(i.closed)return E(i,"Cannot write after close. Assign an onready handler.");if(null===t)return C(i);"object"==typeof t&&(t=t.toString());for(var r=0,o="";o=P(t,r++),i.c=o,o;)switch(i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++),i.state){case U.BEGIN:if(i.state=U.BEGIN_WHITESPACE,"\ufeff"===o)continue;O(i,o);continue;case U.BEGIN_WHITESPACE:O(i,o);continue;case U.TEXT:if(i.sawRoot&&!i.closedRoot){for(var c=r-1;o&&"<"!==o&&"&"!==o;)(o=P(t,r++))&&i.trackPosition&&(i.position++,"\n"===o?(i.line++,i.column=0):i.column++);i.textNode+=t.substring(c,r-1)}"<"!==o||i.sawRoot&&i.closedRoot&&!i.strict?(p(o)||i.sawRoot&&!i.closedRoot||B(i,"Text data outside of root node."),"&"===o?i.state=U.TEXT_ENTITY:i.textNode+=o):(i.state=U.OPEN_WAKA,i.startTagPosition=i.position);continue;case U.SCRIPT:"<"===o?i.state=U.SCRIPT_ENDING:i.script+=o;continue;case U.SCRIPT_ENDING:"/"===o?i.state=U.CLOSE_TAG:(i.script+="<"+o,i.state=U.SCRIPT);continue;case U.OPEN_WAKA:if("!"===o)i.state=U.SGML_DECL,i.sgmlDecl="";else if(p(o));else if(v(d,o))i.state=U.OPEN_TAG,i.tagName=o;else if("/"===o)i.state=U.CLOSE_TAG,i.tagName="";else if("?"===o)i.state=U.PROC_INST,i.procInstName=i.procInstBody="";else{if(B(i,"Unencoded <"),i.startTagPosition+1<i.position){var u=i.position-i.startTagPosition;o=new Array(u).join(" ")+o}i.textNode+="<"+o,i.state=U.TEXT}continue;case U.SGML_DECL:(i.sgmlDecl+o).toUpperCase()===a?(A(i,"onopencdata"),i.state=U.CDATA,i.sgmlDecl="",i.cdata=""):i.sgmlDecl+o==="--"?(i.state=U.COMMENT,i.comment="",i.sgmlDecl=""):(i.sgmlDecl+o).toUpperCase()===s?(i.state=U.DOCTYPE,(i.doctype||i.sawRoot)&&B(i,"Inappropriately located doctype declaration"),i.doctype="",i.sgmlDecl=""):">"===o?(A(i,"onsgmldeclaration",i.sgmlDecl),i.sgmlDecl="",i.state=U.TEXT):g(o)?(i.state=U.SGML_DECL_QUOTED,i.sgmlDecl+=o):i.sgmlDecl+=o;continue;case U.SGML_DECL_QUOTED:o===i.q&&(i.state=U.SGML_DECL,i.q=""),i.sgmlDecl+=o;continue;case U.DOCTYPE:">"===o?(i.state=U.TEXT,A(i,"ondoctype",i.doctype),i.doctype=!0):(i.doctype+=o,"["===o?i.state=U.DOCTYPE_DTD:g(o)&&(i.state=U.DOCTYPE_QUOTED,i.q=o));continue;case U.DOCTYPE_QUOTED:i.doctype+=o,o===i.q&&(i.q="",i.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:i.doctype+=o,"]"===o?i.state=U.DOCTYPE:g(o)&&(i.state=U.DOCTYPE_DTD_QUOTED,i.q=o);continue;case U.DOCTYPE_DTD_QUOTED:i.doctype+=o,o===i.q&&(i.state=U.DOCTYPE_DTD,i.q="");continue;case U.COMMENT:"-"===o?i.state=U.COMMENT_ENDING:i.comment+=o;continue;case U.COMMENT_ENDING:"-"===o?(i.state=U.COMMENT_ENDED,i.comment=S(i.opt,i.comment),i.comment&&A(i,"oncomment",i.comment),i.comment=""):(i.comment+="-"+o,i.state=U.COMMENT);continue;case U.COMMENT_ENDED:">"!==o?(B(i,"Malformed comment"),i.comment+="--"+o,i.state=U.COMMENT):i.state=U.TEXT;continue;case U.CDATA:"]"===o?i.state=U.CDATA_ENDING:i.cdata+=o;continue;case U.CDATA_ENDING:"]"===o?i.state=U.CDATA_ENDING_2:(i.cdata+="]"+o,i.state=U.CDATA);continue;case U.CDATA_ENDING_2:">"===o?(i.cdata&&A(i,"oncdata",i.cdata),A(i,"onclosecdata"),i.cdata="",i.state=U.TEXT):"]"===o?i.cdata+="]":(i.cdata+="]]"+o,i.state=U.CDATA);continue;case U.PROC_INST:"?"===o?i.state=U.PROC_INST_ENDING:p(o)?i.state=U.PROC_INST_BODY:i.procInstName+=o;continue;case U.PROC_INST_BODY:if(!i.procInstBody&&p(o))continue;"?"===o?i.state=U.PROC_INST_ENDING:i.procInstBody+=o;continue;case U.PROC_INST_ENDING:">"===o?(A(i,"onprocessinginstruction",{name:i.procInstName,body:i.procInstBody}),i.procInstName=i.procInstBody="",i.state=U.TEXT):(i.procInstBody+="?"+o,i.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:v(h,o)?i.tagName+=o:(W(i),">"===o?R(i):"/"===o?i.state=U.OPEN_TAG_SLASH:(p(o)||B(i,"Invalid character in tag name"),i.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:">"===o?(R(i,!0),z(i)):(B(i,"Forward-slash in opening tag not followed by >"),i.state=U.ATTRIB);continue;case U.ATTRIB:if(p(o))continue;">"===o?R(i):"/"===o?i.state=U.OPEN_TAG_SLASH:v(d,o)?(i.attribName=o,i.attribValue="",i.state=U.ATTRIB_NAME):B(i,"Invalid attribute name");continue;case U.ATTRIB_NAME:"="===o?i.state=U.ATTRIB_VALUE:">"===o?(B(i,"Attribute without value"),i.attribValue=i.attribName,M(i),R(i)):p(o)?i.state=U.ATTRIB_NAME_SAW_WHITE:v(h,o)?i.attribName+=o:B(i,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if("="===o)i.state=U.ATTRIB_VALUE;else{if(p(o))continue;B(i,"Attribute without value"),i.tag.attributes[i.attribName]="",i.attribValue="",A(i,"onattribute",{name:i.attribName,value:""}),i.attribName="",">"===o?R(i):v(d,o)?(i.attribName=o,i.state=U.ATTRIB_NAME):(B(i,"Invalid attribute name"),i.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(p(o))continue;g(o)?(i.q=o,i.state=U.ATTRIB_VALUE_QUOTED):(B(i,"Unquoted attribute value"),i.state=U.ATTRIB_VALUE_UNQUOTED,i.attribValue=o);continue;case U.ATTRIB_VALUE_QUOTED:if(o!==i.q){"&"===o?i.state=U.ATTRIB_VALUE_ENTITY_Q:i.attribValue+=o;continue}M(i),i.q="",i.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:p(o)?i.state=U.ATTRIB:">"===o?R(i):"/"===o?i.state=U.OPEN_TAG_SLASH:v(d,o)?(B(i,"No whitespace between attributes"),i.attribName=o,i.attribValue="",i.state=U.ATTRIB_NAME):B(i,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!b(o)){"&"===o?i.state=U.ATTRIB_VALUE_ENTITY_U:i.attribValue+=o;continue}M(i),">"===o?R(i):i.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(i.tagName)">"===o?z(i):v(h,o)?i.tagName+=o:i.script?(i.script+="</"+i.tagName,i.tagName="",i.state=U.SCRIPT):(p(o)||B(i,"Invalid tagname in closing tag"),i.state=U.CLOSE_TAG_SAW_WHITE);else{if(p(o))continue;y(d,o)?i.script?(i.script+="</"+o,i.state=U.SCRIPT):B(i,"Invalid tagname in closing tag."):i.tagName=o}continue;case U.CLOSE_TAG_SAW_WHITE:if(p(o))continue;">"===o?z(i):B(i,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:var l,w;switch(i.state){case U.TEXT_ENTITY:l=U.TEXT,w="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:l=U.ATTRIB_VALUE_QUOTED,w="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:l=U.ATTRIB_VALUE_UNQUOTED,w="attribValue"}";"===o?(i[w]+=_(i),i.entity="",i.state=l):v(i.entity.length?m:f,o)?i.entity+=o:(B(i,"Invalid character in entity name"),i[w]+="&"+i.entity+o,i.entity="",i.state=l);continue;default:throw new Error(i,"Unknown state: "+i.state)}return i.position>=i.bufferCheckPosition&&function(t){for(var i=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,o=0,a=n.length;o<a;o++){var s=t[n[o]].length;if(s>i)switch(n[o]){case"textNode":F(t);break;case"cdata":A(t,"oncdata",t.cdata),t.cdata="";break;case"script":A(t,"onscript",t.script),t.script="";break;default:E(t,"Max buffer length exceeded: "+n[o])}r=Math.max(r,s)}var c=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=c+t.position}(i),i}
|
|
14
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;F(e=this),""!==e.cdata&&(A(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(A(e,"onscript",e.script),e.script="")}};try{t=Cg().Stream}catch(L){t=function(){}}var r=e.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function o(e,n){if(!(this instanceof o))return new o(e,n);t.apply(this),this.So=new i(e,n),this.writable=!0,this.readable=!0;var a=this;this.So.onend=function(){a.emit("end")},this.So.onerror=function(e){a.emit("error",e),a.So.error=null},this.Eo=null,r.forEach(function(e){Object.defineProperty(a,"on"+e,{get:function(){return a.So["on"+e]},set:function(t){if(!t)return a.removeAllListeners(e),a.So["on"+e]=t,t;a.on(e,t)},enumerable:!0,configurable:!1})})}o.prototype=Object.create(t.prototype,{constructor:{value:o}}),o.prototype.write=function(e){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)){if(!this.Eo){var t=Tg().StringDecoder;this.Eo=new t("utf8")}e=this.Eo.write(e)}return this.So.write(e.toString()),this.emit("data",e),!0},o.prototype.end=function(e){return e&&e.length&&this.write(e),this.So.end(),!0},o.prototype.on=function(e,n){var i=this;return i.So["on"+e]||-1===r.indexOf(e)||(i.So["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),i.emit.apply(i,t)}),t.prototype.on.call(i,e,n)};var a="[CDATA[",s="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",u="http://www.w3.org/2000/xmlns/",l={xml:c,xmlns:u},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function p(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function g(e){return'"'===e||"'"===e}function b(e){return">"===e||p(e)}function v(e,t){return e.test(t)}function y(e,t){return!v(e,t)}var w,x,D,U=0;for(var T in e.STATE={BEGIN:U++,BEGIN_WHITESPACE:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],i="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=i}),e.STATE)e.STATE[e.STATE[T]]=T;function k(e,t,n){e[t]&&e[t](n)}function A(e,t,n){e.textNode&&F(e),k(e,t,n)}function F(e){e.textNode=S(e.opt,e.textNode),e.textNode&&k(e,"ontext",e.textNode),e.textNode=""}function S(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function E(e,t){return F(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,k(e,"onerror",t),e}function C(e){return e.sawRoot&&!e.closedRoot&&B(e,"Unclosed root tag"),e.state!==U.BEGIN&&e.state!==U.BEGIN_WHITESPACE&&e.state!==U.TEXT&&E(e,"Unexpected end"),F(e),e.c="",e.closed=!0,k(e,"onend"),i.call(e,e.strict,e.opt),e}function B(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&E(e,t)}function W(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,A(e,"onopentagstart",n)}function I(e,t){var n=e.indexOf(":")<0?["",e]:e.split(":"),i=n[0],r=n[1];return t&&"xmlns"===e&&(i="xmlns",r=""),{prefix:i,local:r}}function M(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=I(e.attribName,!0),n=t.prefix,i=t.local;if("xmlns"===n)if("xml"===i&&e.attribValue!==c)B(e,"xml: prefix must be bound to "+c+"\nActual: "+e.attribValue);else if("xmlns"===i&&e.attribValue!==u)B(e,"xmlns: prefix must be bound to "+u+"\nActual: "+e.attribValue);else{var r=e.tag,o=e.tags[e.tags.length-1]||e;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[i]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,A(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function R(e,t){if(e.opt.xmlns){var n=e.tag,i=I(e.tagName);n.prefix=i.prefix,n.local=i.local,n.uri=n.ns[i.prefix]||"",n.prefix&&!n.uri&&(B(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=i.prefix);var r=e.tags[e.tags.length-1]||e;n.ns&&r.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){A(e,"onopennamespace",{prefix:t,uri:n.ns[t]})});for(var o=0,a=e.attribList.length;o<a;o++){var s=e.attribList[o],c=s[0],u=s[1],l=I(c,!0),d=l.prefix,h=l.local,f=""===d?"":n.ns[d]||"",m={name:c,value:u,prefix:d,local:h,uri:f};d&&"xmlns"!==d&&!f&&(B(e,"Unbound namespace prefix: "+JSON.stringify(d)),m.uri=d),e.tag.attributes[c]=m,A(e,"onattribute",m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),A(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=U.TEXT:e.state=U.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function z(e){if(!e.tagName)return B(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=U.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=U.SCRIPT);A(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var i=n;t--&&e.tags[t].name!==i;)B(e,"Unexpected close tag");if(t<0)return B(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=U.TEXT);e.tagName=n;for(var r=e.tags.length;r-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,A(e,"onclosetag",e.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(t){var n=o.ns[t];A(e,"onclosenamespace",{prefix:t,uri:n})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=U.TEXT}function _(e){var t,n=e.entity,i=n.toLowerCase(),r="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[i]?e.ENTITIES[i]:("#"===(n=i).charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),r=(t=parseInt(n,16)).toString(16)):(n=n.slice(1),r=(t=parseInt(n,10)).toString(10))),n=n.replace(/^0+/,""),isNaN(t)||r.toLowerCase()!==n?(B(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function O(e,t){"<"===t?(e.state=U.OPEN_WAKA,e.startTagPosition=e.position):p(t)||(B(e,"Non-whitespace before first tag."),e.textNode=t,e.state=U.TEXT)}function P(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}U=e.STATE,String.fromCodePoint||(w=String.fromCharCode,x=Math.floor,D=function(){var e,t,n=[],i=-1,r=arguments.length;if(!r)return"";for(var o="";++i<r;){var a=Number(arguments[i]);if(!isFinite(a)||a<0||a>1114111||x(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(e=55296+((a-=65536)>>10),t=a%1024+56320,n.push(e,t)),(i+1===r||n.length>16384)&&(o+=w.apply(null,n),n.length=0)}return o},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D)}(oh)),oh}function Wg(){return ug?cg:(ug=1,cg={isArray:function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}})}function Ig(){if(dg)return lg;dg=1;var e=Wg().isArray;return lg={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&"boolean"==typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!=typeof e.spaces&&"string"!=typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(t){"alwaysArray"in t&&("boolean"==typeof t.alwaysArray||e(t.alwaysArray))||(t.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"==typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}}function Mg(){if(fg)return hg;fg=1;var e,t,n=Bg(),i=Ig(),r=Wg().isArray;function o(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e}function a(n,i){var o;if(e.compact){if(!t[e[n+"Key"]]&&(r(e.alwaysArray)?-1!==e.alwaysArray.indexOf(e[n+"Key"]):e.alwaysArray)&&(t[e[n+"Key"]]=[]),t[e[n+"Key"]]&&!r(t[e[n+"Key"]])&&(t[e[n+"Key"]]=[t[e[n+"Key"]]]),n+"Fn"in e&&"string"==typeof i&&(i=e[n+"Fn"](i,t)),"instruction"===n&&("instructionFn"in e||"instructionNameFn"in e))for(o in i)if(i.hasOwnProperty(o))if("instructionFn"in e)i[o]=e.instructionFn(i[o],o,t);else{var a=i[o];delete i[o],i[e.instructionNameFn(o,a,t)]=a}r(t[e[n+"Key"]])?t[e[n+"Key"]].push(i):t[e[n+"Key"]]=i}else{t[e.elementsKey]||(t[e.elementsKey]=[]);var s={};if(s[e.typeKey]=n,"instruction"===n){for(o in i)if(i.hasOwnProperty(o))break;s[e.nameKey]="instructionNameFn"in e?e.instructionNameFn(o,i,t):o,e.instructionHasAttributes?(s[e.attributesKey]=i[o][e.attributesKey],"instructionFn"in e&&(s[e.attributesKey]=e.instructionFn(s[e.attributesKey],o,t))):("instructionFn"in e&&(i[o]=e.instructionFn(i[o],o,t)),s[e.instructionKey]=i[o])}else n+"Fn"in e&&(i=e[n+"Fn"](i,t)),s[e[n+"Key"]]=i;e.addParent&&(s[e.parentKey]=t),t[e.elementsKey].push(s)}}function s(n){var i;if("attributesFn"in e&&n&&(n=e.attributesFn(n,t)),(e.trim||"attributeValueFn"in e||"attributeNameFn"in e||e.nativeTypeAttributes)&&n)for(i in n)if(n.hasOwnProperty(i)&&(e.trim&&(n[i]=n[i].trim()),e.nativeTypeAttributes&&(n[i]=o(n[i])),"attributeValueFn"in e&&(n[i]=e.attributeValueFn(n[i],i,t)),"attributeNameFn"in e)){var r=n[i];delete n[i],n[e.attributeNameFn(i,n[i],t)]=r}return n}function c(n){var i={};if(n.body&&("xml"===n.name.toLowerCase()||e.instructionHasAttributes)){for(var r,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(r=o.exec(n.body));)i[r[1]]=r[2]||r[3]||r[4];i=s(i)}if("xml"===n.name.toLowerCase()){if(e.ignoreDeclaration)return;t[e.declarationKey]={},Object.keys(i).length&&(t[e.declarationKey][e.attributesKey]=i),e.addParent&&(t[e.declarationKey][e.parentKey]=t)}else{if(e.ignoreInstruction)return;e.trim&&(n.body=n.body.trim());var c={};e.instructionHasAttributes&&Object.keys(i).length?(c[n.name]={},c[n.name][e.attributesKey]=i):c[n.name]=n.body,a("instruction",c)}}function u(n,i){var o;if("object"==typeof n&&(i=n.attributes,n=n.name),i=s(i),"elementNameFn"in e&&(n=e.elementNameFn(n,t)),e.compact){var a;if(o={},!e.ignoreAttributes&&i&&Object.keys(i).length)for(a in o[e.attributesKey]={},i)i.hasOwnProperty(a)&&(o[e.attributesKey][a]=i[a]);!(n in t)&&(r(e.alwaysArray)?-1!==e.alwaysArray.indexOf(n):e.alwaysArray)&&(t[n]=[]),t[n]&&!r(t[n])&&(t[n]=[t[n]]),r(t[n])?t[n].push(o):t[n]=o}else t[e.elementsKey]||(t[e.elementsKey]=[]),(o={})[e.typeKey]="element",o[e.nameKey]=n,!e.ignoreAttributes&&i&&Object.keys(i).length&&(o[e.attributesKey]=i),e.alwaysChildren&&(o[e.elementsKey]=[]),t[e.elementsKey].push(o);o[e.parentKey]=t,t=o}function l(t){e.ignoreText||(t.trim()||e.captureSpacesBetweenElements)&&(e.trim&&(t=t.trim()),e.nativeType&&(t=o(t)),e.sanitize&&(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),a("text",t))}function d(t){e.ignoreComment||(e.trim&&(t=t.trim()),a("comment",t))}function h(n){var i=t[e.parentKey];e.addParent||delete t[e.parentKey],t=i}function f(t){e.ignoreCdata||(e.trim&&(t=t.trim()),a("cdata",t))}function m(t){e.ignoreDoctype||(t=t.replace(/^ /,""),e.trim&&(t=t.trim()),a("doctype",t))}function p(e){e.note=e}return hg=function(r,o){var a=n.parser(!0,{}),s={};if(t=s,e=function(t){return e=i.copyOptions(t),i.ensureFlagExists("ignoreDeclaration",e),i.ensureFlagExists("ignoreInstruction",e),i.ensureFlagExists("ignoreAttributes",e),i.ensureFlagExists("ignoreText",e),i.ensureFlagExists("ignoreComment",e),i.ensureFlagExists("ignoreCdata",e),i.ensureFlagExists("ignoreDoctype",e),i.ensureFlagExists("compact",e),i.ensureFlagExists("alwaysChildren",e),i.ensureFlagExists("addParent",e),i.ensureFlagExists("trim",e),i.ensureFlagExists("nativeType",e),i.ensureFlagExists("nativeTypeAttributes",e),i.ensureFlagExists("sanitize",e),i.ensureFlagExists("instructionHasAttributes",e),i.ensureFlagExists("captureSpacesBetweenElements",e),i.ensureAlwaysArrayExists(e),i.ensureKeyExists("declaration",e),i.ensureKeyExists("instruction",e),i.ensureKeyExists("attributes",e),i.ensureKeyExists("text",e),i.ensureKeyExists("comment",e),i.ensureKeyExists("cdata",e),i.ensureKeyExists("doctype",e),i.ensureKeyExists("type",e),i.ensureKeyExists("name",e),i.ensureKeyExists("elements",e),i.ensureKeyExists("parent",e),i.checkFnExists("doctype",e),i.checkFnExists("instruction",e),i.checkFnExists("cdata",e),i.checkFnExists("comment",e),i.checkFnExists("text",e),i.checkFnExists("instructionName",e),i.checkFnExists("elementName",e),i.checkFnExists("attributeName",e),i.checkFnExists("attributeValue",e),i.checkFnExists("attributes",e),e}(o),a.opt={strictEntities:!0},a.onopentag=u,a.ontext=l,a.oncomment=d,a.onclosetag=h,a.onerror=p,a.oncdata=f,a.ondoctype=m,a.onprocessinginstruction=c,a.write(r).close(),s[e.elementsKey]){var g=s[e.elementsKey];delete s[e.elementsKey],s[e.elementsKey]=g,delete s.text}return s}}function Rg(){if(pg)return mg;pg=1;var e=Ig(),t=Mg();return mg=function(n,i){var r,o,a;return r=function(t){var n=e.copyOptions(t);return e.ensureSpacesExists(n),n}(i),o=t(n,r),a="compact"in r&&r.compact?"_parent":"parent",("addParent"in r&&r.addParent?JSON.stringify(o,function(e,t){return e===a?"_":t},r.spaces):JSON.stringify(o,null,r.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}function zg(){if(bg)return gg;bg=1;var e,t,n=Ig(),i=Wg().isArray;function r(e,t,n){return(!n&&e.spaces?"\n":"")+Array(t+1).join(e.spaces)}function o(n,i,o){if(i.ignoreAttributes)return"";"attributesFn"in i&&(n=i.attributesFn(n,t,e));var a,s,c,u,l=[];for(a in n)n.hasOwnProperty(a)&&null!==n[a]&&void 0!==n[a]&&(u=i.noQuotesForNativeAttributes&&"string"!=typeof n[a]?"":'"',s=(s=""+n[a]).replace(/"/g,"""),c="attributeNameFn"in i?i.attributeNameFn(a,s,t,e):a,l.push(i.spaces&&i.indentAttributes?r(i,o+1,!1):" "),l.push(c+"="+u+("attributeValueFn"in i?i.attributeValueFn(s,a,t,e):s)+u));return n&&Object.keys(n).length&&i.spaces&&i.indentAttributes&&l.push(r(i,o,!1)),l.join("")}function a(n,i,r){return e=n,t="xml",i.ignoreDeclaration?"":"<?xml"+o(n[i.attributesKey],i,r)+"?>"}function s(n,i,r){if(i.ignoreInstruction)return"";var a;for(a in n)if(n.hasOwnProperty(a))break;var s="instructionNameFn"in i?i.instructionNameFn(a,n[a],t,e):a;if("object"==typeof n[a])return e=n,t=s,"<?"+s+o(n[a][i.attributesKey],i,r)+"?>";var c=n[a]?n[a]:"";return"instructionFn"in i&&(c=i.instructionFn(c,a,t,e)),"<?"+s+(c?" "+c:"")+"?>"}function c(n,i){return i.ignoreComment?"":"\x3c!--"+("commentFn"in i?i.commentFn(n,t,e):n)+"--\x3e"}function u(n,i){return i.ignoreCdata?"":"<![CDATA["+("cdataFn"in i?i.cdataFn(n,t,e):n.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function l(n,i){return i.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in i?i.doctypeFn(n,t,e):n)+">"}function d(n,i){return i.ignoreText?"":(n=(n=(n=""+n).replace(/&/g,"&")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in i?i.textFn(n,t,e):n)}function h(n,i,a,f){return n.reduce(function(n,m){var p=r(i,a,f&&!n);switch(m.type){case"element":return n+p+function(n,i,r){e=n,t=n.name;var a=[],s="elementNameFn"in i?i.elementNameFn(n.name,n):n.name;a.push("<"+s),n[i.attributesKey]&&a.push(o(n[i.attributesKey],i,r));var c=n[i.elementsKey]&&n[i.elementsKey].length||n[i.attributesKey]&&"preserve"===n[i.attributesKey]["xml:space"];return c||(c="fullTagEmptyElementFn"in i?i.fullTagEmptyElementFn(n.name,n):i.fullTagEmptyElement),c?(a.push(">"),n[i.elementsKey]&&n[i.elementsKey].length&&(a.push(h(n[i.elementsKey],i,r+1)),e=n,t=n.name),a.push(i.spaces&&function(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;default:return!0}return!1}(n,i)?"\n"+Array(r+1).join(i.spaces):""),a.push("</"+s+">")):a.push("/>"),a.join("")}(m,i,a);case"comment":return n+p+c(m[i.commentKey],i);case"doctype":return n+p+l(m[i.doctypeKey],i);case"cdata":return n+(i.indentCdata?p:"")+u(m[i.cdataKey],i);case"text":return n+(i.indentText?p:"")+d(m[i.textKey],i);case"instruction":var g={};return g[m[i.nameKey]]=m[i.attributesKey]?m:m[i.instructionKey],n+(i.indentInstruction?p:"")+s(g,i,a)}},"")}function f(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:default:return!0}return!1}function m(n,i,a,s,c){e=n,t=i;var u="elementNameFn"in a?a.elementNameFn(i,n):i;if(null==n||""===n)return"fullTagEmptyElementFn"in a&&a.fullTagEmptyElementFn(i,n)||a.fullTagEmptyElement?"<"+u+"></"+u+">":"<"+u+"/>";var l=[];if(i){if(l.push("<"+u),"object"!=typeof n)return l.push(">"+d(n,a)+"</"+u+">"),l.join("");n[a.attributesKey]&&l.push(o(n[a.attributesKey],a,s));var h=f(n,a,!0)||n[a.attributesKey]&&"preserve"===n[a.attributesKey]["xml:space"];if(h||(h="fullTagEmptyElementFn"in a?a.fullTagEmptyElementFn(i,n):a.fullTagEmptyElement),!h)return l.push("/>"),l.join("");l.push(">")}return l.push(p(n,a,s+1,!1)),e=n,t=i,i&&l.push((c?r(a,s,!1):"")+"</"+u+">"),l.join("")}function p(e,t,n,o){var h,p,g,b=[];for(p in e)if(e.hasOwnProperty(p))for(g=i(e[p])?e[p]:[e[p]],h=0;h<g.length;++h){switch(p){case t.declarationKey:b.push(a(g[h],t,n));break;case t.instructionKey:b.push((t.indentInstruction?r(t,n,o):"")+s(g[h],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:b.push((t.indentText?r(t,n,o):"")+d(g[h],t));break;case t.cdataKey:b.push((t.indentCdata?r(t,n,o):"")+u(g[h],t));break;case t.doctypeKey:b.push(r(t,n,o)+l(g[h],t));break;case t.commentKey:b.push(r(t,n,o)+c(g[h],t));break;default:b.push(r(t,n,o)+m(g[h],p,t,n,f(g[h],t)))}o=o&&!b.length}return b.join("")}return gg=function(i,r){r=function(e){var t=n.copyOptions(e);return n.ensureFlagExists("ignoreDeclaration",t),n.ensureFlagExists("ignoreInstruction",t),n.ensureFlagExists("ignoreAttributes",t),n.ensureFlagExists("ignoreText",t),n.ensureFlagExists("ignoreComment",t),n.ensureFlagExists("ignoreCdata",t),n.ensureFlagExists("ignoreDoctype",t),n.ensureFlagExists("compact",t),n.ensureFlagExists("indentText",t),n.ensureFlagExists("indentCdata",t),n.ensureFlagExists("indentAttributes",t),n.ensureFlagExists("indentInstruction",t),n.ensureFlagExists("fullTagEmptyElement",t),n.ensureFlagExists("noQuotesForNativeAttributes",t),n.ensureSpacesExists(t),"number"==typeof t.spaces&&(t.spaces=Array(t.spaces+1).join(" ")),n.ensureKeyExists("declaration",t),n.ensureKeyExists("instruction",t),n.ensureKeyExists("attributes",t),n.ensureKeyExists("text",t),n.ensureKeyExists("comment",t),n.ensureKeyExists("cdata",t),n.ensureKeyExists("doctype",t),n.ensureKeyExists("type",t),n.ensureKeyExists("name",t),n.ensureKeyExists("elements",t),n.checkFnExists("doctype",t),n.checkFnExists("instruction",t),n.checkFnExists("cdata",t),n.checkFnExists("comment",t),n.checkFnExists("text",t),n.checkFnExists("instructionName",t),n.checkFnExists("elementName",t),n.checkFnExists("attributeName",t),n.checkFnExists("attributeValue",t),n.checkFnExists("attributes",t),n.checkFnExists("fullTagEmptyElement",t),t}(r);var o=[];return e=i,t="_root_",r.compact?o.push(p(i,r,0,!0)):(i[r.declarationKey]&&o.push(a(i[r.declarationKey],r,0)),i[r.elementsKey]&&i[r.elementsKey].length&&o.push(h(i[r.elementsKey],r,0,!o.length))),o.join("")}}var _g=function(){if(xg)return wg;xg=1;var e=Mg(),t=Rg(),n=zg(),i=function(){if(yg)return vg;yg=1;var e=zg();return vg=function(t,n){t instanceof Buffer&&(t=t.toString());var i=null;if("string"==typeof t)try{i=JSON.parse(t)}catch(r){throw new Error("The JSON structure is invalid")}else i=t;return e(i,n)}}();return wg={xml2js:e,xml2json:t,js2xml:n,json2xml:i}}();const Og=e=>{switch(e.type){case void 0:case"element":const t=new Lg(e.name,e.attributes),n=e.elements||[];for(const e of n){const n=Og(e);void 0!==n&&t.push(n)}return t;case"text":return e.text;default:return}};class Pg extends Qd{}class Lg extends Yd{static fromXmlString(e){const t=_g.xml2js(e,{compact:!1});return Og(t)}constructor(e,t){super(e),t&&this.root.push(new Pg(t))}push(e){this.root.push(e)}}class Ng extends Yd{constructor(e){super(""),this.oo=e}prepForXml(e){return{oo:this.oo}}}class qg extends Yd{constructor(e,t){super(e),t&&(this.root=t.root)}}const jg=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},Hg=e=>{const t=jg(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},Vg=(e,t)=>{const n=2*t;if(e.length!==n||isNaN(Number(`0x${e}`)))throw new Error(`Invalid hex value '${e}'. Expected ${n} digit hex value`);return e},$g=e=>Vg(e,1),Gg=e=>{const t=e.slice(-2),n=e.substring(0,e.length-2);return`${Number(n)}${t}`},Kg=e=>{const t=Gg(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Zg=e=>{if("auto"===e)return e;const t="#"===e.charAt(0)?e.substring(1):e;return Vg(t,3)},Xg=e=>"string"==typeof e?Gg(e):jg(e),Yg=e=>"string"==typeof e?Kg(e):Hg(e),Jg=e=>"string"==typeof e?Kg(e):Hg(e),Qg=e=>"number"==typeof e?jg(e):"%"===e.slice(-1)?(e=>{const t=e.substring(0,e.length-1);return`${Number(t)}%`})(e):Gg(e),eb=Hg,tb=Hg;class nb extends Yd{constructor(e,t=!0){super(e),!0!==t&&this.root.push(new th({val:t}))}}class ib extends Yd{constructor(e,t){super(e),this.root.push(new th({val:Yg(t)}))}}class rb extends Yd{constructor(e,t){super(e),this.root.push(new th({val:t}))}}const ob=(e,t)=>new ub({name:e,attributes:{value:{key:"w:val",value:t}}});class ab extends Yd{constructor(e,t){super(e),this.root.push(new th({val:t}))}}class sb extends Yd{constructor(e,t){super(e),this.root.push(new th({val:t}))}}class cb extends Yd{constructor(e,t){super(e),this.root.push(t)}}class ub extends Yd{constructor({name:e,attributes:t,children:n}){super(e),t&&this.root.push(new eh(t)),n&&this.root.push(...n)}}const lb="start",db="center",hb="left",fb="right",mb="both";class pb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class gb extends Yd{constructor(e){super("w:jc"),this.root.push(new pb({val:e}))}}class bb extends Yd{constructor(e,{color:t,size:n,space:i,style:r}){super(e),this.root.push(new vb({style:r,color:void 0===t?void 0:Zg(t),size:void 0===n?void 0:eb(n),space:void 0===i?void 0:tb(i)}))}}class vb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const yb="single",wb="none";class xb extends Jd{constructor(e){super("w:pBdr"),e.top&&this.root.push(new bb("w:top",e.top)),e.bottom&&this.root.push(new bb("w:bottom",e.bottom)),e.left&&this.root.push(new bb("w:left",e.left)),e.right&&this.root.push(new bb("w:right",e.right))}}class Db extends Yd{constructor(){super("w:pBdr");const e=new bb("w:bottom",{color:"auto",space:1,style:yb,size:6});this.root.push(e)}}class Ub extends Yd{constructor({start:e,end:t,left:n,right:i,hanging:r,firstLine:o}){super("w:ind"),this.root.push(new eh({start:{key:"w:start",value:void 0===e?void 0:Xg(e)},end:{key:"w:end",value:void 0===t?void 0:Xg(t)},left:{key:"w:left",value:void 0===n?void 0:Xg(n)},right:{key:"w:right",value:void 0===i?void 0:Xg(i)},hanging:{key:"w:hanging",value:void 0===r?void 0:Jg(r)},firstLine:{key:"w:firstLine",value:void 0===o?void 0:Jg(o)}}))}}let Tb=class extends Yd{constructor(){super("w:br")}};const kb="begin",Ab="end",Fb="separate";class Sb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class Eb extends Yd{constructor(e){super("w:fldChar"),this.root.push(new Sb({type:kb,dirty:e}))}}class Cb extends Yd{constructor(e){super("w:fldChar"),this.root.push(new Sb({type:Fb,dirty:e}))}}class Bb extends Yd{constructor(e){super("w:fldChar"),this.root.push(new Sb({type:Ab,dirty:e}))}}const Wb="default",Ib="preserve";class Mb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{space:"xml:space"})}}class Rb extends Yd{constructor(){super("w:instrText"),this.root.push(new Mb({space:Ib})),this.root.push("PAGE")}}class zb extends Yd{constructor(){super("w:instrText"),this.root.push(new Mb({space:Ib})),this.root.push("NUMPAGES")}}class _b extends Yd{constructor(){super("w:instrText"),this.root.push(new Mb({space:Ib})),this.root.push("SECTIONPAGES")}}class Ob extends Yd{constructor(){super("w:instrText"),this.root.push(new Mb({space:Ib})),this.root.push("SECTION")}}class Pb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Lb extends Yd{constructor({fill:e,color:t,type:n}){super("w:shd"),this.root.push(new Pb({fill:void 0===e?void 0:Zg(e),color:void 0===t?void 0:Zg(t),type:n}))}}class Nb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const qb="dot";class jb extends Yd{constructor(e){super("w:em"),this.root.push(new th({val:e}))}}class Hb extends jb{constructor(e=qb){super(e)}}class Vb extends Yd{constructor(e){super("w:spacing"),this.root.push(new th({val:Xg(e)}))}}class $b extends Yd{constructor(e){super("w:color"),this.root.push(new th({val:Zg(e)}))}}class Gb extends Yd{constructor(e){super("w:highlight"),this.root.push(new th({val:e}))}}class Kb extends Yd{constructor(e){super("w:highlightCs"),this.root.push(new th({val:e}))}}class Zb extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Xb extends Yd{constructor(e,t){if(super("w:rFonts"),"string"==typeof e){const n=e;this.root.push(new Zb({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:t}))}else{const t=e;this.root.push(new Zb(t))}}}let Yb=class extends Yd{constructor(e){super("w:vertAlign"),this.root.push(new th({val:e}))}};class Jb extends Yb{constructor(){super("superscript")}}class Qb extends Yb{constructor(){super("subscript")}}const ev="single";class tv extends Yd{constructor(e=ev,t){super("w:u"),this.root.push(new th({val:e,color:void 0===t?void 0:Zg(t)}))}}class nv extends Jd{constructor(e){var t,n;if(super("w:rPr"),!e)return;e.style&&this.push(new rb("w:rStyle",e.style)),e.font&&("string"==typeof e.font?this.push(new Xb(e.font)):"name"in e.font?this.push(new Xb(e.font.name,e.font.hint)):this.push(new Xb(e.font))),void 0!==e.bold&&this.push(new nb("w:b",e.bold)),(void 0===e.boldComplexScript&&void 0!==e.bold||e.boldComplexScript)&&this.push(new nb("w:bCs",null!=(t=e.boldComplexScript)?t:e.bold)),void 0!==e.italics&&this.push(new nb("w:i",e.italics)),(void 0===e.italicsComplexScript&&void 0!==e.italics||e.italicsComplexScript)&&this.push(new nb("w:iCs",null!=(n=e.italicsComplexScript)?n:e.italics)),void 0!==e.smallCaps?this.push(new nb("w:smallCaps",e.smallCaps)):void 0!==e.allCaps&&this.push(new nb("w:caps",e.allCaps)),void 0!==e.strike&&this.push(new nb("w:strike",e.strike)),void 0!==e.doubleStrike&&this.push(new nb("w:dstrike",e.doubleStrike)),void 0!==e.emboss&&this.push(new nb("w:emboss",e.emboss)),void 0!==e.imprint&&this.push(new nb("w:imprint",e.imprint)),void 0!==e.noProof&&this.push(new nb("w:noProof",e.noProof)),void 0!==e.snapToGrid&&this.push(new nb("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new nb("w:vanish",e.vanish)),e.color&&this.push(new $b(e.color)),e.characterSpacing&&this.push(new Vb(e.characterSpacing)),void 0!==e.scale&&this.push(new ab("w:w",e.scale)),e.kern&&this.push(new ib("w:kern",e.kern)),e.position&&this.push(new rb("w:position",e.position)),void 0!==e.size&&this.push(new ib("w:sz",e.size));const i=void 0===e.sizeComplexScript||!0===e.sizeComplexScript?e.size:e.sizeComplexScript;i&&this.push(new ib("w:szCs",i)),e.highlight&&this.push(new Gb(e.highlight));const r=void 0===e.highlightComplexScript||!0===e.highlightComplexScript?e.highlight:e.highlightComplexScript;r&&this.push(new Kb(r)),e.underline&&this.push(new tv(e.underline.type,e.underline.color)),e.effect&&this.push(new rb("w:effect",e.effect)),e.border&&this.push(new bb("w:bdr",e.border)),e.shading&&this.push(new Lb(e.shading)),e.subScript&&this.push(new Qb),e.superScript&&this.push(new Jb),void 0!==e.rightToLeft&&this.push(new nb("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(new Hb(e.emphasisMark.type)),e.language&&this.push((e=>new ub({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}))(e.language)),e.specVanish&&this.push(new nb("w:specVanish",e.vanish)),e.math&&this.push(new nb("w:oMath",e.math)),e.revision&&this.push(new iv(e.revision))}push(e){this.root.push(e)}}class iv extends Yd{constructor(e){super("w:rPrChange"),this.root.push(new Nb({id:e.id,author:e.author,date:e.date})),this.addChildElement(new nv(e))}}class rv extends Yd{constructor(e){var t;super("w:t"),"string"==typeof e?(this.root.push(new Mb({space:Ib})),this.root.push(e)):(this.root.push(new Mb({space:null!=(t=e.space)?t:Wb})),this.root.push(e.text))}}const ov="CURRENT",av="TOTAL_PAGES",sv="TOTAL_PAGES_IN_SECTION",cv="SECTION";class uv extends Yd{constructor(e){if(super("w:r"),Kd(this,"properties"),this.properties=new nv(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new Tb);if(e.children)for(const t of e.children)if("string"!=typeof t)this.root.push(t);else switch(t){case ov:this.root.push(new Eb),this.root.push(new Rb),this.root.push(new Cb),this.root.push(new Bb);break;case av:this.root.push(new Eb),this.root.push(new zb),this.root.push(new Cb),this.root.push(new Bb);break;case sv:this.root.push(new Eb),this.root.push(new _b),this.root.push(new Cb),this.root.push(new Bb);break;case cv:this.root.push(new Eb),this.root.push(new Ob),this.root.push(new Cb),this.root.push(new Bb);break;default:this.root.push(new rv(t))}else void 0!==e.text&&this.root.push(new rv(e.text))}}class lv extends uv{constructor(e){super("string"==typeof e?{text:e}:e)}}var dv,hv,fv,mv={},pv={};function gv(){if(hv)return dv;function e(e,t){if(!e)throw new Error(t||"Assertion failed")}return hv=1,dv=e,e.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)},dv}function bv(){if(fv)return pv;fv=1;var e=gv(),t=lh();function n(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function r(e){return 1===e.length?"0"+e:e}function o(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}return pv.inherits=t,pv.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)i.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?i[r++]=a:a<2048?(i[r++]=a>>6|192,i[r++]=63&a|128):n(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),i[r++]=a>>18|240,i[r++]=a>>12&63|128,i[r++]=a>>6&63|128,i[r++]=63&a|128):(i[r++]=a>>12|224,i[r++]=a>>6&63|128,i[r++]=63&a|128)}else for(o=0;o<e.length;o++)i[o]=0|e[o];return i},pv.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t},pv.htonl=i,pv.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var a=e[r];"little"===t&&(a=i(a)),n+=o(a.toString(16))}return n},pv.zero2=r,pv.zero8=o,pv.join32=function(t,n,i,r){var o=i-n;e(o%4==0);for(var a=new Array(o/4),s=0,c=n;s<a.length;s++,c+=4){var u;u="big"===r?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c],a[s]=u>>>0}return a},pv.split32=function(e,t){for(var n=new Array(4*e.length),i=0,r=0;i<e.length;i++,r+=4){var o=e[i];"big"===t?(n[r]=o>>>24,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=255&o):(n[r+3]=o>>>24,n[r+2]=o>>>16&255,n[r+1]=o>>>8&255,n[r]=255&o)}return n},pv.rotr32=function(e,t){return e>>>t|e<<32-t},pv.rotl32=function(e,t){return e<<t|e>>>32-t},pv.sum32=function(e,t){return e+t>>>0},pv.sum32_3=function(e,t,n){return e+t+n>>>0},pv.sum32_4=function(e,t,n,i){return e+t+n+i>>>0},pv.sum32_5=function(e,t,n,i,r){return e+t+n+i+r>>>0},pv.sum64=function(e,t,n,i){var r=e[t],o=i+e[t+1]>>>0,a=(o<i?1:0)+n+r;e[t]=a>>>0,e[t+1]=o},pv.sum64_hi=function(e,t,n,i){return(t+i>>>0<t?1:0)+e+n>>>0},pv.sum64_lo=function(e,t,n,i){return t+i>>>0},pv.sum64_4_hi=function(e,t,n,i,r,o,a,s){var c=0,u=t;return c+=(u=u+i>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+r+a+(c+=(u=u+s>>>0)<s?1:0)>>>0},pv.sum64_4_lo=function(e,t,n,i,r,o,a,s){return t+i+o+s>>>0},pv.sum64_5_hi=function(e,t,n,i,r,o,a,s,c,u){var l=0,d=t;return l+=(d=d+i>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+s>>>0)<s?1:0,e+n+r+a+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},pv.sum64_5_lo=function(e,t,n,i,r,o,a,s,c,u){return t+i+o+s+u>>>0},pv.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},pv.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},pv.shr64_hi=function(e,t,n){return e>>>n},pv.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},pv}var vv,yv={};function wv(){if(vv)return yv;vv=1;var e=bv(),t=gv();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this.Co=this.blockSize/8,this.Bo=this.blockSize/32}return yv.BlockHash=n,n.prototype.update=function(t,n){if(t=e.toArray(t,n),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this.Co){var i=(t=this.pending).length%this.Co;this.pending=t.slice(t.length-i,t.length),0===this.pending.length&&(this.pending=null),t=e.join32(t,0,t.length-i,this.endian);for(var r=0;r<t.length;r+=this.Bo)this.Wo(t,r,r+this.Bo)}return this},n.prototype.digest=function(e){return this.update(this.Io()),t(null===this.pending),this.Mo(e)},n.prototype.Io=function(){var e=this.pendingTotal,t=this.Co,n=t-(e+this.padLength)%t,i=new Array(n+this.padLength);i[0]=128;for(var r=1;r<n;r++)i[r]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)i[r++]=0;i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=e>>>24&255,i[r++]=e>>>16&255,i[r++]=e>>>8&255,i[r++]=255&e}else for(i[r++]=255&e,i[r++]=e>>>8&255,i[r++]=e>>>16&255,i[r++]=e>>>24&255,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,o=8;o<this.padLength;o++)i[r++]=0;return i},yv}var xv,Dv,Uv,Tv,kv,Av,Fv,Sv,Ev,Cv,Bv,Wv,Iv={},Mv={};function Rv(){if(xv)return Mv;xv=1;var e=bv().rotr32;function t(e,t,n){return e&t^~e&n}function n(e,t,n){return e&t^e&n^t&n}function i(e,t,n){return e^t^n}return Mv.ft_1=function(e,r,o,a){return 0===e?t(r,o,a):1===e||3===e?i(r,o,a):2===e?n(r,o,a):void 0},Mv.ch32=t,Mv.maj32=n,Mv.p32=i,Mv.s0_256=function(t){return e(t,2)^e(t,13)^e(t,22)},Mv.s1_256=function(t){return e(t,6)^e(t,11)^e(t,25)},Mv.g0_256=function(t){return e(t,7)^e(t,18)^t>>>3},Mv.g1_256=function(t){return e(t,17)^e(t,19)^t>>>10},Mv}function zv(){if(kv)return Tv;kv=1;var e=bv(),t=wv(),n=Rv(),i=gv(),r=e.sum32,o=e.sum32_4,a=e.sum32_5,s=n.ch32,c=n.maj32,u=n.s0_256,l=n.s1_256,d=n.g0_256,h=n.g1_256,f=t.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function p(){if(!(this instanceof p))return new p;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}return e.inherits(p,f),Tv=p,p.blockSize=512,p.outSize=256,p.hmacStrength=192,p.padLength=64,p.prototype.Wo=function(e,t){for(var n=this.W,f=0;f<16;f++)n[f]=e[t+f];for(;f<n.length;f++)n[f]=o(h(n[f-2]),n[f-7],d(n[f-15]),n[f-16]);var m=this.h[0],p=this.h[1],g=this.h[2],b=this.h[3],v=this.h[4],y=this.h[5],w=this.h[6],x=this.h[7];for(i(this.k.length===n.length),f=0;f<n.length;f++){var D=a(x,l(v),s(v,y,w),this.k[f],n[f]),U=r(u(m),c(m,p,g));x=w,w=y,y=v,v=r(b,D),b=g,g=p,p=m,m=r(D,U)}this.h[0]=r(this.h[0],m),this.h[1]=r(this.h[1],p),this.h[2]=r(this.h[2],g),this.h[3]=r(this.h[3],b),this.h[4]=r(this.h[4],v),this.h[5]=r(this.h[5],y),this.h[6]=r(this.h[6],w),this.h[7]=r(this.h[7],x)},p.prototype.Mo=function(t){return"hex"===t?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Tv}function _v(){if(Ev)return Sv;Ev=1;var e=bv(),t=wv(),n=gv(),i=e.rotr64_hi,r=e.rotr64_lo,o=e.shr64_hi,a=e.shr64_lo,s=e.sum64,c=e.sum64_hi,u=e.sum64_lo,l=e.sum64_4_hi,d=e.sum64_4_lo,h=e.sum64_5_hi,f=e.sum64_5_lo,m=t.BlockHash,p=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function g(){if(!(this instanceof g))return new g;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=p,this.W=new Array(160)}function b(e,t,n,i,r){var o=e&n^~e&r;return o<0&&(o+=4294967296),o}function v(e,t,n,i,r,o){var a=t&i^~t&o;return a<0&&(a+=4294967296),a}function y(e,t,n,i,r){var o=e&n^e&r^n&r;return o<0&&(o+=4294967296),o}function w(e,t,n,i,r,o){var a=t&i^t&o^i&o;return a<0&&(a+=4294967296),a}function x(e,t){var n=i(e,t,28)^i(t,e,2)^i(t,e,7);return n<0&&(n+=4294967296),n}function D(e,t){var n=r(e,t,28)^r(t,e,2)^r(t,e,7);return n<0&&(n+=4294967296),n}function U(e,t){var n=i(e,t,14)^i(e,t,18)^i(t,e,9);return n<0&&(n+=4294967296),n}function T(e,t){var n=r(e,t,14)^r(e,t,18)^r(t,e,9);return n<0&&(n+=4294967296),n}function k(e,t){var n=i(e,t,1)^i(e,t,8)^o(e,t,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=r(e,t,1)^r(e,t,8)^a(e,t,7);return n<0&&(n+=4294967296),n}function F(e,t){var n=i(e,t,19)^i(t,e,29)^o(e,t,6);return n<0&&(n+=4294967296),n}function S(e,t){var n=r(e,t,19)^r(t,e,29)^a(e,t,6);return n<0&&(n+=4294967296),n}return e.inherits(g,m),Sv=g,g.blockSize=1024,g.outSize=512,g.hmacStrength=192,g.padLength=128,g.prototype.Ro=function(e,t){for(var n=this.W,i=0;i<32;i++)n[i]=e[t+i];for(;i<n.length;i+=2){var r=F(n[i-4],n[i-3]),o=S(n[i-4],n[i-3]),a=n[i-14],s=n[i-13],c=k(n[i-30],n[i-29]),u=A(n[i-30],n[i-29]),h=n[i-32],f=n[i-31];n[i]=l(r,o,a,s,c,u,h,f),n[i+1]=d(r,o,a,s,c,u,h,f)}},g.prototype.Wo=function(e,t){this.Ro(e,t);var i=this.W,r=this.h[0],o=this.h[1],a=this.h[2],l=this.h[3],d=this.h[4],m=this.h[5],p=this.h[6],g=this.h[7],k=this.h[8],A=this.h[9],F=this.h[10],S=this.h[11],E=this.h[12],C=this.h[13],B=this.h[14],W=this.h[15];n(this.k.length===i.length);for(var I=0;I<i.length;I+=2){var M=B,R=W,z=U(k,A),_=T(k,A),O=b(k,A,F,S,E),P=v(k,A,F,S,E,C),L=this.k[I],N=this.k[I+1],q=i[I],j=i[I+1],H=h(M,R,z,_,O,P,L,N,q,j),V=f(M,R,z,_,O,P,L,N,q,j);M=x(r,o),R=D(r,o),z=y(r,o,a,l,d),_=w(r,o,a,l,d,m);var $=c(M,R,z,_),G=u(M,R,z,_);B=E,W=C,E=F,C=S,F=k,S=A,k=c(p,g,H,V),A=u(g,g,H,V),p=d,g=m,d=a,m=l,a=r,l=o,r=c(H,V,$,G),o=u(H,V,$,G)}s(this.h,0,r,o),s(this.h,2,a,l),s(this.h,4,d,m),s(this.h,6,p,g),s(this.h,8,k,A),s(this.h,10,F,S),s(this.h,12,E,C),s(this.h,14,B,W)},g.prototype.Mo=function(t){return"hex"===t?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Sv}function Ov(){return Wv||(Wv=1,Iv.sha1=function(){if(Uv)return Dv;Uv=1;var e=bv(),t=wv(),n=Rv(),i=e.rotl32,r=e.sum32,o=e.sum32_5,a=n.ft_1,s=t.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function u(){if(!(this instanceof u))return new u;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return e.inherits(u,s),Dv=u,u.blockSize=512,u.outSize=160,u.hmacStrength=80,u.padLength=64,u.prototype.Wo=function(e,t){for(var n=this.W,s=0;s<16;s++)n[s]=e[t+s];for(;s<n.length;s++)n[s]=i(n[s-3]^n[s-8]^n[s-14]^n[s-16],1);var u=this.h[0],l=this.h[1],d=this.h[2],h=this.h[3],f=this.h[4];for(s=0;s<n.length;s++){var m=~~(s/20),p=o(i(u,5),a(m,l,d,h),f,n[s],c[m]);f=h,h=d,d=i(l,30),l=u,u=p}this.h[0]=r(this.h[0],u),this.h[1]=r(this.h[1],l),this.h[2]=r(this.h[2],d),this.h[3]=r(this.h[3],h),this.h[4]=r(this.h[4],f)},u.prototype.Mo=function(t){return"hex"===t?e.toHex32(this.h,"big"):e.split32(this.h,"big")},Dv}(),Iv.sha224=function(){if(Fv)return Av;Fv=1;var e=bv(),t=zv();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return e.inherits(n,t),Av=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype.Mo=function(t){return"hex"===t?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")},Av}(),Iv.sha256=zv(),Iv.sha384=function(){if(Bv)return Cv;Bv=1;var e=bv(),t=_v();function n(){if(!(this instanceof n))return new n;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return e.inherits(n,t),Cv=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype.Mo=function(t){return"hex"===t?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")},Cv}(),Iv.sha512=_v()),Iv}var Pv,Lv,Nv,qv,jv,Hv={};qv||(qv=1,(jv=mv).utils=bv(),jv.common=wv(),jv.sha=Ov(),jv.ripemd=function(){if(Pv)return Hv;Pv=1;var e=bv(),t=wv(),n=e.rotl32,i=e.sum32,r=e.sum32_3,o=e.sum32_4,a=t.BlockHash;function s(){if(!(this instanceof s))return new s;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(e,t,n,i){return e<=15?t^n^i:e<=31?t&n|~t&i:e<=47?(t|~n)^i:e<=63?t&i|n&~i:t^(n|~i)}function u(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function l(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}e.inherits(s,a),Hv.ripemd160=s,s.blockSize=512,s.outSize=160,s.hmacStrength=192,s.padLength=64,s.prototype.Wo=function(e,t){for(var a=this.h[0],s=this.h[1],p=this.h[2],g=this.h[3],b=this.h[4],v=a,y=s,w=p,x=g,D=b,U=0;U<80;U++){var T=i(n(o(a,c(U,s,p,g),e[d[U]+t],u(U)),f[U]),b);a=b,b=g,g=n(p,10),p=s,s=T,T=i(n(o(v,c(79-U,y,w,x),e[h[U]+t],l(U)),m[U]),D),v=D,D=x,x=n(w,10),w=y,y=T}T=r(this.h[1],p,x),this.h[1]=r(this.h[2],g,D),this.h[2]=r(this.h[3],b,v),this.h[3]=r(this.h[4],a,y),this.h[4]=r(this.h[0],s,w),this.h[0]=T},s.prototype.Mo=function(t){return"hex"===t?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],h=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Hv}(),jv.hmac=function(){if(Nv)return Lv;Nv=1;var e=bv(),t=gv();function n(t,i,r){if(!(this instanceof n))return new n(t,i,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this.Vt(e.toArray(i,r))}return Lv=n,n.prototype.Vt=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),t(e.length<=this.blockSize);for(var n=e.length;n<this.blockSize;n++)e.push(0);for(n=0;n<e.length;n++)e[n]^=54;for(this.inner=(new this.Hash).update(e),n=0;n<e.length;n++)e[n]^=106;this.outer=(new this.Hash).update(e)},n.prototype.update=function(e,t){return this.inner.update(e,t),this},n.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},Lv}(),jv.sha1=jv.sha.sha1,jv.sha256=jv.sha.sha256,jv.sha224=jv.sha.sha224,jv.sha384=jv.sha.sha384,jv.sha512=jv.sha.sha512,jv.ripemd160=jv.ripemd.ripemd160);const Vv=e=>Math.floor(72*e*20),$v=(e=0)=>{let t=e;return()=>++t},Gv=()=>((e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})().toLowerCase(),Kv=e=>((e,t=21)=>(n=t)=>{let i="",r=0|n;for(;r--;)i+=e[Math.random()*e.length|0];return i})("1234567890abcdef",e)();class Zv extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{xmlns:"xmlns"})}}class Xv extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const Yv="External";class Jv extends Yd{constructor(e,t,n,i){super("Relationship"),this.root.push(new Xv({id:e,type:t,target:n,targetMode:i}))}}class Qv extends Yd{constructor(){super("Relationships"),this.root.push(new Zv({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,n,i){const r=new Jv(`rId${e}`,t,n,i);return this.root.push(r),r}get RelationshipCount(){return this.root.length-1}}class ey extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class ty extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class ny extends Yd{constructor({id:e,initials:t,author:n,date:i=new Date,children:r}){super("w:comment"),this.root.push(new ey({id:e,initials:t,author:n,date:i.toISOString()}));for(const o of r)this.root.push(o)}}class iy extends Yd{constructor({children:e}){super("w:comments"),Kd(this,"relationships"),this.root.push(new ty({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}));for(const t of e)this.root.push(new ny(t));this.relationships=new Qv}get Relationships(){return this.relationships}}class ry extends Yd{constructor(){super("w:pageBreakBefore")}}const oy="auto";class ay extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class sy extends Yd{constructor(e){super("w:spacing"),this.root.push(new ay(e))}}const cy="Heading1",uy="Heading2",ly="Heading3",dy="Heading4",hy="Heading5",fy="Heading6";let my=class extends Yd{constructor(e){super("w:pStyle"),this.root.push(new th({val:e}))}};class py extends Yd{constructor(e){super("w:tabs");for(const t of e)this.root.push(new yy(t))}}const gy="left",by="right";class vy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class yy extends Yd{constructor({type:e,position:t,leader:n}){super("w:tab"),this.root.push(new vy({val:e,pos:t,leader:n}))}}class wy extends Yd{constructor(e,t){super("w:numPr"),this.root.push(new xy(t)),this.root.push(new Dy(e))}}class xy extends Yd{constructor(e){if(super("w:ilvl"),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new th({val:e}))}}class Dy extends Yd{constructor(e){super("w:numId"),this.root.push(new th({val:"string"==typeof e?`{${e}}`:e}))}}class Uy extends Yd{constructor(){super(...arguments),Kd(this,"fileChild",Symbol())}}class Ty extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class ky extends Yd{constructor(e,t,n){super("w:hyperlink"),Kd(this,"linkId"),this.linkId=t;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},r=new Ty(i);this.root.push(r),e.forEach(e=>{this.root.push(e)})}}class Ay extends Yd{constructor(e){super("w:externalHyperlink"),this.options=e}}class Fy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class Sy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{id:"w:id"})}}class Ey{constructor(e){Kd(this,"bookmarkUniqueNumericId",$v()),Kd(this,"start"),Kd(this,"children"),Kd(this,"end");const t=this.bookmarkUniqueNumericId();this.start=new Cy(e.id,t),this.children=e.children,this.end=new By(t)}}class Cy extends Yd{constructor(e,t){super("w:bookmarkStart");const n=new Fy({name:e,id:t});this.root.push(n)}}class By extends Yd{constructor(e){super("w:bookmarkEnd");const t=new Sy({id:e});this.root.push(t)}}class Wy extends Yd{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new th({val:e}))}}Gd($d({},{TOP:"top",CENTER:"center",BOTTOM:"bottom"}),{BOTH:"both"});class Iy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{verticalAlign:"w:val"})}}class My extends Yd{constructor(e){super("w:vAlign"),this.root.push(new Iy({verticalAlign:e}))}}class Ry extends Yd{constructor({space:e,count:t,separate:n,equalWidth:i,children:r}){super("w:cols"),this.root.push(new eh({space:{key:"w:space",value:void 0===e?void 0:Jg(e)},count:{key:"w:num",value:void 0===t?void 0:jg(t)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&r&&r.forEach(e=>this.addChildElement(e))}}const zy="default",_y="first",Oy="even";class Py extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Ly="w:headerReference",Ny="w:footerReference";class qy extends Yd{constructor(e,t){super(e),this.root.push(new Py({type:t.type||zy,id:`rId${t.id}`}))}}class jy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class Hy extends Jd{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new jy({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new jy({})),e.pageBorderTop&&this.root.push(new bb("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new bb("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new bb("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new bb("w:right",e.pageBorderRight))}}class Vy extends Yd{constructor(e,t,n,i,r,o,a){super("w:pgMar"),this.root.push(new eh({top:{key:"w:top",value:Xg(e)},right:{key:"w:right",value:Jg(t)},bottom:{key:"w:bottom",value:Xg(n)},left:{key:"w:left",value:Jg(i)},header:{key:"w:header",value:Jg(r)},footer:{key:"w:footer",value:Jg(o)},gutter:{key:"w:gutter",value:Jg(a)}}))}}class $y extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class Gy extends Yd{constructor({start:e,formatType:t,separator:n}){super("w:pgNumType"),this.root.push(new $y({start:void 0===e?void 0:jg(e),formatType:t,separator:n}))}}const Ky="portrait",Zy="landscape";class Xy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class Yy extends Yd{constructor(e){super("w:textDirection"),this.root.push(new Xy({val:e}))}}class Jy extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class Qy extends Yd{constructor(e){super("w:type"),this.root.push(new Jy({val:e}))}}const ew=1440,tw=1440,nw=1440,iw=1440,rw=708,ow=708,aw=0,sw=11906,cw=16838,uw=Ky;class lw extends Yd{constructor({page:{size:{width:e=sw,height:t=cw,orientation:n=uw}={},margin:{top:i=ew,right:r=tw,bottom:o=nw,left:a=iw,header:s=rw,footer:c=ow,gutter:u=aw}={},pageNumbers:l={},borders:d,textDirection:h}={},grid:{linePitch:f=360,charSpace:m,type:p}={},headerWrapperGroup:g={},footerWrapperGroup:b={},lineNumbers:v,titlePage:y,verticalAlign:w,column:x,type:D}={}){super("w:sectPr"),this.addHeaderFooterGroup(Ly,g),this.addHeaderFooterGroup(Ny,b),D&&this.root.push(new Qy(D)),this.root.push((({width:e,height:t,orientation:n,code:i})=>{const r=Jg(e),o=Jg(t);return new ub({name:"w:pgSz",attributes:{width:{key:"w:w",value:n===Zy?o:r},height:{key:"w:h",value:n===Zy?r:o},orientation:{key:"w:orient",value:n},code:{key:"w:code",value:i}}})})({width:e,height:t,orientation:n})),this.root.push(new Vy(i,r,o,a,s,c,u)),d&&this.root.push(new Hy(d)),v&&this.root.push((({countBy:e,start:t,restart:n,distance:i})=>new ub({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:void 0===e?void 0:jg(e)},start:{key:"w:start",value:void 0===t?void 0:jg(t)},restart:{key:"w:restart",value:n},distance:{key:"w:distance",value:void 0===i?void 0:Jg(i)}}}))(v)),this.root.push(new Gy(l)),x&&this.root.push(new Ry(x)),w&&this.root.push(new My(w)),void 0!==y&&this.root.push(new nb("w:titlePg",y)),h&&this.root.push(new Yy(h)),this.root.push((({type:e,linePitch:t,charSpace:n})=>new ub({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:jg(t)},charSpace:{key:"w:charSpace",value:n?jg(n):void 0}}}))({linePitch:f,charSpace:m,type:p}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new qy(e,{type:zy,id:t.default.View.ReferenceId})),t.first&&this.root.push(new qy(e,{type:_y,id:t.first.View.ReferenceId})),t.even&&this.root.push(new qy(e,{type:Oy,id:t.even.View.ReferenceId}))}}class dw extends Yd{constructor(){super("w:body"),Kd(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new lw(e))}prepForXml(e){return 1===this.sections.length&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new xw({}),n=new ww({});return n.push(e),t.addChildElement(n),t}}const hw={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"};class fw extends Qd{constructor(e,t){super($d({Ignorable:t},Object.fromEntries(e.map(e=>[e,hw[e]])))),Kd(this,"xmlKeys",$d({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(hw).map(e=>[e,`xmlns:${e}`]))))}}class mw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class pw extends Yd{constructor(e){super("w:background"),this.root.push(new mw({color:void 0===e.color?void 0:Zg(e.color),themeColor:e.themeColor,themeShade:void 0===e.themeShade?void 0:$g(e.themeShade),themeTint:void 0===e.themeTint?void 0:$g(e.themeTint)}))}}class gw extends Yd{constructor(e){super("w:document"),Kd(this,"body"),this.root.push(new fw(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new dw,e.background&&this.root.push(new pw(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}}class bw{constructor(e){Kd(this,"document"),Kd(this,"relationships"),this.document=new gw(e),this.relationships=new Qv}get View(){return this.document}get Relationships(){return this.relationships}}class vw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class yw extends Yd{constructor(){super("w:wordWrap"),this.root.push(new vw({val:0}))}}class ww extends Jd{constructor(e){var t,n;if(super("w:pPr"),Kd(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new my(e.heading)),e.bullet&&this.push(new my("ListParagraph")),e.numbering&&(e.style||e.heading||e.numbering.custom||this.push(new my("ListParagraph"))),e.style&&this.push(new my(e.style)),void 0!==e.keepNext&&this.push(new nb("w:keepNext",e.keepNext)),void 0!==e.keepLines&&this.push(new nb("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new ry),e.frame&&this.push((e=>{var t,n;return new ub({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:null==(t=e.space)?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:null==(n=e.space)?void 0:n.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})})(e.frame)),void 0!==e.widowControl&&this.push(new nb("w:widowControl",e.widowControl)),e.bullet&&this.push(new wy(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:null!=(t=e.numbering.instance)?t:0}),this.push(new wy(`${e.numbering.reference}-${null!=(n=e.numbering.instance)?n:0}`,e.numbering.level))):!1===e.numbering&&this.push(new wy(0,0)),e.border&&this.push(new xb(e.border)),e.thematicBreak&&this.push(new Db),e.shading&&this.push(new Lb(e.shading)),e.wordWrap&&this.push(new yw),e.overflowPunctuation&&this.push(new nb("w:overflowPunct",e.overflowPunctuation));const i=[...void 0!==e.rightTabStop?[{type:by,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...void 0!==e.leftTabStop?[{type:gy,position:e.leftTabStop}]:[]];i.length>0&&this.push(new py(i)),void 0!==e.bidirectional&&this.push(new nb("w:bidi",e.bidirectional)),e.spacing&&this.push(new sy(e.spacing)),e.indent&&this.push(new Ub(e.indent)),void 0!==e.contextualSpacing&&this.push(new nb("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new gb(e.alignment)),void 0!==e.outlineLevel&&this.push(new Wy(e.outlineLevel)),void 0!==e.suppressLineNumbers&&this.push(new nb("w:suppressLineNumbers",e.suppressLineNumbers)),void 0!==e.autoSpaceEastAsianText&&this.push(new nb("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new nv(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof bw)for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}}class xw extends Uy{constructor(e){if(super("w:p"),Kd(this,"properties"),"string"==typeof e)return this.properties=new ww({}),this.root.push(this.properties),this.root.push(new lv(e)),this;if(this.properties=new ww(e),this.root.push(this.properties),e.text&&this.root.push(new lv(e.text)),e.children)for(const t of e.children)if(t instanceof Ey){this.root.push(t.start);for(const e of t.children)this.root.push(e);this.root.push(t.end)}else this.root.push(t)}prepForXml(e){for(const t of this.root)if(t instanceof Ay){const n=this.root.indexOf(t),i=new ky(t.options.children,Gv());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,Yv),this.root[n]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}class Dw extends Yd{constructor(e){super("w:tblGrid");for(const t of e)this.root.push(new Uw(t))}}class Uw extends Yd{constructor(e){super("w:gridCol"),void 0!==e&&this.root.push(new eh({width:{key:"w:w",value:Jg(e)}}))}}const Tw="w:tblCellMar",kw="w:tcMar";class Aw extends Jd{constructor(e,{marginUnitType:t=Fw.DXA,top:n,left:i,bottom:r,right:o}){super(e),void 0!==n&&this.root.push(new Sw("w:top",{type:t,size:n})),void 0!==i&&this.root.push(new Sw("w:left",{type:t,size:i})),void 0!==r&&this.root.push(new Sw("w:bottom",{type:t,size:r})),void 0!==o&&this.root.push(new Sw("w:right",{type:t,size:o}))}}const Fw={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"};class Sw extends Yd{constructor(e,{type:t=Fw.AUTO,size:n}){super(e);let i=n;t===Fw.PERCENTAGE&&"number"==typeof n&&(i=`${n}%`),this.root.push(new eh({type:{key:"w:type",value:t},size:{key:"w:w",value:Qg(i)}}))}}class Ew extends Jd{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new bb("w:top",e.top)),e.start&&this.root.push(new bb("w:start",e.start)),e.left&&this.root.push(new bb("w:left",e.left)),e.bottom&&this.root.push(new bb("w:bottom",e.bottom)),e.end&&this.root.push(new bb("w:end",e.end)),e.right&&this.root.push(new bb("w:right",e.right))}}class Cw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class Bw extends Yd{constructor(e){super("w:gridSpan"),this.root.push(new Cw({val:jg(e)}))}}const Ww="continue",Iw="restart";class Mw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class Rw extends Yd{constructor(e){super("w:vMerge"),this.root.push(new Mw({val:e}))}}class zw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class _w extends Yd{constructor(e){super("w:textDirection"),this.root.push(new zw({val:e}))}}class Ow extends Jd{constructor(e){super("w:tcPr"),e.width&&this.root.push(new Sw("w:tcW",e.width)),e.columnSpan&&this.root.push(new Bw(e.columnSpan)),e.verticalMerge?this.root.push(new Rw(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Rw(Iw)),e.borders&&this.root.push(new Ew(e.borders)),e.shading&&this.root.push(new Lb(e.shading)),e.margins&&this.root.push(new Aw(kw,e.margins)),e.textDirection&&this.root.push(new _w(e.textDirection)),e.verticalAlign&&this.root.push(new My(e.verticalAlign))}}class Pw extends Yd{constructor(e){super("w:tc"),this.options=e,this.root.push(new Ow(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof xw||this.root.push(new xw({})),super.prepForXml(e)}}const Lw={style:wb,size:0,color:"auto"},Nw={style:yb,size:4,color:"auto"};class qw extends Yd{constructor(e){super("w:tblBorders"),e.top?this.root.push(new bb("w:top",e.top)):this.root.push(new bb("w:top",Nw)),e.left?this.root.push(new bb("w:left",e.left)):this.root.push(new bb("w:left",Nw)),e.bottom?this.root.push(new bb("w:bottom",e.bottom)):this.root.push(new bb("w:bottom",Nw)),e.right?this.root.push(new bb("w:right",e.right)):this.root.push(new bb("w:right",Nw)),e.insideHorizontal?this.root.push(new bb("w:insideH",e.insideHorizontal)):this.root.push(new bb("w:insideH",Nw)),e.insideVertical?this.root.push(new bb("w:insideV",e.insideVertical)):this.root.push(new bb("w:insideV",Nw))}}Kd(qw,"NONE",{top:Lw,bottom:Lw,left:Lw,right:Lw,insideHorizontal:Lw,insideVertical:Lw});class jw extends Yd{constructor({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:n,relativeHorizontalPosition:i,absoluteVerticalPosition:r,relativeVerticalPosition:o,bottomFromText:a,topFromText:s,leftFromText:c,rightFromText:u,overlap:l}){super("w:tblpPr"),this.root.push(new eh({leftFromText:{key:"w:leftFromText",value:void 0===c?void 0:Jg(c)},rightFromText:{key:"w:rightFromText",value:void 0===u?void 0:Jg(u)},topFromText:{key:"w:topFromText",value:void 0===s?void 0:Jg(s)},bottomFromText:{key:"w:bottomFromText",value:void 0===a?void 0:Jg(a)},absoluteHorizontalPosition:{key:"w:tblpX",value:void 0===n?void 0:Xg(n)},absoluteVerticalPosition:{key:"w:tblpY",value:void 0===r?void 0:Xg(r)},horizontalAnchor:{key:"w:horzAnchor",value:void 0===e?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:o},verticalAnchor:{key:"w:vertAnchor",value:t}})),l&&this.root.push(new sb("w:tblOverlap",l))}}class Hw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{type:"w:type"})}}class Vw extends Yd{constructor(e){super("w:tblLayout"),this.root.push(new Hw({type:e}))}}const $w="dxa";class Gw extends Yd{constructor({type:e=$w,value:t}){super("w:tblCellSpacing"),this.root.push(new eh({type:{key:"w:type",value:e},value:{key:"w:w",value:Qg(t)}}))}}class Kw extends Jd{constructor(e){super("w:tblPr"),e.style&&this.root.push(new rb("w:tblStyle",e.style)),e.float&&this.root.push(new jw(e.float)),void 0!==e.visuallyRightToLeft&&this.root.push(new nb("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new Sw("w:tblW",e.width)),e.alignment&&this.root.push(new gb(e.alignment)),e.indent&&this.root.push(new Sw("w:tblInd",e.indent)),e.borders&&this.root.push(new qw(e.borders)),e.shading&&this.root.push(new Lb(e.shading)),e.layout&&this.root.push(new Vw(e.layout)),e.cellMargin&&this.root.push(new Aw(Tw,e.cellMargin)),e.cellSpacing&&this.root.push(new Gw(e.cellSpacing))}}class Zw extends Uy{constructor({rows:e,width:t,columnWidths:n=Array(Math.max(...e.map(e=>e.CellCount))).fill(100),margins:i,indent:r,float:o,layout:a,style:s,borders:c,alignment:u,visuallyRightToLeft:l,cellSpacing:d}){super("w:tbl"),this.root.push(new Kw({borders:null!=c?c:{},width:null!=t?t:{size:100},indent:r,float:o,layout:a,style:s,alignment:u,cellMargin:i,visuallyRightToLeft:l,cellSpacing:d})),this.root.push(new Dw(n));for(const h of e)this.root.push(h);e.forEach((t,n)=>{if(n===e.length-1)return;let i=0;t.cells.forEach(t=>{if(t.options.rowSpan&&t.options.rowSpan>1){const r=new Pw({rowSpan:t.options.rowSpan-1,columnSpan:t.options.columnSpan,borders:t.options.borders,children:[],verticalMerge:Ww});e[n+1].addCellToColumnIndex(r,i)}i+=t.options.columnSpan||1})})}}class Xw extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class Yw extends Yd{constructor(e,t){super("w:trHeight"),this.root.push(new Xw({value:Jg(e),rule:t}))}}class Jw extends Jd{constructor(e){super("w:trPr"),void 0!==e.cantSplit&&this.root.push(new nb("w:cantSplit",e.cantSplit)),void 0!==e.tableHeader&&this.root.push(new nb("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new Yw(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(new Gw(e.cellSpacing))}}class Qw extends Yd{constructor(e){super("w:tr"),this.options=e,this.root.push(new Jw(e));for(const t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof Pw)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const n=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,n-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error("cell 'rootIndex' should between 1 to "+(this.root.length-1));let t=0;for(let n=1;n<e;n++){t+=this.root[n].options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let n=0,i=1;for(;n<=e;){if(i>=this.root.length){if(t)return this.root.length;throw new Error("cell 'columnIndex' should not great than "+(n-1))}const e=this.root[i];i+=1,n+=e&&e.options.columnSpan||1}return i-1}}class ex extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class tx extends Yd{constructor(){super("Properties"),this.root.push(new ex({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class nx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{xmlns:"xmlns"})}}class ix extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class rx extends Yd{constructor(e,t){super("Default"),this.root.push(new ix({contentType:e,extension:t}))}}class ox extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class ax extends Yd{constructor(e,t){super("Override"),this.root.push(new ox({contentType:e,partName:t}))}}class sx extends Yd{constructor(){super("Types"),this.root.push(new nx({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new rx("image/png","png")),this.root.push(new rx("image/jpeg","jpeg")),this.root.push(new rx("image/jpeg","jpg")),this.root.push(new rx("image/bmp","bmp")),this.root.push(new rx("image/gif","gif")),this.root.push(new rx("image/svg+xml","svg")),this.root.push(new rx("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new rx("application/xml","xml")),this.root.push(new rx("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new ax("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new ax("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class cx extends Yd{constructor(e){super("cp:coreProperties"),this.root.push(new fw(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new cb("dc:title",e.title)),e.subject&&this.root.push(new cb("dc:subject",e.subject)),e.creator&&this.root.push(new cb("dc:creator",e.creator)),e.keywords&&this.root.push(new cb("cp:keywords",e.keywords)),e.description&&this.root.push(new cb("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new cb("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new cb("cp:revision",String(e.revision))),this.root.push(new lx("dcterms:created")),this.root.push(new lx("dcterms:modified"))}}class ux extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{type:"xsi:type"})}}class lx extends Yd{constructor(e){super(e),this.root.push(new ux({type:"dcterms:W3CDTF"})),this.root.push((new Date).toISOString())}}class dx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class hx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class fx extends Yd{constructor(e,t){super("property"),this.root.push(new hx({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new mx(t.value))}}class mx extends Yd{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class px extends Yd{constructor(e){super("Properties"),Kd(this,"nextId"),Kd(this,"properties",[]),this.root.push(new dx({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(e=>this.root.push(e)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new fx(this.nextId++,e))}}const gx=({id:e,fontKey:t,subsetted:n},i)=>new ub({name:i,attributes:$d({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...n?[new nb("w:subsetted",n)]:[]]}),bx=({name:e,index:t,fontKey:n,characterSet:i})=>(({name:e,altName:t,panose1:n,charset:i,family:r,notTrueType:o,pitch:a,sig:s,embedRegular:c,embedBold:u,embedItalic:l,embedBoldItalic:d})=>new ub({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[ob("w:altName",t)]:[],...n?[ob("w:panose1",n)]:[],...i?[ob("w:charset",i)]:[],ob("w:family",r),...o?[new nb("w:notTrueType",o)]:[],ob("w:pitch",a),...s?[new ub({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...c?[gx(c,"w:embedRegular")]:[],...u?[gx(u,"w:embedBold")]:[],...l?[gx(l,"w:embedItalic")]:[],...d?[gx(d,"w:embedBoldItalic")]:[]]}))({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:i,family:"auto",pitch:"variable",embedRegular:{fontKey:n,id:`rId${t}`}});class vx{constructor(e){var t;Kd(this,"fontTable"),Kd(this,"relationships"),Kd(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(e=>Gd($d({},e),{fontKey:`${Kv(8)}-${Kv(4)}-${Kv(4)}-${Kv(4)}-${Kv(12)}`})),this.fontTable=(t=this.fontOptionsWithKey,new ub({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((e,t)=>bx({name:e.name,index:t+1,fontKey:e.fontKey}))})),this.relationships=new Qv;for(let n=0;n<e.length;n++)this.relationships.createRelationship(n+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/${e[n].name}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}}class yx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}}let wx=class extends qg{constructor(e,t){super("w:ftr",t),Kd(this,"refId"),this.refId=e,t||this.root.push(new yx({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class xx{constructor(e,t,n){Kd(this,"footer"),Kd(this,"relationships"),this.media=e,this.footer=new wx(t,n),this.relationships=new Qv}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Dx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class Ux extends Yd{constructor(){super("w:footnoteRef")}}class Tx extends uv{constructor(){super({style:"FootnoteReference"}),this.root.push(new Ux)}}const kx="separator",Ax="continuationSeparator";class Fx extends Yd{constructor(e){super("w:footnote"),this.root.push(new Dx({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const n=e.children[t];0===t&&n.addRunToFront(new Tx),this.root.push(n)}}}class Sx extends Yd{constructor(){super("w:continuationSeparator")}}class Ex extends uv{constructor(){super({}),this.root.push(new Sx)}}class Cx extends Yd{constructor(){super("w:separator")}}class Bx extends uv{constructor(){super({}),this.root.push(new Cx)}}class Wx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class Ix extends Yd{constructor(){super("w:footnotes"),this.root.push(new Wx({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new Fx({id:-1,type:kx,children:[new xw({spacing:{after:0,line:240,lineRule:oy},children:[new Bx]})]});this.root.push(e);const t=new Fx({id:0,type:Ax,children:[new xw({spacing:{after:0,line:240,lineRule:oy},children:[new Ex]})]});this.root.push(t)}createFootNote(e,t){const n=new Fx({id:e,children:t});this.root.push(n)}}class Mx{constructor(){Kd(this,"footnotess"),Kd(this,"relationships"),this.footnotess=new Ix,this.relationships=new Qv}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Rx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}}let zx=class extends qg{constructor(e,t){super("w:hdr",t),Kd(this,"refId"),this.refId=e,t||this.root.push(new Rx({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}};class _x{constructor(e,t,n){Kd(this,"header"),Kd(this,"relationships"),this.media=e,this.header=new zx(t,n),this.relationships=new Qv}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class Ox{constructor(){Kd(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}}const Px="bullet";class Lx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class Nx extends Yd{constructor(e){super("w:numFmt"),this.root.push(new th({val:e}))}}class qx extends Yd{constructor(e){super("w:lvlText"),this.root.push(new th({val:e}))}}class jx extends Yd{constructor(e){super("w:lvlJc"),this.root.push(new th({val:e}))}}class Hx extends Yd{constructor(e){super("w:suff"),this.root.push(new th({val:e}))}}class Vx extends Yd{constructor(){super("w:isLgl")}}class $x extends Yd{constructor({level:e,format:t,text:n,alignment:i=lb,start:r=1,style:o,suffix:a,isLegalNumberingStyle:s}){if(super("w:lvl"),Kd(this,"paragraphProperties"),Kd(this,"runProperties"),this.root.push(new ab("w:start",jg(r))),t&&this.root.push(new Nx(t)),a&&this.root.push(new Hx(a)),s&&this.root.push(new Vx),n&&this.root.push(new qx(n)),this.root.push(new jx(i)),this.paragraphProperties=new ww(o&&o.paragraph),this.runProperties=new nv(o&&o.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Lx({ilvl:jg(e),tentative:1}))}}class Gx extends $x{}class Kx extends Yd{constructor(e){super("w:multiLevelType"),this.root.push(new th({val:e}))}}class Zx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class Xx extends Yd{constructor(e,t){super("w:abstractNum"),Kd(this,"id"),this.root.push(new Zx({abstractNumId:jg(e),restartNumberingAfterBreak:0})),this.root.push(new Kx("hybridMultilevel")),this.id=e;for(const n of t)this.root.push(new Gx(n))}}class Yx extends Yd{constructor(e){super("w:abstractNumId"),this.root.push(new th({val:e}))}}class Jx extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{numId:"w:numId"})}}class Qx extends Yd{constructor(e){if(super("w:num"),Kd(this,"numId"),Kd(this,"reference"),Kd(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Jx({numId:jg(e.numId)})),this.root.push(new Yx(jg(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new tD(t.num,t.start))}}class eD extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{ilvl:"w:ilvl"})}}class tD extends Yd{constructor(e,t){super("w:lvlOverride"),this.root.push(new eD({ilvl:e})),void 0!==t&&this.root.push(new iD(t))}}class nD extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class iD extends Yd{constructor(e){super("w:startOverride"),this.root.push(new nD({val:e}))}}class rD extends Yd{constructor(e){super("w:numbering"),Kd(this,"abstractNumberingMap",new Map),Kd(this,"concreteNumberingMap",new Map),Kd(this,"referenceConfigMap",new Map),Kd(this,"abstractNumUniqueNumericId",$v()),Kd(this,"concreteNumUniqueNumericId",$v(1)),this.root.push(new fw(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new Xx(this.abstractNumUniqueNumericId(),[{level:0,format:Px,text:"●",alignment:hb,style:{paragraph:{indent:{left:Vv(.5),hanging:Vv(.25)}}}},{level:1,format:Px,text:"○",alignment:hb,style:{paragraph:{indent:{left:Vv(1),hanging:Vv(.25)}}}},{level:2,format:Px,text:"■",alignment:hb,style:{paragraph:{indent:{left:2160,hanging:Vv(.25)}}}},{level:3,format:Px,text:"●",alignment:hb,style:{paragraph:{indent:{left:2880,hanging:Vv(.25)}}}},{level:4,format:Px,text:"○",alignment:hb,style:{paragraph:{indent:{left:3600,hanging:Vv(.25)}}}},{level:5,format:Px,text:"■",alignment:hb,style:{paragraph:{indent:{left:4320,hanging:Vv(.25)}}}},{level:6,format:Px,text:"●",alignment:hb,style:{paragraph:{indent:{left:5040,hanging:Vv(.25)}}}},{level:7,format:Px,text:"●",alignment:hb,style:{paragraph:{indent:{left:5760,hanging:Vv(.25)}}}},{level:8,format:Px,text:"●",alignment:hb,style:{paragraph:{indent:{left:6480,hanging:Vv(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Qx({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const n of e.config)this.abstractNumberingMap.set(n.reference,new Xx(this.abstractNumUniqueNumericId(),n.levels)),this.referenceConfigMap.set(n.reference,n.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const n=this.abstractNumberingMap.get(e);if(!n)return;const i=`${e}-${t}`;if(this.concreteNumberingMap.has(i))return;const r=this.referenceConfigMap.get(e),o=r&&r[0].start,a={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:e,instance:t,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(i,new Qx(a))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class oD extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class aD extends Yd{constructor(e){super("w:compatSetting"),this.root.push(new oD({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class sD extends Yd{constructor(e){super("w:compat"),e.version&&this.root.push(new aD(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new nb("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new nb("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new nb("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new nb("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new nb("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new nb("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new nb("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new nb("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new nb("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new nb("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new nb("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new nb("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new nb("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new nb("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new nb("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new nb("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new nb("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new nb("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new nb("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new nb("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new nb("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new nb("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new nb("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new nb("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new nb("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new nb("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new nb("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new nb("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new nb("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new nb("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new nb("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new nb("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new nb("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new nb("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new nb("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new nb("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new nb("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new nb("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new nb("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new nb("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new nb("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new nb("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new nb("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new nb("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new nb("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new nb("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new nb("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new nb("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new nb("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new nb("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new nb("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new nb("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new nb("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new nb("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new nb("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new nb("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new nb("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new nb("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new nb("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new nb("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new nb("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new nb("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new nb("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new nb("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new nb("w:cachedColBalance",e.cachedColumnBalance))}}class cD extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}let uD=class extends Yd{constructor(e){var t,n,i,r,o,a,s,c;super("w:settings"),this.root.push(new cD({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new nb("w:displayBackgroundShape",!0)),void 0!==e.trackRevisions&&this.root.push(new nb("w:trackRevisions",e.trackRevisions)),void 0!==e.evenAndOddHeaders&&this.root.push(new nb("w:evenAndOddHeaders",e.evenAndOddHeaders)),void 0!==e.updateFields&&this.root.push(new nb("w:updateFields",e.updateFields)),void 0!==e.defaultTabStop&&this.root.push(new ab("w:defaultTabStop",e.defaultTabStop)),void 0!==(null==(t=e.hyphenation)?void 0:t.autoHyphenation)&&this.root.push(new nb("w:autoHyphenation",e.hyphenation.autoHyphenation)),void 0!==(null==(n=e.hyphenation)?void 0:n.hyphenationZone)&&this.root.push(new ab("w:hyphenationZone",e.hyphenation.hyphenationZone)),void 0!==(null==(i=e.hyphenation)?void 0:i.consecutiveHyphenLimit)&&this.root.push(new ab("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),void 0!==(null==(r=e.hyphenation)?void 0:r.doNotHyphenateCaps)&&this.root.push(new nb("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new sD(Gd($d({},null!=(o=e.compatibility)?o:{}),{version:null!=(c=null!=(s=null==(a=e.compatibility)?void 0:a.version)?s:e.compatibilityModeVersion)?c:15})))}};class lD extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{val:"w:val"})}}class dD extends Yd{constructor(e){super("w:name"),this.root.push(new lD({val:e}))}}class hD extends Yd{constructor(e){super("w:uiPriority"),this.root.push(new lD({val:jg(e)}))}}class fD extends Qd{constructor(){super(...arguments),Kd(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class mD extends Yd{constructor(e,t){super("w:style"),this.root.push(new fD(e)),t.name&&this.root.push(new dD(t.name)),t.basedOn&&this.root.push(new rb("w:basedOn",t.basedOn)),t.next&&this.root.push(new rb("w:next",t.next)),t.link&&this.root.push(new rb("w:link",t.link)),void 0!==t.uiPriority&&this.root.push(new hD(t.uiPriority)),void 0!==t.semiHidden&&this.root.push(new nb("w:semiHidden",t.semiHidden)),void 0!==t.unhideWhenUsed&&this.root.push(new nb("w:unhideWhenUsed",t.unhideWhenUsed)),void 0!==t.quickFormat&&this.root.push(new nb("w:qFormat",t.quickFormat))}}class pD extends mD{constructor(e){super({type:"paragraph",styleId:e.id},e),Kd(this,"paragraphProperties"),Kd(this,"runProperties"),this.paragraphProperties=new ww(e.paragraph),this.runProperties=new nv(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class gD extends mD{constructor(e){super({type:"character",styleId:e.id},$d({uiPriority:99,unhideWhenUsed:!0},e)),Kd(this,"runProperties"),this.runProperties=new nv(e.run),this.root.push(this.runProperties)}}class bD extends pD{constructor(e){super($d({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class vD extends bD{constructor(e){super($d({id:"Title",name:"Title"},e))}}class yD extends bD{constructor(e){super($d({id:"Heading1",name:"Heading 1"},e))}}class wD extends bD{constructor(e){super($d({id:"Heading2",name:"Heading 2"},e))}}class xD extends bD{constructor(e){super($d({id:"Heading3",name:"Heading 3"},e))}}class DD extends bD{constructor(e){super($d({id:"Heading4",name:"Heading 4"},e))}}class UD extends bD{constructor(e){super($d({id:"Heading5",name:"Heading 5"},e))}}class TD extends bD{constructor(e){super($d({id:"Heading6",name:"Heading 6"},e))}}class kD extends bD{constructor(e){super($d({id:"Strong",name:"Strong"},e))}}class AD extends pD{constructor(e){super($d({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class FD extends pD{constructor(e){super($d({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:oy}},run:{size:20}},e))}}class SD extends gD{constructor(e){super($d({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class ED extends gD{constructor(e){super($d({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class CD extends gD{constructor(e){super($d({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:ev}}},e))}}class BD extends Yd{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new pD(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new gD(t))}}class WD extends Yd{constructor(e){super("w:pPrDefault"),this.root.push(new ww(e))}}class ID extends Yd{constructor(e){super("w:rPrDefault"),this.root.push(new nv(e))}}class MD extends Yd{constructor(e){super("w:docDefaults"),Kd(this,"runPropertiesDefaults"),Kd(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new ID(e.run),this.paragraphPropertiesDefaults=new WD(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class RD{newInstance(e){const t=_g.xml2js(e,{compact:!1});let n;for(const r of t.elements||[])"w:styles"===r.name&&(n=r);if(void 0===n)throw new Error("can not find styles element");const i=n.elements||[];return new BD({initialStyles:new Ng(n.attributes),importedStyles:i.map(e=>Og(e))})}}class zD{newInstance(e={}){var t;return{initialStyles:new fw(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new MD(null!=(t=e.document)?t:{}),new vD($d({run:{size:56}},e.title)),new yD($d({run:{color:"2E74B5",size:32}},e.heading1)),new wD($d({run:{color:"2E74B5",size:26}},e.heading2)),new xD($d({run:{color:"1F4D78",size:24}},e.heading3)),new DD($d({run:{color:"2E74B5",italics:!0}},e.heading4)),new UD($d({run:{color:"2E74B5"}},e.heading5)),new TD($d({run:{color:"1F4D78"}},e.heading6)),new kD($d({run:{bold:!0}},e.strong)),new AD(e.listParagraph||{}),new CD(e.hyperlink||{}),new SD(e.footnoteReference||{}),new FD(e.footnoteText||{}),new ED(e.footnoteTextChar||{})]}}}class _D{constructor(e){var t,n,i,r,o,a,s,c,u,l,d,h;if(Kd(this,"currentRelationshipId",1),Kd(this,"documentWrapper"),Kd(this,"headers",[]),Kd(this,"footers",[]),Kd(this,"coreProperties"),Kd(this,"numbering"),Kd(this,"media"),Kd(this,"fileRelationships"),Kd(this,"footnotesWrapper"),Kd(this,"settings"),Kd(this,"contentTypes"),Kd(this,"customProperties"),Kd(this,"appProperties"),Kd(this,"styles"),Kd(this,"comments"),Kd(this,"fontWrapper"),this.coreProperties=new cx(Gd($d({},e),{creator:null!=(t=e.creator)?t:"Un-named",revision:null!=(n=e.revision)?n:1,lastModifiedBy:null!=(i=e.lastModifiedBy)?i:"Un-named"})),this.numbering=new rD(e.numbering?e.numbering:{config:[]}),this.comments=new iy(null!=(r=e.comments)?r:{children:[]}),this.fileRelationships=new Qv,this.customProperties=new px(null!=(o=e.customProperties)?o:[]),this.appProperties=new tx,this.footnotesWrapper=new Mx,this.contentTypes=new sx,this.documentWrapper=new bw({background:e.background}),this.settings=new uD({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:null==(a=e.features)?void 0:a.trackRevisions,updateFields:null==(s=e.features)?void 0:s.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:null==(c=e.hyphenation)?void 0:c.autoHyphenation,hyphenationZone:null==(u=e.hyphenation)?void 0:u.hyphenationZone,consecutiveHyphenLimit:null==(l=e.hyphenation)?void 0:l.consecutiveHyphenLimit,doNotHyphenateCaps:null==(d=e.hyphenation)?void 0:d.doNotHyphenateCaps}}),this.media=new Ox,void 0!==e.externalStyles){const t=new RD;this.styles=t.newInstance(e.externalStyles)}else if(e.styles){const t=(new zD).newInstance(e.styles.default);this.styles=new BD($d($d({},t),e.styles))}else{const e=new zD;this.styles=new BD(e.newInstance())}this.addDefaultRelationships();for(const f of e.sections)this.addSection(f);if(e.footnotes)for(const f in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(f),e.footnotes[f].children);this.fontWrapper=new vx(null!=(h=e.fonts)?h:[])}addSection({headers:e={},footers:t={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(Gd($d({},i),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const r of n)this.documentWrapper.View.add(r)}createHeader(e){const t=new _x(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addHeaderToDocument(t),t}createFooter(e){const t=new xx(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=zy){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=zy){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.createRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}var OD=Cg();function PD(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var LD,ND={exports:{}};var qD=(LD||(LD=1,ND.exports=function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){if(!s&&PD)return PD(a);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){return r(t[a][1][e]||e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o=PD,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){var i=e("./utils"),r=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,r,a,s,c,u,l=[],d=0,h=e.length,f=h,m="string"!==i.getTypeOf(e);d<e.length;)f=h-d,r=m?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,c=1<f?(15&n)<<2|r>>6:64,u=2<f?63&r:64,l.push(o.charAt(a)+o.charAt(s)+o.charAt(c)+o.charAt(u));return l.join("")},n.decode=function(e){var t,n,i,a,s,c,u=0,l=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=o.indexOf(e.charAt(u++))<<2|(a=o.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,i=(3&s)<<6|(c=o.indexOf(e.charAt(u++))),h[l++]=t,64!==s&&(h[l++]=n),64!==c&&(h[l++]=i);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){var i=e("./external"),r=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var i=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var i=e("./utils"),r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var i=null;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,n){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=i?"uint8array":"array";function c(e,t){a.call(this,"FlateWorker/"+e),this.Mi=null,this.Ri=e,this.zi=t,this.meta={}}n.magic="\b\0",o.inherits(c,a),c.prototype.processChunk=function(e){this.meta=e.meta,null===this.Mi&&this._i(),this.Mi.push(o.transformTo(s,e.data),!1)},c.prototype.flush=function(){a.prototype.flush.call(this),null===this.Mi&&this._i(),this.Mi.push([],!0)},c.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.Mi=null},c.prototype._i=function(){this.Mi=new r[this.Ri]({raw:!0,level:this.zi.level||-1});var e=this;this.Mi.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c("Deflate",e)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function i(e,t){var n,i="";for(n=0;n<t;n++)i+=String.fromCharCode(255&e),e>>>=8;return i}function r(e,t,n,r,a,l){var d,h,f=e.file,m=e.compression,p=l!==s.utf8encode,g=o.transformTo("string",l(f.name)),b=o.transformTo("string",s.utf8encode(f.name)),v=f.comment,y=o.transformTo("string",l(v)),w=o.transformTo("string",s.utf8encode(v)),x=b.length!==f.name.length,D=w.length!==v.length,U="",T="",k="",A=f.dir,F=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(S.crc32=e.crc32,S.compressedSize=e.compressedSize,S.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),p||!x&&!D||(E|=2048);var C,B,W,I=0,M=0;A&&(I|=16),"UNIX"===a?(M=798,I|=(C=f.unixPermissions,B=A,W=C,C||(W=B?16893:33204),(65535&W)<<16)):(M=20,I|=function(e){return 63&(e||0)}(f.dosPermissions)),d=F.getUTCHours(),d<<=6,d|=F.getUTCMinutes(),d<<=5,d|=F.getUTCSeconds()/2,h=F.getUTCFullYear()-1980,h<<=4,h|=F.getUTCMonth()+1,h<<=5,h|=F.getUTCDate(),x&&(T=i(1,1)+i(c(g),4)+b,U+="up"+i(T.length,2)+T),D&&(k=i(1,1)+i(c(y),4)+w,U+="uc"+i(k.length,2)+k);var R="";return R+="\n\0",R+=i(E,2),R+=m.magic,R+=i(d,2),R+=i(h,2),R+=i(S.crc32,4),R+=i(S.compressedSize,4),R+=i(S.uncompressedSize,4),R+=i(g.length,2),R+=i(U.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+g+U,dirRecord:u.CENTRAL_FILE_HEADER+i(M,2)+R+i(y.length,2)+"\0\0\0\0"+i(I,4)+i(r,4)+g+U+y}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),c=e("../crc32"),u=e("../signature");function l(e,t,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this.Oi=[]}o.inherits(l,a),l.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,i=this.Oi.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-i-1))/n:100}}))},l.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=r(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(e){this.accumulate=!1;var t,n=this.streamFiles&&!e.file.dir,o=r(e,n,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),n)this.push({data:(t=e,u.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n,r,a,s,c,l,d=this.bytesWritten-e,h=(n=this.dirRecords.length,r=d,a=e,s=this.zipComment,c=this.encodeFileName,l=o.transformTo("string",c(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(n,2)+i(n,2)+i(r,4)+i(a,4)+i(l.length,2)+l);this.push({data:h,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this.Oi.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(e){this.Oi.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t.Oi.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},l.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this.Oi.length?(this.prepareNextSource(),!0):this.previous||this.Oi.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(e){var t=this.Oi;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(i){}return!0},l.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this.Oi,t=0;t<e.length;t++)e[t].lock()},t.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var i=e("../compressions"),r=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new r(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach(function(e,n){a++;var r=function(e,t){var n=e||t,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,u=n.date;n.Li(r,s).withStreamInfo("file",{name:e,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)}),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var i=e("./utils"),r=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),c=e("./nodejsUtils");function u(e){return new r.Promise(function(t,n){var i=e.decompressed.getContentWorker().pipe(new s);i.on("error",function(e){n(e)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var n=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),c.isNode&&c.isStream(e)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new a(t);return n.load(e),n}).then(function(e){var n=[r.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var o=0;o<i.length;o++)n.push(u(i[o]));return r.Promise.all(n)}).then(function(e){for(var r=e.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],c=s.fileNameStr,u=i.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=c)}return r.zipComment.length&&(n.comment=r.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var i=e("../utils"),r=e("../stream/GenericWorker");function o(e,t){r.call(this,"Nodejs stream input adapter for "+e),this.Ni=!1,this.qi(t)}i.inherits(o,r),o.prototype.qi=function(e){var t=this;(this.ji=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t.Ni=!0:t.end()})},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this.ji.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this.Ni?this.end():this.ji.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var i=e("readable-stream").Readable;function r(e,t,n){i.call(this,t),this.Hi=e;var r=this;e.on("data",function(e,t){r.push(e)||r.Hi.pause(),n&&n(t)}).on("error",function(e){r.emit("error",e)}).on("end",function(){r.push(null)})}e("../utils").inherits(r,i),r.prototype.Vi=function(){this.Hi.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function i(e,t,n){var i,r=o.getTypeOf(t),s=o.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=p(e)),s.createFolders&&(i=m(e))&&g.call(this,i,!0);var d="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",r="string");var b=null;b=t instanceof u||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new l(e,b,s);this.files[e]=v}var r=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),c=e("./defaults"),u=e("./compressedObject"),l=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),m=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},p=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:c.createFolders,e=p(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,i;for(t in this.files)i=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,i)},filter:function(e){var t=[];return this.forEach(function(n,i){e(n,i)&&t.push(i)}),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,n),this;if(b(e)){var r=e;return this.filter(function(e,t){return!t.dir&&r.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(b(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),i=this.clone();return i.root=n.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";t=d.generateWorker(this,n,i)}catch(c){(t=new a("error")).error(c)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var i=e("./DataReader");function r(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data[this.zero+e]},r.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2),r=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var i=e("../utils");function r(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=r},{"../utils":32}],19:[function(e,t,n){var i=e("./Uint8ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var i=e("./DataReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},r.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},r.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},r.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var i=e("./ArrayReader");function r(e){i.call(this,e)}e("../utils").inherits(r,i),r.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var i=e("../utils"),r=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),c=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new s(e):r.uint8array?new c(i.transformTo("uint8array",e)):new o(i.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var i=e("./GenericWorker"),r=e("../utils");function o(e){i.call(this,"ConvertWorker to "+e),this.destType=e}r.inherits(o,i),o.prototype.processChunk=function(e){this.push({data:r.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var i=e("./GenericWorker"),r=e("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,i),o.prototype.processChunk=function(e){this.streamInfo.crc32=r(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(o,r),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}r.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var i=e("../utils"),r=e("./GenericWorker");function o(e){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this.$i=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t.Gi()},function(e){t.error(e)})}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.$i&&this.dataIsReady&&(this.$i=!0,i.delay(this.Gi,[],this)),!0)},o.prototype.Gi=function(){this.$i=!1,this.isPaused||this.isFinished||(this.Ki(),this.isFinished||(i.delay(this.Gi,[],this),this.$i=!0))},o.prototype.Ki=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this.Zi={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this.Zi[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this.Zi=[]},emit:function(e,t){if(this.Zi[e])for(var n=0;n<this.Zi[e].length;n++)this.Zi[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,n){var i=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),c=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(h){}function l(e,t){return new c.Promise(function(n,r){var o=[],s=e.Yi,c=e.Ji,u=e.Qi;e.on("data",function(e,n){o.push(e),t&&t(n)}).on("error",function(e){o=[],r(e)}).on("end",function(){try{var e=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return i.transformTo(e,t)}}(c,function(e,t){var n,i=0,r=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],i),i+=t[n].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),u);n(e)}catch(t){r(t)}o=[]}).resume()})}function d(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this.Yi=a,this.Ji=t,this.Qi=n,i.checkSupport(a),this.er=e.pipe(new r(a)),e.lock()}catch(s){this.er=new o("error"),this.er.error(s)}}d.prototype={accumulate:function(e){return l(this,e)},on:function(e,t){var n=this;return"data"===e?this.er.on(e,function(e){t.call(n,e.data,e.meta)}):this.er.on(e,function(){i.delay(t,arguments,n)}),this},resume:function(){return i.delay(this.er.resume,[],this.er),this},pause:function(){return this.er.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this.Ji)throw new Error(this.Ji+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this.Ji},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(o){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(a){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(o){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var i=e("./utils"),r=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function l(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(c):new Array(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,a=e.length,c=new Array(2*a);for(t=n=0;t<a;)if((r=e[t++])<128)c[n++]=r;else if(4<(o=s[r]))c[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&t<a;)r=r<<6|63&e[t++],o--;1<o?c[n++]=65533:r<65536?c[n++]=r:(r-=65536,c[n++]=55296|r>>10&1023,c[n++]=56320|1023&r)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),i.applyFromCharCode(c)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(u,a),u.prototype.processChunk=function(e){var t=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),c=t;a!==t.length&&(r.uint8array?(c=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(c=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,i.inherits(l,a),l.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var i=e("./support"),r=e("./base64"),o=e("./nodejsUtils"),a=e("./external");function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var i=[],r=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;r<o;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function l(e){var t=65536,i=n.getTypeOf(e),r=!0;if("uint8array"===i?r=u.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=u.applyCanBeUsed.nodebuffer),r)for(;1<t;)try{return u.stringifyByChunk(e,i,t)}catch(o){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=l;var h={};h.string={string:s,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},h.array={string:l,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return l(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:l,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var i=n.getTypeOf(t);return h[i][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],i=0;i<t.length;i++){var r=t[i];"."===r||""===r&&0!==i&&i!==t.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&o.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,i="";for(n=0;n<(e||"").length;n++)i+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return i},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,s,u){return a.Promise.resolve(t).then(function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise(function(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){n(e.target.error)},i.readAsArrayBuffer(e)}):e}).then(function(t){var l,d=n.getTypeOf(t);return d?("arraybuffer"===d?t=n.transformTo("uint8array",t):"string"===d&&(u?t=r.decode(t):o&&!0!==s&&(t=c(l=t,i.uint8array?new Uint8Array(l.length):new Array(l.length)))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var i=e("./reader/readerFor"),r=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=e("./support");function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(t)+", expected "+r.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=r.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=t-n;if(0<i)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var i=e("./reader/readerFor"),r=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),c=e("./compressions"),u=e("./support");function l(e,t){this.options=e,this.loadOptions=t}l.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i};e.setIndex(r)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function i(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this.dt=t,this.nr=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),c=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this.ir();var o=!this.nr;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(s){(t=new c("error")).error(s)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},Li:function(e,t){if(this.dt instanceof s&&this.dt.compression.magic===e.magic)return this.dt.getCompressedWorker();var n=this.ir();return this.nr||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},ir:function(){return this.dt instanceof s?this.dt.getContentWorker():this.dt instanceof c?this.dt:new o(this.dt)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)i.prototype[u[d]]=l;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,i,r=e.MutationObserver||e.WebKitMutationObserver;if(r){var o=0,a=new r(l),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){l(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(l,0)};else{var c=new e.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var e,t;i=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}i=!1}t.exports=function(e){1!==u.push(e)||i||n()}}).call(this,void 0!==nh?nh:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var i=e("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==r&&f(this,e)}function l(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){i(function(){var i;try{i=t(n)}catch(r){return o.reject(e,r)}i===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,i)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function i(t){n||(n=!0,o.reject(e,t))}function r(t){n||(n=!0,o.resolve(e,t))}var a=m(function(){t(r,i)});"error"===a.status&&i(a.value)}function m(e,t){var n={};try{n.value=e(t),n.status="success"}catch(i){n.status="error",n.value=i}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(r);return this.state!==c?d(n,this.state===s?e:t,this.outcome):this.queue.push(new l(n,e,t)),n},l.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},l.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},l.prototype.callRejected=function(e){o.reject(this.promise,e)},l.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=m(h,t);if("error"===n.status)return o.reject(e,n.value);var i=n.value;if(i)f(e,i);else{e.state=s,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},u.reject=function(e){var t=new this(r);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,c=-1,u=new this(r);++c<n;)l(e[c],c);return u;function l(e,r){t.resolve(e).then(function(e){a[r]=e,++s!==n||i||(i=!0,o.resolve(u,a))},function(e){i||(i=!0,o.reject(u,e))})}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a,s=-1,c=new this(r);++s<n;)a=e[s],t.resolve(a).then(function(e){i||(i=!0,o.resolve(c,e))},function(e){i||(i=!0,o.reject(c,e))});return c}},{immediate:36}],38:[function(e,t,n){var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var i=e("./zlib/deflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=r.assign({level:l,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=i.deflateSetDictionary(this.strm,m))!==u)throw new Error(a[n]);this.rr=!0}}function m(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=i.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=m,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var i=e("./zlib/inflate"),r=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),c=e("./zlib/zstream"),u=e("./zlib/gzheader"),l=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,i.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,u,d,h,f=this.strm,m=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(m),f.next_out=0,f.avail_out=m),(n=i.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(h="string"==typeof p?o.string2buf(p):"[object ArrayBuffer]"===l.call(p)?new Uint8Array(p):p,n=i.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(f.output,f.next_out),u=f.next_out-c,d=o.buf2string(f.output,c),f.next_out=u,f.avail_out=m-u,u&&r.arraySet(f.output,f.output,c,u,0),this.onData(d)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,a;for(t=i=0,n=e.length;t<n;t++)i+=e[t].length;for(a=new Uint8Array(i),t=r=0,n=e.length;t<n;t++)o=e[t],a.set(o,r),r+=o.length;return a}},o={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(e,t,n){var i=e("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(u){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new i.Buf8(c),o=a=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,i,r,o,s=t||e.length,u=new Array(2*s);for(n=i=0;n<s;)if((r=e[n++])<128)u[i++]=r;else if(4<(o=a[r]))u[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<s;)r=r<<6|63&e[n++],o--;1<o?u[i++]=65533:r<65536?u[i++]=r:(r-=65536,u[i++]=55296|r>>10&1023,u[i++]=56320|1023&r)}return c(u,i)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,i){for(var r=65535&e,o=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+t[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var i,r=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),c=e("./messages"),u=0,l=4,d=0,h=-2,f=-1,m=4,p=2,g=8,b=9,v=286,y=30,w=19,x=2*v+1,D=15,U=3,T=258,k=T+U+1,A=42,F=113,S=1,E=2,C=3,B=4;function W(e,t){return e.msg=c[t],t}function I(e){return(e<<1)-(4<e?9:0)}function M(e){for(var t=e.length;0<=--t;)e[t]=0}function R(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(r.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function z(e,t){o.sr(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function _(e,t){e.pending_buf[e.pending++]=t}function O(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function P(e,t){var n,i,r=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,u=e.window,l=e.w_mask,d=e.prev,h=e.strstart+T,f=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===f&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&o<h);if(i=T-(h-o),o=h-T,a<i){if(e.match_start=t,s<=(a=i))break;f=u[o+a-1],m=u[o+a]}}}while((t=d[t&l])>c&&0!=--r);return a<=e.lookahead?a:e.lookahead}function L(e){var t,n,i,o,c,u,l,d,h,f,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-k)){for(r.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;i=e.head[--t],e.head[t]=m<=i?i-m:0,--n;);for(t=n=m;i=e.prev[--t],e.prev[t]=m<=i?i-m:0,--n;);o+=m}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=u.avail_in)&&(f=h),n=0===f?0:(u.avail_in-=f,r.arraySet(l,u.input,u.next_in,f,d),1===u.state.wrap?u.adler=a(u.adler,l,f,d):2===u.state.wrap&&(u.adler=s(u.adler,l,f,d)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=U)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+U-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<U)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function N(e,t){for(var n,i;;){if(e.lookahead<k){if(L(e),e.lookahead<k&&t===u)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=U&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-k&&(e.match_length=P(e,n)),e.match_length>=U)if(i=o.cr(e,e.strstart-e.match_start,e.match_length-U),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=U){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=o.cr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=e.strstart<U-1?e.strstart:U-1,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}function q(e,t){for(var n,i,r;;){if(e.lookahead<k){if(L(e),e.lookahead<k&&t===u)return S;if(0===e.lookahead)break}if(n=0,e.lookahead>=U&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=U-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=P(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===U&&4096<e.strstart-e.match_start)&&(e.match_length=U-1)),e.prev_length>=U&&e.match_length<=e.prev_length){for(r=e.strstart+e.lookahead-U,i=o.cr(e,e.strstart-1-e.prev_match,e.prev_length-U),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+U-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=U-1,e.strstart++,i&&(z(e,!1),0===e.strm.avail_out))return S}else if(e.match_available){if((i=o.cr(e,0,e.window[e.strstart-1]))&&z(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return S}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=o.cr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<U-1?e.strstart:U-1,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}function j(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*x),this.dyn_dtree=new r.Buf16(2*(2*y+1)),this.bl_tree=new r.Buf16(2*(2*w+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(D+1),this.heap=new r.Buf16(2*v+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*v+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=p,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?A:F,e.adler=2===t.wrap?0:1,t.last_flush=u,o.ur(t),d):W(e,h)}function $(e){var t,n=V(e);return n===d&&((t=e.state).window_size=2*t.w_size,M(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=U-1,t.match_available=0,t.ins_h=0),n}function G(e,t,n,i,o,a){if(!e)return h;var s=1;if(t===f&&(t=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||b<o||n!==g||i<8||15<i||t<0||9<t||a<0||m<a)return W(e,h);8===i&&(i=9);var c=new H;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+U-1)/U),c.window=new r.Buf8(2*c.w_size),c.head=new r.Buf16(c.hash_size),c.prev=new r.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new r.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,$(e)}i=[new j(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(L(e),0===e.lookahead&&t===u)return S;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+n;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,z(e,!1),0===e.strm.avail_out))return S;if(e.strstart-e.block_start>=e.w_size-k&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===l?(z(e,!0),0===e.strm.avail_out?C:B):(e.strstart>e.block_start&&(z(e,!1),e.strm.avail_out),S)}),new j(4,4,8,4,N),new j(4,5,16,8,N),new j(4,6,32,32,N),new j(4,4,16,16,q),new j(8,16,32,32,q),new j(8,16,128,128,q),new j(8,32,128,256,q),new j(32,128,258,1024,q),new j(32,258,258,4096,q)],n.deflateInit=function(e,t){return G(e,t,g,15,8,0)},n.deflateInit2=G,n.deflateReset=$,n.deflateResetKeep=V,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},n.deflate=function(e,t){var n,r,a,c;if(!e||!e.state||5<t||t<0)return e?W(e,h):h;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||666===r.status&&t!==l)return W(e,0===e.avail_out?-5:h);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===A)if(2===r.wrap)e.adler=0,_(r,31),_(r,139),_(r,8),r.gzhead?(_(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),_(r,255&r.gzhead.time),_(r,r.gzhead.time>>8&255),_(r,r.gzhead.time>>16&255),_(r,r.gzhead.time>>24&255),_(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),_(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(_(r,255&r.gzhead.extra.length),_(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=s(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(_(r,0),_(r,0),_(r,0),_(r,0),_(r,0),_(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),_(r,3),r.status=F);else{var f=g+(r.w_bits-8<<4)<<8;f|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(f|=32),f+=31-f%31,r.status=F,O(r,f),0!==r.strstart&&(O(r,e.adler>>>16),O(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),R(e),a=r.pending,r.pending!==r.pending_buf_size));)_(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),R(e),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,_(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),R(e),a=r.pending,r.pending===r.pending_buf_size)){c=1;break}c=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,_(r,c)}while(0!==c);r.gzhead.hcrc&&r.pending>a&&(e.adler=s(e.adler,r.pending_buf,r.pending-a,a)),0===c&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&R(e),r.pending+2<=r.pending_buf_size&&(_(r,255&e.adler),_(r,e.adler>>8&255),e.adler=0,r.status=F)):r.status=F),0!==r.pending){if(R(e),0===e.avail_out)return r.last_flush=-1,d}else if(0===e.avail_in&&I(t)<=I(n)&&t!==l)return W(e,-5);if(666===r.status&&0!==e.avail_in)return W(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==u&&666!==r.status){var m=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(L(e),0===e.lookahead)){if(t===u)return S;break}if(e.match_length=0,n=o.cr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}(r,t):3===r.strategy?function(e,t){for(var n,i,r,a,s=e.window;;){if(e.lookahead<=T){if(L(e),e.lookahead<=T&&t===u)return S;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=U&&0<e.strstart&&(i=s[r=e.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=e.strstart+T;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);e.match_length=T-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=U?(n=o.cr(e,1,e.match_length-U),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o.cr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(z(e,!1),0===e.strm.avail_out))return S}return e.insert=0,t===l?(z(e,!0),0===e.strm.avail_out?C:B):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?S:E}(r,t):i[r.level].func(r,t);if(m!==C&&m!==B||(r.status=666),m===S||m===C)return 0===e.avail_out&&(r.last_flush=-1),d;if(m===E&&(1===t?o.lr(r):5!==t&&(o.dr(r,0,0,!1),3===t&&(M(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),R(e),0===e.avail_out))return r.last_flush=-1,d}return t!==l?d:r.wrap<=0?1:(2===r.wrap?(_(r,255&e.adler),_(r,e.adler>>8&255),_(r,e.adler>>16&255),_(r,e.adler>>24&255),_(r,255&e.total_in),_(r,e.total_in>>8&255),_(r,e.total_in>>16&255),_(r,e.total_in>>24&255)):(O(r,e.adler>>>16),O(r,65535&e.adler)),R(e),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==A&&69!==t&&73!==t&&91!==t&&103!==t&&t!==F&&666!==t?W(e,h):(e.state=null,t===F?W(e,-3):d):h},n.deflateSetDictionary=function(e,t){var n,i,o,s,c,u,l,f,m=t.length;if(!e||!e.state)return h;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==A||n.lookahead)return h;for(1===s&&(e.adler=a(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(0===s&&(M(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new r.Buf8(n.w_size),r.arraySet(f,t,m-n.w_size,n.w_size,0),t=f,m=n.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=m,e.next_in=0,e.input=t,L(n);n.lookahead>=U;){for(i=n.strstart,o=n.lookahead-(U-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+U-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=U-1,L(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=U-1,n.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,i,r,o,a,s,c,u,l,d,h,f,m,p,g,b,v,y,w,x,D,U,T,k,A;n=e.state,i=e.next_in,k=e.input,r=i+(e.avail_in-5),o=e.next_out,A=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,d=n.wnext,h=n.window,f=n.hold,m=n.bits,p=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(f+=k[i++]<<m,m+=8,f+=k[i++]<<m,m+=8),y=p[f&b];t:for(;;){if(f>>>=w=y>>>24,m-=w,0==(w=y>>>16&255))A[o++]=65535&y;else{if(!(16&w)){if(!(64&w)){y=p[(65535&y)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&y,(w&=15)&&(m<w&&(f+=k[i++]<<m,m+=8),x+=f&(1<<w)-1,f>>>=w,m-=w),m<15&&(f+=k[i++]<<m,m+=8,f+=k[i++]<<m,m+=8),y=g[f&v];n:for(;;){if(f>>>=w=y>>>24,m-=w,!(16&(w=y>>>16&255))){if(!(64&w)){y=g[(65535&y)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(D=65535&y,m<(w&=15)&&(f+=k[i++]<<m,(m+=8)<w&&(f+=k[i++]<<m,m+=8)),c<(D+=f&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,m-=w,(w=o-a)<D){if(l<(w=D-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(T=h,(U=0)===d){if(U+=u-w,w<x){for(x-=w;A[o++]=h[U++],--w;);U=o-D,T=A}}else if(d<w){if(U+=u+d-w,(w-=d)<x){for(x-=w;A[o++]=h[U++],--w;);if(U=0,d<x){for(x-=w=d;A[o++]=h[U++],--w;);U=o-D,T=A}}}else if(U+=d-w,w<x){for(x-=w;A[o++]=h[U++],--w;);U=o-D,T=A}for(;2<x;)A[o++]=T[U++],A[o++]=T[U++],A[o++]=T[U++],x-=3;x&&(A[o++]=T[U++],1<x&&(A[o++]=T[U++]))}else{for(U=o-D;A[o++]=A[U++],A[o++]=A[U++],A[o++]=A[U++],2<(x-=3););x&&(A[o++]=A[U++],1<x&&(A[o++]=A[U++]))}break}}break}}while(i<r&&o<s);i-=x=m>>3,f&=(1<<(m-=x<<3))-1,e.next_in=i,e.next_out=o,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=m}},{}],49:[function(e,t,n){var i=e("../utils/common"),r=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),c=1,u=2,l=0,d=-2,h=1,f=852,m=592;function p(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(f),t.distcode=t.distdyn=new i.Buf32(m),t.sane=1,t.back=-1,l):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function y(e,t){var n,i;return e&&e.state?(i=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,v(e))):d}function w(e,t){var n,i;return e?(i=new g,(e.state=i).window=null,(n=y(e,t))!==l&&(e.state=null),n):d}var x,D,U=!0;function T(e){if(U){var t;for(x=new i.Buf32(512),D=new i.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(c,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,D,0,e.work,{bits:5}),U=!1}e.lencode=x,e.lenbits=9,e.distcode=D,e.distbits=5}function k(e,t,n,r){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),i.arraySet(a.window,t,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=b,n.inflateInit=function(e){return w(e,15)},n.inflateInit2=w,n.inflate=function(e,t){var n,f,m,g,b,v,y,w,x,D,U,A,F,S,E,C,B,W,I,M,R,z,_,O,P=0,L=new i.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(n=e.state).mode&&(n.mode=13),b=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,w=n.hold,x=n.bits,D=v,U=y,z=l;e:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(2&n.wrap&&35615===w){L[n.check=0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0),x=w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,R=8+(15&(w>>>=4)),0===n.wbits)n.wbits=R;else if(R>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<R,e.adler=n.check=1,n.mode=512&w?10:12,x=w=0;break;case 2:for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(n.flags=w,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=w>>8&1),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0)),x=w=0,n.mode=3;case 3:for(;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.head&&(n.head.time=w),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,L[2]=w>>>16&255,L[3]=w>>>24&255,n.check=o(n.check,L,4,0)),x=w=0,n.mode=4;case 4:for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.head&&(n.head.xflags=255&w,n.head.os=w>>8),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0)),x=w=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.length=w,n.head&&(n.head.extra_len=w),512&n.flags&&(L[0]=255&w,L[1]=w>>>8&255,n.check=o(n.check,L,2,0)),x=w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(A=n.length)&&(A=v),A&&(n.head&&(R=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,f,g,A,R)),512&n.flags&&(n.check=o(n.check,f,A,g)),v-=A,g+=A,n.length-=A),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break e;for(A=0;R=f[g+A++],n.head&&R&&n.length<65536&&(n.head.name+=String.fromCharCode(R)),R&&A<v;);if(512&n.flags&&(n.check=o(n.check,f,A,g)),v-=A,g+=A,R)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break e;for(A=0;R=f[g+A++],n.head&&R&&n.length<65536&&(n.head.comment+=String.fromCharCode(R)),R&&A<v;);if(512&n.flags&&(n.check=o(n.check,f,A,g)),v-=A,g+=A,R)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(w!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=w=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}e.adler=n.check=p(w),x=w=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=w,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){w>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}switch(n.last=1&w,x-=1,3&(w>>>=1)){case 0:n.mode=14;break;case 1:if(T(n),n.mode=20,6!==t)break;w>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}w>>>=2,x-=2;break;case 14:for(w>>>=7&x,x-=7&x;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&w,x=w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(A=n.length){if(v<A&&(A=v),y<A&&(A=y),0===A)break e;i.arraySet(m,f,g,A,b),v-=A,g+=A,y-=A,b+=A,n.length-=A;break}n.mode=12;break;case 17:for(;x<14;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(n.nlen=257+(31&w),w>>>=5,x-=5,n.ndist=1+(31&w),w>>>=5,x-=5,n.ncode=4+(15&w),w>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.lens[N[n.have++]]=7&w,w>>>=3,x-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},z=s(0,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,z){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;C=(P=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,B=65535&P,!((E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(B<16)w>>>=E,x-=E,n.lens[n.have++]=B;else{if(16===B){for(O=E+2;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(w>>>=E,x-=E,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}R=n.lens[n.have-1],A=3+(3&w),w>>>=2,x-=2}else if(17===B){for(O=E+3;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}x-=E,R=0,A=3+(7&(w>>>=E)),w>>>=3,x-=3}else{for(O=E+7;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}x-=E,R=0,A=11+(127&(w>>>=E)),w>>>=7,x-=7}if(n.have+A>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;A--;)n.lens[n.have++]=R}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,_={bits:n.lenbits},z=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,z){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},z=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,z){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=w,n.bits=x,a(e,U),b=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,f=e.input,v=e.avail_in,w=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;C=(P=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,B=65535&P,!((E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(C&&!(240&C)){for(W=E,I=C,M=B;C=(P=n.lencode[M+((w&(1<<W+I)-1)>>W)])>>>16&255,B=65535&P,!(W+(E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}w>>>=W,x-=W,n.back+=W}if(w>>>=E,x-=E,n.back+=E,n.length=B,0===C){n.mode=26;break}if(32&C){n.back=-1,n.mode=12;break}if(64&C){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&C,n.mode=22;case 22:if(n.extra){for(O=n.extra;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.length+=w&(1<<n.extra)-1,w>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;C=(P=n.distcode[w&(1<<n.distbits)-1])>>>16&255,B=65535&P,!((E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(!(240&C)){for(W=E,I=C,M=B;C=(P=n.distcode[M+((w&(1<<W+I)-1)>>W)])>>>16&255,B=65535&P,!(W+(E=P>>>24)<=x);){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}w>>>=W,x-=W,n.back+=W}if(w>>>=E,x-=E,n.back+=E,64&C){e.msg="invalid distance code",n.mode=30;break}n.offset=B,n.extra=15&C,n.mode=24;case 24:if(n.extra){for(O=n.extra;x<O;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}n.offset+=w&(1<<n.extra)-1,w>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break e;if(A=U-y,n.offset>A){if((A=n.offset-A)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}F=A>n.wnext?(A-=n.wnext,n.wsize-A):n.wnext-A,A>n.length&&(A=n.length),S=n.window}else S=m,F=b-n.offset,A=n.length;for(y<A&&(A=y),y-=A,n.length-=A;m[b++]=S[F++],--A;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;m[b++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===v)break e;v--,w|=f[g++]<<x,x+=8}if(U-=y,e.total_out+=U,n.total+=U,U&&(e.adler=n.check=n.flags?o(n.check,m,U,b-U):r(n.check,m,U,b-U)),U=y,(n.flags?w:p(w))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=w=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===v)break e;v--,w+=f[g++]<<x,x+=8}if(w!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=w=0}n.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=w,n.bits=x,(n.wsize||U!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,U-e.avail_out)?(n.mode=31,-4):(D-=e.avail_in,U-=e.avail_out,e.total_in+=D,e.total_out+=U,n.total+=U,n.wrap&&U&&(e.adler=n.check=n.flags?o(n.check,m,U,e.next_out-U):r(n.check,m,U,e.next_out-U)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==D&&0===U||4===t)&&z===l&&(z=-5),z)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,l},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,l):d},n.inflateSetDictionary=function(e,t){var n,i=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&r(1,t,i,0)!==n.check?-3:k(e,t,i,i)?(n.mode=31,-4):(n.havedict=1,l):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var i=e("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,c,u,l,d,h){var f,m,p,g,b,v,y,w,x,D=h.bits,U=0,T=0,k=0,A=0,F=0,S=0,E=0,C=0,B=0,W=0,I=null,M=0,R=new i.Buf16(16),z=new i.Buf16(16),_=null,O=0;for(U=0;U<=15;U++)R[U]=0;for(T=0;T<c;T++)R[t[n+T]]++;for(F=D,A=15;1<=A&&0===R[A];A--);if(A<F&&(F=A),0===A)return u[l++]=20971520,u[l++]=20971520,h.bits=1,0;for(k=1;k<A&&0===R[k];k++);for(F<k&&(F=k),U=C=1;U<=15;U++)if(C<<=1,(C-=R[U])<0)return-1;if(0<C&&(0===e||1!==A))return-1;for(z[1]=0,U=1;U<15;U++)z[U+1]=z[U]+R[U];for(T=0;T<c;T++)0!==t[n+T]&&(d[z[t[n+T]]++]=T);if(v=0===e?(I=_=d,19):1===e?(I=r,M-=257,_=o,O-=257,256):(I=a,_=s,-1),U=k,b=l,E=T=W=0,p=-1,g=(B=1<<(S=F))-1,1===e&&852<B||2===e&&592<B)return 1;for(;;){for(y=U-E,x=d[T]<v?(w=0,d[T]):d[T]>v?(w=_[O+d[T]],I[M+d[T]]):(w=96,0),f=1<<U-E,k=m=1<<S;u[b+(W>>E)+(m-=f)]=y<<24|w<<16|x,0!==m;);for(f=1<<U-1;W&f;)f>>=1;if(0!==f?(W&=f-1,W+=f):W=0,T++,0==--R[U]){if(U===A)break;U=t[n+d[T]]}if(F<U&&(W&g)!==p){for(0===E&&(E=F),b+=k,C=1<<(S=U-E);S+E<A&&!((C-=R[S+E])<=0);)S++,C<<=1;if(B+=1<<S,1===e&&852<B||2===e&&592<B)return 1;u[p=W&g]=F<<24|S<<16|b-l}}return 0!==W&&(u[b+W]=U-E<<24|64<<16),h.bits=F,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var i=e("../utils/common"),r=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,u=256,l=u+1+c,d=30,h=19,f=2*l+1,m=15,p=16,g=7,b=256,v=16,y=17,w=18,x=[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],D=[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],U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));a(k);var A=new Array(2*d);a(A);var F=new Array(512);a(F);var S=new Array(256);a(S);var E=new Array(c);a(E);var C,B,W,I=new Array(d);function M(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}function R(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function z(e){return e<256?F[e]:F[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,n){e.bi_valid>p-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>p-e.bi_valid,e.bi_valid+=n-p):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function P(e,t,n){O(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function N(e,t,n){var i,r,o=new Array(m+1),a=0;for(i=1;i<=m;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=L(o[s]++,s))}}function q(e){var t;for(t=0;t<l;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function j(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function H(e,t,n,i){var r=2*t,o=2*n;return e[r]<e[o]||e[r]===e[o]&&i[t]<=i[n]}function V(e,t,n){for(var i=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&H(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!H(t,i,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=i}function $(e,t,n){var i,r,o,a,s=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],r=e.pending_buf[e.l_buf+s],s++,0===i?P(e,r,t):(P(e,(o=S[r])+u+1,t),0!==(a=x[o])&&O(e,r-=E[o],a),P(e,o=z(--i),n),0!==(a=D[o])&&O(e,i-=I[o],a)),s<e.last_lit;);P(e,b,t)}function G(e,t){var n,i,r,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(r=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[r]=0,e.opt_len--,s&&(e.static_len-=a[2*r+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)V(e,o,n);for(r=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,o,1),i=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=i,o[2*r]=o[2*n]+o[2*i],e.depth[r]=(e.depth[n]>=e.depth[i]?e.depth[n]:e.depth[i])+1,o[2*n+1]=o[2*i+1]=r,e.heap[1]=r++,V(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,i,r,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(o=0;o<=m;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)g<(o=c[2*c[2*(i=e.heap[n])+1]+1]+1)&&(o=g,b++),c[2*i+1]=o,u<i||(e.bl_count[o]++,a=0,p<=i&&(a=h[i-p]),s=c[2*i],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(l[2*i+1]+a)));if(0!==b){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(o=g;0!==o;o--)for(i=e.bl_count[o];0!==i;)u<(r=e.heap[--n])||(c[2*r+1]!==o&&(e.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(e,t),N(o,u,e.bl_count)}function K(e,t,n){var i,r,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=t[2*(i+1)+1],++s<c&&r===a||(s<u?e.bl_tree[2*r]+=s:0!==r?(r!==o&&e.bl_tree[2*r]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,o=r,u=(s=0)===a?(c=138,3):r===a?(c=6,3):(c=7,4))}function Z(e,t,n){var i,r,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),i=0;i<=n;i++)if(r=a,a=t[2*(i+1)+1],!(++s<c&&r===a)){if(s<u)for(;P(e,r,e.bl_tree),0!=--s;);else 0!==r?(r!==o&&(P(e,r,e.bl_tree),s--),P(e,v,e.bl_tree),O(e,s-3,2)):s<=10?(P(e,y,e.bl_tree),O(e,s-3,3)):(P(e,w,e.bl_tree),O(e,s-11,7));o=r,u=(s=0)===a?(c=138,3):r===a?(c=6,3):(c=7,4)}}a(I);var X=!1;function Y(e,t,n,r){var o,a,c;O(e,(s<<1)+(r?1:0),3),a=t,c=n,j(o=e),_(o,c),_(o,~c),i.arraySet(o.pending_buf,o.window,a,c,o.pending),o.pending+=c}n.ur=function(e){X||(function(){var e,t,n,i,r,o=new Array(m+1);for(i=n=0;i<c-1;i++)for(E[i]=n,e=0;e<1<<x[i];e++)S[n++]=i;for(S[n-1]=i,i=r=0;i<16;i++)for(I[i]=r,e=0;e<1<<D[i];e++)F[r++]=i;for(r>>=7;i<d;i++)for(I[i]=r<<7,e=0;e<1<<D[i]-7;e++)F[256+r++]=i;for(t=0;t<=m;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(N(k,l+1,o),e=0;e<d;e++)A[2*e+1]=5,A[2*e]=L(e,5);C=new M(k,x,u+1,l,m),B=new M(A,D,0,d,m),W=new M(new Array(0),U,0,h,g)}(),X=!0),e.l_desc=new R(e.dyn_ltree,C),e.d_desc=new R(e.dyn_dtree,B),e.bl_desc=new R(e.bl_tree,W),e.bi_buf=0,e.bi_valid=0,q(e)},n.dr=Y,n.sr=function(e,t,n,i){var a,s,c=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return r;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return o;return r}(e)),G(e,e.l_desc),G(e,e.d_desc),c=function(e){var t;for(K(e,e.dyn_ltree,e.l_desc.max_code),K(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*T[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?Y(e,t,n,i):4===e.strategy||s===a?(O(e,2+(i?1:0),3),$(e,k,A)):(O(e,4+(i?1:0),3),function(e,t,n,i){var r;for(O(e,t-257,5),O(e,n-1,5),O(e,i-4,4),r=0;r<i;r++)O(e,e.bl_tree[2*T[r]+1],3);Z(e,e.dyn_ltree,t-1),Z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),$(e,e.dyn_ltree,e.dyn_dtree)),q(e),i&&j(e)},n.cr=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(S[n]+u+1)]++,e.dyn_dtree[2*z(t)]++),e.last_lit===e.lit_bufsize-1},n.lr=function(e){var t;O(e,2,3),P(e,b,k),16===(t=e).bi_valid?(_(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){if(!e.setImmediate){var n,i,r,o,a=1,s={},c=!1,u=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,n="[object process]"==={}.toString.call(e.process)?function(e){Fh.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){r.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(i=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(h,0,e)},l.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var r={callback:e,args:t};return s[a]=r,n(a),a++},l.clearImmediate=d}function d(e){delete s[e]}function h(e){if(c)setTimeout(h,0,e);else{var n=s[e];if(n){c=!0;try{!function(e){var n=e.callback,i=e.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(t,i)}}(n)}finally{d(e),c=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==nh?nh:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)),ND.exports);const jD=ih(qD);var HD,VD,$D,GD={exports:{}};var KD=function(){if($D)return GD.exports;$D=1;var e=function(){if(VD)return HD;VD=1;var e={"&":"&",'"':""","'":"'","<":"<",">":">"};return HD=function(t){return t&&t.replace?t.replace(/([&"<>'])/g,function(t,n){return e[n]}):t}}(),t=Cg().Stream;function n(t,i,r){r=r||0;var o,a,s=(o=i,new Array(r||0).join(o||"")),c=t;if("object"==typeof t&&((c=t[a=Object.keys(t)[0]])&&c.zo))return c.zo.name=a,c.zo.icount=r,c.zo.indent=i,c.zo.indents=s,c.zo.interrupt=c,c.zo;var u,l=[],d=[];function h(t){Object.keys(t).forEach(function(n){l.push(function(t,n){return t+'="'+e(n)+'"'}(n,t[n]))})}switch(typeof c){case"object":if(null===c)break;c.oo&&h(c.oo),c._o&&d.push(("<![CDATA["+c._o).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),c.forEach&&(u=!1,d.push(""),c.forEach(function(t){"object"==typeof t?"_attr"==Object.keys(t)[0]?h(t.oo):d.push(n(t,i,r+1)):(d.pop(),u=!0,d.push(e(t)))}),u||d.push(""));break;default:d.push(e(c))}return{name:a,interrupt:!1,attributes:l,content:d,icount:r,indents:s,indent:i}}function i(e,t,n){if("object"!=typeof t)return e(!1,t);var r=t.interrupt?1:t.content.length;function o(){for(;t.content.length;){var o=t.content.shift();if(void 0!==o){if(a(o))return;i(e,o)}}e(!1,(r>1?t.indents:"")+(t.name?"</"+t.name+">":"")+(t.indent&&!n?"\n":"")),n&&n()}function a(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=o,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(r?t.name?">":"":t.name?"/>":"")+(t.indent&&r>1?"\n":"")),!r)return e(!1,t.indent?"\n":"");a(t)||o()}return GD.exports=function(e,r){"object"!=typeof r&&(r={indent:r});var o,a,s=r.stream?new t:null,c="",u=!1,l=r.indent?!0===r.indent?" ":r.indent:"",d=!0;function h(e){d?Fh.nextTick(e):e()}function f(e,n){if(void 0!==n&&(c+=n),e&&!u&&(s=s||new t,u=!0),e&&u){var i=c;h(function(){s.emit("data",i)}),c=""}}function m(e,t){i(f,n(e,l,l?1:0),t)}function p(){if(s){var e=c;h(function(){s.emit("data",e),s.emit("end"),s.readable=!1,s.emit("close")})}}return h(function(){d=!1}),r.declaration&&(o=r.declaration,a={version:"1.0",encoding:o.encoding||"UTF-8"},o.standalone&&(a.standalone=o.standalone),m({"?xml":{oo:a}}),c=c.replace("/>","?>")),e&&e.forEach?e.forEach(function(t,n){var i;n+1===e.length&&(i=p),m(t,i)}):m(e,p),s?(s.readable=!0,s):c},GD.exports.element=GD.exports.Element=function(){var e={zo:n(Array.prototype.slice.call(arguments)),push:function(e){if(!this.append)throw new Error("not assigned to a parent!");var t=this,r=this.zo.indent;i(this.append,n(e,r,this.zo.icount+(r?1:0)),function(){t.append(!0)})},close:function(e){void 0!==e&&this.push(e),this.end&&this.end()}};return e},GD.exports}();const ZD=ih(KD),XD=(e,t)=>{const n=t.replace(/-/g,"");if(32!==n.length)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const i=n.replace(/(..)/g,"$1 ").trim().split(" ").map(e=>parseInt(e,16));i.reverse();const r=e.slice(0,32).map((e,t)=>e^i[t%i.length]),o=new Uint8Array(0+r.length+Math.max(0,e.length-32));return o.set(e.slice(0,0)),o.set(r,0),o.set(e.slice(32),0+r.length),o};class YD{format(e,t={stack:[]}){const n=e.prepForXml(t);if(n)return n;throw Error("XMLComponent did not format correctly")}}class JD{replace(e,t,n){let i=e;return t.forEach((e,t)=>{i=i.replace(new RegExp(`{${e.fileName}}`,"g"),(n+t).toString())}),i}getMediaData(e,t){return t.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}}class QD{replace(e,t){let n=e;for(const i of t)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}}const eU=" ",tU=e=>!0===e?eU:!1===e?void 0:e,nU=class e{static pack(e,t,n){return i=this,r=arguments,o=function*(e,t,n,i=[]){return this.compiler.compile(e,tU(n),i).generateAsync({type:t,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})},new Promise((e,t)=>{var n=e=>{try{s(o.next(e))}catch(n){t(n)}},a=e=>{try{s(o.throw(e))}catch(n){t(n)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,a);s((o=o.apply(i,r)).next())});var i,r,o}static toString(t,n,i=[]){return e.pack(t,"string",n,i)}static toBuffer(t,n,i=[]){return e.pack(t,"nodebuffer",n,i)}static toBase64String(t,n,i=[]){return e.pack(t,"base64",n,i)}static toBlob(t,n,i=[]){return e.pack(t,"blob",n,i)}static toArrayBuffer(t,n,i=[]){return e.pack(t,"arraybuffer",n,i)}static toStream(e,t,n=[]){const i=new OD.Stream;return this.compiler.compile(e,tU(t),n).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(e=>{i.emit("data",e),i.emit("end")}),i}};Kd(nU,"compiler",new class{constructor(){Kd(this,"formatter"),Kd(this,"imageReplacer"),Kd(this,"numberingReplacer"),this.formatter=new YD,this.imageReplacer=new JD,this.numberingReplacer=new QD}compile(e,t,n=[]){const i=new jD,r=this.xmlifyFile(e,t),o=new Map(Object.entries(r));for(const[,a]of o)if(Array.isArray(a))for(const e of a)i.file(e.path,e.data);else i.file(a.path,a.data);for(const a of n)i.file(a.path,a.data);for(const a of e.Media.Array)"svg"!==a.type?i.file(`word/media/${a.fileName}`,a.data):(i.file(`word/media/${a.fileName}`,a.data),i.file(`word/media/${a.fallback.fileName}`,a.fallback.data));for(const{data:a,name:s,fontKey:c}of e.FontTable.fontOptionsWithKey){const[e]=s.split(".");i.file(`word/fonts/${e}.odttf`,XD(a,c))}return i}xmlifyFile(e,t){const n=e.Document.Relationships.RelationshipCount+1,i=ZD(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),r=e.Comments.Relationships.RelationshipCount+1,o=ZD(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=this.imageReplacer.getMediaData(i,e.Media),s=this.imageReplacer.getMediaData(o,e.Media);return{Relationships:{data:(()=>(a.forEach((t,i)=>{e.Document.Relationships.createRelationship(n+i,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),e.Document.Relationships.createRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),ZD(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const t=this.imageReplacer.replace(i,a,n);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const n=ZD(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(n,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:ZD(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:ZD(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:ZD(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((n,i)=>{const r=ZD(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(r,e.Media).forEach((e,t)=>{n.Relationships.createRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),{data:ZD(this.formatter.format(n.Relationships,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${i+1}.xml.rels`}}),FooterRelationships:e.Footers.map((n,i)=>{const r=ZD(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(r,e.Media).forEach((e,t)=>{n.Relationships.createRelationship(t,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),{data:ZD(this.formatter.format(n.Relationships,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${i+1}.xml.rels`}}),Headers:e.Headers.map((n,i)=>{const r=ZD(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(r,e.Media),a=this.imageReplacer.replace(r,o,0);return{data:this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering),path:`word/header${i+1}.xml`}}),Footers:e.Footers.map((n,i)=>{const r=ZD(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(r,e.Media),a=this.imageReplacer.replace(r,o,0);return{data:this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering),path:`word/footer${i+1}.xml`}}),ContentTypes:{data:ZD(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:ZD(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:ZD(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:ZD(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:ZD(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:ZD(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const t=this.imageReplacer.replace(o,s,r);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(()=>(s.forEach((t,n)=>{e.Comments.Relationships.createRelationship(r+n,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),ZD(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/comments.xml.rels"},FontTable:{data:ZD(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(()=>ZD(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}))(),path:"word/_rels/fontTable.xml.rels"}}}});let iU=nU;var rU,oU={exports:{}};var aU,sU=(rU||(rU=1,aU=oU,function(){function e(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof _t&&_t.global===_t?_t:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(e,o,a){var s=r.URL||r.webkitURL,c=document.createElement("a");o=o||e.name||"download",c.download=o,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):n(c.href)?t(e,o,a):i(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:"msSaveOrOpenBlob"in navigator?function(r,o,a){if(o=o||r.name||"download","string"!=typeof r)navigator.msSaveOrOpenBlob(e(r,a),o);else if(n(r))t(r,o,a);else{var s=document.createElement("a");s.href=r,s.target="_blank",setTimeout(function(){i(s)})}}:function(e,n,i,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||o)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},l.readAsDataURL(e)}else{var d=r.URL||r.webkitURL,h=d.createObjectURL(e);a?a.location=h:location.href=h,a=null,setTimeout(function(){d.revokeObjectURL(h)},4e4)}});r.saveAs=a.saveAs=a,aU.exports=a}()),oU.exports);const cU={H1:cy,H2:uy,H3:ly,H4:dy,H5:hy,H6:fy},uU={left:hb,center:db,right:fb,justify:mb},lU={bold:!1,italic:!1,underline:!1,strike:!1,code:!1,link:null,superscript:!1,subscript:!1};function dU(e){const t=e.style?.textAlign;if(t&&uU[t])return uU[t]}function hU(e,t){const n=[];if(e.nodeType===Node.TEXT_NODE){const i=e.textContent||"";if(!i)return n;const r=new lv({text:i,bold:t.bold||void 0,italics:t.italic||void 0,underline:t.underline?{}:void 0,strike:t.strike||void 0,font:t.code?{name:"Courier New"}:void 0,superScript:t.superscript||void 0,subScript:t.subscript||void 0});return t.link?n.push(new Ay({children:[new lv({text:i,bold:t.bold||void 0,italics:t.italic||void 0,underline:{},style:"Hyperlink"})],link:t.link})):n.push(r),n}if(e.nodeType!==Node.ELEMENT_NODE)return n;const i=e,r=i.tagName.toUpperCase(),o={...t};if("STRONG"!==r&&"B"!==r||(o.bold=!0),"EM"!==r&&"I"!==r||(o.italic=!0),"U"===r&&(o.underline=!0),"S"!==r&&"DEL"!==r&&"STRIKE"!==r||(o.strike=!0),"CODE"===r&&(o.code=!0),"SUP"===r&&(o.superscript=!0),"SUB"===r&&(o.subscript=!0),"A"===r&&(o.link=i.getAttribute("href")),"BR"===r)return n.push(new lv({break:1})),n;for(const a of Array.from(i.childNodes))n.push(...hU(a,o));return n}function fU(e,t,n){const i=[],r=hU(e,{...lU}).filter(e=>e instanceof lv||e instanceof Ay);r.length>0&&i.push(new xw({children:r,numbering:t?{reference:"ordered-list",level:n}:{reference:"bullet-list",level:n}}));for(const o of Array.from(e.children)){const e=o.tagName.toUpperCase();"UL"===e?i.push(...mU(o,!1,n+1)):"OL"===e&&i.push(...mU(o,!0,n+1))}return i}function mU(e,t,n=0){const i=[];for(const r of Array.from(e.children))"LI"===r.tagName.toUpperCase()&&i.push(...fU(r,t,n));return i}function pU(e){const t=[],n=e.querySelectorAll("tr");for(const i of Array.from(n)){const e=[],n=i.querySelectorAll("td, th");for(const t of Array.from(n)){const n={children:[new xw({children:hU(t,{...lU})})],width:{size:100,type:Fw.AUTO}};e.push(new Pw(n))}e.length>0&&t.push(new Qw({children:e}))}return new Zw({rows:t,width:{size:100,type:Fw.PERCENTAGE}})}function gU(e){return((e.querySelector("code")||e).textContent||"").split("\n").map(e=>new xw({children:[new lv({text:e||" ",font:{name:"Courier New"},size:20})],spacing:{before:0,after:0}}))}function bU(e){const t=[];for(const n of Array.from(e.childNodes)){if(n.nodeType===Node.TEXT_NODE){const e=n.textContent?.trim();e&&t.push(new xw({children:[new lv({text:e})]}));continue}if(n.nodeType!==Node.ELEMENT_NODE)continue;const e=n,i=e.tagName.toUpperCase();if(cU[i]){const n=hU(e,{...lU});t.push(new xw({heading:cU[i],children:n,alignment:dU(e)}));continue}if("P"===i){const n=hU(e,{...lU});n.length>0?t.push(new xw({children:n,alignment:dU(e)})):t.push(new xw({}));continue}if("UL"!==i)if("OL"!==i)if("PRE"!==i)if("TABLE"!==i){if("BLOCKQUOTE"===i){const n=bU(e);for(const e of n)e instanceof xw?t.push(new xw({...e.options||{},indent:{left:720},border:{left:{style:"single",size:6,color:"999999"}}})):t.push(e);continue}if("HR"!==i)if(e.children.length>0)t.push(...bU(e));else{const n=e.textContent?.trim();n&&t.push(new xw({children:[new lv({text:n})]}))}else t.push(new xw({children:[new lv({text:"─".repeat(50)})],alignment:db}))}else t.push(pU(e));else t.push(...gU(e));else t.push(...mU(e,!0));else t.push(...mU(e,!1))}return t}async function vU(e,t="document"){const n=bU((new DOMParser).parseFromString(e,"text/html").body);0===n.length&&n.push(new xw({}));const i=new _D({numbering:{config:[{reference:"bullet-list",levels:[{level:0,format:"bullet",text:"•",alignment:hb,style:{paragraph:{indent:{left:720,hanging:360}}}},{level:1,format:"bullet",text:"○",alignment:hb,style:{paragraph:{indent:{left:1440,hanging:360}}}},{level:2,format:"bullet",text:"▪",alignment:hb,style:{paragraph:{indent:{left:2160,hanging:360}}}}]},{reference:"ordered-list",levels:[{level:0,format:"decimal",text:"%1.",alignment:hb,style:{paragraph:{indent:{left:720,hanging:360}}}},{level:1,format:"lowerLetter",text:"%2.",alignment:hb,style:{paragraph:{indent:{left:1440,hanging:360}}}},{level:2,format:"lowerRoman",text:"%3.",alignment:hb,style:{paragraph:{indent:{left:2160,hanging:360}}}}]}]},sections:[{children:n}]}),r=await iU.toBlob(i);sU.saveAs(r,`${t}.docx`)}const yU={class:"ant-upload-drag-icon"},wU={class:"ant-upload-text"},xU={class:"ant-upload-hint"},DU={key:0,style:{"text-align":"center","margin-top":"12px",color:"#999"}},UU={key:0,style:{"text-align":"center","margin-top":"12px",color:"#999"}},TU=e.defineComponent({U:"WordButton",props:{editor:{}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=e.ref(!1),a=e.ref(!1),s=e.ref("document"),c=e.ref(!1),u=e.ref(!1),l=e.computed(()=>[{key:"import-word",label:R("editor.importWord"),icon:i.ImportOutlined,action:()=>{o.value=!0}},{key:"export-word",label:R("editor.exportWord"),icon:i.ExportOutlined,action:()=>{s.value="document",a.value=!0}}]);async function d(e){const{file:t,onSuccess:n,onError:i}=e||{},a=r.value;if(a){c.value=!0;try{await Od(a,t),o.value=!1,n&&n({})}catch(s){i&&i(s)}finally{c.value=!1}}}async function h(){const e=r.value;if(e){u.value=!0;try{const t=e.getHTML(),n=s.value.trim()||"document";await vU(t,n),a.value=!1}catch(t){}finally{u.value=!1}}}return(t,n)=>{const r=e.resolveComponent("a-upload-dragger"),f=e.resolveComponent("a-modal"),m=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(ce),{icon:e.unref(i.FileWordOutlined),title:e.unref(R)("editor.word"),items:l.value,placement:"bottomLeft"},null,8,["icon","title","items"])]),T:1}),e.createVNode(f,{open:o.value,"onUpdate:open":n[0]||(n[0]=e=>o.value=e),title:e.unref(R)("editor.importWord"),footer:null},{default:e.withCtx(()=>[e.createVNode(r,{"show-upload-list":!1,"custom-request":d,accept:".docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document",disabled:c.value},{default:e.withCtx(()=>[e.createElementVNode("p",yU,[e.createVNode(e.unref(i.InboxOutlined))]),e.createElementVNode("p",wU,e.toDisplayString(e.unref(R)("editor.clickOrDragUploadWord")),1),e.createElementVNode("p",xU,e.toDisplayString(e.unref(R)("editor.onlySupportDocx")),1)]),T:1},8,["disabled"]),c.value?(e.openBlock(),e.createElementBlock("div",DU,e.toDisplayString(e.unref(R)("editor.importing")),1)):e.createCommentVNode("",!0)]),T:1},8,["open","title"]),e.createVNode(f,{open:a.value,"onUpdate:open":n[2]||(n[2]=e=>a.value=e),title:e.unref(R)("editor.exportWord"),onOk:h,"ok-button-props":{disabled:u.value}},{default:e.withCtx(()=>[e.createVNode(m,{value:s.value,"onUpdate:value":n[1]||(n[1]=e=>s.value=e),placeholder:e.unref(R)("editor.exportFilenamePlaceholder"),onKeyup:e.withKeys(h,["enter"]),disabled:u.value},null,8,["value","placeholder","disabled"]),u.value?(e.openBlock(),e.createElementBlock("div",UU,e.toDisplayString(e.unref(R)("editor.exporting")),1)):e.createCommentVNode("",!0)]),T:1},8,["open","title","ok-button-props"])],64)}}}),kU={key:"meeting-minutes",nameKey:"editor.templateMeetingMinutes",descKey:"editor.templateMeetingMinutesDesc",content:"\n<h2>会议纪要</h2>\n<table>\n <tr><th>项目</th><th>内容</th></tr>\n <tr><td>会议主题</td><td></td></tr>\n <tr><td>日期</td><td></td></tr>\n <tr><td>参会人</td><td></td></tr>\n <tr><td>主持人</td><td></td></tr>\n</table>\n<h3>议题与讨论</h3>\n<ol>\n <li><p></p></li>\n</ol>\n<h3>决议事项</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>待办事项</h3>\n<table>\n <tr><th>事项</th><th>负责人</th><th>截止日期</th></tr>\n <tr><td></td><td></td><td></td></tr>\n <tr><td></td><td></td><td></td></tr>\n</table>\n".trim()},AU={key:"weekly-report",nameKey:"editor.templateWeeklyReport",descKey:"editor.templateWeeklyReportDesc",content:"\n<h2>周报</h2>\n<p><strong>姓名:</strong></p>\n<p><strong>日期:</strong></p>\n<h3>本周完成</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>进行中</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>下周计划</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>问题与风险</h3>\n<ul>\n <li><p></p></li>\n</ul>\n".trim()},FU={key:"project-plan",nameKey:"editor.templateProjectPlan",descKey:"editor.templateProjectPlanDesc",content:"\n<h2>项目方案</h2>\n<h3>1. 项目概述</h3>\n<p></p>\n<h3>2. 项目目标</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>3. 实施方案</h3>\n<h4>3.1 技术方案</h4>\n<p></p>\n<h4>3.2 时间计划</h4>\n<table>\n <tr><th>阶段</th><th>任务</th><th>起止时间</th><th>负责人</th></tr>\n <tr><td></td><td></td><td></td><td></td></tr>\n <tr><td></td><td></td><td></td><td></td></tr>\n</table>\n<h3>4. 资源需求</h3>\n<p></p>\n<h3>5. 风险评估</h3>\n<table>\n <tr><th>风险</th><th>影响</th><th>应对措施</th></tr>\n <tr><td></td><td></td><td></td></tr>\n</table>\n".trim()},SU=[kU,AU,{key:"daily-report",nameKey:"editor.templateDailyReport",descKey:"editor.templateDailyReportDesc",content:"\n<h2>日报</h2>\n<p><strong>姓名:</strong></p>\n<p><strong>日期:</strong></p>\n<h3>今日完成</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>明日计划</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>备注</h3>\n<p></p>\n".trim()},FU,{key:"product-requirement",nameKey:"editor.templateProductRequirement",descKey:"editor.templateProductRequirementDesc",content:"\n<h2>产品需求文档 (PRD)</h2>\n<h3>1. 需求背景</h3>\n<p></p>\n<h3>2. 需求目标</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>3. 用户故事</h3>\n<p>作为 <em>[角色]</em>,我希望 <em>[功能]</em>,以便 <em>[价值]</em></p>\n<h3>4. 功能描述</h3>\n<h4>4.1 功能列表</h4>\n<table>\n <tr><th>功能</th><th>优先级</th><th>描述</th></tr>\n <tr><td></td><td>P0</td><td></td></tr>\n <tr><td></td><td>P1</td><td></td></tr>\n</table>\n<h4>4.2 详细设计</h4>\n<p></p>\n<h3>5. 非功能需求</h3>\n<ul>\n <li><p></p></li>\n</ul>\n<h3>6. 上线计划</h3>\n<p></p>\n".trim()}],EU={class:"template-list"},CU=["onClick"],BU={class:"template-card__icon"},WU={class:"template-card__body"},IU={class:"template-card__name"},MU={class:"template-card__desc"},RU=$(e.defineComponent({U:"TemplateButton",props:{editor:{},customTemplates:{default:()=>[]}},setup(t){const n=t,r=Se(e.computed(()=>n.editor??null)),o=e.ref(!1),a=e.computed(()=>[...SU,...n.customTemplates]);return(t,n)=>{const s=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L),{icon:e.unref(i.SnippetsOutlined),title:e.unref(R)("editor.insertTemplate"),onClick:n[0]||(n[0]=e=>o.value=!0)},null,8,["icon","title"])]),T:1}),e.createVNode(s,{open:o.value,"onUpdate:open":n[1]||(n[1]=e=>o.value=e),title:e.unref(R)("editor.insertTemplate"),footer:null,width:"640px"},{default:e.withCtx(()=>[e.createElementVNode("div",EU,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t.key,class:"template-card",onClick:e=>function(e){r(t=>t.insertContent(e.content))(),o.value=!1}(t)},[e.createElementVNode("div",BU,[e.createVNode(e.unref(i.FileTextOutlined))]),e.createElementVNode("div",WU,[e.createElementVNode("div",IU,e.toDisplayString(e.unref(R)(t.nameKey)),1),e.createElementVNode("div",MU,e.toDisplayString(e.unref(R)(t.descKey)),1)])],8,CU))),128))])]),T:1},8,["open","title"])],64)}}}),[["__scopeId","data-v-bfa1f503"]]),zU={key:0,class:"gallery-empty"},_U={class:"gallery-empty__text"},OU={class:"gallery-empty__hint"},PU={key:1,class:"gallery-grid"},LU=["onClick"],NU=["src","alt"],qU={key:0,class:"gallery-item__check"},jU={key:2,class:"gallery-footer"},HU={class:"gallery-footer__count"},VU=$(e.defineComponent({U:"GalleryButton",props:{editor:{},images:{default:void 0}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),a=e.ref(!1),s=e.ref(new Set),c=e.ref([]);function u(){s.value=new Set,c.value=n.images??function(){const e=r.value;if(!e)return[];const t=[],n=new Set;return e.state.doc.descendants(e=>{"image"===e.type.name&&e.attrs.src&&(n.has(e.attrs.src)||(n.add(e.attrs.src),t.push({src:e.attrs.src,alt:e.attrs.alt||"",width:e.attrs.width||void 0,height:e.attrs.height||void 0})))}),t}(),a.value=!0}function l(){const e=[...s.value].sort((e,t)=>e-t).map(e=>{const t=c.value[e];return{type:"image",attrs:{src:t.src,alt:t.alt||"",...t.width?{width:t.width}:{},...t.height?{height:t.height}:{}}}});e.length>0&&o(t=>t.insertContent(e))(),a.value=!1}return(t,n)=>{const r=e.resolveComponent("a-button"),o=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L),{icon:e.unref(i.AppstoreOutlined),title:e.unref(R)("editor.imageGallery"),onClick:u},null,8,["icon","title"])]),T:1}),e.createVNode(o,{open:a.value,"onUpdate:open":n[0]||(n[0]=e=>a.value=e),title:e.unref(R)("editor.imageGallery"),footer:null,width:"720px"},{default:e.withCtx(()=>[0===c.value.length?(e.openBlock(),e.createElementBlock("div",zU,[e.createVNode(e.unref(i.FileImageOutlined),{class:"gallery-empty__icon"}),e.createElementVNode("p",_U,e.toDisplayString(e.unref(R)("editor.galleryEmpty")),1),e.createElementVNode("p",OU,e.toDisplayString(e.unref(R)("editor.galleryEmptyHint")),1)])):(e.openBlock(),e.createElementBlock("div",PU,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["gallery-item",{"is-selected":s.value.has(n)}]),onClick:e=>function(e){const t=new Set(s.value);t.has(e)?t.delete(e):t.add(e),s.value=t}(n)},[e.createElementVNode("img",{src:t.src,alt:t.alt||"",class:"gallery-item__img"},null,8,NU),s.value.has(n)?(e.openBlock(),e.createElementBlock("div",qU,[e.createVNode(e.unref(i.CheckCircleFilled))])):e.createCommentVNode("",!0)],10,LU))),128))])),c.value.length>0?(e.openBlock(),e.createElementBlock("div",jU,[e.createElementVNode("span",HU,e.toDisplayString(e.unref(R)("editor.galleryCount").replace("{total}",String(c.value.length)).replace("{selected}",String(s.value.size))),1),e.createVNode(r,{type:"primary",disabled:0===s.value.size,onClick:l},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.galleryInsert")),1)]),T:1},8,["disabled"])])):e.createCommentVNode("",!0)]),T:1},8,["open","title"])],64)}}}),[["__scopeId","data-v-4e6cec64"]]),$U={provider:"openai",endpoint:"",model:"gpt-4o-mini",timeout:6e4,enabled:!0},GU=[{id:"openai",name:"OpenAI",description:"GPT-4o, GPT-4o-mini 等模型",defaultEndpoint:"https://api.openai.com/v1",defaultModel:"gpt-4o-mini",requiresApiKey:!0,docsUrl:"https://platform.openai.com/docs"},{id:"deepseek",name:"DeepSeek",description:"DeepSeek-V3, DeepSeek-R1 等模型",defaultEndpoint:"https://api.deepseek.com",defaultModel:"deepseek-chat",requiresApiKey:!0,docsUrl:"https://platform.deepseek.com/docs"},{id:"anthropic",name:"Anthropic",description:"Claude 3.5 Sonnet, Claude 3 Opus 等模型",defaultEndpoint:"https://api.anthropic.com/v1",defaultModel:"claude-3-5-sonnet-20241022",requiresApiKey:!0,docsUrl:"https://docs.anthropic.com"},{id:"aliyun",name:"阿里云通义千问",description:"Qwen-Max, Qwen-Plus 等模型",defaultEndpoint:"https://dashscope.aliyuncs.com/compatible-mode/v1",defaultModel:"qwen-plus",requiresApiKey:!0,docsUrl:"https://help.aliyun.com/zh/dashscope/"},{id:"ollama",name:"Ollama (本地)",description:"本地运行的开源模型",defaultEndpoint:"http://localhost:11434/api",defaultModel:"llama3.2",requiresApiKey:!1,docsUrl:"https://ollama.com/docs"},{id:"custom",name:"自定义",description:"自定义 OpenAI 兼容接口",defaultEndpoint:"",defaultModel:"",requiresApiKey:!0}];function KU(e){return GU.find(t=>t.id===e)}const ZU="tiptap-ai-config",XU="tiptap-ai-apikey";function YU(e){try{return localStorage.getItem(e)}catch{return null}}function JU(e,t){try{return localStorage.setItem(e,t),!0}catch{return!1}}function QU(e){try{localStorage.removeItem(e)}catch{}}function eT(){const e=YU(XU);return e?function(e){if(!e)return"";try{return decodeURIComponent(atob(e).split("").reverse().join(""))}catch{return""}}(e):""}function tT(){return{getConfig(){const e=function(){const e=YU(ZU);if(!e)return null;try{const t=JSON.parse(e);if(t&&"string"==typeof t.provider)return{provider:t.provider,endpoint:t.endpoint||"",model:t.model||"",timeout:t.timeout||$U.timeout,enabled:!1!==t.enabled,updatedAt:t.updatedAt||Date.now()}}catch{}return null}();return e?{...e,apiKey:eT()}:null},saveConfig(e){const{apiKey:t,...n}=e,i={...n,updatedAt:Date.now()};JU(ZU,JSON.stringify(i)),t?JU(XU,function(e){if(!e)return"";try{return btoa(encodeURIComponent(e).split("").reverse().join(""))}catch{return""}}(t)):QU(XU)},clearConfig(){QU(ZU),QU(XU)},getApiKey:()=>eT()||null,isConfigured(){const e=this.getConfig();if(!e||!e.enabled)return!1;const t=KU(e.provider);return!!t&&(!(t.requiresApiKey&&!e.apiKey)&&!("custom"===e.provider&&!e.endpoint))}}}let nT=null;function iT(){return nT||(nT=tT()),nT}const rT=e.ref({config:null,initialized:!1,testStatus:"idle",testError:null});let oT=!1;function aT(){!function(){if(oT)return;const e=iT().getConfig();e&&(rT.value.config=e),rT.value.initialized=!0,oT=!0}();const t=iT(),n=e.computed(()=>rT.value.config),i=e.computed(()=>t.isConfigured()),r=e.computed(()=>rT.value.config?.enabled??!1),o=e.computed(()=>rT.value.config?.provider??"openai"),a=e.computed(()=>KU(o.value)),s=e.computed(()=>rT.value.testStatus),c=e.computed(()=>rT.value.testError);function u(e){t.saveConfig(e),rT.value.config=e,rT.value.testStatus="idle",rT.value.testError=null}function l(e){u({...rT.value.config||{...$U,apiKey:"",updatedAt:Date.now()},...e})}return{config:e.readonly(n),isConfigured:e.readonly(i),isEnabled:e.readonly(r),currentProvider:e.readonly(o),currentProviderInfo:e.readonly(a),testStatus:e.readonly(s),testError:e.readonly(c),providers:GU,saveConfig:u,updateConfig:l,setProvider:function(e){const t=KU(e);t&&l({provider:e,endpoint:t.defaultEndpoint,model:t.defaultModel})},testConnection:async function(){const e=rT.value.config;if(!e)return{success:!1,message:"请先配置 AI 设置"};rT.value.testStatus="testing",rT.value.testError=null;const t=await async function(e){const t=KU(e.provider);if(!t)return{success:!1,message:"未知的提供商"};if(t.requiresApiKey&&!e.apiKey)return{success:!1,message:"请输入 API Key"};const n=e.endpoint||t.defaultEndpoint;if(!n)return{success:!1,message:"请输入 API 端点"};const i=Date.now();try{let r,o=n;const a={"Content-Type":"application/json"};if("ollama"===e.provider){o=n.replace(/\/api\/?$/,"")+"/api/tags";const e=await fetch(o,{method:"GET",signal:AbortSignal.timeout(1e4)});if(!e.ok)throw new Error(`HTTP ${e.status}`);return{success:!0,message:"连接成功",latency:Date.now()-i}}"anthropic"===e.provider?(a["x-api-key"]=e.apiKey,a["anthropic-version"]="2023-06-01",o=n.replace(/\/$/,"")+"/messages",r=JSON.stringify({model:e.model||t.defaultModel,max_tokens:1,messages:[{role:"user",content:"Hi"}]})):(a.Authorization=`Bearer ${e.apiKey}`,o=n.replace(/\/$/,"")+"/chat/completions",r=JSON.stringify({model:e.model||t.defaultModel,max_tokens:1,messages:[{role:"user",content:"Hi"}]}));const s=await fetch(o,{method:"POST",headers:a,body:r,signal:AbortSignal.timeout(15e3)}),c=Date.now()-i;if(!s.ok){const e=await s.json().catch(()=>({}));return{success:!1,message:e.error?.message||e.message||`HTTP ${s.status}`,latency:c}}return{success:!0,message:"连接成功",latency:c}}catch(r){const e=Date.now()-i;return r instanceof Error?"AbortError"===r.name||"TimeoutError"===r.name?{success:!1,message:"连接超时",latency:e}:{success:!1,message:r.message,latency:e}:{success:!1,message:"连接失败",latency:e}}}(e);return rT.value.testStatus=t.success?"success":"error",rT.value.testError=t.success?null:t.message,t},clearConfig:function(){t.clearConfig(),rT.value.config=null,rT.value.testStatus="idle",rT.value.testError=null},getRequestConfig:function(){const e=rT.value.config;if(!e||!e.enabled)return null;const t=KU(e.provider);return t?{endpoint:e.endpoint||t.defaultEndpoint,apiKey:e.apiKey,model:e.model||t.defaultModel,timeout:e.timeout||$U.timeout}:null}}}function sT(){const e=iT().getConfig();if(!e||!e.enabled)return null;const t=KU(e.provider);return t?t.requiresApiKey&&!e.apiKey?null:{endpoint:e.endpoint||t.defaultEndpoint,apiKey:e.apiKey,model:e.model||t.defaultModel,timeout:e.timeout||$U.timeout,provider:e.provider}:null}const cT={};const uT=6e4;async function lT(e,t,n,i){const r=function(){const e=sT();if(e)return{provider:e.provider,apiKey:e.apiKey,baseUrl:e.endpoint,model:e.model,timeout:e.timeout};const t=cT||{};return{provider:t.VITE_AI_PROVIDER||"openai",apiKey:t.VITE_AI_API_KEY||"",baseUrl:t.VITE_AI_BASE_URL||"",model:t.VITE_AI_MODEL||"gpt-4o-mini",timeout:uT}}();if(!r.apiKey)return void(await async function(e,t){const n={continue:"这是 AI 续写功能的演示效果。\n\n💡 提示:要使用真实的 AI 功能,请在工具栏的 AI 设置中配置您的 API Key。\n\n支持的 AI 提供商:\n• OpenAI (GPT-4, GPT-3.5)\n• 阿里云通义千问\n• DeepSeek\n• Ollama (本地部署)\n\n配置后,AI 将根据您的内容智能续写,帮助您快速完成文档创作。",polish:"这是 AI 润色功能的演示效果。\n\n💡 提示:要使用真实的 AI 润色功能,请在工具栏的 AI 设置中配置您的 API Key。\n\n配置后,AI 将帮助您:\n• 优化文字表达,使语句更流畅\n• 修正语法错误\n• 提升专业度和可读性\n• 保持原意的同时改善文风",summarize:"这是 AI 总结功能的演示效果。\n\n💡 提示:要使用真实的 AI 总结功能,请在工具栏的 AI 设置中配置您的 API Key。\n\n配置后,AI 将智能提取内容要点,生成简洁的摘要,帮助读者快速理解核心信息。",translate:"这是 AI 翻译功能的演示效果。\n\n💡 Tip: To use the real AI translation feature, please configure your API Key in the AI Settings on the toolbar.\n\nAfter configuration, AI will provide high-quality translations while maintaining the original meaning and style.",custom:"这是自定义 AI 命令的演示效果。\n\n💡 提示:要使用真实的自定义 AI 功能,请在工具栏的 AI 设置中配置您的 API Key。\n\n配置后,您可以输入任何自定义指令,AI 将根据您的要求处理选中的文本。"}[t];try{e.onStart?.();let t=0;const i=setInterval(()=>{if(t<n.length){const i=Math.floor(4*Math.random())+2,r=n.slice(t,t+i);e.onMessage?.({content:r}),t+=i}else clearInterval(i),e.onStop?.()},50)}catch(i){e.onError?.(i instanceof Error?i:new Error(String(i)))}}(n,i||"custom"));const o=function(e,t){if(t)return t;const n={openai:"https://api.openai.com/v1",aliyun:"https://dashscope.aliyuncs.com/compatible-mode/v1",deepseek:"https://api.deepseek.com/v1",ollama:"http://localhost:11434/api"};return n[e]||n.openai}(r.provider,r.baseUrl),a=r.timeout||uT,s=new AbortController,c=setTimeout(()=>{s.abort()},a);let u=null;try{n.onStart?.();const i=await fetch(`${o}/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.apiKey}`},body:JSON.stringify({model:r.model,messages:[{role:"system",content:e},{role:"user",content:t}],stream:!0}),signal:s.signal});if(!i.ok)throw new Error(`AI API error: ${i.status} ${i.statusText}`);if(u=i.body?.getReader()??null,!u)throw new Error("No response body");const a=new TextDecoder;let c="";for(;;){const{done:e,value:t}=await u.read();if(e)break;c+=a.decode(t,{stream:!0});const i=c.split("\n");c=i.pop()||"";for(const r of i){if(!r.trim()||!r.startsWith("data: "))continue;const e=r.slice(6);if("[DONE]"!==e)try{const t=JSON.parse(e),i=t.choices?.[0]?.delta?.content;i&&n.onMessage?.({content:i})}catch{}}}n.onStop?.()}catch(l){l instanceof Error&&"AbortError"===l.name?n.onError?.(new Error("AI request timeout. Please try again.")):n.onError?.(l instanceof Error?l:new Error(String(l)))}finally{if(clearTimeout(c),u)try{await u.cancel()}catch{}}}const dT={continueWriting(e,t,n){lT(`${t}\n\n你是一个专业的写作助手。请根据用户选中的文字,续写接下来的内容。保持原文的风格和语气。只输出续写的内容,不要重复用户选中的文字。`,e,n,"continue")},polish(e,t,n){lT(`${t}\n\n你是一个专业的文字润色助手。请润色以下文字,使其更加流畅、专业。保持原意,只输出润色后的文字。`,e,n,"polish")},summarize(e,t,n){lT(`${t}\n\n你是一个专业的总结助手。请总结以下内容的要点。简洁明了,输出总结内容。`,e,n,"summarize")},translate(e,t,n,i){lT(`${n}\n\n你是一个专业的翻译助手。请将以下内容翻译为${t}。只输出翻译结果。`,e,i,"translate")},customCommand(e,t,n,i){lT(`${n}\n\n${t}`,e,i,"custom")}};function hT(e,t){if(!t.nodes.paragraph)return[];const n=e.split(/\r?\n/),i=[];for(const r of n)if(r.length>0){const e=t.text(r),n=t.nodes.paragraph.create(null,e);i.push(n)}else{const e=t.nodes.paragraph.create();i.push(e)}return i}function fT(e){return/\r?\n/.test(e)}function mT(e,t){return e.from>=0&&e.to>=0&&e.from<=t&&e.to<=t&&e.from<=e.to}const pT=o.Mark.create({name:"aiHighlight",addOptions:()=>({HTMLAttributes:{class:"ai-highlight"}}),addAttributes:()=>({originalText:{default:null,parseHTML:e=>e.getAttribute("data-original-text"),renderHTML:e=>e.originalText?{"data-original-text":e.originalText}:{}},suggestedText:{default:null,parseHTML:e=>e.getAttribute("data-suggested-text"),renderHTML:e=>e.suggestedText?{"data-suggested-text":e.suggestedText}:{}},isStreaming:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-is-streaming"),renderHTML:e=>({"data-is-streaming":e.isStreaming?"true":"false"})}}),parseHTML:()=>[{tag:"span.ai-highlight",getAttrs:e=>"string"!=typeof e&&{originalText:e.getAttribute("data-original-text"),suggestedText:e.getAttribute("data-suggested-text"),isStreaming:"true"===e.getAttribute("data-is-streaming")}}],renderHTML({HTMLAttributes:e}){return["span",o.mergeAttributes(this.options.HTMLAttributes,e),0]},addCommands(){return{setAiHighlight:e=>({commands:t})=>t.setMark(this.name,e||{}),unsetAiHighlight:()=>({commands:e})=>e.unsetMark(this.name)}}});function gT(e,t,n,i){const{state:r}=e,{tr:o,doc:a}=r,s=r.schema.marks.aiHighlight;if(!s)return;const c=a.content.size;t<0||n<0||t>c||n>c||t>n||(o.addMark(t,n,s.create(i||{})),e.view.dispatch(o))}function bT(e,t,n,i){const{state:r}=e,{tr:o,doc:a}=r,s=r.schema.marks.aiHighlight;if(!s)return;const c=a.content.size;if(t<0||n<0||t>c||n>c||t>n)return;let u=null;if(a.nodesBetween(t,n,e=>{const t=e.marks.find(e=>"aiHighlight"===e.type.name);if(t)return u=t,!1}),u&&u.attrs){const r={...u.attrs,...i};o.removeMark(t,n,s),o.addMark(t,n,s.create(r)),e.view.dispatch(o)}}function vT(e){const{state:t}=e,{tr:n,doc:i}=t;i.descendants((e,i)=>{if(e.marks.some(e=>"aiHighlight"===e.type.name)){const r=i,o=i+e.nodeSize;n.removeMark(r,o,t.schema.marks.aiHighlight)}}),e.view.dispatch(n)}function yT(e,t){const{state:n}=e,{doc:i}=n,r=i.resolve(t).marks().find(e=>"aiHighlight"===e.type.name);if(r){const e=r.attrs;if(e)return{originalText:e.originalText||"",suggestedText:e.suggestedText||"",isStreaming:e.isStreaming||!1}}return null}const wT={class:"custom-ai-content"},xT={key:0,class:"custom-ai-input-stage"},DT={class:"custom-ai-header"},UT={class:"custom-ai-title"},TT={key:0,class:"custom-ai-selected-text"},kT={class:"text-label"},AT={class:"text-content"},FT={class:"custom-ai-prompt-input"},ST={class:"custom-ai-footer"},ET={key:1,class:"custom-ai-result-stage"},CT={class:"custom-ai-header"},BT={class:"custom-ai-title"},WT={key:0,class:"original-text"},IT={class:"text-label"},MT={class:"text-content"},RT={class:"suggested-text"},zT={class:"text-label"},_T={class:"text-content"},OT={class:"custom-ai-footer"},PT={class:"footer-right"},LT=$(e.defineComponent({U:"CustomAiPopover",props:{visible:{type:Boolean,default:!1},originalText:{default:""},suggestedText:{default:""},isStreaming:{type:Boolean,default:!1},isExecuting:{type:Boolean,default:!1},position:{},editorElement:{}},emits:["update:visible","execute","accept","reject","cancel","cancelGeneration"],setup(t,{emit:r}){const o=t,a=r,s=e.ref(),c=e.ref(""),u=e.computed(()=>o.position?{position:"absolute",top:`${o.position.top}px`,left:`${o.position.left}px`,width:"0px",height:"0px",pointerEvents:"none"}:{position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px",pointerEvents:"none"}),l=()=>o.editorElement||document.body,d=()=>{c.value.trim()&&a("execute",c.value.trim())},h=()=>{a("accept"),c.value=""},f=()=>{a("reject"),c.value=""},m=()=>{a("cancel"),c.value=""},p=()=>{a("cancelGeneration"),c.value=""},g=e=>{a("update:visible",e),e||(a("cancel"),c.value="")};return e.watch(()=>o.visible,t=>{t&&!o.isExecuting&&e.nextTick(()=>{s.value?.focus()})}),(r,o)=>(e.openBlock(),e.createBlock(e.unref(n.Popover),{open:t.visible,getPopupContainer:l,placement:"bottomLeft",trigger:[],overlayClassName:"custom-ai-popover","onUpdate:open":g},{content:e.withCtx(()=>[e.createElementVNode("div",wT,[t.isExecuting||t.isStreaming?(e.openBlock(),e.createElementBlock("div",ET,[e.createElementVNode("div",CT,[e.createElementVNode("span",BT,e.toDisplayString(e.unref(R)("editor.aiSuggestion")),1),t.isStreaming?(e.openBlock(),e.createBlock(e.unref(i.LoadingOutlined),{key:0,class:"ai-loading-icon"})):e.createCommentVNode("",!0)]),t.originalText?(e.openBlock(),e.createElementBlock("div",WT,[e.createElementVNode("div",IT,e.toDisplayString(e.unref(R)("editor.originalText")),1),e.createElementVNode("div",MT,e.toDisplayString(t.originalText),1)])):e.createCommentVNode("",!0),t.originalText?(e.openBlock(),e.createBlock(e.unref(i.ArrowDownOutlined),{key:1,class:"arrow-icon"})):e.createCommentVNode("",!0),e.createElementVNode("div",RT,[e.createElementVNode("div",zT,e.toDisplayString(t.originalText?e.unref(R)("editor.suggestedText"):e.unref(R)("editor.generatedContent")),1),e.createElementVNode("div",_T,e.toDisplayString(t.suggestedText||e.unref(R)("editor.generating")),1)]),e.createElementVNode("div",OT,[e.createVNode(e.unref(n.Button),{size:"small",onClick:p,disabled:t.isStreaming},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.cancel")),1)]),T:1},8,["disabled"]),e.createElementVNode("div",PT,[e.createVNode(e.unref(n.Button),{size:"small",onClick:f,disabled:t.isStreaming},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.reject")),1)]),T:1},8,["disabled"]),e.createVNode(e.unref(n.Button),{type:"primary",size:"small",onClick:h,disabled:t.isStreaming},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.accept")),1)]),T:1},8,["disabled"])])])])):(e.openBlock(),e.createElementBlock("div",xT,[e.createElementVNode("div",DT,[e.createElementVNode("span",UT,e.toDisplayString(e.unref(R)("editor.customAiCommand")),1)]),t.originalText?(e.openBlock(),e.createElementBlock("div",TT,[e.createElementVNode("div",kT,e.toDisplayString(e.unref(R)("editor.selectedContent")),1),e.createElementVNode("div",AT,e.toDisplayString(t.originalText),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",FT,[e.createVNode(e.unref(n.Input),{ref_key:"promptInputRef",ref:s,value:c.value,"onUpdate:value":o[0]||(o[0]=e=>c.value=e),placeholder:e.unref(R)("editor.aiPromptPlaceholder"),"auto-size":{minRows:3,maxRows:6},onKeydown:e.withKeys(e.withModifiers(d,["ctrl"]),["enter"])},null,8,["value","placeholder","onKeydown"])]),e.createElementVNode("div",ST,[e.createVNode(e.unref(n.Button),{size:"small",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.cancel")),1)]),T:1}),e.createVNode(e.unref(n.Button),{type:"primary",size:"small",onClick:d,disabled:!c.value.trim()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.execute")),1)]),T:1},8,["disabled"])])]))])]),default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(u.value)},null,4)]),T:1},8,["open"]))}}),[["__scopeId","data-v-7dfc3e4e"]]),NT=o.Extension.create({name:"customAi",addCommands:()=>({customAi:()=>({state:t,editor:i})=>{const{selection:r}=t,{from:o,to:a}=r,s=t.doc.textBetween(o,a," ");if(!s.trim())return n.notification.warning({message:R("editor.pleaseSelectText"),description:R("editor.customAiRequiresSelection"),duration:2}),!1;return function(t,i,r){HT=t,VT=r,$T.value=!0,GT.value=i,KT.value="",ZT.value=!1,XT.value=!1;const o={originalText:i,suggestedText:"",isStreaming:!1};gT(t,r.from,r.to,o),qT||function(t){qT&&YT();jT=document.createElement("div"),jT.style.position="absolute",jT.style.top="0",jT.style.left="0",jT.style.zIndex="1000";const i=t.view.dom.parentElement;i?i.append(jT):document.body.append(jT);const r=function(e){if(!VT)return{left:0,top:0};const{from:t,to:n}=VT,{view:i}=e,r=i.coordsAtPos(t),o=i.coordsAtPos(n),a=i.dom.getBoundingClientRect(),s=o.bottom-a.top+8;return{left:r.left-a.left,top:s}}(t);qT=e.createApp({render:()=>e.h(LT,{visible:$T.value,originalText:GT.value,suggestedText:KT.value,isStreaming:ZT.value,isExecuting:XT.value,position:r,editorElement:i||void 0,"onUpdate:visible":e=>{$T.value=e},onExecute:e=>{!function(e){if(!HT||!VT)return;XT.value=!0,ZT.value=!0,function(e,t,i){let r="";const o={onStart:()=>{r=""},onMessage:t=>{if(t&&t.content&&(r+=t.content,KT.value=r,VT&&HT)){const{state:t}=HT,{doc:n}=t,i=n.content.size;VT.from>=0&&VT.to>=0&&VT.from<=i&&VT.to<=i&&VT.from<=VT.to&&bT(e,VT.from,VT.to,{suggestedText:r})}},onStop:()=>{try{if(ZT.value=!1,VT&&HT){const{state:t}=HT,{doc:n}=t,i=n.content.size;VT.from>=0&&VT.to>=0&&VT.from<=i&&VT.to<=i&&VT.from<=VT.to&&bT(e,VT.from,VT.to,{isStreaming:!1})}}catch(t){}},onError:e=>{QT(),n.notification.error({message:"自定义 AI 失败",description:e.message||"请稍后重试",duration:3})}};dT.customCommand(t,i,"你係一個專業嘅文本處理助手。直接返回處理結果,唔好加任何解釋。",o)}(HT,GT.value,e,0,GT.value.trim().length)}(e)},onAccept:()=>{!function(){if(!HT||!VT)return;const e=KT.value,{state:t}=HT,{doc:n}=t,i=n.content.size;if(!mT(VT,i))return void QT();if(fT(e)){const n=hT(e,t.schema);if(n.length>0){const e=t.tr;e.replaceWith(VT.from,VT.to,n),HT.view.dispatch(e)}}else HT.chain().focus().deleteRange(VT).insertContentAt(VT.from,e).run();QT()}()},onReject:()=>{QT()},onCancel:()=>{JT()},onCancelGeneration:()=>{JT()}})}),qT.mount(jT)}(t)}(i,s,{from:o,to:a}),!0}})});let qT=null,jT=null,HT=null,VT=null;const $T=e.ref(!1),GT=e.ref(""),KT=e.ref(""),ZT=e.ref(!1),XT=e.ref(!1);function YT(){qT&&(qT.unmount(),qT=null),jT&&jT.parentNode&&(jT.remove(),jT=null)}function JT(){QT()}function QT(){HT&&vT(HT),YT(),$T.value=!1,GT.value="",KT.value="",ZT.value=!1,XT.value=!1,HT=null,VT=null}const ek={class:"ai-suggestion-content"},tk={class:"ai-suggestion-header"},nk={class:"ai-suggestion-title"},ik={class:"ai-suggestion-body"},rk={class:"original-text"},ok={class:"text-label"},ak={class:"text-content"},sk={class:"suggested-text"},ck={class:"text-label"},uk={class:"text-content"},lk={class:"ai-suggestion-footer"},dk={class:"footer-right"},hk=$(e.defineComponent({U:"AiSuggestionPopover",props:{visible:{type:Boolean,default:!1},originalText:{default:""},suggestedText:{default:""},isStreaming:{type:Boolean,default:!1},position:{},editorElement:{}},emits:["update:visible","accept","reject","cancel"],setup(t,{emit:r}){const o=t,a=r,s=e.ref(),c=e.computed(()=>o.position?{position:"absolute",top:`${o.position.top}px`,left:`${o.position.left}px`,width:"0px",height:"0px",pointerEvents:"none"}:{position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px",pointerEvents:"none"}),u=()=>o.editorElement||document.body,l=()=>{a("accept")},d=()=>{a("reject")},h=()=>{a("cancel")},f=e=>{a("update:visible",e),e||a("cancel")};return(r,o)=>(e.openBlock(),e.createBlock(e.unref(n.Popover),{open:t.visible,getPopupContainer:u,placement:"bottomLeft",trigger:[],overlayClassName:"ai-suggestion-popover","onUpdate:open":f},{content:e.withCtx(()=>[e.createElementVNode("div",ek,[e.createElementVNode("div",tk,[e.createElementVNode("span",nk,e.toDisplayString(e.unref(R)("editor.aiSuggestion")),1),t.isStreaming?(e.openBlock(),e.createBlock(e.unref(i.LoadingOutlined),{key:0,class:"ai-loading-icon"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",ik,[t.originalText?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",rk,[e.createElementVNode("div",ok,e.toDisplayString(e.unref(R)("editor.originalText")),1),e.createElementVNode("div",ak,e.toDisplayString(t.originalText),1)]),e.createVNode(e.unref(i.ArrowDownOutlined),{class:"arrow-icon"})],64)):e.createCommentVNode("",!0),e.createElementVNode("div",sk,[e.createElementVNode("div",ck,e.toDisplayString(t.originalText?e.unref(R)("editor.suggestedText"):e.unref(R)("editor.aiContinueWriting")),1),e.createElementVNode("div",uk,e.toDisplayString(t.suggestedText||e.unref(R)("editor.generating")),1)])]),e.createElementVNode("div",lk,[e.createVNode(e.unref(n.Button),{size:"small",onClick:h,disabled:t.isStreaming},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.cancel")),1)]),T:1},8,["disabled"]),e.createElementVNode("div",dk,[e.createVNode(e.unref(n.Button),{size:"small",onClick:d,disabled:t.isStreaming},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.reject")),1)]),T:1},8,["disabled"]),e.createVNode(e.unref(n.Button),{type:"primary",size:"small",onClick:l,disabled:t.isStreaming},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("editor.accept")),1)]),T:1},8,["disabled"])])])])]),default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"anchorRef",ref:s,style:e.normalizeStyle(c.value)},null,4)]),T:1},8,["open"]))}}),[["__scopeId","data-v-aaa26262"]]),fk=o.Extension.create({name:"continueWriting",addCommands:()=>({continueWriting:()=>({state:e,editor:t})=>{const{selection:i}=e,{from:r,to:o}=i,a=e.doc.textBetween(r,o," ");if(!a.trim())return n.notification.warning({message:R("editor.pleaseSelectText"),description:R("editor.continueWritingRequiresSelection"),duration:2,placement:"topRight"}),!1;const s={from:r,to:o},c={from:o,to:o};return function(e,t,i,r,o,a){vT(e),gk=e,bk=r,vk=a,yk.value=!0,wk.value=t,xk.value="",Dk.value=!0;const s={originalText:t,suggestedText:"",isStreaming:!1};gT(e,a.from,a.to,s),e.chain().focus().insertContentAt(o," ").run();const c={from:o,to:o+1},u={originalText:"",suggestedText:"",isStreaming:!0};gT(e,c.from,c.to,u),mk||Uk(e);kk();let l="";const d={onStart:()=>{l=""},onMessage:t=>{if(t&&t.content&&(l+=t.content,xk.value=l,bk&&gk)){const{state:t}=gk,{doc:n}=t,i=n.content.size;bk.from>=0&&bk.to>=0&&bk.from<=i&&bk.to<=i&&bk.from<=bk.to&&bT(e,bk.from,bk.to,{suggestedText:l})}},onStop:()=>{try{if(Dk.value=!1,bk&&gk){const{state:t}=gk,{doc:n}=t,i=n.content.size;bk.from>=0&&bk.to>=0&&bk.from<=i&&bk.to<=i&&bk.from<=bk.to&&bT(e,bk.from,bk.to,{isStreaming:!1})}}catch(t){}},onError:e=>{Ak(),n.notification.error({message:"续写失败",description:e.message||R("messages.networkError"),duration:3})}};dT.continueWriting(t,i,d)}(t,a,`以下係完整嘅文件內容:\n\n${e.doc.textBetween(0,e.doc.content.size," ")}`,c,o,s),!0}})});let mk=null,pk=null,gk=null,bk=null,vk=null;const yk=e.ref(!1),wk=e.ref(""),xk=e.ref(""),Dk=e.ref(!1);function Uk(t){mk&&(mk.unmount(),mk=null);const n=t.view.dom.parentElement;pk&&pk.parentNode||(pk=document.createElement("div"),pk.style.position="absolute",pk.style.top="0",pk.style.left="0",pk.style.zIndex="1000",n?n.append(pk):document.body.append(pk));const i=function(e){const t=vk||bk;if(!t)return{left:0,top:0};const{from:n,to:i}=t,{view:r}=e,o=r.coordsAtPos(n),a=r.coordsAtPos(i),s=r.dom.getBoundingClientRect(),c=a.bottom-s.top+8;return{left:o.left-s.left,top:c}}(t);mk=e.createApp({render:()=>e.h(hk,{visible:yk.value,originalText:wk.value,suggestedText:xk.value,isStreaming:Dk.value,position:i,editorElement:n||void 0,"onUpdate:visible":e=>{yk.value=e},onAccept:()=>{!function(){if(!gk||!bk)return;const e=xk.value,{state:t}=gk,{doc:n}=t,i=n.content.size;if(!mT(bk,i))return void Ak();if(fT(e)){const n=hT(e,t.schema);if(n.length>0){const e=t.tr;e.replaceWith(bk.from,bk.to,n),gk.view.dispatch(e)}}else gk.chain().focus().deleteRange(bk).insertContentAt(bk.from,e).run();Ak()}()},onReject:()=>{Ak()},onCancel:()=>{Tk(),yk.value=!1,kk()}})}),mk.mount(pk)}function Tk(){mk&&(mk.unmount(),mk=null)}function kk(){if(!gk)return;const e=gk.view.dom,t=e.Oo;t&&e.removeEventListener("click",t);const n=e=>{const t=e.target;if(!t)return;const n=t.classList.contains("ai-highlight")?t:t.closest(".ai-highlight");if(!n)return;if(!gk||!bk)return;if(yk.value)return;let i;e.stopPropagation();try{i=gk.view.posAtDOM(n,0)}catch(o){i=vk?.from||bk.from}let r=yT(gk,i);!r&&vk&&(r=yT(gk,vk.from)),r||(r={originalText:wk.value,suggestedText:xk.value,isStreaming:Dk.value}),wk.value=r.originalText||wk.value,xk.value=r.suggestedText||xk.value,Dk.value=r.isStreaming||!1,Tk(),Uk(gk),yk.value=!0};e.Oo=n,e.addEventListener("click",n)}function Ak(){if(gk){const e=gk.view.dom,t=e.Oo;t&&(e.removeEventListener("click",t),delete e.Oo),vT(gk)}Tk(),yk.value=!1,wk.value="",xk.value="",Dk.value=!1,gk=null,bk=null,vk=null}const Fk=o.Extension.create({name:"polish",addCommands:()=>({polish:()=>({state:e,editor:t})=>{const{selection:i}=e,{from:r,to:o}=i,a=e.doc.textBetween(r,o," ");if(!a.trim())return n.notification.warning({message:R("editor.pleaseSelectText"),description:R("editor.polishRequiresSelection"),duration:2,placement:"topRight"}),!1;const s={from:r,to:o};return function(e,t,i,r){vT(e),Ck=e,Bk=r,Wk.value=!0,Ik.value=t,Mk.value="",Rk.value=!0;const o={originalText:t,suggestedText:"",isStreaming:!0};gT(e,r.from,r.to,o),Sk||zk(e);Ok();let a="";const s={onStart:()=>{a=""},onMessage:t=>{if(t&&t.content&&(a+=t.content,Mk.value=a,Bk&&Ck)){const{state:t}=Ck,{doc:n}=t,i=n.content.size;Bk.from>=0&&Bk.to>=0&&Bk.from<=i&&Bk.to<=i&&Bk.from<=Bk.to&&bT(e,Bk.from,Bk.to,{suggestedText:a})}},onStop:()=>{try{if(Rk.value=!1,Bk&&Ck){const{state:t}=Ck,{doc:n}=t,i=n.content.size;Bk.from>=0&&Bk.to>=0&&Bk.from<=i&&Bk.to<=i&&Bk.from<=Bk.to&&bT(e,Bk.from,Bk.to,{isStreaming:!1})}}catch(t){}},onError:e=>{Pk(),n.notification.error({message:"润色失败",description:e.message||R("messages.networkError"),duration:3})}};dT.polish(t,i,s)}(t,a,`以下係完整嘅文件內容:\n\n${e.doc.textBetween(0,e.doc.content.size," ")}`,s),!0}})});let Sk=null,Ek=null,Ck=null,Bk=null;const Wk=e.ref(!1),Ik=e.ref(""),Mk=e.ref(""),Rk=e.ref(!1);function zk(t){Sk&&(Sk.unmount(),Sk=null);const n=t.view.dom.parentElement;Ek&&Ek.parentNode?Ek.innerHTML="":(Ek=document.createElement("div"),Ek.style.position="absolute",Ek.style.top="0",Ek.style.left="0",Ek.style.zIndex="1000",n?n.append(Ek):document.body.append(Ek));const i=function(e){if(!Bk)return{left:0,top:0};const{from:t,to:n}=Bk,{view:i}=e,r=i.coordsAtPos(t),o=i.coordsAtPos(n),a=i.dom.getBoundingClientRect(),s=o.bottom-a.top+8;return{left:r.left-a.left,top:s}}(t);Sk=e.createApp({render:()=>e.h(hk,{visible:Wk.value,originalText:Ik.value,suggestedText:Mk.value,isStreaming:Rk.value,position:i,editorElement:n||void 0,"onUpdate:visible":e=>{Wk.value=e},onAccept:()=>{!function(){if(!Ck||!Bk)return;const e=Mk.value,{state:t}=Ck,{doc:n}=t,i=n.content.size;if(!mT(Bk,i))return void Pk();if(fT(e)){const n=hT(e,t.schema);if(n.length>0){const e=t.tr;e.replaceWith(Bk.from,Bk.to,n),Ck.view.dispatch(e)}}else Ck.chain().focus().deleteRange(Bk).insertContentAt(Bk.from,e).run();Pk()}()},onReject:()=>{Pk()},onCancel:()=>{_k(),Wk.value=!1,Ok()}})}),Sk.mount(Ek)}function _k(){Sk&&(Sk.unmount(),Sk=null)}function Ok(){if(!Ck)return;const e=Ck.view.dom,t=e.Po;t&&e.removeEventListener("click",t);const n=e=>{const t=e.target;if(!t)return;const n=t.classList.contains("ai-highlight")?t:t.closest(".ai-highlight");if(!n)return;if(!Ck||!Bk)return;if(Wk.value)return;let i;e.stopPropagation();try{i=Ck.view.posAtDOM(n,0)}catch(o){i=Bk.from}let r=yT(Ck,i);!r&&Bk&&(r=yT(Ck,Bk.from)),r||(r={originalText:Ik.value,suggestedText:Mk.value,isStreaming:Rk.value}),Ik.value=r.originalText||Ik.value,Mk.value=r.suggestedText||Mk.value,Rk.value=r.isStreaming||!1,_k(),zk(Ck),Wk.value=!0};e.Po=n,e.addEventListener("click",n)}function Pk(){if(Ck){const e=Ck.view.dom,t=e.Po;t&&(e.removeEventListener("click",t),delete e.Po),vT(Ck)}_k(),Ek&&Ek.parentNode&&Ek.parentNode.removeChild(Ek),Ek=null,Wk.value=!1,Ik.value="",Mk.value="",Rk.value=!1,Ck=null,Bk=null}const Lk=new class{editor=null;popoverApp=null;container=null;state={visible:!1,originalText:"",suggestedText:"",isStreaming:!1,originalSelection:{from:0,to:0}};visibleRef=e.ref(!1);originalTextRef=e.ref("");suggestedTextRef=e.ref("");isStreamingRef=e.ref(!1);isTemporarilyHidden=!1;clickHandler=null;init(e){this.editor=e,this.setupClickHandler(),this.restoreExistingHighlights()}setupClickHandler(){this.editor&&(this.removeClickHandler(),this.clickHandler=e=>{const t=e.target,n=t.classList.contains("ai-highlight")?t:t.closest(".ai-highlight");if(n){const e=this.editor.view.posAtDOM(n,0),t=yT(this.editor,e);t&&(this.isTemporarilyHidden&&this.state.visible?this.showPopover():this.state.visible||this.restoreSuggestion(n,t))}},this.editor.view.dom.addEventListener("click",this.clickHandler))}removeClickHandler(){this.editor&&this.clickHandler&&(this.editor.view.dom.removeEventListener("click",this.clickHandler),this.clickHandler=null)}restoreExistingHighlights(){this.editor}restoreSuggestion(e,t){if(!this.editor)return;const n=this.editor.view.posAtDOM(e,0),i=this.editor.state.doc.nodeAt(n);if(!i)return;const r=n,o=n+i.nodeSize;this.state={visible:!0,originalText:t.originalText,suggestedText:t.suggestedText,isStreaming:!1,originalSelection:{from:r,to:o}},this.visibleRef.value=!0,this.originalTextRef.value=t.originalText,this.suggestedTextRef.value=t.suggestedText,this.isStreamingRef.value=!1,this.isTemporarilyHidden=!1,this.popoverApp||this.mountPopover()}show(e,t,n){if(n&&!this.editor&&this.init(n),!this.editor)return;this.state={visible:!0,originalText:e,suggestedText:"",isStreaming:!0,originalSelection:t},this.visibleRef.value=!0,this.originalTextRef.value=e,this.suggestedTextRef.value="",this.isStreamingRef.value=!0,this.isTemporarilyHidden=!1;const i={originalText:e,suggestedText:"",isStreaming:!0};gT(this.editor,t.from,t.to,i),this.popoverApp||this.mountPopover()}showPopover(){this.isTemporarilyHidden=!1,this.visibleRef.value=!0}updateSuggestion(e){this.state.suggestedText=e,this.suggestedTextRef.value=e,this.editor&&this.state.originalSelection&&bT(this.editor,this.state.originalSelection.from,this.state.originalSelection.to,{suggestedText:e})}stopStreaming(){this.state.isStreaming=!1,this.isStreamingRef.value=!1,this.editor&&this.state.originalSelection&&bT(this.editor,this.state.originalSelection.from,this.state.originalSelection.to,{isStreaming:!1})}accept(){if(!this.editor||!this.state.visible)return;const{originalSelection:e,suggestedText:t}=this.state,{state:n}=this.editor;if(/\r?\n/.test(t)){const i=this.buildParagraphNodes(t);if(i.length>0){const t=n.tr;t.replaceWith(e.from,e.to,i),this.editor.view.dispatch(t)}}else this.editor.chain().focus().deleteRange(e).insertContentAt(e.from,t).run();this.hide()}buildParagraphNodes(e){if(!this.editor)return[];const{schema:t}=this.editor.state;if(!t.nodes.paragraph)return[];const n=e.split(/\r?\n/),i=[];for(const r of n)if(r.length>0){const e=t.text(r),n=t.nodes.paragraph.create(null,e);i.push(n)}else{const e=t.nodes.paragraph.create();i.push(e)}return i}reject(){this.hide()}cancel(){this.isTemporarilyHidden=!0,this.visibleRef.value=!1}hide(){this.editor&&(this.visibleRef.value=!1,this.isTemporarilyHidden=!1,vT(this.editor),this.unmountPopover(),this.state={visible:!1,originalText:"",suggestedText:"",isStreaming:!1,originalSelection:{from:0,to:0}})}isVisible(){return this.state.visible}getState(){return{...this.state}}mountPopover(){if(!this.editor)return;if(this.popoverApp&&this.container)return;this.container=document.createElement("div"),this.container.style.position="absolute",this.container.style.top="0",this.container.style.left="0",this.container.style.zIndex="1000";const t=this.editor.view.dom.parentElement;t?t.append(this.container):document.body.append(this.container);const n=this.calculatePopoverPosition();this.popoverApp=e.createApp({render:()=>e.h(hk,{visible:this.visibleRef.value,originalText:this.originalTextRef.value,suggestedText:this.suggestedTextRef.value,isStreaming:this.isStreamingRef.value,position:n,editorElement:t||void 0,"onUpdate:visible":e=>{this.visibleRef.value=e},onAccept:()=>{this.accept()},onReject:()=>{this.reject()},onCancel:()=>{this.cancel()}})}),this.popoverApp.mount(this.container)}unmountPopover(){this.popoverApp&&(this.popoverApp.unmount(),this.popoverApp=null),this.container&&this.container.parentNode&&(this.container.remove(),this.container=null)}calculatePopoverPosition(){if(!this.editor)return{top:0,left:0};const{from:e,to:t}=this.state.originalSelection,{view:n}=this.editor,i=n.coordsAtPos(e),r=n.coordsAtPos(t),o=n.dom.getBoundingClientRect();return{top:r.bottom-o.top+8,left:i.left-o.left}}destroy(){this.removeClickHandler(),this.hide(),this.editor=null}},Nk=o.Extension.create({name:"summarize",addCommands:()=>({summarize:()=>({state:e,editor:t})=>{const{selection:i}=e,{from:r,to:o}=i,a=e.doc.textBetween(r,o," ");return a.trim()?(function(e,t,i){let r="";Lk.show(t,i,e);const o=e.state,a=o.doc.textBetween(0,o.doc.content.size," "),s=`以下係完整嘅文件內容:\n\n${a}`,c={onStart:()=>{r=""},onMessage:e=>{e&&e.content&&(r+=e.content,Lk.updateSuggestion(r))},onStop:()=>{try{Lk.stopStreaming(),Lk.updateSuggestion(r)}catch(e){}},onError:e=>{Lk.hide(),n.notification.error({message:"总结失败",description:e.message||R("messages.networkError"),duration:3})}};dT.summarize(t,s,c)}(t,a,{from:r,to:o}),!0):(n.notification.warning({message:R("editor.pleaseSelectText"),description:R("editor.summarizeRequiresSelection"),duration:3,placement:"topRight"}),!1)}})});const qk="tiptap_translate_target_lang",jk="undefined"!=typeof window?window.localStorage?.getItem(qk):null,Hk=e.ref(jk||"");const Vk=o.Extension.create({name:"translation",addOptions:()=>({defaultTargetLang:"英文"}),addCommands(){return{translate:e=>({state:t,editor:i})=>{const{selection:r}=t,{from:o,to:a}=r,s=t.doc.textBetween(o,a," ");if(!s.trim())return n.notification.warning({message:R("editor.pleaseSelectText"),description:R("editor.translateRequiresSelection"),duration:3,placement:"topRight"}),!1;return function(e,t,i,r){let o="";Lk.show(t,r,e);const a=e.state,s=a.doc.textBetween(0,a.doc.content.size," "),c=`以下係完整嘅文件內容:\n\n${s}`,u={onStart:()=>{o=""},onMessage:e=>{e&&e.content&&(o+=e.content,Lk.updateSuggestion(o))},onStop:()=>{try{Lk.stopStreaming(),Lk.updateSuggestion(o)}catch(e){}},onError:e=>{Lk.hide(),n.notification.error({message:R("messages.translationFailed"),description:e.message||R("messages.networkError"),duration:3})}};dT.translate(t,i,c,u)}(i,s,e||Hk.value||this.options.defaultTargetLang||"英文",{from:o,to:a}),!0}}}});const $k=[{code:"zh-CN",key:"zh-CN"},{code:"zh-TW",key:"zh-TW"},{code:"en",key:"en"},{code:"ja",key:"ja"},{code:"th",key:"th"},{code:"fr",key:"fr"},{code:"es",key:"es"},{code:"pt",key:"pt"},{code:"ko",key:"ko"},{code:"vi",key:"vi"},{code:"ru",key:"ru"},{code:"de",key:"de"},{code:"hi",key:"hi"},{code:"id",key:"id"}],Gk={class:"ai-menu-button__content"},Kk={key:1,class:"ai-menu-button__label"},Zk=["onClick"],Xk={class:"ai-menu-item__label"},Yk=["title"],Jk={class:"ai-menu-item"},Qk={class:"ai-menu-item__label"},eA={class:"ai-menu-item"},tA={class:"ai-menu-item__label"},nA=$(e.defineComponent({U:"AiMenuButton",props:{editor:{},icon:{},label:{},title:{},active:{type:Boolean,default:!1},placement:{default:"bottom"}},setup(t){const r=e.ref(!1),o=t,a=e.ref(!1),s=e.computed(()=>!!Hk.value),c=e.computed(()=>{if(!Hk.value)return"";const e=$k.find(e=>R(`editor.lang.${e.key}`)===Hk.value);return e?`translate-${e.code}`:""});let u=null;function l(){u&&(clearTimeout(u),u=null)}function d(){l(),u=window.setTimeout(()=>{a.value=!1},150)}function h(){s.value||(l(),a.value=!0)}function f(){s.value||d()}function m(){l()}function p(){d()}function g(e){s.value&&(a.value=e)}function b(e,t){for(const n of e){if(n.key===t)return n;if(n.children?.length){const e=b(n.children,t);if(e)return e}}}function v(t){const n=b(x.value,t.key);n&&e.nextTick(()=>{requestAnimationFrame(()=>{setTimeout(()=>{try{n.action?.()}catch(e){}},50)})})}function y(t){const n=b(x.value,t.key);n&&e.nextTick(()=>{requestAnimationFrame(()=>{setTimeout(()=>{try{n.action?.()}catch(e){}},50)})})}function w(e){e||(a.value=!1)}const x=e.computed(()=>{const{editor:e}=o;return[{key:"continueWriting",label:R("editor.continueWriting"),icon:i.ThunderboltOutlined,action:()=>{if(e)try{const{state:t}=e,{selection:n,doc:i}=t,r=i.content.size;if(n.from<0||n.to<0||n.from>r||n.to>r||n.from>n.to)return;if("function"==typeof e.commands.continueWriting){e.chain().focus().continueWriting().run()}else e.commands.focus()}catch(t){}},disabled:!1,danger:!1},{key:"polish",label:R("editor.polish"),icon:i.EditOutlined,action:()=>{if(e)try{const{state:t}=e,{selection:n,doc:i}=t,r=i.content.size;if(n.from<0||n.to<0||n.from>r||n.to>r||n.from>n.to)return;if("function"==typeof e.commands.polish){e.chain().focus().polish().run()}else e.commands.focus()}catch(t){}},disabled:!1,danger:!1},{key:"summarize",label:R("editor.summarize"),icon:i.FileTextOutlined,action:()=>{if(e)try{const{state:t}=e,{selection:n,doc:i}=t,r=i.content.size;if(n.from<0||n.to<0||n.from>r||n.to>r||n.from>n.to)return;if("function"==typeof e.commands.summarize){e.chain().focus().summarize().run()}else e.commands.focus()}catch(t){}},disabled:!1,danger:!1},{key:"customAi",label:R("editor.customAi"),icon:i.BulbOutlined,action:()=>{if(e)try{const{state:t}=e,{selection:n,doc:i}=t,r=i.content.size;if(n.from<0||n.to<0||n.from>r||n.to>r||n.from>n.to)return;if("function"==typeof e.commands.customAi){e.chain().focus().customAi().run()}else e.commands.focus()}catch(t){}},disabled:!1,danger:!1},{key:"translate",label:Hk.value?R("editor.translateTo",{lang:Hk.value}):R("editor.translate"),icon:i.TranslationOutlined,action:()=>{if(e)try{const{state:t}=e,{selection:n,doc:i}=t,r=i.content.size;if(n.from<0||n.to<0||n.from>r||n.to>r||n.from>n.to)return;const o=Hk.value||"英文";if("function"==typeof e.commands.translate){e.chain().focus().translate(o).run()}else e.commands.focus()}catch(t){}},disabled:!1,danger:!1,children:$k.map(({code:t,key:n})=>{const i=R(`editor.lang.${n}`);return{key:`translate-${t}`,label:i,action:()=>{if(e){!function(e){try{Hk.value=e,"undefined"!=typeof window&&window.localStorage?.setItem(qk,e)}catch(t){}}(i);try{const{state:t}=e,{selection:n,doc:r}=t,o=r.content.size;if(n.from<0||n.to<0||n.from>o||n.to>o||n.from>n.to)return;if("function"==typeof e.commands.translate){e.chain().focus().translate(i).run()}else e.commands.focus()}catch(t){}}},disabled:!1,danger:!1}})}]});return(o,u)=>{const l=e.resolveComponent("a-button"),d=e.resolveComponent("a-menu-item"),b=e.resolveComponent("a-menu"),D=e.resolveComponent("a-dropdown");return e.openBlock(),e.createBlock(D,{placement:t.placement,trigger:["click"],open:r.value,"onUpdate:open":u[0]||(u[0]=e=>r.value=e),onOpenChange:w},{overlay:e.withCtx(()=>[e.createVNode(b,{onClick:v,style:{"max-height":"360px","overflow-y":"auto"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.key},[t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{key:t.key+":with-children"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"ai-menu-translate-split",onMouseenter:h,onMouseleave:f},[e.createElementVNode("span",{class:"ai-menu-translate-split__main",onClick:e.withModifiers(n=>function(t){s.value?e.nextTick(()=>{requestAnimationFrame(()=>{setTimeout(()=>{try{t.action?.()}catch(e){}},50)})}):a.value=!0}(t),["stop"])},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"ai-menu-item__icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",Xk,e.toDisplayString(t.label),1)],8,Zk),e.createVNode(D,{trigger:s.value?["hover"]:[],placement:"rightTop",open:a.value,onOpenChange:g},{overlay:e.withCtx(()=>[e.createElementVNode("div",{class:"ai-menu-translate-overlay",onMouseenter:m,onMouseleave:p},[e.createVNode(b,{onClick:y,class:"ai-menu-dropdown-overlay",selectedKeys:c.value?[c.value]:[]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,t=>(e.openBlock(),e.createBlock(d,{key:t.key,disabled:t.disabled,danger:t.danger},{default:e.withCtx(()=>[e.createElementVNode("span",Jk,[e.createElementVNode("span",Qk,e.toDisplayString(t.label),1)])]),T:2},1032,["disabled","danger"]))),128))]),T:2},1032,["selectedKeys"])],32)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ai-menu-translate-split__arrow",title:e.unref(R)("editor.selectLanguage")},[e.createVNode(e.unref(i.RightOutlined))],8,Yk)]),T:2},1032,["trigger","open"])],32)]),T:2},1024)):(e.openBlock(),e.createBlock(d,{key:t.key,disabled:t.disabled,danger:t.danger},{default:e.withCtx(()=>[e.createElementVNode("span",eA,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"ai-menu-item__icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",tA,e.toDisplayString(t.label),1)])]),T:2},1032,["disabled","danger"]))],64))),128))]),T:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(n.Tooltip),{title:t.title,placement:"top",open:!r.value&&void 0},{default:e.withCtx(()=>[e.createVNode(l,{type:"text",class:e.normalizeClass(["ai-menu-button",{"is-active":t.active}])},{default:e.withCtx(()=>[e.createElementVNode("span",Gk,[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0,class:"ai-menu-button__icon"})):e.createCommentVNode("",!0),t.label?(e.openBlock(),e.createElementBlock("span",Kk,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createVNode(e.unref(i.DownOutlined),{class:"ai-menu-button__arrow"})])]),T:1},8,["class"])]),T:1},8,["title","open"])]),T:1},8,["placement","open"])}}}),[["__scopeId","data-v-5694703b"]]),iA=$(e.defineComponent({U:"BaseTooltip",props:{title:{},placement:{default:"top"}},setup(t){const n=e.ref(!1);return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:"tt-tooltip-wrapper",onMouseenter:r[0]||(r[0]=e=>n.value=!0),onMouseleave:r[1]||(r[1]=e=>n.value=!1),onFocus:r[2]||(r[2]=e=>n.value=!0),onBlur:r[3]||(r[3]=e=>n.value=!1)},[e.renderSlot(i.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"tt-tooltip-fade"},{default:e.withCtx(()=>[n.value&&t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tt-tooltip",`tt-tooltip--${t.placement}`])},[e.createTextVNode(e.toDisplayString(t.title)+" ",1),r[4]||(r[4]=e.createElementVNode("div",{class:"tt-tooltip__arrow"},null,-1))],2)):e.createCommentVNode("",!0)]),T:1})],32))}}),[["__scopeId","data-v-7b895e84"]]),rA={class:"ai-settings"},oA={class:"ai-settings__section"},aA={class:"ai-settings__label"},sA={key:0,class:"ai-settings__hint"},cA=["href"],uA={key:0,class:"ai-settings__section"},lA={class:"ai-settings__hint"},dA={key:1,class:"ai-settings__section"},hA={class:"ai-settings__label"},fA={class:"ai-settings__section"},mA={class:"ai-settings__label"},pA={class:"ai-settings__hint"},gA={class:"ai-settings__section"},bA={key:0,class:"ai-settings__latency"},vA={key:1,class:"ai-settings__error"},yA={class:"ai-settings__section ai-settings__section--inline"},wA={class:"ai-settings__label"},xA={class:"ai-settings__actions"},DA={class:"ai-settings__actions-right"},UA=e.defineComponent({U:"AiSettingsModal",props:{open:{type:Boolean,default:!1}},emits:["update:open","saved"],setup(t,{emit:r}){const o=n.Input.Password,a=t,s=r,c=e.computed({get:()=>a.open,set:e=>s("update:open",e)}),{config:u,testConnection:l,saveConfig:d,clearConfig:h}=aT(),f=e.reactive({provider:"openai",apiKey:"",endpoint:"",model:"",timeout:$U.timeout,enabled:!0}),m=e.ref("idle"),p=e.ref(null),g=e.ref(null),b=e.computed(()=>GU.map(e=>({value:e.id,label:e.name}))),v=e.computed(()=>KU(f.provider)),y=e.computed(()=>{const e=v.value;return!!e&&(!(e.requiresApiKey&&!f.apiKey)&&!("custom"===f.provider&&!f.endpoint))}),w=e.computed(()=>{switch(m.value){case"testing":return R("aiSettings.testing");case"success":return R("aiSettings.testSuccess");case"error":return R("aiSettings.testFailed");default:return R("aiSettings.testConnection")}});function x(e){const t=KU(e);t&&(f.endpoint=t.defaultEndpoint,f.model=t.defaultModel),m.value="idle",p.value=null}async function D(){m.value="testing",p.value=null,g.value=null;const e={...f,updatedAt:Date.now()};d(e);const t=await l();m.value=t.success?"success":"error",p.value=t.success?null:t.message,g.value=t.latency??null}function U(){const e={...f,updatedAt:Date.now()};d(e),s("saved"),k()}function T(){h(),Object.assign(f,{provider:"openai",apiKey:"",endpoint:"",model:"",timeout:$U.timeout,enabled:!0}),m.value="idle",p.value=null,g.value=null}function k(){c.value=!1}return e.watch(()=>a.open,e=>{e&&u.value&&(Object.assign(f,{provider:u.value.provider,apiKey:u.value.apiKey,endpoint:u.value.endpoint||"",model:u.value.model,timeout:u.value.timeout,enabled:u.value.enabled}),m.value="idle",p.value=null,g.value=null)}),(t,r)=>(e.openBlock(),e.createBlock(e.unref(n.Modal),{open:c.value,"onUpdate:open":r[5]||(r[5]=e=>c.value=e),title:e.unref(R)("aiSettings.title"),width:520,footer:null,onCancel:k,class:"ai-settings-modal"},{default:e.withCtx(()=>[e.createElementVNode("div",rA,[e.createElementVNode("div",oA,[e.createElementVNode("label",aA,e.toDisplayString(e.unref(R)("aiSettings.provider")),1),e.createVNode(e.unref(n.Select),{value:f.provider,"onUpdate:value":r[0]||(r[0]=e=>f.provider=e),options:b.value,class:"ai-settings__select",onChange:x},null,8,["value","options"]),v.value?.docsUrl?(e.openBlock(),e.createElementBlock("p",sA,[e.createElementVNode("a",{href:v.value.docsUrl,target:"_blank",rel:"noopener"},e.toDisplayString(e.unref(R)("aiSettings.viewDocs"))+" → ",9,cA)])):e.createCommentVNode("",!0)]),v.value?.requiresApiKey?(e.openBlock(),e.createElementBlock("div",uA,[r[6]||(r[6]=e.createElementVNode("label",{class:"ai-settings__label"},"API Key",-1)),e.createVNode(e.unref(o),{value:f.apiKey,"onUpdate:value":r[1]||(r[1]=e=>f.apiKey=e),placeholder:e.unref(R)("aiSettings.apiKeyPlaceholder"),class:"ai-settings__input"},null,8,["value","placeholder"]),e.createElementVNode("p",lA,e.toDisplayString(e.unref(R)("aiSettings.apiKeyHint")),1)])):e.createCommentVNode("",!0),"custom"===f.provider||"ollama"===f.provider?(e.openBlock(),e.createElementBlock("div",dA,[e.createElementVNode("label",hA,e.toDisplayString(e.unref(R)("aiSettings.endpoint")),1),e.createVNode(e.unref(n.Input),{value:f.endpoint,"onUpdate:value":r[2]||(r[2]=e=>f.endpoint=e),placeholder:v.value?.defaultEndpoint||"https://api.example.com/v1",class:"ai-settings__input"},null,8,["value","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("div",fA,[e.createElementVNode("label",mA,e.toDisplayString(e.unref(R)("aiSettings.model")),1),e.createVNode(e.unref(n.Input),{value:f.model,"onUpdate:value":r[3]||(r[3]=e=>f.model=e),placeholder:v.value?.defaultModel||"gpt-4o-mini",class:"ai-settings__input"},null,8,["value","placeholder"]),e.createElementVNode("p",pA,e.toDisplayString(v.value?.description),1)]),e.createElementVNode("div",gA,[e.createVNode(e.unref(n.Button),{loading:"testing"===m.value,type:"success"===m.value?"default":"primary",onClick:D},{icon:e.withCtx(()=>["success"===m.value?(e.openBlock(),e.createBlock(e.unref(i.CheckCircleOutlined),{key:0,style:{color:"#52c41a"}})):"error"===m.value?(e.openBlock(),e.createBlock(e.unref(i.CloseCircleOutlined),{key:1,style:{color:"#ff4d4f"}})):(e.openBlock(),e.createBlock(e.unref(i.ApiOutlined),{key:2}))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(w.value),1)]),T:1},8,["loading","type"]),g.value?(e.openBlock(),e.createElementBlock("span",bA,e.toDisplayString(g.value)+"ms ",1)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("p",vA,e.toDisplayString(p.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",yA,[e.createElementVNode("label",wA,e.toDisplayString(e.unref(R)("aiSettings.enableAi")),1),e.createVNode(e.unref(n.Switch),{checked:f.enabled,"onUpdate:checked":r[4]||(r[4]=e=>f.enabled=e)},null,8,["checked"])]),e.createElementVNode("div",xA,[e.createVNode(e.unref(n.Button),{onClick:T,danger:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("aiSettings.clear")),1)]),T:1}),e.createElementVNode("div",DA,[e.createVNode(e.unref(n.Button),{onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("aiSettings.cancel")),1)]),T:1}),e.createVNode(e.unref(n.Button),{type:"primary",onClick:U,disabled:!y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("aiSettings.save")),1)]),T:1},8,["disabled"])])])])]),T:1},8,["open","title"]))}}),TA=["disabled"],kA={key:0,class:"ai-spinner"},AA={key:1,class:"ai-badge"},FA={key:0,class:"ai-menu-dropdown"},SA={key:0,class:"ai-menu-hint"},EA=["onClick","disabled"],CA={class:"ai-menu-item-icon"},BA={class:"ai-menu-item-label"},WA={class:"ai-menu-custom"},IA=["placeholder","disabled"],MA=["disabled"],RA={class:"ai-menu-item-label"},zA={key:0,class:"ai-status-dot ai-status-dot--success"},_A={key:1,class:"ai-status-dot ai-status-dot--warning"},OA=$(e.defineComponent({U:"AiToolbarMenu",props:{editor:{},adapter:{}},setup(t){const n=t,i=e.ref(!1),r=e.ref(""),o=e.ref(null),a=e.ref(!1),{isConfigured:s}=aT(),{isLoading:c,continueWritingStream:u,polishStream:l,summarizeStream:d,translateStream:h,customAiStream:f}=LA({adapter:n.adapter}),m=e.computed(()=>[{key:"continue",label:R("editor.continueWriting"),icon:"✍️",action:y},{key:"polish",label:R("editor.polish"),icon:"✨",action:w},{key:"summarize",label:R("editor.summarize"),icon:"📝",action:x},{key:"translate-en",label:R("editor.lang.en"),icon:"🌐",action:()=>D("en")},{key:"translate-zh",label:R("editor.lang.zh-CN"),icon:"🇨🇳",action:()=>D("zh-CN")}]),p=()=>{i.value=!i.value},g=()=>{if(!n.editor)return"";const{from:e,to:t}=n.editor.state.selection;return n.editor.state.doc.textBetween(e,t," ")},b=e=>{n.editor?.chain().focus().insertContent(e).run()},v=e=>{n.editor?.chain().focus().deleteSelection().insertContent(e).run()},y=async()=>{i.value=!1;const e=g()||n.editor?.getText()||"";e.trim()&&(n.editor?.commands.focus("end"),await u(e,{onToken:e=>b(e),onError:e=>{}}))},w=async()=>{i.value=!1;const e=g();if(!e.trim())return;let t="";await l(e,{onToken:e=>{t+=e},onComplete:()=>v(t),onError:e=>{}})},x=async()=>{i.value=!1;const e=g()||n.editor?.getText()||"";e.trim()&&await d(e,{onToken:e=>b(e),onError:e=>{}})},D=async e=>{i.value=!1;const t=g();if(!t.trim())return;let n="";await h(t,e,{onToken:e=>{n+=e},onComplete:()=>v(n),onError:e=>{}})},U=async()=>{if(!r.value.trim())return;i.value=!1;const e=g()||n.editor?.getText()||"",t=r.value;r.value="",await f(e,t,{onToken:e=>b(e),onError:e=>{}})},T=()=>{i.value=!1,a.value=!0},k=()=>{},A=e=>{o.value&&!o.value.contains(e.target)&&(i.value=!1)};return e.onMounted(()=>{document.addEventListener("click",A)}),e.onUnmounted(()=>{document.removeEventListener("click",A)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"ai-toolbar-menu",ref_key:"containerRef",ref:o},[e.createVNode(iA,{title:e.unref(s)?"AI 助手":e.unref(R)("aiSettings.title")},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(["ai-toolbar-trigger",{"is-open":i.value,"is-loading":e.unref(c),"not-configured":!e.unref(s)}]),type:"button",onClick:p,disabled:e.unref(c)},[n[2]||(n[2]=e.createElementVNode("span",{class:"ai-icon"},"✨",-1)),n[3]||(n[3]=e.createElementVNode("span",{class:"ai-label"},"AI",-1)),e.unref(c)?(e.openBlock(),e.createElementBlock("span",kA)):e.createCommentVNode("",!0),e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",AA,"!"))],10,TA)]),T:1},8,["title"]),e.createVNode(e.Transition,{name:"ai-menu-fade"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",FA,[e.unref(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",SA,e.toDisplayString(e.unref(R)("aiSettings.apiKeyHint")),1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.key,class:e.normalizeClass(["ai-menu-item",{"is-disabled":!e.unref(s)&&"settings"!==t.key}]),type:"button",onClick:e=>(e=>{e.action()})(t),disabled:!e.unref(s)&&"settings"!==t.key},[e.createElementVNode("span",CA,e.toDisplayString(t.icon),1),e.createElementVNode("span",BA,e.toDisplayString(t.label),1)],10,EA))),128)),n[5]||(n[5]=e.createElementVNode("div",{class:"ai-menu-divider"},null,-1)),e.createElementVNode("div",WA,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>r.value=e),type:"text",class:"ai-menu-input",placeholder:e.unref(R)("editor.aiPromptPlaceholder"),disabled:!e.unref(s),onKeydown:e.withKeys(U,["enter"])},null,40,IA),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"ai-menu-send",type:"button",onClick:U,disabled:!r.value.trim()||!e.unref(s)}," → ",8,MA)]),n[6]||(n[6]=e.createElementVNode("div",{class:"ai-menu-divider"},null,-1)),e.createElementVNode("button",{class:"ai-menu-item ai-menu-item--settings",type:"button",onClick:T},[n[4]||(n[4]=e.createElementVNode("span",{class:"ai-menu-item-icon"},"⚙️",-1)),e.createElementVNode("span",RA,e.toDisplayString(e.unref(R)("aiSettings.title")),1),e.unref(s)?(e.openBlock(),e.createElementBlock("span",zA)):(e.openBlock(),e.createElementBlock("span",_A))])])):e.createCommentVNode("",!0)]),T:1}),e.createVNode(UA,{open:a.value,"onUpdate:open":n[1]||(n[1]=e=>a.value=e),onSaved:k},null,8,["open"])],512))}}),[["__scopeId","data-v-4a9141ad"]]),PA={continueWriting:{system:"你是一位专业的写作助手。你的任务是根据用户提供的内容进行续写。\n要求:\n- 保持原文的风格和语气\n- 自然流畅地衔接上文\n- 提供有价值的内容扩展\n- 使用与原文相同的语言(中文或英文)\n不要重复用户的内容,直接输出续写的部分。"},polish:{system:"你是一位专业的文字润色专家。你的任务是优化用户提供的文本。\n要求:\n- 提高文本的流畅性和可读性\n- 修正语法和标点错误\n- 优化词汇选择\n- 保持原文的核心意思不变\n- 使用与原文相同的语言\n直接输出润色后的文本,不要添加解释。"},summarize:{system:"你是一位专业的内容总结专家。你的任务是提取用户提供内容的关键要点。\n要求:\n- 准确把握核心内容\n- 用简洁的语言概括要点\n- 保持逻辑清晰\n- 使用与原文相同的语言\n- 以条目形式呈现(如果内容较多)\n直接输出总结内容。"},translate:{system:"你是一位专业的翻译专家。你的任务是将文本翻译成指定语言。\n要求:\n- 准确传达原文含义\n- 使译文自然流畅\n- 保持原文风格\n- 处理好文化差异\n直接输出翻译结果,不要添加解释。",targetLanguages:{"zh-CN":"简体中文","zh-TW":"繁體中文",en:"English",ja:"日本語",ko:"한국어",fr:"Français",de:"Deutsch",es:"Español"}},customAi:{system:"你是一个智能助手。请根据用户的具体指令处理提供的文本内容。\n直接输出处理结果,不要添加额外解释。"}};function LA(t){const{adapter:n,onError:i}=t,r=e.ref(!1),o=e.ref(""),a=e.ref(null);let s=null;const c=e=>{a.value=e,i?.(e)},u=async(e,t)=>{s=new AbortController,r.value=!0,a.value=null,o.value="";try{const i=[{role:"system",content:e},{role:"user",content:t}],r=await n.chat(i);return o.value=r.content,r.content}catch(i){throw c(i),i}finally{r.value=!1}},l=async(e,t,i)=>{r.value=!0,a.value=null,o.value="";const s=[{role:"system",content:e},{role:"user",content:t}],u={onStart:()=>{i.onStart?.()},onToken:e=>{o.value+=e,i.onToken?.(e)},onComplete:e=>{r.value=!1,i.onComplete?.(e)},onError:e=>{r.value=!1,c(e),i.onError?.(e)}};await n.chatStream(s,u)};return{isLoading:e.readonly(r),result:e.readonly(o),error:e.readonly(a),continueWriting:e=>u(PA.continueWriting.system,e),polish:e=>u(PA.polish.system,e),summarize:e=>u(PA.summarize.system,e),translate:(e,t)=>{const n=PA.translate.targetLanguages[t]||t;return u(`${PA.translate.system}\n目标语言: ${n}`,e)},customAi:(e,t)=>u(`${PA.customAi.system}\n用户指令: ${t}`,e),continueWritingStream:(e,t)=>l(PA.continueWriting.system,e,t),polishStream:(e,t)=>l(PA.polish.system,e,t),summarizeStream:(e,t)=>l(PA.summarize.system,e,t),translateStream:(e,t,n)=>{const i=PA.translate.targetLanguages[t]||t;return l(`${PA.translate.system}\n目标语言: ${i}`,e,n)},customAiStream:(e,t,n)=>l(`${PA.customAi.system}\n用户指令: ${t}`,e,n),abort:()=>{s?.abort(),s=null}}}const NA={textFormat:!0,colorPicker:!0,heading:!0,list:!0,align:!0,image:!0,codeBlock:!1,link:!1,table:!1,undoRedo:!1,clearFormat:!1,font:!1,lineHeight:!1,subscriptSuperscript:!1,formatPainter:!1,ai:!0},qA={textFormat:!0,colorPicker:!0,heading:!0,list:!0,align:!0,image:!0,codeBlock:!1,link:!1,table:!1,undoRedo:!1,clearFormat:!1,font:!1,lineHeight:!1,subscriptSuperscript:!1,formatPainter:!1,ai:!0},jA={textFormat:!0,colorPicker:!0,heading:!0,list:!0,align:!0,image:!0,codeBlock:!0,link:!0,table:!0,undoRedo:!0,clearFormat:!0,font:!0,lineHeight:!0,subscriptSuperscript:!0,formatPainter:!0,word:!0,template:!0,gallery:!0,ai:!0},HA={key:0,class:"editor-toolbar-container"},VA={class:"editor-toolbar"},$A={class:"toolbar-left"},GA={key:0,class:"tool-group"},KA={key:1,class:"tool-group"},ZA={key:2,class:"tool-group"},XA={key:3,class:"tool-group"},YA={key:4,class:"tool-group"},JA={key:5,class:"tool-group"},QA={key:6,class:"tool-group"},eF={key:7,class:"tool-group"},tF={key:8,class:"tool-group"},nF={key:9,class:"tool-group"},iF={key:10,class:"tool-group"},rF={key:11,class:"tool-group"},oF={key:12,class:"tool-group"},aF={key:0,class:"toolbar-right"},sF=$(e.defineComponent({U:"ToolbarNav",props:{editor:{},config:{default:()=>NA},enabled:{type:Boolean,default:!0}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=e.computed(()=>({...NA,...n.config})),a=e.ref("#000000"),s=e.ref("#ffffff");function c(e){if(!e)return"#000000";const t=e.trim();return t.startsWith("#"),t.toLowerCase()}const u=Se(r),l=e=>{a.value=e,u(t=>t.setColor(e))()},d=e=>{s.value=e,u(t=>t.setHighlight({color:e}))()};return e.watch(()=>r.value?.getAttributes("textStyle"),e=>{a.value=e?.color?c(e.color):"#000000"},{deep:!0,immediate:!0}),e.watch(()=>r.value?.getAttributes("highlight"),e=>{s.value=e?.color?c(e.color):"#ffffff"},{deep:!0,immediate:!0}),(n,c)=>t.enabled?(e.openBlock(),e.createElementBlock("div",HA,[e.createElementVNode("div",VA,[e.createElementVNode("div",$A,[o.value.undoRedo?(e.openBlock(),e.createElementBlock("div",GA,[e.createVNode(e.unref(St),{editor:r.value,disabled:o.value.undoRedoDisabled},null,8,["editor","disabled"])])):e.createCommentVNode("",!0),o.value.formatPainter?(e.openBlock(),e.createElementBlock("div",KA,[e.createVNode(e.unref(zt),{editor:r.value,disabled:o.value.formatPainterDisabled},null,8,["editor","disabled"])])):e.createCommentVNode("",!0),o.value.clearFormat?(e.openBlock(),e.createElementBlock("div",ZA,[e.createVNode(e.unref(Qe),{editor:r.value},null,8,["editor"])])):e.createCommentVNode("",!0),o.value.font?(e.openBlock(),e.createElementBlock("div",XA,[e.createVNode(e.unref(Ze),{editor:r.value},null,8,["editor"]),e.createVNode(e.unref(Xe),{editor:r.value},null,8,["editor"])])):e.createCommentVNode("",!0),o.value.textFormat||o.value.codeBlock?(e.openBlock(),e.createElementBlock("div",YA,[e.createVNode(e.unref(Be),{editor:r.value,"show-code":o.value.codeBlock},null,8,["editor","show-code"])])):e.createCommentVNode("",!0),o.value.colorPicker?(e.openBlock(),e.createElementBlock("div",JA,[e.createVNode(e.unref(G),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Fe),{icon:e.unref(i.FontColorsOutlined),type:"text","model-value":a.value,title:e.unref(R)("editor.textColor"),onSelect:l},null,8,["icon","model-value","title"]),e.createVNode(e.unref(Fe),{icon:e.unref(i.HighlightOutlined),type:"background","model-value":s.value,title:e.unref(R)("editor.backgroundColor"),onSelect:d},null,8,["icon","model-value","title"])]),T:1})])):e.createCommentVNode("",!0),o.value.heading||o.value.list?(e.openBlock(),e.createElementBlock("div",QA,[o.value.heading?(e.openBlock(),e.createBlock(e.unref(Oe),{key:0,editor:r.value},null,8,["editor"])):e.createCommentVNode("",!0),o.value.list?(e.openBlock(),e.createBlock(e.unref(We),{key:1,editor:r.value,"show-task-list":!0},null,8,["editor"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.value.align?(e.openBlock(),e.createElementBlock("div",eF,[e.createVNode(e.unref(Le),{editor:r.value},null,8,["editor"])])):e.createCommentVNode("",!0),o.value.link||o.value.table||o.value.image?(e.openBlock(),e.createElementBlock("div",tF,[o.value.link?(e.openBlock(),e.createBlock(e.unref(et),{key:0,editor:r.value},null,8,["editor"])):e.createCommentVNode("",!0),o.value.table?(e.openBlock(),e.createBlock(e.unref(mt),{key:1,editor:r.value},null,8,["editor"])):e.createCommentVNode("",!0),o.value.image?(e.openBlock(),e.createBlock(e.unref(Ge),{key:2,editor:r.value},null,8,["editor"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.value.subscriptSuperscript?(e.openBlock(),e.createElementBlock("div",nF,[e.createVNode(e.unref(Ft),{editor:r.value},null,8,["editor"])])):e.createCommentVNode("",!0),o.value.word?(e.openBlock(),e.createElementBlock("div",iF,[e.createVNode(e.unref(TU),{editor:r.value},null,8,["editor"])])):e.createCommentVNode("",!0),o.value.template||o.value.gallery?(e.openBlock(),e.createElementBlock("div",rF,[o.value.template?(e.openBlock(),e.createBlock(e.unref(RU),{key:0,editor:r.value},null,8,["editor"])):e.createCommentVNode("",!0),o.value.gallery?(e.openBlock(),e.createBlock(e.unref(VU),{key:1,editor:r.value},null,8,["editor"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.value.ai&&r.value?(e.openBlock(),e.createElementBlock("div",oF,[e.createVNode(e.unref(nA),{editor:r.value,icon:e.unref(i.ThunderboltOutlined),label:e.unref(R)("editor.ai"),title:e.unref(R)("editor.ai")},null,8,["editor","icon","label","title"])])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"extra",{},void 0,!0)]),n.$slots.right?(e.openBlock(),e.createElementBlock("div",aF,[e.renderSlot(n.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-6552d9f6"]]),cF={class:"link-bubble-menu-content"},uF={class:"link-url-display"},lF=["title"],dF={class:"link-actions"},hF=["title"],fF=["title"],mF=["title"],pF=$(e.defineComponent({U:"LinkBubbleMenu",props:{editor:{},readonly:{type:Boolean,default:!1},enabled:{type:Boolean,default:!1}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),s=e.ref(""),c=e.ref(!1),u=e.ref("");function l(){const e=r.value;if(e)if(e.isActive("link")){const t=e.getAttributes("link");s.value=t.href||""}else s.value="";else s.value=""}const d=e=>{if(!n.enabled)return!1;if(n.readonly)return!1;if(!e.editor)return!1;const{from:t,to:i}=e,{state:r}=e;if(t===i)return!1;try{const e=Math.min(t,i),n=Math.max(t,i),o=r.doc.resolve(e),a=r.doc.resolve(n),c=o.marks();let u=null;for(const t of c)if(t.type&&"link"===t.type.name&&t.attrs?.href){u=t;break}const l=a.marks();let d=null;for(const t of l)if(t.type&&"link"===t.type.name&&t.attrs?.href){d=t;break}if(u&&d&&u.attrs?.href===d.attrs?.href)return s.value=u.attrs.href,!0;let h=!1,f="",m=!1;if(r.doc.nodesBetween(e,n,e=>{if(e.isText){if(!(e.marks&&e.marks.length>0))return m=!0,!1;{const t=e.marks.find(e=>e.type&&"link"===e.type.name&&e.attrs?.href);if(!t)return m=!0,!1;if(f){if(f!==t.attrs.href)return m=!0,!1}else f=t.attrs.href;h=!0}}}),h&&!m&&f)return s.value=f,!0}catch(o){}return!1};function h(){const e=r.value;e&&(e.isActive("link")?u.value=e.getAttributes("link").href||"":u.value="",c.value=!0)}function f(){const t=r.value;if(!t)return;const n=u.value.trim();if(n){let i=n;try{const e=new URL(n);if("http:"!==e.protocol&&"https:"!==e.protocol)throw new Error("Invalid protocol");i=n}catch{i=n.startsWith("http")?n:`https://${n}`}if(t){const n=!t.state.selection.empty,r=t.chain().focus();if(n){r.extendMarkRange("link").setLink({href:i,target:"_blank"}).run()&&(s.value=i,e.nextTick(()=>{l()}))}else{r.setLink({href:i,target:"_blank"}).run()&&(s.value=i,e.nextTick(()=>{l()}))}}}else o(e=>e.unsetLink())(),s.value="";c.value=!1,u.value=""}function m(){const e=r.value;if(e&&e.isActive("link")){const t=e.getAttributes("link").href||"";t&&window.open(t,"_blank","noopener,noreferrer")}}function p(){o(e=>e.unsetLink())()}return e.watch(()=>r.value?.state.selection,()=>{r.value?.isActive("link")&&l()},{deep:!0}),e.watch(()=>r.value?.state,()=>{l()},{deep:!0,immediate:!0}),(t,n)=>{const o=e.resolveComponent("a-input"),l=e.resolveComponent("a-modal");return r.value?(e.openBlock(),e.createBlock(e.unref(a.BubbleMenu),{key:0,editor:r.value,"tippy-options":{duration:100,placement:"top",offset:[0,8],zIndex:1002},"should-show":d,class:"link-bubble-menu"},{default:e.withCtx(()=>[e.createElementVNode("div",cF,[e.createElementVNode("div",uF,[e.createElementVNode("span",{class:"link-url-text",title:s.value},e.toDisplayString(s.value),9,lF)]),e.createElementVNode("div",dF,[n[2]||(n[2]=e.createElementVNode("div",{class:"link-divider"},null,-1)),e.createElementVNode("button",{class:"link-action-btn",onClick:h,title:e.unref(R)("editor.editLink")},[e.createVNode(e.unref(i.EditOutlined))],8,hF),n[3]||(n[3]=e.createElementVNode("div",{class:"link-divider"},null,-1)),e.createElementVNode("button",{class:"link-action-btn",onClick:m,title:e.unref(R)("editor.openLink")},[e.createVNode(e.unref(i.LinkOutlined))],8,fF),n[4]||(n[4]=e.createElementVNode("div",{class:"link-divider"},null,-1)),e.createElementVNode("button",{class:"link-action-btn link-action-btn--danger",onClick:p,title:e.unref(R)("editor.removeLink")},[e.createVNode(e.unref(i.DeleteOutlined))],8,mF)])]),e.createVNode(l,{open:c.value,"onUpdate:open":n[1]||(n[1]=e=>c.value=e),title:e.unref(R)("editor.editLink"),onOk:f,width:"400px"},{default:e.withCtx(()=>[e.createVNode(o,{value:u.value,"onUpdate:value":n[0]||(n[0]=e=>u.value=e),placeholder:e.unref(R)("editor.linkPlaceholder"),onKeyup:e.withKeys(f,["enter"])},null,8,["value","placeholder"])]),T:1},8,["open","title"])]),T:1},8,["editor"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-a1df7773"]]),gF={class:"zoom-level"},bF={class:"page-info"},vF={key:0,class:"char-count"},yF=e.defineComponent({U:"ZoomBar",props:{zoomLevel:{},totalPages:{},editor:{},showCharCount:{type:Boolean,default:!0},min:{default:50},max:{default:200},step:{default:10},placement:{default:"belowToolbar"}},emits:["update:zoomLevel","change","reset"],setup(t,{emit:i}){const r=t,o=i,a=()=>{if(r.zoomLevel<r.max){const e=Math.min(r.zoomLevel+r.step,r.max);o("update:zoomLevel",e),o("change",e)}},s=()=>{if(r.zoomLevel>r.min){const e=Math.max(r.zoomLevel-r.step,r.min);o("update:zoomLevel",e),o("change",e)}},c=()=>{o("update:zoomLevel",100),o("change",100),o("reset",100)},u=e.computed(()=>["zoom-controls","bottom"===r.placement?"zoom-controls--bottom":null].filter(Boolean).join(" ")),l=e.ref(0),d=e.ref(0),h=()=>{if(!r.editor)return l.value=0,void(d.value=0);try{const e=r.editor.storage.characterCount;e?(l.value=e.characters?.()??0,d.value=e.words?.()??0):(l.value=0,d.value=0)}catch(e){l.value=0,d.value=0}};return e.watch(()=>r.editor,e=>{e&&(h(),e.on("update",h),e.on("selectionUpdate",h))},{immediate:!0}),e.watch(()=>r.editor,(e,t)=>{t&&!e&&(t.off("update",h),t.off("selectionUpdate",h))}),(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value)},[e.createVNode(e.unref(n.Button),{size:"small",onClick:s},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode("-",-1)])]),T:1}),e.createElementVNode("span",gF,e.toDisplayString(t.zoomLevel)+"%",1),e.createVNode(e.unref(n.Button),{size:"small",onClick:a},{default:e.withCtx(()=>[...r[1]||(r[1]=[e.createTextVNode("+",-1)])]),T:1}),e.createVNode(e.unref(n.Button),{size:"small",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(R)("stats.reset")),1)]),T:1}),e.createElementVNode("span",bF,e.toDisplayString(e.unref(R)("stats.total"))+" "+e.toDisplayString(t.totalPages)+" "+e.toDisplayString(e.unref(R)("stats.pages")),1),t.showCharCount&&t.editor?(e.openBlock(),e.createElementBlock("span",vF,e.toDisplayString(l.value)+" "+e.toDisplayString(e.unref(R)("stats.characters"))+" / "+e.toDisplayString(d.value)+" "+e.toDisplayString(e.unref(R)("stats.words")),1)):e.createCommentVNode("",!0)],2))}}),wF={key:0,class:"footer-nav-container"},xF=$(e.defineComponent({U:"FooterNav",props:{zoomLevel:{},totalPages:{},editor:{},showCharCount:{type:Boolean,default:!0},min:{default:50},max:{default:200},step:{default:10},enabled:{type:Boolean,default:!0}},emits:["update:zoomLevel","change","reset"],setup(t,{emit:n}){const i=t,r=n,o=e.ref(i.zoomLevel);e.watch(()=>i.zoomLevel,e=>{o.value!==e&&(o.value=e)},{immediate:!0});const a=e=>{o.value=e,r("update:zoomLevel",e)},s=e=>{r("change",e)},c=e=>{r("reset",e)};return(n,i)=>t.enabled?(e.openBlock(),e.createElementBlock("div",wF,[e.createVNode(e.unref(yF),{zoomLevel:o.value,"onUpdate:zoomLevel":[i[0]||(i[0]=e=>o.value=e),a],totalPages:t.totalPages,editor:t.editor,showCharCount:t.showCharCount,min:t.min,max:t.max,step:t.step,placement:"bottom",onChange:s,onReset:c},null,8,["zoomLevel","totalPages","editor","showCharCount","min","max","step"])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-9e795526"]]),DF={class:"image-menu-content"},UF={class:"image-menu-group"},TF=["onClick","title"],kF={class:"image-menu-group"},AF={class:"image-menu-group"},FF=["src"],SF=$(e.defineComponent({U:"ImageToolbar",props:{editor:{},readonly:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=Se(r),s=e.ref(!1),c=e.ref(""),l=e.ref(null),d=[{value:"left",icon:i.AlignLeftOutlined,title:"左对齐"},{value:"center",icon:i.AlignCenterOutlined,title:"居中"},{value:"right",icon:i.AlignRightOutlined,title:"右对齐"}];function h(){const e=r.value;if(!e)return{node:null,pos:null};const{state:t}=e,{selection:n}=t;let i=null,o=null;if(n instanceof u.NodeSelection&&n.node&&"image"===n.node.type.name)return i=n.node,o=n.from,{node:i,pos:o};const a=n.$anchor,s=a.nodeAfter,c=a.nodeBefore;return"image"===s?.type.name?i=s:"image"===c?.type.name&&(i=c),i&&null===o&&t.doc.descendants((e,t)=>{if(e===i)return o=t,!1}),{node:i,pos:o}}const f=e=>{if(!n.enabled)return!1;if(!e.editor)return!1;if(n.readonly||!e.editor.isActive("image"))return!1;const{node:t}=h();return"image"===t?.type.name&&(c.value=t.attrs.src||"",l.value=function(){const{node:e,pos:t}=h();if(!e||null===t)return null;const n=e.attrs.align;if("left"===n||"center"===n||"right"===n)return n;const i=r.value;if(!i)return null;const o=i.state.doc.resolve(t).parent,a=o?.attrs.textAlign||o?.attrs.align;return"left"===a||"center"===a||"right"===a?a:null}()),!0};function m(){const{node:e}=h();"image"===e?.type.name&&(c.value=e.attrs.src||"",s.value=!0)}function p(){o(e=>e.deleteSelection())()}return(t,n)=>{const o=e.resolveComponent("a-modal");return r.value?(e.openBlock(),e.createBlock(e.unref(a.BubbleMenu),{key:0,editor:r.value,"tippy-options":{duration:100,placement:"top",offset:[0,16]},"should-show":f,class:"image-bubble-menu"},{default:e.withCtx(()=>[e.createElementVNode("div",DF,[e.createElementVNode("div",UF,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(d,t=>e.createElementVNode("button",{key:t.value,class:e.normalizeClass(["image-menu-btn",{active:l.value===t.value}]),onClick:e=>function(e){const t=r.value;if(!t)return;const{node:n,pos:i}=h();if(!n||null===i)return;const o=t.state.doc.resolve(i),a=o.parent;if(a&&("paragraph"===a.type.name||"heading"===a.type.name)){const n=o.start(o.depth);t.chain().setTextSelection({from:n,to:n+a.nodeSize}).setTextAlign(e).run()}t.chain().focus().setNodeSelection(i).updateAttributes("image",{align:e}).run(),l.value=e}(t.value),title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],10,TF)),64))]),e.createElementVNode("div",kF,[e.createElementVNode("button",{class:"image-menu-btn",onClick:m,title:"预览"},[e.createVNode(e.unref(i.EyeOutlined))])]),e.createElementVNode("div",AF,[e.createElementVNode("button",{class:"image-menu-btn image-menu-btn--danger",onClick:p,title:"删除图片"},[e.createVNode(e.unref(i.DeleteOutlined))])])]),e.createVNode(o,{open:s.value,"onUpdate:open":n[0]||(n[0]=e=>s.value=e),footer:null,width:800,centered:"",onCancel:n[1]||(n[1]=e=>s.value=!1)},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value,alt:"预览",style:{width:"100%",height:"auto"}},null,8,FF)):e.createCommentVNode("",!0)]),T:1},8,["open"])]),T:1},8,["editor"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d4b422e7"]]),EF={class:"bubble-menu-content menu-content"},CF={class:"bubble-group menu-group"},BF={class:"bubble-group menu-group"},WF={class:"bubble-group menu-group"},IF={class:"bubble-group menu-group"},MF={class:"bubble-group menu-group"},RF={class:"bubble-group menu-group"},zF=$(e.defineComponent({U:"FloatingMenu",props:{editor:{},readonly:{type:Boolean,default:!1},enabled:{type:Boolean,default:!0}},setup(t){const n=t,r=e.computed(()=>n.editor??null),o=e.ref("#000000"),s=e.ref("#ffffff"),c=Se(r);function u(e){if(!e)return"#000000";const t=e.trim();return t.startsWith("#"),t.toLowerCase()}e.watch(()=>r.value?.getAttributes("textStyle"),e=>{o.value=e?.color?u(e.color):"#000000"},{deep:!0,immediate:!0}),e.watch(()=>r.value?.getAttributes("highlight"),e=>{s.value=e?.color?u(e.color):"#ffffff"},{deep:!0,immediate:!0});const l=e=>{if(!n.enabled)return!1;if(n.readonly)return!1;const{from:t,to:i}=e;if(t===i)return!1;if(e.editor.isActive("codeBlock"))return!1;if(e.editor.isActive("table"))return!1;if(e.editor.isActive("image"))return!1;const{state:r}=e,{selection:o}=r;if(o.node&&"image"===o.node.type.name)return!1;const a=o.$anchor,s=a.nodeAfter,c=a.nodeBefore;return!(s&&"image"===s.type.name||c&&"image"===c.type.name)&&!e.editor.isActive("link")},d=e=>{o.value=e,c(t=>t.setColor(e))()},h=e=>{s.value=e,c(t=>t.setHighlight({color:e}))()};return(t,n)=>r.value?(e.openBlock(),e.createBlock(e.unref(a.BubbleMenu),{key:0,editor:r.value,"tippy-options":{duration:100,placement:"top"},"should-show":l,class:"bubble-menu floating-menu"},{default:e.withCtx(()=>[e.createElementVNode("div",EF,[e.createElementVNode("div",CF,[e.createVNode(e.unref(Pe),{editor:r.value},null,8,["editor"])]),e.createElementVNode("div",BF,[e.createVNode(e.unref(Be),{editor:r.value},null,8,["editor"])]),e.createElementVNode("div",WF,[e.createVNode(e.unref(Fe),{icon:e.unref(i.FontColorsOutlined),type:"text","model-value":o.value,title:e.unref(R)("editor.textColor"),onSelect:d},null,8,["icon","model-value","title"]),e.createVNode(e.unref(Fe),{icon:e.unref(i.HighlightOutlined),type:"background","model-value":s.value,title:e.unref(R)("editor.backgroundColor"),onSelect:h},null,8,["icon","model-value","title"])]),e.createElementVNode("div",IF,[e.createVNode(e.unref(et),{editor:r.value},null,8,["editor"])]),e.createElementVNode("div",MF,[e.createVNode(e.unref(We),{editor:r.value,"show-task-list":!0},null,8,["editor"])]),e.createElementVNode("div",RF,[r.value?(e.openBlock(),e.createBlock(e.unref(nA),{key:0,editor:r.value,icon:e.unref(i.ThunderboltOutlined),label:e.unref(R)("editor.ai"),title:e.unref(R)("editor.ai"),placement:"top"},null,8,["editor","icon","label","title"])):e.createCommentVNode("",!0)])])]),T:1},8,["editor"])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-33e6ce6c"]]),_F=new u.PluginKey("dragHandleWithMenu"),OF=["doc","table","image","figure","tableCell","tableHeader"],PF=["taskList","listItem","taskItem"],LF=["orderedList","bulletList"];const NF=o.Extension.create({name:"dragHandleWithMenu",addOptions:()=>({onHandleClick:void 0}),addProseMirrorPlugins(){const t=this.options;return[new u.Plugin({key:_F,props:{decorations(n){const r=[];return n.doc.descendants((o,a)=>{const s=n.doc.resolve(a).parent;return!function(e,t){return!(!e.isBlock||"doc"===e.type.name||OF.includes(e.type.name)||"table"===t.type.name||!LF.includes(e.type.name)&&(PF.includes(e.type.name)||("listItem"===t.type.name||"taskItem"===t.type.name)&&"paragraph"===e.type.name||LF.includes(t.type.name)&&"paragraph"===e.type.name||"tableCell"===t.type.name||"tableHeader"===t.type.name||0===e.content.size))}(o,s)||(r.push(l.Decoration.widget(a+1,n=>function(t,n,r,o){const a=document.createElement("div");return a.className="drag-handle",a.contentEditable="false",a.draggable=!1,e.render(e.h(i.HolderOutlined),a),a.addEventListener("mousedown",e=>{e.stopPropagation(),e.preventDefault()}),a.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault();const i=n+t.nodeSize,s=a.getBoundingClientRect();r.dom.querySelectorAll(".drag-handle.active").forEach(e=>{e.classList.remove("active")}),a.classList.add("active"),o&&o({position:{x:s.right+10,y:s.top},nodePos:n,nodeTo:i,handleElement:a})}),a}(o,a,n,t.onHandleClick),{side:-1,stopEvent:e=>"mousedown"===e.type||"click"===e.type})),!0)}),l.DecorationSet.create(n.doc,r)}}})]}});async function qF(e,t,n){try{const i=e.state.doc.slice(t,n),r=i.content.textBetween(0,i.content.size,"\n");return await navigator.clipboard.writeText(r),!0}catch(i){return!1}}async function jF(e,t,n){return await async function(e,t,n){try{return!!(await qF(e,t,n))&&(e.chain().deleteRange({from:t,to:n}).run(),!0)}catch(i){return!1}}(e,t,n)}function HF(e,t,n){try{const i=t+1,r=n-1;return i<r&&(e.chain().setTextSelection({from:i,to:r}).run(),!0)}catch(i){return!1}}const VF=["#000000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff"];function $F(e,t,n,r,o){return[{icon:i.ScissorOutlined,title:o("editor.cut"),action:async()=>{await jF(e,t,n),r()}},{icon:i.CopyOutlined,title:o("editor.copy"),action:async()=>{await async function(e,t,n){return await qF(e,t,n)}(e,t,n),r()}},{icon:i.DeleteOutlined,title:o("editor.delete"),action:()=>{!function(e,t,n){try{return e.chain().deleteRange({from:t,to:n}).run(),!0}catch(i){return!1}}(e,t,n),r()},danger:!0}]}const GF={class:"inline-toolbar"},KF={class:"inline-group"},ZF=["onClick","data-level","title"],XF={class:"inline-group"},YF=["onClick","title"],JF={class:"inline-group"},QF=["onClick","title"],eS={class:"menu-section compact"},tS={class:"menu-item-label"},nS={key:0,class:"sub-panel"},iS={class:"sub-group"},rS=["title"],oS=["title"],aS=["title"],sS={class:"sub-group"},cS=["title"],uS=["title"],lS={class:"menu-section compact"},dS={class:"menu-item-label"},hS={key:0,class:"color-picker-panel"},fS={class:"color-picker-grid"},mS=["onClick"],pS={class:"sub-actions"},gS={class:"menu-section"},bS={class:"menu-section-title"},vS=["onClick"],yS={class:"menu-item-label"},wS=12,xS=e.defineComponent({U:"DragHandleMenu",props:{editor:{},readonly:{type:Boolean,default:!1},positionStrategy:{default:"auto"}},setup(t,{expose:n}){const r=t,o=e.ref({visible:!1,position:{x:0,y:0},nodePos:0,nodeTo:0,handleElement:null}),a=()=>{o.value.handleElement&&o.value.handleElement.classList.remove("active"),o.value.visible=!1,o.value.handleElement=null},s=e.computed(()=>o.value.visible),c=e.computed(()=>o.value.position),u=e.ref(null),l=e.ref(null),d=e.ref(!1);let h=null;const f=e.computed(()=>r.editor??null),{isActive:m,isHeadingActive:p,isActiveAlign:g}=Ce(f),b=Se(f),v=e.computed(()=>({position:"fixed",left:`${c.value.x}px`,top:`${c.value.y}px`,zIndex:1002}));function y(e,t,n){return Math.min(Math.max(e,t),n)}function w(){const e=o.value.handleElement,t=u.value;if(!e||!t)return;const n=e.getBoundingClientRect(),i=t.offsetWidth,a=t.offsetHeight,s=window.innerWidth,c=window.innerHeight;let l;"right"===r.positionStrategy?l=n.right+wS:"left"===r.positionStrategy?l=n.left-i-wS:(l=n.right+wS,l+i+8>s&&(l=n.left-i-wS)),l=y(l,8,s-i-8);let d=n.bottom+wS;d+a+8>c&&(d=n.top-a-wS),d=y(d,8,c-a-8),o.value.position={x:l,y:d}}function x(){if(d.value||l.value)return;const e=u.value;h&&window.clearTimeout(h),e&&e.classList.add("closing"),h=window.setTimeout(()=>{h=null,a(),e&&e.classList.remove("closing")},160)}function D(){const e=u.value;h&&(window.clearTimeout(h),h=null),e&&e.classList.remove("closing")}function U(){o.value.visible&&w()}e.watch(s,async t=>{t&&(await e.nextTick(),w())}),e.watch(s,e=>{e||(l.value=null,d.value=!1)}),e.onMounted(()=>{if(window.addEventListener("scroll",U,!0),window.addEventListener("resize",U,!0),f.value){const e=()=>{o.value.visible&&a()};f.value.on("update",e),f.value.on("selectionUpdate",e)}}),e.onUnmounted(()=>{window.removeEventListener("scroll",U,!0),window.removeEventListener("resize",U,!0),h&&(window.clearTimeout(h),h=null),a()});const T=e.computed(()=>f.value?function(e,t,n,r,o){const a=t,s=(t,i,s,c)=>({name:t,icon:i,title:o(s),action:()=>{HF(e,a,n),c(e.chain().focus()).run(),r()}}),c=(t,n,i,s)=>({name:t,icon:n,title:o(i),action:()=>{s(e.chain().focus().setTextSelection(a)).run(),r()}});return{headings:[1,2,3].map(t=>({level:t,title:o(`editor.h${t}`),action:()=>{e.chain().focus().setTextSelection(a).toggleHeading({level:t}).run(),r()}})),textFormats:[s("bold",i.BoldOutlined,"editor.bold",e=>e.toggleBold()),s("italic",i.ItalicOutlined,"editor.italic",e=>e.toggleItalic()),s("underline",i.UnderlineOutlined,"editor.underline",e=>e.toggleUnderline()),s("strike",i.StrikethroughOutlined,"editor.strike",e=>e.toggleStrike())],listItems:[c("bulletList",i.UnorderedListOutlined,"editor.bulletList",e=>e.toggleBulletList()),c("orderedList",i.OrderedListOutlined,"editor.orderedList",e=>e.toggleOrderedList()),c("taskList",i.CheckSquareOutlined,"editor.taskList",e=>e.toggleTaskList())]}}(f.value,o.value.nodePos,o.value.nodeTo,a,R):null),k=e.computed(()=>f.value?$F(f.value,o.value.nodePos,o.value.nodeTo,a,R):[]),A=e.computed(()=>T.value?.headings??[]),F=e.computed(()=>T.value?.textFormats??[]),S=e.computed(()=>T.value?.listItems??[]),E=(e,t)=>{const n=f.value;n&&HF(n,e,t)},C=e=>{l.value=e},B=()=>{d.value=!d.value},W=e=>{E(o.value.nodePos,o.value.nodeTo),b(t=>t.setTextAlign(e))()},I=()=>{b(e=>e.sinkListItem("listItem"))()},M=()=>{b(e=>e.liftListItem("listItem"))()};return n({handleDragHandleClick:e=>{o.value={visible:!0,position:e.position,nodePos:e.nodePos,nodeTo:e.nodeTo,handleElement:e.handleElement}}}),(t,n)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:u,class:"drag-handle-menu",style:e.normalizeStyle(v.value),onMouseenter:D,onMouseleave:x,onClick:n[6]||(n[6]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",GF,[e.createElementVNode("div",KF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.level,class:e.normalizeClass(["icon-btn heading-btn",{active:e.unref(p)(t.level)}]),onClick:t.action,"data-level":t.level,title:t.title}," H"+e.toDisplayString(t.level),11,ZF))),128))]),e.createElementVNode("div",XF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.name,class:e.normalizeClass(["icon-btn",{active:e.unref(m)(t.name)}]),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],10,YF))),128))]),e.createElementVNode("div",JF,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.name,class:e.normalizeClass(["icon-btn",{active:e.unref(m)(t.name)}]),onClick:t.action,title:t.title},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon)))],10,QF))),128))])]),e.createElementVNode("div",eS,[e.createElementVNode("button",{class:"menu-item",onClick:B},[e.createVNode(e.unref(i.AlignLeftOutlined),{class:"menu-item-icon"}),e.createElementVNode("span",tS,e.toDisplayString(e.unref(R)("editor.indentAndAlign")),1),n[7]||(n[7]=e.createElementVNode("span",{class:"menu-item-chevron"},"›",-1))]),d.value?(e.openBlock(),e.createElementBlock("div",nS,[e.createElementVNode("div",iS,[e.createElementVNode("button",{class:e.normalizeClass(["icon-btn",{active:e.unref(g)("left")}]),onClick:n[0]||(n[0]=e=>W("left")),title:e.unref(R)("editor.alignLeft")},[e.createVNode(e.unref(i.AlignLeftOutlined))],10,rS),e.createElementVNode("button",{class:e.normalizeClass(["icon-btn",{active:e.unref(g)("center")}]),onClick:n[1]||(n[1]=e=>W("center")),title:e.unref(R)("editor.alignCenter")},[e.createVNode(e.unref(i.AlignCenterOutlined))],10,oS),e.createElementVNode("button",{class:e.normalizeClass(["icon-btn",{active:e.unref(g)("right")}]),onClick:n[2]||(n[2]=e=>W("right")),title:e.unref(R)("editor.alignRight")},[e.createVNode(e.unref(i.AlignRightOutlined))],10,aS)]),e.createElementVNode("div",sS,[e.createElementVNode("button",{class:"icon-btn",onClick:I,title:e.unref(R)("editor.indent")},[e.createVNode(e.unref(i.MenuUnfoldOutlined))],8,cS),e.createElementVNode("button",{class:"icon-btn",onClick:M,title:e.unref(R)("editor.outdent")},[e.createVNode(e.unref(i.MenuFoldOutlined))],8,uS)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",lS,[e.createElementVNode("button",{class:"menu-item",onClick:n[3]||(n[3]=e=>{return t="text",void(l.value=l.value===t?null:t);var t})},[e.createVNode(e.unref(i.FontColorsOutlined),{class:"menu-item-icon"}),e.createElementVNode("span",dS,e.toDisplayString(e.unref(R)("editor.colors")),1),n[8]||(n[8]=e.createElementVNode("span",{class:"menu-item-chevron"},"›",-1))]),l.value?(e.openBlock(),e.createElementBlock("div",hS,[e.createElementVNode("div",fS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(VF),t=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"color-picker-item",style:e.normalizeStyle({background:t}),onClick:e=>{return n=t,E(o.value.nodePos,o.value.nodeTo),"text"===l.value?b(e=>e.setColor(n))():"highlight"===l.value&&b(e=>e.setHighlight({color:n}))(),l.value=null,void a();var n}},null,12,mS))),128))]),e.createElementVNode("div",pS,[e.createElementVNode("button",{class:"mini-btn",onClick:n[4]||(n[4]=e=>C("text"))},e.toDisplayString(e.unref(R)("editor.text")),1),e.createElementVNode("button",{class:"mini-btn",onClick:n[5]||(n[5]=e=>C("highlight"))},e.toDisplayString(e.unref(R)("editor.highlight")),1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",gS,[e.createElementVNode("div",bS,e.toDisplayString(e.unref(R)("editor.actions")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.title,class:e.normalizeClass(["menu-item",{"menu-item-danger":t.danger}]),onClick:t.action},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{class:"menu-item-icon"})),e.createElementVNode("span",yS,e.toDisplayString(t.title),1)],10,vS))),128))])],36)):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"drag-handle-menu-backdrop",onClick:a})):e.createCommentVNode("",!0)]))}}),DS=new u.PluginKey("slashCommand"),US=o.Extension.create({name:"slashCommand",addOptions:()=>({onActivate:void 0,onDeactivate:void 0,onQueryChange:void 0}),addProseMirrorPlugins(){const e=this.options;return[new u.Plugin({key:DS,state:{init:()=>({active:!1,range:null,query:"",decorationPosition:null}),apply(e,t,n,i){const r=e.getMeta(DS);if(r?.deactivate)return{active:!1,range:null,query:"",decorationPosition:null};if(!e.docChanged&&!e.selectionSet)return t;const{selection:o}=i,{$from:a}=o;if(!o.empty)return t.active?{active:!1,range:null,query:"",decorationPosition:null}:t;const s=a.parent.textBetween(0,a.parentOffset,void 0,"").match(/^\/(\S*)$/);if(s){const e=s[1];return{active:!0,range:{from:a.start(),to:a.pos},query:e,decorationPosition:null}}return t.active?{active:!1,range:null,query:"",decorationPosition:null}:t}},view:()=>({update(t){const n=DS.getState(t.state);if(n)if(n.active&&n.range){const i=t.coordsAtPos(n.range.from),r={...n,decorationPosition:{x:i.left,y:i.bottom}};e.onActivate?.(r),e.onQueryChange?.(n.query)}else e.onDeactivate?.()}})})]}}),TS={key:0,class:"slash-command-list"},kS={class:"slash-command-group-title"},AS=["onClick","onMouseenter"],FS={class:"slash-command-item-icon"},SS={class:"slash-command-item-content"},ES={class:"slash-command-item-title"},CS={class:"slash-command-item-desc"},BS={key:1,class:"slash-command-empty"},WS=e.defineComponent({U:"SlashCommandMenu",props:{editor:{}},setup(t,{expose:n}){const r=t,o=e.ref(!1),a=e.ref({x:0,y:0}),s=e.ref(""),c=e.ref(0),u=e.ref(null),l=e.computed(()=>[{title:R("slashCommand.basicBlocks"),items:[{id:"paragraph",title:R("slashCommand.paragraph"),description:R("slashCommand.paragraphDesc"),icon:i.FileTextOutlined,keywords:["paragraph","text","plain","正文","段落","p"],action:e=>{e.chain().focus().setParagraph().run()}},{id:"heading1",title:R("slashCommand.heading1"),description:R("slashCommand.heading1Desc"),icon:i.FontSizeOutlined,keywords:["heading","h1","标题","一级标题","title"],action:e=>{e.chain().focus().toggleHeading({level:1}).run()}},{id:"heading2",title:R("slashCommand.heading2"),description:R("slashCommand.heading2Desc"),icon:i.FontSizeOutlined,keywords:["heading","h2","标题","二级标题","subtitle"],action:e=>{e.chain().focus().toggleHeading({level:2}).run()}},{id:"heading3",title:R("slashCommand.heading3"),description:R("slashCommand.heading3Desc"),icon:i.FontSizeOutlined,keywords:["heading","h3","标题","三级标题"],action:e=>{e.chain().focus().toggleHeading({level:3}).run()}}]},{title:R("slashCommand.lists"),items:[{id:"bulletList",title:R("slashCommand.bulletList"),description:R("slashCommand.bulletListDesc"),icon:i.UnorderedListOutlined,keywords:["bullet","list","unordered","无序列表","列表","ul"],action:e=>{e.chain().focus().toggleBulletList().run()}},{id:"orderedList",title:R("slashCommand.orderedList"),description:R("slashCommand.orderedListDesc"),icon:i.OrderedListOutlined,keywords:["ordered","list","number","有序列表","编号列表","ol"],action:e=>{e.chain().focus().toggleOrderedList().run()}},{id:"taskList",title:R("slashCommand.taskList"),description:R("slashCommand.taskListDesc"),icon:i.CheckSquareOutlined,keywords:["task","todo","checklist","任务列表","待办","checkbox"],action:e=>{e.chain().focus().toggleTaskList().run()}}]},{title:R("slashCommand.advanced"),items:[{id:"blockquote",title:R("slashCommand.blockquote"),description:R("slashCommand.blockquoteDesc"),icon:i.LineOutlined,keywords:["quote","blockquote","引用","引述","citation"],action:e=>{e.chain().focus().toggleBlockquote().run()}},{id:"codeBlock",title:R("slashCommand.codeBlock"),description:R("slashCommand.codeBlockDesc"),icon:i.CodeOutlined,keywords:["code","block","代码块","代码","pre"],action:e=>{e.chain().focus().toggleCodeBlock().run()}},{id:"table",title:R("slashCommand.table"),description:R("slashCommand.tableDesc"),icon:i.TableOutlined,keywords:["table","表格","grid"],action:e=>{e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}},{id:"image",title:R("slashCommand.image"),description:R("slashCommand.imageDesc"),icon:i.PictureOutlined,keywords:["image","picture","图片","图像","img","photo"],action:e=>{const t=window.prompt(R("slashCommand.imageUrlPrompt")||"Enter image URL");t&&e.chain().focus().setImage({src:t}).run()}},{id:"horizontalRule",title:R("slashCommand.horizontalRule"),description:R("slashCommand.horizontalRuleDesc"),icon:i.MinusOutlined,keywords:["divider","hr","horizontal","rule","分割线","水平线"],action:e=>{e.chain().focus().setHorizontalRule().run()}}]}]),d=e.computed(()=>{const e=s.value.toLowerCase();return e?l.value.map(t=>({...t,items:t.items.filter(t=>t.title.toLowerCase().includes(e)||t.keywords.some(t=>t.toLowerCase().includes(e)))})).filter(e=>e.items.length>0):l.value}),h=e.computed(()=>d.value.flatMap(e=>e.items)),f=e.computed(()=>({position:"fixed",left:`${a.value.x}px`,top:`${a.value.y}px`,zIndex:1002}));function m(e,t){let n=0;for(const i of d.value){if(i===e)return n+t;n+=i.items.length}return n+t}function p(e){const t=r.editor;if(!t)return;const n=DS.getState(t.state);n?.range&&t.chain().focus().deleteRange(n.range).run(),e.action(t),g()}function g(){if(!o.value)return;o.value=!1,s.value="",c.value=0;const e=r.editor;if(e){const{tr:t}=e.state;t.setMeta(DS,{deactivate:!0}),e.view.dispatch(t)}}function b(e){if(!o.value)return;const t=h.value.length;if(0!==t)switch(e.key){case"ArrowDown":e.preventDefault(),c.value=(c.value+1)%t,v();break;case"ArrowUp":e.preventDefault(),c.value=(c.value-1+t)%t,v();break;case"Enter":e.preventDefault(),h.value[c.value]&&p(h.value[c.value]);break;case"Escape":e.preventDefault(),g()}}function v(){e.nextTick(()=>{const e=u.value;if(!e)return;const t=e.querySelector(".slash-command-item.active");t&&t.scrollIntoView({block:"nearest"})})}return e.onMounted(()=>{document.addEventListener("keydown",b,!0)}),e.onUnmounted(()=>{document.removeEventListener("keydown",b,!0)}),e.watch(s,()=>{c.value=0}),n({activate:function(t){t.decorationPosition&&(a.value={x:t.decorationPosition.x,y:t.decorationPosition.y+4},s.value=t.query,o.value=!0,c.value=0,e.nextTick(()=>{!function(){const e=u.value;if(!e)return;const t=e.getBoundingClientRect(),n=window.innerWidth,i=window.innerHeight,r=8;let{x:o,y:s}=a.value;o+t.width+r>n&&(o=n-t.width-r);s+t.height+r>i&&(s=s-t.height-24);a.value={x:Math.max(r,o),y:Math.max(r,s)}}()}))},hide:g,updateQuery:function(e){s.value=e,c.value=0},isVisible:o}),(t,n)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:u,class:"slash-command-menu",style:e.normalizeStyle(f.value),onMousedown:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"]))},[d.value.length>0?(e.openBlock(),e.createElementBlock("div",TS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.title},[e.createElementVNode("div",kS,e.toDisplayString(t.title),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(n,i)=>(e.openBlock(),e.createElementBlock("button",{key:n.id,class:e.normalizeClass(["slash-command-item",{active:m(t,i)===c.value}]),onClick:e=>p(n),onMouseenter:e=>c.value=m(t,i)},[e.createElementVNode("span",FS,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon)))]),e.createElementVNode("span",SS,[e.createElementVNode("span",ES,e.toDisplayString(n.title),1),e.createElementVNode("span",CS,e.toDisplayString(n.description),1)])],42,AS))),128))],64))),128))])):(e.openBlock(),e.createElementBlock("div",BS,e.toDisplayString(e.unref(R)("slashCommand.noResults")),1))],36)):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"slash-command-backdrop",onMousedown:g},null,32)):e.createCommentVNode("",!0)]))}}),IS=["#3b82f6","#ef4444","#10b981","#f59e0b","#8b5cf6","#ec4899","#06b6d4","#f97316"];function MS(){return IS[Math.floor(Math.random()*IS.length)]||"#3b82f6"}const RS=(...e)=>{},zS={info:RS,warn:RS,error:RS,success:RS};class _S{timeouts=[];intervals=[];setTimeout(e,t){const n=setTimeout(()=>{const t=this.timeouts.indexOf(n);t>-1&&this.timeouts.splice(t,1),e()},t);return this.timeouts.push(n),n}setInterval(e,t){const n=setInterval(e,t);return this.intervals.push(n),n}clearTimeout(e){clearTimeout(e);const t=this.timeouts.indexOf(e);t>-1&&this.timeouts.splice(t,1)}clearAll(){const e={timeoutCount:this.timeouts.length,intervalCount:this.intervals.length};return this.timeouts.forEach(clearTimeout),this.intervals.forEach(clearInterval),this.timeouts=[],this.intervals=[],e}}class OS{listeners=[];on(e,t,n){e&&"function"==typeof e.on&&(e.on(t,n),this.listeners.push({target:e,event:t,handler:n}))}removeAll(){let e=0;return this.listeners.forEach(({target:t,event:n,handler:i})=>{try{"function"==typeof t?.off&&(t.off(n,i),e++)}catch{}}),this.listeners=[],e}}const PS={type:"doc",content:[{type:"paragraph"}]},LS=10,NS=500,qS=1e3,jS=200;function HS(e,t){if(!e)return PS;if("string"==typeof e)return e;const n=t?.silent?()=>{}:zS.info.bind(zS);return Array.isArray(e)?(n("数组格式内容,包装为文档对象"),{type:"doc",content:e}):"object"==typeof e?"doc"===e.type?e:Array.isArray(e.content)?(n("非 doc 类型对象,包装为文档对象"),{type:"doc",content:e.content}):(n("单节点对象,包装为文档对象"),{type:"doc",content:[e]}):(zS.warn("未知内容格式,使用空文档"),PS)}function VS(e){return Array.isArray(e)?e.length:e?.content?.length??0}async function $S(e){const{documentId:t,readonly:n=!1,initialContent:i,editor:r,getUserInfo:o,onCollaboratorsChange:a,onCollaboratorsListChange:s}=e;if(n||!t)return zS.info("协作功能未启用",{readonly:n,hasDocId:!!t}),null;try{zS.info("初始化协作,文档ID:",t);const[{getWebSocketUrl:n},c,{WebsocketProvider:u}]=await Promise.all([Promise.resolve().then(()=>require("./websocket-Hm6nu9fH.cjs")),import("yjs"),import("y-websocket")]),l=function(e){if(!e?.trim())return null;const t=e.trim();if(t.startsWith("ws://")||t.startsWith("wss://"))return t;if(t.startsWith("http://"))return t.replace(/^http:\/\//,"ws://");if(t.startsWith("https://"))return t.replace(/^https:\/\//,"wss://");if(t.startsWith("/"))return`${"https:"===window.location.protocol?"wss:":"ws:"}//${window.location.host}${t}`;return`${"https:"===window.location.protocol?"wss://":"ws://"}${t}`}(n(t));if(!l)return zS.error("WebSocket URL 无效"),null;const d=new c.Doc,h=`document-${t}`,f=new u(l,h,d,{connect:!0}),m=new _S,p=new OS,g=o?.()??{id:"anonymous",name:"匿名用户"},b=MS(),v=()=>{f.awareness.setLocalStateField("user",{id:g.id,name:g.name,color:b})},y=()=>{const e=function(e){const t=e.getStates(),n=new Map;return t.forEach((e,t)=>{if(e.user){const i=e.user.id||t;n.has(i)||n.set(i,{id:i,name:e.user.name||`用户${t}`,color:e.user.color||"#3b82f6"})}}),Array.from(n.values())}(f.awareness);return{users:e,count:e.length}};let w=r,x=!1,D=!1,U=0;p.on(f,"status",({status:e})=>{zS.info("连接状态:",e),"connected"===e&&v()});const T=t=>{if(!(!t||D&&x))return w?void(!i||x||D||(D=!0,m.setTimeout(()=>{if(x)return;if(w=w||e.editor,!w)return void zS.warn("编辑器未创建,跳过内容设置");const{count:t}=y(),n=w.getJSON(),r=function(e){if(!e||"doc"!==e.type)return!e;const t=e.content;if(!Array.isArray(t)||0===t.length)return!0;if(t.length>1)return!1;const n=t[0];return"paragraph"===n?.type&&(!n?.content||0===n.content.length)}(n);x=!0,function(e,t,n,i){if(e)return zS.info("文档为空,使用 initialContent"),!0;if(t<=1)return zS.info("单人编辑,使用 initialContent"),!0;const r=VS(n),o=VS(i);return r>0&&r!==o?(zS.info("内容长度不一致,使用 initialContent",{initialLen:r,currentLen:o}),!0):(zS.info("多人协同,使用 Yjs 数据"),!1)}(r,t,i,n)&&w.commands.setContent(HS(i))},NS))):U>=LS?(zS.warn("编辑器等待超时"),void(D=!0)):(U++,void m.setTimeout(()=>{w=e.editor??w,T(!0)},NS))};p.on(f,"sync",T);const k=function(e,t){let n=null;return{run:(...i)=>{n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)},cancel:()=>{n&&(clearTimeout(n),n=null)}}}(()=>{const{users:e,count:t}=y();a?.(t),s?.(e)},jS);p.on(f.awareness,"change",k.run);const A=()=>{k.cancel(),m.clearAll(),p.removeAll()},F=f.destroy?.bind(f);return f.destroy=()=>{A(),F?.()},v(),m.setTimeout(()=>{const{users:e,count:t}=y();a?.(t),s?.(e)},qS),zS.success("协作初始化成功,房间:",h),{doc:d,provider:f,setEditor:e=>{w=e,f.synced&&!x&&T(!0)},destroy:()=>{A();try{f.destroy()}catch{}try{d.destroy()}catch{}zS.success("协作实例已销毁")}}}catch(c){return zS.error("初始化失败:",c),null}}function GS(t={}){const n=e.ref(!1),i=e.shallowRef(null),r=e.ref(!1),o=e.computed(()=>!!i.value),a=e.ref(0),s=e.ref([]),c=e=>{a.value=e,t.onCollaboratorsChange?.(e)},u=e=>{s.value=e,t.onCollaboratorsListChange?.(e)},l=async e=>{if(n.value&&i.value)return zS.info("协作已启用,跳过"),i.value;if(r.value)return zS.info("正在初始化中"),null;try{r.value=!0,n.value=!0;const o=await $S({...e,getUserInfo:e.getUserInfo??t.getUserInfo,onCollaboratorsChange:c,onCollaboratorsListChange:u});return o?(i.value=o,zS.success("协作已启用")):(n.value=!1,zS.warn("协作初始化失败")),o}catch(o){return n.value=!1,zS.error("启用协作失败:",o),null}finally{r.value=!1}},d=()=>{if(i.value){try{i.value.destroy(),zS.success("协作已关闭")}catch(e){zS.error("关闭协作失败:",e)}i.value=null}n.value=!1,r.value=!1,a.value=0,s.value=[]};return{enabled:e.readonly(n),connected:o,initializing:e.readonly(r),instance:e.readonly(i),collaboratorsCount:e.readonly(a),collaboratorsList:e.readonly(s),enable:l,disable:d,initWithExtensions:async e=>{const n=await l(e);return n?async function(e,t){if(!e)return[];const[n,i]=await Promise.all([import("@tiptap/extension-collaboration").then(e=>e.default),import("@tiptap/extension-collaboration-cursor").then(e=>e.default)]),r=t?.()??{id:"anonymous",name:"匿名用户"};return[n.configure({document:e.doc}),i.configure({provider:e.provider,user:{id:r.id,name:r.name,color:MS()}})]}(n,e.getUserInfo??t.getUserInfo):[]},setEditor:e=>{i.value?.setEditor?.(e)},reset:d}}const KS={class:"all-collaborators-popover"},ZS={class:"popover-title"},XS={class:"popover-users"},YS={class:"popover-user-name"},JS={class:"collaboration-toggle"},QS={class:"toggle-text enabled"},eE={key:1,class:"collaboration-toggle"},tE={key:0,class:"toggle-text"},nE={key:1,class:"toggle-text enabled"},iE=$(e.defineComponent({U:"CollaborationToggle",props:{modelValue:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1},collaboratorsCount:{default:0},collaboratorsList:{default:()=>[]}},emits:["update:modelValue","change"],setup(t,{emit:i}){const r=t,o=i,a=e.computed({get:()=>r.modelValue,set:e=>{o("update:modelValue",e),o("change",e)}}),s=e.computed(()=>r.collaboratorsList),c=e.computed(()=>s.value[0]||null),u=e=>{if(!e?.trim())return"?";const t=e.trim();return/[\u4e00-\u9fa5]/.test(t)?t.slice(0,2):t.charAt(0).toUpperCase()};return(t,i)=>a.value&&s.value.length>0?(e.openBlock(),e.createBlock(e.unref(n.Popover),{key:0,placement:"bottomRight","overlay-style":{maxWidth:"300px"}},{content:e.withCtx(()=>[e.createElementVNode("div",KS,[e.createElementVNode("div",ZS,"在线用户 ("+e.toDisplayString(s.value.length)+")",1),e.createElementVNode("div",XS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id,class:"popover-user-item"},[e.createElementVNode("div",{class:"popover-avatar",style:e.normalizeStyle({backgroundColor:t.color})},e.toDisplayString(u(t.name)),5),e.createElementVNode("span",YS,e.toDisplayString(t.name),1)]))),128))])])]),default:e.withCtx(()=>[e.createElementVNode("div",JS,[i[0]||(i[0]=e.createElementVNode("span",{class:"toggle-label"},"协作",-1)),e.createElementVNode("span",QS,"已开启 ("+e.toDisplayString(s.value.length)+")",1),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"avatar-item",style:e.normalizeStyle({backgroundColor:c.value.color})},e.toDisplayString(u(c.value.name)),5)):e.createCommentVNode("",!0)])]),T:1})):(e.openBlock(),e.createElementBlock("div",eE,[i[1]||(i[1]=e.createElementVNode("span",{class:"toggle-label"},"协作",-1)),a.value?(e.openBlock(),e.createElementBlock("span",nE,"已开启 (0)")):(e.openBlock(),e.createElementBlock("span",tE,"已关闭"))]))}}),[["__scopeId","data-v-ce27d24a"]]),rE=o.Extension.create({name:"pasteImage",addProseMirrorPlugins:()=>[new u.Plugin({key:new u.PluginKey("pasteImage"),props:{handlePaste:(e,t)=>{if(!e||!t.clipboardData)return!1;const n=Array.from(t.clipboardData.items).find(e=>-1!==e.type.indexOf("image"));if(n){const t=n.getAsFile();if(t){const n=new FileReader;return n.onload=t=>{if(!t.target?.result)return;const n=t.target.result,{state:i,dispatch:r}=e,{schema:o}=i;if(o.nodes.image){const e=o.nodes.image.create({src:n});r(i.tr.replaceSelectionWith(e))}},n.readAsDataURL(t),!0}}return!1}}})]}),oE=o.Extension.create({name:"pasteWord",addProseMirrorPlugins:()=>[new u.Plugin({key:new u.PluginKey("pasteWord"),props:{transformPastedHTML:e=>e?e.replace(/<o:p>[\s\S]*?<\/o:p>/gi,"").replace(/<!--[\s\S]*?-->/gi,"").replace(/<style>[\s\S]*?<\/style>/gi,"").replace(/<meta[\s\S]*?>/gi,"").replace(/<link[\s\S]*?>/gi,""):e}})]}),aE=o.Node.create({name:"video",addOptions:()=>({HTMLAttributes:{},inline:!1,allowBase64:!0}),group(){return this.options.inline?"inline":"block"},inline(){return this.options.inline},draggable:!0,addAttributes:()=>({src:{default:null},width:{default:null,parseHTML:e=>{const t=e.getAttribute("width");return t?parseInt(t,10):null},renderHTML:e=>e.width?{width:e.width}:{}},height:{default:null,parseHTML:e=>{const t=e.getAttribute("height");return t?parseInt(t,10):null},renderHTML:e=>e.height?{height:e.height}:{}}}),parseHTML:()=>[{tag:"video[src]"}],renderHTML({HTMLAttributes:e}){return["video",o.mergeAttributes(this.options.HTMLAttributes,e,{controls:"true",style:"max-width: 100%;"})]},addCommands(){return{setVideo:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}}}),sE=o.Extension.create({name:"listShortcuts",addKeyboardShortcuts:()=>({Enter:({editor:e})=>{const{state:t}=e,{selection:n}=t,{$from:i}=n;return"taskItem"===i.node(-1)?.type.name?e.commands.splitListItem("taskItem"):"listItem"===i.node(-1)?.type.name&&e.commands.splitListItem("listItem")},"Shift-Enter":({editor:e})=>e.commands.first([()=>e.commands.newlineInCode(),()=>e.commands.createParagraphNear()])})}),cE={throwOnError:!1,errorColor:"#cc0000",strict:!1,trust:!1};class uE{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new uE(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class lE{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new lE(t,uE.range(this,e))}}class dE{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,i,r="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var a=o.lexer.input;n=o.start,i=o.end,n===a.length?r+=" at end of input: ":r+=" at position "+(n+1)+": ";var s=a.slice(n,i).replace(/[^]/g,"$&̲");r+=(n>15?"…"+a.slice(n-15,n):a.slice(0,n))+s+(i+15<a.length?a.slice(i,i+15)+"…":a.slice(i))}var c=new Error(r);return c.name="ParseError",c.__proto__=dE.prototype,c.position=n,null!=n&&null!=i&&(c.length=i-n),c.rawMessage=e,c}}dE.prototype.__proto__=Error.prototype;var hE=/([A-Z])/g,fE={"&":"&",">":">","<":"<",'"':""","'":"'"},mE=/[&><"']/g;var pE=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},gE={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(mE,e=>fE[e])},hyphenate:function(e){return e.replace(hE,"-$1").toLowerCase()},getBaseElem:pE,isCharacterBox:function(e){var t=pE(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},bE={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function vE(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class yE{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},bE)if(bE.hasOwnProperty(t)){var n=bE[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:vE(n)}}reportNonstrict(e,t,n){var i=this.strict;if("function"==typeof i&&(i=i(e,t,n)),i&&"ignore"!==i&&(!0===i||"error"===i))throw new dE("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n)}useStrictBehavior(e,t,n){var i=this.strict;if("function"==typeof i)try{i=i(e,t,n)}catch(r){i="error"}return!(!i||"ignore"===i)&&(!0===i||"error"===i)}isTrusted(e){if(e.url&&!e.protocol){var t=gE.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var n="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(n)}}class wE{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return xE[DE[this.id]]}sub(){return xE[UE[this.id]]}fracNum(){return xE[TE[this.id]]}fracDen(){return xE[kE[this.id]]}cramp(){return xE[AE[this.id]]}text(){return xE[FE[this.id]]}isTight(){return this.size>=2}}var xE=[new wE(0,0,!1),new wE(1,0,!0),new wE(2,1,!1),new wE(3,1,!0),new wE(4,2,!1),new wE(5,2,!0),new wE(6,3,!1),new wE(7,3,!0)],DE=[4,5,4,5,6,7,6,7],UE=[5,5,5,5,7,7,7,7],TE=[2,3,4,5,6,7,6,7],kE=[3,3,5,5,7,7,7,7],AE=[1,1,3,3,5,5,7,7],FE=[0,1,2,3,2,3,2,3],SE={DISPLAY:xE[0],TEXT:xE[2],SCRIPT:xE[4],SCRIPTSCRIPT:xE[6]},EE=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var CE=[];function BE(e){for(var t=0;t<CE.length;t+=2)if(e>=CE[t]&&e<=CE[t+1])return!0;return!1}EE.forEach(e=>e.blocks.forEach(e=>CE.push(...e)));var WE=80,IE={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class ME{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var RE={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},zE={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},_E={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function OE(e,t,n){if(!RE[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),r=RE[t][i];if(!r&&e[0]in _E&&(i=_E[e[0]].charCodeAt(0),r=RE[t][i]),r||"text"!==n||BE(i)&&(r=RE[t][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var PE={};var LE=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],NE=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],qE=function(e,t){return t.size<2?e:LE[e-1][t.size-1]};class jE{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this.Lo=void 0,this.style=e.style,this.color=e.color,this.size=e.size||jE.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=NE[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.Lo=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new jE(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:qE(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:NE[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=qE(jE.BASESIZE,e);return this.size===t&&this.textSize===jE.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==jE.BASESIZE?["sizing","reset-size"+this.size,"size"+jE.BASESIZE]:[]}fontMetrics(){return this.Lo||(this.Lo=function(e){var t;if(!PE[t=e>=5?0:e>=3?1:2]){var n=PE[t]={cssEmPerMu:zE.quad[t]/18};for(var i in zE)zE.hasOwnProperty(i)&&(n[i]=zE[i][t])}return PE[t]}(this.size)),this.Lo}getColor(){return this.phantom?"transparent":this.color}}jE.BASESIZE=6;var HE={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},VE={ex:!0,em:!0,mu:!0},$E=function(e){return"string"!=typeof e&&(e=e.unit),e in HE||e in VE||"ex"===e},GE=function(e,t){var n;if(e.unit in HE)n=HE[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var i;if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else{if("em"!==e.unit)throw new dE("Invalid unit: '"+e.unit+"'");n=i.fontMetrics().quad}i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},KE=function(e){return+e.toFixed(4)+"em"},ZE=function(e){return e.filter(e=>e).join(" ")},XE=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}},YE=function(e){var t=document.createElement(e);for(var n in t.className=ZE(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&t.setAttribute(i,this.attributes[i]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},JE=/[\s"'>/=\x00-\x1f]/,QE=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+gE.escape(ZE(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=gE.hyphenate(i)+":"+this.style[i]+";");for(var r in n&&(t+=' style="'+gE.escape(n)+'"'),this.attributes)if(this.attributes.hasOwnProperty(r)){if(JE.test(r))throw new dE("Invalid attribute name '"+r+"'");t+=" "+r+'="'+gE.escape(this.attributes[r])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">"};class eC{constructor(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,XE.call(this,e,n,i),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return YE.call(this,"span")}toMarkup(){return QE.call(this,"span")}}class tC{constructor(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,XE.call(this,t,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return YE.call(this,"a")}toMarkup(){return QE.call(this,"a")}}class nC{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+gE.escape(this.src)+'" alt="'+gE.escape(this.alt)+'"',t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=gE.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+gE.escape(t)+'"'),e+="'/>"}}var iC={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class rC{constructor(e,t,n,i,r,o,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=i||0,this.skew=r||0,this.width=o||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var c=function(e){for(var t=0;t<EE.length;t++)for(var n=EE[t],i=0;i<n.blocks.length;i++){var r=n.blocks[i];if(e>=r[0]&&e<=r[1])return n.name}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=iC[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=KE(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=ZE(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=gE.escape(ZE(this.classes)),t+='"');var n="";for(var i in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=gE.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,t+=' style="'+gE.escape(n)+'"');var r=gE.escape(this.text);return e?(t+=">",t+=r,t+="</span>"):r}}class oC{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+gE.escape(this.attributes[t])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"}}class aC{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",IE[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+gE.escape(this.alternate)+'"/>':'<path d="'+gE.escape(IE[this.pathName])+'"/>'}}class sC{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+gE.escape(this.attributes[t])+'"');return e+="/>"}}function cC(e){if(e instanceof rC)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var uC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},lC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},dC={math:{},text:{}};function hC(e,t,n,i,r,o){dC[e][r]={font:t,group:n,replace:i},o&&i&&(dC[e][i]=dC[e][r])}var fC="math",mC="text",pC="main",gC="ams",bC="accent-token",vC="bin",yC="close",wC="inner",xC="mathord",DC="op-token",UC="open",TC="punct",kC="rel",AC="spacing",FC="textord";hC(fC,pC,kC,"≡","\\equiv",!0),hC(fC,pC,kC,"≺","\\prec",!0),hC(fC,pC,kC,"≻","\\succ",!0),hC(fC,pC,kC,"∼","\\sim",!0),hC(fC,pC,kC,"⊥","\\perp"),hC(fC,pC,kC,"⪯","\\preceq",!0),hC(fC,pC,kC,"⪰","\\succeq",!0),hC(fC,pC,kC,"≃","\\simeq",!0),hC(fC,pC,kC,"∣","\\mid",!0),hC(fC,pC,kC,"≪","\\ll",!0),hC(fC,pC,kC,"≫","\\gg",!0),hC(fC,pC,kC,"≍","\\asymp",!0),hC(fC,pC,kC,"∥","\\parallel"),hC(fC,pC,kC,"⋈","\\bowtie",!0),hC(fC,pC,kC,"⌣","\\smile",!0),hC(fC,pC,kC,"⊑","\\sqsubseteq",!0),hC(fC,pC,kC,"⊒","\\sqsupseteq",!0),hC(fC,pC,kC,"≐","\\doteq",!0),hC(fC,pC,kC,"⌢","\\frown",!0),hC(fC,pC,kC,"∋","\\ni",!0),hC(fC,pC,kC,"∝","\\propto",!0),hC(fC,pC,kC,"⊢","\\vdash",!0),hC(fC,pC,kC,"⊣","\\dashv",!0),hC(fC,pC,kC,"∋","\\owns"),hC(fC,pC,TC,".","\\ldotp"),hC(fC,pC,TC,"⋅","\\cdotp"),hC(fC,pC,FC,"#","\\#"),hC(mC,pC,FC,"#","\\#"),hC(fC,pC,FC,"&","\\&"),hC(mC,pC,FC,"&","\\&"),hC(fC,pC,FC,"ℵ","\\aleph",!0),hC(fC,pC,FC,"∀","\\forall",!0),hC(fC,pC,FC,"ℏ","\\hbar",!0),hC(fC,pC,FC,"∃","\\exists",!0),hC(fC,pC,FC,"∇","\\nabla",!0),hC(fC,pC,FC,"♭","\\flat",!0),hC(fC,pC,FC,"ℓ","\\ell",!0),hC(fC,pC,FC,"♮","\\natural",!0),hC(fC,pC,FC,"♣","\\clubsuit",!0),hC(fC,pC,FC,"℘","\\wp",!0),hC(fC,pC,FC,"♯","\\sharp",!0),hC(fC,pC,FC,"♢","\\diamondsuit",!0),hC(fC,pC,FC,"ℜ","\\Re",!0),hC(fC,pC,FC,"♡","\\heartsuit",!0),hC(fC,pC,FC,"ℑ","\\Im",!0),hC(fC,pC,FC,"♠","\\spadesuit",!0),hC(fC,pC,FC,"§","\\S",!0),hC(mC,pC,FC,"§","\\S"),hC(fC,pC,FC,"¶","\\P",!0),hC(mC,pC,FC,"¶","\\P"),hC(fC,pC,FC,"†","\\dag"),hC(mC,pC,FC,"†","\\dag"),hC(mC,pC,FC,"†","\\textdagger"),hC(fC,pC,FC,"‡","\\ddag"),hC(mC,pC,FC,"‡","\\ddag"),hC(mC,pC,FC,"‡","\\textdaggerdbl"),hC(fC,pC,yC,"⎱","\\rmoustache",!0),hC(fC,pC,UC,"⎰","\\lmoustache",!0),hC(fC,pC,yC,"⟯","\\rgroup",!0),hC(fC,pC,UC,"⟮","\\lgroup",!0),hC(fC,pC,vC,"∓","\\mp",!0),hC(fC,pC,vC,"⊖","\\ominus",!0),hC(fC,pC,vC,"⊎","\\uplus",!0),hC(fC,pC,vC,"⊓","\\sqcap",!0),hC(fC,pC,vC,"∗","\\ast"),hC(fC,pC,vC,"⊔","\\sqcup",!0),hC(fC,pC,vC,"◯","\\bigcirc",!0),hC(fC,pC,vC,"∙","\\bullet",!0),hC(fC,pC,vC,"‡","\\ddagger"),hC(fC,pC,vC,"≀","\\wr",!0),hC(fC,pC,vC,"⨿","\\amalg"),hC(fC,pC,vC,"&","\\And"),hC(fC,pC,kC,"⟵","\\longleftarrow",!0),hC(fC,pC,kC,"⇐","\\Leftarrow",!0),hC(fC,pC,kC,"⟸","\\Longleftarrow",!0),hC(fC,pC,kC,"⟶","\\longrightarrow",!0),hC(fC,pC,kC,"⇒","\\Rightarrow",!0),hC(fC,pC,kC,"⟹","\\Longrightarrow",!0),hC(fC,pC,kC,"↔","\\leftrightarrow",!0),hC(fC,pC,kC,"⟷","\\longleftrightarrow",!0),hC(fC,pC,kC,"⇔","\\Leftrightarrow",!0),hC(fC,pC,kC,"⟺","\\Longleftrightarrow",!0),hC(fC,pC,kC,"↦","\\mapsto",!0),hC(fC,pC,kC,"⟼","\\longmapsto",!0),hC(fC,pC,kC,"↗","\\nearrow",!0),hC(fC,pC,kC,"↩","\\hookleftarrow",!0),hC(fC,pC,kC,"↪","\\hookrightarrow",!0),hC(fC,pC,kC,"↘","\\searrow",!0),hC(fC,pC,kC,"↼","\\leftharpoonup",!0),hC(fC,pC,kC,"⇀","\\rightharpoonup",!0),hC(fC,pC,kC,"↙","\\swarrow",!0),hC(fC,pC,kC,"↽","\\leftharpoondown",!0),hC(fC,pC,kC,"⇁","\\rightharpoondown",!0),hC(fC,pC,kC,"↖","\\nwarrow",!0),hC(fC,pC,kC,"⇌","\\rightleftharpoons",!0),hC(fC,gC,kC,"≮","\\nless",!0),hC(fC,gC,kC,"","\\@nleqslant"),hC(fC,gC,kC,"","\\@nleqq"),hC(fC,gC,kC,"⪇","\\lneq",!0),hC(fC,gC,kC,"≨","\\lneqq",!0),hC(fC,gC,kC,"","\\@lvertneqq"),hC(fC,gC,kC,"⋦","\\lnsim",!0),hC(fC,gC,kC,"⪉","\\lnapprox",!0),hC(fC,gC,kC,"⊀","\\nprec",!0),hC(fC,gC,kC,"⋠","\\npreceq",!0),hC(fC,gC,kC,"⋨","\\precnsim",!0),hC(fC,gC,kC,"⪹","\\precnapprox",!0),hC(fC,gC,kC,"≁","\\nsim",!0),hC(fC,gC,kC,"","\\@nshortmid"),hC(fC,gC,kC,"∤","\\nmid",!0),hC(fC,gC,kC,"⊬","\\nvdash",!0),hC(fC,gC,kC,"⊭","\\nvDash",!0),hC(fC,gC,kC,"⋪","\\ntriangleleft"),hC(fC,gC,kC,"⋬","\\ntrianglelefteq",!0),hC(fC,gC,kC,"⊊","\\subsetneq",!0),hC(fC,gC,kC,"","\\@varsubsetneq"),hC(fC,gC,kC,"⫋","\\subsetneqq",!0),hC(fC,gC,kC,"","\\@varsubsetneqq"),hC(fC,gC,kC,"≯","\\ngtr",!0),hC(fC,gC,kC,"","\\@ngeqslant"),hC(fC,gC,kC,"","\\@ngeqq"),hC(fC,gC,kC,"⪈","\\gneq",!0),hC(fC,gC,kC,"≩","\\gneqq",!0),hC(fC,gC,kC,"","\\@gvertneqq"),hC(fC,gC,kC,"⋧","\\gnsim",!0),hC(fC,gC,kC,"⪊","\\gnapprox",!0),hC(fC,gC,kC,"⊁","\\nsucc",!0),hC(fC,gC,kC,"⋡","\\nsucceq",!0),hC(fC,gC,kC,"⋩","\\succnsim",!0),hC(fC,gC,kC,"⪺","\\succnapprox",!0),hC(fC,gC,kC,"≆","\\ncong",!0),hC(fC,gC,kC,"","\\@nshortparallel"),hC(fC,gC,kC,"∦","\\nparallel",!0),hC(fC,gC,kC,"⊯","\\nVDash",!0),hC(fC,gC,kC,"⋫","\\ntriangleright"),hC(fC,gC,kC,"⋭","\\ntrianglerighteq",!0),hC(fC,gC,kC,"","\\@nsupseteqq"),hC(fC,gC,kC,"⊋","\\supsetneq",!0),hC(fC,gC,kC,"","\\@varsupsetneq"),hC(fC,gC,kC,"⫌","\\supsetneqq",!0),hC(fC,gC,kC,"","\\@varsupsetneqq"),hC(fC,gC,kC,"⊮","\\nVdash",!0),hC(fC,gC,kC,"⪵","\\precneqq",!0),hC(fC,gC,kC,"⪶","\\succneqq",!0),hC(fC,gC,kC,"","\\@nsubseteqq"),hC(fC,gC,vC,"⊴","\\unlhd"),hC(fC,gC,vC,"⊵","\\unrhd"),hC(fC,gC,kC,"↚","\\nleftarrow",!0),hC(fC,gC,kC,"↛","\\nrightarrow",!0),hC(fC,gC,kC,"⇍","\\nLeftarrow",!0),hC(fC,gC,kC,"⇏","\\nRightarrow",!0),hC(fC,gC,kC,"↮","\\nleftrightarrow",!0),hC(fC,gC,kC,"⇎","\\nLeftrightarrow",!0),hC(fC,gC,kC,"△","\\vartriangle"),hC(fC,gC,FC,"ℏ","\\hslash"),hC(fC,gC,FC,"▽","\\triangledown"),hC(fC,gC,FC,"◊","\\lozenge"),hC(fC,gC,FC,"Ⓢ","\\circledS"),hC(fC,gC,FC,"®","\\circledR"),hC(mC,gC,FC,"®","\\circledR"),hC(fC,gC,FC,"∡","\\measuredangle",!0),hC(fC,gC,FC,"∄","\\nexists"),hC(fC,gC,FC,"℧","\\mho"),hC(fC,gC,FC,"Ⅎ","\\Finv",!0),hC(fC,gC,FC,"⅁","\\Game",!0),hC(fC,gC,FC,"‵","\\backprime"),hC(fC,gC,FC,"▲","\\blacktriangle"),hC(fC,gC,FC,"▼","\\blacktriangledown"),hC(fC,gC,FC,"■","\\blacksquare"),hC(fC,gC,FC,"⧫","\\blacklozenge"),hC(fC,gC,FC,"★","\\bigstar"),hC(fC,gC,FC,"∢","\\sphericalangle",!0),hC(fC,gC,FC,"∁","\\complement",!0),hC(fC,gC,FC,"ð","\\eth",!0),hC(mC,pC,FC,"ð","ð"),hC(fC,gC,FC,"╱","\\diagup"),hC(fC,gC,FC,"╲","\\diagdown"),hC(fC,gC,FC,"□","\\square"),hC(fC,gC,FC,"□","\\Box"),hC(fC,gC,FC,"◊","\\Diamond"),hC(fC,gC,FC,"¥","\\yen",!0),hC(mC,gC,FC,"¥","\\yen",!0),hC(fC,gC,FC,"✓","\\checkmark",!0),hC(mC,gC,FC,"✓","\\checkmark"),hC(fC,gC,FC,"ℶ","\\beth",!0),hC(fC,gC,FC,"ℸ","\\daleth",!0),hC(fC,gC,FC,"ℷ","\\gimel",!0),hC(fC,gC,FC,"ϝ","\\digamma",!0),hC(fC,gC,FC,"ϰ","\\varkappa"),hC(fC,gC,UC,"┌","\\@ulcorner",!0),hC(fC,gC,yC,"┐","\\@urcorner",!0),hC(fC,gC,UC,"└","\\@llcorner",!0),hC(fC,gC,yC,"┘","\\@lrcorner",!0),hC(fC,gC,kC,"≦","\\leqq",!0),hC(fC,gC,kC,"⩽","\\leqslant",!0),hC(fC,gC,kC,"⪕","\\eqslantless",!0),hC(fC,gC,kC,"≲","\\lesssim",!0),hC(fC,gC,kC,"⪅","\\lessapprox",!0),hC(fC,gC,kC,"≊","\\approxeq",!0),hC(fC,gC,vC,"⋖","\\lessdot"),hC(fC,gC,kC,"⋘","\\lll",!0),hC(fC,gC,kC,"≶","\\lessgtr",!0),hC(fC,gC,kC,"⋚","\\lesseqgtr",!0),hC(fC,gC,kC,"⪋","\\lesseqqgtr",!0),hC(fC,gC,kC,"≑","\\doteqdot"),hC(fC,gC,kC,"≓","\\risingdotseq",!0),hC(fC,gC,kC,"≒","\\fallingdotseq",!0),hC(fC,gC,kC,"∽","\\backsim",!0),hC(fC,gC,kC,"⋍","\\backsimeq",!0),hC(fC,gC,kC,"⫅","\\subseteqq",!0),hC(fC,gC,kC,"⋐","\\Subset",!0),hC(fC,gC,kC,"⊏","\\sqsubset",!0),hC(fC,gC,kC,"≼","\\preccurlyeq",!0),hC(fC,gC,kC,"⋞","\\curlyeqprec",!0),hC(fC,gC,kC,"≾","\\precsim",!0),hC(fC,gC,kC,"⪷","\\precapprox",!0),hC(fC,gC,kC,"⊲","\\vartriangleleft"),hC(fC,gC,kC,"⊴","\\trianglelefteq"),hC(fC,gC,kC,"⊨","\\vDash",!0),hC(fC,gC,kC,"⊪","\\Vvdash",!0),hC(fC,gC,kC,"⌣","\\smallsmile"),hC(fC,gC,kC,"⌢","\\smallfrown"),hC(fC,gC,kC,"≏","\\bumpeq",!0),hC(fC,gC,kC,"≎","\\Bumpeq",!0),hC(fC,gC,kC,"≧","\\geqq",!0),hC(fC,gC,kC,"⩾","\\geqslant",!0),hC(fC,gC,kC,"⪖","\\eqslantgtr",!0),hC(fC,gC,kC,"≳","\\gtrsim",!0),hC(fC,gC,kC,"⪆","\\gtrapprox",!0),hC(fC,gC,vC,"⋗","\\gtrdot"),hC(fC,gC,kC,"⋙","\\ggg",!0),hC(fC,gC,kC,"≷","\\gtrless",!0),hC(fC,gC,kC,"⋛","\\gtreqless",!0),hC(fC,gC,kC,"⪌","\\gtreqqless",!0),hC(fC,gC,kC,"≖","\\eqcirc",!0),hC(fC,gC,kC,"≗","\\circeq",!0),hC(fC,gC,kC,"≜","\\triangleq",!0),hC(fC,gC,kC,"∼","\\thicksim"),hC(fC,gC,kC,"≈","\\thickapprox"),hC(fC,gC,kC,"⫆","\\supseteqq",!0),hC(fC,gC,kC,"⋑","\\Supset",!0),hC(fC,gC,kC,"⊐","\\sqsupset",!0),hC(fC,gC,kC,"≽","\\succcurlyeq",!0),hC(fC,gC,kC,"⋟","\\curlyeqsucc",!0),hC(fC,gC,kC,"≿","\\succsim",!0),hC(fC,gC,kC,"⪸","\\succapprox",!0),hC(fC,gC,kC,"⊳","\\vartriangleright"),hC(fC,gC,kC,"⊵","\\trianglerighteq"),hC(fC,gC,kC,"⊩","\\Vdash",!0),hC(fC,gC,kC,"∣","\\shortmid"),hC(fC,gC,kC,"∥","\\shortparallel"),hC(fC,gC,kC,"≬","\\between",!0),hC(fC,gC,kC,"⋔","\\pitchfork",!0),hC(fC,gC,kC,"∝","\\varpropto"),hC(fC,gC,kC,"◀","\\blacktriangleleft"),hC(fC,gC,kC,"∴","\\therefore",!0),hC(fC,gC,kC,"∍","\\backepsilon"),hC(fC,gC,kC,"▶","\\blacktriangleright"),hC(fC,gC,kC,"∵","\\because",!0),hC(fC,gC,kC,"⋘","\\llless"),hC(fC,gC,kC,"⋙","\\gggtr"),hC(fC,gC,vC,"⊲","\\lhd"),hC(fC,gC,vC,"⊳","\\rhd"),hC(fC,gC,kC,"≂","\\eqsim",!0),hC(fC,pC,kC,"⋈","\\Join"),hC(fC,gC,kC,"≑","\\Doteq",!0),hC(fC,gC,vC,"∔","\\dotplus",!0),hC(fC,gC,vC,"∖","\\smallsetminus"),hC(fC,gC,vC,"⋒","\\Cap",!0),hC(fC,gC,vC,"⋓","\\Cup",!0),hC(fC,gC,vC,"⩞","\\doublebarwedge",!0),hC(fC,gC,vC,"⊟","\\boxminus",!0),hC(fC,gC,vC,"⊞","\\boxplus",!0),hC(fC,gC,vC,"⋇","\\divideontimes",!0),hC(fC,gC,vC,"⋉","\\ltimes",!0),hC(fC,gC,vC,"⋊","\\rtimes",!0),hC(fC,gC,vC,"⋋","\\leftthreetimes",!0),hC(fC,gC,vC,"⋌","\\rightthreetimes",!0),hC(fC,gC,vC,"⋏","\\curlywedge",!0),hC(fC,gC,vC,"⋎","\\curlyvee",!0),hC(fC,gC,vC,"⊝","\\circleddash",!0),hC(fC,gC,vC,"⊛","\\circledast",!0),hC(fC,gC,vC,"⋅","\\centerdot"),hC(fC,gC,vC,"⊺","\\intercal",!0),hC(fC,gC,vC,"⋒","\\doublecap"),hC(fC,gC,vC,"⋓","\\doublecup"),hC(fC,gC,vC,"⊠","\\boxtimes",!0),hC(fC,gC,kC,"⇢","\\dashrightarrow",!0),hC(fC,gC,kC,"⇠","\\dashleftarrow",!0),hC(fC,gC,kC,"⇇","\\leftleftarrows",!0),hC(fC,gC,kC,"⇆","\\leftrightarrows",!0),hC(fC,gC,kC,"⇚","\\Lleftarrow",!0),hC(fC,gC,kC,"↞","\\twoheadleftarrow",!0),hC(fC,gC,kC,"↢","\\leftarrowtail",!0),hC(fC,gC,kC,"↫","\\looparrowleft",!0),hC(fC,gC,kC,"⇋","\\leftrightharpoons",!0),hC(fC,gC,kC,"↶","\\curvearrowleft",!0),hC(fC,gC,kC,"↺","\\circlearrowleft",!0),hC(fC,gC,kC,"↰","\\Lsh",!0),hC(fC,gC,kC,"⇈","\\upuparrows",!0),hC(fC,gC,kC,"↿","\\upharpoonleft",!0),hC(fC,gC,kC,"⇃","\\downharpoonleft",!0),hC(fC,pC,kC,"⊶","\\origof",!0),hC(fC,pC,kC,"⊷","\\imageof",!0),hC(fC,gC,kC,"⊸","\\multimap",!0),hC(fC,gC,kC,"↭","\\leftrightsquigarrow",!0),hC(fC,gC,kC,"⇉","\\rightrightarrows",!0),hC(fC,gC,kC,"⇄","\\rightleftarrows",!0),hC(fC,gC,kC,"↠","\\twoheadrightarrow",!0),hC(fC,gC,kC,"↣","\\rightarrowtail",!0),hC(fC,gC,kC,"↬","\\looparrowright",!0),hC(fC,gC,kC,"↷","\\curvearrowright",!0),hC(fC,gC,kC,"↻","\\circlearrowright",!0),hC(fC,gC,kC,"↱","\\Rsh",!0),hC(fC,gC,kC,"⇊","\\downdownarrows",!0),hC(fC,gC,kC,"↾","\\upharpoonright",!0),hC(fC,gC,kC,"⇂","\\downharpoonright",!0),hC(fC,gC,kC,"⇝","\\rightsquigarrow",!0),hC(fC,gC,kC,"⇝","\\leadsto"),hC(fC,gC,kC,"⇛","\\Rrightarrow",!0),hC(fC,gC,kC,"↾","\\restriction"),hC(fC,pC,FC,"‘","`"),hC(fC,pC,FC,"$","\\$"),hC(mC,pC,FC,"$","\\$"),hC(mC,pC,FC,"$","\\textdollar"),hC(fC,pC,FC,"%","\\%"),hC(mC,pC,FC,"%","\\%"),hC(fC,pC,FC,"_","\\_"),hC(mC,pC,FC,"_","\\_"),hC(mC,pC,FC,"_","\\textunderscore"),hC(fC,pC,FC,"∠","\\angle",!0),hC(fC,pC,FC,"∞","\\infty",!0),hC(fC,pC,FC,"′","\\prime"),hC(fC,pC,FC,"△","\\triangle"),hC(fC,pC,FC,"Γ","\\Gamma",!0),hC(fC,pC,FC,"Δ","\\Delta",!0),hC(fC,pC,FC,"Θ","\\Theta",!0),hC(fC,pC,FC,"Λ","\\Lambda",!0),hC(fC,pC,FC,"Ξ","\\Xi",!0),hC(fC,pC,FC,"Π","\\Pi",!0),hC(fC,pC,FC,"Σ","\\Sigma",!0),hC(fC,pC,FC,"Υ","\\Upsilon",!0),hC(fC,pC,FC,"Φ","\\Phi",!0),hC(fC,pC,FC,"Ψ","\\Psi",!0),hC(fC,pC,FC,"Ω","\\Omega",!0),hC(fC,pC,FC,"A","Α"),hC(fC,pC,FC,"B","Β"),hC(fC,pC,FC,"E","Ε"),hC(fC,pC,FC,"Z","Ζ"),hC(fC,pC,FC,"H","Η"),hC(fC,pC,FC,"I","Ι"),hC(fC,pC,FC,"K","Κ"),hC(fC,pC,FC,"M","Μ"),hC(fC,pC,FC,"N","Ν"),hC(fC,pC,FC,"O","Ο"),hC(fC,pC,FC,"P","Ρ"),hC(fC,pC,FC,"T","Τ"),hC(fC,pC,FC,"X","Χ"),hC(fC,pC,FC,"¬","\\neg",!0),hC(fC,pC,FC,"¬","\\lnot"),hC(fC,pC,FC,"⊤","\\top"),hC(fC,pC,FC,"⊥","\\bot"),hC(fC,pC,FC,"∅","\\emptyset"),hC(fC,gC,FC,"∅","\\varnothing"),hC(fC,pC,xC,"α","\\alpha",!0),hC(fC,pC,xC,"β","\\beta",!0),hC(fC,pC,xC,"γ","\\gamma",!0),hC(fC,pC,xC,"δ","\\delta",!0),hC(fC,pC,xC,"ϵ","\\epsilon",!0),hC(fC,pC,xC,"ζ","\\zeta",!0),hC(fC,pC,xC,"η","\\eta",!0),hC(fC,pC,xC,"θ","\\theta",!0),hC(fC,pC,xC,"ι","\\iota",!0),hC(fC,pC,xC,"κ","\\kappa",!0),hC(fC,pC,xC,"λ","\\lambda",!0),hC(fC,pC,xC,"μ","\\mu",!0),hC(fC,pC,xC,"ν","\\nu",!0),hC(fC,pC,xC,"ξ","\\xi",!0),hC(fC,pC,xC,"ο","\\omicron",!0),hC(fC,pC,xC,"π","\\pi",!0),hC(fC,pC,xC,"ρ","\\rho",!0),hC(fC,pC,xC,"σ","\\sigma",!0),hC(fC,pC,xC,"τ","\\tau",!0),hC(fC,pC,xC,"υ","\\upsilon",!0),hC(fC,pC,xC,"ϕ","\\phi",!0),hC(fC,pC,xC,"χ","\\chi",!0),hC(fC,pC,xC,"ψ","\\psi",!0),hC(fC,pC,xC,"ω","\\omega",!0),hC(fC,pC,xC,"ε","\\varepsilon",!0),hC(fC,pC,xC,"ϑ","\\vartheta",!0),hC(fC,pC,xC,"ϖ","\\varpi",!0),hC(fC,pC,xC,"ϱ","\\varrho",!0),hC(fC,pC,xC,"ς","\\varsigma",!0),hC(fC,pC,xC,"φ","\\varphi",!0),hC(fC,pC,vC,"∗","*",!0),hC(fC,pC,vC,"+","+"),hC(fC,pC,vC,"−","-",!0),hC(fC,pC,vC,"⋅","\\cdot",!0),hC(fC,pC,vC,"∘","\\circ",!0),hC(fC,pC,vC,"÷","\\div",!0),hC(fC,pC,vC,"±","\\pm",!0),hC(fC,pC,vC,"×","\\times",!0),hC(fC,pC,vC,"∩","\\cap",!0),hC(fC,pC,vC,"∪","\\cup",!0),hC(fC,pC,vC,"∖","\\setminus",!0),hC(fC,pC,vC,"∧","\\land"),hC(fC,pC,vC,"∨","\\lor"),hC(fC,pC,vC,"∧","\\wedge",!0),hC(fC,pC,vC,"∨","\\vee",!0),hC(fC,pC,FC,"√","\\surd"),hC(fC,pC,UC,"⟨","\\langle",!0),hC(fC,pC,UC,"∣","\\lvert"),hC(fC,pC,UC,"∥","\\lVert"),hC(fC,pC,yC,"?","?"),hC(fC,pC,yC,"!","!"),hC(fC,pC,yC,"⟩","\\rangle",!0),hC(fC,pC,yC,"∣","\\rvert"),hC(fC,pC,yC,"∥","\\rVert"),hC(fC,pC,kC,"=","="),hC(fC,pC,kC,":",":"),hC(fC,pC,kC,"≈","\\approx",!0),hC(fC,pC,kC,"≅","\\cong",!0),hC(fC,pC,kC,"≥","\\ge"),hC(fC,pC,kC,"≥","\\geq",!0),hC(fC,pC,kC,"←","\\gets"),hC(fC,pC,kC,">","\\gt",!0),hC(fC,pC,kC,"∈","\\in",!0),hC(fC,pC,kC,"","\\@not"),hC(fC,pC,kC,"⊂","\\subset",!0),hC(fC,pC,kC,"⊃","\\supset",!0),hC(fC,pC,kC,"⊆","\\subseteq",!0),hC(fC,pC,kC,"⊇","\\supseteq",!0),hC(fC,gC,kC,"⊈","\\nsubseteq",!0),hC(fC,gC,kC,"⊉","\\nsupseteq",!0),hC(fC,pC,kC,"⊨","\\models"),hC(fC,pC,kC,"←","\\leftarrow",!0),hC(fC,pC,kC,"≤","\\le"),hC(fC,pC,kC,"≤","\\leq",!0),hC(fC,pC,kC,"<","\\lt",!0),hC(fC,pC,kC,"→","\\rightarrow",!0),hC(fC,pC,kC,"→","\\to"),hC(fC,gC,kC,"≱","\\ngeq",!0),hC(fC,gC,kC,"≰","\\nleq",!0),hC(fC,pC,AC," ","\\ "),hC(fC,pC,AC," ","\\space"),hC(fC,pC,AC," ","\\nobreakspace"),hC(mC,pC,AC," ","\\ "),hC(mC,pC,AC," "," "),hC(mC,pC,AC," ","\\space"),hC(mC,pC,AC," ","\\nobreakspace"),hC(fC,pC,AC,null,"\\nobreak"),hC(fC,pC,AC,null,"\\allowbreak"),hC(fC,pC,TC,",",","),hC(fC,pC,TC,";",";"),hC(fC,gC,vC,"⊼","\\barwedge",!0),hC(fC,gC,vC,"⊻","\\veebar",!0),hC(fC,pC,vC,"⊙","\\odot",!0),hC(fC,pC,vC,"⊕","\\oplus",!0),hC(fC,pC,vC,"⊗","\\otimes",!0),hC(fC,pC,FC,"∂","\\partial",!0),hC(fC,pC,vC,"⊘","\\oslash",!0),hC(fC,gC,vC,"⊚","\\circledcirc",!0),hC(fC,gC,vC,"⊡","\\boxdot",!0),hC(fC,pC,vC,"△","\\bigtriangleup"),hC(fC,pC,vC,"▽","\\bigtriangledown"),hC(fC,pC,vC,"†","\\dagger"),hC(fC,pC,vC,"⋄","\\diamond"),hC(fC,pC,vC,"⋆","\\star"),hC(fC,pC,vC,"◃","\\triangleleft"),hC(fC,pC,vC,"▹","\\triangleright"),hC(fC,pC,UC,"{","\\{"),hC(mC,pC,FC,"{","\\{"),hC(mC,pC,FC,"{","\\textbraceleft"),hC(fC,pC,yC,"}","\\}"),hC(mC,pC,FC,"}","\\}"),hC(mC,pC,FC,"}","\\textbraceright"),hC(fC,pC,UC,"{","\\lbrace"),hC(fC,pC,yC,"}","\\rbrace"),hC(fC,pC,UC,"[","\\lbrack",!0),hC(mC,pC,FC,"[","\\lbrack",!0),hC(fC,pC,yC,"]","\\rbrack",!0),hC(mC,pC,FC,"]","\\rbrack",!0),hC(fC,pC,UC,"(","\\lparen",!0),hC(fC,pC,yC,")","\\rparen",!0),hC(mC,pC,FC,"<","\\textless",!0),hC(mC,pC,FC,">","\\textgreater",!0),hC(fC,pC,UC,"⌊","\\lfloor",!0),hC(fC,pC,yC,"⌋","\\rfloor",!0),hC(fC,pC,UC,"⌈","\\lceil",!0),hC(fC,pC,yC,"⌉","\\rceil",!0),hC(fC,pC,FC,"\\","\\backslash"),hC(fC,pC,FC,"∣","|"),hC(fC,pC,FC,"∣","\\vert"),hC(mC,pC,FC,"|","\\textbar",!0),hC(fC,pC,FC,"∥","\\|"),hC(fC,pC,FC,"∥","\\Vert"),hC(mC,pC,FC,"∥","\\textbardbl"),hC(mC,pC,FC,"~","\\textasciitilde"),hC(mC,pC,FC,"\\","\\textbackslash"),hC(mC,pC,FC,"^","\\textasciicircum"),hC(fC,pC,kC,"↑","\\uparrow",!0),hC(fC,pC,kC,"⇑","\\Uparrow",!0),hC(fC,pC,kC,"↓","\\downarrow",!0),hC(fC,pC,kC,"⇓","\\Downarrow",!0),hC(fC,pC,kC,"↕","\\updownarrow",!0),hC(fC,pC,kC,"⇕","\\Updownarrow",!0),hC(fC,pC,DC,"∐","\\coprod"),hC(fC,pC,DC,"⋁","\\bigvee"),hC(fC,pC,DC,"⋀","\\bigwedge"),hC(fC,pC,DC,"⨄","\\biguplus"),hC(fC,pC,DC,"⋂","\\bigcap"),hC(fC,pC,DC,"⋃","\\bigcup"),hC(fC,pC,DC,"∫","\\int"),hC(fC,pC,DC,"∫","\\intop"),hC(fC,pC,DC,"∬","\\iint"),hC(fC,pC,DC,"∭","\\iiint"),hC(fC,pC,DC,"∏","\\prod"),hC(fC,pC,DC,"∑","\\sum"),hC(fC,pC,DC,"⨂","\\bigotimes"),hC(fC,pC,DC,"⨁","\\bigoplus"),hC(fC,pC,DC,"⨀","\\bigodot"),hC(fC,pC,DC,"∮","\\oint"),hC(fC,pC,DC,"∯","\\oiint"),hC(fC,pC,DC,"∰","\\oiiint"),hC(fC,pC,DC,"⨆","\\bigsqcup"),hC(fC,pC,DC,"∫","\\smallint"),hC(mC,pC,wC,"…","\\textellipsis"),hC(fC,pC,wC,"…","\\mathellipsis"),hC(mC,pC,wC,"…","\\ldots",!0),hC(fC,pC,wC,"…","\\ldots",!0),hC(fC,pC,wC,"⋯","\\@cdots",!0),hC(fC,pC,wC,"⋱","\\ddots",!0),hC(fC,pC,FC,"⋮","\\varvdots"),hC(mC,pC,FC,"⋮","\\varvdots"),hC(fC,pC,bC,"ˊ","\\acute"),hC(fC,pC,bC,"ˋ","\\grave"),hC(fC,pC,bC,"¨","\\ddot"),hC(fC,pC,bC,"~","\\tilde"),hC(fC,pC,bC,"ˉ","\\bar"),hC(fC,pC,bC,"˘","\\breve"),hC(fC,pC,bC,"ˇ","\\check"),hC(fC,pC,bC,"^","\\hat"),hC(fC,pC,bC,"⃗","\\vec"),hC(fC,pC,bC,"˙","\\dot"),hC(fC,pC,bC,"˚","\\mathring"),hC(fC,pC,xC,"","\\@imath"),hC(fC,pC,xC,"","\\@jmath"),hC(fC,pC,FC,"ı","ı"),hC(fC,pC,FC,"ȷ","ȷ"),hC(mC,pC,FC,"ı","\\i",!0),hC(mC,pC,FC,"ȷ","\\j",!0),hC(mC,pC,FC,"ß","\\ss",!0),hC(mC,pC,FC,"æ","\\ae",!0),hC(mC,pC,FC,"œ","\\oe",!0),hC(mC,pC,FC,"ø","\\o",!0),hC(mC,pC,FC,"Æ","\\AE",!0),hC(mC,pC,FC,"Œ","\\OE",!0),hC(mC,pC,FC,"Ø","\\O",!0),hC(mC,pC,bC,"ˊ","\\'"),hC(mC,pC,bC,"ˋ","\\`"),hC(mC,pC,bC,"ˆ","\\^"),hC(mC,pC,bC,"˜","\\~"),hC(mC,pC,bC,"ˉ","\\="),hC(mC,pC,bC,"˘","\\u"),hC(mC,pC,bC,"˙","\\."),hC(mC,pC,bC,"¸","\\c"),hC(mC,pC,bC,"˚","\\r"),hC(mC,pC,bC,"ˇ","\\v"),hC(mC,pC,bC,"¨",'\\"'),hC(mC,pC,bC,"˝","\\H"),hC(mC,pC,bC,"◯","\\textcircled");var SC={"--":!0,"---":!0,"``":!0,"''":!0};hC(mC,pC,FC,"–","--",!0),hC(mC,pC,FC,"–","\\textendash"),hC(mC,pC,FC,"—","---",!0),hC(mC,pC,FC,"—","\\textemdash"),hC(mC,pC,FC,"‘","`",!0),hC(mC,pC,FC,"‘","\\textquoteleft"),hC(mC,pC,FC,"’","'",!0),hC(mC,pC,FC,"’","\\textquoteright"),hC(mC,pC,FC,"“","``",!0),hC(mC,pC,FC,"“","\\textquotedblleft"),hC(mC,pC,FC,"”","''",!0),hC(mC,pC,FC,"”","\\textquotedblright"),hC(fC,pC,FC,"°","\\degree",!0),hC(mC,pC,FC,"°","\\degree"),hC(mC,pC,FC,"°","\\textdegree",!0),hC(fC,pC,FC,"£","\\pounds"),hC(fC,pC,FC,"£","\\mathsterling",!0),hC(mC,pC,FC,"£","\\pounds"),hC(mC,pC,FC,"£","\\textsterling",!0),hC(fC,gC,FC,"✠","\\maltese"),hC(mC,gC,FC,"✠","\\maltese");for(var EC='0123456789/@."',CC=0;CC<14;CC++){var BC=EC.charAt(CC);hC(fC,pC,FC,BC,BC)}for(var WC='0123456789!@*()-=+";:?/.,',IC=0;IC<25;IC++){var MC=WC.charAt(IC);hC(mC,pC,FC,MC,MC)}for(var RC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",zC=0;zC<52;zC++){var _C=RC.charAt(zC);hC(fC,pC,xC,_C,_C),hC(mC,pC,FC,_C,_C)}hC(fC,gC,FC,"C","ℂ"),hC(mC,gC,FC,"C","ℂ"),hC(fC,gC,FC,"H","ℍ"),hC(mC,gC,FC,"H","ℍ"),hC(fC,gC,FC,"N","ℕ"),hC(mC,gC,FC,"N","ℕ"),hC(fC,gC,FC,"P","ℙ"),hC(mC,gC,FC,"P","ℙ"),hC(fC,gC,FC,"Q","ℚ"),hC(mC,gC,FC,"Q","ℚ"),hC(fC,gC,FC,"R","ℝ"),hC(mC,gC,FC,"R","ℝ"),hC(fC,gC,FC,"Z","ℤ"),hC(mC,gC,FC,"Z","ℤ"),hC(fC,pC,xC,"h","ℎ"),hC(mC,pC,xC,"h","ℎ");for(var OC="",PC=0;PC<52;PC++){var LC=RC.charAt(PC);hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56320+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56372+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56424+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56580+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56684+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56736+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56788+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56840+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56944+PC)),hC(mC,pC,FC,LC,OC),PC<26&&(hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56632+PC)),hC(mC,pC,FC,LC,OC),hC(fC,pC,xC,LC,OC=String.fromCharCode(55349,56476+PC)),hC(mC,pC,FC,LC,OC))}hC(fC,pC,xC,"k",OC=String.fromCharCode(55349,56668)),hC(mC,pC,FC,"k",OC);for(var NC=0;NC<10;NC++){var qC=NC.toString();hC(fC,pC,xC,qC,OC=String.fromCharCode(55349,57294+NC)),hC(mC,pC,FC,qC,OC),hC(fC,pC,xC,qC,OC=String.fromCharCode(55349,57314+NC)),hC(mC,pC,FC,qC,OC),hC(fC,pC,xC,qC,OC=String.fromCharCode(55349,57324+NC)),hC(mC,pC,FC,qC,OC),hC(fC,pC,xC,qC,OC=String.fromCharCode(55349,57334+NC)),hC(mC,pC,FC,qC,OC)}for(var jC="ÐÞþ",HC=0;HC<3;HC++){var VC=jC.charAt(HC);hC(fC,pC,xC,VC,VC),hC(mC,pC,FC,VC,VC)}var $C=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],GC=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],KC=function(e,t,n){return dC[n][e]&&dC[n][e].replace&&(e=dC[n][e].replace),{value:e,metrics:OE(e,t,n)}},ZC=function(e,t,n,i,r){var o,a=KC(e,t,n),s=a.metrics;if(e=a.value,s){var c=s.italic;("text"===n||i&&"mathit"===i.font)&&(c=0),o=new rC(e,s.height,s.depth,c,s.skew,s.width,r)}else o=new rC(e,0,0,0,0,0,r);if(i){o.maxFontSize=i.sizeMultiplier,i.style.isTight()&&o.classes.push("mtight");var u=i.getColor();u&&(o.style.color=u)}return o},XC=(e,t)=>{if(ZE(e.classes)!==ZE(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(var r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;return!0},YC=function(e){for(var t=0,n=0,i=0,r=0;r<e.children.length;r++){var o=e.children[r];o.height>t&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=i},JC=function(e,t,n,i){var r=new eC(e,t,n,i);return YC(r),r},QC=(e,t,n,i)=>new eC(e,t,n,i),eB=function(e){var t=new ME(e);return YC(t),t},tB=function(e,t,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return i+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},nB={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},iB={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rB={fontMap:nB,makeSymbol:ZC,mathsym:function(e,t,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&KC(e,"Main-Bold",t).metrics?ZC(e,"Main-Bold",t,n,i.concat(["mathbf"])):"\\"===e||"main"===dC[t][e].font?ZC(e,"Main-Regular",t,n,i):ZC(e,"AMS-Regular",t,n,i.concat(["amsrm"]))},makeSpan:JC,makeSvgSpan:QC,makeLineSpan:function(e,t,n){var i=JC([e],[],t);return i.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=KE(i.height),i.maxFontSize=1,i},makeAnchor:function(e,t,n,i){var r=new tC(e,t,n,i);return YC(r),r},makeFragment:eB,wrapFragment:function(e,t){return e instanceof ME?JC([],[e],t):e},makeVList:function(e,t){for(var{children:n,depth:i}=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],i=-t[0].shift-t[0].elem.depth,r=i,o=1;o<t.length;o++){var a=-t[o].shift-r-t[o].elem.depth,s=a-(t[o-1].elem.height+t[o-1].elem.depth);r+=a,n.push({type:"kern",size:s}),n.push(t[o])}return{children:n,depth:i}}var c;if("top"===e.positionType){for(var u=e.positionData,l=0;l<e.children.length;l++){var d=e.children[l];u-="kern"===d.type?d.size:d.elem.height+d.elem.depth}c=u}else if("bottom"===e.positionType)c=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)c=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");c=-h.elem.depth}}return{children:e.children,depth:c}}(e),r=0,o=0;o<n.length;o++){var a=n[o];if("elem"===a.type){var s=a.elem;r=Math.max(r,s.maxFontSize,s.height)}}r+=2;var c=JC(["pstrut"],[]);c.style.height=KE(r);for(var u=[],l=i,d=i,h=i,f=0;f<n.length;f++){var m=n[f];if("kern"===m.type)h+=m.size;else{var p=m.elem,g=m.wrapperClasses||[],b=m.wrapperStyle||{},v=JC(g,[c,p],void 0,b);v.style.top=KE(-r-h-p.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),u.push(v),h+=p.height+p.depth}l=Math.min(l,h),d=Math.max(d,h)}var y,w=JC(["vlist"],u);if(w.style.height=KE(d),l<0){var x=JC([],[]),D=JC(["vlist"],[x]);D.style.height=KE(-l);var U=JC(["vlist-s"],[new rC("")]);y=[JC(["vlist-r"],[w,U]),JC(["vlist-r"],[D])]}else y=[JC(["vlist-r"],[w])];var T=JC(["vlist-t"],y);return 2===y.length&&T.classes.push("vlist-t2"),T.height=d,T.depth=-l,T},makeOrd:function(e,t,n){var i=e.mode,r=e.text,o=["mord"],a="math"===i||"text"===i&&t.font,s=a?t.font:t.fontFamily,c="",u="";if(55349===r.charCodeAt(0)&&([c,u]=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,i="math"===t?0:1;if(119808<=n&&n<120484){var r=Math.floor((n-119808)/26);return[$C[r][2],$C[r][i]]}if(120782<=n&&n<=120831){var o=Math.floor((n-120782)/10);return[GC[o][2],GC[o][i]]}if(120485===n||120486===n)return[$C[0][2],$C[0][i]];if(120486<n&&n<120782)return["",""];throw new dE("Unsupported character: "+e)}(r,i)),c.length>0)return ZC(r,c,i,t,o.concat(u));if(s){var l,d;if("boldsymbol"===s){var h=function(e,t,n,i,r){return"textord"!==r&&KC(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(r,i,0,0,n);l=h.fontName,d=[h.fontClass]}else a?(l=nB[s].fontName,d=[s]):(l=tB(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(KC(r,l,i).metrics)return ZC(r,l,i,t,o.concat(d));if(SC.hasOwnProperty(r)&&"Typewriter"===l.slice(0,10)){for(var f=[],m=0;m<r.length;m++)f.push(ZC(r[m],l,i,t,o.concat(d)));return eB(f)}}if("mathord"===n)return ZC(r,"Math-Italic",i,t,o.concat(["mathnormal"]));if("textord"===n){var p=dC[i][r]&&dC[i][r].font;if("ams"===p){var g=tB("amsrm",t.fontWeight,t.fontShape);return ZC(r,g,i,t,o.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==p&&p){var b=tB(p,t.fontWeight,t.fontShape);return ZC(r,b,i,t,o.concat(b,t.fontWeight,t.fontShape))}var v=tB("textrm",t.fontWeight,t.fontShape);return ZC(r,v,i,t,o.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:(e,t)=>{var n=JC(["mspace"],[],t),i=GE(e,t);return n.style.marginRight=KE(i),n},staticSvg:function(e,t){var[n,i,r]=iB[e],o=new aC(n),a=new oC([o],{width:KE(i),height:KE(r),style:"width:"+KE(i),viewBox:"0 0 "+1e3*i+" "+1e3*r,preserveAspectRatio:"xMinYMin"}),s=QC(["overlay"],[a],t);return s.height=r,s.style.height=KE(r),s.style.width=KE(i),s},svgData:iB,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof rC&&i instanceof rC&&XC(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e}},oB={number:3,unit:"mu"},aB={number:4,unit:"mu"},sB={number:5,unit:"mu"},cB={mord:{mop:oB,mbin:aB,mrel:sB,minner:oB},mop:{mord:oB,mop:oB,mrel:sB,minner:oB},mbin:{mord:aB,mop:aB,mopen:aB,minner:aB},mrel:{mord:sB,mop:sB,mopen:sB,minner:sB},mopen:{},mclose:{mop:oB,mbin:aB,mrel:sB,minner:oB},mpunct:{mord:oB,mop:oB,mrel:sB,mopen:oB,mclose:oB,mpunct:oB,minner:oB},minner:{mord:oB,mop:oB,mbin:aB,mrel:sB,mopen:oB,mpunct:oB,minner:oB}},uB={mord:{mop:oB},mop:{mord:oB,mop:oB},mbin:{},mrel:{},mopen:{},mclose:{mop:oB},mpunct:{},minner:{mop:oB}},lB={},dB={},hB={};function fB(e){for(var{type:t,names:n,props:i,handler:r,htmlBuilder:o,mathmlBuilder:a}=e,s={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:r},c=0;c<n.length;++c)lB[n[c]]=s;t&&(o&&(dB[t]=o),a&&(hB[t]=a))}function mB(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;fB({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var pB=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},gB=function(e){return"ordgroup"===e.type?e.body:[e]},bB=rB.makeSpan,vB=["leftmost","mbin","mopen","mrel","mop","mpunct"],yB=["rightmost","mrel","mclose","mpunct"],wB={display:SE.DISPLAY,text:SE.TEXT,script:SE.SCRIPT,scriptscript:SE.SCRIPTSCRIPT},xB={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},DB=function(e,t,n,i){void 0===i&&(i=[null,null]);for(var r=[],o=0;o<e.length;o++){var a=SB(e[o],t);if(a instanceof ME){var s=a.children;r.push(...s)}else r.push(a)}if(rB.tryCombineChars(r),!n)return r;var c=t;if(1===e.length){var u=e[0];"sizing"===u.type?c=t.havingSize(u.size):"styling"===u.type&&(c=t.havingStyle(wB[u.style]))}var l=bB([i[0]||"leftmost"],[],t),d=bB([i[1]||"rightmost"],[],t),h="root"===n;return UB(r,(e,t)=>{var n=t.classes[0],i=e.classes[0];"mbin"===n&&yB.includes(i)?t.classes[0]="mord":"mbin"===i&&vB.includes(n)&&(e.classes[0]="mord")},{node:l},d,h),UB(r,(e,t)=>{var n=AB(t),i=AB(e),r=n&&i?e.hasClass("mtight")?uB[n][i]:cB[n][i]:null;if(r)return rB.makeGlue(r,c)},{node:l},d,h),r},UB=function e(t,n,i,r,o){r&&t.push(r);for(var a=0;a<t.length;a++){var s=t[a],c=TB(s);if(c)e(c.children,n,i,null,o);else{var u=!s.hasClass("mspace");if(u){var l=n(s,i.node);l&&(i.insertAfter?i.insertAfter(l):(t.unshift(l),a++))}u?i.node=s:o&&s.hasClass("newline")&&(i.node=bB(["leftmost"])),i.insertAfter=(e=>n=>{t.splice(e+1,0,n),a++})(a)}}r&&t.pop()},TB=function(e){return e instanceof ME||e instanceof tC||e instanceof eC&&e.hasClass("enclosing")?e:null},kB=function e(t,n){var i=TB(t);if(i){var r=i.children;if(r.length){if("right"===n)return e(r[r.length-1],"right");if("left"===n)return e(r[0],"left")}}return t},AB=function(e,t){return e?(t&&(e=kB(e,t)),xB[e.classes[0]]||null):null},FB=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return bB(t.concat(n))},SB=function(e,t,n){if(!e)return bB();if(dB[e.type]){var i=dB[e.type](e,t);if(n&&t.size!==n.size){i=bB(t.sizingClasses(n),[i],t);var r=t.sizeMultiplier/n.sizeMultiplier;i.height*=r,i.depth*=r}return i}throw new dE("Got group of unknown type: '"+e.type+"'")};function EB(e,t){var n=bB(["base"],e,t),i=bB(["strut"]);return i.style.height=KE(n.height+n.depth),n.depth&&(i.style.verticalAlign=KE(-n.depth)),n.children.unshift(i),n}function CB(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var i,r=DB(e,t,"root");2===r.length&&r[1].hasClass("tag")&&(i=r.pop());for(var o,a=[],s=[],c=0;c<r.length;c++)if(s.push(r[c]),r[c].hasClass("mbin")||r[c].hasClass("mrel")||r[c].hasClass("allowbreak")){for(var u=!1;c<r.length-1&&r[c+1].hasClass("mspace")&&!r[c+1].hasClass("newline");)c++,s.push(r[c]),r[c].hasClass("nobreak")&&(u=!0);u||(a.push(EB(s,t)),s=[])}else r[c].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(EB(s,t)),s=[]),a.push(r[c]));s.length>0&&a.push(EB(s,t)),n?((o=EB(DB(n,t,!0))).classes=["tag"],a.push(o)):i&&a.push(i);var l=bB(["katex-html"],a);if(l.setAttribute("aria-hidden","true"),o){var d=o.children[0];d.style.height=KE(l.height+l.depth),l.depth&&(d.style.verticalAlign=KE(-l.depth))}return l}function BB(e){return new ME(e)}class WB{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ZE(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof IB&&this.children[n+1]instanceof IB){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof IB;)i+=this.children[++n].toText();e.appendChild(new IB(i).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=gE.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+gE.escape(ZE(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class IB{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return gE.escape(this.toText())}toText(){return this.text}}var MB={MathNode:WB,TextNode:IB,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",KE(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+KE(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:BB},RB=function(e,t,n){return!dC[t][e]||!dC[t][e].replace||55349===e.charCodeAt(0)||SC.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=dC[t][e].replace),new MB.TextNode(e)},zB=function(e){return 1===e.length?e[0]:new MB.MathNode("mrow",e)},_B=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var i=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=e.text;return["\\imath","\\jmath"].includes(r)?null:(dC[i][r]&&dC[i][r].replace&&(r=dC[i][r].replace),OE(r,rB.fontMap[n].fontName,i)?rB.fontMap[n].variant:null)};function OB(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof IB&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var n=e.children[0];return n instanceof IB&&","===n.text}return!1}var PB=function(e,t,n){if(1===e.length){var i=NB(e[0],t);return n&&i instanceof WB&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var r,o=[],a=0;a<e.length;a++){var s=NB(e[a],t);if(s instanceof WB&&r instanceof WB){if("mtext"===s.type&&"mtext"===r.type&&s.getAttribute("mathvariant")===r.getAttribute("mathvariant")){r.children.push(...s.children);continue}if("mn"===s.type&&"mn"===r.type){r.children.push(...s.children);continue}if(OB(s)&&"mn"===r.type){r.children.push(...s.children);continue}if("mn"===s.type&&OB(r))s.children=[...r.children,...s.children],o.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===r.type||OB(r))){var c=s.children[0];c instanceof WB&&"mn"===c.type&&(c.children=[...r.children,...c.children],o.pop())}else if("mi"===r.type&&1===r.children.length){var u=r.children[0];if(u instanceof IB&&"̸"===u.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var l=s.children[0];l instanceof IB&&l.text.length>0&&(l.text=l.text.slice(0,1)+"̸"+l.text.slice(1),o.pop())}}}o.push(s),r=s}return o},LB=function(e,t,n){return zB(PB(e,t,n))},NB=function(e,t){if(!e)return new MB.MathNode("mrow");if(hB[e.type])return hB[e.type](e,t);throw new dE("Got group of unknown type: '"+e.type+"'")};function qB(e,t,n,i,r){var o,a=PB(e,n);o=1===a.length&&a[0]instanceof WB&&["mrow","mtable"].includes(a[0].type)?a[0]:new MB.MathNode("mrow",a);var s=new MB.MathNode("annotation",[new MB.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var c=new MB.MathNode("semantics",[o,s]),u=new MB.MathNode("math",[c]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&u.setAttribute("display","block");var l=r?"katex":"katex-mathml";return rB.makeSpan([l],[u])}var jB=function(e){return new jE({style:e.displayMode?SE.DISPLAY:SE.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},HB=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=rB.makeSpan(n,[e])}return e},VB={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},$B={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},GB=function(e,t,n,i,r){var o,a=e.height+e.depth+n+i;if(/fbox|color|angl/.test(t)){if(o=rB.makeSpan(["stretchy",t],[],r),"fbox"===t){var s=r.color&&r.getColor();s&&(o.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new sC({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&c.push(new sC({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new oC(c,{width:"100%",height:KE(a)});o=rB.makeSvgSpan([],[u],r)}return o.height=a,o.style.height=KE(a),o},KB=function(e){var t=new MB.MathNode("mo",[new MB.TextNode(VB[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},ZB=function(e,t){var{span:n,minWidth:i,height:r}=function(){var n=4e5,i=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(i)){var r,o,a,s="ordgroup"===(f=e.base).type?f.body.length:1;if(s>5)"widehat"===i||"widecheck"===i?(r=420,n=2364,a=.42,o=i+"4"):(r=312,n=2340,a=.34,o="tilde4");else{var c=[1,1,2,2,3,3][s];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][c],r=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],o=i+c):(n=[0,600,1033,2339,2340][c],r=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],o="tilde"+c)}var u=new aC(o),l=new oC([u],{width:"100%",height:KE(a),viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:rB.makeSvgSpan([],[l],t),minWidth:0,height:a}}var d,h,f,m=[],p=$B[i],[g,b,v]=p,y=v/1e3,w=g.length;if(1===w)d=["hide-tail"],h=[p[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],h=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],h=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<w;x++){var D=new aC(g[x]),U=new oC([D],{width:"400em",height:KE(y),viewBox:"0 0 "+n+" "+v,preserveAspectRatio:h[x]+" slice"}),T=rB.makeSvgSpan([d[x]],[U],t);if(1===w)return{span:T,minWidth:b,height:y};T.style.height=KE(y),m.push(T)}return{span:rB.makeSpan(["stretchy"],m,t),minWidth:b,height:y}}();return n.height=r,n.style.height=KE(r),i>0&&(n.style.minWidth=KE(i)),n};function XB(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function YB(e){var t=JB(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function JB(e){return e&&("atom"===e.type||lC.hasOwnProperty(e.type))?e:null}var QB=(e,t)=>{var n,i,r;e&&"supsub"===e.type?(n=(i=XB(e.base,"accent")).base,e.base=n,r=function(e){if(e instanceof eC)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(SB(e,t)),e.base=i):n=(i=XB(e,"accent")).base;var o=SB(n,t.havingCrampedStyle()),a=0;if(i.isShifty&&gE.isCharacterBox(n)){var s=gE.getBaseElem(n);a=cC(SB(s,t.havingCrampedStyle())).skew}var c,u="\\c"===i.label,l=u?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight);if(i.isStretchy)c=ZB(i,t),c=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+KE(2*a)+")",marginLeft:KE(2*a)}:void 0}]},t);else{var d,h;"\\vec"===i.label?(d=rB.staticSvg("vec",t),h=rB.svgData.vec[1]):((d=cC(d=rB.makeOrd({mode:i.mode,text:i.label},t,"textord"))).italic=0,h=d.width,u&&(l+=d.depth)),c=rB.makeSpan(["accent-body"],[d]);var f="\\textcircled"===i.label;f&&(c.classes.push("accent-full"),l=o.height);var m=a;f||(m-=h/2),c.style.left=KE(m),"\\textcircled"===i.label&&(c.style.top=".2em"),c=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-l},{type:"elem",elem:c}]},t)}var p=rB.makeSpan(["mord","accent"],[c],t);return r?(r.children[0]=p,r.height=Math.max(p.height,r.height),r.classes[0]="mord",r):p},eW=(e,t)=>{var n=e.isStretchy?KB(e.label):new MB.MathNode("mo",[RB(e.label,e.mode)]),i=new MB.MathNode("mover",[NB(e.base,t),n]);return i.setAttribute("accent","true"),i},tW=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));fB({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=pB(t[0]),i=!tW.test(e.funcName),r=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:r,base:n}},htmlBuilder:QB,mathmlBuilder:eW}),fB({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:QB,mathmlBuilder:eW}),fB({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:r}},htmlBuilder:(e,t)=>{var n=SB(e.base,t),i=ZB(e,t),r="\\utilde"===e.label?.12:0,o=rB.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},t);return rB.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=KB(e.label),i=new MB.MathNode("munder",[NB(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var nW=e=>{var t=new MB.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};fB({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:r}=e;return{type:"xArrow",mode:i.mode,label:r,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,i=t.style,r=t.havingStyle(i.sup()),o=rB.wrapFragment(SB(e.body,r,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(a+"-arrow-pad"),e.below&&(r=t.havingStyle(i.sub()),(n=rB.wrapFragment(SB(e.below,r,t),t)).classes.push(a+"-arrow-pad"));var s,c=ZB(e,t),u=-t.fontMetrics().axisHeight+.5*c.height,l=-t.fontMetrics().axisHeight-.5*c.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(l-=o.depth),n){var d=-t.fontMetrics().axisHeight+n.height+.5*c.height+.111;s=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:c,shift:u},{type:"elem",elem:n,shift:d}]},t)}else s=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:l},{type:"elem",elem:c,shift:u}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),rB.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var n,i=KB(e.label);if(i.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var r=nW(NB(e.body,t));if(e.below){var o=nW(NB(e.below,t));n=new MB.MathNode("munderover",[i,o,r])}else n=new MB.MathNode("mover",[i,r])}else if(e.below){var a=nW(NB(e.below,t));n=new MB.MathNode("munder",[i,a])}else n=nW(),n=new MB.MathNode("mover",[i,n]);return n}});var iW=rB.makeSpan;function rW(e,t){var n=DB(e.body,t,!0);return iW([e.mclass],n,t)}function oW(e,t){var n,i=PB(e.body,t);return"minner"===e.mclass?n=new MB.MathNode("mpadded",i):"mord"===e.mclass?e.isCharacterBox?(n=i[0]).type="mi":n=new MB.MathNode("mi",i):(e.isCharacterBox?(n=i[0]).type="mo":n=new MB.MathNode("mo",i),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}fB({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:gB(r),isCharacterBox:gE.isCharacterBox(r)}},htmlBuilder:rW,mathmlBuilder:oW});var aW=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};fB({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:aW(t[0]),body:gB(t[1]),isCharacterBox:gE.isCharacterBox(t[1])}}}),fB({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:i,funcName:r}=e,o=t[1],a=t[0];n="\\stackrel"!==r?aW(o):"mrel";var s={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:gB(o)},c={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===r?null:a,sub:"\\underset"===r?a:null};return{type:"mclass",mode:i.mode,mclass:n,body:[c],isCharacterBox:gE.isCharacterBox(c)}},htmlBuilder:rW,mathmlBuilder:oW}),fB({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:aW(t[0]),body:gB(t[0])}},htmlBuilder(e,t){var n=DB(e.body,t,!0),i=rB.makeSpan([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=PB(e.body,t),i=new MB.MathNode("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var sW={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},cW=()=>({type:"styling",body:[],mode:"math",style:"display"}),uW=e=>"textord"===e.type&&"@"===e.text,lW=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function dW(e,t,n){var i=sW[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var r={type:"atom",text:i,mode:"math",family:"rel"},o={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[r],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[o],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}fB({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=rB.wrapFragment(SB(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=KE(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new MB.MathNode("mrow",[NB(e.label,t)]);return(n=new MB.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new MB.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),fB({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=rB.wrapFragment(SB(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new MB.MathNode("mrow",[NB(e.fragment,t)])}),fB({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=XB(t[0],"ordgroup").body,r="",o=0;o<i.length;o++){r+=XB(i[o],"textord").text}var a,s=parseInt(r);if(isNaN(s))throw new dE("\\@char has non-numeric argument "+r);if(s<0||s>=1114111)throw new dE("\\@char with invalid code point "+r);return s<=65535?a=String.fromCharCode(s):(s-=65536,a=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:n.mode,text:a}}});var hW=(e,t)=>{var n=DB(e.body,t.withColor(e.color),!1);return rB.makeFragment(n)},fW=(e,t)=>{var n=PB(e.body,t.withColor(e.color)),i=new MB.MathNode("mstyle",n);return i.setAttribute("mathcolor",e.color),i};fB({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=XB(t[0],"color-token").color,r=t[1];return{type:"color",mode:n.mode,color:i,body:gB(r)}},htmlBuilder:hW,mathmlBuilder:fW}),fB({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,r=XB(t[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var o=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:r,body:o}},htmlBuilder:hW,mathmlBuilder:fW}),fB({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,r="["===i.gullet.future().text?i.parseSizeGroup(!0):null,o=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:o,size:r&&XB(r,"size").value}},htmlBuilder(e,t){var n=rB.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=KE(GE(e.size,t)))),n},mathmlBuilder(e,t){var n=new MB.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",KE(GE(e.size,t)))),n}});var mW={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},pW=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new dE("Expected a control sequence",e);return t},gW=(e,t,n,i)=>{var r=e.gullet.macros.get(n.text);null==r&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,r,i)};fB({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(mW[i.text])return"\\global"!==n&&"\\\\globallong"!==n||(i.text=mW[i.text]),XB(t.parseFunction(),"internal");throw new dE("Invalid token after macro prefix",i)}}),fB({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),r=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new dE("Expected a control sequence",i);for(var o,a=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(i=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),s[a].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new dE('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==a+1)throw new dE('Argument number "'+i.text+'" out of order');a++,s.push([])}else{if("EOF"===i.text)throw new dE("Expected a macro definition");s[a].push(i.text)}var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),"\\edef"!==n&&"\\xdef"!==n||(c=t.gullet.expandTokens(c)).reverse(),t.gullet.macros.set(r,{tokens:c,numArgs:a,delimiters:s},n===mW[n]),{type:"internal",mode:t.mode}}}),fB({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=pW(t.gullet.popToken());t.gullet.consumeSpaces();var r=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return gW(t,i,r,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),fB({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=pW(t.gullet.popToken()),r=t.gullet.popToken(),o=t.gullet.popToken();return gW(t,i,o,"\\\\globalfuture"===n),t.gullet.pushToken(o),t.gullet.pushToken(r),{type:"internal",mode:t.mode}}});var bW=function(e,t,n){var i=OE(dC.math[e]&&dC.math[e].replace||e,t,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return i},vW=function(e,t,n,i){var r=n.havingBaseStyle(t),o=rB.makeSpan(i.concat(r.sizingClasses(n)),[e],n),a=r.sizeMultiplier/n.sizeMultiplier;return o.height*=a,o.depth*=a,o.maxFontSize=r.sizeMultiplier,o},yW=function(e,t,n){var i=t.havingBaseStyle(n),r=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=KE(r),e.height-=r,e.depth+=r},wW=function(e,t,n,i,r,o){var a=function(e,t,n,i){return rB.makeSymbol(e,"Size"+t+"-Regular",n,i)}(e,t,r,i),s=vW(rB.makeSpan(["delimsizing","size"+t],[a],i),SE.TEXT,i,o);return n&&yW(s,i,SE.TEXT),s},xW=function(e,t,n){var i;return i="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:rB.makeSpan(["delimsizinginner",i],[rB.makeSpan([],[rB.makeSymbol(e,t,n)])])}},DW=function(e,t,n){var i=RE["Size4-Regular"][e.charCodeAt(0)]?RE["Size4-Regular"][e.charCodeAt(0)][4]:RE["Size1-Regular"][e.charCodeAt(0)][4],r=new aC("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),o=new oC([r],{width:KE(i),height:KE(t),style:"width:"+KE(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=rB.makeSvgSpan([],[o],n);return a.height=t,a.style.height=KE(t),a.style.width=KE(i),{type:"elem",elem:a}},UW={type:"kern",size:-.008},TW=["|","\\lvert","\\rvert","\\vert"],kW=["\\|","\\lVert","\\rVert","\\Vert"],AW=function(e,t,n,i,r,o){var a,s,c,u,l="",d=0;a=c=u=e,s=null;var h="Size1-Regular";"\\uparrow"===e?c=u="⏐":"\\Uparrow"===e?c=u="‖":"\\downarrow"===e?a=c="⏐":"\\Downarrow"===e?a=c="‖":"\\updownarrow"===e?(a="\\uparrow",c="⏐",u="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",c="‖",u="\\Downarrow"):TW.includes(e)?(c="∣",l="vert",d=333):kW.includes(e)?(c="∥",l="doublevert",d=556):"["===e||"\\lbrack"===e?(a="⎡",c="⎢",u="⎣",h="Size4-Regular",l="lbrack",d=667):"]"===e||"\\rbrack"===e?(a="⎤",c="⎥",u="⎦",h="Size4-Regular",l="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(c=a="⎢",u="⎣",h="Size4-Regular",l="lfloor",d=667):"\\lceil"===e||"⌈"===e?(a="⎡",c=u="⎢",h="Size4-Regular",l="lceil",d=667):"\\rfloor"===e||"⌋"===e?(c=a="⎥",u="⎦",h="Size4-Regular",l="rfloor",d=667):"\\rceil"===e||"⌉"===e?(a="⎤",c=u="⎥",h="Size4-Regular",l="rceil",d=667):"("===e||"\\lparen"===e?(a="⎛",c="⎜",u="⎝",h="Size4-Regular",l="lparen",d=875):")"===e||"\\rparen"===e?(a="⎞",c="⎟",u="⎠",h="Size4-Regular",l="rparen",d=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",u="⎩",c="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",u="⎭",c="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",u="⎩",c="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",u="⎭",c="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",u="⎭",c="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",u="⎩",c="⎪",h="Size4-Regular");var f=bW(a,h,r),m=f.height+f.depth,p=bW(c,h,r),g=p.height+p.depth,b=bW(u,h,r),v=b.height+b.depth,y=0,w=1;if(null!==s){var x=bW(s,h,r);y=x.height+x.depth,w=2}var D=m+v+y,U=D+Math.max(0,Math.ceil((t-D)/(w*g)))*w*g,T=i.fontMetrics().axisHeight;n&&(T*=i.sizeMultiplier);var k=U/2-T,A=[];if(l.length>0){var F=U-m-v,S=Math.round(1e3*U),E=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(l,Math.round(1e3*F)),C=new aC(l,E),B=(d/1e3).toFixed(3)+"em",W=(S/1e3).toFixed(3)+"em",I=new oC([C],{width:B,height:W,viewBox:"0 0 "+d+" "+S}),M=rB.makeSvgSpan([],[I],i);M.height=S/1e3,M.style.width=B,M.style.height=W,A.push({type:"elem",elem:M})}else{if(A.push(xW(u,h,r)),A.push(UW),null===s){var R=U-m-v+.016;A.push(DW(c,R,i))}else{var z=(U-m-v-y)/2+.016;A.push(DW(c,z,i)),A.push(UW),A.push(xW(s,h,r)),A.push(UW),A.push(DW(c,z,i))}A.push(UW),A.push(xW(a,h,r))}var _=i.havingBaseStyle(SE.TEXT),O=rB.makeVList({positionType:"bottom",positionData:k,children:A},_);return vW(rB.makeSpan(["delimsizing","mult"],[O],_),SE.TEXT,i,o)},FW=.08,SW=function(e,t,n,i,r){var o=function(e,t,n){t*=1e3;var i="";switch(e){case"sqrtMain":i=function(e){return"M95,"+(622+e+WE)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+WE+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":i=function(e){return"M263,"+(601+e+WE)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+WE+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":i=function(e){return"M983 "+(10+e+WE)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+WE+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":i=function(e){return"M424,"+(2398+e+WE)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+WE+"\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":i=function(e){return"M473,"+(2713+e+WE)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+WE+"h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":i=function(e,t,n){return"M702 "+(e+WE)+"H400000"+(40+e)+"\nH742v"+(n-54-WE-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+WE+"H400000v"+(40+e)+"H742z"}(t,0,n)}return i}(e,i,n),a=new aC(e,o),s=new oC([a],{width:"400em",height:KE(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return rB.makeSvgSpan(["hide-tail"],[s],r)},EW=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],CW=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],BW=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],WW=[0,1.2,1.8,2.4,3],IW=[{type:"small",style:SE.SCRIPTSCRIPT},{type:"small",style:SE.SCRIPT},{type:"small",style:SE.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],MW=[{type:"small",style:SE.SCRIPTSCRIPT},{type:"small",style:SE.SCRIPT},{type:"small",style:SE.TEXT},{type:"stack"}],RW=[{type:"small",style:SE.SCRIPTSCRIPT},{type:"small",style:SE.SCRIPT},{type:"small",style:SE.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],zW=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},_W=function(e,t,n,i){for(var r=Math.min(2,3-i.style.size);r<n.length&&"stack"!==n[r].type;r++){var o=bW(e,zW(n[r]),"math"),a=o.height+o.depth;if("small"===n[r].type&&(a*=i.havingBaseStyle(n[r].style).sizeMultiplier),a>t)return n[r]}return n[n.length-1]},OW=function(e,t,n,i,r,o){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=BW.includes(e)?IW:EW.includes(e)?RW:MW;var s=_W(e,t,a,i);return"small"===s.type?function(e,t,n,i,r,o){var a=rB.makeSymbol(e,"Main-Regular",r,i),s=vW(a,t,i,o);return n&&yW(s,i,t),s}(e,s.style,n,i,r,o):"large"===s.type?wW(e,s.size,n,i,r,o):AW(e,t,n,i,r,o)},PW={sqrtImage:function(e,t){var n,i,r=t.havingBaseSizing(),o=_W("\\surd",e*r.sizeMultiplier,RW,r),a=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),c=0,u=0,l=0;return"small"===o.type?(e<1?a=1:e<1.4&&(a=.7),u=(1+s)/a,(n=SW("sqrtMain",c=(1+s+FW)/a,l=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",i=.833/a):"large"===o.type?(l=1080*WW[o.size],u=(WW[o.size]+s)/a,c=(WW[o.size]+s+FW)/a,(n=SW("sqrtSize"+o.size,c,l,s,t)).style.minWidth="1.02em",i=1/a):(c=e+s+FW,u=e+s,l=Math.floor(1e3*e+s)+80,(n=SW("sqrtTall",c,l,s,t)).style.minWidth="0.742em",i=1.056),n.height=u,n.style.height=KE(c),{span:n,advanceWidth:i,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},sizedDelim:function(e,t,n,i,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),EW.includes(e)||BW.includes(e))return wW(e,t,!1,n,i,r);if(CW.includes(e))return AW(e,WW[t],!1,n,i,r);throw new dE("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:WW,customSizedDelim:OW,leftRightDelim:function(e,t,n,i,r,o){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,s=5/i.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),u=Math.max(c/500*901,2*c-s);return OW(e,u,!0,i,r,o)}},LW={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},NW=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function qW(e,t){var n=JB(e);if(n&&NW.includes(n.text))return n;throw new dE(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function jW(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}fB({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=qW(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:LW[e.funcName].size,mclass:LW[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?rB.makeSpan([e.mclass]):PW.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(RB(e.delim,e.mode));var n=new MB.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=KE(PW.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}}),fB({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new dE("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:qW(t[0],e).text,color:n}}}),fB({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=qW(t[0],e),i=e.parser;++i.leftrightDepth;var r=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var o=XB(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:r,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{jW(e);for(var n,i,r=DB(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,c=0;c<r.length;c++)r[c].isMiddle?s=!0:(o=Math.max(r[c].height,o),a=Math.max(r[c].depth,a));if(o*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?FB(t,["mopen"]):PW.leftRightDelim(e.left,o,a,t,e.mode,["mopen"]),r.unshift(n),s)for(var u=1;u<r.length;u++){var l=r[u].isMiddle;l&&(r[u]=PW.leftRightDelim(l.delim,o,a,l.options,e.mode,[]))}if("."===e.right)i=FB(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;i=PW.leftRightDelim(e.right,o,a,d,e.mode,["mclose"])}return r.push(i),rB.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{jW(e);var n=PB(e.body,t);if("."!==e.left){var i=new MB.MathNode("mo",[RB(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if("."!==e.right){var r=new MB.MathNode("mo",[RB(e.right,e.mode)]);r.setAttribute("fence","true"),e.rightColor&&r.setAttribute("mathcolor",e.rightColor),n.push(r)}return zB(n)}}),fB({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=qW(t[0],e);if(!e.parser.leftrightDepth)throw new dE("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=FB(t,[]);else{n=PW.sizedDelim(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?RB("|","text"):RB(e.delim,e.mode),i=new MB.MathNode("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var HW=(e,t)=>{var n,i,r,o=rB.wrapFragment(SB(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,c=0,u=gE.isCharacterBox(e.body);if("sout"===a)(n=rB.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,c=-.5*t.fontMetrics().xHeight;else if("phase"===a){var l=GE({number:.6,unit:"pt"},t),d=GE({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var h=o.height+o.depth+l+d;o.style.paddingLeft=KE(h/2+l);var f=Math.floor(1e3*h*s),m="M400000 "+(i=f)+" H0 L"+i/2+" 0 l65 45 L145 "+(i-80)+" H400000z",p=new oC([new aC("phase",m)],{width:"400em",height:KE(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});(n=rB.makeSvgSpan(["hide-tail"],[p],t)).style.height=KE(h),c=o.depth+l+d}else{/cancel/.test(a)?u||o.classes.push("cancel-pad"):"angl"===a?o.classes.push("anglpad"):o.classes.push("boxpad");var g=0,b=0,v=0;/box/.test(a)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=g=t.fontMetrics().fboxsep+("colorbox"===a?0:v)):"angl"===a?(g=4*(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),b=Math.max(0,.25-o.depth)):b=g=u?.2:0,n=GB(o,a,g,b,t),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=KE(v)):"angl"===a&&.049!==v&&(n.style.borderTopWidth=KE(v),n.style.borderRightWidth=KE(v)),c=o.depth+b,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)r=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:o,shift:0}]},t);else{var y=/cancel|phase/.test(a)?["svg-align"]:[];r=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:n,shift:c,wrapperClasses:y}]},t)}return/cancel/.test(a)&&(r.height=o.height,r.depth=o.depth),/cancel/.test(a)&&!u?rB.makeSpan(["mord","cancel-lap"],[r],t):rB.makeSpan(["mord"],[r],t)},VW=(e,t)=>{var n=0,i=new MB.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[NB(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};fB({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:i,funcName:r}=e,o=XB(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:i.mode,label:r,backgroundColor:o,body:a}},htmlBuilder:HW,mathmlBuilder:VW}),fB({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:i,funcName:r}=e,o=XB(t[0],"color-token").color,a=XB(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:i.mode,label:r,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:HW,mathmlBuilder:VW}),fB({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),fB({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,r=t[0];return{type:"enclose",mode:n.mode,label:i,body:r}},htmlBuilder:HW,mathmlBuilder:VW}),fB({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var $W={};function GW(e){for(var{type:t,names:n,props:i,handler:r,htmlBuilder:o,mathmlBuilder:a}=e,s={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},c=0;c<n.length;++c)$W[n[c]]=s;o&&(dB[t]=o),a&&(hB[t]=a)}var KW={};function ZW(e,t){KW[e]=t}function XW(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var YW=e=>{if(!e.parser.settings.displayMode)throw new dE("{"+e.envName+"} can be used only in display mode.")};function JW(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function QW(e,t,n){var{hskipBeforeAndAfter:i,addJot:r,cols:o,arraystretch:a,colSeparationType:s,autoTag:c,singleRow:u,emptySingleRow:l,maxNumCols:d,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var f=e.gullet.expandMacroAsText("\\arraystretch");if(null==f)a=1;else if(!(a=parseFloat(f))||a<0)throw new dE("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var m=[],p=[m],g=[],b=[],v=null!=c?[]:void 0;function y(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){v&&(e.gullet.macros.get("\\df@tag")?(v.push(e.subparse([new lE("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):v.push(Boolean(c)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(y(),b.push(XW(e));;){var x=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},n&&(x={type:"styling",mode:e.mode,style:n,body:[x]}),m.push(x);var D=e.fetch().text;if("&"===D){if(d&&m.length===d){if(u||s)throw new dE("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===D){w(),1===m.length&&"styling"===x.type&&0===x.body[0].body.length&&(p.length>1||!l)&&p.pop(),b.length<p.length+1&&b.push([]);break}if("\\\\"!==D)throw new dE("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var U=void 0;" "!==e.gullet.future().text&&(U=e.parseSizeGroup(!0)),g.push(U?U.value:null),w(),b.push(XW(e)),m=[],p.push(m),y()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:r,arraystretch:a,body:p,cols:o,rowGaps:g,hskipBeforeAndAfter:i,hLinesBeforeRow:b,colSeparationType:s,tags:v,leqno:h}}function eI(e){return"d"===e.slice(0,1)?"display":"text"}var tI=function(e,t){var n,i,r=e.body.length,o=e.hLinesBeforeRow,a=0,s=new Array(r),c=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),l=1/t.fontMetrics().ptPerEm,d=5*l;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(SE.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var h="CD"===e.colSeparationType?GE({number:3,unit:"ex"},t):12*l,f=3*l,m=e.arraystretch*h,p=.7*m,g=.3*m,b=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(b+=.25),c.push({pos:b,isDashed:e[t]})}for(v(o[0]),n=0;n<e.body.length;++n){var y=e.body[n],w=p,x=g;a<y.length&&(a=y.length);var D=new Array(y.length);for(i=0;i<y.length;++i){var U=SB(y[i],t);x<U.depth&&(x=U.depth),w<U.height&&(w=U.height),D[i]=U}var T=e.rowGaps[n],k=0;T&&(k=GE(T,t))>0&&(x<(k+=g)&&(x=k),k=0),e.addJot&&(x+=f),D.height=w,D.depth=x,b+=w,D.pos=b,b+=x+k,s[n]=D,v(o[n+1])}var A,F,S=b/2+t.fontMetrics().axisHeight,E=e.cols||[],C=[],B=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<r;++n){var W=s[n],I=W.pos-S,M=e.tags[n],R=void 0;(R=!0===M?rB.makeSpan(["eqn-num"],[],t):!1===M?rB.makeSpan([],[],t):rB.makeSpan([],DB(M,t,!0),t)).depth=W.depth,R.height=W.height,B.push({type:"elem",elem:R,shift:I})}for(i=0,F=0;i<a||F<E.length;++i,++F){for(var z=E[F]||{},_=!0;"separator"===z.type;){if(_||((A=rB.makeSpan(["arraycolsep"],[])).style.width=KE(t.fontMetrics().doubleRuleSep),C.push(A)),"|"!==z.separator&&":"!==z.separator)throw new dE("Invalid separator type: "+z.separator);var O="|"===z.separator?"solid":"dashed",P=rB.makeSpan(["vertical-separator"],[],t);P.style.height=KE(b),P.style.borderRightWidth=KE(u),P.style.borderRightStyle=O,P.style.margin="0 "+KE(-u/2);var L=b-S;L&&(P.style.verticalAlign=KE(-L)),C.push(P),z=E[++F]||{},_=!1}if(!(i>=a)){var N=void 0;(i>0||e.hskipBeforeAndAfter)&&0!==(N=gE.deflt(z.pregap,d))&&((A=rB.makeSpan(["arraycolsep"],[])).style.width=KE(N),C.push(A));var q=[];for(n=0;n<r;++n){var j=s[n],H=j[i];if(H){var V=j.pos-S;H.depth=j.depth,H.height=j.height,q.push({type:"elem",elem:H,shift:V})}}q=rB.makeVList({positionType:"individualShift",children:q},t),q=rB.makeSpan(["col-align-"+(z.align||"c")],[q]),C.push(q),(i<a-1||e.hskipBeforeAndAfter)&&0!==(N=gE.deflt(z.postgap,d))&&((A=rB.makeSpan(["arraycolsep"],[])).style.width=KE(N),C.push(A))}}if(s=rB.makeSpan(["mtable"],C),c.length>0){for(var $=rB.makeLineSpan("hline",t,u),G=rB.makeLineSpan("hdashline",t,u),K=[{type:"elem",elem:s,shift:0}];c.length>0;){var Z=c.pop(),X=Z.pos-S;Z.isDashed?K.push({type:"elem",elem:G,shift:X}):K.push({type:"elem",elem:$,shift:X})}s=rB.makeVList({positionType:"individualShift",children:K},t)}if(0===B.length)return rB.makeSpan(["mord"],[s],t);var Y=rB.makeVList({positionType:"individualShift",children:B},t);return Y=rB.makeSpan(["tag"],[Y],t),rB.makeFragment([s,Y])},nI={c:"center ",l:"left ",r:"right "},iI=function(e,t){for(var n=[],i=new MB.MathNode("mtd",[],["mtr-glue"]),r=new MB.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var a=e.body[o],s=[],c=0;c<a.length;c++)s.push(new MB.MathNode("mtd",[NB(a[c],t)]));e.tags&&e.tags[o]&&(s.unshift(i),s.push(i),e.leqno?s.unshift(r):s.push(r)),n.push(new MB.MathNode("mtr",s))}var u=new MB.MathNode("mtable",n),l=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",KE(l));var d="",h="";if(e.cols&&e.cols.length>0){var f=e.cols,m="",p=!1,g=0,b=f.length;"separator"===f[0].type&&(d+="top ",g=1),"separator"===f[f.length-1].type&&(d+="bottom ",b-=1);for(var v=g;v<b;v++)"align"===f[v].type?(h+=nI[f[v].align],p&&(m+="none "),p=!0):"separator"===f[v].type&&p&&(m+="|"===f[v].separator?"solid ":"dashed ",p=!1);u.setAttribute("columnalign",h.trim()),/[sd]/.test(m)&&u.setAttribute("columnlines",m.trim())}if("align"===e.colSeparationType){for(var y=e.cols||[],w="",x=1;x<y.length;x++)w+=x%2?"0em ":"1em ";u.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?u.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?u.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var D="",U=e.hLinesBeforeRow;d+=U[0].length>0?"left ":"",d+=U[U.length-1].length>0?"right ":"";for(var T=1;T<U.length-1;T++)D+=0===U[T].length?"none ":U[T][0]?"dashed ":"solid ";return/[sd]/.test(D)&&u.setAttribute("rowlines",D.trim()),""!==d&&(u=new MB.MathNode("menclose",[u])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(u=new MB.MathNode("mstyle",[u])).setAttribute("scriptlevel","1"),u},rI=function(e,t){-1===e.envName.indexOf("ed")&&YW(e);var n,i=[],r=e.envName.indexOf("at")>-1?"alignat":"align",o="split"===e.envName,a=QW(e.parser,{cols:i,addJot:!0,autoTag:o?void 0:JW(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var u="",l=0;l<t[0].body.length;l++){u+=XB(t[0].body[l],"textord").text}n=Number(u),s=2*n}var d=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var i=XB(e[t],"styling");XB(i.body[0],"ordgroup").body.unshift(c)}if(d)s<e.length&&(s=e.length);else{var r=e.length/2;if(n<r)throw new dE("Too many math in a row: expected "+n+", but got "+r,e[0])}});for(var h=0;h<s;++h){var f="r",m=0;h%2==1?f="l":h>0&&d&&(m=1),i[h]={type:"align",align:f,pregap:m,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};GW({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(JB(t[0])?[t[0]]:XB(t[0],"ordgroup").body).map(function(e){var t=YB(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new dE("Unknown column alignment: "+t,e)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return QW(e.parser,i,eI(e.envName))},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var r=e.parser;if(r.consumeSpaces(),"["===r.fetch().text){if(r.consume(),r.consumeSpaces(),n=r.fetch().text,-1==="lcr".indexOf(n))throw new dE("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),i.cols=[{type:"align",align:n}]}}var o=QW(e.parser,i,eI(e.envName)),a=Math.max(0,...o.body.map(e=>e.length));return o.cols=new Array(a).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=QW(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(JB(t[0])?[t[0]]:XB(t[0],"ordgroup").body).map(function(e){var t=YB(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new dE("Unknown column alignment: "+t,e)});if(n.length>1)throw new dE("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=QW(e.parser,i,"script")).body.length>0&&i.body[0].length>1)throw new dE("{subarray} can contain only one column");return i},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=QW(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},eI(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:rI,htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&YW(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:JW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return QW(e.parser,t,"display")},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:rI,htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){YW(e);var t={autoTag:JW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return QW(e.parser,t,"display")},htmlBuilder:tI,mathmlBuilder:iI}),GW({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(YW(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new dE("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var i=[],r=[i],o=0;o<t.length;o++){for(var a=t[o],s=cW(),c=0;c<a.length;c++)if(uW(a[c])){i.push(s);var u=YB(a[c+=1]).text,l=new Array(2);if(l[0]={type:"ordgroup",mode:"math",body:[]},l[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(u)>-1);else{if(!("<>AV".indexOf(u)>-1))throw new dE('Expected one of "<>AV=|." after @',a[c]);for(var d=0;d<2;d++){for(var h=!0,f=c+1;f<a.length;f++){if(lW(a[f],u)){h=!1,c=f;break}if(uW(a[f]))throw new dE("Missing a "+u+" character to complete a CD arrow.",a[f]);l[d].body.push(a[f])}if(h)throw new dE("Missing a "+u+" character to complete a CD arrow.",a[c])}}var m={type:"styling",body:[dW(u,l,e)],mode:"math",style:"display"};i.push(m),s=cW()}else s.body.push(a[c]);o%2==0?i.push(s):i.shift(),i=[],r.push(i)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}(e.parser)),htmlBuilder:tI,mathmlBuilder:iI}),ZW("\\nonumber","\\gdef\\@eqnsw{0}"),ZW("\\notag","\\nonumber"),fB({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new dE(e.funcName+" valid only within array environment")}});var oI=$W;fB({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,r=t[0];if("ordgroup"!==r.type)throw new dE("Invalid environment name",r);for(var o="",a=0;a<r.body.length;++a)o+=XB(r.body[a],"textord").text;if("\\begin"===i){if(!oI.hasOwnProperty(o))throw new dE("No such environment: "+o,r);var s=oI[o],{args:c,optArgs:u}=n.parseArguments("\\begin{"+o+"}",s),l={mode:n.mode,envName:o,parser:n},d=s.handler(l,c,u);n.expect("\\end",!1);var h=n.nextToken,f=XB(n.parseFunction(),"environment");if(f.name!==o)throw new dE("Mismatch: \\begin{"+o+"} matched by \\end{"+f.name+"}",h);return d}return{type:"environment",mode:n.mode,name:o,nameGroup:r}}});var aI=(e,t)=>{var n=e.font,i=t.withFont(n);return SB(e.body,i)},sI=(e,t)=>{var n=e.font,i=t.withFont(n);return NB(e.body,i)},cI={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};fB({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=pB(t[0]),o=i;return o in cI&&(o=cI[o]),{type:"font",mode:n.mode,font:o.slice(1),body:r}},htmlBuilder:aI,mathmlBuilder:sI}),fB({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0],r=gE.isCharacterBox(i);return{type:"mclass",mode:n.mode,mclass:aW(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:r}}}),fB({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:r}=e,{mode:o}=n,a=n.parseExpression(!0,r);return{type:"font",mode:o,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:aI,mathmlBuilder:sI});var uI=(e,t)=>{var n=t;return"display"===e?n=n.id>=SE.SCRIPT.id?n.text():SE.DISPLAY:"text"===e&&n.size===SE.DISPLAY.size?n=SE.TEXT:"script"===e?n=SE.SCRIPT:"scriptscript"===e&&(n=SE.SCRIPTSCRIPT),n},lI=(e,t)=>{var n,i=uI(e.size,t.style),r=i.fracNum(),o=i.fracDen();n=t.havingStyle(r);var a=SB(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<c?c:a.depth}n=t.havingStyle(o);var u,l,d,h,f,m,p,g,b,v,y=SB(e.denom,n,t);if(e.hasBarLine?(e.barSize?(l=GE(e.barSize,t),u=rB.makeLineSpan("frac-line",t,l)):u=rB.makeLineSpan("frac-line",t),l=u.height,d=u.height):(u=null,l=0,d=t.fontMetrics().defaultRuleThickness),i.size===SE.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,f=l>0?3*d:7*d,m=t.fontMetrics().denom1):(l>0?(h=t.fontMetrics().num2,f=d):(h=t.fontMetrics().num3,f=3*d),m=t.fontMetrics().denom2),u){var w=t.fontMetrics().axisHeight;h-a.depth-(w+.5*l)<f&&(h+=f-(h-a.depth-(w+.5*l))),w-.5*l-(y.height-m)<f&&(m+=f-(w-.5*l-(y.height-m)));var x=-(w-.5*l);p=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:m},{type:"elem",elem:u,shift:x},{type:"elem",elem:a,shift:-h}]},t)}else{var D=h-a.depth-(y.height-m);D<f&&(h+=.5*(f-D),m+=.5*(f-D)),p=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:m},{type:"elem",elem:a,shift:-h}]},t)}return n=t.havingStyle(i),p.height*=n.sizeMultiplier/t.sizeMultiplier,p.depth*=n.sizeMultiplier/t.sizeMultiplier,g=i.size===SE.DISPLAY.size?t.fontMetrics().delim1:i.size===SE.SCRIPTSCRIPT.size?t.havingStyle(SE.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,b=null==e.leftDelim?FB(t,["mopen"]):PW.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(i),e.mode,["mopen"]),v=e.continued?rB.makeSpan([]):null==e.rightDelim?FB(t,["mclose"]):PW.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(i),e.mode,["mclose"]),rB.makeSpan(["mord"].concat(n.sizingClasses(t)),[b,rB.makeSpan(["mfrac"],[p]),v],t)},dI=(e,t)=>{var n=new MB.MathNode("mfrac",[NB(e.numer,t),NB(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var i=GE(e.barSize,t);n.setAttribute("linethickness",KE(i))}}else n.setAttribute("linethickness","0px");var r=uI(e.size,t.style);if(r.size!==t.style.size){n=new MB.MathNode("mstyle",[n]);var o=r.size===SE.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new MB.MathNode("mo",[new MB.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var c=new MB.MathNode("mo",[new MB.TextNode(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),a.push(c)}return zB(a)}return n};fB({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:i,funcName:r}=e,o=t[0],a=t[1],s=null,c=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",c=")";break;case"\\\\bracefrac":n=!1,s="\\{",c="\\}";break;case"\\\\brackfrac":n=!1,s="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:i.mode,continued:!1,numer:o,denom:a,hasBarLine:n,leftDelim:s,rightDelim:c,size:u,barSize:null}},htmlBuilder:lI,mathmlBuilder:dI}),fB({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:r,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),fB({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:i,token:r}=e;switch(i){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:r}}});var hI=["display","text","script","scriptscript"],fI=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};fB({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:i}=e,r=t[4],o=t[5],a=pB(t[0]),s="atom"===a.type&&"open"===a.family?fI(a.text):null,c=pB(t[1]),u="atom"===c.type&&"close"===c.family?fI(c.text):null,l=XB(t[2],"size"),d=null;n=!!l.isBlank||(d=l.value).number>0;var h="auto",f=t[3];if("ordgroup"===f.type){if(f.body.length>0){var m=XB(f.body[0],"textord");h=hI[Number(m.text)]}}else f=XB(f,"textord"),h=hI[Number(f.text)];return{type:"genfrac",mode:i.mode,numer:r,denom:o,continued:!1,hasBarLine:n,barSize:d,leftDelim:s,rightDelim:u,size:h}},htmlBuilder:lI,mathmlBuilder:dI}),fB({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:r}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:XB(t[0],"size").value,token:r}}}),fB({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=t[0],o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(XB(t[1],"infix").size),a=t[2],s=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:lI,mathmlBuilder:dI});var mI=(e,t)=>{var n,i,r=t.style;"supsub"===e.type?(n=e.sup?SB(e.sup,t.havingStyle(r.sup()),t):SB(e.sub,t.havingStyle(r.sub()),t),i=XB(e.base,"horizBrace")):i=XB(e,"horizBrace");var o,a=SB(i.base,t.havingBaseStyle(SE.DISPLAY)),s=ZB(i,t);if(i.isOver?(o=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(o=rB.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=rB.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);o=i.isOver?rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},t):rB.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return rB.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)};fB({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:mI,mathmlBuilder:(e,t)=>{var n=KB(e.label);return new MB.MathNode(e.isOver?"mover":"munder",[NB(e.base,t),n])}}),fB({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],r=XB(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:gB(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=DB(e.body,t,!1);return rB.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=LB(e.body,t);return n instanceof WB||(n=new WB("mrow",[n])),n.setAttribute("href",e.href),n}}),fB({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=XB(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var r=[],o=0;o<i.length;o++){var a=i[o];"~"===a&&(a="\\textasciitilde"),r.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:r};return{type:"href",mode:n.mode,href:i,body:gB(s)}}}),fB({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:gB(t[0])}},htmlBuilder(e,t){var n=DB(e.body,t,!1);return rB.makeFragment(n)},mathmlBuilder:(e,t)=>new MB.MathNode("mrow",PB(e.body,t))}),fB({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:i,funcName:r,token:o}=e,a=XB(t[0],"raw").string,s=t[1];i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c={};switch(r){case"\\htmlClass":c.class=a,n={command:"\\htmlClass",class:a};break;case"\\htmlId":c.id=a,n={command:"\\htmlId",id:a};break;case"\\htmlStyle":c.style=a,n={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var u=a.split(","),l=0;l<u.length;l++){var d=u[l],h=d.indexOf("=");if(h<0)throw new dE("\\htmlData key/value '"+d+"' missing equals sign");var f=d.slice(0,h),m=d.slice(h+1);c["data-"+f.trim()]=m}n={command:"\\htmlData",attributes:c};break;default:throw new Error("Unrecognized html command")}return i.settings.isTrusted(n)?{type:"html",mode:i.mode,attributes:c,body:gB(s)}:i.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=DB(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var r=rB.makeSpan(i,n,t);for(var o in e.attributes)"class"!==o&&e.attributes.hasOwnProperty(o)&&r.setAttribute(o,e.attributes[o]);return r},mathmlBuilder:(e,t)=>LB(e.body,t)}),fB({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:gB(t[0]),mathml:gB(t[1])}},htmlBuilder:(e,t)=>{var n=DB(e.html,t,!1);return rB.makeFragment(n)},mathmlBuilder:(e,t)=>LB(e.mathml,t)});var pI=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new dE("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!$E(n))throw new dE("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};fB({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,r={number:0,unit:"em"},o={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var c=XB(n[0],"raw").string.split(","),u=0;u<c.length;u++){var l=c[u].split("=");if(2===l.length){var d=l[1].trim();switch(l[0].trim()){case"alt":s=d;break;case"width":r=pI(d);break;case"height":o=pI(d);break;case"totalheight":a=pI(d);break;default:throw new dE("Invalid key: '"+l[0]+"' in \\includegraphics.")}}}var h=XB(t[0],"url").url;return""===s&&(s=(s=(s=h).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:i.mode,alt:s,width:r,height:o,totalheight:a,src:h}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=GE(e.height,t),i=0;e.totalheight.number>0&&(i=GE(e.totalheight,t)-n);var r=0;e.width.number>0&&(r=GE(e.width,t));var o={height:KE(n+i)};r>0&&(o.width=KE(r)),i>0&&(o.verticalAlign=KE(-i));var a=new nC(e.src,e.alt,o);return a.height=n,a.depth=i,a},mathmlBuilder:(e,t)=>{var n=new MB.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=GE(e.height,t),r=0;if(e.totalheight.number>0&&(r=GE(e.totalheight,t)-i,n.setAttribute("valign",KE(-r))),n.setAttribute("height",KE(i+r)),e.width.number>0){var o=GE(e.width,t);n.setAttribute("width",KE(o))}return n.setAttribute("src",e.src),n}}),fB({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,r=XB(t[0],"size");if(n.settings.strict){var o="m"===i[1],a="mu"===r.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:(e,t)=>rB.makeGlue(e.dimension,t),mathmlBuilder(e,t){var n=GE(e.dimension,t);return new MB.SpaceNode(n)}}),fB({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:r}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=rB.makeSpan([],[SB(e.body,t)]),n=rB.makeSpan(["inner"],[n],t)):n=rB.makeSpan(["inner"],[SB(e.body,t)]);var i=rB.makeSpan(["fix"],[]),r=rB.makeSpan([e.alignment],[n,i],t),o=rB.makeSpan(["strut"]);return o.style.height=KE(r.height+r.depth),r.depth&&(o.style.verticalAlign=KE(-r.depth)),r.children.unshift(o),r=rB.makeSpan(["thinbox"],[r],t),rB.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:(e,t)=>{var n=new MB.MathNode("mpadded",[NB(e.body,t)]);if("rlap"!==e.alignment){var i="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),fB({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,r=i.mode;i.switchMode("math");var o="\\("===n?"\\)":"$",a=i.parseExpression(!1,o);return i.expect(o),i.switchMode(r),{type:"styling",mode:i.mode,style:"text",body:a}}}),fB({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new dE("Mismatched "+e.funcName)}});var gI=(e,t)=>{switch(t.style.size){case SE.DISPLAY.size:return e.display;case SE.TEXT.size:return e.text;case SE.SCRIPT.size:return e.script;case SE.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};fB({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:gB(t[0]),text:gB(t[1]),script:gB(t[2]),scriptscript:gB(t[3])}},htmlBuilder:(e,t)=>{var n=gI(e,t),i=DB(n,t,!1);return rB.makeFragment(i)},mathmlBuilder:(e,t)=>{var n=gI(e,t);return LB(n,t)}});var bI=(e,t,n,i,r,o,a)=>{e=rB.makeSpan([],[e]);var s,c,u,l=n&&gE.isCharacterBox(n);if(t){var d=SB(t,i.havingStyle(r.sup()),i);c={elem:d,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var h=SB(n,i.havingStyle(r.sub()),i);s={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-h.height)}}if(c&&s){var f=i.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;u=rB.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:KE(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:KE(o)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(s){var m=e.height-a;u=rB.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:KE(-o)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},i)}else{if(!c)return e;var p=e.depth+a;u=rB.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:KE(o)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}var g=[u];if(s&&0!==o&&!l){var b=rB.makeSpan(["mspace"],[],i);b.style.marginRight=KE(o),g.unshift(b)}return rB.makeSpan(["mop","op-limits"],g,i)},vI=["\\smallint"],yI=(e,t)=>{var n,i,r,o=!1;"supsub"===e.type?(n=e.sup,i=e.sub,r=XB(e.base,"op"),o=!0):r=XB(e,"op");var a,s=t.style,c=!1;if(s.size===SE.DISPLAY.size&&r.symbol&&!vI.includes(r.name)&&(c=!0),r.symbol){var u=c?"Size2-Regular":"Size1-Regular",l="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(l=r.name.slice(1),r.name="oiint"===l?"\\iint":"\\iiint"),a=rB.makeSymbol(r.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),l.length>0){var d=a.italic,h=rB.staticSvg(l+"Size"+(c?"2":"1"),t);a=rB.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:h,shift:c?.08:0}]},t),r.name="\\"+l,a.classes.unshift("mop"),a.italic=d}}else if(r.body){var f=DB(r.body,t,!0);1===f.length&&f[0]instanceof rC?(a=f[0]).classes[0]="mop":a=rB.makeSpan(["mop"],f,t)}else{for(var m=[],p=1;p<r.name.length;p++)m.push(rB.mathsym(r.name[p],r.mode,t));a=rB.makeSpan(["mop"],m,t)}var g=0,b=0;return(a instanceof rC||"\\oiint"===r.name||"\\oiiint"===r.name)&&!r.suppressBaseShift&&(g=(a.height-a.depth)/2-t.fontMetrics().axisHeight,b=a.italic),o?bI(a,n,i,t,s,b,g):(g&&(a.style.position="relative",a.style.top=KE(g)),a)},wI=(e,t)=>{var n;if(e.symbol)n=new WB("mo",[RB(e.name,e.mode)]),vI.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new WB("mo",PB(e.body,t));else{n=new WB("mi",[new IB(e.name.slice(1))]);var i=new WB("mo",[RB("","text")]);n=e.parentIsSupSub?new WB("mrow",[n,i]):BB([n,i])}return n},xI={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};fB({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=i;return 1===r.length&&(r=xI[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yI,mathmlBuilder:wI}),fB({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:gB(i)}},htmlBuilder:yI,mathmlBuilder:wI});var DI={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};fB({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yI,mathmlBuilder:wI}),fB({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yI,mathmlBuilder:wI}),fB({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return 1===i.length&&(i=DI[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:yI,mathmlBuilder:wI});var UI=(e,t)=>{var n,i,r,o,a=!1;if("supsub"===e.type?(n=e.sup,i=e.sub,r=XB(e.base,"operatorname"),a=!0):r=XB(e,"operatorname"),r.body.length>0){for(var s=r.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),c=DB(s,t.withFont("mathrm"),!0),u=0;u<c.length;u++){var l=c[u];l instanceof rC&&(l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=rB.makeSpan(["mop"],c,t)}else o=rB.makeSpan(["mop"],[],t);return a?bI(o,n,i,t,t.style,0,0):o};function TI(e,t,n){for(var i=DB(e,t,!1),r=t.sizeMultiplier/n.sizeMultiplier,o=0;o<i.length;o++){var a=i[o].classes.indexOf("sizing");a<0?Array.prototype.push.apply(i[o].classes,t.sizingClasses(n)):i[o].classes[a+1]==="reset-size"+t.size&&(i[o].classes[a+1]="reset-size"+n.size),i[o].height*=r,i[o].depth*=r}return rB.makeFragment(i)}fB({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,r=t[0];return{type:"operatorname",mode:n.mode,body:gB(r),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:UI,mathmlBuilder:(e,t)=>{for(var n=PB(e.body,t.withFont("mathrm")),i=!0,r=0;r<n.length;r++){var o=n[r];if(o instanceof MB.SpaceNode);else if(o instanceof MB.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=o.children[0];1===o.children.length&&a instanceof MB.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break;default:i=!1}else i=!1}if(i){var s=n.map(e=>e.toText()).join("");n=[new MB.TextNode(s)]}var c=new MB.MathNode("mi",n);c.setAttribute("mathvariant","normal");var u=new MB.MathNode("mo",[RB("","text")]);return e.parentIsSupSub?new MB.MathNode("mrow",[c,u]):MB.newDocumentFragment([c,u])}}),ZW("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),mB({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?rB.makeFragment(DB(e.body,t,!1)):rB.makeSpan(["mord"],DB(e.body,t,!0),t),mathmlBuilder:(e,t)=>LB(e.body,t,!0)}),fB({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=SB(e.body,t.havingCrampedStyle()),i=rB.makeLineSpan("overline-line",t),r=t.fontMetrics().defaultRuleThickness,o=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:i},{type:"kern",size:r}]},t);return rB.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new MB.MathNode("mo",[new MB.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new MB.MathNode("mover",[NB(e.body,t),n]);return i.setAttribute("accent","true"),i}}),fB({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:gB(i)}},htmlBuilder:(e,t)=>{var n=DB(e.body,t.withPhantom(),!1);return rB.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=PB(e.body,t);return new MB.MathNode("mphantom",n)}}),fB({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"hphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=rB.makeSpan([],[SB(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var i=0;i<n.children.length;i++)n.children[i].height=0,n.children[i].depth=0;return n=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),rB.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=PB(gB(e.body),t),i=new MB.MathNode("mphantom",n),r=new MB.MathNode("mpadded",[i]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}}),fB({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=rB.makeSpan(["inner"],[SB(e.body,t.withPhantom())]),i=rB.makeSpan(["fix"],[]);return rB.makeSpan(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=PB(gB(e.body),t),i=new MB.MathNode("mphantom",n),r=new MB.MathNode("mpadded",[i]);return r.setAttribute("width","0px"),r}}),fB({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=XB(t[0],"size").value,r=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:r}},htmlBuilder(e,t){var n=SB(e.body,t),i=GE(e.dy,t);return rB.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new MB.MathNode("mpadded",[NB(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),fB({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),fB({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,r=n[0],o=XB(t[0],"size"),a=XB(t[1],"size");return{type:"rule",mode:i.mode,shift:r&&XB(r,"size").value,width:o.value,height:a.value}},htmlBuilder(e,t){var n=rB.makeSpan(["mord","rule"],[],t),i=GE(e.width,t),r=GE(e.height,t),o=e.shift?GE(e.shift,t):0;return n.style.borderRightWidth=KE(i),n.style.borderTopWidth=KE(r),n.style.bottom=KE(o),n.width=i,n.height=r+o,n.depth=-o,n.maxFontSize=1.125*r*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=GE(e.width,t),i=GE(e.height,t),r=e.shift?GE(e.shift,t):0,o=t.color&&t.getColor()||"black",a=new MB.MathNode("mspace");a.setAttribute("mathbackground",o),a.setAttribute("width",KE(n)),a.setAttribute("height",KE(i));var s=new MB.MathNode("mpadded",[a]);return r>=0?s.setAttribute("height",KE(r)):(s.setAttribute("height",KE(r)),s.setAttribute("depth",KE(-r))),s.setAttribute("voffset",KE(r)),s}});var kI=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];fB({type:"sizing",names:kI,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:r}=e,o=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:kI.indexOf(i)+1,body:o}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return TI(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=PB(e.body,n),r=new MB.MathNode("mstyle",i);return r.setAttribute("mathsize",KE(n.sizeMultiplier)),r}}),fB({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,r=!1,o=!1,a=n[0]&&XB(n[0],"ordgroup");if(a)for(var s="",c=0;c<a.body.length;++c){if("t"===(s=a.body[c].text))r=!0;else{if("b"!==s){r=!1,o=!1;break}o=!0}}else r=!0,o=!0;var u=t[0];return{type:"smash",mode:i.mode,body:u,smashHeight:r,smashDepth:o}},htmlBuilder:(e,t)=>{var n=rB.makeSpan([],[SB(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].depth=0;var o=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return rB.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new MB.MathNode("mpadded",[NB(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),fB({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,r=n[0],o=t[0];return{type:"sqrt",mode:i.mode,body:o,index:r}},htmlBuilder(e,t){var n=SB(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=rB.wrapFragment(n,t);var i=t.fontMetrics().defaultRuleThickness,r=i;t.style.id<SE.TEXT.id&&(r=t.fontMetrics().xHeight);var o=i+r/4,a=n.height+n.depth+o+i,{span:s,ruleWidth:c,advanceWidth:u}=PW.sqrtImage(a,t),l=s.height-c;l>n.height+n.depth+o&&(o=(o+l-n.height-n.depth)/2);var d=s.height-n.height-o-c;n.style.paddingLeft=KE(u);var h=rB.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:s},{type:"kern",size:c}]},t);if(e.index){var f=t.havingStyle(SE.SCRIPTSCRIPT),m=SB(e.index,f,t),p=.6*(h.height-h.depth),g=rB.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:m}]},t),b=rB.makeSpan(["root"],[g]);return rB.makeSpan(["mord","sqrt"],[b,h],t)}return rB.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new MB.MathNode("mroot",[NB(n,t),NB(i,t)]):new MB.MathNode("msqrt",[NB(n,t)])}});var AI={display:SE.DISPLAY,text:SE.TEXT,script:SE.SCRIPT,scriptscript:SE.SCRIPTSCRIPT};fB({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:r}=e,o=r.parseExpression(!0,n),a=i.slice(1,i.length-5);return{type:"styling",mode:r.mode,style:a,body:o}},htmlBuilder(e,t){var n=AI[e.style],i=t.havingStyle(n).withFont("");return TI(e.body,i,t)},mathmlBuilder(e,t){var n=AI[e.style],i=t.havingStyle(n),r=PB(e.body,i),o=new MB.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",a[0]),o.setAttribute("displaystyle",a[1]),o}});mB({type:"supsub",htmlBuilder(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===SE.DISPLAY.size||n.alwaysHandleSupSub)?yI:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===SE.DISPLAY.size||n.limits)?UI:null:"accent"===n.type?gE.isCharacterBox(n.base)?QB:null:"horizBrace"===n.type&&!e.sub===n.isOver?mI:null:null}(e,t);if(n)return n(e,t);var i,r,o,{base:a,sup:s,sub:c}=e,u=SB(a,t),l=t.fontMetrics(),d=0,h=0,f=a&&gE.isCharacterBox(a);if(s){var m=t.havingStyle(t.style.sup());i=SB(s,m,t),f||(d=u.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(c){var p=t.havingStyle(t.style.sub());r=SB(c,p,t),f||(h=u.depth+p.fontMetrics().subDrop*p.sizeMultiplier/t.sizeMultiplier)}o=t.style===SE.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2;var g,b=t.sizeMultiplier,v=KE(.5/l.ptPerEm/b),y=null;if(r){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof rC||w)&&(y=KE(-u.italic))}if(i&&r){d=Math.max(d,o,i.depth+.25*l.xHeight),h=Math.max(h,l.sub2);var x=4*l.defaultRuleThickness;if(d-i.depth-(r.height-h)<x){h=x-(d-i.depth)+r.height;var D=.8*l.xHeight-(d-i.depth);D>0&&(d+=D,h-=D)}var U=[{type:"elem",elem:r,shift:h,marginRight:v,marginLeft:y},{type:"elem",elem:i,shift:-d,marginRight:v}];g=rB.makeVList({positionType:"individualShift",children:U},t)}else if(r){h=Math.max(h,l.sub1,r.height-.8*l.xHeight);var T=[{type:"elem",elem:r,marginLeft:y,marginRight:v}];g=rB.makeVList({positionType:"shift",positionData:h,children:T},t)}else{if(!i)throw new Error("supsub must have either sup or sub.");d=Math.max(d,o,i.depth+.25*l.xHeight),g=rB.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:i,marginRight:v}]},t)}var k=AB(u,"right")||"mord";return rB.makeSpan([k],[u,rB.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var n,i=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(i=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var r,o=[NB(e.base,t)];if(e.sub&&o.push(NB(e.sub,t)),e.sup&&o.push(NB(e.sup,t)),i)r=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;r=a&&"op"===a.type&&a.limits&&t.style===SE.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===SE.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;r=s&&"op"===s.type&&s.limits&&(t.style===SE.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===SE.DISPLAY)?"munder":"msub"}else{var c=e.base;r=c&&"op"===c.type&&c.limits&&(t.style===SE.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===SE.DISPLAY)?"mover":"msup"}return new MB.MathNode(r,o)}}),mB({type:"atom",htmlBuilder:(e,t)=>rB.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new MB.MathNode("mo",[RB(e.text,e.mode)]);if("bin"===e.family){var i=_B(e,t);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var FI={mi:"italic",mn:"normal",mtext:"normal"};mB({type:"mathord",htmlBuilder:(e,t)=>rB.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var n=new MB.MathNode("mi",[RB(e.text,e.mode,t)]),i=_B(e,t)||"italic";return i!==FI[n.type]&&n.setAttribute("mathvariant",i),n}}),mB({type:"textord",htmlBuilder:(e,t)=>rB.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var n,i=RB(e.text,e.mode,t),r=_B(e,t)||"normal";return n="text"===e.mode?new MB.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new MB.MathNode("mn",[i]):"\\prime"===e.text?new MB.MathNode("mo",[i]):new MB.MathNode("mi",[i]),r!==FI[n.type]&&n.setAttribute("mathvariant",r),n}});var SI={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},EI={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};mB({type:"spacing",htmlBuilder(e,t){if(EI.hasOwnProperty(e.text)){var n=EI[e.text].className||"";if("text"===e.mode){var i=rB.makeOrd(e,t,"textord");return i.classes.push(n),i}return rB.makeSpan(["mspace",n],[rB.mathsym(e.text,e.mode,t)],t)}if(SI.hasOwnProperty(e.text))return rB.makeSpan(["mspace",SI[e.text]],[],t);throw new dE('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!EI.hasOwnProperty(e.text)){if(SI.hasOwnProperty(e.text))return new MB.MathNode("mspace");throw new dE('Unknown type of space "'+e.text+'"')}return new MB.MathNode("mtext",[new MB.TextNode(" ")])}});var CI=()=>{var e=new MB.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};mB({type:"tag",mathmlBuilder(e,t){var n=new MB.MathNode("mtable",[new MB.MathNode("mtr",[CI(),new MB.MathNode("mtd",[LB(e.body,t)]),CI(),new MB.MathNode("mtd",[LB(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var BI={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},WI={"\\textbf":"textbf","\\textmd":"textmd"},II={"\\textit":"textit","\\textup":"textup"},MI=(e,t)=>{var n=e.font;return n?BI[n]?t.withTextFontFamily(BI[n]):WI[n]?t.withTextFontWeight(WI[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(II[n]):t};fB({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,r=t[0];return{type:"text",mode:n.mode,body:gB(r),font:i}},htmlBuilder(e,t){var n=MI(e,t),i=DB(e.body,n,!0);return rB.makeSpan(["mord","text"],i,n)},mathmlBuilder(e,t){var n=MI(e,t);return LB(e.body,n)}}),fB({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=SB(e.body,t),i=rB.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,o=rB.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:i},{type:"kern",size:3*r},{type:"elem",elem:n}]},t);return rB.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new MB.MathNode("mo",[new MB.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new MB.MathNode("munder",[NB(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),fB({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=SB(e.body,t),i=t.fontMetrics().axisHeight,r=.5*(n.height-i-(n.depth+i));return rB.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new MB.MathNode("mpadded",[NB(e.body,t)],["vcenter"])}),fB({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new dE("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=RI(e),i=[],r=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var a=n[o];"~"===a&&(a="\\textasciitilde"),i.push(rB.makeSymbol(a,"Typewriter-Regular",e.mode,r,["mord","texttt"]))}return rB.makeSpan(["mord","text"].concat(r.sizingClasses(t)),rB.tryCombineChars(i),r)},mathmlBuilder(e,t){var n=new MB.TextNode(RI(e)),i=new MB.MathNode("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var RI=e=>e.body.replace(/ /g,e.star?"␣":" "),zI=lB,_I="[ \r\n\t]",OI="(\\\\[a-zA-Z@]+)"+_I+"*",PI="[̀-ͯ]",LI=new RegExp(PI+"+$"),NI="("+_I+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+PI+"*|[\ud800-\udbff][\udc00-\udfff]"+PI+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+OI+"|\\\\[^\ud800-\udfff])";class qI{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(NI,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new lE("EOF",new uE(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new dE("Unexpected character: '"+e[t]+"'",new lE(e[t],new uE(this,t,t+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[i]){var r=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===r?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=r+1,this.lex()}return new lE(i,new uE(this,t,this.tokenRegex.lastIndex))}}class jI{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new dE("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(e)&&(r[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var HI=KW;ZW("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),ZW("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),ZW("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),ZW("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),ZW("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),ZW("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ZW("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var VI={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ZW("\\char",function(e){var t,n=e.popToken(),i="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new dE("\\char` missing argument");i=n.text.charCodeAt(0)}else t=10;if(t){if(null==(i=VI[n.text])||i>=t)throw new dE("Invalid base-"+t+" digit "+n.text);for(var r;null!=(r=VI[e.future().text])&&r<t;)i*=t,i+=r,e.popToken()}return"\\@char{"+i+"}"});var $I=(e,t,n,i)=>{var r=e.consumeArg().tokens;if(1!==r.length)throw new dE("\\newcommand's first argument must be a macro name");var o=r[0].text,a=e.isDefined(o);if(a&&!t)throw new dE("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!a&&!n)throw new dE("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(1===(r=e.consumeArg().tokens).length&&"["===r[0].text){for(var c="",u=e.expandNextToken();"]"!==u.text&&"EOF"!==u.text;)c+=u.text,u=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new dE("Invalid number of arguments: "+c);s=parseInt(c),r=e.consumeArg().tokens}return a&&i||e.macros.set(o,{tokens:r,numArgs:s}),""};ZW("\\newcommand",e=>$I(e,!1,!0,!1)),ZW("\\renewcommand",e=>$I(e,!0,!1,!1)),ZW("\\providecommand",e=>$I(e,!0,!0,!0)),ZW("\\message",e=>{e.consumeArgs(1)[0];return""}),ZW("\\errmessage",e=>{e.consumeArgs(1)[0];return""}),ZW("\\show",e=>{e.popToken().text;return""}),ZW("\\bgroup","{"),ZW("\\egroup","}"),ZW("~","\\nobreakspace"),ZW("\\lq","`"),ZW("\\rq","'"),ZW("\\aa","\\r a"),ZW("\\AA","\\r A"),ZW("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),ZW("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),ZW("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),ZW("ℬ","\\mathscr{B}"),ZW("ℰ","\\mathscr{E}"),ZW("ℱ","\\mathscr{F}"),ZW("ℋ","\\mathscr{H}"),ZW("ℐ","\\mathscr{I}"),ZW("ℒ","\\mathscr{L}"),ZW("ℳ","\\mathscr{M}"),ZW("ℛ","\\mathscr{R}"),ZW("ℭ","\\mathfrak{C}"),ZW("ℌ","\\mathfrak{H}"),ZW("ℨ","\\mathfrak{Z}"),ZW("\\Bbbk","\\Bbb{k}"),ZW("·","\\cdotp"),ZW("\\llap","\\mathllap{\\textrm{#1}}"),ZW("\\rlap","\\mathrlap{\\textrm{#1}}"),ZW("\\clap","\\mathclap{\\textrm{#1}}"),ZW("\\mathstrut","\\vphantom{(}"),ZW("\\underbar","\\underline{\\text{#1}}"),ZW("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),ZW("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),ZW("\\ne","\\neq"),ZW("≠","\\neq"),ZW("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),ZW("∉","\\notin"),ZW("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),ZW("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),ZW("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),ZW("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),ZW("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),ZW("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),ZW("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),ZW("⟂","\\perp"),ZW("‼","\\mathclose{!\\mkern-0.8mu!}"),ZW("∌","\\notni"),ZW("⌜","\\ulcorner"),ZW("⌝","\\urcorner"),ZW("⌞","\\llcorner"),ZW("⌟","\\lrcorner"),ZW("©","\\copyright"),ZW("®","\\textregistered"),ZW("️","\\textregistered"),ZW("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),ZW("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),ZW("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),ZW("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),ZW("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),ZW("⋮","\\vdots"),ZW("\\varGamma","\\mathit{\\Gamma}"),ZW("\\varDelta","\\mathit{\\Delta}"),ZW("\\varTheta","\\mathit{\\Theta}"),ZW("\\varLambda","\\mathit{\\Lambda}"),ZW("\\varXi","\\mathit{\\Xi}"),ZW("\\varPi","\\mathit{\\Pi}"),ZW("\\varSigma","\\mathit{\\Sigma}"),ZW("\\varUpsilon","\\mathit{\\Upsilon}"),ZW("\\varPhi","\\mathit{\\Phi}"),ZW("\\varPsi","\\mathit{\\Psi}"),ZW("\\varOmega","\\mathit{\\Omega}"),ZW("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),ZW("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),ZW("\\boxed","\\fbox{$\\displaystyle{#1}$}"),ZW("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),ZW("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),ZW("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),ZW("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),ZW("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var GI={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ZW("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in GI?t=GI[n]:("\\not"===n.slice(0,4)||n in dC.math&&["bin","rel"].includes(dC.math[n].group))&&(t="\\dotsb"),t});var KI={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ZW("\\dotso",function(e){return e.future().text in KI?"\\ldots\\,":"\\ldots"}),ZW("\\dotsc",function(e){var t=e.future().text;return t in KI&&","!==t?"\\ldots\\,":"\\ldots"}),ZW("\\cdots",function(e){return e.future().text in KI?"\\@cdots\\,":"\\@cdots"}),ZW("\\dotsb","\\cdots"),ZW("\\dotsm","\\cdots"),ZW("\\dotsi","\\!\\cdots"),ZW("\\dotsx","\\ldots\\,"),ZW("\\DOTSI","\\relax"),ZW("\\DOTSB","\\relax"),ZW("\\DOTSX","\\relax"),ZW("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ZW("\\,","\\tmspace+{3mu}{.1667em}"),ZW("\\thinspace","\\,"),ZW("\\>","\\mskip{4mu}"),ZW("\\:","\\tmspace+{4mu}{.2222em}"),ZW("\\medspace","\\:"),ZW("\\;","\\tmspace+{5mu}{.2777em}"),ZW("\\thickspace","\\;"),ZW("\\!","\\tmspace-{3mu}{.1667em}"),ZW("\\negthinspace","\\!"),ZW("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ZW("\\negthickspace","\\tmspace-{5mu}{.277em}"),ZW("\\enspace","\\kern.5em "),ZW("\\enskip","\\hskip.5em\\relax"),ZW("\\quad","\\hskip1em\\relax"),ZW("\\qquad","\\hskip2em\\relax"),ZW("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ZW("\\tag@paren","\\tag@literal{({#1})}"),ZW("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new dE("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ZW("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ZW("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ZW("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ZW("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ZW("\\newline","\\\\\\relax"),ZW("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ZI=KE(RE["Main-Regular"]["T".charCodeAt(0)][1]-.7*RE["Main-Regular"]["A".charCodeAt(0)][1]);ZW("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ZI+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),ZW("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ZI+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),ZW("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ZW("\\@hspace","\\hskip #1\\relax"),ZW("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ZW("\\ordinarycolon",":"),ZW("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ZW("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ZW("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ZW("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ZW("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ZW("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ZW("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ZW("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ZW("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ZW("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ZW("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ZW("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ZW("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ZW("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ZW("∷","\\dblcolon"),ZW("∹","\\eqcolon"),ZW("≔","\\coloneqq"),ZW("≕","\\eqqcolon"),ZW("⩴","\\Coloneqq"),ZW("\\ratio","\\vcentcolon"),ZW("\\coloncolon","\\dblcolon"),ZW("\\colonequals","\\coloneqq"),ZW("\\coloncolonequals","\\Coloneqq"),ZW("\\equalscolon","\\eqqcolon"),ZW("\\equalscoloncolon","\\Eqqcolon"),ZW("\\colonminus","\\coloneq"),ZW("\\coloncolonminus","\\Coloneq"),ZW("\\minuscolon","\\eqcolon"),ZW("\\minuscoloncolon","\\Eqcolon"),ZW("\\coloncolonapprox","\\Colonapprox"),ZW("\\coloncolonsim","\\Colonsim"),ZW("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ZW("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ZW("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ZW("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ZW("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),ZW("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ZW("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ZW("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ZW("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ZW("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),ZW("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),ZW("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),ZW("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),ZW("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),ZW("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),ZW("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),ZW("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),ZW("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),ZW("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),ZW("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),ZW("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),ZW("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),ZW("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),ZW("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),ZW("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),ZW("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),ZW("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),ZW("\\imath","\\html@mathml{\\@imath}{ı}"),ZW("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),ZW("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),ZW("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),ZW("⟦","\\llbracket"),ZW("⟧","\\rrbracket"),ZW("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),ZW("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),ZW("⦃","\\lBrace"),ZW("⦄","\\rBrace"),ZW("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),ZW("⦵","\\minuso"),ZW("\\darr","\\downarrow"),ZW("\\dArr","\\Downarrow"),ZW("\\Darr","\\Downarrow"),ZW("\\lang","\\langle"),ZW("\\rang","\\rangle"),ZW("\\uarr","\\uparrow"),ZW("\\uArr","\\Uparrow"),ZW("\\Uarr","\\Uparrow"),ZW("\\N","\\mathbb{N}"),ZW("\\R","\\mathbb{R}"),ZW("\\Z","\\mathbb{Z}"),ZW("\\alef","\\aleph"),ZW("\\alefsym","\\aleph"),ZW("\\Alpha","\\mathrm{A}"),ZW("\\Beta","\\mathrm{B}"),ZW("\\bull","\\bullet"),ZW("\\Chi","\\mathrm{X}"),ZW("\\clubs","\\clubsuit"),ZW("\\cnums","\\mathbb{C}"),ZW("\\Complex","\\mathbb{C}"),ZW("\\Dagger","\\ddagger"),ZW("\\diamonds","\\diamondsuit"),ZW("\\empty","\\emptyset"),ZW("\\Epsilon","\\mathrm{E}"),ZW("\\Eta","\\mathrm{H}"),ZW("\\exist","\\exists"),ZW("\\harr","\\leftrightarrow"),ZW("\\hArr","\\Leftrightarrow"),ZW("\\Harr","\\Leftrightarrow"),ZW("\\hearts","\\heartsuit"),ZW("\\image","\\Im"),ZW("\\infin","\\infty"),ZW("\\Iota","\\mathrm{I}"),ZW("\\isin","\\in"),ZW("\\Kappa","\\mathrm{K}"),ZW("\\larr","\\leftarrow"),ZW("\\lArr","\\Leftarrow"),ZW("\\Larr","\\Leftarrow"),ZW("\\lrarr","\\leftrightarrow"),ZW("\\lrArr","\\Leftrightarrow"),ZW("\\Lrarr","\\Leftrightarrow"),ZW("\\Mu","\\mathrm{M}"),ZW("\\natnums","\\mathbb{N}"),ZW("\\Nu","\\mathrm{N}"),ZW("\\Omicron","\\mathrm{O}"),ZW("\\plusmn","\\pm"),ZW("\\rarr","\\rightarrow"),ZW("\\rArr","\\Rightarrow"),ZW("\\Rarr","\\Rightarrow"),ZW("\\real","\\Re"),ZW("\\reals","\\mathbb{R}"),ZW("\\Reals","\\mathbb{R}"),ZW("\\Rho","\\mathrm{P}"),ZW("\\sdot","\\cdot"),ZW("\\sect","\\S"),ZW("\\spades","\\spadesuit"),ZW("\\sub","\\subset"),ZW("\\sube","\\subseteq"),ZW("\\supe","\\supseteq"),ZW("\\Tau","\\mathrm{T}"),ZW("\\thetasym","\\vartheta"),ZW("\\weierp","\\wp"),ZW("\\Zeta","\\mathrm{Z}"),ZW("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ZW("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ZW("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ZW("\\bra","\\mathinner{\\langle{#1}|}"),ZW("\\ket","\\mathinner{|{#1}\\rangle}"),ZW("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ZW("\\Bra","\\left\\langle#1\\right|"),ZW("\\Ket","\\left|#1\\right\\rangle");var XI=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,r=t.consumeArg().tokens,o=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set("|",a),r.length&&n.macros.set("\\|",s));var o=t;!t&&r.length&&("|"===n.future().text&&(n.popToken(),o=!0));return{tokens:o?r:i,numArgs:0}};t.macros.set("|",c(!1)),r.length&&t.macros.set("\\|",c(!0));var u=t.consumeArg().tokens,l=t.expandTokens([...o,...u,...n]);return t.macros.endGroup(),{tokens:l.reverse(),numArgs:0}};ZW("\\bra@ket",XI(!1)),ZW("\\bra@set",XI(!0)),ZW("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),ZW("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),ZW("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),ZW("\\angln","{\\angl n}"),ZW("\\blue","\\textcolor{##6495ed}{#1}"),ZW("\\orange","\\textcolor{##ffa500}{#1}"),ZW("\\pink","\\textcolor{##ff00af}{#1}"),ZW("\\red","\\textcolor{##df0030}{#1}"),ZW("\\green","\\textcolor{##28ae7b}{#1}"),ZW("\\gray","\\textcolor{gray}{#1}"),ZW("\\purple","\\textcolor{##9d38bd}{#1}"),ZW("\\blueA","\\textcolor{##ccfaff}{#1}"),ZW("\\blueB","\\textcolor{##80f6ff}{#1}"),ZW("\\blueC","\\textcolor{##63d9ea}{#1}"),ZW("\\blueD","\\textcolor{##11accd}{#1}"),ZW("\\blueE","\\textcolor{##0c7f99}{#1}"),ZW("\\tealA","\\textcolor{##94fff5}{#1}"),ZW("\\tealB","\\textcolor{##26edd5}{#1}"),ZW("\\tealC","\\textcolor{##01d1c1}{#1}"),ZW("\\tealD","\\textcolor{##01a995}{#1}"),ZW("\\tealE","\\textcolor{##208170}{#1}"),ZW("\\greenA","\\textcolor{##b6ffb0}{#1}"),ZW("\\greenB","\\textcolor{##8af281}{#1}"),ZW("\\greenC","\\textcolor{##74cf70}{#1}"),ZW("\\greenD","\\textcolor{##1fab54}{#1}"),ZW("\\greenE","\\textcolor{##0d923f}{#1}"),ZW("\\goldA","\\textcolor{##ffd0a9}{#1}"),ZW("\\goldB","\\textcolor{##ffbb71}{#1}"),ZW("\\goldC","\\textcolor{##ff9c39}{#1}"),ZW("\\goldD","\\textcolor{##e07d10}{#1}"),ZW("\\goldE","\\textcolor{##a75a05}{#1}"),ZW("\\redA","\\textcolor{##fca9a9}{#1}"),ZW("\\redB","\\textcolor{##ff8482}{#1}"),ZW("\\redC","\\textcolor{##f9685d}{#1}"),ZW("\\redD","\\textcolor{##e84d39}{#1}"),ZW("\\redE","\\textcolor{##bc2612}{#1}"),ZW("\\maroonA","\\textcolor{##ffbde0}{#1}"),ZW("\\maroonB","\\textcolor{##ff92c6}{#1}"),ZW("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ZW("\\maroonD","\\textcolor{##ca337c}{#1}"),ZW("\\maroonE","\\textcolor{##9e034e}{#1}"),ZW("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ZW("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ZW("\\purpleC","\\textcolor{##aa87ff}{#1}"),ZW("\\purpleD","\\textcolor{##7854ab}{#1}"),ZW("\\purpleE","\\textcolor{##543b78}{#1}"),ZW("\\mintA","\\textcolor{##f5f9e8}{#1}"),ZW("\\mintB","\\textcolor{##edf2df}{#1}"),ZW("\\mintC","\\textcolor{##e0e5cc}{#1}"),ZW("\\grayA","\\textcolor{##f6f7f7}{#1}"),ZW("\\grayB","\\textcolor{##f0f1f2}{#1}"),ZW("\\grayC","\\textcolor{##e3e5e6}{#1}"),ZW("\\grayD","\\textcolor{##d6d8da}{#1}"),ZW("\\grayE","\\textcolor{##babec2}{#1}"),ZW("\\grayF","\\textcolor{##888d93}{#1}"),ZW("\\grayG","\\textcolor{##626569}{#1}"),ZW("\\grayH","\\textcolor{##3b3e40}{#1}"),ZW("\\grayI","\\textcolor{##21242c}{#1}"),ZW("\\kaBlue","\\textcolor{##314453}{#1}"),ZW("\\kaGreen","\\textcolor{##71B307}{#1}");var YI={"^":!0,T:!0,"\\limits":!0,"\\nolimits":!0};class JI{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new jI(HI,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new qI(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,i;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:i,end:n}=this.consumeArg(["]"]))}else({tokens:i,start:t,end:n}=this.consumeArg());return this.pushToken(new lE("EOF",n.loc)),this.pushTokens(i),new lE("",uE.range(t,n))}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var i,r=this.future(),o=0,a=0;do{if(i=this.popToken(),t.push(i),"{"===i.text)++o;else if("}"===i.text){if(-1===--o)throw new dE("Extra }",i)}else if("EOF"===i.text)throw new dE("Unexpected end of input in a macro argument, expected '"+(e&&n?e[a]:"}")+"'",i);if(e&&n)if((0===o||1===o&&"{"===e[a])&&i.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==o||n);return"{"===r.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new dE("The length of delimiters doesn't match the number of args!");for(var n=t[0],i=0;i<n.length;i++){var r=this.popToken();if(n[i]!==r.text)throw new dE("Use of the macro doesn't match its definition",r)}}for(var o=[],a=0;a<e;a++)o.push(this.consumeArg(t&&t[a+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new dE("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,i=t.noexpand?null:this.No(n);if(null==i||e&&i.unexpandable){if(e&&null==i&&"\\"===n[0]&&!this.isDefined(n))throw new dE("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var r=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs)for(var a=(r=r.slice()).length-1;a>=0;--a){var s=r[a];if("#"===s.text){if(0===a)throw new dE("Incomplete placeholder at end of macro body",s);if("#"===(s=r[--a]).text)r.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new dE("Not a valid argument number",s);r.splice(a,2,...o[+s.text-1])}}}return this.pushTokens(r),r.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new lE(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),t.push(i)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}No(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var i="function"==typeof t?t(this):t;if("string"==typeof i){var r=0;if(-1!==i.indexOf("#"))for(var o=i.replace(/##/g,"");-1!==o.indexOf("#"+(r+1));)++r;for(var a=new qI(i,this.settings),s=[],c=a.lex();"EOF"!==c.text;)s.push(c),c=a.lex();return s.reverse(),{tokens:s,numArgs:r}}return i}isDefined(e){return this.macros.has(e)||zI.hasOwnProperty(e)||dC.math.hasOwnProperty(e)||dC.text.hasOwnProperty(e)||YI.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:zI.hasOwnProperty(e)&&!zI[e].primitive}}var QI=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,eM=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),tM={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},nM={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class iM{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new JI(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new dE("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new lE("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==iM.endOfExpression.indexOf(i.text))break;if(t&&i.text===t)break;if(e&&zI[i.text]&&zI[i.text].infix)break;var r=this.parseAtom(t);if(!r)break;"internal"!==r.type&&n.push(r)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t,n=-1,i=0;i<e.length;i++)if("infix"===e[i].type){if(-1!==n)throw new dE("only one infix operator per group",e[i].token);n=i,t=e[i].replaceWith}if(-1!==n&&t){var r,o,a=e.slice(0,n),s=e.slice(n+1);return r=1===a.length&&"ordgroup"===a[0].type?a[0]:{type:"ordgroup",mode:this.mode,body:a},o=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[r,e[n],o],[]):this.callFunction(t,[r,o],[])]}return e}handleSupSubscript(e){var t,n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();do{var r;t=this.parseGroup(e)}while("internal"===(null==(r=t)?void 0:r.type));if(!t)throw new dE("Expected group after '"+i+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var i={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]}}parseAtom(e){var t,n,i=this.parseGroup("atom",e);if("internal"===(null==i?void 0:i.type))return i;if("text"===this.mode)return i;for(;;){this.consumeSpaces();var r=this.fetch();if("\\limits"===r.text||"\\nolimits"===r.text){if(i&&"op"===i.type){var o="\\limits"===r.text;i.limits=o,i.alwaysHandleSupSub=!0}else{if(!i||"operatorname"!==i.type)throw new dE("Limit controls must follow a math operator",r);i.alwaysHandleSupSub&&(i.limits="\\limits"===r.text)}this.consume()}else if("^"===r.text){if(t)throw new dE("Double superscript",r);t=this.handleSupSubscript("superscript")}else if("_"===r.text){if(n)throw new dE("Double subscript",r);n=this.handleSupSubscript("subscript")}else if("'"===r.text){if(t)throw new dE("Double superscript",r);var a={type:"textord",mode:this.mode,text:"\\prime"},s=[a];for(this.consume();"'"===this.fetch().text;)s.push(a),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!eM[r.text])break;var c=QI.test(r.text),u=[];for(u.push(new lE(eM[r.text])),this.consume();;){var l=this.fetch().text;if(!eM[l])break;if(QI.test(l)!==c)break;u.unshift(new lE(eM[l])),this.consume()}var d=this.subparse(u);c?n={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||n?{type:"supsub",mode:this.mode,base:i,sup:t,sub:n}:i}parseFunction(e,t){var n=this.fetch(),i=n.text,r=zI[i];if(!r)return null;if(this.consume(),t&&"atom"!==t&&!r.allowedInArgument)throw new dE("Got function '"+i+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!r.allowedInText)throw new dE("Can't use function '"+i+"' in text mode",n);if("math"===this.mode&&!1===r.allowedInMath)throw new dE("Can't use function '"+i+"' in math mode",n);var{args:o,optArgs:a}=this.parseArguments(i,r);return this.callFunction(i,o,a,n,e)}callFunction(e,t,n,i,r){var o={funcName:e,parser:this,token:i,breakOnTokenText:r},a=zI[e];if(a&&a.handler)return a.handler(o,t,n);throw new dE("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var i=[],r=[],o=0;o<n;o++){var a=t.argTypes&&t.argTypes[o],s=o<t.numOptionalArgs;(t.primitive&&null==a||"sqrt"===t.type&&1===o&&null==r[0])&&(a="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",a,s);if(s)r.push(c);else{if(null==c)throw new dE("Null argument, please report this as a bug");i.push(c)}}return{args:i,optArgs:r}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var i=this.parseArgumentGroup(n,"text");return null!=i?{type:"styling",mode:i.mode,body:[i],style:"text"}:null;case"raw":var r=this.parseStringGroup("raw",n);return null!=r?{type:"raw",mode:"text",string:r.text}:null;case"primitive":if(n)throw new dE("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new dE("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new dE("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var i,r="";"EOF"!==(i=this.fetch()).text;)r+=i.text,this.consume();return this.consume(),n.text=r,n}parseRegexGroup(e,t){for(var n,i=this.fetch(),r=i,o="";"EOF"!==(n=this.fetch()).text&&e.test(o+n.text);)o+=(r=n).text,this.consume();if(""===o)throw new dE("Invalid "+t+": '"+i.text+"'",i);return i.range(r,o)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new dE("Invalid color: '"+t.text+"'",t);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!i)throw new dE("Invalid size: '"+t.text+"'",t);var r={number:+(i[1]+i[2]),unit:i[3]};if(!$E(r))throw new dE("Invalid unit: '"+r.unit+"'",t);return{type:"size",mode:this.mode,value:r,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var i=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var r=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:r};return t&&this.switchMode(i),o}parseGroup(e,t){var n,i=this.fetch(),r=i.text;if("{"===r||"\\begingroup"===r){this.consume();var o="{"===r?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,o),s=this.fetch();this.expect(o),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:uE.range(i,s),body:a,semisimple:"\\begingroup"===r||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===r[0]&&!YI.hasOwnProperty(r)){if(this.settings.throwOnError)throw new dE("Undefined control sequence: "+r,i);n=this.formatUnsupportedCmd(r),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var i=e[n],r=i.text;"-"===r&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:uE.range(i,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:uE.range(i,e[n+1]),text:"--"}),t-=1)),"'"!==r&&"`"!==r||e[n+1].text!==r||(e.splice(n,2,{type:"textord",mode:"text",loc:uE.range(i,e[n+1]),text:r+r}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),i="*"===n.charAt(0);if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new dE("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}nM.hasOwnProperty(t[0])&&!dC[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=nM[t[0]]+t.slice(1));var r,o=LI.exec(t);if(o&&("i"===(t=t.substring(0,o.index))?t="ı":"j"===t&&(t="ȷ")),dC[this.mode][t]){this.settings.strict&&"math"===this.mode&&jC.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=dC[this.mode][t].group,c=uE.range(e);if(uC.hasOwnProperty(s)){var u=s;a={type:"atom",mode:this.mode,family:u,loc:c,text:t}}else a={type:s,mode:this.mode,loc:c,text:t};r=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(BE(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),r={type:"textord",mode:"text",loc:uE.range(e),text:t}}if(this.consume(),o)for(var l=0;l<o[0].length;l++){var d=o[0][l];if(!tM[d])throw new dE("Unknown accent ' "+d+"'",e);var h=tM[d][this.mode]||tM[d].text;if(!h)throw new dE("Accent "+d+" unsupported in "+this.mode+" mode",e);r={type:"accent",mode:this.mode,loc:uE.range(e),label:h,isStretchy:!1,isShifty:!0,base:r}}return r}}iM.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var rM=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new iM(e,t);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new dE("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new lE("\\df@tag")])}]}return i};"undefined"!=typeof document&&document.compatMode;var oM=function(e,t,n){if(n.throwOnError||!(e instanceof dE))throw e;var i=rB.makeSpan(["katex-error"],[new rC(t)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},aM=function(e,t){var n=new yE(t);try{return function(e,t,n){var i,r=jB(n);if("mathml"===n.output)return qB(e,t,r,n.displayMode,!0);if("html"===n.output){var o=CB(e,r);i=rB.makeSpan(["katex"],[o])}else{var a=qB(e,t,r,n.displayMode,!1),s=CB(e,r);i=rB.makeSpan(["katex"],[a,s])}return HB(i,n)}(rM(e,n),e,n)}catch(i){return oM(i,e,n)}},sM=function(e,t){return aM(e,t).toMarkup()};const cM={key:0,class:"math-editor"},uM=["placeholder","onKeydown"],lM={class:"math-editor__preview"},dM={key:0,class:"math-error"},hM=["innerHTML"],fM={class:"math-editor__actions"},mM=["innerHTML"],pM=e.defineComponent({U:"MathNodeView",props:t.nodeViewProps,setup(n){const i=n,r=e.ref(!1),o=e.ref(""),a=e.ref(null),s=e.ref(null);function c(e,t){if(!e.trim())return`<span class="math-placeholder">${R("editor.mathEmpty")}</span>`;try{return a.value=null,sM(e,{displayMode:t,throwOnError:!1,errorColor:"#cc0000",strict:!1,trust:!1})}catch(n){return a.value=n instanceof Error?n.message:"Render error",`<span class="math-error">${a.value}</span>`}}const u=e.computed(()=>c(i.node.attrs.latex,i.node.attrs.block)),l=e.computed(()=>c(o.value,i.node.attrs.block));function d(){!1!==i.editor?.isEditable&&(r.value=!0,o.value=i.node.attrs.latex||"",e.nextTick(()=>{s.value?.focus(),s.value?.select()}))}function h(){o.value!==i.node.attrs.latex&&i.updateAttributes({latex:o.value}),r.value=!1}function f(){r.value=!1,o.value=i.node.attrs.latex||""}function m(e){const t=e.relatedTarget;t?.closest(".math-editor")||h()}function p(){const e=i.getPos();"number"==typeof e&&i.editor?.commands.setNodeSelection(e)}return e.onMounted(()=>{!i.node.attrs.latex&&i.editor?.isEditable&&d()}),e.watch(()=>i.node.attrs.latex,e=>{r.value||(o.value=e||"")}),(n,i)=>(e.openBlock(),e.createBlock(e.unref(t.NodeViewWrapper),{class:e.normalizeClass(["math-node-wrapper",{"is-block":n.node.attrs.block,"is-editing":r.value,"is-selected":n.selected}]),as:n.node.attrs.block?"div":"span"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",cM,[e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:s,"onUpdate:modelValue":i[0]||(i[0]=e=>o.value=e),class:"math-editor__input",placeholder:e.unref(R)("editor.mathPlaceholder"),onKeydown:[e.withKeys(e.withModifiers(h,["ctrl"]),["enter"]),e.withKeys(f,["escape"])],onBlur:m},null,40,uM),[[e.vModelText,o.value]]),e.createElementVNode("div",lM,[a.value?(e.openBlock(),e.createElementBlock("span",dM,e.toDisplayString(a.value),1)):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:l.value},null,8,hM))]),e.createElementVNode("div",fM,[e.createElementVNode("button",{type:"button",class:"math-btn math-btn--cancel",onClick:f},e.toDisplayString(e.unref(R)("editor.cancel")),1),e.createElementVNode("button",{type:"button",class:"math-btn math-btn--save",onClick:h},e.toDisplayString(e.unref(R)("editor.accept")),1)])])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["math-display",{"math-empty":!n.node.attrs.latex}]),onDblclick:d,onClick:p,innerHTML:u.value},null,42,mM))]),T:1},8,["class","as"]))}}),gM=o.Node.create({name:"math",group:"inline",inline:!0,atom:!0,addOptions:()=>({inline:!0,block:!0,katexOptions:cE}),addAttributes:()=>({latex:{default:"",parseHTML:e=>e.getAttribute("data-latex")||e.textContent||"",renderHTML:e=>({"data-latex":e.latex})},block:{default:!1,parseHTML:e=>"true"===e.getAttribute("data-block"),renderHTML:e=>({"data-block":e.block?"true":"false"})}}),parseHTML:()=>[{tag:'span[data-type="math"]'},{tag:'div[data-type="math"]'},{tag:"span.math-inline"},{tag:"div.math-block"}],renderHTML({HTMLAttributes:e}){const t="true"===e["data-block"];return[t?"div":"span",o.mergeAttributes(e,{"data-type":"math",class:t?"math-node math-block":"math-node math-inline"})]},addNodeView:()=>t.VueNodeViewRenderer(pM),addCommands(){return{insertInlineMath:(e="")=>({commands:t})=>t.insertContent({type:this.name,attrs:{latex:e,block:!1}}),insertBlockMath:(e="")=>({chain:t})=>t().insertContent({type:"paragraph",content:[{type:this.name,attrs:{latex:e,block:!0}}]}).run(),updateMath:e=>({commands:t})=>t.updateAttributes(this.name,{latex:e})}},addKeyboardShortcuts(){return{"Mod-m":()=>this.editor.commands.insertInlineMath(),"Mod-Shift-m":()=>this.editor.commands.insertBlockMath()}},addInputRules(){const e=this.type;return[new o.InputRule({find:/\$([^$]+)\$$/,handler:({state:t,range:n,match:i})=>{const r=i[1];if(!r)return null;const{tr:o}=t;o.replaceWith(n.from,n.to,e.create({latex:r,block:!1}))}})]}});const bM={},vM={class:"continuous-pages"},yM={key:1,class:"editor-fallback"},wM=e.defineComponent({U:"TiptapProEditor",props:{version:{default:"basic"},versionConfig:{},zoomBarPlacement:{default:"bottom"},readonly:{type:Boolean,default:!1},previewMode:{type:Boolean,default:!1},documentId:{},initialContent:{default:"<p>开始编辑你的文档...</p>"},tableMenuShowMode:{},features:{},locale:{}},emits:["update","collaboratorsChange","collaboratorsListChange"],setup(n,{expose:i,emit:r}){const o=n,a=e.computed(()=>o.previewMode),s=r,u=e.shallowRef(null),l=e.ref(null),S=e.ref(null),E=e.ref(null),C=e.ref(null),B=e.ref(1),W=e.ref(100),I=e.ref(!0),M=e.ref(!1),R=e.computed(()=>u.value),O=j(),P=()=>{try{const e=O.userInfo;if(e){const t=e.userId||e.id||e.user_id||"anonymous";return{id:t,name:e.realName||e.userName||e.name||e.real_name||e.username||"匿名用户"}}}catch{}return{id:"anonymous",name:"匿名用户"}},L=GS({getUserInfo:P,onCollaboratorsChange:e=>s("collaboratorsChange",e),onCollaboratorsListChange:e=>s("collaboratorsListChange",e)}),N=e.ref(!1);e.watch(()=>[u.value,L.collaboratorsCount.value],([e,t])=>{if(e)try{e.storage.I=t}catch{}},{immediate:!0});const q=e=>void 0!==o.features?.[e]?o.features[e]:void 0!==o.versionConfig?.features?.[e]&&o.versionConfig.features[e],H=e.computed(()=>q("headerNav")),V=e.computed(()=>q("footerNav")),$=e.computed(()=>bM?.VITE_COLLABORATION_WS_URL||""),G=e.computed(()=>q("collaboration")),K=e.computed(()=>!(G.value&&!$.value)&&(G.value&&!!$.value)),Z=e.computed(()=>N.value&&K.value&&!!o.documentId),X=async e=>{N.value!==e&&(N.value=e)};e.watch(()=>K.value,e=>{N.value!==e&&(N.value=e)},{immediate:!0}),e.watch(()=>N.value,async(e,t)=>{void 0!==t&&e!==t&&u.value&&!M.value&&await ne()});const Y=e.computed(()=>{const e=Z.value&&L.collaboratorsCount.value>1;switch(o.version){case"advanced":case"premium":return{...jA,codeBlock:!0,link:!0,table:!0,font:!0,lineHeight:!0,clearFormat:!0,undoRedo:!0,undoRedoDisabled:e,subscriptSuperscript:!0,formatPainter:!0,formatPainterDisabled:e};default:return{...qA,undoRedo:!0,undoRedoDisabled:e}}}),J=e.computed(()=>o.locale||"zh-CN"),Q=e=>{const t={"zh-CN":"zh-CN","zh-TW":"zh-TW","zh-HK":"zh-TW","en-US":"en-US",en:"en-US"};return t[e]?t[e]:e.startsWith("zh")?e.includes("TW")||e.includes("HK")?"zh-TW":"zh-CN":e.startsWith("en")?"en-US":"zh-CN"};z({locale:Q(J.value)}),e.watch(()=>J.value,e=>{const t=Q(e);_().setLocale(t)},{immediate:!1});const ee=()=>{e.nextTick(()=>{const e=S.value?.querySelector(".ProseMirror");if(!e)return;const t=getComputedStyle(e),n=parseFloat(t.paddingTop)||0,i=parseFloat(t.paddingBottom)||0,r=e.scrollHeight-(n+i),o=1123-(n+i),a=Math.ceil(r/o);B.value=Math.max(a,1)})},te=()=>{if(!I.value&&u.value&&!Z.value){const e=(()=>{try{return u.value?.getJSON()??null}catch{return null}})();if(e)return e}return HS(o.initialContent,{silent:!0})},ne=async()=>{if(!M.value)try{M.value=!0;const n=te();I.value&&(I.value=!1);const i=!1!==o.versionConfig?.features?.advanced,r=function(e="basic",t=!0){const n="boolean"==typeof t?{enableImageResize:t}:t,{enableImageResize:i=!0,disableHistory:r=!1}=n,o=[],a={heading:{levels:[1,2,3,4,5,6]},link:!1,underline:!1};return r&&(a.history=!1),o.push(d.configure(a)),o.push(h.Placeholder.configure({placeholder:"开始编辑你的文档..."})),o.push(f.TextAlign.configure({types:["heading","paragraph"]})),o.push(m.Underline),o.push(p.Color),o.push(g.TextStyle),o.push(b.Highlight.configure({multicolor:!0})),o.push(Ke.configure({inline:!0,allowBase64:!0,enableResize:i})),o.push(v.Link.configure({openOnClick:!0,HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})),o.push(D.TaskList),o.push(U.TaskItem.configure({nested:!0})),o.push(c.Table.configure({resizable:!0})),o.push(y.TableRow),o.push(w.TableCell),o.push(x.TableHeader),o.push(T.FontFamily),o.push(Ye),o.push(k.Subscript),o.push(A.Superscript),o.push(Je),o.push(F.CharacterCount),o.push(aE.configure({inline:!1,allowBase64:!0})),o.push(rE),o.push(oE),o.push(sE),o.push(Rt),o.push(gM),o.push(pT),o.push(NT),o.push(fk),o.push(Fk),o.push(Nk),o.push(Vk),o}(o.version,{enableImageResize:i,disableHistory:Z.value});o.features?.dragHandleMenu&&r.push(NF.configure({onHandleClick:e=>E.value?.handleDragHandleClick(e)})),o.features?.slashCommand&&r.push(US.configure({onActivate:e=>C.value?.activate(e),onDeactivate:()=>C.value?.hide(),onQueryChange:e=>C.value?.updateQuery(e)})),await(async(e,t)=>{if(Z.value)try{L.instance.value&&(L.disable(),await new Promise(e=>setTimeout(e,100)));const n=await L.initWithExtensions({documentId:o.documentId,readonly:o.readonly,initialContent:e,getUserInfo:P});if(0===n.length)return;t.push(...n)}catch{}else L.disable()})(n,r),u.value&&(u.value.destroy(),u.value=null),await e.nextTick();const l=!Z.value;u.value=new t.Editor({editable:!o.readonly&&!a.value,extensions:r,content:l?n:void 0,editorProps:{attributes:{class:"word-editor-content"}},onUpdate:({editor:e})=>{ee(),s("update",e.getJSON())}}),await e.nextTick(),L.instance.value&&u.value&&L.setEditor(u.value),S.value&&(S.value.style.setProperty("--a4-width-px","794px"),S.value.style.setProperty("--padding-top-px","96px"),S.value.style.setProperty("--padding-bottom-px","96px"),S.value.style.setProperty("--page-content-height-px","931px")),ee()}catch(n){l.value="编辑器初始化失败"}finally{M.value=!1}};e.onMounted(async()=>{await ne()}),e.onBeforeUnmount(async()=>{await(async()=>{L.disable(),u.value&&(u.value.destroy(),u.value=null)})()});const ie=(t,n=(e,t)=>e!==t)=>{e.watch(t,async(t,i)=>{void 0!==i&&u.value&&!M.value&&n(t,i)&&(await e.nextTick(),await ne())})};return ie(()=>o.features?.dragHandleMenu,(e,t)=>(e??!1)!==(t??!1)),ie(()=>o.features?.slashCommand,(e,t)=>(e??!1)!==(t??!1)),ie(()=>o.documentId,(e,t)=>K.value&&e!==t),i({getEditor:()=>u.value,getJSON:()=>u.value?.getJSON()||null,getHTML:()=>u.value?.getHTML()||"",getText:()=>u.value?.getText()||""}),(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tiptap-pro-editor word-mode",{"is-preview-mode":a.value}])},[R.value&&!a.value?(e.openBlock(),e.createBlock(e.unref(sF),{key:0,editor:R.value,config:Y.value,enabled:H.value,class:"word-toolbar"},e.createSlots({T:2},[K.value?{name:"right",fn:e.withCtx(()=>[e.createVNode(e.unref(iE),{modelValue:N.value,"onUpdate:modelValue":r[0]||(r[0]=e=>N.value=e),"collaborators-count":e.unref(L).collaboratorsCount.value,"collaborators-list":[...e.unref(L).collaboratorsList.value],"show-label":"",onChange:X},null,8,["modelValue","collaborators-count","collaborators-list"])]),key:"0"}:void 0]),1032,["editor","config","enabled"])):e.createCommentVNode("",!0),R.value&&!a.value&&o.features?.linkBubbleMenu?(e.openBlock(),e.createBlock(e.unref(pF),{key:1,editor:R.value,readonly:n.readonly,enabled:o.features?.linkBubbleMenu??!1},null,8,["editor","readonly","enabled"])):e.createCommentVNode("",!0),R.value&&!a.value?(e.openBlock(),e.createBlock(e.unref(At),{key:2,editor:R.value,readonly:n.readonly,"show-mode":o.tableMenuShowMode??2,enabled:o.features?.tableToolbar??!1},null,8,["editor","readonly","show-mode","enabled"])):e.createCommentVNode("",!0),R.value&&!a.value&&o.features?.image?(e.openBlock(),e.createBlock(e.unref(SF),{key:3,editor:R.value,readonly:n.readonly,enabled:o.features?.image??!1},null,8,["editor","readonly","enabled"])):e.createCommentVNode("",!0),R.value&&!a.value&&o.features?.floatingMenu?(e.openBlock(),e.createBlock(e.unref(zF),{key:4,editor:R.value,readonly:n.readonly,enabled:o.features?.floatingMenu??!1},null,8,["editor","readonly","enabled"])):e.createCommentVNode("",!0),R.value&&!a.value&&o.features?.slashCommand?(e.openBlock(),e.createBlock(e.unref(WS),{key:5,ref_key:"slashCommandMenuRef",ref:C,editor:R.value},null,8,["editor"])):e.createCommentVNode("",!0),R.value&&!a.value&&o.features?.dragHandleMenu?(e.openBlock(),e.createBlock(e.unref(xS),{key:6,ref_key:"dragHandleMenuRef",ref:E,editor:R.value,readonly:n.readonly},null,8,["editor","readonly"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"word-document-container",ref_key:"containerRef",ref:S},[e.createElementVNode("div",{class:"document-pages",style:e.normalizeStyle({transform:`scale(${W.value/100})`})},[e.createElementVNode("div",vM,[R.value?(e.openBlock(),e.createBlock(e.unref(t.EditorContent),{key:0,editor:R.value,class:"word-content-multi"},null,8,["editor"])):(e.openBlock(),e.createElementBlock("div",yM,e.toDisplayString(l.value||"正在初始化编辑器..."),1))])],4)],512),R.value&&!a.value&&V.value?(e.openBlock(),e.createBlock(e.unref(xF),{key:7,zoomLevel:W.value,"onUpdate:zoomLevel":r[1]||(r[1]=e=>W.value=e),totalPages:B.value,editor:R.value,showCharCount:!0},null,8,["zoomLevel","totalPages","editor"])):e.createCommentVNode("",!0)],2))}}),xM={minimal:{features:{textFormat:!0,list:!0,undoRedo:!0}},basic:{features:{heading:!0,textFormat:!0,list:!0,align:!0,link:!0,undoRedo:!0,headerNav:!0}},advanced:{features:{heading:!0,textFormat:!0,list:!0,align:!0,color:!0,image:!0,font:!0,link:!0,table:!0,codeBlock:!0,undoRedo:!0,formatPainter:!0,zoom:!0,headerNav:!0,footerNav:!0,dragHandleMenu:!0,linkBubbleMenu:!0,tableToolbar:!0,imageToolbar:!0}},full:{features:{heading:!0,textFormat:!0,list:!0,align:!0,color:!0,image:!0,font:!0,link:!0,table:!0,codeBlock:!0,undoRedo:!0,formatPainter:!0,zoom:!0,subscriptSuperscript:!0,clearFormat:!0,headerNav:!0,footerNav:!0,dragHandleMenu:!0,floatingMenu:!0,linkBubbleMenu:!0,tableToolbar:!0,imageToolbar:!0,ai:!0}},notion:{themePreset:"notion",features:{undoRedo:!0,floatingMenu:!0,linkBubbleMenu:!0,dragHandleMenu:!0,heading:!1,textFormat:!1,list:!1,align:!1,color:!1,image:!1,font:!1,link:!1,table:!1,codeBlock:!1,formatPainter:!1,zoom:!1,headerNav:!1,footerNav:!1}}};let DM="default",UM="light";const TM=new Map;function kM(e,t="light"){if(DM=e,UM=t,"undefined"==typeof document)return;const n=document.documentElement;n.classList.remove("theme-default","theme-notion","theme-github","theme-typora","theme-word"),"default"!==e&&n.classList.add(`theme-${e}`),n.setAttribute("data-theme","auto"===t?"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t),"custom"===e&&TM.has("custom")&&AM(TM.get("custom"))}function AM(e){if("undefined"==typeof document)return;const t=document.documentElement;for(const[n,i]of Object.entries(e))t.style.setProperty(n,i)}let FM="pc";let SM="portrait";exports.AI_PROVIDERS=GU,exports.AiHighlightMark=pT,exports.AiMenuButton=nA,exports.AiSettingsModal=UA,exports.AiSuggestionPopover=hk,exports.AiToolbarMenu=OA,exports.ContinueWritingExtension=fk,exports.CustomAiExtension=NT,exports.CustomAiPopover=LT,exports.DEFAULT_CONFIG=$U,exports.DEVICE_VIEWS=["pc","pad","mobile"],exports.ORIENTATIONS=["portrait","landscape"],exports.PRESET_CONFIGS=xM,exports.PolishExtension=Fk,exports.SummarizeExtension=Nk,exports.THEME_PRESETS=["default","notion","github","typora","word"],exports.TiptapProEditor=wM,exports.TranslationExtension=Vk,exports.aiSuggestionManager=Lk,exports.applyCustomTheme=AM,exports.createI18n=z,exports.enUS=C,exports.getAiRequestConfig=sT,exports.getDeviceView=function(){return FM},exports.getOrientation=function(){return SM},exports.getProviderInfo=KU,exports.getTheme=function(){return{preset:DM,mode:UM}},exports.initTheme=function(){if("undefined"!=typeof window&&window.matchMedia){const e=window.matchMedia("(prefers-color-scheme: dark)").matches;H.value=e?"dark":"light"}},exports.mergeConfig=function(e,t){const n="string"==typeof e?xM[e]:e;return{theme:"light",themePreset:"default",locale:"zh-CN",...n,...t,features:{...n.features,...t?.features}}},exports.registerTheme=function(e,t){TM.set(e,t)},exports.setDeviceView=function(e){if(FM=e,"undefined"==typeof document)return;document.documentElement.setAttribute("data-device",e)},exports.setOrientation=function(e){if(SM=e,"undefined"==typeof document)return;document.documentElement.setAttribute("data-orientation",e)},exports.setTheme=kM,exports.setUserInfo=q,exports.t=R,exports.toggleThemeMode=function(){const e="light"===UM?"dark":"light";return kM(DM,e),e},exports.useAi=LA,exports.useAiConfig=aT,exports.useI18n=_,exports.usePreferences=V,exports.useUserStore=j,exports.watchSystemTheme=function(e){if("undefined"==typeof window)return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=t=>{e(t.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},exports.zhCN=S,exports.zhTW=E;
|